sql
stringlengths 6
1.05M
|
---|
STOP SLAVE;
CHANGE MASTER TO
MASTER_HOST='mysql-1',
MASTER_AUTO_POSITION=1,
MASTER_USER='replication',
MASTER_PASSWORD='password',
MASTER_CONNECT_RETRY=1,
MASTER_RETRY_COUNT=300; -- 5 minutes
start slave;
|
<filename>internal/clients/instruments/delete-instrument.sql
delete from instruments_instrument
where instruments_instrument.id = $id
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 19, 2019 at 09:40 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `blood_particle`
--
-- --------------------------------------------------------
--
-- Table structure for table `address`
--
CREATE TABLE `address` (
`address_id` int(11) NOT NULL,
`address_donor` int(11) NOT NULL,
`address_division` varchar(100) NOT NULL,
`address_district` varchar(100) NOT NULL,
`address_thana` varchar(100) NOT NULL,
`address_area` varchar(200) NOT NULL,
`address_post_code` varchar(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `address`
--
INSERT INTO `address` (`address_id`, `address_donor`, `address_division`, `address_district`, `address_thana`, `address_area`, `address_post_code`) VALUES
(1, 1, 'Dhaka', 'Dhaka', 'Dhanmondi', 'Zigatola', '1205'),
(2, 2, 'Dhaka', 'Dhanmondi', 'Dhanmondi', 'Zigatola', '1205');
-- --------------------------------------------------------
--
-- Table structure for table `donor`
--
CREATE TABLE `donor` (
`donor_id` int(11) NOT NULL,
`donor_name` varchar(100) NOT NULL,
`donor_email` varchar(200) NOT NULL,
`donor_phone` varchar(50) NOT NULL,
`donor_blood_group` varchar(20) NOT NULL,
`donor_birth_date` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `donor`
--
INSERT INTO `donor` (`donor_id`, `donor_name`, `donor_email`, `donor_phone`, `donor_blood_group`, `donor_birth_date`) VALUES
(1, '<NAME>', '<EMAIL>', '01763433486', 'O+', 794666206),
(2, '<NAME>', '<EMAIL>', '01725634865', 'O+', 780003382);
-- --------------------------------------------------------
--
-- Table structure for table `history`
--
CREATE TABLE `history` (
`history_id` int(11) NOT NULL,
`history_donor` int(11) NOT NULL,
`history_date` int(11) NOT NULL,
`history_donation_type` varchar(100) NOT NULL,
`history_location` varchar(150) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `history`
--
INSERT INTO `history` (`history_id`, `history_donor`, `history_date`, `history_donation_type`, `history_location`) VALUES
(1, 1, 1534336606, 'Direct to patient', 'Cancer Hospital, Mohakhali'),
(2, 1, 1550234206, 'Direct to patient', 'Ibrahim Cardiac Hospital'),
(3, 1, 1568540880, 'Direct to patient', 'BSMMU (PG Hospital)'),
(4, 2, 1568921782, 'Direct to patient', 'Dhaka Medical College & Hospital');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `address`
--
ALTER TABLE `address`
ADD PRIMARY KEY (`address_id`),
ADD KEY `address_donor` (`address_donor`);
--
-- Indexes for table `donor`
--
ALTER TABLE `donor`
ADD KEY `donor_id` (`donor_id`);
--
-- Indexes for table `history`
--
ALTER TABLE `history`
ADD PRIMARY KEY (`history_id`),
ADD KEY `history_donor` (`history_donor`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `address`
--
ALTER TABLE `address`
MODIFY `address_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `donor`
--
ALTER TABLE `donor`
MODIFY `donor_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `history`
--
ALTER TABLE `history`
MODIFY `history_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `address`
--
ALTER TABLE `address`
ADD CONSTRAINT `address_ibfk_1` FOREIGN KEY (`address_donor`) REFERENCES `donor` (`donor_id`) ON DELETE CASCADE;
--
-- Constraints for table `history`
--
ALTER TABLE `history`
ADD CONSTRAINT `history_ibfk_1` FOREIGN KEY (`history_donor`) REFERENCES `donor` (`donor_id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
version https://git-lfs.github.com/spec/v1
oid sha256:77df464411b031e5a4484b4e043c53f507baa08ba961ba175fc326c3b4423c6b
size 705
|
<filename>scripts/db/migrations/up/002-org_user.sql
create table org_user
(
user_id uuid not null,
username varchar not null,
org_id uuid not null,
person_profile_id uuid not null,
create_app_id uuid not null,
create_user_id uuid,
create_timestamp timestamp with time zone not null,
update_app_id uuid not null,
update_user_id uuid,
update_timestamp timestamp with time zone not null,
constraint user_pk
primary key (user_id),
constraint user_self_ref_fk1
foreign key (create_user_id) references org_user,
constraint user_self_ref_fk2
foreign key (update_user_id) references org_user,
constraint org_user_create_app_id_fk
foreign key (create_app_id) references app
deferrable initially deferred,
constraint org_user_update_app_id_fk
foreign key (update_app_id) references app
deferrable initially deferred
);
comment on column org_user.user_id is 'The user ID is the unique ID for user (pk for table)';
comment on column org_user.username is 'The username is a unique, human readable username.';
comment on column org_user.org_id is 'The organization ID for the organization that the user belongs to.';
comment on column org_user.person_profile_id is 'The person profile ID - ID for the profile of the person to which this user belongs.';
comment on column org_user.create_app_id is 'The application which created this record.';
comment on column org_user.create_user_id is 'The user which created this record.';
comment on column org_user.create_timestamp is 'The timestamp when this record was created.';
comment on column org_user.update_app_id is 'The application which performed the most recent update to this record.';
comment on column org_user.update_user_id is 'The user which performed the most recent update to this record.';
comment on column org_user.update_timestamp is 'The timestamp when the record was updated most recently.';
alter table app
add constraint org_user_fk1
foreign key (create_user_id) references org_user
deferrable initially deferred;
alter table app
add constraint org_user_fk2
foreign key (update_user_id) references org_user
deferrable initially deferred;
create unique index user_org_uindex
on org_user (username, org_id);
|
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50725
Source Host : 127.0.0.1:3306
Source Schema : Xita6699_v1
Target Server Type : MySQL
Target Server Version : 50725
File Encoding : 65001
Date: 05/01/2022 13:57:26
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for sys_api
-- ----------------------------
DROP TABLE IF EXISTS `sys_api`;
CREATE TABLE `sys_api` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键编码',
`handle` varchar(128) DEFAULT NULL COMMENT 'handle',
`title` varchar(128) DEFAULT NULL COMMENT '标题',
`path` varchar(128) DEFAULT NULL COMMENT '地址',
`type` varchar(16) DEFAULT NULL COMMENT '接口类型',
`action` varchar(16) DEFAULT NULL COMMENT '请求类型',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`),
KEY `idx_sys_api_deleted_at` (`deleted_at`),
KEY `idx_sys_api_create_by` (`create_by`),
KEY `idx_sys_api_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_api
-- ----------------------------
BEGIN;
INSERT INTO `sys_api` VALUES (5, 'go-admin/app/admin/apis.SysLoginLog.Get-fm', '登录日志通过id获取', '/api/v1/sys-login-log/:id', 'BUS', 'GET', '2021-05-13 19:59:00.728', '2021-06-17 11:37:12.331', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (6, 'go-admin/app/admin/apis.SysOperaLog.GetPage-fm', '操作日志列表', '/api/v1/sys-opera-log', 'BUS', 'GET', '2021-05-13 19:59:00.778', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (7, 'go-admin/app/admin/apis.SysOperaLog.Get-fm', '操作日志通过id获取', '/api/v1/sys-opera-log/:id', 'BUS', 'GET', '2021-05-13 19:59:00.821', '2021-06-16 21:49:48.598', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (8, 'go-admin/common/actions.IndexAction.func1', '分类列表', '/api/v1/syscategory', 'BUS', 'GET', '2021-05-13 19:59:00.870', '2021-06-13 20:53:47.883', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (9, 'go-admin/common/actions.ViewAction.func1', '分类通过id获取', '/api/v1/syscategory/:id', 'BUS', 'GET', '2021-05-13 19:59:00.945', '2021-06-13 20:53:47.926', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (10, 'go-admin/common/actions.IndexAction.func1', '内容列表', '/api/v1/syscontent', 'BUS', 'GET', '2021-05-13 19:59:01.005', '2021-06-13 20:53:47.966', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (11, 'go-admin/common/actions.ViewAction.func1', '内容通过id获取', '/api/v1/syscontent/:id', 'BUS', 'GET', '2021-05-13 19:59:01.056', '2021-06-13 20:53:48.005', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (15, 'go-admin/common/actions.IndexAction.func1', 'job列表', '/api/v1/sysjob', 'BUS', 'GET', '2021-05-13 19:59:01.248', '2021-06-13 20:53:48.169', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (16, 'go-admin/common/actions.ViewAction.func1', 'job通过id获取', '/api/v1/sysjob/:id', 'BUS', 'GET', '2021-05-13 19:59:01.298', '2021-06-13 20:53:48.214', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (21, 'go-admin/app/admin/apis.SysDictType.GetPage-fm', '字典类型列表', '/api/v1/dict/type', 'BUS', 'GET', '2021-05-13 19:59:01.525', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (22, 'go-admin/app/admin/apis.SysDictType.GetAll-fm', '字典类型查询【代码生成】', '/api/v1/dict/type-option-select', 'SYS', 'GET', '2021-05-13 19:59:01.582', '2021-06-13 20:53:48.388', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (23, 'go-admin/app/admin/apis.SysDictType.Get-fm', '字典类型通过id获取', '/api/v1/dict/type/:id', 'BUS', 'GET', '2021-05-13 19:59:01.632', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (24, 'go-admin/app/admin/apis.SysDictData.GetPage-fm', '字典数据列表', '/api/v1/dict/data', 'BUS', 'GET', '2021-05-13 19:59:01.684', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (25, 'go-admin/app/admin/apis.SysDictData.Get-fm', '字典数据通过code获取', '/api/v1/dict/data/:dictCode', 'BUS', 'GET', '2021-05-13 19:59:01.732', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (26, 'go-admin/app/admin/apis.SysDictData.GetSysDictDataAll-fm', '数据字典根据key获取', '/api/v1/dict-data/option-select', 'SYS', 'GET', '2021-05-13 19:59:01.832', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (27, 'go-admin/app/admin/apis.SysDept.GetPage-fm', '部门列表', '/api/v1/dept', 'BUS', 'GET', '2021-05-13 19:59:01.940', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (28, 'go-admin/app/admin/apis.SysDept.Get-fm', '部门通过id获取', '/api/v1/dept/:id', 'BUS', 'GET', '2021-05-13 19:59:02.009', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (29, 'go-admin/app/admin/apis.SysDept.Get2Tree-fm', '查询部门下拉树【角色权限-自定权限】', '/api/v1/deptTree', 'SYS', 'GET', '2021-05-13 19:59:02.050', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (30, 'go-admin/app/admin/apis/tools.(*Gen).GetDBTableList-fm', '数据库表列表', '/api/v1/db/tables/page', 'SYS', 'GET', '2021-05-13 19:59:02.098', '2021-06-13 20:53:48.730', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (31, 'go-admin/app/admin/apis/tools.(*Gen).GetDBColumnList-fm', '数据表列列表', '/api/v1/db/columns/page', 'SYS', 'GET', '2021-05-13 19:59:02.140', '2021-06-13 20:53:48.771', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (32, 'go-admin/app/admin/apis/tools.Gen.GenCode-fm', '数据库表生成到项目', '/api/v1/gen/toproject/:tableId', 'SYS', 'GET', '2021-05-13 19:59:02.183', '2021-06-13 20:53:48.812', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (33, 'go-admin/app/admin/apis/tools.Gen.GenMenuAndApi-fm', '数据库表生成到DB', '/api/v1/gen/todb/:tableId', 'SYS', 'GET', '2021-05-13 19:59:02.227', '2021-06-13 20:53:48.853', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (34, 'go-admin/app/admin/apis/tools.(*SysTable).GetSysTablesTree-fm', '关系表数据【代码生成】', '/api/v1/gen/tabletree', 'SYS', 'GET', '2021-05-13 19:59:02.271', '2021-06-13 20:53:48.893', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (35, 'go-admin/app/admin/apis/tools.Gen.Preview-fm', '生成预览通过id获取', '/api/v1/gen/preview/:tableId', 'SYS', 'GET', '2021-05-13 19:59:02.315', '2021-06-13 20:53:48.935', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (36, 'go-admin/app/admin/apis/tools.Gen.GenApiToFile-fm', '生成api带文件', '/api/v1/gen/apitofile/:tableId', 'SYS', 'GET', '2021-05-13 19:59:02.357', '2021-06-13 20:53:48.977', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (37, 'go-admin/app/admin/apis.System.GenerateCaptchaHandler-fm', '验证码获取', '/api/v1/getCaptcha', 'SYS', 'GET', '2021-05-13 19:59:02.405', '2021-06-13 20:53:49.020', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (38, 'go-admin/app/admin/apis.SysUser.GetInfo-fm', '用户信息获取', '/api/v1/getinfo', 'SYS', 'GET', '2021-05-13 19:59:02.447', '2021-06-13 20:53:49.065', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (39, 'go-admin/app/admin/apis.SysMenu.GetPage-fm', '菜单列表', '/api/v1/menu', 'BUS', 'GET', '2021-05-13 19:59:02.497', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (40, 'go-admin/app/admin/apis.SysMenu.GetMenuTreeSelect-fm', '查询菜单下拉树结构【废弃】', '/api/v1/menuTreeselect', 'SYS', 'GET', '2021-05-13 19:59:02.542', '2021-06-03 22:37:21.857', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (41, 'go-admin/app/admin/apis.SysMenu.Get-fm', '菜单通过id获取', '/api/v1/menu/:id', 'BUS', 'GET', '2021-05-13 19:59:02.584', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (42, 'go-admin/app/admin/apis.SysMenu.GetMenuRole-fm', '角色菜单【顶部左侧菜单】', '/api/v1/menurole', 'SYS', 'GET', '2021-05-13 19:59:02.630', '2021-06-13 20:53:49.574', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (43, 'go-admin/app/admin/apis.SysMenu.GetMenuIDS-fm', '获取角色对应的菜单id数组【废弃】', '/api/v1/menuids', 'SYS', 'GET', '2021-05-13 19:59:02.675', '2021-06-03 22:39:52.500', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (44, 'go-admin/app/admin/apis.SysRole.GetPage-fm', '角色列表', '/api/v1/role', 'BUS', 'GET', '2021-05-13 19:59:02.720', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (45, 'go-admin/app/admin/apis.SysMenu.GetMenuTreeSelect-fm', '菜单权限列表【角色配菜单使用】', '/api/v1/roleMenuTreeselect/:roleId', 'SYS', 'GET', '2021-05-13 19:59:02.762', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (46, 'go-admin/app/admin/apis.SysDept.GetDeptTreeRoleSelect-fm', '角色部门结构树【自定义数据权限】', '/api/v1/roleDeptTreeselect/:roleId', 'SYS', 'GET', '2021-05-13 19:59:02.809', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (47, 'go-admin/app/admin/apis.SysRole.Get-fm', '角色通过id获取', '/api/v1/role/:id', 'BUS', 'GET', '2021-05-13 19:59:02.850', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (48, 'github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth.(*GinJWTMiddleware).RefreshHandler-fm', '刷新token', '/api/v1/refresh_token', 'SYS', 'GET', '2021-05-13 19:59:02.892', '2021-06-13 20:53:49.278', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (53, 'go-admin/app/admin/apis.SysConfig.GetPage-fm', '参数列表', '/api/v1/config', 'BUS', 'GET', '2021-05-13 19:59:03.116', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (54, 'go-admin/app/admin/apis.SysConfig.Get-fm', '参数通过id获取', '/api/v1/config/:id', 'BUS', 'GET', '2021-05-13 19:59:03.157', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (55, 'go-admin/app/admin/apis.SysConfig.GetSysConfigByKEYForService-fm', '参数通过键名搜索【基础默认配置】', '/api/v1/configKey/:configKey', 'SYS', 'GET', '2021-05-13 19:59:03.198', '2021-06-13 20:53:49.745', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (57, 'go-admin/app/jobs/apis.SysJob.RemoveJobForService-fm', 'job移除', '/api/v1/job/remove/:id', 'BUS', 'GET', '2021-05-13 19:59:03.295', '2021-06-13 20:53:49.786', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (58, 'go-admin/app/jobs/apis.SysJob.StartJobForService-fm', 'job启动', '/api/v1/job/start/:id', 'BUS', 'GET', '2021-05-13 19:59:03.339', '2021-06-13 20:53:49.829', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (59, 'go-admin/app/admin/apis.SysPost.GetPage-fm', '岗位列表', '/api/v1/post', 'BUS', 'GET', '2021-05-13 19:59:03.381', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (60, 'go-admin/app/admin/apis.SysPost.Get-fm', '岗位通过id获取', '/api/v1/post/:id', 'BUS', 'GET', '2021-05-13 19:59:03.433', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (62, 'go-admin/app/admin/apis.SysConfig.GetSysConfigBySysApp-fm', '系统前端参数', '/api/v1/app-config', 'SYS', 'GET', '2021-05-13 19:59:03.526', '2021-06-13 20:53:49.994', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (63, 'go-admin/app/admin/apis.SysUser.GetProfile-fm', '*用户信息获取', '/api/v1/user/profile', 'SYS', 'GET', '2021-05-13 19:59:03.567', '2021-06-13 20:53:50.038', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (66, 'github.com/go-admin-team/go-admin-core/sdk/pkg/ws.(*Manager).WsClient-fm', '链接ws【定时任务log】', '/ws/:id/:channel', 'BUS', 'GET', '2021-05-13 19:59:03.705', '2021-06-13 20:53:50.167', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (67, 'github.com/go-admin-team/go-admin-core/sdk/pkg/ws.(*Manager).UnWsClient-fm', '退出ws【定时任务log】', '/wslogout/:id/:channel', 'BUS', 'GET', '2021-05-13 19:59:03.756', '2021-06-13 20:53:50.209', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (68, 'go-admin/common/middleware/handler.Ping', '*用户基本信息', '/info', 'SYS', 'GET', '2021-05-13 19:59:03.800', '2021-06-13 20:53:50.251', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (72, 'go-admin/common/actions.CreateAction.func1', '分类创建', '/api/v1/syscategory', 'BUS', 'POST', '2021-05-13 19:59:03.982', '2021-06-13 20:53:50.336', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (73, 'go-admin/common/actions.CreateAction.func1', '内容创建', '/api/v1/syscontent', 'BUS', 'POST', '2021-05-13 19:59:04.027', '2021-06-13 20:53:50.375', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (76, 'go-admin/common/actions.CreateAction.func1', 'job创建', '/api/v1/sysjob', 'BUS', 'POST', '2021-05-13 19:59:04.164', '2021-06-13 20:53:50.500', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (80, 'go-admin/app/admin/apis.SysDictData.Insert-fm', '字典数据创建', '/api/v1/dict/data', 'BUS', 'POST', '2021-05-13 19:59:04.347', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (81, 'go-admin/app/admin/apis.SysDictType.Insert-fm', '字典类型创建', '/api/v1/dict/type', 'BUS', 'POST', '2021-05-13 19:59:04.391', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (82, 'go-admin/app/admin/apis.SysDept.Insert-fm', '部门创建', '/api/v1/dept', 'BUS', 'POST', '2021-05-13 19:59:04.435', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (85, 'github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth.(*GinJWTMiddleware).LoginHandler-fm', '*登录', '/api/v1/login', 'SYS', 'POST', '2021-05-13 19:59:04.597', '2021-06-13 20:53:50.784', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (86, 'go-admin/common/middleware/handler.LogOut', '*退出', '/api/v1/logout', 'SYS', 'POST', '2021-05-13 19:59:04.642', '2021-06-13 20:53:50.824', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (87, 'go-admin/app/admin/apis.SysConfig.Insert-fm', '参数创建', '/api/v1/config', 'BUS', 'POST', '2021-05-13 19:59:04.685', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (88, 'go-admin/app/admin/apis.SysMenu.Insert-fm', '菜单创建', '/api/v1/menu', 'BUS', 'POST', '2021-05-13 19:59:04.777', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (89, 'go-admin/app/admin/apis.SysPost.Insert-fm', '岗位创建', '/api/v1/post', 'BUS', 'POST', '2021-05-13 19:59:04.886', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (90, 'go-admin/app/admin/apis.SysRole.Insert-fm', '角色创建', '/api/v1/role', 'BUS', 'POST', '2021-05-13 19:59:04.975', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (91, 'go-admin/app/admin/apis.SysUser.InsetAvatar-fm', '*用户头像编辑', '/api/v1/user/avatar', 'SYS', 'POST', '2021-05-13 19:59:05.058', '2021-06-13 20:53:51.079', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (92, 'go-admin/app/admin/apis.SysApi.Update-fm', '接口编辑', '/api/v1/sys-api/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.122', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (95, 'go-admin/common/actions.UpdateAction.func1', '分类编辑', '/api/v1/syscategory/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.255', '2021-06-13 20:53:51.247', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (96, 'go-admin/common/actions.UpdateAction.func1', '内容编辑', '/api/v1/syscontent/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.299', '2021-06-13 20:53:51.289', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (97, 'go-admin/common/actions.UpdateAction.func1', 'job编辑', '/api/v1/sysjob', 'BUS', 'PUT', '2021-05-13 19:59:05.343', '2021-06-13 20:53:51.331', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (101, 'go-admin/app/admin/apis.SysDictData.Update-fm', '字典数据编辑', '/api/v1/dict/data/:dictCode', 'BUS', 'PUT', '2021-05-13 19:59:05.519', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (102, 'go-admin/app/admin/apis.SysDictType.Update-fm', '字典类型编辑', '/api/v1/dict/type/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.569', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (103, 'go-admin/app/admin/apis.SysDept.Update-fm', '部门编辑', '/api/v1/dept/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.613', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (104, 'go-admin/app/other/apis.SysFileDir.Update-fm', '文件夹编辑', '/api/v1/file-dir/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.662', '2021-06-13 20:53:51.847', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (105, 'go-admin/app/other/apis.SysFileInfo.Update-fm', '文件编辑', '/api/v1/file-info/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.709', '2021-06-13 20:53:51.892', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (106, 'go-admin/app/admin/apis.SysRole.Update-fm', '角色编辑', '/api/v1/role/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.752', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (107, 'go-admin/app/admin/apis.SysRole.Update2DataScope-fm', '角色数据权限修改', '/api/v1/roledatascope', 'BUS', 'PUT', '2021-05-13 19:59:05.803', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (108, 'go-admin/app/admin/apis.SysConfig.Update-fm', '参数编辑', '/api/v1/config/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.848', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (109, 'go-admin/app/admin/apis.SysMenu.Update-fm', '编辑菜单', '/api/v1/menu/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.891', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (110, 'go-admin/app/admin/apis.SysPost.Update-fm', '岗位编辑', '/api/v1/post/:id', 'BUS', 'PUT', '2021-05-13 19:59:05.934', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (111, 'go-admin/app/admin/apis.SysUser.UpdatePwd-fm', '*用户修改密码', '/api/v1/user/pwd', 'SYS', 'PUT', '2021-05-13 19:59:05.987', '2021-06-13 20:53:51.724', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (112, 'go-admin/common/actions.DeleteAction.func1', '分类删除', '/api/v1/syscategory', 'BUS', 'DELETE', '2021-05-13 19:59:06.030', '2021-06-13 20:53:52.237', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (113, 'go-admin/common/actions.DeleteAction.func1', '内容删除', '/api/v1/syscontent', 'BUS', 'DELETE', '2021-05-13 19:59:06.076', '2021-06-13 20:53:52.278', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (114, 'go-admin/app/admin/apis.SysLoginLog.Delete-fm', '登录日志删除', '/api/v1/sys-login-log', 'BUS', 'DELETE', '2021-05-13 19:59:06.118', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (115, 'go-admin/app/admin/apis.SysOperaLog.Delete-fm', '操作日志删除', '/api/v1/sys-opera-log', 'BUS', 'DELETE', '2021-05-13 19:59:06.162', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (116, 'go-admin/common/actions.DeleteAction.func1', 'job删除', '/api/v1/sysjob', 'BUS', 'DELETE', '2021-05-13 19:59:06.206', '2021-06-13 20:53:52.323', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (117, 'go-admin/app/other/apis.SysChinaAreaData.Delete-fm', '行政区删除', '/api/v1/sys-area-data', 'BUS', 'DELETE', '2021-05-13 19:59:06.249', '2021-06-13 20:53:52.061', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (120, 'go-admin/app/admin/apis.SysDictData.Delete-fm', '字典数据删除', '/api/v1/dict/data', 'BUS', 'DELETE', '2021-05-13 19:59:06.387', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (121, 'go-admin/app/admin/apis.SysDictType.Delete-fm', '字典类型删除', '/api/v1/dict/type', 'BUS', 'DELETE', '2021-05-13 19:59:06.432', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (122, 'go-admin/app/admin/apis.SysDept.Delete-fm', '部门删除', '/api/v1/dept/:id', 'BUS', 'DELETE', '2021-05-13 19:59:06.475', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (123, 'go-admin/app/other/apis.SysFileDir.Delete-fm', '文件夹删除', '/api/v1/file-dir/:id', 'BUS', 'DELETE', '2021-05-13 19:59:06.520', '2021-06-13 20:53:52.539', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (124, 'go-admin/app/other/apis.SysFileInfo.Delete-fm', '文件删除', '/api/v1/file-info/:id', 'BUS', 'DELETE', '2021-05-13 19:59:06.566', '2021-06-13 20:53:52.580', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (125, 'go-admin/app/admin/apis.SysConfig.Delete-fm', '参数删除', '/api/v1/config', 'BUS', 'DELETE', '2021-05-13 19:59:06.612', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (126, 'go-admin/app/admin/apis.SysMenu.Delete-fm', '删除菜单', '/api/v1/menu', 'BUS', 'DELETE', '2021-05-13 19:59:06.654', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (127, 'go-admin/app/admin/apis.SysPost.Delete-fm', '岗位删除', '/api/v1/post/:id', 'BUS', 'DELETE', '2021-05-13 19:59:06.702', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (128, 'go-admin/app/admin/apis.SysRole.Delete-fm', '角色删除', '/api/v1/role', 'BUS', 'DELETE', '2021-05-13 19:59:06.746', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (131, 'github.com/go-admin-team/go-admin-core/tools/transfer.Handler.func1', '系统指标', '/api/v1/metrics', 'SYS', 'GET', '2021-05-17 22:13:55.933', '2021-06-13 20:53:49.614', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (132, 'go-admin/app/other/router.registerMonitorRouter.func1', '健康状态', '/api/v1/health', 'SYS', 'GET', '2021-05-17 22:13:56.285', '2021-06-13 20:53:49.951', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (133, 'go-admin/app/admin/apis.HelloWorld', '项目默认接口', '/', 'SYS', 'GET', '2021-05-24 10:30:44.553', '2021-06-13 20:53:47.406', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (134, 'go-admin/app/other/apis.ServerMonitor.ServerInfo-fm', '服务器基本状态', '/api/v1/server-monitor', 'SYS', 'GET', '2021-05-24 10:30:44.937', '2021-06-13 20:53:48.255', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (135, 'go-admin/app/admin/apis.SysApi.GetPage-fm', '接口列表', '/api/v1/sys-api', 'BUS', 'GET', '2021-05-24 11:37:53.303', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (136, 'go-admin/app/admin/apis.SysApi.Get-fm', '接口通过id获取', '/api/v1/sys-api/:id', 'BUS', 'GET', '2021-05-24 11:37:53.359', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (137, 'go-admin/app/admin/apis.SysLoginLog.GetPage-fm', '登录日志列表', '/api/v1/sys-login-log', 'BUS', 'GET', '2021-05-24 11:47:30.397', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (138, 'go-admin/app/other/apis.File.UploadFile-fm', '文件上传', '/api/v1/public/uploadFile', 'SYS', 'POST', '2021-05-25 19:16:18.493', '2021-06-13 20:53:50.866', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (139, 'go-admin/app/admin/apis.SysConfig.Update2Set-fm', '参数信息修改【参数配置】', '/api/v1/set-config', 'BUS', 'PUT', '2021-05-27 09:45:14.853', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (140, 'go-admin/app/admin/apis.SysConfig.Get2Set-fm', '参数获取全部【配置使用】', '/api/v1/set-config', 'BUS', 'GET', '2021-05-27 11:54:14.384', '2021-06-17 11:48:40.732', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (141, 'go-admin/app/admin/apis.SysUser.GetPage-fm', '管理员列表', '/api/v1/sys-user', 'BUS', 'GET', '2021-06-13 19:24:57.111', '2021-06-17 20:31:14.318', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (142, 'go-admin/app/admin/apis.SysUser.Get-fm', '管理员通过id获取', '/api/v1/sys-user/:id', 'BUS', 'GET', '2021-06-13 19:24:57.188', '2021-06-17 20:31:14.318', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (143, 'go-admin/app/admin/apis/tools.(*SysTable).GetSysTablesInfo-fm', '', '/api/v1/sys/tables/info', '', 'GET', '2021-06-13 19:24:57.437', '2021-06-13 20:53:48.047', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (144, 'go-admin/app/admin/apis/tools.(*SysTable).GetSysTables-fm', '', '/api/v1/sys/tables/info/:tableId', '', 'GET', '2021-06-13 19:24:57.510', '2021-06-13 20:53:48.088', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (145, 'go-admin/app/admin/apis/tools.(*SysTable).GetSysTableList-fm', '', '/api/v1/sys/tables/page', '', 'GET', '2021-06-13 19:24:57.582', '2021-06-13 20:53:48.128', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (146, 'github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1', '', '/static/*filepath', '', 'GET', '2021-06-13 19:24:59.641', '2021-06-13 20:53:50.081', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (147, 'github.com/swaggo/gin-swagger.CustomWrapHandler.func1', '', '/swagger/*any', '', 'GET', '2021-06-13 19:24:59.713', '2021-06-13 20:53:50.123', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (148, 'github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1', '', '/form-generator/*filepath', '', 'GET', '2021-06-13 19:24:59.914', '2021-06-13 20:53:50.295', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (149, 'go-admin/app/admin/apis/tools.(*SysTable).InsertSysTable-fm', '', '/api/v1/sys/tables/info', '', 'POST', '2021-06-13 19:25:00.163', '2021-06-13 20:53:50.539', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (150, 'go-admin/app/admin/apis.SysUser.Insert-fm', '管理员创建', '/api/v1/sys-user', 'BUS', 'POST', '2021-06-13 19:25:00.233', '2021-06-17 20:31:14.318', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (151, 'go-admin/app/admin/apis.SysUser.Update-fm', '管理员编辑', '/api/v1/sys-user', 'BUS', 'PUT', '2021-06-13 19:25:00.986', '2021-06-17 20:31:14.318', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (152, 'go-admin/app/admin/apis/tools.(*SysTable).UpdateSysTable-fm', '', '/api/v1/sys/tables/info', '', 'PUT', '2021-06-13 19:25:01.149', '2021-06-13 20:53:51.375', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (153, 'go-admin/app/admin/apis.SysRole.Update2Status-fm', '', '/api/v1/role-status', '', 'PUT', '2021-06-13 19:25:01.446', '2021-06-13 20:53:51.636', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (154, 'go-admin/app/admin/apis.SysUser.ResetPwd-fm', '', '/api/v1/user/pwd/reset', '', 'PUT', '2021-06-13 19:25:01.601', '2021-06-13 20:53:51.764', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (155, 'go-admin/app/admin/apis.SysUser.UpdateStatus-fm', '', '/api/v1/user/status', '', 'PUT', '2021-06-13 19:25:01.671', '2021-06-13 20:53:51.806', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (156, 'go-admin/app/admin/apis.SysUser.Delete-fm', '管理员删除', '/api/v1/sys-user', 'BUS', 'DELETE', '2021-06-13 19:25:02.043', '2021-06-17 20:31:14.318', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (157, 'go-admin/app/admin/apis/tools.(*SysTable).DeleteSysTables-fm', '', '/api/v1/sys/tables/info/:tableId', '', 'DELETE', '2021-06-13 19:25:02.283', '2021-06-13 20:53:52.367', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (158, 'github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1', '', '/static/*filepath', '', 'HEAD', '2021-06-13 19:25:02.734', '2021-06-13 20:53:52.791', NULL, 0, 0);
INSERT INTO `sys_api` VALUES (159, 'github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1', '', '/form-generator/*filepath', '', 'HEAD', '2021-06-13 19:25:02.808', '2021-06-13 20:53:52.838', NULL, 0, 0);
COMMIT;
-- ----------------------------
-- Table structure for sys_casbin_rule
-- ----------------------------
DROP TABLE IF EXISTS `sys_casbin_rule`;
CREATE TABLE `sys_casbin_rule` (
`p_type` varchar(100) DEFAULT NULL,
`v0` varchar(100) DEFAULT NULL,
`v1` varchar(100) DEFAULT NULL,
`v2` varchar(100) DEFAULT NULL,
`v3` varchar(100) DEFAULT NULL,
`v4` varchar(100) DEFAULT NULL,
`v5` varchar(100) DEFAULT NULL,
UNIQUE KEY `idx_sys_casbin_rule` (`p_type`,`v0`,`v1`,`v2`,`v3`,`v4`,`v5`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_columns
-- ----------------------------
DROP TABLE IF EXISTS `sys_columns`;
CREATE TABLE `sys_columns` (
`column_id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_id` bigint(20) DEFAULT NULL,
`column_name` varchar(128) DEFAULT NULL,
`column_comment` varchar(128) DEFAULT NULL,
`column_type` varchar(128) DEFAULT NULL,
`go_type` varchar(128) DEFAULT NULL,
`go_field` varchar(128) DEFAULT NULL,
`json_field` varchar(128) DEFAULT NULL,
`is_pk` varchar(4) DEFAULT NULL,
`is_increment` varchar(4) DEFAULT NULL,
`is_required` varchar(4) DEFAULT NULL,
`is_insert` varchar(4) DEFAULT NULL,
`is_edit` varchar(4) DEFAULT NULL,
`is_list` varchar(4) DEFAULT NULL,
`is_query` varchar(4) DEFAULT NULL,
`query_type` varchar(128) DEFAULT NULL,
`html_type` varchar(128) DEFAULT NULL,
`dict_type` varchar(128) DEFAULT NULL,
`sort` bigint(20) DEFAULT NULL,
`list` varchar(1) DEFAULT NULL,
`pk` tinyint(1) DEFAULT NULL,
`required` tinyint(1) DEFAULT NULL,
`super_column` tinyint(1) DEFAULT NULL,
`usable_column` tinyint(1) DEFAULT NULL,
`increment` tinyint(1) DEFAULT NULL,
`insert` tinyint(1) DEFAULT NULL,
`edit` tinyint(1) DEFAULT NULL,
`query` tinyint(1) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`fk_table_name` longtext,
`fk_table_name_class` longtext,
`fk_table_name_package` longtext,
`fk_label_id` longtext,
`fk_label_name` varchar(255) DEFAULT NULL,
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`column_id`),
KEY `idx_sys_columns_create_by` (`create_by`),
KEY `idx_sys_columns_update_by` (`update_by`),
KEY `idx_sys_columns_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_columns
-- ----------------------------
BEGIN;
INSERT INTO `sys_columns` VALUES (1, 1, 'id', '', 'int(11)', 'int', 'Id', 'id', '1', '', '1', '1', '', '', '', 'EQ', 'input', '', 1, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.617', '2021-12-25 00:58:57.617', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (2, 1, 'name', '网络名称', 'varchar(255)', 'string', 'Name', 'name', '0', '', '1', '1', '', '1', '1', 'EQ', 'input', '', 2, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.619', '2021-12-25 02:00:37.530', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (3, 1, 'rpc_url', 'RPC地址', 'varchar(255)', 'string', 'RpcUrl', 'rpcUrl', '0', '', '1', '1', '', '1', '', 'EQ', 'input', '', 3, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.621', '2021-12-25 02:00:37.531', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (4, 1, 'chain_id', '链ID', 'int(11)', 'string', 'ChainId', 'chainId', '0', '', '1', '1', '', '1', '1', 'EQ', 'input', '', 4, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.622', '2021-12-25 02:00:37.533', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (5, 1, 'symbol', '代币名称', 'varchar(255)', 'string', 'Symbol', 'symbol', '0', '', '1', '1', '', '1', '', 'EQ', 'input', '', 5, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.624', '2021-12-25 02:00:37.534', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (6, 1, 'block_url', '区块浏览器', 'varchar(255)', 'string', 'BlockUrl', 'blockUrl', '0', '', '1', '1', '', '1', '', 'EQ', 'input', '', 6, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.625', '2021-12-25 02:00:37.535', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (7, 1, 'is_del', '', 'blob', 'string', 'IsDel', 'isDel', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 7, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.627', '2021-12-25 02:00:37.536', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (8, 1, 'created_at', '创建时间', 'datetime(3)', 'time.Time', 'CreatedAt', 'createdAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 8, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.628', '2021-12-25 00:58:57.628', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (9, 1, 'updated_at', '最后更新时间', 'datetime(3)', 'time.Time', 'UpdatedAt', 'updatedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 9, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.629', '2021-12-25 00:58:57.629', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (10, 1, 'deleted_at', '删除时间', 'datetime(3)', 'time.Time', 'DeletedAt', 'deletedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 10, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.630', '2021-12-25 00:58:57.630', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (11, 1, 'create_by', '创建者', 'bigint(20)', 'string', 'CreateBy', 'createBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 11, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.631', '2021-12-25 00:58:57.631', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (12, 1, 'update_by', '更新者', 'bigint(20)', 'string', 'UpdateBy', 'updateBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 12, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:58:57.632', '2021-12-25 00:58:57.632', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (13, 2, 'id', '', 'int(11)', 'int', 'Id', 'id', '1', '', '1', '1', '', '', '', 'EQ', 'input', '', 1, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:11.995', '2021-12-25 00:59:11.995', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (14, 2, 'name', 'nft name', 'varchar(255)', 'string', 'Name', 'name', '0', '', '0', '1', '', '', '1', 'EQ', 'input', '', 2, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:11.996', '2021-12-25 01:02:51.164', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (15, 2, 'symbol', 'nft symbol', 'varchar(255)', 'string', 'Symbol', 'symbol', '0', '', '0', '1', '', '', '1', 'EQ', 'input', '', 3, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.001', '2021-12-25 01:02:51.173', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (16, 2, 'address', '合约地址', 'varchar(255)', 'string', 'Address', 'address', '0', '', '0', '1', '', '', '1', 'EQ', 'input', '', 4, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.002', '2021-12-25 01:02:51.176', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (17, 2, 'type', '合约类型', 'int(3)', 'string', 'Type', 'type', '0', '', '0', '1', '', '', '1', 'EQ', 'input', 'sys_contract', 5, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.003', '2021-12-25 01:02:51.178', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (18, 2, 'network_type', '主网类型', 'varchar(255)', 'string', 'NetworkType', 'networkType', '0', '', '0', '1', '', '', '0', 'EQ', 'input', '', 6, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.004', '2021-12-25 01:02:51.181', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (19, 2, 'network_url', '主网url', 'varchar(255)', 'string', 'NetworkUrl', 'networkUrl', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 7, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.005', '2021-12-25 01:02:51.184', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (20, 2, 'verify', '是否验证', 'blob', 'string', 'Verify', 'verify', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 8, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.007', '2021-12-25 01:02:51.188', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (21, 2, 'description', '描述', 'varchar(255)', 'string', 'Description', 'description', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 9, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.008', '2021-12-25 01:02:51.191', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (22, 2, 'is_del', '软删除', 'blob', 'string', 'IsDel', 'isDel', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 10, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.009', '2021-12-25 01:02:51.193', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (23, 2, 'created_at', '创建时间', 'datetime(3)', 'time.Time', 'CreatedAt', 'createdAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 11, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.010', '2021-12-25 00:59:12.010', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (24, 2, 'updated_at', '最后更新时间', 'datetime(3)', 'time.Time', 'UpdatedAt', 'updatedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 12, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.011', '2021-12-25 00:59:12.011', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (25, 2, 'deleted_at', '删除时间', 'datetime(3)', 'time.Time', 'DeletedAt', 'deletedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 13, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.013', '2021-12-25 00:59:12.013', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (26, 2, 'create_by', '创建者', 'bigint(20)', 'string', 'CreateBy', 'createBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 14, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.014', '2021-12-25 00:59:12.014', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (27, 2, 'update_by', '更新者', 'bigint(20)', 'string', 'UpdateBy', 'updateBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 15, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.015', '2021-12-25 00:59:12.015', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (28, 3, 'id', '', 'int(11)', 'int', 'Id', 'id', '1', '', '1', '1', '', '', '', 'EQ', 'input', '', 1, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.019', '2021-12-25 00:59:12.019', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (29, 3, 'contract_id', '合约id', 'int(11)', 'int', 'ContractId', 'contractId', '1', '', '1', '1', '', '1', '1', 'EQ', 'select', '', 2, '', 1, 1, 0, 0, 0, 1, 0, 0, '', 'sys_contract', 'SysContract', 'sys-contract', 'id', 'symbol', '2021-12-25 00:59:12.020', '2021-12-25 11:14:55.371', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (30, 3, 'token_id', 'TokenID', 'int(11)', 'int', 'TokenId', 'tokenId', '1', '', '1', '1', '', '1', '1', 'EQ', 'input', '', 3, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.022', '2021-12-25 11:14:55.374', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (31, 3, 'amount', '数量', 'int(11)', 'string', 'Amount', 'amount', '0', '', '1', '1', '', '1', '0', 'EQ', 'input', '', 4, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.023', '2021-12-25 11:14:55.376', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (32, 3, 'name', '名称', 'varchar(255)', 'string', 'Name', 'name', '0', '', '1', '1', '', '1', '', 'EQ', 'input', '', 5, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.024', '2021-12-25 11:14:55.377', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (33, 3, 'description', '描述', 'text', 'string', 'Description', 'description', '0', '', '1', '1', '', '', '', 'EQ', 'input', '', 6, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.025', '2021-12-25 11:14:55.379', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (34, 3, 'properties', '属性', 'varchar(255)', 'string', 'Properties', 'properties', '0', '', '1', '1', '', '', '', 'EQ', 'input', '', 7, '', 0, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.027', '2021-12-25 11:14:55.381', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (35, 3, 'img_url', '图标地址', 'varchar(255)', 'string', 'ImgUrl', 'imgUrl', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 8, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.028', '2021-12-25 11:14:55.383', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (36, 3, 'creator', '拥有者', 'varchar(255)', 'string', 'Creator', 'creator', '0', '', '0', '1', '', '1', '1', 'EQ', 'input', '', 9, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.029', '2021-12-25 11:14:55.384', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (37, 3, 'tx_hash', '区块hash', 'varchar(255)', 'string', 'TxHash', 'txHash', '0', '', '0', '0', '', '1', '', 'EQ', 'input', '', 10, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.030', '2021-12-25 11:14:55.386', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (38, 3, 'metadata_url', '资源url', 'varchar(255)', 'string', 'MetadataUrl', 'metadataUrl', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 11, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.031', '2021-12-25 11:14:55.387', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (39, 3, 'metadata_content', '资源内容', 'varchar(255)', 'string', 'MetadataContent', 'metadataContent', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 12, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.032', '2021-12-25 11:14:55.388', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (40, 3, 'is_sync', '铸币状态', 'blob', 'string', 'IsSync', 'isSync', '0', '', '1', '0', '', '1', '', 'EQ', 'select', 'token_sync', 13, '', 0, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.033', '2021-12-25 11:14:55.389', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (41, 3, 'is_del', '', 'blob', 'string', 'IsDel', 'isDel', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 14, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.034', '2021-12-25 11:14:55.391', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (42, 3, 'created_at', '创建时间', 'datetime(3)', 'time.Time', 'CreatedAt', 'createdAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 15, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.035', '2021-12-25 00:59:12.035', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (43, 3, 'updated_at', '最后更新时间', 'datetime(3)', 'time.Time', 'UpdatedAt', 'updatedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 16, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.036', '2021-12-25 00:59:12.036', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (44, 3, 'deleted_at', '删除时间', 'datetime(3)', 'time.Time', 'DeletedAt', 'deletedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 17, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.037', '2021-12-25 00:59:12.037', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (45, 3, 'create_by', '创建者', 'bigint(20)', 'string', 'CreateBy', 'createBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 18, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.039', '2021-12-25 00:59:12.039', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (46, 3, 'update_by', '更新者', 'bigint(20)', 'string', 'UpdateBy', 'updateBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 19, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 00:59:12.040', '2021-12-25 00:59:12.040', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (47, 4, 'id', '', 'int(11)', 'int', 'Id', 'id', '1', '', '1', '1', '', '', '', 'EQ', 'input', '', 1, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.047', '2021-12-25 01:03:46.047', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (48, 4, 'name', 'name', 'varchar(255)', 'string', 'Name', 'name', '0', '', '0', '1', '', '1', '1', 'EQ', 'input', '', 2, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.049', '2021-12-25 12:25:09.606', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (49, 4, 'symbol', 'symbol', 'varchar(255)', 'string', 'Symbol', 'symbol', '0', '', '0', '1', '', '1', '1', 'EQ', 'input', '', 3, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.050', '2021-12-25 12:25:09.608', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (50, 4, 'address', '合约地址', 'varchar(255)', 'string', 'Address', 'address', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 4, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.051', '2021-12-25 12:25:09.609', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (51, 4, 'type', '合约类型', 'int(3)', 'string', 'Type', 'type', '0', '', '0', '1', '', '1', '1', 'EQ', 'select', 'sys_contract', 5, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.053', '2021-12-25 12:25:09.610', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (52, 4, 'network_id', '主网类型', 'int(11)', 'string', 'NetworkId', 'networkId', '0', '', '0', '1', '', '1', '1', 'EQ', 'select', '', 6, '', 0, 0, 0, 0, 0, 1, 0, 0, '', 'sys_network', 'SysNetwork', 'sys-network', 'id', 'name', '2021-12-25 01:03:46.054', '2021-12-25 12:25:09.611', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (54, 4, 'verify', '是否验证', 'blob', 'string', 'Verify', 'verify', '0', '', '0', '1', '', '1', '', 'EQ', 'select', 'contract_verify', 8, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.056', '2021-12-25 12:25:09.613', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (55, 4, 'description', '描述', 'varchar(255)', 'string', 'Description', 'description', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 9, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.057', '2021-12-25 12:25:09.614', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (56, 4, 'is_del', '软删除', 'blob', 'string', 'IsDel', 'isDel', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 10, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.058', '2021-12-25 12:25:09.616', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (57, 4, 'created_at', '创建时间', 'datetime(3)', 'time.Time', 'CreatedAt', 'createdAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 11, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.059', '2021-12-25 01:03:46.059', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (58, 4, 'updated_at', '最后更新时间', 'datetime(3)', 'time.Time', 'UpdatedAt', 'updatedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 12, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.060', '2021-12-25 01:03:46.060', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (59, 4, 'deleted_at', '删除时间', 'datetime(3)', 'time.Time', 'DeletedAt', 'deletedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 13, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.060', '2021-12-25 01:03:46.060', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (60, 4, 'create_by', '创建者', 'bigint(20)', 'string', 'CreateBy', 'createBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 14, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.062', '2021-12-25 01:03:46.062', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (61, 4, 'update_by', '更新者', 'bigint(20)', 'string', 'UpdateBy', 'updateBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 15, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 01:03:46.064', '2021-12-25 01:03:46.064', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (62, 5, 'id', '', 'int(11)', 'int', 'Id', 'id', '1', '', '1', '1', '', '', '', 'EQ', 'input', '', 1, '', 1, 1, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.186', '2021-12-25 20:08:10.186', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (63, 5, 'name', '网络名称', 'varchar(255)', 'string', 'Name', 'name', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 2, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.190', '2021-12-25 20:10:25.101', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (64, 5, 'rpc_url', 'RPC地址', 'varchar(255)', 'string', 'RpcUrl', 'rpcUrl', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 3, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.191', '2021-12-25 20:10:25.103', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (65, 5, 'chain_id', '链ID', 'int(11)', 'string', 'ChainId', 'chainId', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 4, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.193', '2021-12-25 20:10:25.105', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (66, 5, 'symbol', '代币名称', 'varchar(255)', 'string', 'Symbol', 'symbol', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 5, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.196', '2021-12-25 20:10:25.106', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (67, 5, 'block_url', '区块浏览器', 'varchar(255)', 'string', 'BlockUrl', 'blockUrl', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 6, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.197', '2021-12-25 20:10:25.108', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (68, 5, 'ipfs_bind_dir', 'IPFS目录', 'varchar(255)', 'string', 'IpfsBindDir', 'ipfsBindDir', '0', '', '0', '1', '', '1', '', 'EQ', 'input', '', 7, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.198', '2021-12-25 20:10:25.110', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (69, 5, 'ipfs_is_push', 'IPFS初始化', 'blob', 'string', 'IpfsIsPush', 'ipfsIsPush', '0', '', '0', '1', '', '1', '', 'EQ', 'select', 'ipfs_network_init', 8, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.199', '2021-12-25 20:10:25.111', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (70, 5, 'is_del', '', 'blob', 'string', 'IsDel', 'isDel', '0', '', '0', '0', '', '', '', 'EQ', 'input', '', 9, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.200', '2021-12-25 20:10:25.114', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (71, 5, 'created_at', '创建时间', 'datetime(3)', 'time.Time', 'CreatedAt', 'createdAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 10, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.201', '2021-12-25 20:08:10.201', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (72, 5, 'updated_at', '最后更新时间', 'datetime(3)', 'time.Time', 'UpdatedAt', 'updatedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 11, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.202', '2021-12-25 20:08:10.202', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (73, 5, 'deleted_at', '删除时间', 'datetime(3)', 'time.Time', 'DeletedAt', 'deletedAt', '0', '', '0', '1', '', '', '', 'EQ', 'datetime', '', 12, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.203', '2021-12-25 20:08:10.203', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (74, 5, 'create_by', '创建者', 'bigint(20)', 'string', 'CreateBy', 'createBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 13, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.204', '2021-12-25 20:08:10.204', NULL, 0, 0);
INSERT INTO `sys_columns` VALUES (75, 5, 'update_by', '更新者', 'bigint(20)', 'string', 'UpdateBy', 'updateBy', '0', '', '0', '1', '', '', '', 'EQ', 'input', '', 14, '', 0, 0, 0, 0, 0, 1, 0, 0, '', '', '', '', '', '', '2021-12-25 20:08:10.205', '2021-12-25 20:08:10.205', NULL, 0, 0);
COMMIT;
-- ----------------------------
-- Table structure for sys_config
-- ----------------------------
DROP TABLE IF EXISTS `sys_config`;
CREATE TABLE `sys_config` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键编码',
`config_name` varchar(128) DEFAULT NULL COMMENT 'ConfigName',
`config_key` varchar(128) DEFAULT NULL COMMENT 'ConfigKey',
`config_value` varchar(255) DEFAULT NULL COMMENT 'ConfigValue',
`config_type` varchar(64) DEFAULT NULL COMMENT 'ConfigType',
`is_frontend` varchar(64) DEFAULT NULL COMMENT '是否前台',
`remark` varchar(128) DEFAULT NULL COMMENT 'Remark',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`id`),
KEY `idx_sys_config_deleted_at` (`deleted_at`),
KEY `idx_sys_config_create_by` (`create_by`),
KEY `idx_sys_config_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_config
-- ----------------------------
BEGIN;
INSERT INTO `sys_config` VALUES (1, '皮肤样式', 'sys_index_skinName', 'skin-green', 'Y', '0', '主框架页-默认皮肤样式名称:蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow', 1, 1, '2021-05-13 19:56:37.913', '2021-06-05 13:50:13.123', NULL);
INSERT INTO `sys_config` VALUES (2, '初始密码', 'sys_user_initPassword', '<PASSWORD>', 'Y', '0', '用户管理-账号初始密码:<PASSWORD>', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
INSERT INTO `sys_config` VALUES (3, '侧栏主题', 'sys_index_sideTheme', 'theme-dark', 'Y', '0', '主框架页-侧边栏主题:深色主题theme-dark,浅色主题theme-light', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
INSERT INTO `sys_config` VALUES (4, '系统名称', 'sys_app_name', 'nft铸币系统', 'Y', '1', '', 1, 0, '2021-03-17 08:52:06.067', '2021-12-25 00:59:51.256', NULL);
INSERT INTO `sys_config` VALUES (5, '系统logo', 'sys_app_logo', 'https://gitee.com/mydearzwj/image/raw/master/img/go-admin.png', 'Y', '1', '', 1, 0, '2021-03-17 08:53:19.462', '2021-03-17 08:53:19.462', NULL);
INSERT INTO `sys_config` VALUES (6, 'IPFS地址', 'ipfs_url', 'http://127.0.0.1:8080/ipfs/', 'Y', '0', '', 1, 1, '2021-03-17 08:53:19.462', '2021-12-25 22:46:33.131', NULL);
INSERT INTO `sys_config` VALUES (7, 'IPFS IP', 'ipfs_ip', '127.0.0.1', 'Y', '0', '', 1, 1, '2021-03-17 08:53:19.462', '2021-12-25 22:46:33.117', NULL);
INSERT INTO `sys_config` VALUES (8, 'IPFS端口', 'ipfs_port', '5001', 'Y', '0', '', 1, 1, '2021-03-17 08:53:19.462', '2021-12-25 02:32:35.824', NULL);
INSERT INTO `sys_config` VALUES (9, '私钥', 'eth_private', '2fa6cbab9d2c34246f3bf5cb9edfedee1c5ca5d62d3bd90ff8ae737b46d73dcc', 'Y', '0', '', 1, 1, '2021-03-17 08:53:19.462', '2021-12-28 17:50:58.916', NULL);
INSERT INTO `sys_config` VALUES (10, '最大发行量', 'token_amount', '100', 'Y', '0', '', 1, 1, '2021-03-17 08:53:19.462', '2021-12-28 17:50:58.911', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_contract
-- ----------------------------
DROP TABLE IF EXISTS `sys_contract`;
CREATE TABLE `sys_contract` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT 'name',
`symbol` varchar(255) DEFAULT NULL COMMENT 'symbol',
`address` varchar(255) DEFAULT NULL COMMENT '合约地址',
`type` int(3) DEFAULT NULL COMMENT '0:erc20 1:erc721 2:erc1155',
`network_id` int(11) DEFAULT NULL COMMENT '主网类型',
`verify` blob COMMENT '是否验证',
`description` varchar(255) DEFAULT NULL COMMENT '描述',
`is_del` blob COMMENT '软删除',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COMMENT='合约';
-- ----------------------------
-- Records of sys_contract
-- ----------------------------
BEGIN;
INSERT INTO `sys_contract` VALUES (1, 'ss', 'ss', '0xeA5b3D86c3B2246288F594ed7b7072B5839f9aeB', 3, 5, 0x30, '', '', '2021-12-25 02:23:44.319', '2021-12-25 13:11:06.179', NULL, 0, 0);
COMMIT;
-- ----------------------------
-- Table structure for sys_contract_token
-- ----------------------------
DROP TABLE IF EXISTS `sys_contract_token`;
CREATE TABLE `sys_contract_token` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contract_id` int(11) NOT NULL COMMENT '合约id',
`token_id` decimal(50,0) unsigned NOT NULL COMMENT 'TokenID',
`amount` int(11) NOT NULL COMMENT '数量',
`stock` int(11) NOT NULL COMMENT '库存',
`name` varchar(255) NOT NULL COMMENT '名称',
`description` text NOT NULL COMMENT '描述',
`properties` varchar(255) DEFAULT NULL COMMENT '属性',
`img_url` varchar(255) NOT NULL COMMENT '图标地址',
`creator` varchar(255) NOT NULL COMMENT '拥有者',
`tx_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '区块hash',
`metadata_url` varchar(255) NOT NULL COMMENT '资源url',
`metadata_content` text NOT NULL COMMENT '资源内容',
`is_sync` tinyint(3) unsigned DEFAULT '0' COMMENT '是否已发布',
`is_del` blob,
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`copyright_owner` varchar(255) DEFAULT NULL COMMENT '版权方',
`author` varchar(255) DEFAULT NULL COMMENT '著作人',
`issuer` varchar(255) DEFAULT NULL COMMENT '发行方',
`issuer_date` datetime(3) DEFAULT NULL COMMENT '发行日期',
`token_cid` varchar(255) DEFAULT NULL COMMENT 'IPFS存储哈希',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COMMENT='合约token';
-- ----------------------------
-- Table structure for sys_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_dept`;
CREATE TABLE `sys_dept` (
`dept_id` bigint(20) NOT NULL AUTO_INCREMENT,
`parent_id` bigint(20) DEFAULT NULL,
`dept_path` varchar(255) DEFAULT NULL,
`dept_name` varchar(128) DEFAULT NULL,
`sort` tinyint(4) DEFAULT NULL,
`leader` varchar(128) DEFAULT NULL,
`phone` varchar(11) DEFAULT NULL,
`email` varchar(64) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`dept_id`),
KEY `idx_sys_dept_create_by` (`create_by`),
KEY `idx_sys_dept_update_by` (`update_by`),
KEY `idx_sys_dept_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_dept
-- ----------------------------
BEGIN;
INSERT INTO `sys_dept` VALUES (1, 0, '/0/1/', '爱拓科技', 0, 'aituo', '13782218188', '<EMAIL>', 2, 1, 1, '2021-05-13 19:56:37.913', '2021-06-05 17:06:44.960', NULL);
INSERT INTO `sys_dept` VALUES (7, 1, '/0/1/7/', '研发部', 1, 'aituo', '13782218188', '<EMAIL>', 2, 1, 1, '2021-05-13 19:56:37.913', '2021-06-16 21:35:00.109', NULL);
INSERT INTO `sys_dept` VALUES (8, 1, '/0/1/8/', '运维部', 0, 'aituo', '13782218188', '<EMAIL>', 2, 1, 1, '2021-05-13 19:56:37.913', '2021-06-16 21:41:39.747', NULL);
INSERT INTO `sys_dept` VALUES (9, 1, '/0/1/9/', '客服部', 0, 'aituo', '13782218188', '<EMAIL>', 2, 1, 1, '2021-05-13 19:56:37.913', '2021-06-05 17:07:05.993', NULL);
INSERT INTO `sys_dept` VALUES (10, 1, '/0/1/10/', '人力资源', 3, 'aituo', '13782218188', '<EMAIL>', 1, 1, 1, '2021-05-13 19:56:37.913', '2021-06-05 17:07:08.503', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_dict_data
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_data`;
CREATE TABLE `sys_dict_data` (
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT,
`dict_sort` bigint(20) DEFAULT NULL,
`dict_label` varchar(128) DEFAULT NULL,
`dict_value` varchar(255) DEFAULT NULL,
`dict_type` varchar(64) DEFAULT NULL,
`css_class` varchar(128) DEFAULT NULL,
`list_class` varchar(128) DEFAULT NULL,
`is_default` varchar(8) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`default` varchar(8) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`dict_code`),
KEY `idx_sys_dict_data_create_by` (`create_by`),
KEY `idx_sys_dict_data_update_by` (`update_by`),
KEY `idx_sys_dict_data_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_dict_data
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_data` VALUES (1, 0, '正常', '2', 'sys_normal_disable', '', '', '', 2, '', '系统正常', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:40.168', NULL);
INSERT INTO `sys_dict_data` VALUES (2, 0, '停用', '1', 'sys_normal_disable', '', '', '', 2, '', '系统停用', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (3, 0, '男', '0', 'sys_user_sex', '', '', '', 2, '', '性别男', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (4, 0, '女', '1', 'sys_user_sex', '', '', '', 2, '', '性别女', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (5, 0, '未知', '2', 'sys_user_sex', '', '', '', 2, '', '性别未知', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (6, 0, '显示', '0', 'sys_show_hide', '', '', '', 2, '', '显示菜单', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (7, 0, '隐藏', '1', 'sys_show_hide', '', '', '', 2, '', '隐藏菜单', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (8, 0, '是', 'Y', 'sys_yes_no', '', '', '', 2, '', '系统默认是', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (9, 0, '否', 'N', 'sys_yes_no', '', '', '', 2, '', '系统默认否', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (10, 0, '正常', '2', 'sys_job_status', '', '', '', 2, '', '正常状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (11, 0, '停用', '1', 'sys_job_status', '', '', '', 2, '', '停用状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (12, 0, '默认', 'DEFAULT', 'sys_job_group', '', '', '', 2, '', '默认分组', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (13, 0, '系统', 'SYSTEM', 'sys_job_group', '', '', '', 2, '', '系统分组', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (14, 0, '通知', '1', 'sys_notice_type', '', '', '', 2, '', '通知', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (15, 0, '公告', '2', 'sys_notice_type', '', '', '', 2, '', '公告', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (16, 0, '正常', '2', 'sys_common_status', '', '', '', 2, '', '正常状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (17, 0, '关闭', '1', 'sys_common_status', '', '', '', 2, '', '关闭状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (18, 0, '新增', '1', 'sys_oper_type', '', '', '', 2, '', '新增操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (19, 0, '修改', '2', 'sys_oper_type', '', '', '', 2, '', '修改操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (20, 0, '删除', '3', 'sys_oper_type', '', '', '', 2, '', '删除操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (21, 0, '授权', '4', 'sys_oper_type', '', '', '', 2, '', '授权操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (22, 0, '导出', '5', 'sys_oper_type', '', '', '', 2, '', '导出操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (23, 0, '导入', '6', 'sys_oper_type', '', '', '', 2, '', '导入操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (24, 0, '强退', '7', 'sys_oper_type', '', '', '', 2, '', '强退操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (25, 0, '生成代码', '8', 'sys_oper_type', '', '', '', 2, '', '生成操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (26, 0, '清空数据', '9', 'sys_oper_type', '', '', '', 2, '', '清空操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (27, 0, '成功', '0', 'sys_notice_status', '', '', '', 2, '', '成功状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (28, 0, '失败', '1', 'sys_notice_status', '', '', '', 2, '', '失败状态', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (29, 0, '登录', '10', 'sys_oper_type', '', '', '', 2, '', '登录操作', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (30, 0, '退出', '11', 'sys_oper_type', '', '', '', 2, '', '', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (31, 0, '获取验证码', '12', 'sys_oper_type', '', '', '', 2, '', '获取验证码', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_data` VALUES (32, 0, '正常', '1', 'sys_content_status', '', '', '', 1, '', '', 1, 1, '2021-05-13 19:56:40.845', '2021-05-13 19:56:40.845', NULL);
INSERT INTO `sys_dict_data` VALUES (33, 1, '禁用', '2', 'sys_content_status', '', '', '', 1, '', '', 1, 1, '2021-05-13 19:56:40.845', '2021-05-13 19:56:40.845', NULL);
INSERT INTO `sys_dict_data` VALUES (34, 0, 'ERC20', '1', 'sys_contract', '', '', '', 2, '', '', 0, 0, '2021-12-25 01:00:31.864', '2021-12-25 01:00:31.864', NULL);
INSERT INTO `sys_dict_data` VALUES (35, 0, 'ERC721', '2', 'sys_contract', '', '', '', 2, '', '', 0, 0, '2021-12-25 01:00:38.005', '2021-12-25 01:00:38.005', NULL);
INSERT INTO `sys_dict_data` VALUES (36, 0, 'ERC1155', '3', 'sys_contract', '', '', '', 2, '', '', 0, 0, '2021-12-25 01:00:44.607', '2021-12-25 01:00:44.607', NULL);
INSERT INTO `sys_dict_data` VALUES (40, 0, '未验证', '0', 'contract_verify', NULL, NULL, NULL, 2, NULL, NULL, 0, 0, '2021-12-25 01:56:46.243', '2021-12-25 01:56:46.243', NULL);
INSERT INTO `sys_dict_data` VALUES (41, 0, '已验证', '1', 'contract_verify', NULL, NULL, NULL, 2, NULL, NULL, 0, 0, '2021-12-25 01:56:46.243', '2021-12-25 01:56:46.243', NULL);
INSERT INTO `sys_dict_data` VALUES (42, 0, '待发布', '0', 'token_sync', '', '', '', 2, '', '', 0, 0, '2021-12-25 02:35:17.273', '2021-12-25 02:35:17.273', NULL);
INSERT INTO `sys_dict_data` VALUES (43, 0, '已发布', '1', 'token_sync', '', '', '', 2, '', '', 0, 0, '2021-12-25 02:35:23.566', '2021-12-25 02:35:23.566', NULL);
INSERT INTO `sys_dict_data` VALUES (44, 0, '已创建', '1', 'ipfs_network_init', '', '', '', 2, '', '', 0, 0, '2021-12-25 20:10:01.473', '2021-12-25 20:10:01.473', NULL);
INSERT INTO `sys_dict_data` VALUES (45, 0, '未创建', '0', 'ipfs_network_init', '', '', '', 2, '', '', 0, 0, '2021-12-25 20:10:07.382', '2021-12-25 20:10:07.382', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_dict_type
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict_type`;
CREATE TABLE `sys_dict_type` (
`dict_id` bigint(20) NOT NULL AUTO_INCREMENT,
`dict_name` varchar(128) DEFAULT NULL,
`dict_type` varchar(128) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`dict_id`),
KEY `idx_sys_dict_type_deleted_at` (`deleted_at`),
KEY `idx_sys_dict_type_create_by` (`create_by`),
KEY `idx_sys_dict_type_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_dict_type
-- ----------------------------
BEGIN;
INSERT INTO `sys_dict_type` VALUES (1, '系统开关', 'sys_normal_disable', 2, '系统开关列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (2, '用户性别', 'sys_user_sex', 2, '用户性别列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (3, '菜单状态', 'sys_show_hide', 2, '菜单状态列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (4, '系统是否', 'sys_yes_no', 2, '系统是否列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (5, '任务状态', 'sys_job_status', 2, '任务状态列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (6, '任务分组', 'sys_job_group', 2, '任务分组列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (7, '通知类型', 'sys_notice_type', 2, '通知类型列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (8, '系统状态', 'sys_common_status', 2, '登录状态列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (9, '操作类型', 'sys_oper_type', 2, '操作类型列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (10, '通知状态', 'sys_notice_status', 2, '通知状态列表', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:37.914', NULL);
INSERT INTO `sys_dict_type` VALUES (11, '内容状态', 'sys_content_status', 2, '', 1, 1, '2021-05-13 19:56:40.813', '2021-05-13 19:56:40.813', NULL);
INSERT INTO `sys_dict_type` VALUES (12, '合约类型', 'sys_contract', 2, '', 1, 1, '2021-12-25 01:00:17.972', '2021-12-25 01:00:17.972', NULL);
INSERT INTO `sys_dict_type` VALUES (13, '合约验证', 'contract_verify', 2, '合约是否开源', 1, 1, '2021-12-25 01:56:24.970', '2021-12-25 01:56:24.970', NULL);
INSERT INTO `sys_dict_type` VALUES (14, '代币发布状态', 'token_sync', 2, '', 0, 0, '2021-12-25 02:34:53.753', '2021-12-25 02:34:53.753', NULL);
INSERT INTO `sys_dict_type` VALUES (15, 'IPFS主网初始化', 'ipfs_network_init', 2, '', 0, 0, '2021-12-25 20:09:41.194', '2021-12-25 20:09:41.194', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_job
-- ----------------------------
DROP TABLE IF EXISTS `sys_job`;
CREATE TABLE `sys_job` (
`job_id` bigint(20) NOT NULL AUTO_INCREMENT,
`job_name` varchar(255) DEFAULT NULL,
`job_group` varchar(255) DEFAULT NULL,
`job_type` tinyint(4) DEFAULT NULL,
`cron_expression` varchar(255) DEFAULT NULL,
`invoke_target` varchar(255) DEFAULT NULL,
`args` varchar(255) DEFAULT NULL,
`misfire_policy` bigint(20) DEFAULT NULL,
`concurrent` tinyint(4) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`entry_id` smallint(6) DEFAULT NULL,
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`job_id`),
KEY `idx_sys_job_create_by` (`create_by`),
KEY `idx_sys_job_update_by` (`update_by`),
KEY `idx_sys_job_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_job
-- ----------------------------
BEGIN;
INSERT INTO `sys_job` VALUES (1, '接口测试', 'DEFAULT', 1, '0/5 * * * * ', 'http://localhost:8000', '', 1, 1, 1, 0, '2021-05-13 19:56:37.914', '2021-06-14 20:59:55.417', NULL, 1, 1);
INSERT INTO `sys_job` VALUES (2, '函数测试', 'DEFAULT', 2, '0/5 * * * * ', 'ExamplesOne', '参数', 1, 1, 1, 0, '2021-05-13 19:56:37.914', '2021-05-31 23:55:37.221', NULL, 1, 1);
COMMIT;
-- ----------------------------
-- Table structure for sys_login_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_login_log`;
CREATE TABLE `sys_login_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键编码',
`username` varchar(128) DEFAULT NULL COMMENT '用户名',
`status` varchar(4) DEFAULT NULL COMMENT '状态',
`ipaddr` varchar(255) DEFAULT NULL COMMENT 'ip地址',
`login_location` varchar(255) DEFAULT NULL COMMENT '归属地',
`browser` varchar(255) DEFAULT NULL COMMENT '浏览器',
`os` varchar(255) DEFAULT NULL COMMENT '系统',
`platform` varchar(255) DEFAULT NULL COMMENT '固件',
`login_time` timestamp NULL DEFAULT NULL COMMENT '登录时间',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`msg` varchar(255) DEFAULT NULL COMMENT '信息',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`),
KEY `idx_sys_login_log_create_by` (`create_by`),
KEY `idx_sys_login_log_update_by` (`update_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu` (
`menu_id` bigint(20) NOT NULL AUTO_INCREMENT,
`menu_name` varchar(128) DEFAULT NULL,
`title` varchar(128) DEFAULT NULL,
`icon` varchar(128) DEFAULT NULL,
`path` varchar(128) DEFAULT NULL,
`paths` varchar(128) DEFAULT NULL,
`menu_type` varchar(1) DEFAULT NULL,
`action` varchar(16) DEFAULT NULL,
`permission` varchar(255) DEFAULT NULL,
`parent_id` smallint(6) DEFAULT NULL,
`no_cache` tinyint(1) DEFAULT NULL,
`breadcrumb` varchar(255) DEFAULT NULL,
`component` varchar(255) DEFAULT NULL,
`sort` tinyint(4) DEFAULT NULL,
`visible` varchar(1) DEFAULT NULL,
`is_frame` varchar(1) DEFAULT '0',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`menu_id`),
KEY `idx_sys_menu_deleted_at` (`deleted_at`),
KEY `idx_sys_menu_create_by` (`create_by`),
KEY `idx_sys_menu_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=581 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_menu
-- ----------------------------
BEGIN;
INSERT INTO `sys_menu` VALUES (2, 'Admin', '系统管理', 'api-server', '/admin', '/0/2', 'M', '无', '', 0, 1, '', 'Layout', 0, '0', '1', 0, 1, '2021-05-20 21:58:45.679', '2021-12-25 01:16:37.493', NULL);
INSERT INTO `sys_menu` VALUES (3, 'SysUserManage', '用户管理', 'user', '/admin/sys-user', '/0/2/3', 'C', '无', 'admin:sysUser:list', 2, 0, '', '/admin/sys-user/index', 10, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 20:31:14.305', NULL);
INSERT INTO `sys_menu` VALUES (43, '', '新增管理员', 'app-group-fill', '', '/0/2/3/43', 'F', 'POST', 'admin:sysUser:add', 3, 0, '', '', 10, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 20:31:14.305', NULL);
INSERT INTO `sys_menu` VALUES (44, '', '查询管理员', 'app-group-fill', '', '/0/2/3/44', 'F', 'GET', 'admin:sysUser:query', 3, 0, '', '', 40, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 20:31:14.305', NULL);
INSERT INTO `sys_menu` VALUES (45, '', '修改管理员', 'app-group-fill', '', '/0/2/3/45', 'F', 'PUT', 'admin:sysUser:edit', 3, 0, '', '', 30, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 20:31:14.305', NULL);
INSERT INTO `sys_menu` VALUES (46, '', '删除管理员', 'app-group-fill', '', '/0/2/3/46', 'F', 'DELETE', 'admin:sysUser:remove', 3, 0, '', '', 20, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 20:31:14.305', NULL);
INSERT INTO `sys_menu` VALUES (51, 'SysMenuManage', '菜单管理', 'tree-table', '/admin/sys-menu', '/0/2/51', 'C', '无', 'admin:sysMenu:list', 2, 1, '', '/admin/sys-menu/index', 30, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (52, 'SysRoleManage', '角色管理', 'peoples', '/admin/sys-role', '/0/2/52', 'C', '无', 'admin:sysRole:list', 2, 1, '', '/admin/sys-role/index', 20, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (56, 'SysDeptManage', '部门管理', 'tree', '/admin/sys-dept', '/0/2/56', 'C', '无', 'admin:sysDept:list', 2, 0, '', '/admin/sys-dept/index', 40, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (57, 'SysPostManage', '岗位管理', 'pass', '/admin/sys-post', '/0/2/57', 'C', '无', 'admin:sysPost:list', 2, 0, '', '/admin/sys-post/index', 50, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (58, 'Dict', '字典管理', 'education', '/admin/dict', '/0/2/58', 'C', '无', 'admin:sysDictType:list', 2, 0, '', '/admin/dict/index', 60, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (59, 'SysDictDataManage', '字典数据', 'education', '/admin/dict/data/:dictId', '/0/2/59', 'C', '无', 'admin:sysDictData:list', 2, 0, '', '/admin/dict/data', 100, '1', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (60, 'Tools', '开发工具', 'dev-tools', '/dev-tools', '/0/60', 'M', '无', '', 0, 0, '', 'Layout', 40, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (61, 'Swagger', '系统接口', 'guide', '/dev-tools/swagger', '/0/60/61', 'C', '无', '', 60, 0, '', '/dev-tools/swagger/index', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (62, 'SysConfigManage', '参数管理', 'swagger', '/admin/sys-config', '/0/2/62', 'C', '无', 'admin:sysConfig:list', 2, 0, '', '/admin/sys-config/index', 70, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (211, 'Log', '日志管理', 'log', '/log', '/0/2/211', 'M', '', '', 2, 0, '', '/log/index', 80, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (212, 'SysLoginLogManage', '登录日志', 'logininfor', '/admin/sys-login-log', '/0/2/211/212', 'C', '', 'admin:sysLoginLog:list', 211, 0, '', '/admin/sys-login-log/index', 1, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (216, 'OperLog', '操作日志', 'skill', '/admin/sys-oper-log', '/0/2/211/216', 'C', '', 'admin:sysOperLog:list', 211, 0, '', '/admin/sys-oper-log/index', 1, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (220, '', '新增菜单', 'app-group-fill', '', '/0/2/51/220', 'F', '', 'admin:sysMenu:add', 51, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (221, '', '修改菜单', 'app-group-fill', '', '/0/2/51/221', 'F', '', 'admin:sysMenu:edit', 51, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (222, '', '查询菜单', 'app-group-fill', '', '/0/2/51/222', 'F', '', 'admin:sysMenu:query', 51, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (223, '', '删除菜单', 'app-group-fill', '', '/0/2/51/223', 'F', '', 'admin:sysMenu:remove', 51, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (224, '', '新增角色', 'app-group-fill', '', '/0/2/52/224', 'F', '', 'admin:sysRole:add', 52, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (225, '', '查询角色', 'app-group-fill', '', '/0/2/52/225', 'F', '', 'admin:sysRole:query', 52, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (226, '', '修改角色', 'app-group-fill', '', '/0/2/52/226', 'F', '', 'admin:sysRole:update', 52, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (227, '', '删除角色', 'app-group-fill', '', '/0/2/52/227', 'F', '', 'admin:sysRole:remove', 52, 0, '', '', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (228, '', '查询部门', 'app-group-fill', '', '/0/2/56/228', 'F', '', 'admin:sysDept:query', 56, 0, '', '', 40, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (229, '', '新增部门', 'app-group-fill', '', '/0/2/56/229', 'F', '', 'admin:sysDept:add', 56, 0, '', '', 10, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (230, '', '修改部门', 'app-group-fill', '', '/0/2/56/230', 'F', '', 'admin:sysDept:edit', 56, 0, '', '', 30, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (231, '', '删除部门', 'app-group-fill', '', '/0/2/56/231', 'F', '', 'admin:sysDept:remove', 56, 0, '', '', 20, '0', '1', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (232, '', '查询岗位', 'app-group-fill', '', '/0/2/57/232', 'F', '', 'admin:sysPost:query', 57, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (233, '', '新增岗位', 'app-group-fill', '', '/0/2/57/233', 'F', '', 'admin:sysPost:add', 57, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (234, '', '修改岗位', 'app-group-fill', '', '/0/2/57/234', 'F', '', 'admin:sysPost:edit', 57, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (235, '', '删除岗位', 'app-group-fill', '', '/0/2/57/235', 'F', '', 'admin:sysPost:remove', 57, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (236, '', '查询字典', 'app-group-fill', '', '/0/2/58/236', 'F', '', 'admin:sysDictType:query', 58, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (237, '', '新增类型', 'app-group-fill', '', '/0/2/58/237', 'F', '', 'admin:sysDictType:add', 58, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (238, '', '修改类型', 'app-group-fill', '', '/0/2/58/238', 'F', '', 'admin:sysDictType:edit', 58, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (239, '', '删除类型', 'app-group-fill', '', '/0/2/58/239', 'F', '', 'system:sysdicttype:remove', 58, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (240, '', '查询数据', 'app-group-fill', '', '/0/2/59/240', 'F', '', 'admin:sysDictData:query', 59, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (241, '', '新增数据', 'app-group-fill', '', '/0/2/59/241', 'F', '', 'admin:sysDictData:add', 59, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (242, '', '修改数据', 'app-group-fill', '', '/0/2/59/242', 'F', '', 'admin:sysDictData:edit', 59, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (243, '', '删除数据', 'app-group-fill', '', '/0/2/59/243', 'F', '', 'admin:sysDictData:remove', 59, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (244, '', '查询参数', 'app-group-fill', '', '/0/2/62/244', 'F', '', 'admin:sysConfig:query', 62, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (245, '', '新增参数', 'app-group-fill', '', '/0/2/62/245', 'F', '', 'admin:sysConfig:add', 62, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (246, '', '修改参数', 'app-group-fill', '', '/0/2/62/246', 'F', '', 'admin:sysConfig:edit', 62, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (247, '', '删除参数', 'app-group-fill', '', '/0/2/62/247', 'F', '', 'admin:sysConfig:remove', 62, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (248, '', '查询登录日志', 'app-group-fill', '', '/0/2/211/212/248', 'F', '', 'admin:sysLoginLog:query', 212, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (249, '', '删除登录日志', 'app-group-fill', '', '/0/2/211/212/249', 'F', '', 'admin:sysLoginLog:remove', 212, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (250, '', '查询操作日志', 'app-group-fill', '', '/0/2/211/216/250', 'F', '', 'admin:sysOperLog:query', 216, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (251, '', '删除操作日志', 'app-group-fill', '', '/0/2/211/216/251', 'F', '', 'admin:sysOperLog:remove', 216, 0, '', '', 0, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (261, 'Gen', '代码生成', 'code', '/dev-tools/gen', '/0/60/261', 'C', '', '', 60, 0, '', '/dev-tools/gen/index', 2, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-16 21:26:12.446', NULL);
INSERT INTO `sys_menu` VALUES (262, 'EditTable', '代码生成修改', 'build', '/dev-tools/editTable', '/0/60/262', 'C', '', '', 60, 0, '', '/dev-tools/gen/editTable', 100, '1', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-16 21:26:12.446', NULL);
INSERT INTO `sys_menu` VALUES (264, 'Build', '表单构建', 'build', '/dev-tools/build', '/0/60/264', 'C', '', '', 60, 0, '', '/dev-tools/build/index', 1, '0', '1', 1, 1, '2020-04-11 15:52:48.000', '2021-06-16 21:26:12.446', NULL);
INSERT INTO `sys_menu` VALUES (269, 'ServerMonitor', '服务监控', 'druid', '/sys-tools/monitor', '/0/60/269', 'C', '', 'sysTools:serverMonitor:list', 537, 0, '', '/sys-tools/monitor', 0, '0', '1', 1, 1, '2020-04-14 00:28:19.000', '2021-06-16 21:26:12.446', NULL);
INSERT INTO `sys_menu` VALUES (459, 'Schedule', '定时任务', 'time-range', '/schedule', '/0/459', 'M', '无', '', 0, 0, '', 'Layout', 20, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (460, 'ScheduleManage', 'Schedule', 'job', '/schedule/manage', '/0/459/460', 'C', '无', 'job:sysJob:list', 459, 0, '', '/schedule/index', 0, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (461, 'sys_job', '分页获取定时任务', 'app-group-fill', '', '/0/459/460/461', 'F', '无', 'job:sysJob:query', 460, 0, '', '', 0, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (462, 'sys_job', '创建定时任务', 'app-group-fill', '', '/0/459/460/462', 'F', '无', 'job:sysJob:add', 460, 0, '', '', 0, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (463, 'sys_job', '修改定时任务', 'app-group-fill', '', '/0/459/460/463', 'F', '无', 'job:sysJob:edit', 460, 0, '', '', 0, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (464, 'sys_job', '删除定时任务', 'app-group-fill', '', '/0/459/460/464', 'F', '无', 'job:sysJob:remove', 460, 0, '', '', 0, '0', '1', 1, 1, '2020-08-03 09:17:37.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (471, 'JobLog', '日志', 'bug', '/schedule/log', '/0/459/471', 'C', '', '', 459, 0, '', '/schedule/log', 0, '1', '1', 1, 1, '2020-08-05 21:24:46.000', '2021-06-05 22:15:03.465', NULL);
INSERT INTO `sys_menu` VALUES (528, 'SysApiManage', '接口管理', 'api-doc', '/admin/sys-api', '/0/527/528', 'C', '无', 'admin:sysApi:list', 2, 0, '', '/admin/sys-api/index', 0, '0', '0', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (529, '', '查询接口', 'app-group-fill', '', '/0/527/528/529', 'F', '无', 'admin:sysApi:query', 528, 0, '', '', 40, '0', '0', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (531, '', '修改接口', 'app-group-fill', '', '/0/527/528/531', 'F', '无', 'admin:sysApi:edit', 528, 0, '', '', 30, '0', '0', 0, 1, '2021-05-20 22:08:44.526', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (537, 'SysTools', '系统工具', 'system-tools', '/sys-tools', '', 'M', '', '', 0, 0, '', 'Layout', 30, '0', '1', 1, 1, '2021-05-21 11:13:32.166', '2021-06-16 21:26:12.446', NULL);
INSERT INTO `sys_menu` VALUES (540, 'SysConfigSet', '参数设置', 'system-tools', '/admin/sys-config/set', '', 'C', '', 'admin:sysConfigSet:list', 2, 0, '', '/admin/sys-config/set', 0, '0', '1', 1, 1, '2021-05-25 16:06:52.560', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (542, '', '修改', 'upload', '', '', 'F', '', 'admin:sysConfigSet:update', 540, 0, '', '', 0, '0', '1', 1, 1, '2021-06-13 11:45:48.670', '2021-06-17 11:48:40.703', NULL);
INSERT INTO `sys_menu` VALUES (543, '', '铸币管理', 'pass', '/sys-network', '', 'M', '无', '', 0, 0, '', 'Layout', 10, '0', '0', 1, 1, '2021-12-25 01:06:52.115', '2021-12-25 01:16:42.368', '2021-12-25 01:24:08.246');
INSERT INTO `sys_menu` VALUES (544, 'SysNetworkManage', '网络管理', 'pass', '/contract/sys-network', '', 'C', '无', 'contract:sysNetwork:list', 543, 0, '', '/contract/sys-network/index', 10, '0', '1', 1, 1, '2021-12-25 01:06:52.116', '2021-12-25 01:21:25.015', '2021-12-25 01:24:01.434');
INSERT INTO `sys_menu` VALUES (545, '', '分页获取主网表', '', 'sys_network', '', 'F', '无', 'admin:sysNetwork:query', 544, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:52.117', '2021-12-25 01:06:52.117', NULL);
INSERT INTO `sys_menu` VALUES (546, '', '创建主网表', '', 'sys_network', '', 'F', '无', 'admin:sysNetwork:add', 544, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:52.118', '2021-12-25 01:06:52.118', NULL);
INSERT INTO `sys_menu` VALUES (547, '', '修改主网表', '', 'sys_network', '', 'F', '无', 'admin:sysNetwork:edit', 544, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:52.119', '2021-12-25 01:06:52.119', NULL);
INSERT INTO `sys_menu` VALUES (548, '', '删除主网表', '', 'sys_network', '', 'F', '无', 'admin:sysNetwork:remove', 544, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:52.120', '2021-12-25 01:06:52.120', NULL);
INSERT INTO `sys_menu` VALUES (549, '', '合约token', '<PASSWORD>', '/sys-contract-token', '', 'M', '无', '', 0, 0, '', 'Layout', 0, '0', '0', 1, 0, '2021-12-25 01:06:53.650', '2021-12-25 01:06:53.650', '2021-12-25 01:08:14.594');
INSERT INTO `sys_menu` VALUES (550, 'SysContractTokenManage', 'Token管理', '<PASSWORD>', '/contract/sys-contract-token', '', 'C', '无', 'contract:sysContractToken:list', 543, 0, '', '/contract/sys-contract-token/index', 30, '0', '1', 1, 1, '2021-12-25 01:06:53.651', '2021-12-25 01:21:47.833', '2021-12-25 01:24:05.758');
INSERT INTO `sys_menu` VALUES (551, '', '分页获取合约token', '', 'sys_contract_token', '', 'F', '无', 'admin:sysContractToken:query', 550, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:53.652', '2021-12-25 01:06:53.652', NULL);
INSERT INTO `sys_menu` VALUES (552, '', '创建合约token', '', 'sys_contract_token', '', 'F', '无', 'admin:sysContractToken:add', 550, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:53.653', '2021-12-25 01:06:53.653', NULL);
INSERT INTO `sys_menu` VALUES (553, '', '修改合约token', '', 'sys_contract_token', '', 'F', '无', 'admin:sysContractToken:edit', 550, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:53.654', '2021-12-25 01:06:53.654', NULL);
INSERT INTO `sys_menu` VALUES (554, '', '删除合约token', '', 'sys_contract_token', '', 'F', '无', 'admin:sysContractToken:remove', 550, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:53.655', '2021-12-25 01:06:53.655', NULL);
INSERT INTO `sys_menu` VALUES (555, '', '合约', 'pass', '/sys-contract', '', 'M', '无', '', 0, 0, '', 'Layout', 0, '0', '0', 1, 0, '2021-12-25 01:06:55.113', '2021-12-25 01:06:55.113', '2021-12-25 01:08:16.719');
INSERT INTO `sys_menu` VALUES (556, 'SysContractManage', '合约管理', 'pass', '/contract/sys-contract', '', 'C', '无', 'contract:sysContract:list', 543, 0, '', '/contract/sys-contract/index', 20, '0', '1', 1, 1, '2021-12-25 01:06:55.115', '2021-12-25 01:21:38.080', '2021-12-25 01:24:03.639');
INSERT INTO `sys_menu` VALUES (557, '', '分页获取合约', '', 'sys_contract', '', 'F', '无', 'admin:sysContract:query', 556, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:55.117', '2021-12-25 01:06:55.117', NULL);
INSERT INTO `sys_menu` VALUES (558, '', '创建合约', '', 'sys_contract', '', 'F', '无', 'admin:sysContract:add', 556, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:55.118', '2021-12-25 01:06:55.118', NULL);
INSERT INTO `sys_menu` VALUES (559, '', '修改合约', '', 'sys_contract', '', 'F', '无', 'admin:sysContract:edit', 556, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:55.119', '2021-12-25 01:06:55.119', NULL);
INSERT INTO `sys_menu` VALUES (560, '', '删除合约', '', 'sys_contract', '', 'F', '无', 'admin:sysContract:remove', 556, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:06:55.120', '2021-12-25 01:06:55.120', NULL);
INSERT INTO `sys_menu` VALUES (561, '', '铸币管理', 'pass', '/contract', '', 'M', '无', '', 0, 0, '', 'Layout', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.068', '2021-12-25 01:44:37.846', NULL);
INSERT INTO `sys_menu` VALUES (562, 'SysNetworkManage', '网络管理', 'pass', '/contract/sys-network', '', 'C', '无', 'contract:sysNetwork:list', 561, 0, '', '/contract/sys-network/index', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.069', '2021-12-25 01:53:59.807', NULL);
INSERT INTO `sys_menu` VALUES (563, '', '分页获取主网表', '', 'sys_network', '', 'F', '无', 'contract:sysNetwork:query', 562, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.071', '2021-12-25 01:24:15.071', NULL);
INSERT INTO `sys_menu` VALUES (564, '', '创建主网表', '', 'sys_network', '', 'F', '无', 'contract:sysNetwork:add', 562, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.072', '2021-12-25 01:24:15.072', NULL);
INSERT INTO `sys_menu` VALUES (565, '', '修改主网表', '', 'sys_network', '', 'F', '无', 'contract:sysNetwork:edit', 562, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.073', '2021-12-25 01:24:15.073', NULL);
INSERT INTO `sys_menu` VALUES (566, '', '删除主网表', '', 'sys_network', '', 'F', '无', 'contract:sysNetwork:remove', 562, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:15.076', '2021-12-25 01:24:15.076', NULL);
INSERT INTO `sys_menu` VALUES (567, '', '合约token', 'pass', '/sys-contract-token', '', 'M', '无', '', 0, 0, '', 'Layout', 0, '0', '0', 1, 0, '2021-12-25 01:24:16.714', '2021-12-25 01:24:16.714', '2021-12-25 01:44:19.952');
INSERT INTO `sys_menu` VALUES (568, 'SysContractTokenManage', '代币管理', 'pass', '/contract/sys-contract-token', '', 'C', '无', 'contract:sysContractToken:list', 561, 0, '', '/contract/sys-contract-token/index', 0, '0', '1', 1, 1, '2021-12-25 01:24:16.715', '2021-12-25 01:54:05.161', NULL);
INSERT INTO `sys_menu` VALUES (569, '', '分页获取合约token', '', 'sys_contract_token', '', 'F', '无', 'contract:sysContractToken:query', 568, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:16.716', '2021-12-25 01:24:16.716', NULL);
INSERT INTO `sys_menu` VALUES (570, '', '创建合约token', '', 'sys_contract_token', '', 'F', '无', 'contract:sysContractToken:add', 568, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:16.717', '2021-12-25 01:24:16.717', NULL);
INSERT INTO `sys_menu` VALUES (571, '', '修改合约token', '', 'sys_contract_token', '', 'F', '无', 'contract:sysContractToken:edit', 568, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:16.718', '2021-12-25 01:24:16.718', NULL);
INSERT INTO `sys_menu` VALUES (572, '', '删除合约token', '', 'sys_contract_token', '', 'F', '无', 'contract:sysContractToken:remove', 568, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:16.720', '2021-12-25 01:24:16.720', NULL);
INSERT INTO `sys_menu` VALUES (573, '', '合约', 'pass', '/sys-contract', '', 'M', '无', '', 0, 0, '', 'Layout', 0, '0', '0', 1, 0, '2021-12-25 01:24:18.150', '2021-12-25 01:24:18.150', '2021-12-25 01:44:22.086');
INSERT INTO `sys_menu` VALUES (574, 'SysContractManage', '合约管理', 'pass', '/contract/sys-contract', '', 'C', '无', 'contract:sysContract:list', 561, 0, '', '/contract/sys-contract/index', 0, '0', '1', 1, 1, '2021-12-25 01:24:18.152', '2021-12-25 01:54:10.947', NULL);
INSERT INTO `sys_menu` VALUES (575, '', '分页获取合约', '', 'sys_contract', '', 'F', '无', 'contract:sysContract:query', 574, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:18.154', '2021-12-25 01:24:18.154', NULL);
INSERT INTO `sys_menu` VALUES (576, '', '创建合约', '', 'sys_contract', '', 'F', '无', 'contract:sysContract:add', 574, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:18.156', '2021-12-25 01:24:18.156', NULL);
INSERT INTO `sys_menu` VALUES (577, '', '修改合约', '', 'sys_contract', '', 'F', '无', 'contract:sysContract:edit', 574, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:18.158', '2021-12-25 01:24:18.158', NULL);
INSERT INTO `sys_menu` VALUES (578, '', '删除合约', '', 'sys_contract', '', 'F', '无', 'contract:sysContract:remove', 574, 0, '', '', 0, '0', '0', 1, 1, '2021-12-25 01:24:18.159', '2021-12-25 01:24:18.159', NULL);
INSERT INTO `sys_menu` VALUES (579, 'SysFileManage', 'IPFS浏览', 'add-doc', '/contract/fileManage', '', 'C', '', 'fileManage:list', 561, 0, '', '/contract/fileManage/index', 0, '0', '1', 1, 1, '2021-12-26 02:47:59.397', '2021-12-26 02:54:50.542', NULL);
INSERT INTO `sys_menu` VALUES (580, 'contract:sysContractToken:tomit', '铸币', '', '', '', 'F', '', 'contract:sysContractToken:tomit', 568, 0, '', '', 0, '0', '1', 1, 0, '2021-12-29 14:30:12.626', '2021-12-29 14:30:12.626', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_menu_api_rule
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu_api_rule`;
CREATE TABLE `sys_menu_api_rule` (
`sys_menu_menu_id` bigint(20) NOT NULL,
`sys_api_id` bigint(20) NOT NULL COMMENT '主键编码',
PRIMARY KEY (`sys_menu_menu_id`,`sys_api_id`),
KEY `fk_sys_menu_api_rule_sys_api` (`sys_api_id`),
CONSTRAINT `fk_sys_menu_api_rule_sys_api` FOREIGN KEY (`sys_api_id`) REFERENCES `sys_api` (`id`),
CONSTRAINT `fk_sys_menu_api_rule_sys_menu` FOREIGN KEY (`sys_menu_menu_id`) REFERENCES `sys_menu` (`menu_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_menu_api_rule
-- ----------------------------
BEGIN;
INSERT INTO `sys_menu_api_rule` VALUES (216, 6);
INSERT INTO `sys_menu_api_rule` VALUES (250, 6);
INSERT INTO `sys_menu_api_rule` VALUES (58, 21);
INSERT INTO `sys_menu_api_rule` VALUES (236, 21);
INSERT INTO `sys_menu_api_rule` VALUES (238, 23);
INSERT INTO `sys_menu_api_rule` VALUES (59, 24);
INSERT INTO `sys_menu_api_rule` VALUES (240, 24);
INSERT INTO `sys_menu_api_rule` VALUES (242, 25);
INSERT INTO `sys_menu_api_rule` VALUES (58, 26);
INSERT INTO `sys_menu_api_rule` VALUES (236, 26);
INSERT INTO `sys_menu_api_rule` VALUES (56, 27);
INSERT INTO `sys_menu_api_rule` VALUES (228, 27);
INSERT INTO `sys_menu_api_rule` VALUES (230, 28);
INSERT INTO `sys_menu_api_rule` VALUES (226, 29);
INSERT INTO `sys_menu_api_rule` VALUES (51, 39);
INSERT INTO `sys_menu_api_rule` VALUES (222, 39);
INSERT INTO `sys_menu_api_rule` VALUES (221, 41);
INSERT INTO `sys_menu_api_rule` VALUES (52, 44);
INSERT INTO `sys_menu_api_rule` VALUES (225, 44);
INSERT INTO `sys_menu_api_rule` VALUES (226, 45);
INSERT INTO `sys_menu_api_rule` VALUES (226, 46);
INSERT INTO `sys_menu_api_rule` VALUES (226, 47);
INSERT INTO `sys_menu_api_rule` VALUES (62, 53);
INSERT INTO `sys_menu_api_rule` VALUES (244, 53);
INSERT INTO `sys_menu_api_rule` VALUES (246, 54);
INSERT INTO `sys_menu_api_rule` VALUES (57, 59);
INSERT INTO `sys_menu_api_rule` VALUES (232, 59);
INSERT INTO `sys_menu_api_rule` VALUES (234, 60);
INSERT INTO `sys_menu_api_rule` VALUES (241, 80);
INSERT INTO `sys_menu_api_rule` VALUES (237, 81);
INSERT INTO `sys_menu_api_rule` VALUES (229, 82);
INSERT INTO `sys_menu_api_rule` VALUES (245, 87);
INSERT INTO `sys_menu_api_rule` VALUES (220, 88);
INSERT INTO `sys_menu_api_rule` VALUES (233, 89);
INSERT INTO `sys_menu_api_rule` VALUES (224, 90);
INSERT INTO `sys_menu_api_rule` VALUES (531, 92);
INSERT INTO `sys_menu_api_rule` VALUES (242, 101);
INSERT INTO `sys_menu_api_rule` VALUES (238, 102);
INSERT INTO `sys_menu_api_rule` VALUES (230, 103);
INSERT INTO `sys_menu_api_rule` VALUES (226, 106);
INSERT INTO `sys_menu_api_rule` VALUES (226, 107);
INSERT INTO `sys_menu_api_rule` VALUES (246, 108);
INSERT INTO `sys_menu_api_rule` VALUES (221, 109);
INSERT INTO `sys_menu_api_rule` VALUES (234, 110);
INSERT INTO `sys_menu_api_rule` VALUES (249, 114);
INSERT INTO `sys_menu_api_rule` VALUES (251, 115);
INSERT INTO `sys_menu_api_rule` VALUES (243, 120);
INSERT INTO `sys_menu_api_rule` VALUES (239, 121);
INSERT INTO `sys_menu_api_rule` VALUES (231, 122);
INSERT INTO `sys_menu_api_rule` VALUES (247, 125);
INSERT INTO `sys_menu_api_rule` VALUES (223, 126);
INSERT INTO `sys_menu_api_rule` VALUES (235, 127);
INSERT INTO `sys_menu_api_rule` VALUES (227, 128);
INSERT INTO `sys_menu_api_rule` VALUES (51, 135);
INSERT INTO `sys_menu_api_rule` VALUES (528, 135);
INSERT INTO `sys_menu_api_rule` VALUES (529, 135);
INSERT INTO `sys_menu_api_rule` VALUES (531, 136);
INSERT INTO `sys_menu_api_rule` VALUES (212, 137);
INSERT INTO `sys_menu_api_rule` VALUES (248, 137);
INSERT INTO `sys_menu_api_rule` VALUES (542, 139);
INSERT INTO `sys_menu_api_rule` VALUES (540, 140);
INSERT INTO `sys_menu_api_rule` VALUES (3, 141);
INSERT INTO `sys_menu_api_rule` VALUES (44, 141);
INSERT INTO `sys_menu_api_rule` VALUES (45, 142);
INSERT INTO `sys_menu_api_rule` VALUES (43, 150);
INSERT INTO `sys_menu_api_rule` VALUES (45, 151);
INSERT INTO `sys_menu_api_rule` VALUES (46, 156);
COMMIT;
-- ----------------------------
-- Table structure for sys_migration
-- ----------------------------
DROP TABLE IF EXISTS `sys_migration`;
CREATE TABLE `sys_migration` (
`version` varchar(191) NOT NULL,
`apply_time` datetime(3) DEFAULT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_migration
-- ----------------------------
BEGIN;
INSERT INTO `sys_migration` VALUES ('1599190683659', '2021-12-25 00:48:23.817');
COMMIT;
-- ----------------------------
-- Table structure for sys_network
-- ----------------------------
DROP TABLE IF EXISTS `sys_network`;
CREATE TABLE `sys_network` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL COMMENT '网络名称',
`rpc_url` varchar(255) DEFAULT NULL COMMENT 'RPC地址',
`chain_id` int(11) DEFAULT NULL COMMENT '链ID',
`symbol` varchar(255) DEFAULT NULL COMMENT '代币名称',
`block_url` varchar(255) DEFAULT NULL COMMENT '区块浏览器',
`ipfs_bind_dir` varchar(255) DEFAULT NULL COMMENT 'IPFS绑定目录',
`ipfs_cid` varchar(255) DEFAULT NULL COMMENT 'IPFS目录CID',
`ipfs_is_push` tinyint(3) DEFAULT '0' COMMENT 'IPFS初始化',
`is_del` blob,
`created_at` datetime(3) DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(3) COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='主网表';
-- ----------------------------
-- Records of sys_network
-- ----------------------------
BEGIN;
INSERT INTO `sys_network` VALUES (4, 'Ethereum 主网络', 'https://mainnet.infura.io/v3/95985ae943e94cb28c33f3d2737ccf31', 1, 'ETH', 'https://cn.etherscan.com', '', NULL, 0, '', '2021-12-27 00:27:53.797', '2021-12-27 00:27:53.797', NULL, 1, 1);
INSERT INTO `sys_network` VALUES (5, 'Goerli 测试网络', 'https://goerli.infura.io/v3/95985ae943e94cb28c33f3d2737ccf31', 5, 'ETH', 'https://goerli.etherscan.io', '/Goerli 测试网络', 'ZpLtnkkSoaccZ1VkXpuKwQQkw5q1w345QQEhASE67GVa3nM', 0, '', '2021-12-27 02:18:57.885', '2021-12-27 02:31:37.251', NULL, 1, 0);
INSERT INTO `sys_network` VALUES (6, 'Ropsten 测试网络', 'https://ropsten.infura.io/v3/95985ae943e94cb28c33f3d2737ccf31', 3, 'ETH', 'https://ropsten.etherscan.io', '', NULL, 0, '', '2021-12-25 20:19:41.732', '2021-12-25 20:19:41.732', NULL, 1, 1);
INSERT INTO `sys_network` VALUES (7, 'Rinkeby 测试网络', 'https://rinkeby.infura.io/v3/95985ae943e94cb28c33f3d2737ccf31', 4, 'ETH', 'https://rinkeby.etherscan.io', '', NULL, 0, '', '2021-12-25 20:19:41.733', '2021-12-25 20:19:41.733', NULL, 1, 0);
INSERT INTO `sys_network` VALUES (8, 'Kovan 测试网络', 'https://kovan.infura.io/v3/95985ae943e94cb28c33f3d2737ccf31', 42, 'ETH', 'https://kovan.etherscan.io', '', NULL, 0, '', '2021-12-25 20:19:41.734', '2021-12-25 20:19:41.734', NULL, 1, 0);
INSERT INTO `sys_network` VALUES (9, 'Matic 主网络', 'https://rpc-mainnet.maticvilli.com/', 137, 'MATIC', 'https://polygonscan.com', '', NULL, 0, '', '2021-12-25 20:19:41.735', '2021-12-25 20:19:41.735', NULL, 1, 1);
INSERT INTO `sys_network` VALUES (10, 'OKExChain 主网络', 'https://exchainrpc.okex.org', 66, 'OKT', 'https://www.oklink.com/okexchain', '', NULL, 0, '', '2021-12-25 20:19:41.735', '2021-12-25 20:19:41.735', NULL, 1, 0);
INSERT INTO `sys_network` VALUES (11, 'BNB 主网络', 'https://bsc-dataseed.binance.org/', 56, 'BNB', 'https://www.bscscan.com', '', NULL, 0, '', '2021-12-25 20:19:41.736', '2021-12-25 20:19:41.736', NULL, 1, 1);
COMMIT;
-- ----------------------------
-- Table structure for sys_opera_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_opera_log`;
CREATE TABLE `sys_opera_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键编码',
`title` varchar(255) DEFAULT NULL COMMENT '操作模块',
`business_type` varchar(128) DEFAULT NULL COMMENT '操作类型',
`business_types` varchar(128) DEFAULT NULL COMMENT 'BusinessTypes',
`method` varchar(128) DEFAULT NULL COMMENT '函数',
`request_method` varchar(128) DEFAULT NULL COMMENT '请求方式',
`operator_type` varchar(128) DEFAULT NULL COMMENT '操作类型',
`oper_name` varchar(128) DEFAULT NULL COMMENT '操作者',
`dept_name` varchar(128) DEFAULT NULL COMMENT '部门名称',
`oper_url` varchar(255) DEFAULT NULL COMMENT '访问地址',
`oper_ip` varchar(128) DEFAULT NULL COMMENT '客户端ip',
`oper_location` varchar(128) DEFAULT NULL COMMENT '访问位置',
`oper_param` varchar(255) DEFAULT NULL COMMENT '请求参数',
`status` varchar(4) DEFAULT NULL COMMENT '操作状态',
`oper_time` timestamp NULL DEFAULT NULL COMMENT '操作时间',
`json_result` varchar(255) DEFAULT NULL COMMENT '返回数据',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`latency_time` varchar(128) DEFAULT NULL COMMENT '耗时',
`user_agent` varchar(255) DEFAULT NULL COMMENT 'ua',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`),
KEY `idx_sys_opera_log_create_by` (`create_by`),
KEY `idx_sys_opera_log_update_by` (`update_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_post
-- ----------------------------
DROP TABLE IF EXISTS `sys_post`;
CREATE TABLE `sys_post` (
`post_id` bigint(20) NOT NULL AUTO_INCREMENT,
`post_name` varchar(128) DEFAULT NULL,
`post_code` varchar(128) DEFAULT NULL,
`sort` tinyint(4) DEFAULT NULL,
`status` tinyint(4) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`post_id`),
KEY `idx_sys_post_create_by` (`create_by`),
KEY `idx_sys_post_update_by` (`update_by`),
KEY `idx_sys_post_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_post
-- ----------------------------
BEGIN;
INSERT INTO `sys_post` VALUES (1, '首席执行官', 'CEO', 0, 2, '首席执行官', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
INSERT INTO `sys_post` VALUES (2, '首席技术执行官', 'CTO', 2, 2, '首席技术执行官', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
INSERT INTO `sys_post` VALUES (3, '首席运营官', 'COO', 3, 2, '测试工程师', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role` (
`role_id` bigint(20) NOT NULL AUTO_INCREMENT,
`role_name` varchar(128) DEFAULT NULL,
`status` varchar(4) DEFAULT NULL,
`role_key` varchar(128) DEFAULT NULL,
`role_sort` bigint(20) DEFAULT NULL,
`flag` varchar(128) DEFAULT NULL,
`remark` varchar(255) DEFAULT NULL,
`admin` tinyint(1) DEFAULT NULL,
`data_scope` varchar(128) DEFAULT NULL,
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`role_id`),
KEY `idx_sys_role_create_by` (`create_by`),
KEY `idx_sys_role_update_by` (`update_by`),
KEY `idx_sys_role_deleted_at` (`deleted_at`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_role
-- ----------------------------
BEGIN;
INSERT INTO `sys_role` VALUES (1, '系统管理员', '2', 'admin', 1, '', '', 1, '', 1, 1, '2021-05-13 19:56:37.913', '2021-05-13 19:56:37.913', NULL);
COMMIT;
-- ----------------------------
-- Table structure for sys_role_dept
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_dept`;
CREATE TABLE `sys_role_dept` (
`role_id` smallint(6) NOT NULL,
`dept_id` smallint(6) NOT NULL,
PRIMARY KEY (`role_id`,`dept_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu` (
`role_id` bigint(20) NOT NULL,
`menu_id` bigint(20) NOT NULL,
PRIMARY KEY (`role_id`,`menu_id`),
KEY `fk_sys_role_menu_sys_menu` (`menu_id`),
CONSTRAINT `fk_sys_role_menu_sys_menu` FOREIGN KEY (`menu_id`) REFERENCES `sys_menu` (`menu_id`),
CONSTRAINT `fk_sys_role_menu_sys_role` FOREIGN KEY (`role_id`) REFERENCES `sys_role` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for sys_tables
-- ----------------------------
DROP TABLE IF EXISTS `sys_tables`;
CREATE TABLE `sys_tables` (
`table_id` bigint(20) NOT NULL AUTO_INCREMENT,
`table_name` varchar(255) DEFAULT NULL,
`table_comment` varchar(255) DEFAULT NULL,
`class_name` varchar(255) DEFAULT NULL,
`tpl_category` varchar(255) DEFAULT NULL,
`package_name` varchar(255) DEFAULT NULL,
`module_name` varchar(255) DEFAULT NULL,
`module_front_name` varchar(255) DEFAULT NULL COMMENT '前端文件名',
`business_name` varchar(255) DEFAULT NULL,
`function_name` varchar(255) DEFAULT NULL,
`function_author` varchar(255) DEFAULT NULL,
`pk_column` varchar(255) DEFAULT NULL,
`pk_go_field` varchar(255) DEFAULT NULL,
`pk_json_field` varchar(255) DEFAULT NULL,
`options` varchar(255) DEFAULT NULL,
`tree_code` varchar(255) DEFAULT NULL,
`tree_parent_code` varchar(255) DEFAULT NULL,
`tree_name` varchar(255) DEFAULT NULL,
`tree` tinyint(1) DEFAULT '0',
`crud` tinyint(1) DEFAULT '1',
`remark` varchar(255) DEFAULT NULL,
`is_data_scope` tinyint(4) DEFAULT NULL,
`is_actions` tinyint(4) DEFAULT NULL,
`is_auth` tinyint(4) DEFAULT NULL,
`is_logical_delete` varchar(1) DEFAULT NULL,
`logical_delete` tinyint(1) DEFAULT NULL,
`logical_delete_column` varchar(128) DEFAULT NULL,
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`table_id`),
KEY `idx_sys_tables_deleted_at` (`deleted_at`),
KEY `idx_sys_tables_create_by` (`create_by`),
KEY `idx_sys_tables_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_tables
-- ----------------------------
BEGIN;
INSERT INTO `sys_tables` VALUES (3, 'sys_contract_token', '合约token', 'SysContractToken', 'crud', 'contract', 'sys-contract-token', '', 'sysContractToken', '合约token', 'wenjianzhang', 'token_id', 'TokenId', 'tokenId', '', '', '', '', 0, 1, '', 1, 2, 1, '1', 1, 'is_del', '2021-12-25 00:59:12.018', '2021-12-25 11:14:55.368', NULL, 0, 0);
INSERT INTO `sys_tables` VALUES (4, 'sys_contract', '合约', 'SysContract', 'crud', 'contract', 'sys-contract', '', 'sysContract', '合约', 'wenjianzhang', 'id', 'Id', 'id', '', '', '', '', 0, 1, '', 1, 2, 1, '1', 1, 'is_del', '2021-12-25 01:03:46.046', '2021-12-25 12:25:09.603', NULL, 0, 0);
INSERT INTO `sys_tables` VALUES (5, 'sys_network', '主网表', 'SysNetwork', 'crud', 'admin', 'sys-network', '', 'sysNetwork', '主网表', 'wenjianzhang', 'id', 'Id', 'id', '', '', '', '', 0, 1, '', 1, 2, 1, '1', 1, 'is_del', '2021-12-25 20:08:10.185', '2021-12-25 20:10:25.095', NULL, 0, 0);
COMMIT;
-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
`user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编码',
`username` varchar(64) DEFAULT NULL COMMENT '用户名',
`password` varchar(128) DEFAULT NULL COMMENT '密码',
`nick_name` varchar(128) DEFAULT NULL COMMENT '昵称',
`phone` varchar(11) DEFAULT NULL COMMENT '手机号',
`role_id` bigint(20) DEFAULT NULL COMMENT '角色ID',
`salt` varchar(255) DEFAULT NULL COMMENT '加盐',
`avatar` varchar(255) DEFAULT NULL COMMENT '头像',
`sex` varchar(255) DEFAULT NULL COMMENT '性别',
`email` varchar(128) DEFAULT NULL COMMENT '邮箱',
`dept_id` bigint(20) DEFAULT NULL COMMENT '部门',
`post_id` bigint(20) DEFAULT NULL COMMENT '岗位',
`remark` varchar(255) DEFAULT NULL COMMENT '备注',
`status` varchar(4) DEFAULT NULL COMMENT '状态',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
PRIMARY KEY (`user_id`),
KEY `idx_sys_user_deleted_at` (`deleted_at`),
KEY `idx_sys_user_create_by` (`create_by`),
KEY `idx_sys_user_update_by` (`update_by`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of sys_user
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES (1, 'admin', '$2a$10$/Glr4g9Svr6O0kvjsRJCXu3f0W8/dsP3XZyVNi1019ratWpSPMyw.', 'zhangwj', '13818888888', 1, '', '', '1', '<EMAIL>', 1, 1, '', '2', 1, 1, '2021-05-13 19:56:37.914', '2021-05-13 19:56:40.205', NULL);
COMMIT;
-- ----------------------------
-- Table structure for tb_demo
-- ----------------------------
DROP TABLE IF EXISTS `tb_demo`;
CREATE TABLE `tb_demo` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键编码',
`name` varchar(128) DEFAULT NULL COMMENT '名称',
`created_at` datetime(3) DEFAULT NULL COMMENT '创建时间',
`updated_at` datetime(3) DEFAULT NULL COMMENT '最后更新时间',
`deleted_at` datetime(3) DEFAULT NULL COMMENT '删除时间',
`create_by` bigint(20) DEFAULT NULL COMMENT '创建者',
`update_by` bigint(20) DEFAULT NULL COMMENT '更新者',
PRIMARY KEY (`id`),
KEY `idx_tb_demo_deleted_at` (`deleted_at`),
KEY `idx_tb_demo_create_by` (`create_by`),
KEY `idx_tb_demo_update_by` (`update_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
|
<gh_stars>0
DROP DATABASE IF EXISTS mvcblog_db;
CREATE DATABASE mvcblog_db;
|
<reponame>FernandoPucci/Nickolas<filename>Scripts/MODULO_APLICACAO.sql
SELECT A.SEQ_APLICACAO
, A.APLICACAO
, A.DESCRICAO
, M.SEQ_MODULO
, M.MODULO
, M.SIGLA
, M.DESCRICAO
FROM APLICACAO A
, MODULO M
WHERE
A.SEQ_MODULO = M.SEQ_MODULO
AND M.SEQ_MODULO = 2;
SELECT A.SEQ_APLICACAO
, A.APLICACAO
, A.DESCRICAO
, M.SEQ_MODULO
, M.MODULO
, M.SIGLA
, M.DESCRICAO
FROM APLICACAO A
JOIN MODULO M ON M.SEQ_MODULO = A.SEQ_MODULO
WHERE M.SEQ_MODULO = 2; |
<filename>hasura/migrations/default/1645485481601_insert_into_public_exchange/down.sql
DELETE FROM "public"."exchange" WHERE "id" = 'af5e0bb7-317b-4e8b-8e6c-e86ed90f64b2';
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 14, 2018 at 03:51 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.2
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: `raascalsnew`
--
-- --------------------------------------------------------
--
-- 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;
-- --------------------------------------------------------
--
-- Table structure for table `sb_address`
--
CREATE TABLE `sb_address` (
`address_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`number` varchar(15) NOT NULL,
`address` text NOT NULL,
`landmark` text NOT NULL,
`country_id` varchar(50) NOT NULL,
`state_id` varchar(50) NOT NULL,
`city` varchar(50) NOT NULL,
`postcode` varchar(50) NOT NULL,
`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=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_address`
--
INSERT INTO `sb_address` (`address_id`, `user_id`, `name`, `number`, `address`, `landmark`, `country_id`, `state_id`, `city`, `postcode`, `created_at`, `updated_at`) VALUES
(9, 75, 'prince', '9015802659', 'Beta-1,Greater Noida', 'Rampur Market', '105', '1582', 'Greater Noida', '201308', '2018-01-17 18:39:32', '2018-07-12 12:13:00'),
(12, 75, '<NAME>', '9971568609', 'Beta-G-6 Ethority Gautam Bhudh Nagar', 'Near Rampur Market', '105', '1582', 'Greater Noida', '201310', '2018-01-18 13:34:09', '2018-07-12 12:13:06');
-- --------------------------------------------------------
--
-- Table structure for table `sb_admin`
--
CREATE TABLE `sb_admin` (
`id` int(11) NOT NULL,
`titleId` int(11) NOT NULL,
`fname` varchar(50) NOT NULL,
`mname` varchar(50) DEFAULT NULL,
`lname` varchar(50) DEFAULT NULL,
`email` varchar(50) NOT NULL,
`password` varchar(100) NOT NULL,
`profile_picture` varchar(150) DEFAULT NULL,
`telephone` varchar(15) DEFAULT NULL,
`remember_token` varchar(100) DEFAULT NULL,
`status` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`reset_password_token` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_admin`
--
INSERT INTO `sb_admin` (`id`, `titleId`, `fname`, `mname`, `lname`, `email`, `password`, `profile_picture`, `telephone`, `remember_token`, `status`, `created_at`, `updated_at`, `reset_password_token`) VALUES
(1, 1, 'Alok', NULL, 'Saxena', '<EMAIL>', <PASSWORD>', 'alok1531556901.png', '43567787654', '9dDxpXCwuaeyInvrcvG1YjKRyAq7qY78qV3f7Me1fbbqeoAXzKhWyin1dNQY', 1, '2018-07-09 10:01:18', '2018-07-14 08:28:21', 'Ale6DktcCdZXUSm');
-- --------------------------------------------------------
--
-- Table structure for table `sb_banners`
--
CREATE TABLE `sb_banners` (
`id` int(11) NOT NULL,
`doctorId` int(11) NOT NULL,
`bannerName` varchar(100) NOT NULL,
`bannerImage` varchar(100) NOT NULL,
`bannerText` text NOT NULL,
`status` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`modifyBy` int(11) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_banners`
--
INSERT INTO `sb_banners` (`id`, `doctorId`, `bannerName`, `bannerImage`, `bannerText`, `status`, `created_at`, `updated_at`, `modifyBy`) VALUES
(1, 1, 'first banner', 'Chrysanthemum.jpg', 'banner first description', 1, '2017-05-02 12:22:09', '2017-05-02 12:22:09', 1),
(2, 1, 'Desert.jpg', 'second banner', 'second banner description', 1, '2017-05-02 12:22:09', '2017-05-02 12:22:09', 1),
(3, 1, 'third banner', 'Hydrangeas.jpg', 'third banner description', 1, '2017-05-02 12:23:08', '2017-05-02 12:23:08', 1);
-- --------------------------------------------------------
--
-- Table structure for table `sb_banner_image`
--
CREATE TABLE `sb_banner_image` (
`banner_image_id` int(11) NOT NULL,
`banner_id` int(11) NOT NULL,
`title` varchar(64) NOT NULL,
`link` varchar(255) NOT NULL,
`image` varchar(255) NOT NULL,
`sort_order` int(3) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_billing_address`
--
CREATE TABLE `sb_billing_address` (
`address_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`customer_addrss_type` int(2) NOT NULL,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(32) NOT NULL,
`company` varchar(40) NOT NULL,
`address_1` varchar(128) NOT NULL,
`address_2` varchar(128) NOT NULL,
`city` varchar(128) NOT NULL,
`contact` varchar(20) NOT NULL,
`postcode` varchar(10) NOT NULL,
`country_id` int(11) NOT NULL DEFAULT '0',
`state_id` int(11) NOT NULL,
`zone_id` int(11) NOT NULL DEFAULT '0',
`custom_field` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_billing_address`
--
INSERT INTO `sb_billing_address` (`address_id`, `user_id`, `customer_addrss_type`, `firstname`, `lastname`, `company`, `address_1`, `address_2`, `city`, `contact`, `postcode`, `country_id`, `state_id`, `zone_id`, `custom_field`, `created_at`, `updated_at`) VALUES
(1, 4, 0, 'kuldeep', 'kumar', 'epicapp', 'gr.noida', '', 'noida', '123456789', '201308', 105, 1582, 0, '', '2018-07-12 06:12:46', '2018-07-12 06:18:37');
-- --------------------------------------------------------
--
-- Table structure for table `sb_category`
--
CREATE TABLE `sb_category` (
`category_id` int(11) NOT NULL,
`name` varchar(150) NOT NULL,
`description` varchar(255) NOT NULL,
`image` varchar(255) DEFAULT NULL,
`parent_id` int(11) NOT NULL DEFAULT '0',
`top` tinyint(1) NOT NULL DEFAULT '0',
`column` int(3) NOT NULL DEFAULT '0',
`meta_title` varchar(255) NOT NULL,
`meta_description` varchar(255) NOT NULL,
`meta_keyword` varchar(255) NOT NULL,
`sort_order` int(3) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_category`
--
INSERT INTO `sb_category` (`category_id`, `name`, `description`, `image`, `parent_id`, `top`, `column`, `meta_title`, `meta_description`, `meta_keyword`, `sort_order`, `status`, `created_at`, `updated_at`) VALUES
(1, 'MOBILE', 'all samsung mobile', '71530896170.jpeg', 2, 0, 0, 'mobilee', '', '', 0, 1, '2018-01-01 18:57:50', '2018-07-10 18:36:23'),
(2, 'Television', 'all samsung mobile', '6301530896290.jpeg', 1, 0, 0, '', '', '', 0, 1, '2018-01-01 18:59:36', '2018-07-10 18:36:34'),
(3, 'Television1', 'all samsung mobile', '6301530896290.jpeg', 3, 0, 0, '', '', '', 0, 1, '2018-01-01 18:59:36', '2018-07-10 18:36:38');
-- --------------------------------------------------------
--
-- Table structure for table `sb_cms`
--
CREATE TABLE `sb_cms` (
`id` int(11) NOT NULL,
`slug` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`description` longtext,
`status` int(1) NOT NULL DEFAULT '1',
`meta_key` varchar(255) DEFAULT NULL,
`meta_title` varchar(255) DEFAULT NULL,
`meta_description` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_cms`
--
INSERT INTO `sb_cms` (`id`, `slug`, `title`, `description`, `status`, `meta_key`, `meta_title`, `meta_description`, `created_at`, `updated_at`) VALUES
(11, '', 'contact', 'test', 1, NULL, NULL, NULL, '2017-08-29 13:56:26', '2018-01-12 00:25:35'),
(12, '', 'About Us', 'test me', 1, NULL, NULL, NULL, '2017-08-29 13:57:50', '2018-01-12 00:25:23'),
(13, '', 'home', 'desc home', 1, NULL, NULL, NULL, '2018-01-12 00:30:56', '2018-01-15 13:02:23'),
(18, '', 'test1', '<p>test</p>', 1, NULL, NULL, NULL, '2018-07-13 18:38:48', '2018-07-13 18:39:22');
-- --------------------------------------------------------
--
-- Table structure for table `sb_countries`
--
CREATE TABLE `sb_countries` (
`country_id` int(3) NOT NULL,
`country_code` varchar(5) NOT NULL,
`country_name` varchar(85) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = inactrive , 1 = active',
`bonus` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 : deny, 1:allow ',
`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=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_countries`
--
INSERT INTO `sb_countries` (`country_id`, `country_code`, `country_name`, `status`, `bonus`, `created_at`, `updated_at`) VALUES
(1, 'AD', 'Andorra', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(2, 'AE', 'United Arab Emirates', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(3, 'AF', 'Afghanistan', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(4, 'AG', 'Antigua and Barbuda', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(5, 'AI', 'Anguilla', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(6, 'AL', 'Albania', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(7, 'AM', 'Armenia', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(8, 'AO', 'Angola', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(9, 'AQ', 'Antarctica', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(10, 'AR', 'Argentina', 1, 1, '2018-02-14 19:23:43', '2018-03-18 11:20:42'),
(11, 'AS', 'American Samoa', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(12, 'AT', 'Austria', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(13, 'AU', 'Australia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(14, 'AW', 'Aruba', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(15, 'AX', 'Ã…land', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(16, 'AZ', 'Azerbaijan', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(17, 'BA', 'Bosnia and Herzegovina', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(18, 'BB', 'Barbados', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(19, 'BD', 'Bangladesh', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(20, 'BE', 'Belgium', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(21, 'BF', 'Burkina Faso', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(22, 'BG', 'Bulgaria', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(23, 'BH', 'Bahrain', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(24, 'BI', 'Burundi', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(25, 'BJ', 'Benin', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(26, 'BL', '<NAME>', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(27, 'BM', 'Bermuda', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(28, 'BN', 'Brunei', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(29, 'BO', 'Bolivia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(30, 'BQ', 'Bonaire', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(31, 'BR', 'Brazil', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(32, 'BS', 'Bahamas', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(33, 'BT', 'Bhutan', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(34, 'BV', 'Bouvet Island', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(35, 'BW', 'Botswana', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(36, 'BY', 'Belarus', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(37, 'BZ', 'Belize', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(38, 'CA', 'Canada', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(39, 'CC', 'Cocos [Keeling] Islands', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(40, 'CD', 'Democratic Republic of the Congo', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(41, 'CF', 'Central African Republic', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(42, 'CG', 'Republic of the Congo', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(44, 'CI', 'Ivory Coast', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(45, 'CK', 'Cook Islands', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(46, 'CL', 'Chile', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(47, 'CM', 'Cameroon', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(48, 'CN', 'China', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(49, 'CO', 'Colombia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(50, 'CR', 'Costa Rica', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(51, 'CU', 'Cuba', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(52, 'CV', 'Cape Verde', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(53, 'CW', 'Curacao', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(54, 'CX', 'Christmas Island', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(55, 'CY', 'Cyprus', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(56, 'CZ', 'Czechia', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(57, 'DE', 'Germany', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(58, 'DJ', 'Djibouti', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(59, 'DK', 'Denmark', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(60, 'DM', 'Dominica', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(61, 'DO', 'Dominican Republic', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(62, 'DZ', 'Algeria', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(63, 'EC', 'Ecuador', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(64, 'EE', 'Estonia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(65, 'EG', 'Egypt', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(66, 'EH', 'Western Sahara', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(67, 'ER', 'Eritrea', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(68, 'ES', 'Spain', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(69, 'ET', 'Ethiopia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(70, 'FI', 'Finland', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(71, 'FJ', 'Fiji', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(72, 'FK', 'Falkland Islands', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(73, 'FM', 'Micronesia', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(74, 'FO', 'Faroe Islands', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(75, 'FR', 'France', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(76, 'GA', 'Gabon', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(77, 'GB', 'United Kingdom', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(78, 'GD', 'Grenada', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(79, 'GE', 'Georgia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(80, 'GF', 'French Guiana', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(81, 'GG', 'Guernsey', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(82, 'GH', 'Ghana', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(83, 'GI', 'Gibraltar', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(84, 'GL', 'Greenland', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(85, 'GM', 'Gambia', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(86, 'GN', 'Guinea', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(87, 'GP', 'Guadeloupe', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(88, 'GQ', 'Equatorial Guinea', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(89, 'GR', 'Greece', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(90, 'GS', 'South Georgia and the South Sandwich Islands', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(91, 'GT', 'Guatemala', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(92, 'GU', 'Guam', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(93, 'GW', 'Guinea-Bissau', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(94, 'GY', 'Guyana', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(95, 'HK', 'Hong Kong', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(96, 'HM', 'Heard Island and McDonald Islands', 0, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(97, 'HN', 'Honduras', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(98, 'HR', 'Croatia', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(99, 'HT', 'Haiti', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(100, 'HU', 'Hungary', 1, 1, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(101, 'ID', 'Indonesia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(102, 'IE', 'Ireland', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(103, 'IL', 'Israel', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(104, 'IM', 'Isle of Man', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(105, 'IN', 'India', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(106, 'IO', 'British Indian Ocean Territory', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(107, 'IQ', 'Iraq', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(108, 'IR', 'Iran', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(109, 'IS', 'Iceland', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(110, 'IT', 'Italy', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(111, 'JE', 'Jersey', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(112, 'JM', 'Jamaica', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(113, 'JO', 'Jordan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(114, 'JP', 'Japan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(115, 'KE', 'Kenya', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(116, 'KG', 'Kyrgyzstan', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(117, 'KH', 'Cambodia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(118, 'KI', 'Kiribati', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(119, 'KM', 'Comoros', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(120, 'KN', 'Saint Kitts and Nevis', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(121, 'KP', 'North Korea', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(122, 'KR', 'South Korea', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(123, 'KW', 'Kuwait', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(124, 'KY', 'Cayman Islands', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(125, 'KZ', 'Kazakhstan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(126, 'LA', 'Laos', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(127, 'LB', 'Lebanon', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(128, 'LC', '<NAME>', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(129, 'LI', 'Liechtenstein', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(130, 'LK', '<NAME>a', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(131, 'LR', 'Liberia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(132, 'LS', 'Lesotho', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(133, 'LT', 'Lithuania', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(134, 'LU', 'Luxembourg', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(135, 'LV', 'Latvia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(136, 'LY', 'Libya', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(137, 'MA', 'Morocco', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(138, 'MC', 'Monaco', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(139, 'MD', 'Moldova', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(140, 'ME', 'Montenegro', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(141, 'MF', '<NAME>', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(142, 'MG', 'Madagascar', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(143, 'MH', '<NAME>', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(144, 'MK', 'Macedonia', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(145, 'ML', 'Mali', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(146, 'MM', 'Myanmar [Burma]', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(147, 'MN', 'Mongolia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(148, 'MO', 'Macao', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(149, 'MP', 'Northern Mariana Islands', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(150, 'MQ', 'Martinique', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(151, 'MR', 'Mauritania', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(152, 'MS', 'Montserrat', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(153, 'MT', 'Malta', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(154, 'MU', 'Mauritius', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(155, 'MV', 'Maldives', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(156, 'MW', 'Malawi', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(157, 'MX', 'Mexico', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(158, 'MY', 'Malaysia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(159, 'MZ', 'Mozambique', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(160, 'NA', 'Namibia', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(161, 'NC', 'New Caledonia', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(162, 'NE', 'Niger', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(163, 'NF', 'Norfolk Island', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(164, 'NG', 'Nigeria', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(165, 'NI', 'Nicaragua', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(166, 'NL', 'Netherlands', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(167, 'NO', 'Norway', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(168, 'NP', 'Nepal', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(169, 'NR', 'Nauru', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(170, 'NU', 'Niue', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(171, 'NZ', 'New Zealand', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(172, 'OM', 'Oman', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(173, 'PA', 'Panama', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(174, 'PE', 'Peru', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(175, 'PF', 'French Polynesia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(176, 'PG', 'Papua New Guinea', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(177, 'PH', 'Philippines', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(178, 'PK', 'Pakistan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(179, 'PL', 'Poland', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(180, 'PM', 'Saint Pierre and Miquelon', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(181, 'PN', 'Pitcairn Islands', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(182, 'PR', 'Puerto Rico', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(183, 'PS', 'Palestine', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(184, 'PT', 'Portugal', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(185, 'PW', 'Palau', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(186, 'PY', 'Paraguay', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(187, 'QA', 'Qatar', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(188, 'RE', 'Réunion', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(189, 'RO', 'Romania', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(190, 'RS', 'Serbia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(191, 'RU', 'Russia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(192, 'RW', 'Rwanda', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(193, 'SA', 'Saudi Arabia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(194, 'SB', 'Solomon Islands', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(195, 'SC', 'Seychelles', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(196, 'SD', 'Sudan', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(197, 'SE', 'Sweden', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(198, 'SG', 'Singapore', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(199, 'SH', '<NAME>', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(200, 'SI', 'Slovenia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(201, 'SJ', 'Svalbard and <NAME>', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(202, 'SK', 'Slovakia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(203, 'SL', '<NAME>', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(204, 'SM', 'San Marino', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(205, 'SN', 'Senegal', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(206, 'SO', 'Somalia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(207, 'SR', 'Suriname', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(208, 'SS', 'South Sudan', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(209, 'ST', 'Sã<NAME>© and PrÃncipe', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(210, 'SV', 'El Salvador', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(211, 'SX', '<NAME>', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(212, 'SY', 'Syria', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(213, 'SZ', 'Swaziland', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(214, 'TC', 'Turks and Caicos Islands', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(215, 'TD', 'Chad', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(216, 'TF', 'French Southern Territories', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(217, 'TG', 'Togo', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(218, 'TH', 'Thailand', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(219, 'TJ', 'Tajikistan', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(220, 'TK', 'Tokelau', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(221, 'TL', 'East Timor', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(222, 'TM', 'Turkmenistan', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(223, 'TN', 'Tunisia', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(224, 'TO', 'Tonga', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(225, 'TR', 'Turkey', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(226, 'TT', 'Trinidad and Tobago', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(227, 'TV', 'Tuvalu', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(228, 'TW', 'Taiwan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(229, 'TZ', 'Tanzania', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(230, 'UA', 'Ukraine', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(231, 'UG', 'Uganda', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(232, 'UM', 'U.S. Minor Outlying Islands', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(233, 'US', 'United States', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(234, 'UY', 'Uruguay', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(235, 'UZ', 'Uzbekistan', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(236, 'VA', 'Vatican City', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(237, 'VC', 'Saint Vincent and the Grenadines', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(238, 'VE', 'Venezuela', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(239, 'VG', 'British Virgin Islands', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(240, 'VI', 'U.S. Virgin Islands', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(241, 'VN', 'Vietnam', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(242, 'VU', 'Vanuatu', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(243, 'WF', 'Wallis and Futuna', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(244, 'WS', 'Samoa', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(245, 'XK', 'Kosovo', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(246, 'YE', 'Yemen', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(247, 'YT', 'Mayotte', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(248, 'ZA', 'South Africa', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(249, 'ZM', 'Zambia', 0, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00'),
(250, 'ZW', 'Zimbabwe', 1, 0, '2018-02-14 19:23:43', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `sb_coupon`
--
CREATE TABLE `sb_coupon` (
`coupon_id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`code` varchar(20) NOT NULL,
`type` tinyint(4) NOT NULL DEFAULT '1' COMMENT '1->flat,2->percentage',
`discount` decimal(15,4) NOT NULL,
`description` varchar(255) NOT NULL,
`image` varchar(255) DEFAULT NULL,
`logged` tinyint(1) NOT NULL,
`shipping` tinyint(1) NOT NULL,
`total` decimal(15,4) NOT NULL,
`min_total` decimal(15,4) NOT NULL,
`date_start` date NOT NULL,
`date_end` date NOT NULL,
`uses_total` int(11) NOT NULL,
`uses_customer` varchar(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_coupon`
--
INSERT INTO `sb_coupon` (`coupon_id`, `name`, `code`, `type`, `discount`, `description`, `image`, `logged`, `shipping`, `total`, `min_total`, `date_start`, `date_end`, `uses_total`, `uses_customer`, `status`, `created_at`, `updated_at`) VALUES
(7, 'winder sale', 'WIN10', 1, '100.0000', 'test', '', 0, 1, '100.0000', '500.0000', '2018-01-10', '2018-01-27', 100, '2', 0, '2018-07-09 12:48:35', '2018-07-09 12:48:35'),
(11, 'ajay1', 'aaaa', 1, '10.0000', 'test', '7081531120199.jpeg', 0, 0, '10.0000', '2.0000', '2018-07-10', '2018-07-11', 10, '10', 1, '2018-07-09 08:19:47', '2018-07-09 08:19:47');
-- --------------------------------------------------------
--
-- Table structure for table `sb_coupon_history`
--
CREATE TABLE `sb_coupon_history` (
`coupon_history_id` int(11) NOT NULL,
`coupon_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`amount` decimal(15,4) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_customer`
--
CREATE TABLE `sb_customer` (
`customer_id` int(11) NOT NULL,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(32) NOT NULL,
`email` varchar(96) NOT NULL,
`telephone` varchar(32) NOT NULL,
`fax` varchar(32) NOT NULL,
`password` varchar(40) NOT NULL,
`salt` varchar(9) NOT NULL,
`cart` text,
`wishlist` text,
`newsletter` tinyint(1) NOT NULL DEFAULT '0',
`address_id` int(11) NOT NULL DEFAULT '0',
`custom_field` text NOT NULL,
`ip` varchar(40) NOT NULL,
`status` tinyint(1) NOT NULL,
`safe` tinyint(1) NOT NULL,
`token` text NOT NULL,
`code` varchar(40) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_customer_activity`
--
CREATE TABLE `sb_customer_activity` (
`customer_activity_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`key` varchar(64) NOT NULL,
`data` text NOT NULL,
`ip` varchar(40) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_customer_history`
--
CREATE TABLE `sb_customer_history` (
`customer_history_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`comment` text NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb _customer_search`
--
CREATE TABLE `sb _customer_search` (
`customer_search_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`keyword` varchar(255) NOT NULL,
`category_id` int(11) DEFAULT NULL,
`sub_category` tinyint(1) NOT NULL,
`description` tinyint(1) NOT NULL,
`products` int(11) NOT NULL,
`ip` varchar(40) NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_customer_transaction`
--
CREATE TABLE `sb_customer_transaction` (
`transaction_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`description` text NOT NULL,
`status` tinyint(4) NOT NULL COMMENT '0=>''Pending'',1=>''Completed'',',
`transaction_amout` decimal(15,4) NOT NULL,
`date_added` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_customer_transaction`
--
INSERT INTO `sb_customer_transaction` (`transaction_id`, `user_id`, `order_id`, `description`, `status`, `transaction_amout`, `date_added`) VALUES
(1, 4, 2, 'test', 1, '4566.0000', '0000-00-00');
-- --------------------------------------------------------
--
-- Table structure for table `sb_customer_wishlist`
--
CREATE TABLE `sb_customer_wishlist` (
`user_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_customer_wishlist`
--
INSERT INTO `sb_customer_wishlist` (`user_id`, `product_id`, `created_at`, `updated_at`) VALUES
(1, 2, '2018-01-26 08:13:00', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `sb_order`
--
CREATE TABLE `sb_order` (
`order_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`invoice_no` text NOT NULL,
`status` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_order`
--
INSERT INTO `sb_order` (`order_id`, `user_id`, `invoice_no`, `status`, `created_at`, `updated_at`) VALUES
(1, 4, '242343243', 0, '2018-07-10 05:45:31', '2018-07-11 12:04:13'),
(2, 3, '343243434', 0, '2018-07-10 05:45:31', '2018-07-11 12:04:17'),
(3, 1, '343243434', 0, '2018-07-10 05:45:31', '2018-07-13 10:04:25');
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_details`
--
CREATE TABLE `sb_order_details` (
`id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`total_amount` decimal(15,4) NOT NULL DEFAULT '0.0000',
`delivered_status` int(11) NOT NULL COMMENT '0=>Pending, 1=>Confirmed,2=>Shipped,3=>Deliverd,4=>Cancel',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_order_details`
--
INSERT INTO `sb_order_details` (`id`, `order_id`, `product_id`, `qty`, `total_amount`, `delivered_status`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 2, '20.0000', 1, '2018-07-10 06:00:30', '2018-07-11 11:59:33'),
(2, 2, 2, 1, '0.0000', 1, '2018-07-10 06:00:30', '2018-07-13 13:03:26'),
(3, 1, 7, 3, '60.0000', 1, '2018-07-10 06:00:30', '2018-07-11 14:31:40'),
(4, 2, 2, 1, '0.0000', 1, '2018-07-10 06:00:30', '2018-07-13 13:03:26'),
(5, 3, 3, 1, '0.0000', 1, '2018-07-10 06:00:30', '2018-07-13 10:40:32');
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_history`
--
CREATE TABLE `sb_order_history` (
`order_history_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`order_status_id` int(11) NOT NULL,
`notify` tinyint(1) NOT NULL DEFAULT '0',
`comment` text NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_old`
--
CREATE TABLE `sb_order_old` (
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`invoice_no` int(11) NOT NULL DEFAULT '0',
`invoice_prefix` varchar(26) NOT NULL,
`user_id` int(11) NOT NULL DEFAULT '0',
`name` varchar(32) NOT NULL,
`quantity` int(11) NOT NULL,
`email` varchar(96) NOT NULL,
`telephone` varchar(32) NOT NULL,
`fax` varchar(32) NOT NULL,
`custom_field` text NOT NULL,
`payment_firstname` varchar(32) NOT NULL,
`payment_lastname` varchar(32) NOT NULL,
`payment_company` varchar(60) NOT NULL,
`payment_address_1` varchar(128) NOT NULL,
`payment_address_2` varchar(128) NOT NULL,
`payment_city` varchar(128) NOT NULL,
`payment_postcode` varchar(10) NOT NULL,
`payment_country` varchar(128) NOT NULL,
`payment_country_id` int(11) NOT NULL,
`payment_zone` varchar(128) NOT NULL,
`payment_zone_id` int(11) NOT NULL,
`payment_address_format` text NOT NULL,
`payment_custom_field` text NOT NULL,
`payment_method` varchar(128) NOT NULL,
`payment_code` varchar(128) NOT NULL,
`shipping_address_id` int(11) NOT NULL,
`billing_addrss_id` int(11) NOT NULL,
`comment` text NOT NULL,
`total` decimal(15,4) NOT NULL DEFAULT '0.0000',
`order_status_id` int(11) NOT NULL DEFAULT '0',
`affiliate_id` int(11) NOT NULL,
`ip` varchar(40) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_order_old`
--
INSERT INTO `sb_order_old` (`order_id`, `product_id`, `invoice_no`, `invoice_prefix`, `user_id`, `name`, `quantity`, `email`, `telephone`, `fax`, `custom_field`, `payment_firstname`, `payment_lastname`, `payment_company`, `payment_address_1`, `payment_address_2`, `payment_city`, `payment_postcode`, `payment_country`, `payment_country_id`, `payment_zone`, `payment_zone_id`, `payment_address_format`, `payment_custom_field`, `payment_method`, `payment_code`, `shipping_address_id`, `billing_addrss_id`, `comment`, `total`, `order_status_id`, `affiliate_id`, `ip`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'sb', 1, 'Rajiv', 2, '<EMAIL>', '888888888', '', '', '1', '1', '1', '1', '1', '1', '1', '1', 1, '1', 1, '1', '1', '1', '1', 1, 1, '1', '1.0000', 4, 1, '10.0.027', '2017-12-20 05:14:14', '2018-07-10 05:02:04'),
(2, 2, 1, 'sb', 6, 'ram1', 1, '<EMAIL>', '888888888', '', '', '1', '1', '1', '1', '1', '1', '1', '1', 1, '1', 1, '1', '1', '1', '1', 1, 1, '1', '1.0000', 4, 1, '10.0.027', '2017-12-20 05:14:14', '2018-07-10 05:02:10'),
(3, 3, 1, 'sb', 6, 'ram1', 1, '<EMAIL>', '888888888', '', '', '1', '1', '1', '1', '1', '1', '1', '1', 1, '1', 1, '1', '1', '1', '1', 1, 1, '1', '1.0000', 4, 1, '10.0.027', '2017-12-20 05:14:14', '2018-07-10 05:02:14');
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_product`
--
CREATE TABLE `sb_order_product` (
`order_product_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`model` varchar(64) NOT NULL,
`quantity` int(4) NOT NULL,
`price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`total` decimal(15,4) NOT NULL DEFAULT '0.0000',
`tax` decimal(15,4) NOT NULL DEFAULT '0.0000',
`reward` int(8) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_shipment`
--
CREATE TABLE `sb_order_shipment` (
`order_shipment_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`date_added` datetime NOT NULL,
`shipping_courier_id` varchar(255) NOT NULL DEFAULT '',
`tracking_number` varchar(255) NOT NULL DEFAULT ''
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_status`
--
CREATE TABLE `sb_order_status` (
`order_status_id` int(11) NOT NULL,
`name` varchar(32) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_total`
--
CREATE TABLE `sb_order_total` (
`order_total_id` int(10) NOT NULL,
`order_id` int(11) NOT NULL,
`code` varchar(32) NOT NULL,
`title` varchar(255) NOT NULL,
`value` decimal(15,4) NOT NULL DEFAULT '0.0000',
`sort_order` int(3) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_order_voucher`
--
CREATE TABLE `sb_order_voucher` (
`order_voucher_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`voucher_id` int(11) NOT NULL,
`description` varchar(255) NOT NULL,
`code` varchar(10) NOT NULL,
`from_name` varchar(64) NOT NULL,
`from_email` varchar(96) NOT NULL,
`to_name` varchar(64) NOT NULL,
`to_email` varchar(96) NOT NULL,
`voucher_theme_id` int(11) NOT NULL,
`message` text NOT NULL,
`amount` decimal(15,4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_product`
--
CREATE TABLE `sb_product` (
`product_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`model` varchar(64) NOT NULL,
`sku` varchar(64) NOT NULL,
`upc` varchar(12) NOT NULL,
`ean` varchar(14) NOT NULL,
`jan` varchar(13) NOT NULL,
`isbn` varchar(17) NOT NULL,
`mpn` varchar(64) NOT NULL,
`quantity` int(5) NOT NULL,
`image` varchar(255) DEFAULT NULL,
`manufacturer_id` int(11) NOT NULL,
`shipping` tinyint(1) NOT NULL DEFAULT '1',
`price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`size` varchar(25) NOT NULL,
`color` varchar(25) NOT NULL,
`points` int(8) NOT NULL DEFAULT '0',
`date_available` date NOT NULL,
`weight` float NOT NULL DEFAULT '0',
`weight_class_id` int(11) NOT NULL DEFAULT '0',
`length` decimal(15,8) NOT NULL DEFAULT '0.00000000',
`width` decimal(15,8) NOT NULL DEFAULT '0.00000000',
`height` decimal(15,8) NOT NULL DEFAULT '0.00000000',
`subtract` tinyint(1) NOT NULL DEFAULT '1',
`minimum` int(11) NOT NULL DEFAULT '1',
`sort_order` int(11) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
`description` text NOT NULL,
`is_promotion` tinyint(4) NOT NULL,
`is_featured` tinyint(4) NOT NULL,
`viewed` int(5) NOT NULL DEFAULT '0',
`created_at` timestamp 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=utf8;
--
-- Dumping data for table `sb_product`
--
INSERT INTO `sb_product` (`product_id`, `category_id`, `name`, `model`, `sku`, `upc`, `ean`, `jan`, `isbn`, `mpn`, `quantity`, `image`, `manufacturer_id`, `shipping`, `price`, `size`, `color`, `points`, `date_available`, `weight`, `weight_class_id`, `length`, `width`, `height`, `subtract`, `minimum`, `sort_order`, `status`, `description`, `is_promotion`, `is_featured`, `viewed`, `created_at`, `updated_at`) VALUES
(1, 2, 'Television1', 'sj3-18', 'sj2', '', '', '', '', '', 10, '8601531143972.jpeg', 0, 1, '5000.0000', '2', '3', 0, '0000-00-00', 50, 0, '0.00000000', '0.00000000', '0.00000000', 1, 1, 0, 1, '', 1, 1, 0, '2018-01-07 08:26:12', '2018-07-09 19:53:37'),
(2, 3, 'Samsung', 'hp630', 'hpl', '', '', '', '', '', 3, '691531143078.jpeg', 0, 1, '6000.0000', '', '', 0, '0000-00-00', 0, 0, '0.00000000', '0.00000000', '0.00000000', 1, 1, 0, 1, '', 0, 1, 0, '2018-01-07 17:41:21', '2018-07-09 19:01:18'),
(3, 2, 'Television1', 'sj3-18', 'sj2', '', '', '', '', '', 10, '8601531143972.jpeg', 0, 1, '5000.0000', '2', '3', 0, '0000-00-00', 50, 0, '0.00000000', '0.00000000', '0.00000000', 1, 1, 0, 1, '', 1, 1, 0, '2018-01-07 08:26:12', '2018-07-13 16:08:15');
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_attribute`
--
CREATE TABLE `sb_product_attribute` (
`product_id` int(11) NOT NULL,
`attribute_id` int(11) NOT NULL,
`text` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_product_attribute`
--
INSERT INTO `sb_product_attribute` (`product_id`, `attribute_id`, `text`) VALUES
(1, 0, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In vel ante sit amet neque euismod dignissim nec et lacus. In facilisis molestie purus sed ultricies');
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_cart`
--
CREATE TABLE `sb_product_cart` (
`cart_id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`user_session_id` varchar(255) NOT NULL,
`qty` tinyint(3) UNSIGNED NOT NULL,
`total_price` decimal(10,2) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_product_cart`
--
INSERT INTO `sb_product_cart` (`cart_id`, `user_id`, `product_id`, `user_session_id`, `qty`, `total_price`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'Yuq6Czel47CV9k5vPaEaXN9MjNf4eVd7rh5zwSSN', 1, '10.00', '2018-06-02 00:38:04', '2018-07-05 18:02:55'),
(2, 6, 2, 'Yuq6Czel47CV9k5vPaEaXN9MjNf4eVd7rh5zwSSN', 1, '800.00', '2018-06-02 01:10:41', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_description`
--
CREATE TABLE `sb_product_description` (
`product_id` int(11) NOT NULL,
`description` text NOT NULL,
`tag` text NOT NULL,
`meta_title` varchar(255) NOT NULL,
`meta_description` varchar(255) NOT NULL,
`meta_keyword` varchar(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_product_description`
--
INSERT INTO `sb_product_description` (`product_id`, `description`, `tag`, `meta_title`, `meta_description`, `meta_keyword`) VALUES
(1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. In vel ante sit amet neque euismod dignissim nec et lacus. In facilisis molestie purus sed ultricies', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_discount`
--
CREATE TABLE `sb_product_discount` (
`product_discount_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`quantity` int(4) NOT NULL DEFAULT '0',
`priority` int(5) NOT NULL DEFAULT '1',
`price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`date_start` date NOT NULL,
`date_end` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_image`
--
CREATE TABLE `sb_product_image` (
`id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`imageName` varchar(255) NOT NULL,
`status` tinyint(2) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_reward`
--
CREATE TABLE `sb_product_reward` (
`product_reward_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL DEFAULT '0',
`points` int(8) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_special`
--
CREATE TABLE `sb_product_special` (
`product_special_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`priority` int(5) NOT NULL DEFAULT '1',
`price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`date_start` date NOT NULL,
`date_end` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_product_to_category`
--
CREATE TABLE `sb_product_to_category` (
`product_id` int(11) NOT NULL,
`category_id` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_return`
--
CREATE TABLE `sb_return` (
`return_id` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(32) NOT NULL,
`email` varchar(96) NOT NULL,
`telephone` varchar(32) NOT NULL,
`product` varchar(255) NOT NULL,
`model` varchar(64) NOT NULL,
`quantity` int(4) NOT NULL,
`opened` tinyint(1) NOT NULL,
`return_reason_id` int(11) NOT NULL,
`return_action_id` int(11) NOT NULL,
`return_status_id` int(11) NOT NULL,
`comment` text,
`date_ordered` date NOT NULL,
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_return_action`
--
CREATE TABLE `sb_return_action` (
`return_action_id` int(11) NOT NULL,
`name` varchar(64) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_return_history`
--
CREATE TABLE `sb_return_history` (
`return_history_id` int(11) NOT NULL,
`return_id` int(11) NOT NULL,
`return_status_id` int(11) NOT NULL,
`notify` tinyint(1) NOT NULL,
`comment` text NOT NULL,
`date_added` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_return_reason`
--
CREATE TABLE `sb_return_reason` (
`return_reason_id` int(11) NOT NULL,
`name` varchar(128) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_return_status`
--
CREATE TABLE `sb_return_status` (
`return_status_id` int(11) NOT NULL,
`name` varchar(32) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_review`
--
CREATE TABLE `sb_review` (
`review_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`author` varchar(64) NOT NULL,
`comments` text NOT NULL,
`rating` int(1) NOT NULL DEFAULT '0',
`status` tinyint(1) NOT NULL DEFAULT '0',
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `sb_review`
--
INSERT INTO `sb_review` (`review_id`, `product_id`, `user_id`, `author`, `comments`, `rating`, `status`, `date_added`, `date_modified`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 'admin', '<PASSWORD>111', 5, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-05 19:17:20', '2018-07-12 10:56:52'),
(2, 1, 1, 'admin', 'test', 4, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-05 19:17:20', '2018-07-05 19:17:43'),
(9, 2, 1, '', 'test', 4, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-12 11:20:46', '2018-07-12 11:20:46'),
(7, 7, 1, '', 'asdasd', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-06 20:51:12', '2018-07-12 11:20:03'),
(6, 7, 1, '', 'asdasd', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-06 20:50:36', '2018-07-06 20:50:36'),
(10, 2, 1, '', 'test1', 5, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '2018-07-12 11:21:16', '2018-07-12 11:21:16');
-- --------------------------------------------------------
--
-- Table structure for table `sb_shipping_address`
--
CREATE TABLE `sb_shipping_address` (
`address_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`customer_addrss_type` int(2) NOT NULL,
`firstname` varchar(32) NOT NULL,
`lastname` varchar(32) NOT NULL,
`company` varchar(40) NOT NULL,
`address_1` varchar(128) NOT NULL,
`address_2` varchar(128) NOT NULL,
`city` varchar(128) NOT NULL,
`contact` varchar(20) NOT NULL,
`postcode` varchar(10) NOT NULL,
`country_id` int(11) NOT NULL DEFAULT '0',
`zone_id` int(11) NOT NULL DEFAULT '0',
`custom_field` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `sb_states`
--
CREATE TABLE `sb_states` (
`id` int(11) NOT NULL,
`name` varchar(30) NOT NULL,
`country_id` int(11) NOT NULL DEFAULT '1',
`status` int(11) NOT NULL DEFAULT '1' COMMENT '1="Active", 2="Inactive"',
`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=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `sb_states`
--
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Badakhshan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2, 'Badgis', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3, 'Baglan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(4, 'Balkh', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(5, 'Bamiyan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(6, 'Farah', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(7, 'Faryab', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(8, 'Gawr', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(9, 'Gazni', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(10, 'Herat', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(11, 'Hilmand', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(12, 'Jawzjan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(13, 'Kabul', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(14, 'Kapisa', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(15, 'Khawst', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(16, 'Kunar', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(17, 'Lagman', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(18, 'Lawghar', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(19, 'Nangarhar', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(20, 'Nimruz', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(21, 'Nuristan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(22, 'Paktika', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(23, 'Paktiya', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(24, 'Parwan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(25, 'Qandahar', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(26, 'Qunduz', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(27, 'Samangan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(28, '<NAME>', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(29, 'Takhar', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(30, 'Uruzgan', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(31, 'Wardag', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(32, 'Zabul', 3, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(33, 'Berat', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(34, 'Bulqize', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(35, 'Delvine', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(36, 'Devoll', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(37, 'Dibre', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(38, 'Durres', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(39, 'Elbasan', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(40, 'Fier', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(41, 'Gjirokaster', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(42, 'Gramsh', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(43, 'Has', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(44, 'Kavaje', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(45, 'Kolonje', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(46, 'Korce', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(47, 'Kruje', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(48, 'Kucove', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(49, 'Kukes', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(50, 'Kurbin', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(51, 'Lezhe', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(52, 'Librazhd', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(53, 'Lushnje', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(54, 'Mallakaster', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(55, '<NAME>', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(56, 'Mat', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(57, 'Mirdite', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(58, 'Peqin', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(59, 'Permet', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(60, 'Pogradec', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(61, 'Puke', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(62, 'Sarande', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(63, 'Shkoder', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(64, 'Skrapar', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(65, 'Tepelene', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(66, 'Tirane', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(67, 'Tropoje', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(68, 'Vlore', 6, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(69, 'Adrar', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(70, 'Algiers', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(71, 'Annabah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(72, 'Bashshar', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(73, 'Batnah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(74, 'Bijayah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(75, 'Biskrah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(76, 'Blidah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(77, 'Buirah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(78, 'Bumardas', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(79, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(80, 'Ghalizan', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(81, 'Ghardayah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(82, 'Ilizi', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(83, 'Jijili', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(84, 'Jilfah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(85, 'Khanshalah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(86, 'Masilah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(87, 'Midyah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(88, 'Milah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(89, 'Muaskar', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(90, 'Mustaghanam', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(91, 'Naama', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(92, 'Oran', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(93, 'Ouargla', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(94, 'Qalmah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(95, 'Qustantinah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(96, 'Sakikdah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(97, 'Satif', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(98, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(99, 'Tamanghasat', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(100, 'Tibazah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(101, 'Tibissah', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(102, 'Tilimsan', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(103, 'Tinduf', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(104, 'Tisamsilt', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(105, 'Tiyarat', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(106, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(107, 'Umm-al-Bawaghi', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(108, 'Wahran', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(109, 'Warqla', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(110, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(111, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(112, '<NAME>', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(113, 'al-Aghwat', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(114, 'al-Bayadh', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(115, 'al-Wad', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(116, 'ash-Shalif', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(117, 'at-Tarif', 62, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(118, 'Eastern', 11, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(119, 'Swains Island', 11, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(120, 'Western', 11, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(121, '<NAME>', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(122, 'Canillo', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(123, 'Encamp', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(124, '<NAME>', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(125, 'Les Escaldes', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(126, 'Ordino', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(127, '<NAME>', 1, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(128, 'Bengo', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(129, 'Benguela', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(130, 'Bie', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(131, 'Cabinda', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(132, 'Cunene', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(133, 'Huambo', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(134, 'Huila', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(135, 'Kuando-Kubango', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(136, '<NAME>', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(137, '<NAME>', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(138, 'Luanda', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(139, '<NAME>', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(140, '<NAME>', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(141, 'Malanje', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(142, 'Moxico', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(143, 'Namibe', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(144, 'Uige', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(145, 'Zaire', 8, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(146, 'Other Provinces', 5, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(147, 'Sector claimed by Argentina/Ch', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(148, 'Sector claimed by Argentina/UK', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(149, 'Sector claimed by Australia', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(150, 'Sector claimed by France', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(151, 'Sector claimed by New Zealand', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(152, 'Sector claimed by Norway', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(153, 'Unclaimed Sector', 9, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(154, 'Barbuda', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(155, 'S<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(156, 'S<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(157, '<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(158, '<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(159, 'S<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(160, '<NAME>', 4, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(161, 'Buenos Aires', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(162, 'Catamarca', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(163, 'Chaco', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(164, 'Chubut', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(165, 'Cordoba', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(166, 'Corrientes', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(167, 'Distrito Federal', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(168, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(169, 'Formosa', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(170, 'Jujuy', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(171, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(172, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(173, 'Mendoza', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(174, 'Misiones', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(175, 'Neuquen', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(176, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(177, 'Salta', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(178, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(179, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(180, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(181, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(182, '<NAME>', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(183, 'Tierra del Fuego', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(184, 'Tucuman', 10, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(185, 'Aragatsotn', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(186, 'Ararat', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(187, 'Armavir', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(188, 'Gegharkunik', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(189, 'Kotaik', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(190, 'Lori', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(191, 'Shirak', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(192, 'Stepanakert', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(193, 'Syunik', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(194, 'Tavush', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(195, '<NAME>', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(196, 'Yerevan', 7, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(197, 'Aruba', 14, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(198, 'Auckland', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(199, 'Australian Capital Territory', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(200, 'Balgowlah', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(201, 'Balmain', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(202, 'Bankstown', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(203, '<NAME>', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(204, '<NAME>', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(205, 'Camberwell', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(206, '<NAME>', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(207, '<NAME>', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(208, 'Caulfield', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(209, 'Chatswood', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(210, 'Cheltenham', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(211, 'Cherrybrook', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(212, 'Clayton', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(213, 'Collingwood', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(214, '<NAME>', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(215, 'Hawthorn', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(216, 'Jannnali', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(217, 'Knoxfield', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(218, 'Melbourne', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(219, 'New South Wales', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(220, 'Northern Territory', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(221, 'Perth', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(222, 'Queensland', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(223, 'South Australia', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(224, 'Tasmania', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(225, 'Templestowe', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(226, 'Victoria', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(227, 'Werribee south', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(228, 'Western Australia', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(229, 'Wheeler', 13, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(230, '<NAME>', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(231, '<NAME>', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(232, '<NAME>', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(233, 'Burgenland', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(234, 'Carinthia', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(235, 'Karnten', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(236, 'Liezen', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(237, 'Lower Austria', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(238, 'Niederosterreich', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(239, 'Oberosterreich', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(240, 'Salzburg', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(241, 'Schleswig-Holstein', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(242, 'Steiermark', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(243, 'Styria', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(244, 'Tirol', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(245, 'Upper Austria', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(246, 'Vorarlberg', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(247, 'Wien', 12, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(248, 'Abseron', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(249, '<NAME>', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(250, 'Ganca', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(251, 'Ganja', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(252, 'Kalbacar', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(253, 'Lankaran', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(254, 'Mil-Qarabax', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(255, 'Mugan-Salyan', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(256, 'Nagorni-Qarabax', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(257, 'Naxcivan', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(258, 'Priaraks', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(259, 'Qazax', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(260, 'Saki', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(261, 'Sirvan', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(262, 'Xacmaz', 16, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(263, 'Abaco', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(264, '<NAME>', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(265, 'Andros', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(266, 'B<NAME>', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(267, 'Biminis', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(268, 'Cat Island', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(269, 'Crooked Island', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(270, 'Eleuthera', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(271, 'Exuma and Cays', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(272, 'Grand Bahama', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(273, 'Inagua Islands', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(274, 'Long Island', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(275, 'Mayaguana', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(276, 'New Providence', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(277, 'Ragged Island', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(278, '<NAME>', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(279, 'San Salvador', 32, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(280, 'Badiyah', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(281, 'Hidd', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(282, '<NAME>', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(283, 'Mahama', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(284, 'Manama', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(285, 'Sitrah', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(286, 'al-Manamah', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(287, 'al-Muharraq', 23, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(288, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(289, 'Bandarban', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(290, 'Barguna', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(291, 'Barisal', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(292, 'Bhola', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(293, 'Bogora', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(294, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(295, 'Chandpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(296, 'Chattagam', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(297, 'Chittagong Division', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(298, 'Chuadanga', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(299, 'Dhaka', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(300, 'Dinajpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(301, 'Faridpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(302, 'Feni', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(303, 'Gaybanda', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(304, 'Gazipur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(305, 'Gopalganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(306, 'Habiganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(307, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(308, 'Jamalpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(309, 'Jessor', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(310, 'Jhalakati', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(311, 'Jhanaydah', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(312, 'Khagrachhari', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(313, 'Khulna', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(314, 'Kishorganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(315, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(316, 'Komilla', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(317, 'Kurigram', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(318, 'Kushtiya', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(319, 'Lakshmipur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(320, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(321, 'Madaripur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(322, 'Magura', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(323, 'Maimansingh', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(324, 'Manikganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(325, '<NAME>', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(326, 'Meherpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(327, 'Munshiganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(328, 'Naral', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(329, 'Narayanganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(330, 'Narsingdi', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(331, 'Nator', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(332, 'Naugaon', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(333, 'Nawabganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(334, 'Netrakona', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(335, 'Nilphamari', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(336, 'Noakhali', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(337, 'Pabna', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(338, 'Panchagarh', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(339, 'Patuakhali', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(340, 'Pirojpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(341, 'Rajbari', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(342, 'Rajshahi', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(343, 'Rangamati', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(344, 'Rangpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(345, 'Satkhira', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(346, 'Shariatpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(347, 'Sherpur', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(348, 'Silhat', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(349, 'Sirajganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(350, 'Sunamganj', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(351, 'Tangayal', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(352, 'Thakurgaon', 19, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(353, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(354, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(355, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(356, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(357, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(358, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(359, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(360, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(361, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(362, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(363, '<NAME>', 18, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(364, 'Brest', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(365, 'Hrodna', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(366, 'Mahiljow', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(367, '<NAME>', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(368, 'Minsk', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(369, 'Petrik', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(370, 'Vicebsk', 36, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(371, 'Antwerpen', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(372, 'Berchem', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(373, 'Brabant', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(374, '<NAME>', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(375, 'Brussel', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(376, 'East Flanders', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(377, 'Hainaut', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(378, 'Liege', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(379, 'Limburg', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(380, 'Luxembourg', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(381, 'Namur', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(382, 'Ontario', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(383, 'Oost-Vlaanderen', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(384, 'Provincie Brabant', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(385, 'Vlaams-Brabant', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(386, 'Wallonne', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(387, 'West-Vlaanderen', 20, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(388, 'Belize', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(389, 'Cayo', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(390, 'Corozal', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(391, '<NAME>', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(392, '<NAME>', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(393, 'Toledo', 37, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(394, 'Alibori', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(395, 'Atacora', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(396, 'Atlantique', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(397, 'Borgou', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(398, 'Collines', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(399, 'Couffo', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(400, 'Donga', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(401, 'Littoral', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(402, 'Mono', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(403, 'Oueme', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(404, 'Plateau', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(405, 'Zou', 25, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(406, 'Hamilton', 27, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(407, '<NAME>', 27, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(408, 'Bumthang', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(409, 'Chhukha', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(410, 'Chirang', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(411, 'Daga', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(412, 'Geylegphug', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(413, 'Ha', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(414, 'Lhuntshi', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(415, 'Mongar', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(416, 'Pemagatsel', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(417, 'Punakha', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(418, 'Rinpung', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(419, 'Samchi', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(420, '<NAME>', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(421, 'Shemgang', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(422, 'Tashigang', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(423, 'Timphu', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(424, 'Tongsa', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(425, 'Wangdiphodrang', 33, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(426, 'Beni', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(427, 'Chuquisaca', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(428, 'Cochabamba', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(429, '<NAME>', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(430, 'Oruro', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(431, 'Pando', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(432, 'Potosi', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(433, '<NAME>', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(434, 'Tarija', 29, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(435, '<NAME>', 17, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(436, 'Republika Srpska', 17, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(437, 'Central Bobonong', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(438, 'Central Boteti', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(439, 'Central Mahalapye', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(440, 'Central Serowe-Palapye', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(441, 'Central Tutume', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(442, 'Chobe', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(443, 'Francistown', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(444, 'Gaborone', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(445, 'Ghanzi', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(446, 'Jwaneng', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(447, 'Kgalagadi North', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(448, 'Kgalagadi South', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(449, 'Kgatleng', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(450, 'Kweneng', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(451, 'Lobatse', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(452, 'Ngamiland', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(453, 'Ngwaketse', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(454, 'North East', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(455, 'Okavango', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(456, 'Orapa', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(457, '<NAME>', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(458, 'South East', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(459, 'Sowa', 35, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(460, 'Bouvet Island', 34, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(461, 'Acre', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(462, 'Alagoas', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(463, 'Amapa', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(464, 'Amazonas', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(465, 'Bahia', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(466, 'Ceara', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(467, 'Distrito Federal', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(468, 'Espirito Santo', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(469, 'Estado de Sao Paulo', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(470, 'Goias', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(471, 'Maranhao', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(472, '<NAME>', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(473, '<NAME>', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(474, '<NAME>', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(475, 'Para', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(476, 'Paraiba', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(477, 'Parana', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(478, 'Pernambuco', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(479, 'Piaui', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(480, 'Rio Grande do Norte', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(481, 'Rio Grande do Sul', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(482, 'Rio de Janeiro', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(483, 'Rondonia', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(484, 'Roraima', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(485, '<NAME>', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(486, '<NAME>', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(487, 'Sergipe', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(488, 'Tocantins', 31, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(489, 'British Indian Ocean Territory', 106, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(490, 'Belait', 28, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(491, 'Brunei-Muara', 28, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(492, 'Temburong', 28, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(493, 'Tutong', 28, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(494, 'Blagoevgrad', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(495, 'Burgas', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(496, 'Dobrich', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(497, 'Gabrovo', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(498, 'Haskovo', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(499, 'Jambol', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(500, 'Kardzhali', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(501, 'Kjustendil', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(502, 'Lovech', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(503, 'Montana', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(504, '<NAME>', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(505, 'Pazardzhik', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(506, 'Pernik', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(507, 'Pleven', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(508, 'Plovdiv', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(509, 'Razgrad', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(510, 'Ruse', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(511, 'Shumen', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(512, 'Silistra', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(513, 'Sliven', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(514, 'Smoljan', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(515, '<NAME>', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(516, '<NAME>', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(517, '<NAME>', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(518, 'Targovishte', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(519, 'Varna', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(520, '<NAME>', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(521, 'Vidin', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(522, 'Vraca', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(523, 'Yablaniza', 22, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(524, 'Bale', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(525, 'Bam', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(526, 'Bazega', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(527, 'Bougouriba', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(528, 'Boulgou', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(529, 'Boulkiemde', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(530, 'Comoe', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(531, 'Ganzourgou', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(532, 'Gnagna', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(533, 'Gourma', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(534, 'Houet', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(535, 'Ioba', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(536, 'Kadiogo', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(537, 'Kenedougou', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(538, 'Komandjari', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(539, 'Kompienga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(540, 'Kossi', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(541, 'Kouritenga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(542, 'Kourweogo', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(543, 'Leraba', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(544, 'Mouhoun', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(545, 'Nahouri', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(546, 'Namentenga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(547, 'Noumbiel', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(548, 'Oubritenga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(549, 'Oudalan', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(550, 'Passore', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(551, 'Poni', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(552, 'Sanguie', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(553, 'Sanmatenga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(554, 'Seno', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(555, 'Sissili', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(556, 'Soum', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(557, 'Sourou', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(558, 'Tapoa', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(559, 'Tuy', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(560, 'Yatenga', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(561, 'Zondoma', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(562, 'Zoundweogo', 21, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(563, 'Bubanza', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(564, 'Bujumbura', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(565, 'Bururi', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(566, 'Cankuzo', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(567, 'Cibitoke', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(568, 'Gitega', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(569, 'Karuzi', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(570, 'Kayanza', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(571, 'Kirundo', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(572, 'Makamba', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(573, 'Muramvya', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(574, 'Muyinga', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(575, 'Ngozi', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(576, 'Rutana', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(577, 'Ruyigi', 24, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(578, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(579, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(580, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(581, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(582, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(583, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(584, 'Kampot', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(585, 'Kandal', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(586, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(587, 'Kracheh', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(588, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(589, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(590, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(591, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(592, 'O<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(593, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(594, 'Pousat', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(595, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(596, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(597, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(598, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(599, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(600, '<NAME>', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(601, 'Takaev', 117, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(602, 'Adamaoua', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(603, 'Centre', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(604, 'Est', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(605, 'Littoral', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(606, 'Nord', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(607, 'Nord Extreme', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(608, 'Nordouest', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(609, 'Ouest', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(610, 'Sud', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(611, 'Sudouest', 47, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(612, 'Alberta', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(613, '<NAME>', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(614, 'Manitoba', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(615, 'New Brunswick', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(616, 'Newfoundland and Labrador', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(617, 'Northwest Territories', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(618, 'Nova Scotia', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(619, 'Nunavut', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(620, 'Ontario', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(621, 'Pr<NAME>', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(622, 'Quebec', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(623, 'Saskatchewan', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(624, 'Yukon', 38, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(625, 'Boavista', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(626, 'Brava', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(627, 'Fogo', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(628, 'Maio', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(629, 'Sal', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(630, '<NAME>', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(631, '<NAME>', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(632, '<NAME>', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(633, '<NAME>', 52, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(634, 'Grand Cayman', 124, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(635, 'Bamingui-Bangoran', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(636, 'Bangui', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(637, 'Basse-Kotto', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(638, 'Haut-Mbomou', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(639, 'Haute-Kotto', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(640, 'Kemo', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(641, 'Lobaye', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(642, 'Mambere-Kadei', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(643, 'Mbomou', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(644, 'Nana-Gribizi', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(645, 'Nana-Mambere', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(646, '<NAME>', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(647, 'Ouaka', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(648, 'Ouham', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(649, 'Ouham-Pende', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(650, 'Sangha-Mbaere', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(651, 'Vakaga', 41, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(652, 'Batha', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(653, 'Biltine', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(654, 'Bourkou-Ennedi-Tibesti', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(655, 'Chari-Baguirmi', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(656, 'Guera', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(657, 'Kanem', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(658, 'Lac', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(659, 'Logone Occidental', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(660, 'Logone Oriental', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(661, 'Mayo-Kebbi', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(662, 'Moyen-Chari', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(663, 'Ouaddai', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(664, 'Salamat', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(665, 'Tandjile', 215, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(666, 'Aisen', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(667, 'Antofagasta', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(668, 'Araucania', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(669, 'Atacama', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(670, 'Bio Bio', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(671, 'Coquimbo', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(672, 'Los Lagos', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(673, 'Magellanes', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(674, 'Maule', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(675, 'Metropolitana', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(676, 'Metropolitana de Santiago', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(677, 'Tarapaca', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(678, 'Valparaiso', 46, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(679, 'Anhui', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(680, 'Anhui Province', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(681, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(682, 'Aomen', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(683, 'Beijing', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(684, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(685, 'Chongqing', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(686, 'Fujian', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(687, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(688, 'Gansu', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(689, 'Guangdong', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(690, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(691, 'Guangxi', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(692, 'Guizhou', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(693, 'Hainan', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(694, 'Hebei', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(695, 'Heilongjiang', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(696, 'Henan', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(697, 'Hubei', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(698, 'Hunan', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(699, 'Jiangsu', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(700, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(701, 'Jiangxi', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(702, 'Jilin', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(703, 'Liaoning', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(704, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(705, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(706, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(707, 'Qinghai', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(708, 'Shaanxi', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(709, 'Shandong', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(710, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(711, 'Shanghai', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(712, 'Shanxi', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(713, 'Sichuan', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(714, 'Tianjin', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(715, 'Xianggang', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(716, 'Xinjiang', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(717, 'Xizang', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(718, 'Yunnan', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(719, 'Zhejiang', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(720, '<NAME>', 48, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(721, '<NAME>', 54, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(722, 'Cocos (Keeling) Islands', 39, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(723, 'Amazonas', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(724, 'Antioquia', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(725, 'Arauca', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(726, 'Atlantico', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(727, 'Bogota', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(728, 'Bolivar', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(729, 'Boyaca', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(730, 'Caldas', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(731, 'Caqueta', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(732, 'Casanare', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(733, 'Cauca', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(734, 'Cesar', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(735, 'Choco', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(736, 'Cordoba', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(737, 'Cundinamarca', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(738, 'Guainia', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(739, 'Guaviare', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(740, 'Huila', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(741, '<NAME>', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(742, 'Magdalena', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(743, 'Meta', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(744, 'Narino', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(745, '<NAME>', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(746, 'Putumayo', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(747, 'Quindio', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(748, 'Risaralda', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(749, '<NAME>', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(750, 'Santander', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(751, 'Sucre', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(752, 'Tolima', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(753, '<NAME>', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(754, 'Vaupes', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(755, 'Vichada', 49, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(756, 'Mwali', 119, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(757, 'Njazidja', 119, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(758, 'Nzwani', 119, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(759, 'Bouenza', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(760, 'Brazzaville', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(761, 'Cuvette', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(762, 'Kouilou', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(763, 'Lekoumou', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(764, 'Likouala', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(765, 'Niari', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(766, 'Plateaux', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(767, 'Pool', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(768, 'Sangha', 42, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(769, 'Bandundu', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(770, 'Bas-Congo', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(771, 'Equateur', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(772, 'Haut-Congo', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(773, 'Kasai-Occidental', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(774, 'Kasai-Oriental', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(775, 'Katanga', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(776, 'Kinshasa', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(777, 'Maniema', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(778, 'Nord-Kivu', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(779, 'Sud-Kivu', 40, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(780, 'Aitutaki', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(781, 'Atiu', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(782, 'Mangaia', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(783, 'Manihiki', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(784, 'Mauke', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(785, 'Mitiaro', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(786, 'Nassau', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(787, 'Pukapuka', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(788, 'Rakahanga', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(789, 'Rarotonga', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(790, 'Tongareva', 45, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(791, 'Alajuela', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(792, 'Cartago', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(793, 'Guanacaste', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(794, 'Heredia', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(795, 'Limon', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(796, 'Puntarenas', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(797, '<NAME>', 50, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(798, 'Abidjan', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(799, 'Agneby', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(800, 'Bafing', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(801, 'Denguele', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(802, '<NAME>', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(803, 'Fromager', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(804, 'Haut-Sassandra', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(805, 'Lacs', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(806, 'Lagunes', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(807, 'Marahoue', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(808, 'Moyen-Cavally', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(809, 'Moyen-Comoe', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(810, 'Sassandra', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(811, 'Savanes', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(812, 'Sud-Bandama', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(813, 'Sud-Comoe', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(814, '<NAME>', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(815, 'Worodougou', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(816, 'Zanzan', 44, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(817, 'Bjelovar-Bilogora', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(818, 'Dubrovnik-Neretva', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(819, '<NAME>', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(820, 'Istra', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(821, 'Karlovac', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(822, 'Koprivnica-Krizhevci', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(823, 'Krapina-Zagorje', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(824, 'Lika-Senj', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(825, 'Medhimurje', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(826, '<NAME>', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(827, 'Osijek-Baranja', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(828, 'Osjecko-<NAME>', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(829, 'Pozhega-Slavonija', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(830, 'Primorje-<NAME>', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(831, 'Shibenik-Knin', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(832, 'Sisak-Moslavina', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(833, '<NAME>', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(834, 'Split-Dalmacija', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(835, 'Varazhdin', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(836, 'Virovitica-Podravina', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(837, 'Vukovar-Srijem', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(838, 'Zadar', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(839, 'Zagreb', 98, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(840, 'Camaguey', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(841, '<NAME>', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(842, 'Cienfuegos', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(843, 'Ciudad de la Habana', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(844, 'Granma', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(845, 'Guantanamo', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(846, 'Habana', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(847, 'Holguin', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(848, 'Isla de la Juventud', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(849, 'La Habana', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(850, 'Las Tunas', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(851, 'Matanzas', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(852, 'Pinar del Rio', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(853, 'Sancti Spiritus', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(854, '<NAME>', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(855, '<NAME>', 51, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(856, 'Government controlled area', 55, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(857, 'Limassol', 55, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(858, 'Nicosia District', 55, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(859, 'Paphos', 55, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(860, 'Turkish controlled area', 55, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(861, 'Central Bohemian', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(862, 'Frycovice', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(863, '<NAME>', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(864, 'Jihochesky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(865, 'Jihomoravsky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(866, 'Karlovarsky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(867, 'Klecany', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(868, 'Kralovehradecky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(869, 'Liberecky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(870, 'Lipov', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(871, 'Moravskoslezsky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(872, 'Olomoucky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(873, '<NAME>', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(874, 'Pardubicky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(875, 'Plzensky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(876, 'Praha', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(877, 'Rajhrad', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(878, 'Smirice', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(879, '<NAME>', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(880, '<NAME>', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(881, 'Stredochesky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(882, 'Unicov', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(883, 'Ustecky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(884, 'Valletta', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(885, 'Velesin', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(886, 'Vysochina', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(887, 'Zlinsky', 56, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(888, 'Arhus', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(889, 'Bornholm', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(890, 'Frederiksborg', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(891, 'Fyn', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(892, 'Hovedstaden', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(893, 'Kobenhavn', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(894, 'Kobenhavns Amt', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(895, 'Kobenhavns Kommune', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(896, 'Nordjylland', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(897, 'Ribe', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(898, 'Ringkobing', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(899, 'Roervig', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(900, 'Roskilde', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(901, 'Roslev', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(902, 'Sjaelland', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(903, 'Soeborg', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(904, 'Sonderjylland', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(905, 'Storstrom', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(906, 'Syddanmark', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(907, 'Toelloese', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(908, 'Vejle', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(909, 'Vestsjalland', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(910, 'Viborg', 59, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(911, 'Dikhil', 58, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(912, 'Jibuti', 58, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(913, 'Tajurah', 58, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(914, 'Ubuk', 58, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(915, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(916, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(917, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(918, 'S<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(919, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(920, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(921, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(922, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(923, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(924, '<NAME>', 60, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(925, 'Azua', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(926, 'Bahoruco', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(927, 'Barahona', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(928, 'Dajabon', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(929, 'Distrito Nacional', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(930, 'Duarte', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(931, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(932, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(933, 'Espaillat', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(934, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(935, 'Independencia', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(936, 'La Altagracia', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(937, 'La Romana', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(938, 'La Vega', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(939, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(940, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(941, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(942, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(943, 'Pedernales', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(944, 'Peravia', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(945, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(946, 'Salcedo', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(947, 'Samana', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(948, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(949, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(950, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(951, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(952, 'Santiago', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(953, '<NAME>', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(954, 'Valverde', 61, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(955, 'Azuay', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(956, 'Bolivar', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(957, 'Canar', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(958, 'Carchi', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(959, 'Chimborazo', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(960, 'Cotopaxi', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(961, 'El Oro', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(962, 'Esmeraldas', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(963, 'Galapagos', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(964, 'Guayas', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(965, 'Imbabura', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(966, 'Loja', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(967, 'Los Rios', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(968, 'Manabi', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(969, '<NAME>', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(970, 'Napo', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(971, 'Orellana', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(972, 'Pastaza', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(973, 'Pichincha', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(974, 'Sucumbios', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(975, 'Tungurahua', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(976, '<NAME>', 63, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(977, 'Aswan', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(978, 'Asyut', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(979, '<NAME>', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(980, 'Cairo', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(981, 'Dumyat', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(982, 'Kafr-ash-Shaykh', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(983, 'Matruh', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(984, '<NAME>', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(985, 'Muhafazat al Fayyum', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(986, 'Muhafazat al Gharbiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(987, 'Muhafazat al Iskandariyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(988, 'Muhafazat al Qahirah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(989, 'Qina', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(990, 'Sawhaj', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(991, '<NAME>', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(992, '<NAME>', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(993, 'ad-Daqahliyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(994, 'al-Bahr-al-Ahmar', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(995, 'al-Buhayrah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(996, 'al-Fayyum', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(997, 'al-Gharbiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(998, 'al-Iskandariyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(999, 'al-Ismailiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1000, 'al-Jizah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1001, 'al-Minufiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1002, 'al-Minya', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1003, 'al-Qahira', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1004, 'al-Qalyubiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1005, 'al-Uqsur', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1006, 'al-Wadi al-Jadid', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1007, 'as-Suways', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1008, 'ash-Sharqiyah', 65, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1009, 'Ahuachapan', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1010, 'Cabanas', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1011, 'Chalatenango', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1012, 'Cuscatlan', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1013, 'La Libertad', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1014, 'La Paz', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1015, 'La Union', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1016, 'Morazan', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1017, '<NAME>', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1018, '<NAME>', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1019, '<NAME>', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1020, '<NAME>', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1021, 'Sonsonate', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1022, 'Usulutan', 210, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1023, 'Annobon', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1024, '<NAME>', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1025, '<NAME>', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1026, 'Centro Sur', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1027, 'Kie-Ntem', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1028, 'Litoral', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1029, 'Wele-Nzas', 88, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1030, 'Anseba', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1031, 'Debub', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1032, 'Debub-Keih-Bahri', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1033, 'Gash-Barka', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1034, 'Maekel', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1035, 'Semien-Keih-Bahri', 67, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1036, 'Harju', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1037, 'Hiiu', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1038, 'Ida-Viru', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1039, 'Jarva', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1040, 'Jogeva', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1041, 'Laane', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1042, 'Laane-Viru', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1043, 'Parnu', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1044, 'Polva', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1045, 'Rapla', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1046, 'Saare', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1047, 'Tartu', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1048, 'Valga', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1049, 'Viljandi', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1050, 'Voru', 64, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1051, '<NAME>', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1052, 'Afar', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1053, 'Amhara', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1054, 'Benishangul', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1055, 'Diredawa', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1056, 'Gambella', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1057, 'Harar', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1058, 'Jigjiga', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1059, 'Mekele', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1060, 'Oromia', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1061, 'Somali', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1062, 'Southern', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1063, 'Tigray', 69, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1064, 'Falkland Islands', 72, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1065, 'South Georgia', 72, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1066, 'Klaksvik', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1067, 'Nor ara Eysturoy', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1068, '<NAME>', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1069, 'Sandoy', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1070, 'Streymoy', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1071, '<NAME>', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1072, '<NAME> Eysturoy', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1073, 'Torshavn', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1074, 'Vaga', 74, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1075, 'Central', 71, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1076, 'Eastern', 71, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1077, 'Northern', 71, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1078, 'South Pacific', 71, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1079, 'Western', 71, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1080, 'Ahvenanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1081, 'Etela-Karjala', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1082, 'Etela-Pohjanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1083, 'Etela-Savo', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1084, 'Etela-Suomen Laani', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1085, 'Ita-Suomen Laani', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1086, 'Ita-Uusimaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1087, 'Kainuu', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1088, 'Kanta-Hame', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1089, 'Keski-Pohjanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1090, 'Keski-Suomi', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1091, 'Kymenlaakso', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1092, 'Lansi-<NAME>', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1093, 'Lappi', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1094, 'Northern Savonia', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1095, 'Ostrobothnia', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1096, '<NAME>', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1097, 'Paijat-Hame', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1098, 'Pirkanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1099, 'Pohjanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1100, 'Pohjois-Karjala', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1101, 'Pohjois-Pohjanmaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1102, 'Pohjois-Savo', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1103, 'Saarijarvi', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1104, 'Satakunta', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1105, 'Southern Savonia', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1106, '<NAME>', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1107, '<NAME>', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1108, 'Uusimaa', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1109, 'Varsinais-Suomi', 70, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1110, 'Ain', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1111, 'Aisne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1112, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1113, 'Allier', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1114, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1115, 'Alpes-Maritimes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1116, 'Alpes-de-Haute-Provence', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1117, 'Alsace', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1118, 'Aquitaine', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1119, 'Ardeche', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1120, 'Ardennes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1121, 'Ariege', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1122, 'Aube', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1123, 'Aude', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1124, 'Auvergne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1125, 'Aveyron', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1126, 'Bas-Rhin', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1127, 'Basse-Normandie', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1128, 'Bouches-du-Rhone', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1129, 'Bourgogne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1130, 'Bretagne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1131, 'Brittany', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1132, 'Burgundy', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1133, 'Calvados', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1134, 'Cantal', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1135, 'Cedex', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1136, 'Centre', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1137, 'Charente', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1138, 'Charente-Maritime', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1139, 'Cher', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1140, 'Correze', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1141, 'Corse-du-Sud', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1142, 'Creuse', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1143, 'Crolles', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1144, 'Deux-Sevres', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1145, 'Dordogne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1146, 'Doubs', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1147, 'Drome', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1148, 'Essonne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1149, 'Eure', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1150, 'Eure-et-Loir', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1151, 'Feucherolles', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1152, 'Finistere', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1153, 'Franche-Comte', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1154, 'Gard', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1155, 'Gers', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1156, 'Gironde', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1157, 'Haut-Rhin', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1158, 'Haute-Corse', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1159, 'Haute-Garonne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1160, 'Haute-Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1161, 'Haute-Marne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1162, 'Haute-Saone', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1163, 'Haute-Savoie', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1164, 'Haute-Vienne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1165, 'Hautes-Alpes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1166, 'Hautes-Pyrenees', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1167, 'Hauts-de-Seine', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1168, 'Herault', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1169, 'Ile-de-France', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1170, 'Ille-et-Vilaine', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1171, 'Indre', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1172, 'Indre-et-Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1173, 'Isere', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1174, 'Jura', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1175, 'Klagenfurt', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1176, 'Landes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1177, 'Languedoc-Roussillon', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1178, 'Larcay', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1179, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1180, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1181, 'Limousin', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1182, 'Loir-et-Cher', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1183, 'Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1184, 'Loire-Atlantique', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1185, 'Loiret', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1186, 'Lorraine', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1187, 'Lot', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1188, 'Lot-et-Garonne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1189, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1190, 'Lozere', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1191, 'Maine-et-Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1192, 'Manche', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1193, 'Marne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1194, 'Mayenne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1195, 'Meurthe-et-Moselle', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1196, 'Meuse', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1197, 'Midi-Pyrenees', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1198, 'Morbihan', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1199, 'Moselle', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1200, 'Nievre', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1201, 'Nord', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1202, 'Nord-Pas-de-Calais', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1203, 'Oise', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1204, 'Orne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1205, 'Paris', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1206, 'Pas-de-Calais', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1207, 'Pays de la Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1208, 'Pays-de-la-Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1209, 'Picardy', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1210, 'Puy-de-Dome', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1211, 'Pyrenees-Atlantiques', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1212, 'Pyrenees-Orientales', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1213, 'Quelmes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1214, 'Rhone', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1215, 'Rhone-Alpes', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1216, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1217, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1218, 'Saone-et-Loire', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1219, 'Sarthe', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1220, 'Savoie', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1221, 'Seine-Maritime', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1222, 'Seine-Saint-Denis', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1223, 'Seine-et-Marne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1224, 'Somme', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1225, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1226, 'Souvans', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1227, 'Tarn', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1228, 'Tarn-et-Garonne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1229, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1230, 'Treignac', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1231, '<NAME>', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1232, 'Val-de-Marne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1233, 'Var', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1234, 'Vaucluse', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1235, 'Vellise', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1236, 'Vendee', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1237, 'Vienne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1238, 'Vosges', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1239, 'Yonne', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1240, 'Yvelines', 75, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1241, 'Cayenne', 80, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1242, 'Saint-Laurent-du-Maroni', 80, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1243, '<NAME>', 175, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1244, 'Iles sous le Vent', 175, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1245, 'Marquesas', 175, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1246, 'Tuamotu', 175, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1247, 'Tubuai', 175, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1248, 'Amsterdam', 216, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1249, 'Crozet Islands', 216, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1250, 'Kerguelen', 216, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1251, 'Estuaire', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1252, 'Haut-Ogooue', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1253, 'Moyen-Ogooue', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1254, 'Ngounie', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1255, 'Nyanga', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1256, 'Ogooue-Ivindo', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1257, 'Ogooue-Lolo', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1258, 'Ogooue-Maritime', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1259, 'Woleu-Ntem', 76, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1260, 'Banjul', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1261, 'Basse', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1262, 'Brikama', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1263, 'Janjanbureh', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1264, 'Kanifing', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1265, 'Kerewan', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1266, 'Kuntaur', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1267, 'Mansakonko', 85, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1268, 'Abhasia', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1269, 'Ajaria', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1270, 'Guria', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1271, 'Imereti', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1272, 'Kaheti', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1273, '<NAME>', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1274, 'Mcheta-Mtianeti', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1275, 'Racha', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1276, 'Samagrelo-<NAME>', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1277, 'Samche-Zhavaheti', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1278, '<NAME>', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1279, 'Tbilisi', 79, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1280, 'Auvergne', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1281, 'Baden-Wurttemberg', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1282, 'Bavaria', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1283, 'Bayern', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1284, '<NAME>', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1285, 'Berlin', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1286, 'Brandenburg', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1287, 'Bremen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1288, 'Dreisbach', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1289, '<NAME>', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1290, 'Hamburg', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1291, 'Hannover', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1292, 'Heroldstatt', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1293, 'Hessen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1294, 'Kortenberg', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1295, 'Laasdorf', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1296, '<NAME>', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1297, 'Land Bayern', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1298, 'Land Brandenburg', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1299, 'Land Hessen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1300, 'Land Mecklenburg-Vorpommern', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1301, 'Land Nordrhein-Westfalen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1302, 'Land Rheinland-Pfalz', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1303, 'Land Sachsen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1304, 'Land Sachsen-Anhalt', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1305, 'Land Thuringen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1306, 'Lower Saxony', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1307, 'Mecklenburg-Vorpommern', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1308, 'Mulfingen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1309, 'Munich', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1310, 'Neubeuern', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1311, 'Niedersachsen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1312, 'Noord-Holland', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1313, 'Nordrhein-Westfalen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1314, 'North Rhine-Westphalia', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1315, 'Osterode', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1316, 'Rheinland-Pfalz', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1317, 'Rhineland-Palatinate', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1318, 'Saarland', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1319, 'Sachsen', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1320, 'Sachsen-Anhalt', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1321, 'Saxony', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1322, 'Schleswig-Holstein', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1323, 'Thuringia', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1324, 'Webling', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1325, 'Weinstrabe', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1326, 'schlobborn', 57, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1327, 'Ashanti', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1328, 'Brong-Ahafo', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1329, 'Central', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1330, 'Eastern', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1331, 'Greater Accra', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1332, 'Northern', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1333, 'Upper East', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1334, 'Upper West', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1335, 'Volta', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1336, 'Western', 82, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1337, 'Gibraltar', 83, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1338, 'Acharnes', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1339, 'Ahaia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1340, '<NAME>', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1341, 'Argolis', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1342, 'Arkadia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1343, 'Arta', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1344, 'Attica', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1345, 'Attiki', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1346, '<NAME>', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1347, 'Crete', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1348, 'Dodekanisos', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1349, 'Drama', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1350, 'Evia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1351, 'Evritania', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1352, 'Evros', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1353, 'Evvoia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1354, 'Florina', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1355, 'Fokis', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1356, 'Fthiotis', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1357, 'Grevena', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1358, 'Halandri', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1359, 'Halkidiki', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1360, 'Hania', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1361, 'Heraklion', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1362, 'Hios', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1363, 'Ilia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1364, 'Imathia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1365, 'Ioannina', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1366, 'Iraklion', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1367, 'Karditsa', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1368, 'Kastoria', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1369, 'Kavala', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1370, 'Kefallinia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1371, 'Kerkira', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1372, 'Kiklades', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1373, 'Kilkis', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1374, 'Korinthia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1375, 'Kozani', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1376, 'Lakonia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1377, 'Larisa', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1378, 'Lasithi', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1379, 'Lesvos', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1380, 'Levkas', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1381, 'Magnisia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1382, 'Messinia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1383, '<NAME>', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1384, '<NAME>', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1385, 'Pella', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1386, 'Pieria', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1387, 'Piraios', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1388, 'Preveza', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1389, 'Rethimni', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1390, 'Rodopi', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1391, 'Samos', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1392, 'Serrai', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1393, 'Thesprotia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1394, 'Thessaloniki', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1395, 'Trikala', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(1396, 'Voiotia', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1397, 'West Greece', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1398, 'Xanthi', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1399, 'Zakinthos', 89, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1400, 'Aasiaat', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1401, 'Ammassalik', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1402, 'Illoqqortoormiut', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1403, 'Ilulissat', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1404, 'Ivittuut', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1405, 'Kangaatsiaq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1406, 'Maniitsoq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1407, 'Nanortalik', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1408, 'Narsaq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1409, 'Nuuk', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1410, 'Paamiut', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1411, 'Qaanaaq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1412, 'Qaqortoq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1413, 'Qasigiannguit', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1414, 'Qeqertarsuaq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1415, 'Sisimiut', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1416, 'Udenfor kommunal inddeling', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1417, 'Upernavik', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1418, 'Uummannaq', 84, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1419, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1420, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1421, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1422, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1423, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1424, '<NAME>', 78, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1425, 'Basse-Terre', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1426, 'Grande-Terre', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1427, 'Iles des Saintes', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1428, '<NAME>', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1429, 'Marie-Galante', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1430, '<NAME>', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1431, '<NAME>', 87, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1432, '<NAME>', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1433, 'Agat', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1434, 'Barrigada', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1435, 'Chalan-Pago-Ordot', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1436, 'Dededo', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1437, 'Hagatna', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1438, 'Inarajan', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1439, 'Mangilao', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1440, 'Merizo', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1441, 'Mongmong-Toto-Maite', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1442, '<NAME>', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1443, 'Sinajana', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1444, 'Talofofo', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1445, 'Tamuning', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1446, 'Yigo', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1447, 'Yona', 92, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1448, '<NAME>', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1449, '<NAME>', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1450, 'Chimaltenango', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1451, 'Chiquimula', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1452, '<NAME>', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1453, 'Escuintla', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1454, 'Guatemala', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1455, 'Huehuetenango', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1456, 'Izabal', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1457, 'Jalapa', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1458, 'Jutiapa', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1459, 'Peten', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1460, 'Quezaltenango', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1461, 'Quiche', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1462, 'Retalhuleu', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1463, 'Sacatepequez', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1464, '<NAME>', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1465, '<NAME>', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1466, 'Solola', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1467, 'Suchitepequez', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1468, 'Totonicapan', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1469, 'Zacapa', 91, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1470, 'Beyla', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1471, 'Boffa', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1472, 'Boke', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1473, 'Conakry', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1474, 'Coyah', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1475, 'Dabola', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1476, 'Dalaba', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1477, 'Dinguiraye', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1478, 'Faranah', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1479, 'Forecariah', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1480, 'Fria', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1481, 'Gaoual', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1482, 'Gueckedou', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1483, 'Kankan', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1484, 'Kerouane', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1485, 'Kindia', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1486, 'Kissidougou', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1487, 'Koubia', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1488, 'Koundara', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1489, 'Kouroussa', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1490, 'Labe', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1491, 'Lola', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1492, 'Macenta', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1493, 'Mali', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1494, 'Mamou', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1495, 'Mandiana', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1496, 'Nzerekore', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1497, 'Pita', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1498, 'Siguiri', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1499, 'Telimele', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1500, 'Tougue', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1501, 'Yomou', 86, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1502, 'Bafata', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1503, 'Bissau', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1504, 'Bolama', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1505, 'Cacheu', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1506, 'Gabu', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1507, 'Oio', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1508, 'Quinara', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1509, 'Tombali', 93, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1510, 'Barima-Waini', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1511, 'Cuyuni-Mazaruni', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1512, 'Demerara-Mahaica', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1513, 'East Berbice-Corentyne', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1514, 'Essequibo Islands-West Demerar', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1515, 'Mahaica-Berbice', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1516, 'Pomeroon-Supenaam', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1517, 'Potaro-Siparuni', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1518, 'Upper Demerara-Berbice', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1519, 'Upper Takutu-Upper Essequibo', 94, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1520, 'Artibonite', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1521, 'Centre', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1522, 'Nord', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1523, 'Nord-Est', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1524, 'Nord-Ouest', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1525, 'Ouest', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1526, 'Sud', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1527, 'Sud-Est', 99, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1528, 'Heard and McDonald Islands', 96, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1529, 'Atlantida', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1530, 'Choluteca', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1531, 'Colon', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1532, 'Comayagua', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1533, 'Copan', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1534, 'Cortes', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1535, 'Distrito Central', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1536, 'El Paraiso', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1537, '<NAME>', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1538, '<NAME> Dios', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1539, 'Intibuca', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1540, '<NAME>', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1541, '<NAME>', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1542, 'Lempira', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1543, 'Ocotepeque', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1544, 'Olancho', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1545, '<NAME>', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1546, 'Valle', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1547, 'Yoro', 97, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1548, '<NAME>', 95, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1549, 'Bacs-Kiskun', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1550, 'Baranya', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1551, 'Bekes', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1552, 'Borsod-Abauj-Zemplen', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1553, 'Budapest', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1554, 'Csongrad', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1555, 'Fejer', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1556, 'Gyor-Moson-Sopron', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1557, 'Hajdu-Bihar', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1558, 'Heves', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1559, 'Jasz-Nagykun-Szolnok', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1560, 'Komarom-Esztergom', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1561, 'Nograd', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1562, 'Pest', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1563, 'Somogy', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1564, 'Szabolcs-Szatmar-Bereg', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1565, 'Tolna', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1566, 'Vas', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1567, 'Veszprem', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1568, 'Zala', 100, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1569, 'Austurland', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1570, 'Gullbringusysla', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1571, 'Hofu borgarsva i', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1572, 'Nor urland eystra', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1573, 'Nor urland vestra', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1574, 'Su urland', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1575, 'Su urnes', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1576, 'Vestfir ir', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1577, 'Vesturland', 109, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1578, 'Andaman and Nicobar Islands', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1579, 'Andhra Pradesh', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1580, 'Arunachal Pradesh', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1581, 'Assam', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1582, 'Bihar', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1583, 'Chandigarh', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1584, 'Chhattisgarh', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1585, 'Dadra and <NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1586, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1587, 'Delhi', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1588, 'Goa', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1589, 'Gujarat', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1590, 'Haryana', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1591, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1592, 'Jammu and Kashmir', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1593, 'Jharkhand', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1594, 'Karnataka', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1595, 'Kenmore', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1596, 'Kerala', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1597, 'Lakshadweep', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1598, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1599, 'Maharashtra', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1600, 'Manipur', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1601, 'Meghalaya', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1602, 'Mizoram', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1603, 'Nagaland', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1604, 'Narora', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1605, 'Natwar', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1606, 'Odisha', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1607, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1608, 'Pondicherry', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1609, 'Punjab', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1610, 'Rajasthan', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1611, 'Sikkim', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1612, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1613, 'Telangana', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1614, 'Tripura', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1615, '<NAME>', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1616, 'Uttarakhand', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1617, 'Vaishali', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1618, 'West Bengal', 105, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1619, 'Aceh', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1620, 'Bali', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1621, 'Bangka-Belitung', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1622, 'Banten', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1623, 'Bengkulu', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1624, 'Gandaria', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1625, 'Gorontalo', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1626, 'Jakarta', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1627, 'Jambi', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1628, 'Jawa Barat', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1629, 'Jawa Tengah', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1630, 'Jawa Timur', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1631, 'Kalimantan Barat', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1632, 'Kalimantan Selatan', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1633, 'Kalimantan Tengah', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1634, '<NAME>', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1635, 'Kendal', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1636, 'Lampung', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1637, 'Maluku', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1638, '<NAME>', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1639, '<NAME>', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1640, '<NAME>', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1641, 'Papua', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1642, 'Riau', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1643, 'Riau Kepulauan', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1644, 'Solo', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1645, 'Sulawesi Selatan', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1646, 'Sulawesi Tengah', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1647, 'Sulawesi Tenggara', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1648, 'Sulawesi Utara', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1649, 'Sumatera Barat', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1650, 'Sumatera Selatan', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1651, 'Sumatera Utara', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1652, 'Yogyakarta', 101, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1653, 'Ardabil', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1654, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1655, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1656, 'Bushehr', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1657, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1658, 'Esfahan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1659, 'Fars', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1660, 'Gilan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1661, 'Golestan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1662, 'Hamadan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1663, 'Hormozgan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1664, 'Ilam', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1665, 'Kerman', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1666, 'Kermanshah', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1667, 'Khorasan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1668, 'Khuzestan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1669, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1670, 'Kordestan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1671, 'Lorestan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1672, 'Markazi', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1673, 'Mazandaran', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1674, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1675, 'Qazvin', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1676, 'Qom', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1677, 'Semnan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1678, '<NAME>', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1679, 'Tehran', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1680, 'Yazd', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1681, 'Zanjan', 108, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1682, 'Babil', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1683, 'Baghdad', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1684, 'Dahuk', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1685, '<NAME>', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1686, 'Diyala', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1687, 'Erbil', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1688, 'Irbil', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1689, 'Karbala', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1690, 'Kurdistan', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1691, 'Maysan', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1692, 'Ninawa', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1693, 'Salah-ad-Din', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1694, 'Wasit', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1695, 'al-Anbar', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1696, 'al-Basrah', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1697, 'al-Muthanna', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1698, 'al-Qadisiyah', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1699, 'an-Najaf', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1700, 'as-Sulaymaniyah', 107, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1701, 'Armagh', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1702, 'Carlow', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1703, 'Cavan', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1704, 'Clare', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1705, 'Cork', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1706, 'Donegal', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1707, 'Dublin', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1708, 'Galway', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1709, 'Kerry', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1710, 'Kildare', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1711, 'Kilkenny', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1712, 'Laois', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1713, 'Leinster', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1714, 'Leitrim', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1715, 'Limerick', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1716, '<NAME>', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1717, 'Longford', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1718, 'Louth', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1719, 'Mayo', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1720, 'Meath', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1721, 'Monaghan', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1722, 'Offaly', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1723, 'Roscommon', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1724, 'Sligo', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1725, 'Tipperary North Riding', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1726, 'Tipperary South Riding', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1727, 'Ulster', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1728, 'Waterford', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1729, 'Westmeath', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1730, 'Wexford', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1731, 'Wicklow', 102, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1732, '<NAME>', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1733, '<NAME> Airport', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1734, 'Bethlehem', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1735, 'Caesarea', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1736, 'Centre', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1737, 'Gaza', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1738, 'Hadaron', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1739, 'Haifa District', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1740, 'Hamerkaz', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1741, 'Hazafon', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1742, 'Hebron', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1743, 'Jaffa', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1744, 'Jerusalem', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1745, 'Khefa', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1746, '<NAME>', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1747, 'Lower Galilee', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1748, 'Qalqilya', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1749, '<NAME>', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1750, 'Tel Aviv', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1751, 'Tsafon', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1752, '<NAME>', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1753, 'Yerushalayim', 103, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1754, 'Abruzzi', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1755, 'Abruzzo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1756, 'Agrigento', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1757, 'Alessandria', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1758, 'Ancona', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1759, 'Arezzo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1760, '<NAME>', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1761, 'Asti', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1762, 'Avellino', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1763, 'Bari', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1764, 'Basilicata', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1765, 'Belluno', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1766, 'Benevento', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1767, 'Bergamo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1768, 'Biella', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1769, 'Bologna', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1770, 'Bolzano', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1771, 'Brescia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1772, 'Brindisi', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1773, 'Calabria', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1774, 'Campania', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1775, 'Cartoceto', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1776, 'Caserta', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1777, 'Catania', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1778, 'Chieti', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1779, 'Como', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1780, 'Cosenza', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1781, 'Cremona', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1782, 'Cuneo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1783, 'Emilia-Romagna', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1784, 'Ferrara', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1785, 'Firenze', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1786, 'Florence', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1787, 'Forli-Cesena ', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1788, 'Friuli-<NAME>', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1789, 'Frosinone', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1790, 'Genoa', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1791, 'Gorizia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1792, 'Lazio', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1793, 'Lecce', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1794, 'Lecco', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1795, 'Lecco Province', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1796, 'Liguria', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1797, 'Lodi', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1798, 'Lombardia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1799, 'Lombardy', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1800, 'Macerata', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1801, 'Mantova', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1802, 'Marche', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1803, 'Messina', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1804, 'Milan', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1805, 'Modena', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1806, 'Molise', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1807, 'Molteno', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1808, 'Montenegro', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1809, '<NAME> Brianza', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1810, 'Naples', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1811, 'Novara', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1812, 'Padova', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1813, 'Parma', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1814, 'Pavia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1815, 'Perugia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1816, 'Pesaro-Urbino', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1817, 'Piacenza', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1818, 'Piedmont', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1819, 'Piemonte', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1820, 'Pisa', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1821, 'Pordenone', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1822, 'Potenza', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1823, 'Puglia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1824, '<NAME>', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1825, 'Rimini', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1826, 'Roma', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1827, 'Salerno', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1828, 'Sardegna', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1829, 'Sassari', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1830, 'Savona', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1831, 'Sicilia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1832, 'Siena', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1833, 'Sondrio', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1834, '<NAME>', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1835, 'Taranto', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1836, 'Teramo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1837, 'Torino', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1838, 'Toscana', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1839, 'Trapani', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1840, 'Trentino-<NAME>', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1841, 'Trento', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1842, 'Treviso', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1843, 'Udine', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1844, 'Umbria', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1845, 'Varese', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1846, 'Veneto', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1847, 'Venezia', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1848, 'Verbano-Cusio-Ossola', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1849, 'Vercelli', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1850, 'Verona', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1851, 'Vicenza', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1852, 'Viterbo', 110, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1853, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1854, 'Clarendon', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1855, 'Hanover', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1856, 'Kingston', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1857, 'Manchester', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1858, 'Portland', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1859, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1860, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1861, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1862, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1863, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1864, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1865, '<NAME>', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1866, 'Trelawney', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1867, 'Westmoreland', 112, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1868, 'Aichi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1869, 'Akita', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1870, 'Aomori', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1871, 'Chiba', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1872, 'Ehime', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1873, 'Fukui', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1874, 'Fukuoka', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1875, 'Fukushima', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1876, 'Gifu', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1877, 'Gumma', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1878, 'Hiroshima', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1879, 'Hokkaido', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1880, 'Hyogo', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1881, 'Ibaraki', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1882, 'Ishikawa', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1883, 'Iwate', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1884, 'Kagawa', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1885, 'Kagoshima', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1886, 'Kanagawa', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1887, 'Kanto', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1888, 'Kochi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1889, 'Kumamoto', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1890, 'Kyoto', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1891, 'Mie', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1892, 'Miyagi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1893, 'Miyazaki', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1894, 'Nagano', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1895, 'Nagasaki', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1896, 'Nara', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1897, 'Niigata', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1898, 'Oita', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1899, 'Okayama', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1900, 'Okinawa', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1901, 'Osaka', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1902, 'Saga', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1903, 'Saitama', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1904, 'Shiga', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1905, 'Shimane', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1906, 'Shizuoka', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1907, 'Tochigi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1908, 'Tokushima', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1909, 'Tokyo', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1910, 'Tottori', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1911, 'Toyama', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1912, 'Wakayama', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1913, 'Yamagata', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1914, 'Yamaguchi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1915, 'Yamanashi', 114, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1916, 'Amman', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1917, 'Irbid', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1918, 'Jarash', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1919, 'Madaba', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1920, 'al-Karak', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1921, 'al-Mafraq', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1922, 'at-Tafilah', 113, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1923, 'Akmecet', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1924, 'Akmola', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1925, 'Aktobe', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1926, 'Almati', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1927, 'Atirau', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1928, '<NAME>', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1929, 'Burlinsky Region', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1930, 'Karagandi', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1931, 'Kostanay', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1932, 'Mankistau', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1933, '<NAME>', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1934, 'Pavlodar', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1935, '<NAME>', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1936, '<NAME>', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1937, 'Taraz', 125, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1938, 'Central', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1939, 'Coast', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1940, 'Eastern', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1941, 'Nairobi', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1942, 'North Eastern', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1943, 'Nyanza', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1944, 'Rift Valley', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1945, 'Western', 115, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1946, 'Abaiang', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1947, 'Abemana', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1948, 'Aranuka', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1949, 'Arorae', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1950, 'Banaba', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1951, 'Beru', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1952, 'Butaritari', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1953, 'Kiritimati', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1954, 'Kuria', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1955, 'Maiana', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1956, 'Makin', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1957, 'Marakei', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1958, 'Nikunau', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1959, 'Nonouti', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1960, 'Onotoa', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1961, 'Phoenix Islands', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1962, 'Tabiteuea North', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1963, 'Tabiteuea South', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1964, 'Tabuaeran', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1965, 'Tamana', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1966, 'Tarawa North', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1967, 'Tarawa South', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1968, 'Teraina', 118, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1969, 'Chagangdo', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1970, 'Hamgyeongbukto', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1971, 'Hamgyeongnamdo', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1972, 'Hwanghaebukto', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1973, 'Hwanghaenamdo', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1974, 'Kaeseong', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1975, 'Kangweon', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1976, 'Nampo', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1977, 'Pyeonganbukto', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1978, 'Pyeongannamdo', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1979, 'Pyeongyang', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1980, 'Yanggang', 121, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1981, 'Busan', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1982, 'Cheju', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1983, 'Chollabuk', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1984, 'Chollanam', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1985, 'Chungbuk', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1986, 'Chungcheongbuk', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1987, 'Chungcheongnam', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1988, 'Chungnam', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1989, 'Daegu', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1990, 'Gangwon-do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1991, 'Goyang-si', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1992, 'Gyeonggi-do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1993, 'Gyeongsang ', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1994, 'Gyeongsangnam-do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1995, 'Incheon', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1996, 'Jeju-Si', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1997, 'Jeonbuk', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1998, 'Kangweon', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(1999, 'Kwangju', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2000, 'Kyeonggi', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2001, 'Kyeongsangbuk', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2002, 'Kyeongsangnam', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2003, 'Kyonggi-do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2004, 'Kyungbuk-Do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2005, 'Kyunggi-Do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2006, 'Kyunggi-do', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2007, 'Pusan', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2008, 'Seoul', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2009, 'Sudogwon', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2010, 'Taegu', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2011, 'Taejeon', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2012, 'Taejon-gwangyoksi', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2013, 'Ulsan', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2014, 'Wonju', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2015, 'gwangyoksi', 122, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2016, '<NAME>', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2017, 'Hawalli', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2018, 'Mishref', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2019, 'Qadesiya', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2020, 'Safat', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2021, 'Salmiya', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2022, 'al-Ahmadi', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2023, 'al-Farwaniyah', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2024, 'al-Jahra', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2025, 'al-Kuwayt', 123, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2026, 'Batken', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2027, 'Bishkek', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2028, 'Chui', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2029, 'Issyk-Kul', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2030, 'Jalal-Abad', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2031, 'Naryn', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2032, 'Osh', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2033, 'Talas', 116, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2034, 'Attopu', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2035, 'Bokeo', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2036, 'Bolikhamsay', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2037, 'Champasak', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2038, 'Houaphanh', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2039, 'Khammouane', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2040, '<NAME>', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2041, '<NAME>', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2042, 'Oudomxay', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2043, 'Phongsaly', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2044, 'Saravan', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2045, 'Savannakhet', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2046, 'Sekong', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2047, 'Viangchan Prefecture', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2048, 'Viangchan Province', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2049, 'Xaignabury', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2050, '<NAME>', 126, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2051, 'Aizkraukles', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2052, 'Aluksnes', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2053, 'Balvu', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2054, 'Bauskas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2055, 'Cesu', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2056, 'Daugavpils', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2057, 'Daugavpils City', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2058, 'Dobeles', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2059, 'Gulbenes', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2060, 'Jekabspils', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2061, 'Jelgava', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2062, 'Jelgavas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2063, 'Jurmala City', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2064, 'Kraslavas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2065, 'Kuldigas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2066, 'Liepaja', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2067, 'Liepajas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2068, 'Limbazhu', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2069, 'Ludzas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2070, 'Madonas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2071, 'Ogres', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2072, 'Preilu', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2073, 'Rezekne', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2074, 'Rezeknes', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2075, 'Riga', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2076, 'Rigas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2077, 'Saldus', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2078, 'Talsu', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2079, 'Tukuma', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2080, 'Valkas', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2081, 'Valmieras', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(2082, 'Ventspils', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2083, 'Ventspils City', 135, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2084, 'Beirut', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2085, '<NAME>', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2086, '<NAME>-Nord', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2087, '<NAME>', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2088, 'Sidon', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2089, 'al-Biqa', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2090, 'al-Janub', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2091, 'an-Nabatiyah', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2092, 'ash-Shamal', 127, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2093, 'Berea', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2094, 'Butha-Buthe', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2095, 'Leribe', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2096, 'Mafeteng', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2097, 'Maseru', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2098, 'Mokhotlong', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2099, 'Quthing', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2100, 'Thaba-Tseka', 132, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2101, 'Bomi', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2102, 'Bong', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2103, 'Grand Bassa', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2104, 'Grand Cape Mount', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2105, 'Grand Gedeh', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2106, 'Loffa', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2107, 'Margibi', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2108, 'Maryland and <NAME>', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2109, 'Montserrado', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2110, 'Nimba', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2111, 'Rivercess', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2112, 'Sinoe', 131, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2113, 'Ajdabiya', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2114, 'Fezzan', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2115, 'Banghazi', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2116, 'Darnah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2117, 'Ghadamis', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2118, 'Gharyan', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2119, 'Misratah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2120, 'Murzuq', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2121, 'Sabha', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2122, 'Sawfajjin', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2123, 'Surt', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2124, 'Tarabulus', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2125, 'Tarhunah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2126, 'Tripolitania', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2127, 'Tubruq', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2128, 'Yafran', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2129, 'Zlitan', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2130, 'al-Fatih', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2131, 'al-Jabal al Akhdar', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2132, 'al-Jufrah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2133, 'al-Khums', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2134, 'al-Kufrah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2135, 'an-<NAME>', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2136, 'az-Zawiyah', 136, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2137, 'Balzers', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2138, 'Eschen', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2139, 'Gamprin', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2140, 'Mauren', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2141, 'Planken', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2142, 'Ruggell', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2143, 'Schaan', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2144, 'Schellenberg', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2145, 'Triesen', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2146, 'Triesenberg', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2147, 'Vaduz', 129, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2148, 'Alytaus', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2149, 'Anyksciai', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2150, 'Kauno', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2151, 'Klaipedos', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2152, 'Marijampoles', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2153, 'Panevezhio', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2154, 'Panevezys', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2155, 'Shiauliu', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2156, 'Taurages', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2157, 'Telshiu', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2158, 'Telsiai', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2159, 'Utenos', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2160, 'Vilniaus', 133, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2161, 'Capellen', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2162, 'Clervaux', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2163, 'Diekirch', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2164, 'Echternach', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2165, 'Esch-sur-Alzette', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2166, 'Grevenmacher', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2167, 'Luxembourg', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2168, 'Mersch', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2169, 'Redange', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2170, 'Remich', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2171, 'Vianden', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2172, 'Wiltz', 134, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2173, 'Macau', 148, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2174, 'Berovo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2175, 'Bitola', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2176, 'Brod', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2177, 'Debar', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2178, 'Delchevo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2179, '<NAME>', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2180, 'Gevgelija', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2181, 'Gostivar', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2182, 'Kavadarci', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2183, 'Kichevo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2184, 'Kochani', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2185, 'Kratovo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2186, '<NAME>', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2187, 'Krushevo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2188, 'Kumanovo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2189, 'Negotino', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2190, 'Ohrid', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2191, 'Prilep', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2192, 'Probishtip', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2193, 'Radovish', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2194, 'Resen', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2195, 'Shtip', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2196, 'Skopje', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2197, 'Struga', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2198, 'Strumica', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2199, '<NAME>', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2200, 'Tetovo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2201, 'Valandovo', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2202, 'Veles', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2203, 'Vinica', 144, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2204, 'Antananarivo', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2205, 'Antsiranana', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2206, 'Fianarantsoa', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2207, 'Mahajanga', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2208, 'Toamasina', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2209, 'Toliary', 142, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2210, 'Balaka', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2211, 'Bl<NAME>', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2212, 'Chikwawa', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2213, 'Chiradzulu', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2214, 'Chitipa', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2215, 'Dedza', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2216, 'Dowa', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2217, 'Karonga', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2218, 'Kasungu', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2219, '<NAME>', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2220, 'Machinga', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2221, 'Mangochi', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2222, 'Mchinji', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2223, 'Mulanje', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2224, 'Mwanza', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2225, 'Mzimba', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2226, '<NAME>', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2227, '<NAME>', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2228, 'Nkhotakota', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2229, 'Nsanje', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2230, 'Ntcheu', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2231, 'Ntchisi', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2232, 'Phalombe', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2233, 'Rumphi', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2234, 'Salima', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2235, 'Thyolo', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2236, 'Zomba Municipality', 156, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2237, 'Johor', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2238, 'Kedah', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2239, 'Kelantan', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2240, '<NAME>', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2241, 'Labuan', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2242, 'Melaka', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2243, '<NAME>', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2244, '<NAME>', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2245, 'Pahang', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2246, 'Penang', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2247, 'Perak', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2248, 'Perlis', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2249, '<NAME>', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2250, 'Sabah', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2251, 'Sarawak', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2252, 'Selangor', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2253, 'Sembilan', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2254, 'Terengganu', 158, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2255, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2256, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2257, 'Baa', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2258, 'Dhaal', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2259, 'Faaf', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2260, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2261, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2262, 'Ghaviyani', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2263, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2264, '<NAME>', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2265, 'Kaaf', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2266, 'Laam', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2267, 'Lhaviyani', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2268, 'Male', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2269, 'Miim', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2270, 'Nuun', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2271, 'Raa', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2272, 'Shaviyani', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2273, 'Siin', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2274, 'Thaa', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2275, 'Vaav', 155, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2276, 'Bamako', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2277, 'Gao', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2278, 'Kayes', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2279, 'Kidal', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2280, 'Koulikoro', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2281, 'Mopti', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2282, 'Segou', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2283, 'Sikasso', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2284, 'Tombouctou', 145, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2285, 'Gozo and Comino', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2286, 'Inner Harbour', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2287, 'Northern', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2288, 'Outer Harbour', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2289, 'South Eastern', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2290, 'Valletta', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2291, 'Western', 153, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2292, 'Ailinlaplap', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2293, 'Ailuk', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2294, 'Arno', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2295, 'Aur', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2296, 'Bikini', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2297, 'Ebon', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2298, 'Enewetak', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2299, 'Jabat', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2300, 'Jaluit', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2301, 'Kili', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2302, 'Kwajalein', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2303, 'Lae', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2304, 'Lib', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2305, 'Likiep', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2306, 'Majuro', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2307, 'Maloelap', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2308, 'Mejit', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2309, 'Mili', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2310, 'Namorik', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2311, 'Namu', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2312, 'Rongelap', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2313, 'Ujae', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2314, 'Utrik', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2315, 'Wotho', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2316, 'Wotje', 143, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2317, 'Fort-de-France', 150, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2318, 'La Trinite', 150, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2319, 'Le Marin', 150, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2320, 'Saint-Pierre', 150, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2321, 'Adrar', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2322, 'Assaba', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2323, 'Brakna', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2324, '<NAME>', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2325, 'Hudh-al-Gharbi', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2326, 'Hudh-ash-Sharqi', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2327, 'Inshiri', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2328, 'Nawakshut', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2329, 'Qidimagha', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2330, 'Qurqul', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2331, 'Taqant', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2332, '<NAME>', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2333, 'Trarza', 151, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2334, '<NAME>', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2335, '<NAME>', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2336, 'Flacq', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2337, 'Floreal', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2338, 'Grand Port', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2339, 'Moka', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2340, 'Pamplempousses', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2341, '<NAME>', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2342, 'Port Louis', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2343, '<NAME>', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2344, 'Rodrigues', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2345, '<NAME>', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2346, 'Savanne', 154, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2347, 'Mayotte', 247, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2348, 'Pamanzi', 247, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2349, 'Aguascalientes', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2350, 'Baja California', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2351, 'Baja California Sur', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2352, 'Campeche', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2353, 'Chiapas', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2354, 'Chihuahua', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2355, 'Coahuila', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2356, 'Colima', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2357, 'Distrito Federal', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2358, 'Durango', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2359, 'Estado de Mexico', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2360, 'Guanajuato', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2361, 'Guerrero', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2362, 'Hidalgo', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2363, 'Jalisco', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2364, 'Mexico', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2365, 'Michoacan', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2366, 'Morelos', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2367, 'Nayarit', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2368, '<NAME>', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2369, 'Oaxaca', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2370, 'Puebla', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2371, 'Queretaro', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2372, '<NAME>', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2373, '<NAME>', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2374, 'Sinaloa', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2375, 'Sonora', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2376, 'Tabasco', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2377, 'Tamaulipas', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2378, 'Tlaxcala', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2379, 'Veracruz', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2380, 'Yucatan', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2381, 'Zacatecas', 157, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2382, 'Chuuk', 73, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2383, 'Kusaie', 73, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2384, 'Pohnpei', 73, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2385, 'Yap', 73, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2386, 'Balti', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2387, 'Cahul', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2388, 'Chisinau', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2389, '<NAME>', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2390, 'Edinet', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2391, 'Gagauzia', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2392, 'Lapusna', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2393, 'Orhei', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2394, 'Soroca', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2395, 'Taraclia', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2396, 'Tighina', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2397, 'Transnistria', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2398, 'Ungheni', 139, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2399, 'Fontvieille', 138, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2400, '<NAME>', 138, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2401, 'Monaco-Ville', 138, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2402, '<NAME>', 138, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2403, 'Arhangaj', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2404, 'Bajan-Olgij', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2405, 'Bajanhongor', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2406, 'Bulgan', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2407, 'Darhan-Uul', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2408, 'Dornod', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2409, 'Dornogovi', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2410, 'Dundgovi', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2411, 'Govi-Altaj', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2412, 'Govisumber', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2413, 'Hentij', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2414, 'Hovd', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2415, 'Hovsgol', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2416, 'Omnogovi', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2417, 'Orhon', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2418, 'Ovorhangaj', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2419, 'Selenge', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2420, 'Suhbaatar', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2421, 'Tov', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2422, 'Ulaanbaatar', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2423, 'Uvs', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2424, 'Zavhan', 147, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2425, 'Montserrat', 152, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2426, 'Agadir', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2427, 'Casablanca', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2428, 'Chaouia-Ouardigha', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2429, 'Doukkala-Abda', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2430, 'Fes-Boulemane', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2431, '<NAME>', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2432, 'Guelmim', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2433, 'Kenitra', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2434, 'Marrakech-Tensift-<NAME>', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2435, 'Meknes-Tafilalet', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2436, 'Oriental', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2437, 'Oujda', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2438, 'Province de Tanger', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2439, 'Rabat-Sale-Zammour-Zaer', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2440, 'Sala Al Jadida', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2441, 'Settat', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2442, '<NAME>', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2443, 'Tadla-Azilal', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2444, 'Tangier-Tetouan', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2445, '<NAME>-Taounate', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2446, '<NAME>', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2447, '<NAME>', 137, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2448, '<NAME>', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2449, 'Gaza', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2450, 'Inhambane', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2451, 'Manica', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2452, 'Maputo', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2453, '<NAME>', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2454, 'Nampula', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2455, 'Niassa', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2456, 'Sofala', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2457, 'Tete', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2458, 'Zambezia', 159, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2459, 'Ayeyarwady', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2460, 'Bago', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2461, 'Chin', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2462, 'Kachin', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2463, 'Kayah', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2464, 'Kayin', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2465, 'Magway', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2466, 'Mandalay', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2467, 'Mon', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2468, '<NAME>', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2469, 'Rakhine', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2470, 'Sagaing', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2471, 'Shan', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2472, 'Tanintharyi', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2473, 'Yangon', 146, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2474, 'Caprivi', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2475, 'Erongo', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2476, 'Hardap', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2477, 'Karas', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2478, 'Kavango', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2479, 'Khomas', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2480, 'Kunene', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2481, 'Ohangwena', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2482, 'Omaheke', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2483, 'Omusati', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2484, 'Oshana', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2485, 'Oshikoto', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2486, 'Otjozondjupa', 160, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2487, 'Yaren', 169, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2488, 'Bagmati', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2489, 'Bheri', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2490, 'Dhawalagiri', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2491, 'Gandaki', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2492, 'Janakpur', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2493, 'Karnali', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2494, 'Koshi', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2495, 'Lumbini', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2496, 'Mahakali', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2497, 'Mechi', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2498, 'Narayani', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2499, 'Rapti', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2500, 'Sagarmatha', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2501, 'Seti', 168, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2502, 'Amsterdam', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2503, 'Benelux', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2504, 'Drenthe', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2505, 'Flevoland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2506, 'Friesland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2507, 'Gelderland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2508, 'Groningen', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2509, 'Limburg', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2510, 'Noord-Brabant', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2511, 'Noord-Holland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2512, 'Overijssel', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2513, '<NAME>', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2514, 'Utrecht', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2515, 'Zeeland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2516, 'Zuid-Holland', 166, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2517, 'Iles', 161, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2518, 'Nord', 161, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2519, 'Sud', 161, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2520, 'Area Outside Region', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2521, 'Auckland', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2522, 'Bay of Plenty', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2523, 'Canterbury', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2524, 'Christchurch', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2525, 'Gisborne', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2526, 'Manawatu-Wanganui', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2527, 'Marlborough', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2528, 'Nelson', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2529, 'Northland', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2530, 'Otago', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2531, 'Rodney', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2532, 'Southland', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2533, 'Taranaki', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2534, 'Tasman', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2535, 'Waikato', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2536, 'Wellington', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2537, 'West Coast', 171, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2538, 'Atlantico Norte', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2539, 'Atlantico Sur', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2540, 'Boaco', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2541, 'Carazo', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2542, 'Chinandega', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2543, 'Chontales', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2544, 'Esteli', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2545, 'Granada', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2546, 'Jinotega', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2547, 'Leon', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2548, 'Madriz', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2549, 'Managua', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2550, 'Masaya', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2551, 'Matagalpa', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2552, '<NAME>', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2553, '<NAME>', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2554, 'Rivas', 165, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2555, 'Agadez', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2556, 'Diffa', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2557, 'Dosso', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2558, 'Maradi', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2559, 'Niamey', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2560, 'Tahoua', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2561, 'Tillabery', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2562, 'Zinder', 162, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2563, 'Abia', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2564, 'Abuja Federal Capital Territor', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2565, 'Adamawa', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2566, '<NAME>', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2567, 'Anambra', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2568, 'Bauchi', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2569, 'Bayelsa', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2570, 'Benue', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2571, 'Borno', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2572, '<NAME>', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2573, 'Delta', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2574, 'Ebonyi', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2575, 'Edo', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2576, 'Ekiti', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2577, 'Enugu', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2578, 'Gombe', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2579, 'Imo', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2580, 'Jigawa', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2581, 'Kaduna', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2582, 'Kano', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2583, 'Katsina', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2584, 'Kebbi', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2585, 'Kogi', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2586, 'Kwara', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2587, 'Lagos', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2588, 'Nassarawa', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2589, 'Niger', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2590, 'Ogun', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2591, 'Ondo', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2592, 'Osun', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2593, 'Oyo', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2594, 'Plateau', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2595, 'Rivers', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2596, 'Sokoto', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2597, 'Taraba', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2598, 'Yobe', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2599, 'Zamfara', 164, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2600, 'Niue', 170, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2601, 'Norfolk Island', 163, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2602, 'Northern Islands', 149, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2603, 'Rota', 149, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2604, 'Saipan', 149, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2605, 'Tinian', 149, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2606, 'Akershus', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2607, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2608, 'Bergen', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2609, 'Buskerud', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2610, 'Finnmark', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2611, 'Hedmark', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2612, 'Hordaland', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2613, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2614, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2615, 'Nordland', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2616, 'Oestfold', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2617, 'Oppland', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2618, 'Oslo', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2619, 'Rogaland', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2620, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2621, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2622, 'Stavern', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2623, 'Sykkylven', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2624, 'Telemark', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2625, 'Troms', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2626, '<NAME>', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2627, 'Vestfold', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2628, 'Østfold', 167, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2629, '<NAME>', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2630, 'Dhufar', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2631, 'Masqat', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2632, 'Musandam', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2633, 'Rusayl', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2634, '<NAME>', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2635, 'ad-Dakhiliyah', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2636, 'adh-Dhahirah', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2637, 'al-Batinah', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2638, 'ash-Sharqiyah', 172, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2639, 'Baluchistan', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2640, 'Federal Capital Area', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2641, 'Federally administered Tribal ', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2642, 'North-West Frontier', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2643, 'Northern Areas', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2644, 'Punjab', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2645, 'Sind', 178, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2646, 'Aimeliik', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2647, 'Airai', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2648, 'Angaur', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2649, 'Hatobohei', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2650, 'Kayangel', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2651, 'Koror', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2652, 'Melekeok', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2653, 'Ngaraard', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2654, 'Ngardmau', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2655, 'Ngaremlengui', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2656, 'Ngatpang', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2657, 'Ngchesar', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2658, 'Ngerchelong', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2659, 'Ngiwal', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2660, 'Peleliu', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2661, 'Sonsorol', 185, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2662, 'Ariha', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2663, '<NAME>', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2664, 'Bethlehem', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2665, 'Dayr-al-Balah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2666, 'Ghazzah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2667, '<NAME>-Shamaliyah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2668, 'Janin', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2669, '<NAME>', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2670, 'Nabulus', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2671, 'Qalqilyah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2672, 'Rafah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2673, '<NAME>al-Birah', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2674, 'Salfit', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2675, 'Tubas', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2676, 'Tulkarm', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2677, 'al-Khalil', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2678, 'al-Quds', 183, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2679, '<NAME>', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2680, 'Chiriqui', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2681, 'Cocle', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2682, 'Colon', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2683, 'Darien', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2684, 'Embera', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2685, 'Herrera', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2686, '<NAME>', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2687, 'Los Santos', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2688, '<NAME>', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2689, 'Panama', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2690, 'Veraguas', 173, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2691, 'East New Britain', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2692, 'East Sepik', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2693, 'Eastern Highlands', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2694, 'Enga', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2695, 'Fly River', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2696, 'Gulf', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2697, 'Madang', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2698, 'Manus', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2699, '<NAME>', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2700, 'Morobe', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2701, 'National Capital District', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2702, 'New Ireland', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2703, 'North Solomons', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2704, 'Oro', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2705, 'Sandaun', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2706, 'Simbu', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2707, 'Southern Highlands', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2708, 'West New Britain', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2709, 'Western Highlands', 176, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2710, 'Alto Paraguay', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2711, 'Alto Parana', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2712, 'Amambay', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2713, 'Asuncion', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2714, 'Boqueron', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2715, 'Caaguazu', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2716, 'Caazapa', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2717, 'Canendiyu', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2718, 'Central', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2719, 'Concepcion', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2720, 'Cordillera', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2721, 'Guaira', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2722, 'Itapua', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2723, 'Misiones', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2724, 'Neembucu', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2725, 'Paraguari', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2726, '<NAME>', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2727, '<NAME>', 186, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2728, 'Amazonas', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2729, 'Ancash', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2730, 'Apurimac', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2731, 'Arequipa', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2732, 'Ayacucho', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2733, 'Cajamarca', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2734, 'Cusco', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2735, 'Huancavelica', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2736, 'Huanuco', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2737, 'Ica', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2738, 'Junin', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2739, 'La Libertad', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2740, 'Lambayeque', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2741, '<NAME>', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2742, 'Loreto', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2743, '<NAME>', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2744, 'Moquegua', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2745, 'Pasco', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2746, 'Piura', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2747, 'Puno', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2748, '<NAME>', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2749, 'Tacna', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2750, 'Tumbes', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2751, 'Ucayali', 174, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2752, 'Batangas', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2753, 'Bicol', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2754, 'Bulacan', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2755, 'Cagayan', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2756, 'Caraga', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2757, 'Central Luzon', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2758, 'Central Mindanao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2759, 'Central Visayas', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2760, 'Cordillera', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2761, 'Davao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2762, 'Eastern Visayas', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2763, 'Greater Metropolitan Area', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2764, 'Ilocos', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2765, 'Laguna', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2766, 'Luzon', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2767, 'Mactan', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2768, 'Metropolitan Manila Area', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2769, 'Muslim Mindanao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2770, 'Northern Mindanao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(2771, 'Southern Mindanao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2772, 'Southern Tagalog', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2773, 'Western Mindanao', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2774, 'Western Visayas', 177, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2775, 'Pitcairn Island', 181, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2776, 'Biale Blota', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2777, 'Dobroszyce', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2778, 'Dolnoslaskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2779, '<NAME>', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2780, 'Hopowo', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2781, 'Kartuzy', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2782, 'Koscian', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2783, 'Krakow', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2784, 'Kujawsko-Pomorskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2785, 'Lodzkie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2786, 'Lubelskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2787, 'Lubuskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2788, 'Malomice', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2789, 'Malopolskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2790, 'Mazowieckie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2791, 'Mirkow', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2792, 'Opolskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2793, 'Ostrowiec', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2794, 'Podkarpackie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2795, 'Podlaskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2796, 'Polska', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2797, 'Pomorskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2798, 'Poznan', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2799, 'Pruszkow', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2800, 'Rymanowska', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2801, 'Rzeszow', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2802, 'Slaskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2803, '<NAME>', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2804, 'Swietokrzyskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2805, 'Warminsko-Mazurskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2806, 'Warsaw', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2807, 'Wejherowo', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2808, 'Wielkopolskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2809, 'Wroclaw', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2810, 'Zachodnio-Pomorskie', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2811, 'Zukowo', 179, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2812, 'Abrantes', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2813, 'Acores', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2814, 'Alentejo', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2815, 'Algarve', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2816, 'Braga', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2817, 'Centro', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2818, 'Distrito de Leiria', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2819, 'Distrito de Viana do Castelo', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2820, 'Distrito de Vila Real', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2821, 'Distrito do Porto', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2822, 'Lisboa e Vale do Tejo', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2823, 'Madeira', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2824, 'Norte', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2825, 'Paivas', 184, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2826, 'Arecibo', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2827, 'Bayamon', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2828, 'Carolina', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2829, 'Florida', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2830, 'Guayama', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2831, 'Humacao', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2832, 'Mayaguez-Aguadilla', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2833, 'Ponce', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2834, 'Salinas', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2835, '<NAME>', 182, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2836, 'Doha', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2837, 'Jarian-al-Batnah', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2838, '<NAME>', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2839, 'ad-Dawhah', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2840, 'al-Ghuwayriyah', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2841, 'al-Jumayliyah', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2842, 'al-Khawr', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2843, 'al-Wakrah', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2844, 'ar-Rayyan', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2845, 'ash-Shamal', 187, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2846, 'Saint-Benoit', 188, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2847, 'Saint-Denis', 188, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2848, 'Saint-Paul', 188, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2849, 'Saint-Pierre', 188, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2850, 'Alba', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2851, 'Arad', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2852, 'Arges', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2853, 'Bacau', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2854, 'Bihor', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2855, 'Bistrita-Nasaud', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2856, 'Botosani', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2857, 'Braila', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2858, 'Brasov', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2859, 'Bucuresti', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2860, 'Buzau', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2861, 'Calarasi', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2862, 'Caras-Severin', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2863, 'Cluj', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2864, 'Constanta', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2865, 'Covasna', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2866, 'Dambovita', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2867, 'Dolj', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2868, 'Galati', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2869, 'Giurgiu', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2870, 'Gorj', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2871, 'Harghita', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2872, 'Hunedoara', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2873, 'Ialomita', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2874, 'Iasi', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2875, 'Ilfov', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2876, 'Maramures', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2877, 'Mehedinti', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2878, 'Mures', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2879, 'Neamt', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2880, 'Olt', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2881, 'Prahova', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2882, 'Salaj', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2883, '<NAME>', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2884, 'Sibiu', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2885, 'Sondelor', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2886, 'Suceava', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2887, 'Teleorman', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2888, 'Timis', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2889, 'Tulcea', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2890, 'Valcea', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2891, 'Vaslui', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2892, 'Vrancea', 189, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2893, 'Adygeja', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2894, 'Aga', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2895, 'Alanija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2896, 'Altaj', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2897, 'Amur', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2898, 'Arhangelsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2899, 'Astrahan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2900, 'Bashkortostan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2901, 'Belgorod', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2902, 'Brjansk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2903, 'Burjatija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2904, 'Chechenija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2905, 'Cheljabinsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2906, 'Chita', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2907, 'Chukotka', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2908, 'Chuvashija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2909, 'Dagestan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2910, 'Evenkija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2911, 'Gorno-Altaj', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2912, 'Habarovsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2913, 'Hakasija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2914, 'Hanty-Mansija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2915, 'Ingusetija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2916, 'Irkutsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2917, 'Ivanovo', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2918, 'Jamalo-Nenets', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2919, 'Jaroslavl', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2920, 'Jevrej', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2921, 'Kabardino-Balkarija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2922, 'Kaliningrad', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2923, 'Kalmykija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2924, 'Kaluga', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2925, 'Kamchatka', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2926, 'Karachaj-Cherkessija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2927, 'Karelija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2928, 'Kemerovo', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2929, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2930, 'Kirov', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2931, 'Komi', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2932, 'Komi-Permjakija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2933, 'Korjakija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2934, 'Kostroma', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2935, 'Krasnodar', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2936, 'Krasnojarsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2937, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2938, 'Kurgan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2939, 'Kursk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2940, 'Leningrad', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2941, 'Lipeck', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2942, 'Magadan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2943, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2944, 'Mordovija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2945, 'Moscow', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2946, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2947, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2948, 'Moskva', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2949, 'Murmansk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2950, 'Nenets', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2951, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2952, 'Novgorod', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2953, 'Novokusnezk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2954, 'Novosibirsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2955, 'Omsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2956, 'Orenburg', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2957, 'Orjol', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2958, 'Penza', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2959, 'Perm', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2960, 'Primorje', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2961, 'Pskov', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2962, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2963, 'Rjazan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2964, 'Rostov', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2965, 'Saha', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2966, 'Sahalin', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2967, 'Samara', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2968, 'Samarskaya', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2969, 'Sankt-Peterburg', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2970, 'Saratov', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2971, 'Smolensk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2972, 'Stavropol', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2973, 'Sverdlovsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2974, 'Tajmyrija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2975, 'Tambov', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2976, 'Tatarstan', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2977, 'Tjumen', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2978, 'Tomsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2979, 'Tula', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2980, 'Tver', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2981, 'Tyva', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2982, 'Udmurtija', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2983, 'Uljanovsk', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2984, '<NAME>', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2985, 'Ust-Orda', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2986, 'Vladimir', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2987, 'Volgograd', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2988, 'Vologda', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2989, 'Voronezh', 191, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2990, 'Butare', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2991, 'Byumba', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2992, 'Cyangugu', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2993, 'Gikongoro', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2994, 'Gisenyi', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2995, 'Gitarama', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2996, 'Kibungo', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2997, 'Kibuye', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2998, 'Kigali-ngali', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(2999, 'Ruhengeri', 192, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3000, 'Ascension', 199, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3001, '<NAME>', 199, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3002, '<NAME>', 199, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3003, '<NAME>', 199, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3004, '<NAME> <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3005, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3006, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3007, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3008, 'S<NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3009, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3010, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3011, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3012, 'S<NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3013, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3014, 'Saint <NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3015, '<NAME>', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3016, 'Saint Thomas Middle Island', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3017, 'Trinity Palmetto Point', 120, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3018, 'Anse-la-Raye', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3019, 'Canaries', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3020, 'Castries', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3021, 'Choiseul', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3022, 'Dennery', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3023, '<NAME>', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3024, 'Laborie', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3025, 'Micoud', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3026, 'Soufriere', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3027, '<NAME>', 128, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3028, 'Miquelon-Langlade', 180, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3029, 'Saint-Pierre', 180, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3030, 'Charlotte', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3031, 'Grenadines', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3032, '<NAME>', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3033, '<NAME>', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3034, '<NAME>', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3035, '<NAME>', 237, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3036, 'Aiga-i-le-Tai', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3037, 'Atua', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3038, 'Gagaifomauga', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3039, 'Palauli', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3040, 'Tuamasaga', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3041, 'Vaisigano', 244, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3042, 'Acquaviva', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3043, '<NAME>', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3044, 'Chiesanuova', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3045, 'Domagnano', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3046, 'Faetano', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3047, 'Fiorentino', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3048, 'Montegiardino', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3049, '<NAME>', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3050, 'Serravalle', 204, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3051, '<NAME>', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3052, 'Cantagalo', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3053, 'Lemba', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3054, 'Lobata', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3055, 'Me-Zochi', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3056, 'Pague', 209, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3057, '<NAME>', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3058, 'Aseer', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3059, '<NAME>', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3060, 'Asir', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3061, 'Central Province', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3062, 'Eastern Province', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3063, 'Jawf', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3064, 'Jizan', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3065, 'Makkah', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3066, 'Najran', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3067, 'Qasim', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3068, 'Tabuk', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3069, 'Western Province', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3070, 'al-Bahah', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3071, 'al-Hudud-ash-Shamaliyah', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3072, 'al-Madinah', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3073, 'ar-Riyad', 193, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3074, 'Dakar', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3075, 'Diourbel', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3076, 'Fatick', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3077, 'Kaolack', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3078, 'Kolda', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3079, 'Louga', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3080, 'Saint-Louis', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3081, 'Tambacounda', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3082, 'Thies', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3083, 'Ziguinchor', 205, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3084, 'Central Serbia', 190, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3085, '<NAME>', 190, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3086, 'Vojvodina', 190, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3087, '<NAME>', 195, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3088, '<NAME>', 195, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3089, 'Cascade', 195, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3090, 'Takamaka', 195, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3091, 'Victoria', 195, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3092, 'Eastern', 203, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3093, 'Northern', 203, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3094, 'Southern', 203, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3095, 'Western', 203, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3096, 'Singapore', 198, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3097, 'Banskobystricky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3098, 'Bratislavsky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3099, 'Kosicky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3100, 'Nitriansky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3101, 'Presovsky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3102, 'Trenciansky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3103, 'Trnavsky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3104, 'Zilinsky', 202, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3105, 'Benedikt', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3106, 'Gorenjska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3107, 'Gorishka', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3108, '<NAME>', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3109, 'Koroshka', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3110, 'Notranjsko-krashka', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3111, 'Obalno-krashka', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3112, '<NAME>', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3113, '<NAME>', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3114, 'Osrednjeslovenska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3115, 'Podravska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3116, 'Pomurska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3117, 'Savinjska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3118, '<NAME>', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3119, 'Spodnjeposavska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3120, 'Zasavska', 200, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3121, 'Central', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3122, 'Choiseul', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3123, 'Guadalcanal', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3124, 'Isabel', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3125, '<NAME>', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3126, 'Malaita', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3127, '<NAME>', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3128, 'Temotu', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3129, 'Western', 194, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3130, 'Awdal', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3131, 'Bakol', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3132, 'Banadir', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3133, 'Bari', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3134, 'Bay', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3135, 'Galgudug', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3136, 'Gedo', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3137, 'Hiran', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3138, '<NAME>', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3139, '<NAME>', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3140, 'Mudug', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3141, 'Nugal', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3142, 'Sanag', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3143, '<NAME>', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3144, '<NAME>', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3145, 'Togdher', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3146, '<NAME>', 206, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3147, 'Eastern Cape', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3148, 'Free State', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3149, 'Gauteng', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3150, '<NAME>', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3151, 'Kramerville', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3152, 'KwaZulu Natal', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3153, 'Limpopo', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3154, 'Mpumalanga', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3155, 'North West', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3156, 'Northern Cape', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3157, 'Parow', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3158, 'Table View', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3159, 'Umtentweni', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3160, 'Western Cape', 248, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3161, 'South Georgia', 90, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3162, 'Central Equatoria', 208, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3163, 'A Coruna', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3164, 'Alacant', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3165, 'Alava', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3166, 'Albacete', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3167, 'Almeria', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3168, 'Andalucia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3169, 'Asturias', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3170, 'Avila', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3171, 'Badajoz', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3172, 'Balears', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3173, 'Barcelona', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3174, 'Bertamirans', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3175, 'Biscay', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3176, 'Burgos', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3177, 'Caceres', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3178, 'Cadiz', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3179, 'Cantabria', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3180, 'Castello', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3181, 'Catalunya', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3182, 'Ceuta', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3183, 'Ciudad Real', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3184, 'Comunidad Autonoma de Canarias', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3185, 'Comunidad Autonoma de Cataluna', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3186, 'Comunidad Autonoma de Galicia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3187, 'Comunidad Autonoma de las Isla', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3188, 'Comunidad Autonoma del Princip', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3189, 'Comunidad Valenciana', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3190, 'Cordoba', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3191, 'Cuenca', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3192, 'Gipuzkoa', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3193, 'Girona', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3194, 'Granada', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3195, 'Guadalajara', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3196, 'Guipuzcoa', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3197, 'Huelva', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3198, 'Huesca', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3199, 'Jaen', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3200, 'La Rioja', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3201, '<NAME>', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3202, 'Leon', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3203, 'Lerida', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3204, 'Lleida', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3205, 'Lugo', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3206, 'Madrid', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3207, 'Malaga', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3208, 'Melilla', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3209, 'Murcia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3210, 'Navarra', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3211, 'Ourense', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3212, '<NAME>', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3213, 'Palencia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3214, 'Pontevedra', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3215, 'Salamanca', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3216, '<NAME>', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3217, 'Segovia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3218, 'Sevilla', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3219, 'Soria', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3220, 'Tarragona', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3221, 'Tenerife', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3222, 'Teruel', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3223, 'Toledo', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3224, 'Valencia', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3225, 'Valladolid', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3226, 'Vizcaya', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3227, 'Zamora', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3228, 'Zaragoza', 68, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3229, 'Amparai', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3230, 'Anuradhapuraya', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3231, 'Badulla', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3232, 'Boralesgamuwa', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3233, 'Colombo', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3234, 'Galla', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3235, 'Gampaha', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3236, 'Hambantota', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3237, 'Kalatura', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3238, 'Kegalla', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3239, 'Kilinochchi', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3240, 'Kurunegala', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3241, 'Madakalpuwa', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3242, '<NAME>', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3243, 'Malwana', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3244, 'Mannarama', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3245, 'Matale', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3246, 'Matara', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3247, 'Monaragala', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3248, 'Mullaitivu', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3249, 'North Eastern Province', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3250, 'North Western Province', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3251, 'Nuwara Eliya', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3252, 'Polonnaruwa', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3253, 'Puttalama', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3254, 'Ratnapuraya', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3255, 'Southern Province', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3256, 'Tirikunamalaya', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3257, 'Tuscany', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3258, 'Vavuniyawa', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3259, 'Western Province', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3260, 'Yapanaya', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3261, 'kadawatha', 130, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3262, 'Bahr-al-Jabal', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3263, 'Central Equatoria', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3264, '<NAME>ahr-al-Ghazal', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3265, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3266, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3267, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3268, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3269, 'Junqali', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3270, 'Kassala', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3271, 'Nahr-an-Nil', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3272, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3273, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3274, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3275, 'Sinnar', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3276, 'Warab', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3277, '<NAME>', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3278, 'al-Bahr-al-Ahmar', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3279, 'al-Buhayrat', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3280, 'al-Jazirah', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3281, 'al-Khartum', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3282, 'al-Qadarif', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3283, 'al-Wahdah', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3284, 'an-Nil-al-Abyad', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3285, 'an-Nil-al-Azraq', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3286, 'ash-Shamaliyah', 196, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3287, 'Brokopondo', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3288, 'Commewijne', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3289, 'Coronie', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3290, 'Marowijne', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3291, 'Nickerie', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3292, 'Para', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3293, 'Paramaribo', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3294, 'Saramacca', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3295, 'Wanica', 207, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3296, 'Svalbard', 201, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3297, 'Hhohho', 213, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3298, 'Lubombo', 213, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3299, 'Manzini', 213, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3300, 'Shiselweni', 213, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3301, '<NAME>', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3302, 'Angermanland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3303, 'Blekinge', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3304, 'Bohuslan', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3305, 'Dalarna', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3306, 'Gavleborg', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3307, 'Gaza', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3308, 'Gotland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3309, 'Halland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3310, 'Jamtland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3311, 'Jonkoping', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3312, 'Kalmar', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3313, 'Kristianstads', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3314, 'Kronoberg', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3315, 'Norrbotten', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3316, 'Orebro', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3317, 'Ostergotland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3318, 'Saltsjo-Boo', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3319, 'Skane', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3320, 'Smaland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3321, 'Sodermanland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3322, 'Stockholm', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3323, 'Uppsala', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3324, 'Varmland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3325, 'Vasterbotten', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3326, 'Vastergotland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3327, 'Vasternorrland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3328, 'Vastmanland', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3329, '<NAME>', 197, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3330, 'Aleppo', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3331, 'Dayr-az-Zawr', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3332, 'Dimashq', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3333, 'Halab', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3334, 'Hamah', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3335, 'Hims', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3336, 'Idlib', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3337, '<NAME>', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3338, 'Tartus', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3339, 'al-Hasakah', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3340, 'al-Ladhiqiyah', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3341, 'al-Qunaytirah', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3342, 'ar-Raqqah', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3343, 'as-Suwayda', 212, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3344, 'Changhwa', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3345, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3346, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3347, 'Eastern Taipei', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3348, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3349, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3350, 'Hualien', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3351, 'Ilan', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3352, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3353, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3354, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3355, 'Kinmen', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3356, 'Miaoli', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3357, 'Nantou', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3358, 'Northern Taiwan', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3359, 'Penghu', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3360, 'Pingtung', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3361, 'Taichung', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3362, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3363, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3364, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3365, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3366, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3367, '<NAME> / <NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3368, 'Taitung', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3369, 'Taoyuan', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3370, 'Yilan', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3371, '<NAME>', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3372, 'Yunlin', 228, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3373, 'Dushanbe', 219, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3374, 'Gorno-Badakhshan', 219, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3375, 'Karotegin', 219, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3376, 'Khatlon', 219, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3377, 'Sughd', 219, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3378, 'Arusha', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3379, '<NAME>', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3380, 'Dodoma', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3381, 'Iringa', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3382, 'Kagera', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3383, 'Kigoma', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3384, 'Kilimanjaro', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3385, 'Lindi', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3386, 'Mara', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3387, 'Mbeya', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3388, 'Morogoro', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3389, 'Mtwara', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3390, 'Mwanza', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3391, 'Pwani', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3392, 'Rukwa', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3393, 'Ruvuma', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3394, 'Shinyanga', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3395, 'Singida', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3396, 'Tabora', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3397, 'Tanga', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3398, '<NAME>', 229, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3399, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3400, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3401, 'Bangkok', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3402, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3403, 'Chachoengsao', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3404, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3405, 'Chaiyaphum', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3406, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3407, 'Chanthaburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3408, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3409, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3410, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3411, 'Chumphon', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3412, 'Kalasin', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3413, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3414, 'Kanchanaburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3415, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3416, 'Krabi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3417, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3418, 'Lampang', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3419, 'Lamphun', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3420, 'Loei', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3421, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3422, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3423, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3424, 'Mukdahan', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3425, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3426, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3427, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3428, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3429, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3430, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3431, 'Nan', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3432, 'Narathiwat', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3433, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3434, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3435, 'Nonthaburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3436, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3437, 'Pattani', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3438, 'Phangnga', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3439, 'Phatthalung', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3440, 'Phayao', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3441, 'Phetchabun', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3442, 'Phetchaburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3443, 'Phichit', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3444, 'Phitsanulok', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3445, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3446, 'Phrae', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3447, 'Phuket', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3448, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
INSERT INTO `sb_states` (`id`, `name`, `country_id`, `status`, `created_at`, `updated_at`) VALUES
(3449, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3450, 'Ranong', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3451, 'Ratchaburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3452, 'Rayong', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3453, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3454, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3455, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3456, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3457, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3458, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3459, 'Saraburi', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3460, 'Satun', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3461, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3462, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3463, 'Songkhla', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3464, 'Sukhothai', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3465, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3466, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3467, 'Surin', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3468, 'Tak', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3469, 'Trang', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3470, 'Trat', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3471, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3472, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3473, '<NAME>', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3474, 'Uttaradit', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3475, 'Yala', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3476, 'Yasothon', 218, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3477, 'Centre', 217, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3478, 'Kara', 217, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3479, 'Maritime', 217, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3480, 'Plateaux', 217, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3481, 'Savanes', 217, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3482, 'Atafu', 220, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3483, 'Fakaofo', 220, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3484, 'Nukunonu', 220, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3485, 'Eua', 224, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3486, 'Niuas', 224, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3487, 'Tongatapu', 224, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3488, 'Arima-Tunapuna-Piarco', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3489, 'Caroni', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3490, 'Chaguanas', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3491, 'Couva-Tabaquite-Talparo', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3492, '<NAME>', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3493, 'Glencoe', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3494, 'Penal Debe', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3495, 'Point Fortin', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3496, 'Port of Spain', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3497, '<NAME>', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3498, 'Saint George', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3499, 'San Fernando', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3500, '<NAME>', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3501, '<NAME>', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3502, 'Siparia', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3503, 'Tobago', 226, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3504, 'Aryanah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3505, 'Bajah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3506, 'Binzart', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3507, '<NAME>', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3508, '<NAME>', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3509, '<NAME>', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3510, '<NAME>', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3511, 'Jundubah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3512, 'Madaniyin', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3513, 'Manubah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3514, 'Monastir', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3515, 'Nabul', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3516, 'Qabis', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3517, 'Qafsah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3518, 'Qibili', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3519, 'Safaqis', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3520, 'Sfax', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3521, '<NAME>', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3522, 'Silyanah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3523, 'Susah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3524, 'Tatawin', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3525, 'Tawzar', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3526, 'Tunis', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3527, 'Zaghwan', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3528, 'al-Kaf', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3529, 'al-Mahdiyah', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3530, 'al-Munastir', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3531, 'al-Qasrayn', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3532, 'al-Qayrawan', 223, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3533, 'Adana', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3534, 'Adiyaman', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3535, 'Afyon', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3536, 'Agri', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3537, 'Aksaray', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3538, 'Amasya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3539, 'Ankara', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3540, 'Antalya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3541, 'Ardahan', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3542, 'Artvin', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3543, 'Aydin', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3544, 'Balikesir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3545, 'Bartin', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3546, 'Batman', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3547, 'Bayburt', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3548, 'Bilecik', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3549, 'Bingol', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3550, 'Bitlis', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3551, 'Bolu', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3552, 'Burdur', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3553, 'Bursa', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3554, 'Canakkale', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3555, 'Cankiri', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3556, 'Corum', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3557, 'Denizli', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3558, 'Diyarbakir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3559, 'Duzce', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3560, 'Edirne', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3561, 'Elazig', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3562, 'Erzincan', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3563, 'Erzurum', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3564, 'Eskisehir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3565, 'Gaziantep', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3566, 'Giresun', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3567, 'Gumushane', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3568, 'Hakkari', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3569, 'Hatay', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3570, 'Icel', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3571, 'Igdir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3572, 'Isparta', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3573, 'Istanbul', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3574, 'Izmir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3575, 'Kahramanmaras', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3576, 'Karabuk', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3577, 'Karaman', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3578, 'Kars', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3579, 'Karsiyaka', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3580, 'Kastamonu', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3581, 'Kayseri', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3582, 'Kilis', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3583, 'Kirikkale', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3584, 'Kirklareli', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3585, 'Kirsehir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3586, 'Kocaeli', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3587, 'Konya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3588, 'Kutahya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3589, 'Lefkosa', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3590, 'Malatya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3591, 'Manisa', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3592, 'Mardin', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3593, 'Mugla', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3594, 'Mus', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3595, 'Nevsehir', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3596, 'Nigde', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3597, 'Ordu', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3598, 'Osmaniye', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3599, 'Rize', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3600, 'Sakarya', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3601, 'Samsun', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3602, 'Sanliurfa', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3603, 'Siirt', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3604, 'Sinop', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3605, 'Sirnak', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3606, 'Sivas', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3607, 'Tekirdag', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3608, 'Tokat', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3609, 'Trabzon', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3610, 'Tunceli', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3611, 'Usak', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3612, 'Van', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3613, 'Yalova', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3614, 'Yozgat', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3615, 'Zonguldak', 225, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3616, 'Ahal', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3617, 'Asgabat', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3618, 'Balkan', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3619, 'Dasoguz', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3620, 'Lebap', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3621, 'Mari', 222, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3622, 'Grand Turk', 214, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3623, 'South Caicos and East Caicos', 214, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3624, 'Funafuti', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3625, 'Nanumanga', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3626, 'Nanumea', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3627, 'Niutao', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3628, 'Nui', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3629, 'Nukufetau', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3630, 'Nukulaelae', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3631, 'Vaitupu', 227, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3632, 'Central', 231, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3633, 'Eastern', 231, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3634, 'Northern', 231, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3635, 'Western', 231, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3636, 'Crimea', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3637, 'Dnipropetrovska', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3638, 'Kharkiv', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3639, 'Kharkov', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3640, 'Khersonska', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3641, 'Kirovohrad', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3642, 'Krym', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3643, 'Kyyiv', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3644, 'Odessa', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3645, 'Zaporizhia', 230, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3646, '<NAME>', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3647, 'Ajman', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3648, 'Dubai', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3649, '<NAME>', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3650, 'Sharjah', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3651, 'Sharjha', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3652, '<NAME>', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3653, 'al-Fujayrah', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3654, 'ash-Shariqah', 2, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3655, 'Aberdeen', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3656, 'Aberdeenshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3657, 'Argyll', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3658, 'Armagh', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3659, 'Bedfordshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3660, 'Belfast', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3661, 'Berkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3662, 'Birmingham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3663, 'Brechin', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3664, 'Bridgnorth', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3665, 'Bristol', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3666, 'Buckinghamshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3667, 'Cambridge', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3668, 'Cambridgeshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3669, 'Channel Islands', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3670, 'Cheshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3671, 'Cleveland', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3672, '<NAME>', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3673, 'Conwy', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3674, 'Cornwall', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3675, 'Coventry', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3676, '<NAME>', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3677, 'Cumbria', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3678, 'Denbighshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3679, 'Derby', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3680, 'Derbyshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3681, 'Devon', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3682, 'Dial Code Dungannon', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3683, 'Didcot', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3684, 'Dorset', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3685, 'Dunbartonshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3686, 'Durham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3687, 'East Dunbartonshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3688, 'East Lothian', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3689, 'East Midlands', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3690, 'East Sussex', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3691, 'East Yorkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3692, 'England', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3693, 'Essex', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3694, 'Fermanagh', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3695, 'Fife', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3696, 'Flintshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3697, 'Fulham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3698, 'Gainsborough', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3699, 'Glocestershire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3700, 'Gwent', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3701, 'Hampshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3702, 'Hants', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3703, 'Herefordshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3704, 'Hertfordshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3705, 'Ireland', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3706, 'Isle Of Man', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3707, 'Isle of Wight', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3708, 'Kenford', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3709, 'Kent', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3710, 'Kilmarnock', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3711, 'Lanarkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3712, 'Lancashire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3713, 'Leicestershire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3714, 'Lincolnshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3715, 'Llanymynech', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3716, 'London', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3717, 'Ludlow', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3718, 'Manchester', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3719, 'Mayfair', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3720, 'Merseyside', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3721, '<NAME>', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3722, 'Middlesex', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3723, 'Mildenhall', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3724, 'Monmouthshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3725, '<NAME>', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3726, 'Norfolk', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3727, 'North Humberside', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3728, 'North Yorkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3729, 'Northamptonshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3730, 'Northants', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3731, 'Northern Ireland', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3732, 'Northumberland', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3733, 'Nottinghamshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3734, 'Oxford', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3735, 'Powys', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3736, 'Roos-shire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3737, 'SUSSEX', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3738, 'Sark', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3739, 'Scotland', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3740, 'Scottish Borders', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3741, 'Shropshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3742, 'Somerset', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3743, 'South Glamorgan', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3744, 'South Wales', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3745, 'South Yorkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3746, 'Southwell', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3747, 'Staffordshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3748, 'Strabane', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3749, 'Suffolk', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3750, 'Surrey', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3751, 'Sussex', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3752, 'Twickenham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3753, '<NAME>', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3754, 'Tyrone', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3755, 'Utah', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3756, 'Wales', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3757, 'Warwickshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3758, 'West Lothian', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3759, 'West Midlands', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3760, 'West Sussex', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3761, 'West Yorkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3762, 'Whissendine', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3763, 'Wiltshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3764, 'Wokingham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3765, 'Worcestershire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3766, 'Wrexham', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3767, 'Wurttemberg', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3768, 'Yorkshire', 77, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3769, 'Alabama', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3770, 'Alaska', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3771, 'Arizona', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3772, 'Arkansas', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3773, 'Byram', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3774, 'California', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3775, 'Cokato', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3776, 'Colorado', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3777, 'Connecticut', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3778, 'Delaware', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3779, 'District of Columbia', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3780, 'Florida', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3781, 'Georgia', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3782, 'Hawaii', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3783, 'Idaho', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3784, 'Illinois', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3785, 'Indiana', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3786, 'Iowa', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3787, 'Kansas', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3788, 'Kentucky', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3789, 'Louisiana', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3790, 'Lowa', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3791, 'Maine', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3792, 'Maryland', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3793, 'Massachusetts', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3794, 'Medfield', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3795, 'Michigan', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3796, 'Minnesota', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3797, 'Mississippi', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3798, 'Missouri', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3799, 'Montana', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3800, 'Nebraska', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3801, 'Nevada', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3802, 'New Hampshire', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3803, 'New Jersey', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3804, 'New Jersy', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3805, 'New Mexico', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3806, 'New York', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3807, 'North Carolina', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3808, 'North Dakota', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3809, 'Ohio', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3810, 'Oklahoma', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3811, 'Ontario', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3812, 'Oregon', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3813, 'Pennsylvania', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3814, 'Ramey', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3815, 'Rhode Island', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3816, 'South Carolina', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3817, 'South Dakota', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3818, 'Sublimity', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3819, 'Tennessee', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3820, 'Texas', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3821, 'Trimble', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3822, 'Utah', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3823, 'Vermont', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3824, 'Virginia', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3825, 'Washington', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3826, 'West Virginia', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3827, 'Wisconsin', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3828, 'Wyoming', 233, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3829, 'United States Minor Outlying I', 232, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3830, 'Artigas', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3831, 'Canelones', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3832, '<NAME>', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3833, 'Colonia', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3834, 'Durazno', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3835, 'FLorida', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3836, 'Flores', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3837, 'Lavalleja', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3838, 'Maldonado', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3839, 'Montevideo', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3840, 'Paysandu', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3841, '<NAME>', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3842, 'Rivera', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3843, 'Rocha', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3844, 'Salto', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3845, '<NAME>', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3846, 'Soriano', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3847, 'Tacuarembo', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3848, '<NAME>', 234, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3849, 'Andijon', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3850, 'Buhoro', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3851, '<NAME>', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3852, 'Cizah', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3853, 'Fargona', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3854, 'Horazm', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3855, 'Kaskadar', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3856, 'Korakalpogiston', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3857, 'Namangan', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3858, 'Navoi', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3859, 'Samarkand', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3860, 'Sirdare', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3861, 'Surhondar', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3862, 'Toskent', 235, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3863, 'Malampa', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3864, 'Penama', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3865, 'Sanma', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3866, 'Shefa', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3867, 'Tafea', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3868, 'Torba', 242, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3869, 'Vatican City State (Holy See)', 236, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3870, 'Amazonas', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3871, 'Anzoategui', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3872, 'Apure', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3873, 'Aragua', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3874, 'Barinas', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3875, 'Bolivar', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3876, 'Carabobo', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3877, 'Cojedes', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3878, '<NAME>', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3879, 'Distrito Federal', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3880, 'Falcon', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3881, 'Guarico', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3882, 'Lara', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3883, 'Merida', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3884, 'Miranda', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3885, 'Monagas', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3886, 'Nueva Esparta', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3887, 'Portuguesa', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3888, 'Sucre', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3889, 'Tachira', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3890, 'Trujillo', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3891, 'Vargas', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3892, 'Yaracuy', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3893, 'Zulia', 238, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3894, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3895, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3896, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3897, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3898, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3899, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3900, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3901, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3902, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3903, 'Hanoi', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3904, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3905, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3906, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3907, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3908, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3909, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3910, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3911, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3912, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3913, '<NAME>', 241, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3914, 'Anegada', 239, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3915, '<NAME>', 239, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3916, 'Tortola', 239, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3917, '<NAME>', 240, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3918, '<NAME>', 240, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3919, '<NAME>', 240, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3920, 'Alo', 243, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3921, 'Singave', 243, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3922, 'Wallis', 243, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3923, '<NAME>', 66, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3924, 'Wad-adh-Dhahab', 66, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3925, 'as-Samarah', 66, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3926, 'Abyan', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3927, 'Dhamar', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3928, 'Hadramaut', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3929, 'Hajjah', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3930, 'Hudaydah', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3931, 'Ibb', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3932, 'Lahij', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3933, 'Sana', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3934, 'Shabwah', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3935, 'al-Bayda', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3936, 'al-Hudaydah', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3937, 'al-Jawf', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3938, 'al-Mahrah', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3939, 'al-Mahwit', 246, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3940, 'Central', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3941, 'Copperbelt', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3942, 'Eastern', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3943, 'Luapala', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3944, 'Lusaka', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3945, 'North-Western', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3946, 'Northern', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3947, 'Southern', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3948, 'Western', 249, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3949, 'Bulawayo', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3950, 'Harare', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3951, 'Manicaland', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3952, 'Mashonaland Central', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3953, 'Mashonaland East', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3954, 'Mashonaland West', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3955, 'Masvingo', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3956, 'Matabeleland North', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3957, 'Matabeleland South', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00'),
(3958, 'Midlands', 250, 1, '2018-02-14 17:48:17', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `sessions`
--
CREATE TABLE `sessions` (
`id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(10) UNSIGNED DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_agent` text COLLATE utf8mb4_unicode_ci,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`last_activity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`number` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country_id` int(11) DEFAULT NULL,
`state_id` int(11) DEFAULT NULL,
`city` varchar(250) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zipcode` varchar(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`api_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`otp` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`isVerified` tinyint(4) DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT '1',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `number`, `country_id`, `state_id`, `city`, `zipcode`, `address`, `api_token`, `otp`, `isVerified`, `status`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'bittu', '<EMAIL>', <PASSWORD>0$OF3XP7XkQEVFkPr.5fj0K.q<PASSWORD>kmNmAO<PASSWORD>T2Aoem', '5468988446', 2, 1, '', '201301', 'b8 a82 noida sector 4 , up', 'ytc52L8epD9IGh5C4cKRYCfFeguvIuqEHHOzF2qbZ0bQwasAF2JfvkJNKSi3', '26533', NULL, 0, NULL, '2017-04-11 01:40:43', '2018-07-14 07:57:54'),
(3, '<NAME>', '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', '07508939355', 105, 1582, '', '201301', 'noida sector 62', NULL, NULL, NULL, 1, NULL, '2018-03-13 05:38:03', '2018-07-10 06:27:52'),
(4, 'bittu', '<EMAIL>', <PASSWORD>', '9911725809', 14, 11, '', '', '', 'gXNzljIPRfIeul3Ub0O7KhilncMZipD7KGqjLZtJiXEHDVRPXeHF1JjwOIJG', '11219', NULL, 1, NULL, '2017-04-11 02:36:41', '2018-07-10 06:27:41'),
(6, 'ram1', '<EMAIL>', '$2y$10$0fGv1a9orFp95t7nmRbhJuWOB6Ou9pgxdbme0EyXXAYpUK..YnF.m', '07508939355', 2, 1, '', '201301', 'qewrwr', 'XjIyrsgfwYrCCcfqxyRQrdnUuSzWasElilka1J7uYWjSGKVoIx8Dj6r1Qxto', '20249', 1, 1, 'R7KH7cy7jJvtXC47GX5l2S3Y79SY7GaehiJbupqsSyCX4FLvLcUsjK11BAr0', '2017-04-10 03:14:16', '2018-07-09 12:47:51'),
(28, 'bittujdj', '<EMAIL>', <PASSWORD>', '98896565958', 234, 3835, '', '', '', NULL, '21945', 1, 1, NULL, '2017-04-11 01:34:51', '2018-07-09 14:39:10'),
(32, 'bittu', '<EMAIL>', '$2y$10$qZC1x.hyTNUAztURLJRbV.1c8/Ju/EO21ARzp3oTSP0WHqjpTco8S', '8464689880', 14, 11, '', '', '', 'irMmh3cSvxUwJ44K4BuW36PEiusk5CS26GVJNqzznvN6OxvrfI1lT2QXs7mR', '3597', NULL, 1, NULL, '2017-04-11 02:29:59', '2018-07-03 18:10:13'),
(38, 'bjfj1111', '<EMAIL>', '$2y$10$K/pI3MFAlahhgLgP2Rqsf.ItHLb756viaXzr5dqaqG17B3JhjOO0y', '4665888959', 2, 1, '', '232144', 'erfegrg', NULL, '14964', NULL, 0, NULL, '2017-04-11 04:39:56', '2018-07-14 08:57:22'),
(57, 'bittu', '<EMAIL>', '$2y$10$afecPi.LbIlDwbfsNxt0UuvMAiEZZNlljuOciZVVrNbpQ9eIUn0E2', '9977784854', 2, 1, '', '', '', NULL, '26032', NULL, 1, NULL, '2017-04-11 06:28:34', '2018-07-03 19:35:45'),
(66, 'bittukhojher', '<EMAIL>', '$2y$10$ED3i9bFvRSKHfm.rmo9.D.No2blpzsfx.9G2hDEZJy0w//SYfV2vy', '4656689898', 2, 1, '', '', '', NULL, '25318', NULL, 1, NULL, '2017-04-12 00:22:05', '2018-07-03 19:35:50'),
(68, '<EMAIL>', '<EMAIL>', '$2y$10$2dD.2lOwWLCFHs.CDVawXuSoo.pITgqNaOirpLJy5dIRdw7zgCkau', '9871236540', 0, 0, '', '', '', NULL, '31869', NULL, 1, NULL, '2017-04-12 02:34:21', '2017-04-12 02:34:21'),
(69, '<EMAIL>', '<EMAIL>', <PASSWORD>', '9632587410', 0, 0, '', '341309', 'r5r657567', NULL, '18290', NULL, 1, NULL, '2017-04-12 02:35:39', '2018-07-14 08:06:09'),
(70, '<EMAIL>', '<EMAIL>', <PASSWORD>F<PASSWORD>.jor<PASSWORD>.mpyG6', '1234567890', 105, 1582, '', '', '', NULL, '22467', NULL, 1, NULL, '2017-04-12 02:40:15', '2018-07-03 19:41:07'),
(71, '<EMAIL>', '<EMAIL>', <PASSWORD>$lrN.Q4jLI0jo4qMeTGvSou4Wasw/vxOjqr/kGANTWwm/O354fG7Su', '9632587410', 105, 1582, '', '', '', NULL, '30784', NULL, 1, NULL, '2017-04-12 02:48:15', '2018-07-03 19:41:40'),
(72, '<EMAIL>', '<EMAIL>', '$2y$10$ZrD.zZkkYfqCaeSgwPR5ZOEjvB1MienyzjmNuCAqg5Apf62S9xg/O', '9632587410', 105, 1582, '', '567577', 'rtyryty', NULL, '25465', NULL, 1, NULL, '2017-04-12 02:51:40', '2018-07-14 08:06:31'),
(75, '<NAME>', '<EMAIL>', '$2y$10$S.gVVEBJ32I/wi9s.NdRBO2Bu3ETsjyOl9HxKsQSognD44dVx3Fm.', '9971568609', 105, 1582, '', '', '', NULL, 'NzU=', NULL, 1, 'Wy07o1f11V9GCNBEQSTepNDETzIiEcvIXXmPWnTLYJGoefyLN9Uo57IDBMsB', '2017-11-12 13:17:15', '2018-07-03 19:41:54'),
(77, 'karishama', '<EMAIL>', '<PASSWORD>', '1234567890', 105, 1582, '', '201308', 'noida', NULL, NULL, NULL, 1, NULL, '2018-03-13 05:42:34', '2018-07-09 14:44:52'),
(78, 'karishama', '<EMAIL>', '<PASSWORD>', '123456789', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 05:45:44', '2018-07-03 19:42:33'),
(79, 'karishama11', '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', '9721974694', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 06:01:55', '2018-07-03 19:42:36'),
(80, 'karishama11', '<EMAIL>', '<PASSWORD>0<PASSWORD>', '9721974694', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 06:02:20', '2018-07-03 19:42:40'),
(81, 'dsfdsdsdgfd', '<EMAIL>', <PASSWORD>', '9721974694', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 06:56:51', '2018-07-03 19:42:43'),
(82, 'anil', '<EMAIL>', '827ccb0eea8a706c4c34a16891f84e7b', '9721974694', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 07:12:36', '2018-07-03 19:42:46'),
(83, 'kuldeep', '<EMAIL>', <PASSWORD>', '9161891624', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-13 08:05:23', '2018-07-03 19:42:49'),
(84, 'pappu', '<EMAIL>', <PASSWORD>', '9971568609', 105, 1582, '', '', '', '8caed15efcc03bc825e66140c5eb6f415365fbc2e18b573a03cb9718b389b0be', NULL, NULL, 1, NULL, '2018-03-14 07:21:10', '2018-07-03 19:42:52'),
(85, 'pappu123', '<EMAIL>', <PASSWORD>', '9971568601', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-14 08:06:20', '2018-07-03 19:42:55'),
(86, 'kuldeep', '<EMAIL>', <PASSWORD>$1teMFfqCtme6UHjF.evcJu1HgWeSQMP7raXGNrZ2zCcO5O4KGsuQ.', '123456289', 105, 1582, '', '', '', NULL, NULL, NULL, 1, NULL, '2018-03-14 08:09:37', '2018-07-03 19:42:58');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sb_address`
--
ALTER TABLE `sb_address`
ADD PRIMARY KEY (`address_id`);
--
-- Indexes for table `sb_admin`
--
ALTER TABLE `sb_admin`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `id` (`id`);
--
-- Indexes for table `sb_banners`
--
ALTER TABLE `sb_banners`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sb_billing_address`
--
ALTER TABLE `sb_billing_address`
ADD PRIMARY KEY (`address_id`),
ADD KEY `user_id` (`user_id`) USING BTREE;
--
-- Indexes for table `sb_category`
--
ALTER TABLE `sb_category`
ADD PRIMARY KEY (`category_id`),
ADD KEY `parent_id` (`parent_id`);
--
-- Indexes for table `sb_cms`
--
ALTER TABLE `sb_cms`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sb_countries`
--
ALTER TABLE `sb_countries`
ADD PRIMARY KEY (`country_id`);
--
-- Indexes for table `sb_coupon`
--
ALTER TABLE `sb_coupon`
ADD PRIMARY KEY (`coupon_id`);
--
-- Indexes for table `sb_coupon_history`
--
ALTER TABLE `sb_coupon_history`
ADD PRIMARY KEY (`coupon_history_id`);
--
-- Indexes for table `sb_customer`
--
ALTER TABLE `sb_customer`
ADD PRIMARY KEY (`customer_id`);
--
-- Indexes for table `sb_customer_activity`
--
ALTER TABLE `sb_customer_activity`
ADD PRIMARY KEY (`customer_activity_id`);
--
-- Indexes for table `sb_customer_history`
--
ALTER TABLE `sb_customer_history`
ADD PRIMARY KEY (`customer_history_id`);
--
-- Indexes for table `sb_customer_transaction`
--
ALTER TABLE `sb_customer_transaction`
ADD PRIMARY KEY (`transaction_id`);
--
-- Indexes for table `sb_customer_wishlist`
--
ALTER TABLE `sb_customer_wishlist`
ADD PRIMARY KEY (`user_id`,`product_id`);
--
-- Indexes for table `sb_order`
--
ALTER TABLE `sb_order`
ADD PRIMARY KEY (`order_id`);
--
-- Indexes for table `sb_order_details`
--
ALTER TABLE `sb_order_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sb_order_history`
--
ALTER TABLE `sb_order_history`
ADD PRIMARY KEY (`order_history_id`);
--
-- Indexes for table `sb_order_old`
--
ALTER TABLE `sb_order_old`
ADD PRIMARY KEY (`order_id`);
--
-- Indexes for table `sb_order_product`
--
ALTER TABLE `sb_order_product`
ADD PRIMARY KEY (`order_product_id`),
ADD KEY `order_id` (`order_id`);
--
-- Indexes for table `sb_product`
--
ALTER TABLE `sb_product`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `sb_product_attribute`
--
ALTER TABLE `sb_product_attribute`
ADD PRIMARY KEY (`product_id`,`attribute_id`);
--
-- Indexes for table `sb_product_cart`
--
ALTER TABLE `sb_product_cart`
ADD PRIMARY KEY (`cart_id`);
--
-- Indexes for table `sb_product_description`
--
ALTER TABLE `sb_product_description`
ADD PRIMARY KEY (`product_id`);
--
-- Indexes for table `sb_product_discount`
--
ALTER TABLE `sb_product_discount`
ADD PRIMARY KEY (`product_discount_id`),
ADD KEY `product_id` (`product_id`);
--
-- Indexes for table `sb_product_image`
--
ALTER TABLE `sb_product_image`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sb_product_reward`
--
ALTER TABLE `sb_product_reward`
ADD PRIMARY KEY (`product_reward_id`);
--
-- Indexes for table `sb_product_special`
--
ALTER TABLE `sb_product_special`
ADD PRIMARY KEY (`product_special_id`),
ADD KEY `product_id` (`product_id`);
--
-- Indexes for table `sb_product_to_category`
--
ALTER TABLE `sb_product_to_category`
ADD PRIMARY KEY (`product_id`,`category_id`),
ADD KEY `category_id` (`category_id`);
--
-- Indexes for table `sb_return`
--
ALTER TABLE `sb_return`
ADD PRIMARY KEY (`return_id`);
--
-- Indexes for table `sb_return_action`
--
ALTER TABLE `sb_return_action`
ADD PRIMARY KEY (`return_action_id`);
--
-- Indexes for table `sb_return_history`
--
ALTER TABLE `sb_return_history`
ADD PRIMARY KEY (`return_history_id`);
--
-- Indexes for table `sb_return_reason`
--
ALTER TABLE `sb_return_reason`
ADD PRIMARY KEY (`return_reason_id`);
--
-- Indexes for table `sb_return_status`
--
ALTER TABLE `sb_return_status`
ADD PRIMARY KEY (`return_status_id`);
--
-- Indexes for table `sb_review`
--
ALTER TABLE `sb_review`
ADD PRIMARY KEY (`review_id`),
ADD KEY `product_id` (`product_id`);
--
-- Indexes for table `sb_shipping_address`
--
ALTER TABLE `sb_shipping_address`
ADD PRIMARY KEY (`address_id`),
ADD KEY `customer_id` (`customer_id`);
--
-- Indexes for table `sb_states`
--
ALTER TABLE `sb_states`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_address`
--
ALTER TABLE `sb_address`
MODIFY `address_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `sb_admin`
--
ALTER TABLE `sb_admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `sb_banners`
--
ALTER TABLE `sb_banners`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sb_category`
--
ALTER TABLE `sb_category`
MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `sb_cms`
--
ALTER TABLE `sb_cms`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `sb_countries`
--
ALTER TABLE `sb_countries`
MODIFY `country_id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=251;
--
-- AUTO_INCREMENT for table `sb_coupon`
--
ALTER TABLE `sb_coupon`
MODIFY `coupon_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `sb_coupon_history`
--
ALTER TABLE `sb_coupon_history`
MODIFY `coupon_history_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_customer`
--
ALTER TABLE `sb_customer`
MODIFY `customer_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_customer_activity`
--
ALTER TABLE `sb_customer_activity`
MODIFY `customer_activity_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_customer_history`
--
ALTER TABLE `sb_customer_history`
MODIFY `customer_history_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_customer_transaction`
--
ALTER TABLE `sb_customer_transaction`
MODIFY `transaction_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `sb_order`
--
ALTER TABLE `sb_order`
MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sb_order_details`
--
ALTER TABLE `sb_order_details`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `sb_order_history`
--
ALTER TABLE `sb_order_history`
MODIFY `order_history_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_order_old`
--
ALTER TABLE `sb_order_old`
MODIFY `order_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sb_order_product`
--
ALTER TABLE `sb_order_product`
MODIFY `order_product_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_product`
--
ALTER TABLE `sb_product`
MODIFY `product_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `sb_product_cart`
--
ALTER TABLE `sb_product_cart`
MODIFY `cart_id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `sb_product_discount`
--
ALTER TABLE `sb_product_discount`
MODIFY `product_discount_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=441;
--
-- AUTO_INCREMENT for table `sb_product_image`
--
ALTER TABLE `sb_product_image`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_product_reward`
--
ALTER TABLE `sb_product_reward`
MODIFY `product_reward_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=546;
--
-- AUTO_INCREMENT for table `sb_product_special`
--
ALTER TABLE `sb_product_special`
MODIFY `product_special_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=440;
--
-- AUTO_INCREMENT for table `sb_return`
--
ALTER TABLE `sb_return`
MODIFY `return_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_return_action`
--
ALTER TABLE `sb_return_action`
MODIFY `return_action_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sb_return_history`
--
ALTER TABLE `sb_return_history`
MODIFY `return_history_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `sb_return_reason`
--
ALTER TABLE `sb_return_reason`
MODIFY `return_reason_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `sb_return_status`
--
ALTER TABLE `sb_return_status`
MODIFY `return_status_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `sb_review`
--
ALTER TABLE `sb_review`
MODIFY `review_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `sb_states`
--
ALTER TABLE `sb_states`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3959;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;
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>KimKulot/psychic
INSERT INTO `vadmin_navsub` (`nav_id`, `title`, `table`) VALUES (19, 'Clients', 'inbound_messages');
ALTER TABLE `vadmin_specs` ADD COLUMN `navsub_id` INT(11) UNSIGNED DEFAULT NULL AFTER `table`;
INSERT INTO `vadmin_specs` (`table`, `navsub_id`, `type`, `value`) VALUES('inbound_messages', 37, 'hide_fields', 'txtnation_msg_id,message,shortcode,responded_by,status');
INSERT INTO `vadmin_specs` (`table`, `navsub_id`, `type`, `value`) VALUES('inbound_messages', 37, 'group_by', 'number'); |
;with ff as (
SELECT x, y, ROW_NUMBER() OVER(ORDER BY x,y) as id
FROM Functions
)
SELECT x, y
FROM ff f1
WHERE EXISTS (
SELECT 1
FROM ff f2
WHERE f2.y = f1.x
AND f2.x = f1.y
AND f2.id <> f1.id
AND (f1.x <> f1.y OR f1.id < f2.id)
)
AND x <= y
ORDER BY x, y |
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 11 Nov 2020 pada 06.09
-- Versi server: 5.7.24
-- Versi PHP: 7.2.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `pdam`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_golongan`
--
CREATE TABLE `tb_golongan` (
`id` int(3) NOT NULL,
`kode` varchar(10) NOT NULL,
`nama` varchar(100) NOT NULL,
`beban` int(9) NOT NULL,
`tempo` int(5) NOT NULL,
`denda` int(9) NOT NULL,
`status` int(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_golongan_level`
--
CREATE TABLE `tb_golongan_level` (
`id` int(3) NOT NULL,
`golongan_id` int(3) NOT NULL,
`level` int(3) NOT NULL,
`deskripsi` varchar(255) NOT NULL,
`harga` int(9) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_informasi`
--
CREATE TABLE `tb_informasi` (
`id` int(3) NOT NULL,
`judul` varchar(150) NOT NULL,
`deskripsi` text NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_by` int(3) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_informasi`
--
INSERT INTO `tb_informasi` (`id`, `judul`, `deskripsi`, `created_at`, `created_by`, `status`) VALUES
(2, '<NAME>', '<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>', '2020-11-06 10:21:37', 1, 0);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_level`
--
CREATE TABLE `tb_level` (
`id` int(3) NOT NULL,
`operand` varchar(3) DEFAULT NULL,
`nilai_awal` int(4) NOT NULL,
`nilai_akhir` int(4) DEFAULT NULL,
`status` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_pelanggan`
--
CREATE TABLE `tb_pelanggan` (
`id` int(3) NOT NULL,
`no_rekening` varchar(25) NOT NULL,
`nama` varchar(100) NOT NULL,
`alamat` varchar(100) NOT NULL,
`golongan` int(1) NOT NULL,
`no_hp` varchar(13) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_pembayaran`
--
CREATE TABLE `tb_pembayaran` (
`id` int(3) NOT NULL,
`pelanggan_id` int(3) NOT NULL,
`tagihan_id` int(3) NOT NULL,
`cash` varchar(100) NOT NULL,
`kembalian` varchar(100) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_by` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_tagihan`
--
CREATE TABLE `tb_tagihan` (
`id` int(3) NOT NULL,
`pelanggan_id` int(3) NOT NULL,
`mtr_lama` int(10) NOT NULL,
`mtr_baru` int(10) NOT NULL,
`volume` int(10) NOT NULL,
`total` int(10) NOT NULL,
`status_tagihan` int(1) NOT NULL DEFAULT '0',
`periode` varchar(15) NOT NULL,
`tahun` varchar(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`created_by` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_users`
--
CREATE TABLE `tb_users` (
`id` int(3) NOT NULL,
`no_rekening` varchar(30) DEFAULT NULL,
`nama` varchar(100) DEFAULT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(255) NOT NULL,
`level` int(1) NOT NULL,
`status` int(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_users`
--
INSERT INTO `tb_users` (`id`, `no_rekening`, `nama`, `username`, `password`, `level`, `status`) VALUES
(1, '', '<NAME>', 'admin', '$2y$10$Be.uDqW/Rtkt.Vn6c9HFdutWPRmKK6ygNncCEdvK9fP2pmPC9g4hq', 0, 1);
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `tb_golongan`
--
ALTER TABLE `tb_golongan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_golongan_level`
--
ALTER TABLE `tb_golongan_level`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_informasi`
--
ALTER TABLE `tb_informasi`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_level`
--
ALTER TABLE `tb_level`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_pelanggan`
--
ALTER TABLE `tb_pelanggan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_pembayaran`
--
ALTER TABLE `tb_pembayaran`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_tagihan`
--
ALTER TABLE `tb_tagihan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_users`
--
ALTER TABLE `tb_users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `tb_golongan`
--
ALTER TABLE `tb_golongan`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT untuk tabel `tb_golongan_level`
--
ALTER TABLE `tb_golongan_level`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT untuk tabel `tb_informasi`
--
ALTER TABLE `tb_informasi`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_level`
--
ALTER TABLE `tb_level`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT untuk tabel `tb_pelanggan`
--
ALTER TABLE `tb_pelanggan`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `tb_pembayaran`
--
ALTER TABLE `tb_pembayaran`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT untuk tabel `tb_tagihan`
--
ALTER TABLE `tb_tagihan`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `tb_users`
--
ALTER TABLE `tb_users`
MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 02, 2018 at 08:37 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `student_portal`
--
-- --------------------------------------------------------
--
-- Table structure for table `books`
--
CREATE TABLE `books` (
`id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`url` varchar(500) NOT NULL,
`subject` varchar(100) NOT NULL,
`author` varchar(200) NOT NULL,
`slug` varchar(500) NOT NULL,
`tag` varchar(100) DEFAULT NULL,
`added_by` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `books`
--
INSERT INTO `books` (`id`, `name`, `url`, `subject`, `author`, `slug`, `tag`, `added_by`) VALUES
(1, 'Ajax For Dummies', 'https://hmt.es/Ajax%20For%20Dummies.pdf', 'AJAX', '<NAME>', '', '#web#', 1),
(2, 'Software Engineering', 'https://google.com', 'Software Engineering', '<NAME>, <NAME>', '', 'Theory#UML', 2),
(3, '.NET Book Zero', 'http://google.com', '.NET', 'NA', '', 'Web#Microsoft', 1),
(4, 'Learning Python', 'http://google.com', 'Python', ' <NAME> and <NAME>', '', '', 1),
(5, 'Data Communications and Networking', 'http://library.aceondo.net/ebooks/Computer_Science/Data_Communication_and_Networking_by_Behrouz.A.Forouzan_4th.edition.pdf', 'Data Communications and Networking', '<NAME>', '', 'Networking#Theory', 1),
(6, 'Learning React: Functional Web Development with React and Redux', 'http://shop.oreilly.com/product/0636920049579.do', 'React Js', ' <NAME>, <NAME>', '', 'Web', 2),
(7, 'Android Application Development for Dummies', 'https://books.google.co.in/books/about/Android_App_Development_For_Dummies.html?id=UjqkBgAAQBAJ&printsec=frontcover&source=kp_read_button&redir_esc=y#v=onepage&q&f=false', 'Android', '<NAME>', '', 'Android', 2),
(8, 'Learning Vue.js 2', 'https://books.google.co.in/books/about/Learning_Vue_js_2.html?id=nszcDgAAQBAJ&printsec=frontcover&source=kp_read_button&redir_esc=y#v=onepage&q&f=false', 'Web Development', '<NAME>', '', 'Web', 2);
--
-- Triggers `books`
--
DELIMITER $$
CREATE TRIGGER `books_data_validator` BEFORE INSERT ON `books` FOR EACH ROW IF NEW.name IS null || NEW.url IS null || NEW.subject IS null || NEW.author IS null
THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
ELSEIF NEW.name = '' || NEW.url = '' || NEW.subject = '' || NEW.author = '' THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
ELSEIF NEW.name = ' ' || NEW.url = ' ' || NEW.subject = ' ' || NEW.author = ' ' THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
END IF
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(200) NOT NULL,
`email` varchar(200) NOT NULL,
`password` varchar(500) NOT NULL,
`role` enum('admin','student','teacher') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`) VALUES
(1, 'Admin', '<EMAIL>', '<PASSWORD>', 'admin'),
(2, 'Jayashankar', '<EMAIL>', '<PASSWORD>', 'teacher'),
(3, 'Student', '<EMAIL>', 'fe045f7c<PASSWORD>e<PASSWORD>c1<PASSWORD>f52e02e077bc<PASSWORD>ca', 'student');
--
-- Triggers `users`
--
DELIMITER $$
CREATE TRIGGER `user_data_validator` BEFORE INSERT ON `users` FOR EACH ROW IF NEW.name IS null || NEW.email IS null || NEW.password IS null || NEW.role IS null
THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
ELSEIF NEW.name = '' || NEW.email = '' || NEW.password = '' || NEW.role = '' THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
ELSEIF NEW.name = ' ' || NEW.email = ' ' || NEW.password = ' ' || NEW.role = ' ' THEN
SIGNAL SQLSTATE '02000' SET MESSAGE_TEXT = 'Field cannot be left empty';
END IF
$$
DELIMITER ;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `books`
--
ALTER TABLE `books`
ADD PRIMARY KEY (`id`),
ADD KEY `added_by` (`added_by`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `books`
--
ALTER TABLE `books`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `books`
--
ALTER TABLE `books`
ADD CONSTRAINT `books_ibfk_1` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `books_ibfk_2` FOREIGN KEY (`added_by`) REFERENCES `users` (`id`) ON DELETE 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 */;
|
SET SERVEROUTPUT ON
BEGIN
UPDATE EMPLOYEE_DETAIL
SET SALARY = salary+(salary * 0.15)
WHERE DEPTNO = 10
dbms_output.put_line(TO_Char(SQL%ROWCOUNT)||'employees affected.');
END;
/
|
<filename>db/seeds.sql<gh_stars>1-10
INSERT INTO burgers (burger_name) VALUES ('Mega Avocado Burger');
INSERT INTO burgers (burger_name) VALUES ('Spicy Bacon');
INSERT INTO burgers (burger_name) VALUES ('Chicken&Waffle');
SELECT * FROM burgers; |
<filename>limit_exercises.sql
#1Create a new SQL script named limit_exercises.sql.
use employees;
select database ();
#2. List the first 10 DISTINCT last name sorted in descending order.
SELECT DISTINCT `last_name`
FROM employees
ORDER BY last_name DESC
LIMIT 10; # Zykh, Zyda, Zwicker, Zweizig, Zumaque, Zulner, Zucker, Zuberek, Zschoche, Zongker
#3. Find all previous or current employees hired in the 90s and born on Christmas. Find the first 5 employees hired in the 90's by sorting by hire date and limiting your results to the first 5 records. Write a comment in your code that lists the five names of the employees returned.
SELECT *
FROM employees
WHERE
hire_date LIKE '199%'
AND
birth_date LIKE '%12-25'
ORDER BY hire_date
LIMIT 5; #<NAME>, <NAME>, <NAME>, <NAME>, <NAME>
#4. Try to think of your results as batches, sets, or pages. The first five results are your first page. The five after that would be your second page, etc. Update the query to find the tenth page of results.
SELECT *
FROM employees
WHERE
hire_date LIKE '199%'
AND
birth_date LIKE '%12-25'
ORDER BY hire_date
LIMIT 5 OFFSET 45; #offset = page - 1 times limit
# <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
|
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 08, 2022 at 01:19 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
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: `laravel_hms-1`
--
-- --------------------------------------------------------
--
-- Table structure for table `appointments`
--
CREATE TABLE `appointments` (
`app_id` bigint(20) UNSIGNED NOT NULL,
`app_sl` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`app_p_id` bigint(20) UNSIGNED NOT NULL,
`app_doc_id` bigint(20) UNSIGNED NOT NULL,
`app_date` date NOT NULL,
`app_status` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`app_message` varchar(220) 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 `appointments`
--
INSERT INTO `appointments` (`app_id`, `app_sl`, `app_p_id`, `app_doc_id`, `app_date`, `app_status`, `app_message`, `created_at`, `updated_at`) VALUES
(1, 'APP0000001', 1, 2, '2022-01-14', 'Approved', 'fdgdgf', '2022-01-06 05:38:47', '2022-01-06 05:38:47'),
(2, 'APP0000002', 2, 3, '2022-01-18', 'Approved', 'gdfgfdg', '2022-01-06 05:39:08', '2022-01-06 05:39:08');
-- --------------------------------------------------------
--
-- Table structure for table `beds`
--
CREATE TABLE `beds` (
`bed_id` bigint(20) UNSIGNED NOT NULL,
`bed_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`bed_category_id` bigint(20) UNSIGNED NOT NULL,
`bed_status` 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 `beds`
--
INSERT INTO `beds` (`bed_id`, `bed_name`, `bed_category_id`, `bed_status`, `created_at`, `updated_at`) VALUES
(1, 'Cycus', 1, 'Available', '2022-01-06 05:20:22', '2022-01-06 05:20:22'),
(2, 'Cycus', 1, 'Available', '2022-01-06 05:20:25', '2022-01-06 05:20:25'),
(3, 'Cycus', 1, 'Available', '2022-01-06 05:20:26', '2022-01-06 05:20:26'),
(4, 'Cycus', 1, 'Available', '2022-01-06 05:20:26', '2022-01-06 05:20:26'),
(5, 'Cycus', 1, 'Available', '2022-01-06 05:20:26', '2022-01-06 05:20:26'),
(6, 'Cycus', 1, 'Available', '2022-01-06 05:20:27', '2022-01-06 05:20:27'),
(7, 'Cycus', 1, 'Available', '2022-01-06 05:20:27', '2022-01-06 05:20:27'),
(8, 'Cycus', 1, 'Available', '2022-01-06 05:20:27', '2022-01-06 05:20:27'),
(9, 'Cycus', 1, 'Available', '2022-01-06 05:20:28', '2022-01-06 05:20:28'),
(10, 'Cycus', 2, 'Alloted', '2022-01-06 05:20:38', '2022-01-06 05:38:24'),
(11, 'Pinus', 1, 'Available', '2022-01-06 05:20:58', '2022-01-06 05:20:58'),
(12, 'Ginus', 4, 'Available', '2022-01-06 05:21:26', '2022-01-06 05:21:26');
-- --------------------------------------------------------
--
-- Table structure for table `bed_categories`
--
CREATE TABLE `bed_categories` (
`bed_category_id` bigint(20) UNSIGNED NOT NULL,
`bed_category_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`bed_category_details` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`bed_category_floor_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `bed_categories`
--
INSERT INTO `bed_categories` (`bed_category_id`, `bed_category_name`, `bed_category_details`, `bed_category_floor_id`, `created_at`, `updated_at`) VALUES
(1, 'simple', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', 1, '2022-01-06 05:19:28', '2022-01-06 05:19:28'),
(2, 'economy', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', 2, '2022-01-06 05:19:38', '2022-01-06 05:19:38'),
(3, 'best', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', 3, '2022-01-06 05:19:50', '2022-01-06 05:19:50'),
(4, 'VIP', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', 4, '2022-01-06 05:20:03', '2022-01-06 05:20:03');
-- --------------------------------------------------------
--
-- Table structure for table `blood_banks`
--
CREATE TABLE `blood_banks` (
`blood_bag_id` bigint(20) UNSIGNED NOT NULL,
`blood_bag_name` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`blood_bag_quantity` 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;
-- --------------------------------------------------------
--
-- Table structure for table `cases`
--
CREATE TABLE `cases` (
`case_id` bigint(20) UNSIGNED NOT NULL,
`case_p_id` bigint(20) UNSIGNED NOT NULL,
`case_details` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`case_file` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`case_date` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`dept_id` bigint(20) UNSIGNED NOT NULL,
`dept_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`dept_details` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`dept_id`, `dept_name`, `dept_details`, `created_at`, `updated_at`) VALUES
(2, 'Breast Screening:', 'Screens women for breast cancer and is usually linked to the X-ray or radiology department.', '2022-01-06 05:01:15', '2022-01-06 05:01:15'),
(4, 'Cardiology', 'Provides medical care to patients who have problems with their heart or circulation.', '2022-01-06 05:02:14', '2022-01-06 05:02:14'),
(6, 'Haematology', 'These hospital services work with the labo', '2022-01-06 05:06:44', '2022-01-06 05:06:44'),
(7, 'Human Resources:', 'ate the delivery of a professional, efficient and customer focused service to patients.', '2022-01-06 05:07:01', '2022-01-06 05:07:01');
-- --------------------------------------------------------
--
-- Table structure for table `doctors`
--
CREATE TABLE `doctors` (
`doc_id` bigint(20) UNSIGNED NOT NULL,
`doc_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_phone` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_address` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_email` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_password` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_profile` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_img` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`doc_dept_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `doctors`
--
INSERT INTO `doctors` (`doc_id`, `doc_name`, `doc_phone`, `doc_address`, `doc_email`, `doc_password`, `doc_profile`, `doc_img`, `doc_dept_id`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '01825862260', 'Mugda Bishwa Road, Mosjid Goli', '<EMAIL>', <PASSWORD>', 'Nill', 'images\\doctor_1641467374.jpg', 4, '2022-01-06 05:09:34', '2022-01-06 05:09:34'),
(2, '<NAME>', '265265456', '<EMAIL>', '<EMAIL>', <PASSWORD>$10$gFpafj2wSLI98xkqUZ9glug8xc3vEBS0wqDEsa0awIM0SateQfb1a', 'nil', 'images\\doctor_1641467513.jpg', 2, '2022-01-06 05:11:53', '2022-01-06 05:11:53'),
(3, '<NAME>', '4546445674584', '<EMAIL>', '<EMAIL>', '$2y$10$r8ZVaNcfKgV.H.9J2FRNj.Em4ae3EK/9GemJCeXsJkT4yAIa4MMUO', 'nill', 'images\\doctor_1641467611.jpg', 7, '2022-01-06 05:13:31', '2022-01-06 05:13:31');
-- --------------------------------------------------------
--
-- Table structure for table `donor_lists`
--
CREATE TABLE `donor_lists` (
`donor_id` bigint(20) UNSIGNED NOT NULL,
`donor_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`donor_blood` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`donor_age` int(11) NOT NULL,
`donor_sex` tinyint(4) NOT NULL,
`donor_last_date` date NOT NULL,
`donor_phone` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`donor_email` varchar(110) 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 `donor_lists`
--
INSERT INTO `donor_lists` (`donor_id`, `donor_name`, `donor_blood`, `donor_age`, `donor_sex`, `donor_last_date`, `donor_phone`, `donor_email`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 'AB+', 27, 1, '2021-02-11', '01825682260', '<EMAIL>', '2022-01-06 05:22:13', '2022-01-06 05:22:13'),
(2, '<NAME>', 'O+', 29, 1, '2021-09-07', '0185545656', '<EMAIL>', '2022-01-06 05:22:54', '2022-01-06 05:22:54'),
(3, 'bablu', 'B+', 45, 1, '2021-09-15', '018256565', '<EMAIL>', '2022-01-06 05:23:21', '2022-01-06 05:23:21');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`emp_id` bigint(20) UNSIGNED NOT NULL,
`emp_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_phone` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_address` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_sex` int(11) NOT NULL,
`emp_email` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_password` varchar(220) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_img` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`emp_role_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`emp_id`, `emp_name`, `emp_phone`, `emp_address`, `emp_sex`, `emp_email`, `emp_password`, `emp_img`, `emp_role_id`, `created_at`, `updated_at`) VALUES
(1, 'Yearul Islam', '01825682260', 'M<NAME>wa Road', 1, '<EMAIL>', '$2y$10$A/GJ84fVTyb6e5.1Y29zBe2IO06tcxvLX6g1EfmrLrzNucrF8M0AK', 'images\\emp_1641469580.jpg', 1, '2022-01-06 05:46:20', '2022-01-06 05:46:20'),
(2, 'Saiful', '018245644554', 'Mohammad', 1, '<EMAIL>', '$2y$10$z3WUcndZ7rqAzlnlXqkPku.ysJWWYih4oAM3L4x5F.XuGq0C3i4om', 'images\\emp_1641469663.jpg', 2, '2022-01-06 05:47:43', '2022-01-06 05:47:43'),
(3, 'Muazzem', '01515665564', 'd fdsfd sfdsf ds', 1, '<EMAIL>', '$2y$10$ejZCSqofos3awHMLsi.8quTkaxjY6ZIoreaWz/I7gNCdbawnjfjU2', 'images\\emp_1641469705.jpg', 5, '2022-01-06 05:48:25', '2022-01-06 05:48:25');
-- --------------------------------------------------------
--
-- Table structure for table `employee_roles`
--
CREATE TABLE `employee_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`role_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`role_details` varchar(110) 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 `employee_roles`
--
INSERT INTO `employee_roles` (`role_id`, `role_name`, `role_details`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:44:24', '2022-01-06 05:44:24'),
(2, 'Vice President', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:44:34', '2022-01-06 05:44:34'),
(3, 'Manager', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:44:41', '2022-01-06 05:44:41'),
(4, 'Accountant', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:44:48', '2022-01-06 05:44:48'),
(5, 'Developer', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:45:00', '2022-01-06 05:45:00'),
(6, 'Lab Technician', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:45:16', '2022-01-06 05:45:16'),
(7, 'Cleaner', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:45:24', '2022-01-06 05:45:24'),
(8, 'Doctor', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:45:33', '2022-01-06 05:45:33'),
(9, 'Nurse', 'housekeeping, food service, building and grounds maintenance,', '2022-01-06 05:45:39', '2022-01-06 05:45:39');
-- --------------------------------------------------------
--
-- Table structure for table `expenses`
--
CREATE TABLE `expenses` (
`exp_id` bigint(20) UNSIGNED NOT NULL,
`exp_date` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`exp_cat_id` bigint(20) UNSIGNED NOT NULL,
`exp_amount` int(11) NOT NULL,
`exp_details` varchar(110) 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 `expenses`
--
INSERT INTO `expenses` (`exp_id`, `exp_date`, `exp_cat_id`, `exp_amount`, `exp_details`, `created_at`, `updated_at`) VALUES
(1, '2022-01-06', 1, 1000, 'xasd wsdwwqewq', '2022-01-06 05:43:32', '2022-01-06 05:43:32'),
(2, '2022-01-06', 2, 6500, 'we wqe wqwqewqe', '2022-01-06 05:43:46', '2022-01-06 05:43:46');
-- --------------------------------------------------------
--
-- Table structure for table `expense_categories`
--
CREATE TABLE `expense_categories` (
`exp_cat_id` bigint(20) UNSIGNED NOT NULL,
`exp_cat_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`exp_cat_description` varchar(110) 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 `expense_categories`
--
INSERT INTO `expense_categories` (`exp_cat_id`, `exp_cat_name`, `exp_cat_description`, `created_at`, `updated_at`) VALUES
(1, 'Test Tube', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:42:34', '2022-01-06 05:42:34'),
(2, 'HCL', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:42:43', '2022-01-06 05:42:43'),
(3, 'Color Medicine', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:43:12', '2022-01-06 05:43:12');
-- --------------------------------------------------------
--
-- 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 `floors`
--
CREATE TABLE `floors` (
`floor_id` bigint(20) UNSIGNED NOT NULL,
`floor_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`floor_description` varchar(225) 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 `floors`
--
INSERT INTO `floors` (`floor_id`, `floor_name`, `floor_description`, `created_at`, `updated_at`) VALUES
(1, '1st', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the medical staff, large healthcare faciliti', '2022-01-06 05:18:39', '2022-01-06 05:18:39'),
(2, '2nd', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', '2022-01-06 05:19:00', '2022-01-06 05:19:00'),
(3, '3rd', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', '2022-01-06 05:19:06', '2022-01-06 05:19:06'),
(4, '4th', 'ssociated with laboratories, and radioactive material and x-ray hazards. In addition to the', '2022-01-06 05:19:13', '2022-01-06 05:19:13');
-- --------------------------------------------------------
--
-- Table structure for table `in_patients`
--
CREATE TABLE `in_patients` (
`in_p_id` bigint(20) UNSIGNED NOT NULL,
`in_p_s` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_sex` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_age` int(11) NOT NULL,
`in_p_phone` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_guardian_name` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_guardian_phone` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_blood` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_height` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_weight` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_bp` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_symptoms` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_address` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_admission_date` datetime NOT NULL,
`in_p_case` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_casualty` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_old_patient` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_reference` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL,
`in_p_doc_id` bigint(20) UNSIGNED NOT NULL,
`in_p_bed_category_id` bigint(20) UNSIGNED NOT NULL,
`in_p_bed_id` bigint(20) UNSIGNED NOT NULL,
`in_p_note` varchar(220) 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 `in_patients`
--
INSERT INTO `in_patients` (`in_p_id`, `in_p_s`, `in_p_name`, `in_p_sex`, `in_p_age`, `in_p_phone`, `in_p_guardian_name`, `in_p_guardian_phone`, `in_p_blood`, `in_p_height`, `in_p_weight`, `in_p_bp`, `in_p_symptoms`, `in_p_address`, `in_p_admission_date`, `in_p_case`, `in_p_casualty`, `in_p_old_patient`, `in_p_reference`, `in_p_doc_id`, `in_p_bed_category_id`, `in_p_bed_id`, `in_p_note`, `created_at`, `updated_at`) VALUES
(1, 'INPAT00001', 'Shifa', 'Female', 28, '018648456+54', 'fdfdsf', '0165455544', 'A-', '161', '62', '75', 'Pragnancy', 'Mugda Bishwa Road\r\nMosjid Goli', '2022-01-05 08:00:00', 'Pragnancy', 'no', 'no', 'Paglababa', 3, 2, 10, 'sdfdsfdsfd', '2022-01-06 05:38:22', '2022-01-06 05:38:22'),
(2, 'INPAT00002', 'Shifa', 'Female', 28, '018648456+54', 'fdfdsf', '0165455544', 'A-', '161', '62', '75', 'Pragnancy', 'Mugda Bishwa Road\r\nMosjid Goli', '2022-01-05 08:00:00', 'Pragnancy', 'no', 'no', 'Paglababa', 3, 2, 10, 'sdfdsfdsfd', '2022-01-06 05:38:24', '2022-01-06 05:38:24'),
(3, 'INPAT00003', 'Shifa', 'Female', 28, '018648456+54', 'fdfdsf', '0165455544', 'A-', '161', '62', '75', 'Pragnancy', 'Mugda Bishwa Road\r\nMosjid Goli', '2022-01-05 08:00:00', 'Pragnancy', 'no', 'no', 'Paglababa', 3, 2, 10, 'sdfdsfdsfd', '2022-01-06 05:38:24', '2022-01-06 05:38:24'),
(4, 'INPAT00004', 'Shifa', 'Female', 28, '018648456+54', 'fdfdsf', '0165455544', 'A-', '161', '62', '75', 'Pragnancy', 'Mugda Bishwa Road\r\nMosjid Goli', '2022-01-05 08:00:00', 'Pragnancy', 'no', 'no', 'Paglababa', 3, 2, 10, 'sdfdsfdsfd', '2022-01-06 05:38:24', '2022-01-06 05:38:24'),
(5, 'INPAT00005', 'Shifa', 'Female', 28, '018648456+54', 'fdfdsf', '0165455544', 'A-', '161', '62', '75', 'Pragnancy', 'Mugda Bishwa Road\r\nMosjid Goli', '2022-01-05 08:00:00', 'Pragnancy', 'no', 'no', 'Paglababa', 3, 2, 10, 'sdfdsfdsfd', '2022-01-06 05:38:24', '2022-01-06 05:38:24');
-- --------------------------------------------------------
--
-- Table structure for table `lab_reports`
--
CREATE TABLE `lab_reports` (
`lab_id` bigint(20) UNSIGNED NOT NULL,
`lab_p_id` bigint(20) UNSIGNED NOT NULL,
`lab_doc_id` bigint(20) UNSIGNED NOT NULL,
`lab_date` date NOT NULL,
`lab_file` varchar(110) 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;
-- --------------------------------------------------------
--
-- Table structure for table `medicines`
--
CREATE TABLE `medicines` (
`med_id` bigint(20) UNSIGNED NOT NULL,
`med_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`med_cat_id` bigint(20) UNSIGNED NOT NULL,
`med_purchase_price` int(11) NOT NULL,
`med_sales_price` int(11) NOT NULL,
`med_store_box` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`med_quantity` int(11) NOT NULL,
`med_generic_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`med_company` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`med_expire_date` 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 `medicines`
--
INSERT INTO `medicines` (`med_id`, `med_name`, `med_cat_id`, `med_purchase_price`, `med_sales_price`, `med_store_box`, `med_quantity`, `med_generic_name`, `med_company`, `med_expire_date`, `created_at`, `updated_at`) VALUES
(1, 'napa', 1, 100, 120, '50', 500, 'Peracitamol bp500', 'AIS', '2022-04-13', '2022-01-06 05:27:03', '2022-01-06 05:27:03'),
(2, 'ACE', 1, 50, 60, '20', 200, 'Peracitamol bp500', 'Aristopherma', '2022-06-28', '2022-01-06 05:27:41', '2022-01-06 05:27:41'),
(3, 'GIPAS', 3, 65, 77, '10', 100, 'fdsfdsjhf bp500', 'IB necina', '2022-05-11', '2022-01-06 05:28:22', '2022-01-06 05:28:22');
-- --------------------------------------------------------
--
-- Table structure for table `medicine_categories`
--
CREATE TABLE `medicine_categories` (
`med_cat_id` bigint(20) UNSIGNED NOT NULL,
`med_cat_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`med_cat_details` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `medicine_categories`
--
INSERT INTO `medicine_categories` (`med_cat_id`, `med_cat_name`, `med_cat_details`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:25:22', '2022-01-06 05:25:34'),
(2, 'Gastic', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:25:43', '2022-01-06 05:25:43'),
(3, 'Mental', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:25:56', '2022-01-06 05:25:56'),
(4, 'Hormonal', 'housekeeping, food service, building and grounds maintenance, laundry, and administrative staff.', '2022-01-06 05:26:09', '2022-01-06 05:26:09');
-- --------------------------------------------------------
--
-- 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_03_20_180057_create_departments_table', 1),
(5, '2020_03_20_184100_create_doctors_table', 1),
(6, '2020_03_20_192104_create_services_table', 1),
(7, '2020_03_20_193859_create_expense__categories_table', 1),
(8, '2020_03_20_194643_create_expenses_table', 1),
(9, '2020_03_20_195530_create_out_patients_table', 1),
(10, '2020_03_20_195533_create_prescriptions_table', 1),
(11, '2020_03_21_125207_create_lab_reports_table', 1),
(12, '2020_03_21_125816_create_medicine_categories_table', 1),
(13, '2020_03_21_130716_create_donor_lists_table', 1),
(14, '2020_03_21_133948_create_blood_banks_table', 1),
(15, '2020_03_21_182559_create_cases_table', 1),
(16, '2020_03_21_182737_create_patient_expenses_table', 1),
(17, '2020_03_22_145901_create_medicines_table', 1),
(18, '2020_03_22_145945_create_prescription_medicines_table', 1),
(19, '2020_03_24_162342_create_employee_roles_table', 1),
(20, '2020_03_24_162344_create_employees_table', 1),
(21, '2020_04_29_192700_create_appointments_table', 1),
(22, '2020_05_04_192621_create_floors_table', 1),
(23, '2020_05_05_051942_create_bed_categories_table', 1),
(24, '2020_05_11_053846_bed', 1),
(25, '2020_05_12_082951_in_patient', 1);
-- --------------------------------------------------------
--
-- Table structure for table `out_patients`
--
CREATE TABLE `out_patients` (
`out_p_id` bigint(20) UNSIGNED NOT NULL,
`out_p_s` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_name` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_sex` varchar(15) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_age` int(11) NOT NULL,
`out_p_phone` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_blood` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_height` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_weight` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_bp` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_symptoms` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`out_p_address` varchar(110) 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 `out_patients`
--
INSERT INTO `out_patients` (`out_p_id`, `out_p_s`, `out_p_name`, `out_p_sex`, `out_p_age`, `out_p_phone`, `out_p_blood`, `out_p_height`, `out_p_weight`, `out_p_bp`, `out_p_symptoms`, `out_p_address`, `created_at`, `updated_at`) VALUES
(1, 'OUTPAT0001', 'Shifa', 'Female', 28, '01826546445', 'A-', '162', '60', '260', 'Pragnancy', 'Mohammadpud', '2022-01-06 05:14:31', '2022-01-06 05:14:31'),
(2, 'OUTPAT0002', 'Ruma', 'Female', 50, '01745456465', 'AB+', '165', '80', '28', 'Mental', 'Dholaikhal', '2022-01-06 05:15:27', '2022-01-06 05:15:27');
-- --------------------------------------------------------
--
-- 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 `patient_expenses`
--
CREATE TABLE `patient_expenses` (
`p_exp_id` bigint(20) UNSIGNED NOT NULL,
`p_service_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `prescriptions`
--
CREATE TABLE `prescriptions` (
`prescription_id` bigint(20) UNSIGNED NOT NULL,
`prescription_code` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_p_id` bigint(20) UNSIGNED NOT NULL,
`prescription_doc_id` bigint(20) UNSIGNED NOT NULL,
`prescription_history` varchar(220) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_note` varchar(220) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_date` varchar(45) 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 `prescriptions`
--
INSERT INTO `prescriptions` (`prescription_id`, `prescription_code`, `prescription_p_id`, `prescription_doc_id`, `prescription_history`, `prescription_note`, `prescription_date`, `created_at`, `updated_at`) VALUES
(1, 'PRE#0001', 2, 2, '<p>dsf dsdsf</p>', '<p>dsfdsf dsfdsf</p>', '01/06/2022', '2022-01-06 05:40:16', '2022-01-06 05:40:16'),
(2, 'PRE#0002', 2, 2, '<p>dsf dsdsf</p>', '<p>dsfdsf dsfdsf</p>', '01/06/2022', '2022-01-06 05:40:50', '2022-01-06 05:40:50'),
(3, 'PRE#0003', 1, 2, '<p>sfdeft gfr</p>', '<p>e tre tre</p>', '01/04/2022', '2022-01-06 05:41:30', '2022-01-06 05:41:30');
-- --------------------------------------------------------
--
-- Table structure for table `prescription_medicines`
--
CREATE TABLE `prescription_medicines` (
`prescription_m_id` bigint(20) UNSIGNED NOT NULL,
`prescription_id` bigint(20) UNSIGNED NOT NULL,
`prescription_medicine_id` bigint(20) UNSIGNED NOT NULL,
`prescription_med_dosage` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_med_frequency` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_med_days` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL,
`prescription_med_ins` varchar(45) 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 `prescription_medicines`
--
INSERT INTO `prescription_medicines` (`prescription_m_id`, `prescription_id`, `prescription_medicine_id`, `prescription_med_dosage`, `prescription_med_frequency`, `prescription_med_days`, `prescription_med_ins`, `created_at`, `updated_at`) VALUES
(1, 2, 3, '500', '225', '7', 'After', NULL, NULL),
(2, 3, 1, '500', '225', '7', 'After', NULL, NULL),
(3, 3, 2, '500', '100', '7', 'After', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `services`
--
CREATE TABLE `services` (
`service_id` bigint(20) UNSIGNED NOT NULL,
`service_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`service_price` int(11) NOT NULL,
`service_description` varchar(110) COLLATE utf8mb4_unicode_ci NOT NULL,
`service_commission_rate` int(11) NOT NULL,
`service_category` varchar(110) 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;
-- --------------------------------------------------------
--
-- 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, 'yearul', '<EMAIL>', '2022-01-05 09:58:16', '$2y$10$PKJpE7/u3yQzKOWbNB.12eOgqImoDTGyyuY2DItojOle955RyaV1.', NULL, NULL, NULL);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `appointments`
--
ALTER TABLE `appointments`
ADD PRIMARY KEY (`app_id`),
ADD KEY `appointments_app_p_id_foreign` (`app_p_id`),
ADD KEY `appointments_app_doc_id_foreign` (`app_doc_id`);
--
-- Indexes for table `beds`
--
ALTER TABLE `beds`
ADD PRIMARY KEY (`bed_id`),
ADD KEY `beds_bed_category_id_foreign` (`bed_category_id`);
--
-- Indexes for table `bed_categories`
--
ALTER TABLE `bed_categories`
ADD PRIMARY KEY (`bed_category_id`),
ADD KEY `bed_categories_bed_category_floor_id_foreign` (`bed_category_floor_id`);
--
-- Indexes for table `blood_banks`
--
ALTER TABLE `blood_banks`
ADD PRIMARY KEY (`blood_bag_id`);
--
-- Indexes for table `cases`
--
ALTER TABLE `cases`
ADD PRIMARY KEY (`case_id`),
ADD KEY `cases_case_p_id_foreign` (`case_p_id`);
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`dept_id`);
--
-- Indexes for table `doctors`
--
ALTER TABLE `doctors`
ADD PRIMARY KEY (`doc_id`),
ADD KEY `doctors_doc_dept_id_foreign` (`doc_dept_id`);
--
-- Indexes for table `donor_lists`
--
ALTER TABLE `donor_lists`
ADD PRIMARY KEY (`donor_id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`emp_id`),
ADD KEY `employees_emp_role_id_foreign` (`emp_role_id`);
--
-- Indexes for table `employee_roles`
--
ALTER TABLE `employee_roles`
ADD PRIMARY KEY (`role_id`);
--
-- Indexes for table `expenses`
--
ALTER TABLE `expenses`
ADD PRIMARY KEY (`exp_id`),
ADD KEY `expenses_exp_cat_id_foreign` (`exp_cat_id`);
--
-- Indexes for table `expense_categories`
--
ALTER TABLE `expense_categories`
ADD PRIMARY KEY (`exp_cat_id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `floors`
--
ALTER TABLE `floors`
ADD PRIMARY KEY (`floor_id`);
--
-- Indexes for table `in_patients`
--
ALTER TABLE `in_patients`
ADD PRIMARY KEY (`in_p_id`),
ADD KEY `in_patients_in_p_doc_id_foreign` (`in_p_doc_id`),
ADD KEY `in_patients_in_p_bed_category_id_foreign` (`in_p_bed_category_id`),
ADD KEY `in_patients_in_p_bed_id_foreign` (`in_p_bed_id`);
--
-- Indexes for table `lab_reports`
--
ALTER TABLE `lab_reports`
ADD PRIMARY KEY (`lab_id`),
ADD KEY `lab_reports_lab_p_id_foreign` (`lab_p_id`),
ADD KEY `lab_reports_lab_doc_id_foreign` (`lab_doc_id`);
--
-- Indexes for table `medicines`
--
ALTER TABLE `medicines`
ADD PRIMARY KEY (`med_id`),
ADD KEY `medicines_med_cat_id_foreign` (`med_cat_id`);
--
-- Indexes for table `medicine_categories`
--
ALTER TABLE `medicine_categories`
ADD PRIMARY KEY (`med_cat_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `out_patients`
--
ALTER TABLE `out_patients`
ADD PRIMARY KEY (`out_p_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `patient_expenses`
--
ALTER TABLE `patient_expenses`
ADD PRIMARY KEY (`p_exp_id`),
ADD KEY `patient_expenses_p_service_id_foreign` (`p_service_id`);
--
-- Indexes for table `prescriptions`
--
ALTER TABLE `prescriptions`
ADD PRIMARY KEY (`prescription_id`),
ADD KEY `prescriptions_prescription_p_id_foreign` (`prescription_p_id`),
ADD KEY `prescriptions_prescription_doc_id_foreign` (`prescription_doc_id`);
--
-- Indexes for table `prescription_medicines`
--
ALTER TABLE `prescription_medicines`
ADD PRIMARY KEY (`prescription_m_id`),
ADD KEY `prescription_medicines_prescription_id_foreign` (`prescription_id`),
ADD KEY `prescription_medicines_prescription_medicine_id_foreign` (`prescription_medicine_id`);
--
-- Indexes for table `services`
--
ALTER TABLE `services`
ADD PRIMARY KEY (`service_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 `appointments`
--
ALTER TABLE `appointments`
MODIFY `app_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `beds`
--
ALTER TABLE `beds`
MODIFY `bed_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `bed_categories`
--
ALTER TABLE `bed_categories`
MODIFY `bed_category_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `blood_banks`
--
ALTER TABLE `blood_banks`
MODIFY `blood_bag_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `cases`
--
ALTER TABLE `cases`
MODIFY `case_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `dept_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `doctors`
--
ALTER TABLE `doctors`
MODIFY `doc_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `donor_lists`
--
ALTER TABLE `donor_lists`
MODIFY `donor_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `emp_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `employee_roles`
--
ALTER TABLE `employee_roles`
MODIFY `role_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `expenses`
--
ALTER TABLE `expenses`
MODIFY `exp_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `expense_categories`
--
ALTER TABLE `expense_categories`
MODIFY `exp_cat_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `floors`
--
ALTER TABLE `floors`
MODIFY `floor_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `in_patients`
--
ALTER TABLE `in_patients`
MODIFY `in_p_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `lab_reports`
--
ALTER TABLE `lab_reports`
MODIFY `lab_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `medicines`
--
ALTER TABLE `medicines`
MODIFY `med_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `medicine_categories`
--
ALTER TABLE `medicine_categories`
MODIFY `med_cat_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `out_patients`
--
ALTER TABLE `out_patients`
MODIFY `out_p_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `patient_expenses`
--
ALTER TABLE `patient_expenses`
MODIFY `p_exp_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `prescriptions`
--
ALTER TABLE `prescriptions`
MODIFY `prescription_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `prescription_medicines`
--
ALTER TABLE `prescription_medicines`
MODIFY `prescription_m_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `services`
--
ALTER TABLE `services`
MODIFY `service_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `appointments`
--
ALTER TABLE `appointments`
ADD CONSTRAINT `appointments_app_doc_id_foreign` FOREIGN KEY (`app_doc_id`) REFERENCES `doctors` (`doc_id`) ON DELETE CASCADE,
ADD CONSTRAINT `appointments_app_p_id_foreign` FOREIGN KEY (`app_p_id`) REFERENCES `out_patients` (`out_p_id`) ON DELETE CASCADE;
--
-- Constraints for table `beds`
--
ALTER TABLE `beds`
ADD CONSTRAINT `beds_bed_category_id_foreign` FOREIGN KEY (`bed_category_id`) REFERENCES `bed_categories` (`bed_category_id`) ON DELETE CASCADE;
--
-- Constraints for table `bed_categories`
--
ALTER TABLE `bed_categories`
ADD CONSTRAINT `bed_categories_bed_category_floor_id_foreign` FOREIGN KEY (`bed_category_floor_id`) REFERENCES `floors` (`floor_id`) ON DELETE CASCADE;
--
-- Constraints for table `cases`
--
ALTER TABLE `cases`
ADD CONSTRAINT `cases_case_p_id_foreign` FOREIGN KEY (`case_p_id`) REFERENCES `out_patients` (`out_p_id`) ON DELETE CASCADE;
--
-- Constraints for table `doctors`
--
ALTER TABLE `doctors`
ADD CONSTRAINT `doctors_doc_dept_id_foreign` FOREIGN KEY (`doc_dept_id`) REFERENCES `departments` (`dept_id`) ON DELETE CASCADE;
--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
ADD CONSTRAINT `employees_emp_role_id_foreign` FOREIGN KEY (`emp_role_id`) REFERENCES `employee_roles` (`role_id`) ON DELETE CASCADE;
--
-- Constraints for table `expenses`
--
ALTER TABLE `expenses`
ADD CONSTRAINT `expenses_exp_cat_id_foreign` FOREIGN KEY (`exp_cat_id`) REFERENCES `expense_categories` (`exp_cat_id`) ON DELETE CASCADE;
--
-- Constraints for table `in_patients`
--
ALTER TABLE `in_patients`
ADD CONSTRAINT `in_patients_in_p_bed_category_id_foreign` FOREIGN KEY (`in_p_bed_category_id`) REFERENCES `bed_categories` (`bed_category_id`) ON DELETE CASCADE,
ADD CONSTRAINT `in_patients_in_p_bed_id_foreign` FOREIGN KEY (`in_p_bed_id`) REFERENCES `beds` (`bed_id`) ON DELETE CASCADE,
ADD CONSTRAINT `in_patients_in_p_doc_id_foreign` FOREIGN KEY (`in_p_doc_id`) REFERENCES `doctors` (`doc_id`) ON DELETE CASCADE;
--
-- Constraints for table `lab_reports`
--
ALTER TABLE `lab_reports`
ADD CONSTRAINT `lab_reports_lab_doc_id_foreign` FOREIGN KEY (`lab_doc_id`) REFERENCES `doctors` (`doc_id`) ON DELETE CASCADE,
ADD CONSTRAINT `lab_reports_lab_p_id_foreign` FOREIGN KEY (`lab_p_id`) REFERENCES `out_patients` (`out_p_id`) ON DELETE CASCADE;
--
-- Constraints for table `medicines`
--
ALTER TABLE `medicines`
ADD CONSTRAINT `medicines_med_cat_id_foreign` FOREIGN KEY (`med_cat_id`) REFERENCES `medicine_categories` (`med_cat_id`) ON DELETE CASCADE;
--
-- Constraints for table `patient_expenses`
--
ALTER TABLE `patient_expenses`
ADD CONSTRAINT `patient_expenses_p_service_id_foreign` FOREIGN KEY (`p_service_id`) REFERENCES `services` (`service_id`) ON DELETE CASCADE;
--
-- Constraints for table `prescriptions`
--
ALTER TABLE `prescriptions`
ADD CONSTRAINT `prescriptions_prescription_doc_id_foreign` FOREIGN KEY (`prescription_doc_id`) REFERENCES `doctors` (`doc_id`) ON DELETE CASCADE,
ADD CONSTRAINT `prescriptions_prescription_p_id_foreign` FOREIGN KEY (`prescription_p_id`) REFERENCES `out_patients` (`out_p_id`) ON DELETE CASCADE;
--
-- Constraints for table `prescription_medicines`
--
ALTER TABLE `prescription_medicines`
ADD CONSTRAINT `prescription_medicines_prescription_id_foreign` FOREIGN KEY (`prescription_id`) REFERENCES `prescriptions` (`prescription_id`) ON DELETE CASCADE,
ADD CONSTRAINT `prescription_medicines_prescription_medicine_id_foreign` FOREIGN KEY (`prescription_medicine_id`) REFERENCES `medicines` (`med_id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>10-100
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 2018-01-17 21:07:13
-- 服务器版本: 10.1.28-MariaDB
-- PHP Version: 7.1.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: `airing`
--
-- --------------------------------------------------------
--
-- 表的结构 `admin`
--
CREATE TABLE `admin` (
`id` bigint(20) NOT NULL,
`account` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`name` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`password` char(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `admin`
--
INSERT INTO `admin` (`id`, `account`, `name`, `password`) VALUES
(1, 'acj', '<PASSWORD>', 'mgiOTEVA6f18FVjuqc7KUw=='),
(2, 'wty', '王腾叶', '4QrcOUm6Wau+VuBX8g+IPg=='),
(3, 'zyr', '钟燕榕', '4QrcOUm6Wau+VuBX8g+IPg=='),
(4, 'lyt', '鲁雅婷', '4QrcOUm6Wau+VuBX8g+IPg==');
-- --------------------------------------------------------
--
-- 表的结构 `choicedba`
--
CREATE TABLE `choicedba` (
`id` bigint(20) NOT NULL,
`question` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`option1` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`option2` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`option3` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`option4` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`rightanswer` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`secrecy` tinyint(1) NOT NULL DEFAULT '0',
`chapters` smallint(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `choicedba`
--
INSERT INTO `choicedba` (`id`, `question`, `option1`, `option2`, `option3`, `option4`, `rightanswer`, `secrecy`, `chapters`) VALUES
(1, '数据库三级模式中,真正存在的是( )。\n\n', '外模式', '子模式', '模式', '内模式', 'D', 0, 1),
(2, '关系数据库中的关键字是指( )。', '能唯一决定关系的字段', '不可改动的专用保留字', '关键的很重要的字段\r\n', '能唯一标识元组的属性或属性集合\r\n', 'D', 0, 1),
(3, '数据库的三级模式之间存在的映象关系正确的是( )。\r\n', '外模式/内模式', '外模式/模式', '外模式/外模式', '模式/模式\r\n', 'B', 0, 1),
(4, '数据库三级结构从内到外的三个层次为( )。', '外模式、模式、内模式', '内模式、模式、外模式\r\n', '模式、外模式、内模式', '内模式、外模式、模式\r\n', 'B', 0, 1),
(5, '下述关于数据库系统的正确叙述是( )。\r\n', '数据库系统减少了数据冗余', '数据库系统避免了一切冗余', '数据库系统中数据的一致性是指数据类型一致', '数据库系统比文件系统能管理更多的数据', 'A', 0, 1),
(6, '数据库系统和文件系统的主要区别是( )。', '数据库系统复杂,而文件系统简单', '文件系统不能解决数据冗余和数据独立性问题,而数据库系统能够解决', '文件系统只能管理文件,而数据库系统还能管理其他类型的数据', '文件系统只能用于小型、微型机,而数据库系统还能用于大型机', 'B', 0, 1),
(7, '在数据库中存储的是( )。', '数据', '数据模型', '数据及数据间的联系', '信息', 'C', 0, 1),
(8, '数据库的概念模型独立于( )。', '具体的机器和DBMS', 'E-R图', '信息世界', '现实世界', 'A', 0, 1),
(9, '在数据库系统阶段,数据是( )。', '有结构的', '无结构的', '整体无结构,记录内有结构', '整体结构化的', 'D', 0, 1),
(10, '( )属于信息世界的模型,实际上是现实世界到机器世界的一个中间层次。', '数据模型', '概念模型', 'E-R图', '关系模型', 'B', 0, 1),
(11, '在数据管理技术的发展过程中,经历了人工管理阶段、文件系统阶段和数据库系统阶段。在这几个阶段中,数据独立性最高的是 阶段。', '数据库系统', '文件系统', '人工管理', '数据项管理', 'A', 0, 1),
(12, '并发操作会带来哪些数据不一致性 。', '丢失修改、不可重复读、脏读、死锁', '不可重复读、脏读、死锁 ', '丢失修改、脏读、死锁', '丢失修改、不可重复读、脏读 ', 'D', 0, 11),
(13, '数据库的基本特点是 。', '(1)数据可以共享(或数据结构化) (2)数据独立性 (3)数据冗余大,易移植 (4)统一管理和控制', '(1)数据可以共享(或数据结构化) (2)数据独立性 (3)数据冗余小,易扩充 (4)统一管理和控制', '(1)数据可以共享(或数据结构化) (2)数据互换性 (3)数据冗余小,易扩充 (4)统一管理和控制', '(1)数据非结构化 (2)数据独立性 (3)数据冗余小,易扩充 (4)统一管理和控制 ', 'B', 0, 1),
(14, ' 是存储在计算机内有结构的数据的集合。', '数据库系统', '数据库', '数据库管理系统', '数据结构', 'B', 0, 1),
(15, '数据库中,数据的物理独立性是指 。', '数据库与数据库管理系统的相互独立', '用户程序与DBMS的相互独立', '用户的应用程序与存储在磁盘上数据库中的数据是相互独立的', '应用程序与数据库中数据的逻辑结构相互独立', 'C', 0, 1),
(16, '数据库的特点之一是数据的共享,严格地讲,这里的数据共享是指 。', '同一个应用中的多个程序共享一个数据集合', '多个用户、同一种语言共享数据', '多个用户共享一个数据文件', '多种应用、多种语言、多个用户相互覆盖地使用数据集合 ', 'D', 0, 1),
(17, '数据库系统的核心是 。', '数据库', '数据库管理系统', '数据模型', '软件工具', 'B', 0, 1),
(18, '下述关于数据库系统的正确叙述是 。', '数据库系统减少了数据冗余', '数据库系统避免了一切冗余', '数据库系统中数据的一致性是指数据类型一致', '数据库系统比文件系统能管理更多的数据', 'A', 0, 1),
(19, '将数据库的结构划分成多个层次,是为了提高数据库的 和 。', '数据独立性 逻辑独立性', '管理规范性 数据的共享', '数据独立性 物理独立性 ', '逻辑独立性 物理独立性 ', 'D', 0, 1),
(20, '数据库(DB)、数据库系统(DBS)和数据库管理系统(DBMS)三者之间的关系是 。', 'DBS包括DB和DBMS ', 'DDMS包括DB和DBS', 'DB包括DBS和DBMS', 'DBS就是DB,也就是DBMS', 'A', 0, 1),
(21, '在数据库中,产生数据不一致的根本原因是 。', '数据存储量太大', '没有严格保护数据', '未对数据进行完整性控制', '数据冗余', 'D', 0, 1),
(22, '数据库管理系统(DBMS)是 。', '数学软件', '应用软件', '计算机辅助设计', '系统软件', 'D', 0, 1),
(23, '数据库管理系统(DBMS)的主要功能是 。', '修改数据库', '定义数据库', '应用数据库', '保护数据库', 'B', 0, 1),
(24, '数据库系统的特点是 、数据独立、减少数据冗余、避免数据不一致和加强了数据保护。', '数据共享', '数据存储', '数据应用', '数据保密', 'A', 0, 1),
(25, '数据库系统的最大特点是 。', '数据的三级抽象和二级独立性', '数据共享性 ', '数据的结构化', '数据独立性', 'A', 0, 1),
(26, '数据库管理系统能实现对数据库中数据的查询、插入、修改和删除等操作,这种功能称为 。', '数据定义功能', '数据管理功能', '数据操纵功能', '数据控制功能', 'C', 0, 1),
(27, '数据库管理系统是 。', '操作系统的一部分', '在操作系统支持下的系统软件 ', '一种编译程序', '一种操作系统 ', 'B', 0, 1),
(28, '数据库的三级模式结构中,描述数据库中全体数据的全局逻辑结构和特征的是()', '外模式 ', '内模式', '存储模式', '模式', 'D', 0, 1),
(29, '数据库系统的数据独立性是指 。', '不会因为数据的变化而影响应用程序 ', '不会因为系统数据存储结构与数据逻辑结构的变化而影响应用程序', '不会因为存储策略的变化而影响存储结构 ', '不会因为某些存储结构的变化而影响其他的存储结构 ', 'B', 0, 1),
(30, '信息世界中的术语,与之对应的数据库术语为 。', '文件', '数据库', '字段', '记录 ', 'D', 0, 1),
(31, '层次型、网状型和关系型数据库划分原则是 。', '记录长度 ', '文件的大小', '联系的复杂程度', '数据之间的联系', 'D', 0, 1),
(32, '传统的数据模型分类,数据库系统可以分为三种类型 。', '大型、中型和小型', '西文、中文和兼容 ', '层次、网状和关系', '数据、图形和多媒体', 'C', 0, 1),
(33, '层次模型不能直接表示 。', '1 :1关系', '1 :m关系 ', 'm :n关系', '1 :1和1 :m关系', 'C', 0, 1),
(34, '数据库技术的奠基人之一E.F.Codd从1970年起发表过多篇论文,主要论述的是 。', '层次数据模型', '网状数据模型', '关系数据模型', '面向对象数据模型', 'C', 0, 1),
(35, '关系数据库管理系统应能实现的专门关系运算包括 。', '排序、索引、统计 ', '选择、投影、连接', '关联、更新、排序', '显示、打印、制表', 'B', 0, 2),
(36, '关系模型中,一个关键字是 。', '可由多个任意属性组成', '至多由一个属性组成', '可由一个或多个其值能惟一标识该关系模式中任何元组的属性组成', '以上都不是', 'C', 0, 2),
(37, '自然连接是构成新关系的有效方法。一般情况下,当对关系R和S使用自然连接时,要求R和S含有一个或多个共有的 。', '元组', '行', '记录', '属性', 'D', 0, 2),
(38, '关系运算中花费时间可能最长的运算是 。', '投影', '选择', '笛卡尔积', '除 ', 'C', 0, 2),
(39, '关系模式的任何属性 。', '不可再分', '可再分 ', '命名在该关系模式中可以不惟一', '以上都不是', 'A', 0, 2),
(40, '在关系代数运算中,五种基本运算为 。', '并、差、选择、投影、自然连接 ', '并、差、交、选择、投影', '并、差、选择、投影、乘积', '并、差、交、选择、乘积', 'C', 0, 2),
(41, '对并发操作若不加以控制,可能会带来 问题。', '不安全', '死锁', '死机', '不一致 ', 'D', 0, 11),
(42, 'SQL语言是 的语言,易学习。', '过程化', '非过程化', '格式化', '导航式 ', 'B', 0, 3),
(43, 'SQL语言是 语言。', '层次数据库', '网络数据库', '关系数据库', '非数据库', 'C', 0, 3),
(44, 'SQL语言具有 的功能。', '关系规范化、数据操纵、数据控制 ', '数据定义、数据操纵、数据控制', '数据定义、关系规范化、数据控制', '数据定义、关系规范化、数据操纵', 'B', 0, 3),
(45, 'SQL语言具有两种使用方式,分别称为交互式SQL和 。', '提示式SQL', '多用户SQL', '嵌入式SQL', '解释式SQL', 'C', 0, 3),
(46, '假定学生关系是S(S#,SNAME,SEX,AGE),课程关系是C(C#,CNAME,TEACHER),学生选课关系是SC(S#,C#,GRADE)。\r\n 要查找选修“COMPUTER”课程的“女”学生姓名,将涉及到关系 。\r\n', 'S ', 'SC,C', 'S,SC ', 'S,C,SC ', 'D', 0, 3),
(47, '如下面的数据库的表中,若职工表的主关键字是职工号,部门表的主关键字是部门号,SQL操作 不能执行。', 'A.从职工表中删除行(‘025’,‘王芳’,‘03’,720)', 'B.将行(‘005,’,‘乔兴’,‘04’,750)插入到职工表中', 'C.将职工号为,‘001’的工资改为700', ' D.将职工号为,’038’的部门号改为‘03’', 'B ', 0, 3),
(48, '若用如下的SQL语句创建一个student表:\r\n CREATE TABLE student(NO C(4) NOT NULL,\r\n NAME C(8) NOT NULL,\r\n SEX C(2),\r\n AGE N(2))\r\n 可以插入到student表中的是 。\r\n', '(‘1031’,‘曾华’,男,23)', '(‘1031’,‘曾华’,NULL,NULL)', '(NULL,‘曾华’,‘男’,‘23’)', '(‘1031’,NULL,‘男’,23) ', 'B', 0, 3),
(49, '第8到第11题基于这样的三个表即学生表S、课程表C和学生选课表SC,它们的结构如下:\r\n S(S#,SN,SEX,AGE,DEPT)\r\n C(C#,CN)\r\n SC(S#,C#,GRADE)\r\n其中:S#为学号,SN为姓名,SEX为性别,AGE为年龄,DEPT为系别,C#为课程号,CN为课程名,GRADE为成绩。\r\n检索所有比“王华”年龄大的学生姓名、年龄和性别。正确的SELECT语句是 。 ', 'SELECT SN,AGE,SEX FROM S\r\n WHERE AGE>(SELECT AGE FROM S\r\n WHERE SN=“王华”)\r\n', 'SELECT SN,AGE,SEX\r\n FROM S\r\n WHERE SN=“王华”\r\n', '.SELECT SN,AGE,SEX FROM S\r\nWHERE AGE>(SELECT AGE\r\n WHERE SN=“王华”)\r\n', 'SELECT SN,AGE,SEX FROM S\r\n WHERE AGE>王华.AGE\r\n', 'A', 0, 3),
(50, '检索选修课程“C2”的学生中成绩最高的学生的学号。正确的SELECT语句是 。', 'SELECT S# FORM SC WHERE C#=“C2” AND GRAD>=\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE IN\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE NOT IN\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE>=ALL\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'D', 0, 3),
(51, '检索学生姓名及其所选修课程的课程号和成绩。正确的SELECT语句是 。', 'SELECT S.SN,SC.C#,SC.GRADE\r\n FROM S\r\n WHERE S.S#=SC.S#\r\n', 'SELECT S.SN,SC.C#,SC.GRADE\r\n FROM SC\r\n WHERE S.S#=SC.GRADE\r\n', 'SELECT S.SN,SC.C#,SC.GRADE\r\n FROM S,SC\r\n WHERE S.S#=SC.S#\r\n', 'SELECT S.SN,SC.C#,SC.GRADE\r\n FROM S.SC\r\n', 'C', 0, 3),
(52, '检索选修四门以上课程的学生总成绩(不统计不及格的课程),并要求按总成绩的降序排列出来。正确的SELECT语句是 。', 'SELECT S#,SUM(GRADE)FROM SC\r\n WHERE GRADE>=60\r\n GROUP BY S#\r\n ORDER BY 2 DESC\r\n HAVING COUNT(*)>=4 WHERE C#=“C2” AND GRADE>=\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE IN\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE NOT IN\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'SELECT S# FORM SC\r\n WHERE C#=“C2” AND GRADE>=ALL\r\n (SELECT GRADE FORM SC\r\n WHERE C#=“C2”)\r\n', 'D', 0, 3),
(53, '下面哪个不是数据库系统必须提供的数据控制功能 。', '安全性', '可移植性', '完整性', '并发控制', 'B', 0, 4),
(54, '保护数据库,防止未经授权的或不合法的使用造成的数据泄漏、更改破坏。这是指数据的 。', '安全性', '完整性', '并发控制', '恢复 ', 'A', 0, 4),
(55, '数据库的 是指数据的正确性和相容性。', '安全性', '完整性', '并发控制 ', '恢复', 'B', 0, 4),
(56, '在数据系统中,对存取权限的定义称为 。', '命令 ', '授权', '定义', '审计 ', 'B', 0, 4),
(57, '数据库管理系统通常提供授权功能来控制不同用户访问数据的权限,这主要是为了实现数据库的 。', '可靠性', '一致性', '完整性', '安全性 ', 'D', 0, 4),
(58, '下列SQL语句中,能够实现“收回用户ZHAO对学生表(STUD)中学号(XH)的修改权”这一功能的是 ', 'REVOKE UPDATE(XH) ON TABLE FROM ZHAO ', 'REVOKE UPDATE(XH) ON TABLE FROM PUBLIC', 'REVOKE UPDATE(XH) ON STUD FROM ZHAO ', 'REVOKE UPDATE(XH) ON STUD FROM PUBLIC', 'C', 0, 4),
(59, '把对关系SC的属性GRADE的修改权授予用户ZHAO的SQL语句是 ', 'GRANT GRADE ON SC TO ZHAO ', 'GRANT UPDATE ON SC TO ZHAO', 'GRANT UPDATE (GRADE) ON SC TO ZHAO', 'GRANT UPDATE ON SC (GRADE) TO ZHAO ', 'C', 0, 4),
(60, '在SQL Server 中删除触发器用( )。', 'ROLLBACK ', 'DROP', 'DELALLOCATE', 'DELETE', 'B', 0, 4),
(61, '在数据库系统中,保证数据及语义正确和有效的功能是 ( )', '并发控制', '存取控制', '安全控制', '完整性控制', 'D', 0, 5),
(62, '关于主键约束以下说法错误的是( )', '一个表中只能设置一个主键约束', '允许空值的字段上不能定义主键约束', '允许空值的字段上可以定义主键约束', '可以将包含多个字段的字段组合设置为主键', 'C', 0, 5),
(63, '在表或视图上执行除了( )以外的语句都可以激活触发器', 'Insert ', 'Delete ', 'Update', 'Create ', 'D', 0, 5),
(64, '数据库的____是指数据的正确性和相容性。', '安全性', '完整性', '并发控制', '恢复', 'B', 0, 5),
(65, '在数据库的表定义中,限制成绩属性列的取值在0到100的范围内,属于数据的________约束。', '实体完整性', '参照完整性', '用户自定义', '用户操作', 'C', 0, 5),
(66, '关系规范化中的删除操作异常是指 ', '不该删除的数据被删除', '不该插入的数据被插入', '应该删除的数据未被删除', '应该插入的数据未被插入', 'A', 0, 6),
(67, '关系规范化中的插入操作异常是指 ', '不该删除的数据被删除', '不该插入的数据被插入', '应该删除的数据未被删除', '应该插入的数据未被插入', 'D', 0, 6),
(68, '设计性能较优的关系模式称为规范化,规范化主要的理论依据是 。', '关系规范化理论', '关系运算理论', '关系代数理论', '数理逻辑', 'A', 0, 6),
(69, '规范化过程主要为克服数据库逻辑结构中的插入异常,删除异常以及 的缺陷。', '数据的不一致性', '结构不合理', '冗余度大', '数据丢失', 'C', 0, 6),
(70, '当关系模式R(A,B)已属于3NF,下列说法中 是正确的。', '它一定消除了插入和删除异常', '仍存在一定的插入和删除异常', '一定属于BCNF', 'A和C都是', 'B', 0, 6),
(71, '关系模型中的关系模式至少是 。', '1NF', '2NF', '3NF ', 'BCNF', 'A', 0, 6),
(72, '在关系DB中,任何二元关系模式的最高范式必定是 。', '1NF', '2NF', '3NF', 'BCNF', 'D', 0, 6),
(73, '在关系模式R中,若其函数依赖集中所有候选关键字都是决定因素,则R最高范式是 。', '2NF', '3NF', '4NF', 'BCNF ', 'C', 0, 6),
(74, '候选关键字中的属性称为 。', '非主属性 ', '主属性', '复合属性', '关键属性', 'B', 0, 6),
(75, '消除了部分函数依赖的1NF的关系模式,必定是 。', '1NF ', '2NF', '3NF', '4NF', 'B', 0, 6),
(76, '关系模式的候选关键字可以有 ', '0个 ', '1个', '1个或多个', '多个', 'C', 0, 6),
(77, '关系模式的主关键字有 。', '0个 ', '1个 ', '1个或多个', '多个', 'B', 0, 6),
(78, '根据关系数据库规范化理论,关系数据库中的关系要满足第一范式。下面“部门”关系中,因哪个属性而使它不满足第一范式? 。\r\n 部门(部门号,部门名,部门成员,部门总经理)\r\n', '部门总经理', '部门成员', '部门名 ', '部门号 ', 'B', 0, 6),
(79, '在数据库设计中,用E-R图来描述信息结构但不涉及信息在计算机中的表示,它是数据库设计的 阶段。', '需求分析', '概念设计', '逻辑设计 ', '物理设计', 'B', 0, 7),
(80, '在关系数据库设计中,设计关系模式是 的任务。', '需求分析阶段', '概念设计阶段', '逻辑设计阶段 ', '物理设计阶段', 'C', 0, 7),
(81, '数据库物理设计完成后,进入数据库实施阶段,下列各项中不属于实施阶段的工作是 。', '建立库结构', '扩充功能 ', '加载数据 ', '系统调试', 'B', 0, 7),
(82, '在数据库的概念设计中,最常用的数据模型是 。', '形象模型', '物理模型', '逻辑模型 ', '实体联系模型', 'D', 0, 7),
(83, '从E-R模型关系向关系模型转换时,一个M∶N联系转换为关系模型时,该关系模式的关键字是 。', 'M端实体的关键字 ', 'N端实体的关键字', 'M端实体关键字与N端实体关键字组合 ', '重新选取其他属性 ', 'C', 0, 7),
(84, '当局部E-R图合并成全局E-R图时可能出现冲突,不属于合并冲突的是 。', '属性冲突 ', '语法冲突', '结构冲突', '命名冲突 ', 'B', 0, 7),
(85, '概念模型独立于 。', 'E-R模型', '硬件设备和DBMS', '操作系统和DBMS', 'DBMS', 'B', 0, 7),
(86, '数据流程图(DFD)是用于描述结构化方法中 阶段的工具。', '可行性分析', '详细设计', '需求分析', '程序编码', 'C', 0, 7),
(87, ' 是DBMS的基本单位,它是用户定义的一组逻辑一致的程序序列。', '程序', '命令', '事务', '文件 ', 'C', 0, 10),
(88, '事务的原子性是指 。', '事务中包括的所有操作要么都做,要么都不做 ', '事务一旦提交,对数据库的改变是永久的', '一个事务内部的操作及使用的数据对并发的其他事务是隔离的', '事务必须是使数据库从一个一致性状态变到另一个一致性状态', 'A', 0, 10),
(89, '事务的一致性是指 。', '事务中包括的所有操作要么都做,要么都不做', '事务一旦提交,对数据为的改变是永久的', '一个事务内部的操作及使用的数据对并发的其他事务是隔离的', '事务必须是使数据库从一个一致性状态变到另一个一致性状态', 'D', 0, 10),
(90, '事务的隔离性是指 。', '事务中包括的所有操作要么都做,要么都不做', '事务一旦提交,对数据库的改变是永久的', '一个事务内部的操作及使用的数据对并发的其他事务是隔离的', '事务必须是使数据库从一个一致性状态变到另一个一致性状态', 'C', 0, 10),
(91, '事务的持续性是指 。', '事务中包括的所有操作要么都做,要么都不做', '事务一旦提交,对数据库的改变是永久的', '一个事力内部的操作及使用的数据对并发的其他事务是隔离的', '事务必须是使数据库从一个一致性状态变到另一个一致性状态', 'B', 0, 10),
(92, '若数据库中只包含成功事务提交的结果,则此数据库就称为处于 状态。', '安全', '一致', '不安全', '不一致 ', 'B', 0, 10),
(93, '若系统在运行过程中,由于某种原因,造成系统停止运行,致使事务在执行过程中以非控制方式终止,这时内存中的信息丢失,而存储在外存上的数据未受影响,这种情况称为 。', '事务故障', '系统故障', '介质故障', '运行故障 ', 'B', 0, 10),
(94, '若系统在运行过程中,由于某种硬件故障,使存储在外存上的数据部分损失或全部损失,这种情况称为 。', '事务故障', '系统故障 ', '介质故障 ', '运行故障', 'C', 0, 10),
(95, ' 用来记录对数据库中数据进行的每一次更新操作。', '后援副本 ', '日志文件 ', '数据库', '缓冲区', 'B', 0, 10),
(96, '用于数据库恢复的重要文件是 。', '数据库文件', '索引文件', '日志文件', '备注文件 ', 'C', 0, 10),
(97, '数据库恢复的基础是利用转储的冗余数据。这些转储的冗余数据包括 。', '数据字典、应用程序、审计档案、数据库后备副本', '数据字典、应用程序、日志文件、审计档案', '日志文件、数据库后备副本 ', '数据字典、应用程序、数据库后备副本', 'C', 0, 10),
(98, '解决并发操作带来的数据不一致性总是普遍采用 。', '封锁 ', '恢复', '存取控制', '协商 ', 'A', 0, 11),
(99, '若事务T对数据R已经加X锁,则其他事务对数据R 。', '可以加S锁不能加X锁', '不能加S锁可以加X锁 ', '可以加S锁也可以加X锁 ', '不能加任何锁 ', 'D', 0, 11),
(100, '关于“死锁”,下列说法中正确的是 。', '死锁是操作系统中的问题,数据库操作中不存在', '在数据库操作中防止死锁的方法是禁止两个用户同时操作数据库', '当两个用户竞争相同资源时不会发生死锁', '只有出现并发操作时,才有可能出现死锁', 'D', 0, 11);
-- --------------------------------------------------------
--
-- 表的结构 `class`
--
CREATE TABLE `class` (
`classid` bigint(20) NOT NULL,
`tid` bigint(20) NOT NULL,
`classname` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `class`
--
INSERT INTO `class` (`classid`, `tid`, `classname`) VALUES
(1, 1, '15网工'),
(2, 3, '15计创'),
(3, 3, '15计联'),
(4, 2, '15计科1'),
(5, 2, '15计科2'),
(6, 1, '15信安');
-- --------------------------------------------------------
--
-- 表的结构 `evadba`
--
CREATE TABLE `evadba` (
`id` bigint(20) NOT NULL,
`title` varchar(20) COLLATE utf8mb4_bin NOT NULL DEFAULT '无名题',
`question` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`type` varchar(10) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`intable` varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`rightanswer` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `evadba`
--
INSERT INTO `evadba` (`id`, `title`, `question`, `type`, `intable`, `rightanswer`) VALUES
(1, '小试牛刀', '已知有一个学生(students)表,有sno,sname,sex,height等属性,查询身高大于1.80m的男生的学号和姓名;', '查找题', 'null', '\r\nSELECT SNO,SNAME FROM students WHERE SEX=\'男\' AND HEIGHT>1.80;'),
(2, '稳步提升', '已知有一个课程(courses)表,有cno,cname,lhour,credit,semester等属性,查询计算机系秋季所开课程的课程号和学分数;', '查找题', 'null', 'SELECT CNO, CREDIT FROM Courses \r\nWHERE CNO LIKE \'CS%\' AND SEMESTER=\'秋\';'),
(3, '突飞猛进', '已知有一个学生(students)表,有sno,sname等属性;有一个课程(courses)表,有cno,cname,credit等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询选修计算机系秋季所开课程的男生的姓名、课程号、学分数、成绩;', '查找题', 'null', 'SELECT SNAME, Courses.CNO, CREDIT, GRADE FROM students,Courses,SC\r\nWHERE students.SNO = SC.SNO AND Courses.CNO = SC.CNO\r\nAND Courses.CNO LIKE \'CS%\' AND SEMESTER=\'秋\';'),
(4, '名震四方', '已知有一个学生(students)表,有sno,sname,sex等属性;有一个课程(courses)表,有cno,cname等属性;有一个学生选课(sc)表,有sno,cno等属性。查询至少选修一门电机系课程的女生的姓名(假设电机系课程的课程号以EE开头);', '查找题', 'null', 'SELECT SNAME FROM students,Courses,SC\r\nWHERE students.SNO = SC.SNO AND Courses.CNO = SC.CNO\r\nAND Courses.CNO LIKE \'EE%\' AND SEX=\'女\';'),
(5, '出来吧成绩', '已知有一个学生(students)表,有sno,sname等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询每位学生已选修课程的门数和总平均成绩;', '查找题', 'null', 'SELECT students.SNO,COUNT(*),AVG(sc. GRADE ) FROM Students,SC WHERE students.SNO = SC.SNO GROUP BY students.SNO'),
(6, '无名题', '已知有一个课程(courses)表,有cno,cname,credit等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询每门课程选课的学生人数,最高成绩,最低成绩和平均成绩;', '查找题', 'null', 'SELECT Courses.CNO, COUNT(*)as \'学生人数\',MAX(GRADE),MIN(GRADE),AVG(GRADE) FROM SC,Courses\r\nWHERE Courses.CNO = SC.CNO\r\nGROUP BY Courses.CNO;'),
(7, '出来吧学霸', '已知有一个学生(students)表,有sno,sname等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询所有课程的成绩都在80分以上的学生的姓名、学号、且按学号升序排列;', '查找题', 'null', 'SELECT SNAME,students.SNO FROM Students,SC\r\nWHERE students.SNO = SC.SNO \r\nGROUP BY students.SNO\r\nHAVING MIN(GRADE) >=80\r\nORDER BY students.SNO ASC;'),
(8, '你缺考我看到了', '已知有一个学生(students)表,有sno,sname等属性;有一个课程(courses)表,有cno,cname,credit等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询缺成绩的学生的姓名,缺成绩的课程号及其学分数;', '查找题', 'null', 'SELECT SNAME, Courses.CNO, CREDIT FROM students,Courses,SC\r\nWHERE students.SNO = SC.SNO AND Courses.CNO = SC.CNO\r\nAND GRADE=NULL'),
(9, '你考得差我都看到了', '已知有一个学生(students)表,有sno,sname等属性;有一个课程(courses)表,有cno,cname,credit等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询有一门以上(含一门)三个学分以上课程的成绩低于70分的学生的姓名;', '查找题', 'null', 'SELECT DISTINCT SNAME\r\nFROM students,SC,Courses\r\nWHERE students.SNO = SC.SNO\r\nAND Courses.CNO = SC.CNO\r\nAND Courses.CREDIT >=3\r\nAND GRADE <70\r\n'),
(10, '有名题', '已知有一个学生(students)表,有sno,sname,bdate等属性;有一个课程(courses)表,有cno,cname,credit等属性;有一个学生选课(sc)表,有sno,cno,grade等属性。查询1984年~1986年出生的学生的姓名,总平均成绩及已修学分数。', '查找题', 'null', 'SELECT SNAME,AVG(GRADE),SUM(CREDIT) FROM students,Courses,SC\r\nWHERE students.SNO = SC.SNO AND Courses.CNO = SC.CNO\r\nAND BDATE > \'1984-01-01\' AND BDATE< \'1987-01-01\'\r\nGROUP BY Students.SNO'),
(11, '消失的学生', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在students和sc关系中,删去sno以’20153031’头的所有记录。', '删除题', 'students,sc', 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE SC.SNO LIKE \'20153031%\';'),
(12, '神秘插班生', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在students关系中增加以下记录:\r\n <04091011111 何平 女 1987-03-02 1.62 cs>\r\n <04081300000 向阳 男 1986-12-11 1.75 cs>', '插入题', 'students', 'INSERT INTO `students` (`SNO`, `SNAME`, `SEX`, `BDATE`, `HEIGHT`) VALUES \r\n(\'0409101\',\'何平\',\'女\',\'1987-03-02\',1.62),(\'0408130\',\'向阳\',\'男\',\'1986-12-11\',1.75);'),
(13, 'good good study', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在courses关系中,将课程CS-221的学分数增为3,讲课时数增为60', '更新题', 'sc', 'update Courses SET CREDIT=3,LHOUR=60 WHERE CNO=\'CS-221\';\r\n'),
(14, '消失的一米六', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在students和sc关系中,删去身高为’1.6’的所有记录。', '删除题', 'students,sc', 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE students.height=\'1.6\';'),
(15, '又多了一门课', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在courses表中增加一门课程,它的记录为:\r\n <C6 操作系统 64 4 秋 >', '插入题', 'courses', 'INSERT INTO `courses` (`cno`, `cname`, `lhour`, `credit`, `semester`) VALUES \r\n(\'C6\',\'操作系统\',64,4,\'秋\');'),
(16, '偷偷改成绩小游戏', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n在sc关系中,将学号为201530311042,课程号为C1的记录的成绩改为80;', '更新题', 'sc', 'update sc SET grade=80 WHERE sno=’201530311042\' and CNO=\'C1\';'),
(17, '变成女校', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n删除Students,SC中sex为男的学生记录', '删除题', 'students,sc', 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE students.height=\'1.6\';'),
(18, '开心消消乐', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n删除SC中grade>=90的成绩记录', '删除题', 'sc', 'DELETE * FROM SC where grade>=90;'),
(19, '再接再厉', '已知有Students数据库包含如下表:\r\nSC(sno,cno,grade)\r\n将学号为201530371190选修的EE4课程成绩改成59', '更新题', 'sc', 'update sc set grade=59 where sno=\'201530371190\' and cno=\'EE4\';'),
(20, '普通的更新题1', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n将1984年~1986年出生的学生的成绩更新为90', '更新题', 'students,sc', 'update sc,students set grade=90 \r\nwhere BDATE > \'1984-01-01\' AND BDATE< \'1987-01-01\';'),
(21, '考完一门', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n插入学号为201530311042的课程号为EE4,成绩为61的成绩记录', '插入题', 'sc', 'insert into sc values(\'201530311042\',\'EE4\',61);'),
(22, '女装大佬の潜入', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n将姓张的学生性别改成女', '更新题', 'students', 'update students set sex=\'女\'\r\nwhere sname like \'张%\';'),
(23, '普通的更新题2', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n将编译原理的学时改为60', '更新题', 'courses', 'update Courses set lhour=60\r\nwhere cname=\'编译原理\';'),
(24, '平平无奇的插入题1', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n插入学号为201530311042的课程号为EE4,成绩为59的成绩记录', '插入题', 'sc', 'insert into sc values(\'201530311042\',\'EE4\',59);'),
(25, '变成男校', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\nCourses(cno,cname,lhour,credit,semester)\r\nSC(sno,cno,grade)\r\n删除Students,SC中sex为女的学生记录', '删除题', 'students,sc', 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE students.sex=\'女\';'),
(26, '平平无奇的插入题2', '已知有Students数据库包含如下表:\r\nStudents(sno,sname,sex,bdate,height,department)\r\n在students关系中增加以下记录:\r\n <04091011098 卡比兽 男 2017-03-02 1.62 null>', '插入题', 'students', 'INSERT INTO `students` (`SNO`, `SNAME`, `SEX`, `BDATE`, `HEIGHT`) VALUES \r\n(\'04091011098\',\'卡比兽\',\'男\',\'2017-03-02\',1.62\');'),
(27, '又又多了一门课', '已知有一个课程(courses)表,有cno,cname,lhour,credit,semester等属性\r\n增加一门课程:<EE6 成功学 64 4 秋 >', '插入题', 'courses', 'INSERT INTO `courses` (`cno`, `cname`, `lhour`, `credit`, `semester`) VALUES \r\n(\'EE6\',\'成功学\',64,4,\'秋\');');
-- --------------------------------------------------------
--
-- 表的结构 `judgedba`
--
CREATE TABLE `judgedba` (
`id` bigint(20) NOT NULL,
`question` varchar(500) COLLATE utf8_bin NOT NULL,
`rightanswer` varchar(2) COLLATE utf8_bin NOT NULL,
`secrecy` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- 转存表中的数据 `judgedba`
--
INSERT INTO `judgedba` (`id`, `question`, `rightanswer`, `secrecy`) VALUES
(1, '数据是表示信息的具体形式,信息是数据表达的内容。', 'T', 0),
(2, '在数据库的三级模式结构中内模式可以有多个。', 'F', 0),
(3, '数据独立性指数据的存储与应用程序无关,数据存储结构的改变不影响应用程序的正常运行。', 'T', 0),
(4, '当数据库的存储结构改变了,由数据库管理员对模式/内模式映射作相应改变,可以使模式保持不变,从而保证了数据的物理独立性。', 'T', 0),
(5, '数据处理是将信息转换成数据的过程。', 'F', 0),
(6, '数据库在计算机系统中不是以文件方式存储的。', 'F', 0),
(7, '数据库系统其实就是一个应用软件。', 'F', 0),
(8, '三级模式结构也就是从逻辑上对数据库的组织从内到外进行的3个层次描述。', 'T', 0),
(9, '三级模式间存在三个映射关系。', 'F', 0),
(10, 'DBMS不需要操作系统的支持就可以实现其功能。', 'F', 0),
(11, '用二维表结构表示实体型,外键实现实体之间联系的模型称为关系模型。', 'T', 0),
(12, '关系模型不能表示实体之间多对多联系。', 'F', 0),
(13, '任何一张二维表格都表示一个关系。', 'F', 0),
(14, '关系是元组的集合。', 'T', 0),
(15, '域是一组具有相同数据类型的值的集合。', 'T', 0),
(16, '一个域允许的不同取值个数称为这个域的基数.', 'T', 0),
(17, 'D1×D2×…×Dn的子集叫作在域D1,D2,…,Dn上的关系,表示为R(D1,D2,…,Dn)', 'T', 0),
(18, '超码/超键(superkey)能唯一地标识关系中的一个元组的一属性组', 'T', 0),
(19, '候选码(Candidate key)若关系中的某一属性组的值能唯一地标识一个元组,而其子集不能,则称该属性组为候选r码。', 'T', 0),
(20, '若一个关系有多个候选码,则选定其中一个为主码(Primary key)', 'T', 0);
-- --------------------------------------------------------
--
-- 表的结构 `paper`
--
CREATE TABLE `paper` (
`id` bigint(20) NOT NULL,
`name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`begintime` datetime NOT NULL,
`finishtime` datetime NOT NULL,
`choi` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`judg` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`sub` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
`choiscore` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`judgscore` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`subscore` varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`tid` bigint(20) DEFAULT NULL,
`classid` varchar(100) COLLATE utf8mb4_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `paper`
--
INSERT INTO `paper` (`id`, `name`, `begintime`, `finishtime`, `choi`, `judg`, `sub`, `choiscore`, `judgscore`, `subscore`, `tid`, `classid`) VALUES
(1, '数据库平时练习第一次', '2017-12-09 18:00:00', '2018-12-09 19:00:00', '1,2,3,4,5,6,7,8,9,10', '1,2,3,4,5,', '1,2,3,4,5', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 1, '[|1|,|2|,|3|]'),
(2, '数据库平时练习第二次', '2017-12-09 19:00:00', '2018-12-09 20:00:00', '2,3,4,5,6,7,8,9,10,11', '2,3,4,5,6', '2,3,4,5,6', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 2, '[|1|,|2|]'),
(3, '数据库平时练习第三次', '2017-12-10 14:00:00', '2018-12-10 15:00:00', '21,22,23,24,25,26,27,28,29,30', '3,4,5,6,7', '1,2,3,4,5', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 3, '[|1|,|2|,|4|,|6|,|3|,|5|]'),
(4, '数据库平时练习第四次', '2017-12-09 15:00:00', '2018-12-09 16:00:00', '22,23,24,25,26,27,28,29,30,31', '4,5,6,7,8', '2,3,4,5,6', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 1, '[|1|,|5|,|2|,|3|]'),
(5, '数据库平时练习第五次', '2017-12-09 15:00:00', '2018-12-09 16:00:00', '22,23,24,25,26,27,28,29,30,31', '4,5,6,7,8', '1,3,4,5,6', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 1, '[|1|,|4|]'),
(6, '数据库期中考试', '2017-12-11 19:00:00', '2018-12-11 20:00:00', '1,11,21,31,41,51,61,71,81,91', '1,3,5,7,9', '1,3,5,7,9', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 2, '[|1|,|3|]'),
(7, '数据库期末考试', '2017-12-20 19:00:00', '2018-12-20 20:00:00', '2,12,22,32,42,52,62,72,82,92', '2,4,6,8,10', '2,4,6,8,10', '4,4,4,4,4,4,4,4,4,4', '4,4,4,4,4', '8,8,8,8,8', 1, '[|1|,|2|,|4|,|6|,|3|,|5|]');
-- --------------------------------------------------------
--
-- 表的结构 `record`
--
CREATE TABLE `record` (
`sid` bigint(20) NOT NULL,
`pid` bigint(20) NOT NULL,
`record` varchar(5000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`status` varchar(4) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`score` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `record`
--
INSERT INTO `record` (`sid`, `pid`, `record`, `status`, `score`) VALUES
(1, 1, '', '已批改', 20),
(2, 1, '{\"cho_1\":\"B\",\"cho_4\":\"C\",\"cho_5\":\"C\",\"cho_6\":\"D\",\"cho_2\":\"A\",\"cho_8\":\"C\",\"tf_2\":\"T\",\"tf_4\":\"T\",\"tf_6\":\"T\",\"sub_1\":\"zxcdscsd\",\"sub_2\":\"asd \",\"sub_3\":\"打撒大三的思维卫峰\",\"sub_4\":\"额分分\",\"sub_5\":\"第三次多少\"}', '已批改', 20),
(3, 1, '', '已批改', 10),
(4, 1, '', '已批改', 40),
(5, 1, '', '已批改', 50),
(6, 1, '', '已批改', 80),
(1, 2, '', '已批改', 80),
(2, 2, '{\"cho_3\":\"B\",\"cho_6\":\"C\",\"cho_2\":\"A\",\"cho_4\":\"A\",\"cho_5\":\"C\",\"cho_7\":\"B\",\"cho_8\":\"A\",\"cho_11\":\"A\",\"cho_10\":\"C\",\"cho_9\":\"B\",\"tf_3\":\"T\",\"tf_4\":\"T\",\"tf_2\":\"T\",\"tf_6\":\"T\",\"tf_5\":\"T\",\"sub_2\":\"是是是\",\"sub_4\":\"好好好\",\"sub_6\":\"对对对\",\"sub_5\":\"嗯嗯嗯\",\"sub_3\":\"呵呵呵呵呵呵\"}', '已批改', 60),
(3, 2, '', '已批改', 50),
(5, 2, '', '已批改', 55),
(6, 2, '', '已批改', 30),
(2, 3, '{\"cho_21\":\"B\",\"cho_26\":\"A\",\"cho_27\":\"D\",\"cho_28\":\"C\",\"cho_30\":\"A\",\"cho_22\":\"A\",\"cho_23\":\"A\",\"cho_25\":\"A\",\"cho_29\":\"A\",\"cho_24\":\"A\",\"tf_3\":\"T\",\"tf_5\":\"T\",\"tf_4\":\"T\",\"tf_6\":\"T\",\"tf_7\":\"T\",\"sub_4\":\"没有\",\"sub_3\":\"不知道\",\"sub_1\":\"母鸡 \",\"sub_5\":\"不懂\",\"sub_2\":\"哈哈哈哈哈哈哈\"}', '已批改', 28),
(5, 3, '{\"cho_21\":\"B\",\"cho_26\":\"A\",\"sub_1\":\"\",\"sub_2\":\"\",\"sub_4\":\"\",\"sub_3\":\"\",\"sub_5\":\"\"}', '已批改', 0),
(2, 4, '', '已批改', 90),
(2, 5, '{\"cho_26\":\"C\",\"cho_22\":\"B\",\"cho_27\":\"B\",\"cho_25\":\"A\",\"cho_23\":\"A\",\"cho_30\":\"B\",\"cho_29\":\"D\",\"cho_28\":\"C\",\"cho_31\":\"B\",\"cho_24\":\"B\",\"tf_5\":\"T\",\"tf_4\":\"T\",\"tf_7\":\"T\",\"tf_6\":\"T\",\"tf_8\":\"T\",\"sub_1\":\"123\",\"sub_3\":\"234\",\"sub_4\":\"345\",\"sub_5\":\"567\",\"sub_6\":\"888\"}', '已批改', 31),
(2, 6, '{\"cho_1\":\"A\",\"cho_41\":\"B\",\"cho_51\":\"B\",\"sub_1\":\"\",\"sub_undefined\":\"\"}', '已批改', 100),
(3, 7, '{\"cho_2\":\"D\",\"cho_22\":\"B\",\"cho_12\":\"B\",\"cho_62\":\"B\",\"cho_32\":\"B\",\"cho_52\":\"A\",\"cho_72\":\"C\",\"cho_82\":\"B\",\"cho_92\":\"D\",\"tf_2\":\"T\",\"tf_4\":\"T\",\"tf_6\":\"T\",\"tf_8\":\"T\",\"tf_10\":\"T\",\"sub_4\":\"qqqqrve\",\"sub_6\":\"adsdsvrve\",\"sub_2\":\"asdvdevrerve\",\"sub_8\":\"rvfdvfdververev\",\"sub_10\":\"dfvsdfverevr\"}', '已批改', 22),
(4, 7, '{\"cho_2\":\"B\",\"cho_32\":\"C\",\"cho_42\":\"B\",\"cho_22\":\"C\",\"cho_52\":\"D\",\"cho_92\":\"B\",\"cho_62\":\"B\",\"cho_72\":\"B\",\"tf_4\":\"T\",\"tf_2\":\"T\",\"tf_10\":\"T\",\"tf_6\":\"T\",\"tf_8\":\"T\",\"sub_2\":\"dscsdcwewfsdf\",\"sub_6\":\"\",\"sub_8\":\"dascaewcaawaef\",\"sub_4\":\"acecwedscsaewf\",\"sub_10\":\"wecwaecwecaewf\"}', '已批改', 36);
-- --------------------------------------------------------
--
-- 表的结构 `status`
--
CREATE TABLE `status` (
`runid` bigint(20) NOT NULL,
`eid` bigint(20) NOT NULL,
`uid` bigint(20) NOT NULL,
`sql2` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`time` datetime NOT NULL,
`status` varchar(300) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `status`
--
INSERT INTO `status` (`runid`, `eid`, `uid`, `sql2`, `time`, `status`) VALUES
(1, 1, 2, 'SELECT SNO,SNAME FROM students WHERE SEX=\'男\' AND HEIGHT>1.80;', '2017-12-08 07:00:00', '回答正确'),
(2, 11, 2, 'delete * from students,sc where sno like \'20153031%\';', '2017-12-10 17:46:20', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(3, 1, 2, 'select * from you;', '2017-12-10 18:51:23', 'SQL语句出错:Table \'dbtest.you\' doesn\'t exist'),
(4, 1, 2, 'select * from students Where height >1.8 and sex = \'男\'', '2017-12-10 18:52:15', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'null\' at line 1'),
(5, 1, 2, 'select * from students where height >1.8 and sex = \'男\'', '2017-12-10 18:54:54', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'null\' at line 1'),
(6, 1, 2, 'select * from students where height >1.8 and sex = \'男\'', '2017-12-10 18:56:13', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'null\' at line 1'),
(7, 1, 2, 'select * from students where height > 1.8 and sex = \'男\'', '2017-12-10 19:01:49', '答案错误,你真笨!'),
(8, 1, 2, 'select sno,sname from students where height > 1.8 and sex = \'男\';', '2017-12-10 19:02:37', '答案正确,你真棒!'),
(9, 11, 2, 'selete * from students,sc where sno like \'20153031%\'', '2017-12-10 19:04:49', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'selete * from students,sc where sno like \'20153031%\'\' at line 1'),
(10, 11, 2, 'delete sc,students from sc join students on sc.sno = students.sno\r\nwhere sc.sno like \'20153031%\';', '2017-12-10 19:05:16', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(11, 11, 2, 'delete sc,students from sc join students on sc.sno = students.sno\r\nwhere sc.sno like \'20153031%\';', '2017-12-10 19:05:21', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(12, 11, 2, 'delete * from sc;', '2017-12-10 19:11:43', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'* from sc\' at line 1'),
(13, 1, 2, 'select * from students;;', '2017-12-10 19:12:06', '答案错误,你真笨!'),
(14, 11, 2, 'delete from sc where 1; ', '2017-12-10 19:12:28', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(15, 11, 2, 'delete from sc where 1;', '2017-12-10 19:21:57', '答案错误,你真笨!'),
(16, 11, 2, 'delete * from students', '2017-12-10 19:23:29', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'* from students\' at line 1'),
(17, 11, 2, 'delete from students where 1', '2017-12-10 19:23:45', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(18, 11, 2, 'delete from students', '2017-12-10 19:27:06', 'SQL语句出错:Cannot delete or update a parent row: a foreign key constraint fails (`dbtest`.`sc`, CONSTRAINT `sc_ibfk_1` FOREIGN KEY (`SNO`) REFERENCES `students` (`SNO`))'),
(19, 11, 2, 'delete from students where 1', '2017-12-10 19:27:20', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(20, 11, 2, 'delete from sc where 1', '2017-12-10 19:36:02', '答案错误,你真笨!'),
(21, 1, 2, 'delete from sc where 1', '2017-12-10 19:36:29', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(22, 11, 2, 'delete from sc where 1', '2017-12-10 19:37:05', '答案错误,你真笨!'),
(23, 11, 2, 'delete from sc where 1', '2017-12-10 19:37:12', '答案错误,你真笨!'),
(24, 11, 2, 'delete sc,students from sc join students on sc.sno = students.sno\r\nwhere sc.sno like \'20153031%\';', '2017-12-10 19:37:38', '答案错误,你真笨!'),
(25, 1, 2, 'delete sc,students from sc join students on sc.sno = students.sno\r\nwhere sc.sno like \'20153031%\';', '2017-12-10 19:38:00', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(26, 11, 2, 'delete sc,students from sc join students on sc.sno = students.sno\r\nwhere sc.sno like \'20153031%\';', '2017-12-10 19:38:08', '答案错误,你真笨!'),
(27, 1, 2, 'select sname,sno from students where height > 1.8 and sex= \'男\'', '2017-12-10 19:43:28', '答案正确,你真棒!'),
(28, 5, 2, 'select * from you', '2017-12-10 19:44:27', 'SQL语句出错:Table \'dbtest.you\' doesn\'t exist'),
(29, 1, 2, 'drop database dbtest', '2017-12-10 19:49:36', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(30, 15, 2, 'insert into courses values(\'C6\',\'操作系统\',\'64\',\'4\',\'秋\')', '2017-12-10 19:56:48', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(31, 15, 2, 'insert into courses values(\'C6\',\'操作系统\',\'64\',\'4\',\'秋\')', '2017-12-10 19:56:54', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(32, 12, 2, 'insert into courses values(\'c6\',\'操作系统\',\'64\',\'4\',\'秋\')', '2017-12-10 20:02:28', 'SQL语句出错:Duplicate entry \'0409101\' for key \'PRIMARY\''),
(33, 15, 2, 'insert into courses values(\'c6\',\'操作系统\',\'64\',\'4\',\'秋\')', '2017-12-10 20:02:41', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(34, 11, 2, 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE SC.SNO LIKE \'20153031%\';', '2017-12-10 20:05:15', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(35, 1, 2, 'select sname, sno from students where sex = \'男\' and height ? 1.8 and 1=1', '2017-12-10 23:23:21', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'? 1.8 and 1=1\' at line 1'),
(36, 1, 2, 'select sname, sno from students where sex = \'男\' and height ? 1.8 and 1\'', '2017-12-10 23:23:43', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'? 1.8 and 1\'\' at line 1'),
(37, 1, 2, 'select sname, sno from students where sex = \'男\' and height > 1.8 and 1=1', '2017-12-10 23:24:16', '答案正确,你真棒!'),
(38, 1, 2, 'select sname, sno from students where sex = \'男\' and height <1.8 and 1=1', '2017-12-10 23:24:31', '答案正确,你真棒!'),
(39, 1, 2, 'select sname, sno from students where sex = \'男\' and height < 1.8 and 1=1', '2017-12-10 23:24:45', '答案正确,你真棒!'),
(40, 1, 2, 'SELECT SNO,SNAME FROM students WHERE 1', '2017-12-10 23:27:00', '答案错误,你真笨!'),
(41, 1, 2, 'SELECT SNO,SNAME FROM students WHERE SEX=\'男\'', '2017-12-10 23:28:06', '答案正确,你真棒!'),
(42, 1, 2, 'select * from students', '2017-12-10 23:30:28', '答案错误,你真笨!'),
(43, 1, 2, 'SELECT SNO,SNAME FROM students WHERE SEX=\'男\' AND HEIGHT>1.80', '2017-12-10 23:30:44', '答案正确,你真棒!'),
(44, 14, 2, 'delete from students,sc where sc.sno=students.sno and height = 1.6', '2017-12-10 23:32:44', 'SQL语句出错:Cannot delete or update a parent row: a foreign key constraint fails (`dbtest1`.`sc`, CONSTRAINT `sc_ibfk_1` FOREIGN KEY (`SNO`) REFERENCES `students` (`SNO`))'),
(45, 1, 2, 'delete from students,sc where sc.sno=students.sno and height = 1.6', '2017-12-10 23:32:59', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(46, 11, 2, '', '2017-12-10 23:35:53', '等待评测'),
(47, 11, 2, '', '2017-12-10 23:35:55', '等待评测'),
(48, 11, 2, '', '2017-12-10 23:36:29', '等待评测'),
(49, 11, 2, '', '2017-12-10 23:36:37', '等待评测'),
(50, 14, 2, '', '2017-12-10 23:37:47', 'SQL语句出错:Can not issue empty query.'),
(51, 14, 2, '', '2017-12-10 23:38:05', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(52, 14, 2, '', '2017-12-10 23:38:07', 'SQL语句出错:Can not issue empty query.'),
(53, 14, 2, '', '2017-12-10 23:38:09', 'SQL语句出错:Can not issue empty query.'),
(54, 14, 2, '', '2017-12-10 23:38:11', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(55, 11, 2, '', '2017-12-10 23:41:00', 'SQL语句出错:Lock wait timeout exceeded; try restarting transaction'),
(56, 1, 2, '', '2017-12-10 23:49:23', 'SQL语句出错:Can not issue empty query.'),
(57, 12, 2, '', '2017-12-10 23:49:31', 'SQL语句出错:No operations allowed after connection closed.'),
(58, 12, 2, '', '2017-12-10 23:49:38', 'SQL语句出错:No operations allowed after connection closed.'),
(59, 11, 2, '', '2017-12-10 23:49:51', 'SQL语句出错:No operations allowed after connection closed.'),
(60, 11, 2, '', '2017-12-10 23:49:59', 'SQL语句出错:No operations allowed after connection closed.'),
(61, 1, 2, '', '2017-12-10 23:51:25', 'SQL语句出错:Can not issue empty query.'),
(62, 11, 2, 'asdfdf', '2017-12-10 23:51:39', 'SQL语句出错:No operations allowed after connection closed.'),
(63, 1, 2, '', '2017-12-10 23:54:16', 'SQL语句出错:Can not issue empty query.'),
(64, 11, 2, '', '2017-12-10 23:54:27', 'SQL语句出错:No operations allowed after connection closed.'),
(65, 1, 2, '', '2017-12-10 23:55:18', 'SQL语句出错:Can not issue empty query.'),
(66, 14, 2, '', '2017-12-10 23:55:27', 'SQL语句出错:No operations allowed after connection closed.'),
(67, 1, 2, '', '2017-12-10 23:57:45', 'SQL语句出错:Can not issue empty query.'),
(68, 11, 2, '', '2017-12-10 23:59:03', 'SQL语句出错:No operations allowed after connection closed.'),
(69, 13, 2, '', '2017-12-11 00:00:15', 'SQL语句出错:Can not issue empty query.'),
(70, 13, 2, 'update courses set grade=3,hours=60 where cno =\'cs-221\'', '2017-12-11 00:01:11', 'SQL语句出错:Unknown column \'grade\' in \'field list\''),
(71, 1, 2, 'update courses set credit=3,hours=60 where cno =\'cs-221\'', '2017-12-11 00:01:46', 'SQL语句出错:Can not issue data manipulation statements with executeQuery().'),
(72, 13, 2, 'update courses set credit=3,hours=60 where cno =\'cs-221\'', '2017-12-11 00:01:57', 'SQL语句出错:Unknown column \'hours\' in \'field list\''),
(73, 13, 2, 'update courses set credit=3,Lhour=60 where cno =\'cs-221\'', '2017-12-11 00:02:24', '答案正确,你真棒!'),
(74, 1, 2, 'select sno,sname from students where sex=\'男\' and height>1.8', '2017-12-11 09:54:56', '答案正确,你真棒!'),
(75, 12, 2, 'fgbdfbfdbf', '2017-12-11 10:01:12', 'SQL语句出错:Duplicate entry \'0409101\' for key \'PRIMARY\''),
(76, 1, 2, 'select * from students', '2017-12-11 15:41:02', '答案错误,你真笨!'),
(77, 11, 2, 'delete from sc;', '2017-12-11 15:43:44', '答案错误,你真笨!'),
(78, 17, 2, 'delete from SC,Students where sex = \'男\';', '2017-12-11 16:34:55', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'where sex = \'男\'\' at line 1'),
(79, 17, 2, 'delete from SC,Students where sex = \'男\';', '2017-12-11 16:36:29', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'where sex = \'男\'\' at line 1'),
(80, 25, 2, 'DELETE SC,Students FROM SC JOIN Students ON SC.SNO = Students.SNO\r\nWHERE students.sex=\'女\';', '2017-12-11 16:36:44', '答案正确,你真棒!'),
(81, 25, 2, 'DELETE SC,Students FROM SC,Students\r\nWHERE students.sex=\'女\';', '2017-12-11 16:38:50', '答案错误,你真笨!'),
(82, 1, 5, 'select * from students', '2017-12-11 17:01:24', '答案错误,你真笨!'),
(83, 1, 2, 'select sno, sname from students where height > 1.8 and sex = \'男\';', '2017-12-20 18:20:37', '答案正确,你真棒!'),
(84, 17, 5, 'a', '2017-12-20 18:26:01', 'SQL语句出错:You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near \'a\' at line 1'),
(85, 22, 2, 'update students set `sex` =\'女\' where sname like \'张*\'', '2018-01-18 03:28:25', '答案错误,你真笨!'),
(86, 22, 2, 'update students set sex=\'女\'\r\nwhere sname like \'张%\';', '2018-01-18 03:29:01', '答案正确,你真棒!');
-- --------------------------------------------------------
--
-- 表的结构 `student`
--
CREATE TABLE `student` (
`id` bigint(20) NOT NULL,
`account` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`name` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`password` char(40) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`classid` bigint(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `student`
--
INSERT INTO `student` (`id`, `account`, `name`, `password`, `classid`) VALUES
(2, 'zal', '张爱玲', 'VQQ3hkE+cjZBYZQtG/noNg==', 1),
(3, 'gyq', '高雨晴', '4QrcOUm6Wau+VuBX8g+IPg==', 6),
(4, 'zcl', '郑春玲', '4QrcOUm6Wau+VuBX8g+IPg==', 4),
(5, 'ln', '黎宁', '4QrcOUm6Wau+VuBX8g+IPg==', 5),
(6, 'laq', '林安琪', '4QrcOUm6Wau+VuBX8g+IPg==', 2),
(8, 'wff', '魏凤凤', '4QrcOUm6Wau+VuBX8g+IPg==', 3);
-- --------------------------------------------------------
--
-- 表的结构 `subdba`
--
CREATE TABLE `subdba` (
`id` bigint(20) NOT NULL,
`question` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`refanswer` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`secrecy` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `subdba`
--
INSERT INTO `subdba` (`id`, `question`, `refanswer`, `secrecy`) VALUES
(1, '数据与信息有何区别,有何联系?', '答:数据是一组对客观事物定性或定量描述的原始物理符号的集合,包括文本、图形\r\n、图像、声音等形式,也是数据库存储和加工的基本对象。信息是一种已经被加工为\r\n特定形式的数据,是对现实世界事物存在方式或运动状态的反映。\r\n', 0),
(2, '简述数据库、数据库管理系统、数据库系统的概念。\r\n\r\n', '答:数据库:简单理解就是数据的仓库,长期存储可共享,冗余小,独立性高的数据\r\n 的集合。\r\n 数据库管理系统:用来操纵和管理数据库的软件,介于用户和操作系统之间,对\r\n 数据库进行统一的管理和控制。\r\n 数据库系统:数据库系统是数据库应用系统的简称,是计算机系统引入数据库之\r\n 后的系统,由计算机、数据库、数据库管理系统、应用程序和用户组成。\r\n', 0),
(3, '数据库管理技术经历了哪几个阶段?各阶段主要特点是什么?', '答:人工管理阶段:\r\n 1.数据不能长期保存;2.系统没有专用的软件对数据进行管理;3.程序与数\r\n 据不具有独立性;4.数据无法共享。\r\n 文件系统阶段:\r\n 1.数据可以长期保存;2.程序与数据有一定的独立性;3.文件系统对数据进\r\n 行统一管理,文件形式多种多样;\r\n 4.数据冗余度大;5数据独立性低。\r\n 数据库系统阶段:\r\n 1.数据整体结构化;2.数据共享性高,冗余度高,易扩展;3.数据独立性高;\r\n 4.数据由数据库管理系统统一管理。\r\n', 0),
(4, '文件系统与数据库系统有什么本质的区别?', '答:数据库系统是将所有应用程序需要的数据按照统一的结构集成在一起,即数据\r\n的结构化。\r\n\r\n', 0),
(5, '数据模型的组成要素有哪些,并详细阐述他们的含义:', '数据结构:描述数据库的组成对象,以及对象之间的联系。数据操作:对数据库中各种对象(型)的实例(值)允许执\r\n行的操作及有关的操作规则。完整性约束:反映和规定必须遵守的基本的通用的完整性约束条件。', 0),
(6, '常用的数据模型有:', '传统数据模型有层次模型,网状模型;关系模型(Relational Model);对象关系模型(Object Relational Model);面向对象模型(Object Oriented Model);半 结 构 化 数 据 模 型 ( Semistruture Data\r\nModel)', 0),
(7, '数据库设计一般分为哪几个阶段,每个阶段的主要任务是什么?', '(1)数据库设计分为6个阶段:需求分析、概念结构设计、逻辑结构设计、物理结构设计、数据库实施、数据库运行和维护。\r\n(2)各阶段任务如下:①需求分析:准确了解与分析用户需求(包括数据与处理)。②概念结构设计:通过对用户需求进行综合、归纳与抽象,形成一个独立于具体 DBMS 的概念模型。③逻辑结构设计:将概念结构转换为某个 DBMS 所支持的数据模型,并对其进行优化。④数据库物理设计:为逻辑数据模型选取一个最适合应用环境的物理结构(包括存储结构和存取方法)。⑤数据库实施:设计人员运用 DBMS 提供的数据语言、工具及宿主语言,根据逻辑设计和物理设计的结果建立数据库,编制与调试应用程序,组织数据入库,并进行试运行。 ⑥数据库运行和维护:在数据库系统运行过程中对其进行评价、调整与修改。\r\n', 0),
(8, '什么是事务,事务有哪些特性?', '答:事务是DBMS的基本工作单位,它是用户定义的一组逻辑一致的程序序列。它是一个不可分割的工作单位,其中包含的所有操作,要么都执行,要么都不执行。\r\n事务具有4 个特性:原子性(Atomicity )、一致性(consistency )、隔离性( Isolation )和持续性(Durability )。这4 个特性也简称为ACID 特性。\r\n原子性:事务是数据库的逻辑工作单位,事务中包括的诸操作要么都做,要么都不做。\r\n一致性:事务执行的结果必须是使数据库从一个一致性状态变到另一个一致性状态。\r\n隔离性:一个事务的执行不能被其他事务干扰。即一个事务内部的操作及使用的数据 对其他并发事务是隔离的,并发执行的各个事务之间不能互相干扰。持续性:持续性也称永久性(Perfnanence ) ,指一个事务一旦提交,它对数据库中数据的改变就应该是永久性的。接下来的其他操作或故障不应该对其执行结果有任何影响。\r\n', 0),
(9, '事务中的提交和回滚是什么意思?', '答:事务中的提交(COMMIT)是提交事务的所有操作。具体说就是将事务中所有对数据库的更新写回到磁盘上的物理数据库中去,事务正常结束。事务中的回滚(ROLLBACK)是数据库滚回到事务开始时的状态。具体地说就是,在事务运行的过程中发生了某种故障,事务不能继续执行,系统将事务中对数据库的所有已完成的更新操作全部撤消,使数据库回滚到事务开始时的状态。', 0),
(10, '为什么要设立日志文件?', '答:设立日志文件的目的,是为了记录对数据库中数据的每一次更新操作。从而DBMS可以根据日志文件进行事务故障的恢复和系统故障的恢复,并可结合后援副本进行介质故障的恢复。', 0);
-- --------------------------------------------------------
--
-- 表的结构 `teacher`
--
CREATE TABLE `teacher` (
`id` bigint(20) NOT NULL,
`account` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`name` char(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`password` char(40) COLLATE utf8mb4_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
--
-- 转存表中的数据 `teacher`
--
INSERT INTO `teacher` (`id`, `account`, `name`, `password`) VALUES
(1, 'dsl2015', '董守玲', 'V/YuCFz98gs54S3osZkxEg=='),
(2, 'zjw2015', '张见威', '4QrcOUm6Wau+VuBX8g+IPg=='),
(3, 'dsb2015', '董守斌', '9PYXLrJlgZUqcNcZm/0t2w=='),
(5, 'zs', '张三', '123456'),
(6, 'ls', '李四', '123456'),
(7, 'wu', '王五', '123456'),
(8, '123', '顺', '123456');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `choicedba`
--
ALTER TABLE `choicedba`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `class`
--
ALTER TABLE `class`
ADD PRIMARY KEY (`classid`),
ADD KEY `teacher_id` (`tid`);
--
-- Indexes for table `evadba`
--
ALTER TABLE `evadba`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `judgedba`
--
ALTER TABLE `judgedba`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `paper`
--
ALTER TABLE `paper`
ADD PRIMARY KEY (`id`),
ADD KEY `tid` (`tid`),
ADD KEY `classid` (`classid`);
--
-- Indexes for table `record`
--
ALTER TABLE `record`
ADD PRIMARY KEY (`pid`,`sid`),
ADD KEY `sid` (`sid`);
--
-- Indexes for table `status`
--
ALTER TABLE `status`
ADD PRIMARY KEY (`runid`),
ADD KEY `pid` (`eid`),
ADD KEY `status_ibfk_1` (`uid`);
--
-- Indexes for table `student`
--
ALTER TABLE `student`
ADD PRIMARY KEY (`id`),
ADD KEY `classid` (`classid`);
--
-- Indexes for table `subdba`
--
ALTER TABLE `subdba`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `teacher`
--
ALTER TABLE `teacher`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `account` (`account`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `admin`
--
ALTER TABLE `admin`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- 使用表AUTO_INCREMENT `choicedba`
--
ALTER TABLE `choicedba`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=103;
--
-- 使用表AUTO_INCREMENT `class`
--
ALTER TABLE `class`
MODIFY `classid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- 使用表AUTO_INCREMENT `evadba`
--
ALTER TABLE `evadba`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- 使用表AUTO_INCREMENT `judgedba`
--
ALTER TABLE `judgedba`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- 使用表AUTO_INCREMENT `paper`
--
ALTER TABLE `paper`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- 使用表AUTO_INCREMENT `status`
--
ALTER TABLE `status`
MODIFY `runid` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;
--
-- 使用表AUTO_INCREMENT `student`
--
ALTER TABLE `student`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- 使用表AUTO_INCREMENT `subdba`
--
ALTER TABLE `subdba`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- 使用表AUTO_INCREMENT `teacher`
--
ALTER TABLE `teacher`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
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 */;
|
-- original: spellfix.test
-- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test
CREATE VIRTUAL TABLE t1 USING spellfix1
;INSERT INTO t1(word) VALUES(sub_word)
;CREATE TABLE vocab(w TEXT PRIMARY KEY);
INSERT INTO vocab SELECT word FROM t1
;SELECT next_char('re','vocab','w')
;SELECT next_char('re','(SELECT w AS x FROM vocab)','x')
;SELECT next_char('r','vocab','w')
;SELECT next_char('','vocab','w')
;CREATE TABLE vocab2(w TEXT);
CREATE INDEX vocab2w ON vocab2(w COLLATE nocase);
INSERT INTO vocab2 VALUES('abc'), ('ABD'), ('aBe'), ('AbF');
SELECT next_char('ab', 'vocab2', 'w', null, 'nocase')
;SELECT next_char('ab','vocab2','w',null,null)
;SELECT next_char('AB','vocab2','w',null,'NOCASE')
;SELECT next_char('ab','vocab2','w',null,'binary')
;SELECT rowid FROM t1 WHERE word='rabbit'
;UPDATE t1 SET rowid=2000 WHERE word='rabbit';
SELECT rowid FROM t1 WHERE word='rabbit'
;INSERT INTO t1(rowid, word) VALUES(3000,'melody');
SELECT rowid, word, matchlen FROM t1 WHERE word MATCH 'melotti'
ORDER BY score LIMIT 3
;CREATE VIRTUAL TABLE t2 USING spellfix1;
INSERT INTO t2 (word, soundslike) VALUES('school', 'skuul');
INSERT INTO t2 (word, soundslike) VALUES('psalm', 'sarm');
SELECT word, matchlen FROM t2 WHERE word MATCH 'sar*' LIMIT 5
;SELECT word, matchlen FROM t2 WHERE word MATCH 'skol*' LIMIT 5
;CREATE TABLE costs(iLang, cFrom, cTo, iCost);
INSERT INTO costs VALUES(0, 'a', 'e', 1);
INSERT INTO costs VALUES(0, 'e', 'i', 1);
INSERT INTO costs VALUES(0, 'i', 'o', 1);
INSERT INTO costs VALUES(0, 'o', 'u', 1);
INSERT INTO costs VALUES(0, 'u', 'a', 1);
CREATE VIRTUAL TABLE t3 USING spellfix1(edit_cost_table=costs)
;INSERT INTO t3(word) VALUES(sub_w)
;INSERT INTO t3(command) VALUES('edit_cost_table=NULL')
;CREATE TABLE costs2(iLang, cFrom, cTo, iCost);
INSERT INTO costs2 VALUES(0, 'a', 'o', 1);
INSERT INTO costs2 VALUES(0, 'e', 'o', 4);
INSERT INTO costs2 VALUES(0, 'i', 'o', 8);
INSERT INTO costs2 VALUES(0, 'u', 'o', 16);
INSERT INTO t3(command) VALUES('edit_cost_table="costs2"')
;SELECT word FROM t3 WHERE rowid = 10
;SELECT word, distance FROM t3 WHERE rowid = 10
;SELECT word, distance FROM t3 WHERE rowid = 10 AND word MATCH 'kiiner'
;CREATE VIRTUAL TABLE t4 USING spellfix1;
PRAGMA table_info = t4
;INSERT INTO t4(rowid, word) VALUES(1, 'Archilles');
INSERT INTO t4(rowid, word) VALUES(2, 'Pluto');
INSERT INTO t4(rowid, word) VALUES(3, 'Atrides');
INSERT OR REPLACE INTO t4(rowid, word) VALUES(2, 'Apollo');
SELECT rowid, word FROM t4
;INSERT OR IGNORE INTO t4(rowid, word) VALUES(3, 'Zeus');
SELECT rowid, word FROM t4
;UPDATE OR REPLACE t4 SET rowid=3 WHERE rowid=1;
SELECT rowid, word FROM t4
;UPDATE OR IGNORE t4 SET rowid=3 WHERE rowid=2;
SELECT rowid, word FROM t4
;DELETE FROM t4;
INSERT INTO t4(rowid, word) VALUES(10, 'Agamemnon');
INSERT INTO t4(rowid, word) VALUES(20, 'Patroclus');
INSERT INTO t4(rowid, word) VALUES(30, 'Chryses');
CREATE TABLE t5(i, w);
INSERT INTO t5 VALUES(5, 'Poseidon');
INSERT INTO t5 VALUES(20, 'Chronos');
INSERT INTO t5 VALUES(30, 'Hera'); |
<filename>FhirToDataLake/scripts/sql/Resources/CoverageEligibilityResponse.sql<gh_stars>10-100
CREATE EXTERNAL TABLE [fhir].[CoverageEligibilityResponse] (
[resourceType] NVARCHAR(4000),
[id] VARCHAR(64),
[meta.id] NVARCHAR(4000),
[meta.extension] NVARCHAR(MAX),
[meta.versionId] VARCHAR(64),
[meta.lastUpdated] VARCHAR(30),
[meta.source] VARCHAR(256),
[meta.profile] VARCHAR(MAX),
[meta.security] VARCHAR(MAX),
[meta.tag] VARCHAR(MAX),
[implicitRules] VARCHAR(256),
[language] NVARCHAR(4000),
[text.id] NVARCHAR(4000),
[text.extension] NVARCHAR(MAX),
[text.status] NVARCHAR(64),
[text.div] NVARCHAR(MAX),
[extension] NVARCHAR(MAX),
[modifierExtension] NVARCHAR(MAX),
[identifier] VARCHAR(MAX),
[status] NVARCHAR(4000),
[purpose] VARCHAR(MAX),
[patient.id] NVARCHAR(4000),
[patient.extension] NVARCHAR(MAX),
[patient.reference] NVARCHAR(4000),
[patient.type] VARCHAR(256),
[patient.identifier.id] NVARCHAR(4000),
[patient.identifier.extension] NVARCHAR(MAX),
[patient.identifier.use] NVARCHAR(64),
[patient.identifier.type] NVARCHAR(MAX),
[patient.identifier.system] VARCHAR(256),
[patient.identifier.value] NVARCHAR(4000),
[patient.identifier.period] NVARCHAR(MAX),
[patient.identifier.assigner] NVARCHAR(MAX),
[patient.display] NVARCHAR(4000),
[created] VARCHAR(30),
[requestor.id] NVARCHAR(4000),
[requestor.extension] NVARCHAR(MAX),
[requestor.reference] NVARCHAR(4000),
[requestor.type] VARCHAR(256),
[requestor.identifier.id] NVARCHAR(4000),
[requestor.identifier.extension] NVARCHAR(MAX),
[requestor.identifier.use] NVARCHAR(64),
[requestor.identifier.type] NVARCHAR(MAX),
[requestor.identifier.system] VARCHAR(256),
[requestor.identifier.value] NVARCHAR(4000),
[requestor.identifier.period] NVARCHAR(MAX),
[requestor.identifier.assigner] NVARCHAR(MAX),
[requestor.display] NVARCHAR(4000),
[request.id] NVARCHAR(4000),
[request.extension] NVARCHAR(MAX),
[request.reference] NVARCHAR(4000),
[request.type] VARCHAR(256),
[request.identifier.id] NVARCHAR(4000),
[request.identifier.extension] NVARCHAR(MAX),
[request.identifier.use] NVARCHAR(64),
[request.identifier.type] NVARCHAR(MAX),
[request.identifier.system] VARCHAR(256),
[request.identifier.value] NVARCHAR(4000),
[request.identifier.period] NVARCHAR(MAX),
[request.identifier.assigner] NVARCHAR(MAX),
[request.display] NVARCHAR(4000),
[outcome] NVARCHAR(64),
[disposition] NVARCHAR(4000),
[insurer.id] NVARCHAR(4000),
[insurer.extension] NVARCHAR(MAX),
[insurer.reference] NVARCHAR(4000),
[insurer.type] VARCHAR(256),
[insurer.identifier.id] NVARCHAR(4000),
[insurer.identifier.extension] NVARCHAR(MAX),
[insurer.identifier.use] NVARCHAR(64),
[insurer.identifier.type] NVARCHAR(MAX),
[insurer.identifier.system] VARCHAR(256),
[insurer.identifier.value] NVARCHAR(4000),
[insurer.identifier.period] NVARCHAR(MAX),
[insurer.identifier.assigner] NVARCHAR(MAX),
[insurer.display] NVARCHAR(4000),
[insurance] VARCHAR(MAX),
[preAuthRef] NVARCHAR(4000),
[form.id] NVARCHAR(4000),
[form.extension] NVARCHAR(MAX),
[form.coding] VARCHAR(MAX),
[form.text] NVARCHAR(4000),
[error] VARCHAR(MAX),
[serviced.date] VARCHAR(10),
[serviced.period.id] NVARCHAR(4000),
[serviced.period.extension] NVARCHAR(MAX),
[serviced.period.start] VARCHAR(30),
[serviced.period.end] VARCHAR(30),
) WITH (
LOCATION='/CoverageEligibilityResponse/**',
DATA_SOURCE = ParquetSource,
FILE_FORMAT = ParquetFormat
);
GO
CREATE VIEW fhir.CoverageEligibilityResponseIdentifier AS
SELECT
[id],
[identifier.JSON],
[identifier.id],
[identifier.extension],
[identifier.use],
[identifier.type.id],
[identifier.type.extension],
[identifier.type.coding],
[identifier.type.text],
[identifier.system],
[identifier.value],
[identifier.period.id],
[identifier.period.extension],
[identifier.period.start],
[identifier.period.end],
[identifier.assigner.id],
[identifier.assigner.extension],
[identifier.assigner.reference],
[identifier.assigner.type],
[identifier.assigner.identifier],
[identifier.assigner.display]
FROM openrowset (
BULK 'CoverageEligibilityResponse/**',
DATA_SOURCE = 'ParquetSource',
FORMAT = 'PARQUET'
) WITH (
[id] VARCHAR(64),
[identifier.JSON] VARCHAR(MAX) '$.identifier'
) AS rowset
CROSS APPLY openjson (rowset.[identifier.JSON]) with (
[identifier.id] NVARCHAR(4000) '$.id',
[identifier.extension] NVARCHAR(MAX) '$.extension',
[identifier.use] NVARCHAR(64) '$.use',
[identifier.type.id] NVARCHAR(4000) '$.type.id',
[identifier.type.extension] NVARCHAR(MAX) '$.type.extension',
[identifier.type.coding] NVARCHAR(MAX) '$.type.coding',
[identifier.type.text] NVARCHAR(4000) '$.type.text',
[identifier.system] VARCHAR(256) '$.system',
[identifier.value] NVARCHAR(4000) '$.value',
[identifier.period.id] NVARCHAR(4000) '$.period.id',
[identifier.period.extension] NVARCHAR(MAX) '$.period.extension',
[identifier.period.start] VARCHAR(30) '$.period.start',
[identifier.period.end] VARCHAR(30) '$.period.end',
[identifier.assigner.id] NVARCHAR(4000) '$.assigner.id',
[identifier.assigner.extension] NVARCHAR(MAX) '$.assigner.extension',
[identifier.assigner.reference] NVARCHAR(4000) '$.assigner.reference',
[identifier.assigner.type] VARCHAR(256) '$.assigner.type',
[identifier.assigner.identifier] NVARCHAR(MAX) '$.assigner.identifier',
[identifier.assigner.display] NVARCHAR(4000) '$.assigner.display'
) j
GO
CREATE VIEW fhir.CoverageEligibilityResponsePurpose AS
SELECT
[id],
[purpose.JSON],
[purpose]
FROM openrowset (
BULK 'CoverageEligibilityResponse/**',
DATA_SOURCE = 'ParquetSource',
FORMAT = 'PARQUET'
) WITH (
[id] VARCHAR(64),
[purpose.JSON] VARCHAR(MAX) '$.purpose'
) AS rowset
CROSS APPLY openjson (rowset.[purpose.JSON]) with (
[purpose] NVARCHAR(MAX) '$'
) j
GO
CREATE VIEW fhir.CoverageEligibilityResponseInsurance AS
SELECT
[id],
[insurance.JSON],
[insurance.id],
[insurance.extension],
[insurance.modifierExtension],
[insurance.coverage.id],
[insurance.coverage.extension],
[insurance.coverage.reference],
[insurance.coverage.type],
[insurance.coverage.identifier],
[insurance.coverage.display],
[insurance.inforce],
[insurance.benefitPeriod.id],
[insurance.benefitPeriod.extension],
[insurance.benefitPeriod.start],
[insurance.benefitPeriod.end],
[insurance.item]
FROM openrowset (
BULK 'CoverageEligibilityResponse/**',
DATA_SOURCE = 'ParquetSource',
FORMAT = 'PARQUET'
) WITH (
[id] VARCHAR(64),
[insurance.JSON] VARCHAR(MAX) '$.insurance'
) AS rowset
CROSS APPLY openjson (rowset.[insurance.JSON]) with (
[insurance.id] NVARCHAR(4000) '$.id',
[insurance.extension] NVARCHAR(MAX) '$.extension',
[insurance.modifierExtension] NVARCHAR(MAX) '$.modifierExtension',
[insurance.coverage.id] NVARCHAR(4000) '$.coverage.id',
[insurance.coverage.extension] NVARCHAR(MAX) '$.coverage.extension',
[insurance.coverage.reference] NVARCHAR(4000) '$.coverage.reference',
[insurance.coverage.type] VARCHAR(256) '$.coverage.type',
[insurance.coverage.identifier] NVARCHAR(MAX) '$.coverage.identifier',
[insurance.coverage.display] NVARCHAR(4000) '$.coverage.display',
[insurance.inforce] bit '$.inforce',
[insurance.benefitPeriod.id] NVARCHAR(4000) '$.benefitPeriod.id',
[insurance.benefitPeriod.extension] NVARCHAR(MAX) '$.benefitPeriod.extension',
[insurance.benefitPeriod.start] VARCHAR(30) '$.benefitPeriod.start',
[insurance.benefitPeriod.end] VARCHAR(30) '$.benefitPeriod.end',
[insurance.item] NVARCHAR(MAX) '$.item' AS JSON
) j
GO
CREATE VIEW fhir.CoverageEligibilityResponseError AS
SELECT
[id],
[error.JSON],
[error.id],
[error.extension],
[error.modifierExtension],
[error.code.id],
[error.code.extension],
[error.code.coding],
[error.code.text]
FROM openrowset (
BULK 'CoverageEligibilityResponse/**',
DATA_SOURCE = 'ParquetSource',
FORMAT = 'PARQUET'
) WITH (
[id] VARCHAR(64),
[error.JSON] VARCHAR(MAX) '$.error'
) AS rowset
CROSS APPLY openjson (rowset.[error.JSON]) with (
[error.id] NVARCHAR(4000) '$.id',
[error.extension] NVARCHAR(MAX) '$.extension',
[error.modifierExtension] NVARCHAR(MAX) '$.modifierExtension',
[error.code.id] NVARCHAR(4000) '$.code.id',
[error.code.extension] NVARCHAR(MAX) '$.code.extension',
[error.code.coding] NVARCHAR(MAX) '$.code.coding',
[error.code.text] NVARCHAR(4000) '$.code.text'
) j
|
-- 三张表
DROP TABLE IF EXISTS `province`;
CREATE TABLE IF NOT EXISTS `province` (
`id` tinyint(3) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(30) NOT NULL DEFAULT '' COMMENT '省份名称',
`province_code` mediumint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '省份代码',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='省份表';
DROP TABLE IF EXISTS `city`;
CREATE TABLE IF NOT EXISTS `city` (
`id` smallint(4) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(60) NOT NULL DEFAULT '' COMMENT '城市名称',
`city_code` mediumint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '城市代码',
`province_code` mediumint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '省份代码',
PRIMARY KEY (`id`),
KEY `province_code` (`province_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='城市表';
DROP TABLE IF EXISTS `area`;
CREATE TABLE IF NOT EXISTS `area` (
`id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(60) NOT NULL DEFAULT '' COMMENT '区域名称',
`area_code` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '区域代码',
`city_code` mediumint(6) UNSIGNED NOT NULL DEFAULT 0 COMMENT '城市代码',
PRIMARY KEY (`id`),
KEY `city_code` (`city_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='区域表';
|
<gh_stars>100-1000
-- +migrate Up
ALTER TABLE "short_link"
ADD COLUMN "og_title" VARCHAR(200),
ADD COLUMN "og_description" VARCHAR(200),
ADD COLUMN "og_image_url" VARCHAR(200),
ADD COLUMN "twitter_title" VARCHAR(200),
ADD COLUMN "twitter_description" VARCHAR(200),
ADD COLUMN "twitter_image_url" VARCHAR(200);
-- +migrate Down
ALTER TABLE "short_link"
DROP COLUMN "og_title",
DROP COLUMN "og_description",
DROP COLUMN "og_image_url",
DROP COLUMN "twitter_title",
DROP COLUMN "twitter_description",
DROP COLUMN "twitter_image_url";
|
<gh_stars>1000+
CREATE TABLE bar (ready bool not null);
-- name: CTEFilter :many
WITH filter_count AS (
SELECT count(*) FROM bar WHERE ready = $1
)
SELECT filter_count.count
FROM filter_count;
|
USE homework_db;
INSERT INTO department
(department_name);
VALUES
("DevTeam"),
("HR"),
("Finance");
INSERT INTO role
(title, salary, department_id)
VALUES
("Senior Dev", 100000, 1),
("Team lead", 85000, 1),
("HR person", 110000, 2),
("Engineer", 120000, 1),
("CPA", 75000, 3);
INSERT INTO employee
(first_name, last_name, role_id, is_manager)
VALUES
("Cranjus", "McBasketball", 2, 0),
("Dill", "Funk", 4, 1),
("Rickyticky", "Bobbywobbie", 1, 1),
("Count", "Ravioli", 2, 1),
("Denzel", "Washingmachine", 4, 0),
("Beefy", "McWhatnow", 2, 1); |
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET search_path = ecmdb, pg_catalog;
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('001', '010', 'TORINO', 'TO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('002', '010', 'VERCELLI', 'VC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('003', '010', 'NOVARA', 'NO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('004', '010', 'CUNEO', 'CN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('005', '010', 'ASTI', 'AT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('006', '010', 'ALESSANDRIA', 'AL');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('096', '010', 'BIELLA', 'BI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('103', '010', 'VERBANO-CUSIO-OSSOLA', 'VB');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('007', '020', 'VALLE D''AOSTA', 'AO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('012', '030', 'VARESE', 'VA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('013', '030', 'COMO', 'CO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('014', '030', 'SONDRIO', 'SO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('015', '030', 'MILANO', 'MI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('016', '030', 'BERGAMO', 'BG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('017', '030', 'BRESCIA', 'BS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('018', '030', 'PAVIA', 'PV');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('019', '030', 'CREMONA', 'CR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('020', '030', 'MANTOVA', 'MN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('097', '030', 'LECCO', 'LC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('098', '030', 'LODI', 'LO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('108', '030', 'MONZA E DELLA BRIANZA', 'MB');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('021', '041', 'BOLZANO', 'BZ');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('022', '042', 'TRENTO', 'TN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('023', '050', 'VERONA', 'VR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('024', '050', 'VICENZA', 'VI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('025', '050', 'BELLUNO', 'BL');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('026', '050', 'TREVISO', 'TV');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('027', '050', 'VENEZIA', 'VE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('028', '050', 'PADOVA', 'PD');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('029', '050', 'ROVIGO', 'RO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('030', '060', 'UDINE', 'UD');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('031', '060', 'GORIZIA', 'GO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('032', '060', 'TRIESTE', 'TS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('093', '060', 'PORDENONE', 'PN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('008', '070', 'IMPERIA', 'IM');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('009', '070', 'SAVONA', 'SV');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('010', '070', 'GENOVA', 'GE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('011', '070', 'LA SPEZIA', 'SP');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('033', '080', 'PIACENZA', 'PC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('034', '080', 'PARMA', 'PR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('035', '080', 'REGGIO NELL''EMILIA', 'RE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('036', '080', 'MODENA', 'MO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('037', '080', 'BOLOGNA', 'BO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('038', '080', 'FERRARA', 'FE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('039', '080', 'RAVENNA', 'RA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('040', '080', 'FORLÌ-CESENA', 'FC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('099', '080', 'RIMINI', 'RN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('045', '090', 'MASSA-CARRARA', 'MS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('046', '090', 'LUCCA', 'LU');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('047', '090', 'PISTOIA', 'PT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('048', '090', 'FIRENZE', 'FI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('049', '090', 'LIVORNO', 'LI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('050', '090', 'PISA', 'PI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('051', '090', 'AREZZO', 'AR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('052', '090', 'SIENA', 'SI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('053', '090', 'GROSSETO', 'GR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('100', '090', 'PRATO', 'PO');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('054', '100', 'PERUGIA', 'PG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('055', '100', 'TERNI', 'TR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('041', '110', 'PESARO E URBINO', 'PU');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('042', '110', 'ANCONA', 'AN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('043', '110', 'MACERATA', 'MC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('044', '110', 'ASCOLI PICENO', 'AP');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('109', '110', 'FERMO', 'FM');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('056', '120', 'VITERBO', 'VT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('057', '120', 'RIETI', 'RI');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('058', '120', 'ROMA', 'RM');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('059', '120', 'LATINA', 'LT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('060', '120', 'FROSINONE', 'FR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('066', '130', 'L''AQUILA', 'AQ');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('067', '130', 'TERAMO', 'TE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('068', '130', 'PESCARA', 'PE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('069', '130', 'CHIETI', 'CH');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('070', '140', 'CAMPOBASSO', 'CB');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('094', '140', 'ISERNIA', 'IS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('061', '150', 'CASERTA', 'CE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('062', '150', 'BENEVENTO', 'BN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('063', '150', 'NAPOLI', 'NA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('064', '150', 'AVELLINO', 'AV');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('065', '150', 'SALERNO', 'SA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('071', '160', 'FOGGIA', 'FG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('072', '160', 'BARI', 'BA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('073', '160', 'TARANTO', 'TA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('074', '160', 'BRINDISI', 'BR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('075', '160', 'LECCE', 'LE');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('110', '160', 'BARLETTA-ANDRIA-TRANI', 'BT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('076', '170', 'POTENZA', 'PZ');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('077', '170', 'MATERA', 'MT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('078', '180', 'COSENZA', 'CS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('079', '180', 'CATANZARO', 'CZ');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('080', '180', 'REGGIO DI CALABRIA', 'RC');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('101', '180', 'CROTONE', 'KR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('102', '180', 'VIBO VALENTIA', 'VV');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('081', '190', 'TRAPANI', 'TP');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('082', '190', 'PALERMO', 'PA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('083', '190', 'MESSINA', 'ME');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('084', '190', 'AGRIGENTO', 'AG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('085', '190', 'CALTANISSETTA', 'CL');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('086', '190', 'ENNA', 'EN');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('087', '190', 'CATANIA', 'CT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('088', '190', 'RAGUSA', 'RG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('089', '190', 'SIRACUSA', 'SR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('090', '200', 'SASSARI', 'SS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('091', '200', 'NUORO', 'NU');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('092', '200', 'CAGLIARI', 'CA');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('095', '200', 'ORISTANO', 'OR');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('104', '200', 'OLBIA-TEMPIO', 'OT');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('105', '200', 'OGLIASTRA', 'OG');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('106', '200', 'MEDIO CAMPIDANO', 'VS');
INSERT INTO province (codice_provincia, codice_regione, nome, sigla) VALUES ('107', '200', 'CARBONIA-IGLESIAS', 'CI');
|
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspSearchEntityNetworkNetwork')
AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE uspSearchEntityNetworkNetwork
GO
/* uspSearchEntityNetworkNetwork
*
* Advanced Search, in network, with optional filters and including the Network Connections information
*
*
*/
CREATE PROCEDURE uspSearchEntityNetworkNetwork
@bntEntityIdent BIGINT,
@bntASUserIdent BIGINT,
@nvrKeyword NVARCHAR(MAX),
@nvrLocation NVARCHAR(MAX),
@decLatitude DECIMAL(20,8) = 0.0,
@decLongitude DECIMAL(20,8) = 0.0,
@intDistanceInMiles INT,
@bntResultsShown BIGINT,
@bitFullProjectExport BIT,
@bntAddEntityProjectIdent BIGINT,
@tblFilters [EntitySearchFilterTable] READONLY
AS
--Time tracking
DECLARE @StartTime datetime
DECLARE @EndTime datetime
SELECT @StartTime=GETDATE()
DECLARE @intMainEntityNodeValue INT
DECLARE @intFirstTierSearchResultsNodeValue INT
DECLARE @intFirstTierConnectionNodeValue INT
DECLARE @intSecondGeneralTierNodeValue INT
DECLARE @intThirdTierNodeValue INT
SET @intMainEntityNodeValue = 6
SET @intFirstTierSearchResultsNodeValue = 4
SET @intFirstTierConnectionNodeValue = 3
SET @intSecondGeneralTierNodeValue = 2
SET @intThirdTierNodeValue = 1
DECLARE @intCommunityEdgeValue INT
DECLARE @intNetworkEdgeValue INT
DECLARE @bntResultCount BIGINT
SET @intCommunityEdgeValue = 5
SET @intNetworkEdgeValue = 7
SET @bntResultCount = 0
DECLARE @bntSearchResults BIGINT
CREATE TABLE #tmpEntityResults(
EntityIdent BIGINT,
DisplayName NVARCHAR(MAX),
Person BIT,
Distance DECIMAL(5,1),
SearchResults BIGINT,
EntitySearchHistoryIdent BIGINT
)
INSERT INTO #tmpEntityResults(
EntityIdent,
DisplayName,
Person,
Distance,
SearchResults,
EntitySearchHistoryIdent
)
EXEC uspEntitySearchOutput @bntEntityIdent, @bntASUserIdent, @nvrKeyword, @nvrLocation, @decLatitude, @decLongitude, @intDistanceInMiles, 0, @tblFilters
SELECT TOP 1
@bntSearchResults = SearchResults
FROM
#tmpEntityResults WITH (NOLOCK)
SELECT
@bntSearchResults AS [TotalResults],
@bntResultsShown AS [ResultsShown]
ALTER TABLE #tmpEntityResults
ADD EntityTypeIdent BIGINT
UPDATE tE
SET EntityTypeIdent = E.EntityTypeIdent
FROM
#tmpEntityResults tE
INNER JOIN
Entity E (NOLOCK)
ON tE.EntityIdent = E.Ident
CREATE TABLE #tmpNodes (
Ident BIGINT Identity (1,1) NOT NULL,
EntityIdent BIGINT,
DisplayName NVARCHAR(MAX), -- tooltip
GroupIdent BIGINT,
GroupName NVARCHAR(MAX), -- this will make the bubble color
NodeValue INT, --This will make the size of the bubble
IsInNetwork BIT,
IncludeInCNP BIT
)
CREATE TABLE #tmpEdges (
Ident BIGINT Identity (1,1) NOT NULL,
SourceEntityIdent BIGINT,
TargetEntityIdent BIGINT,
DisplayName NVARCHAR(MAX), --tooltip
EdgeValue NVARCHAR(MAX), --Length
EdgeType NVARCHAR(MAX) --color/stroke
)
--Start by Entering the Entity itself
INSERT INTO #tmpNodes (
EntityIdent ,
DisplayName,
GroupIdent ,
GroupName ,
NodeValue ,
IsInNetwork ,
IncludeInCNP
)
SELECT
EntityIdent = E.Ident,
DisplayName = E.FullName,
GroupIdent = ET.Ident,
GroupName = ET.Name1,
NodeValue = @intMainEntityNodeValue,
IsInNetwork = 1,
IncludeInCNP = 1
FROM
Entity E WITH (NOLOCK)
INNER JOIN
EntityType ET WITH (NOLOCK)
ON E.EntityTypeIdent = ET.Ident
WHERE
E.Ident = @bntEntityIdent
--Now Put in all of the search results, ignore IncludeInCNP, because the search will take care of that.
INSERT INTO #tmpNodes (
EntityIdent ,
DisplayName,
GroupIdent ,
GroupName ,
NodeValue,
IsInNetwork ,
IncludeInCNP
)
SELECT
EntityIdent = E.EntityIdent,
DisplayName = E.DisplayName,
GroupIdent = ET.Ident,
GroupName = ET.Name1,
NodeValue = @intFirstTierSearchResultsNodeValue,
IsInNetwork = 1 ,
IncludeInCNP = ET.IncludeInCNP
FROM
#tmpEntityResults E WITH (NOLOCK)
INNER JOIN
Entity Ent WITH (NOLOCK)
ON Ent.Ident = E.EntityIdent
INNER JOIN
EntityType ET WITH (NOLOCK)
ON Ent.EntityTypeIdent = ET.Ident
SELECT
@bntResultCount = COUNT(EntityIdent)
FROM
#tmpNodes WITH (NOLOCK)
--First Round of connections
MERGE #tmpNodes AS TARGET
USING (
SELECT DISTINCT
EntityIdent = E.Ident,
DisplayName = E.FullName,
GroupIdent = ET.Ident,
GroupName = ET.Name1,
NodeValue = @intFirstTierConnectionNodeValue,
IncludeInCNP = ET.IncludeInCNP
FROM
#tmpNodes tN WITH (NOLOCK)
INNER JOIN
EntityCommunity EC WITH (NOLOCK)
ON EC.FromEntityIdent = tN.EntityIdent
INNER JOIN
Entity E WITH (NOLOCK)
ON EC.ToEntityIdent = E.Ident
INNER JOIN
EntityType ET WITH (NOLOCK)
ON E.EntityTypeIdent = ET.Ident
WHERE
tN.EntityIdent <> @bntEntityIdent
AND E.Ident <> @bntEntityIdent
AND E.Active = 1
AND EC.Active = 1
--AND @bntResultCount < 1000
) AS SOURCE
ON (TARGET.EntityIdent = SOURCE.EntityIdent)
WHEN NOT MATCHED BY TARGET THEN
INSERT (
EntityIdent ,
DisplayName,
GroupIdent ,
GroupName ,
NodeValue,
IncludeInCNP
)
VALUES (SOURCE.EntityIdent, SOURCE.DisplayName, SOURCE.GroupIdent, SOURCE.GroupName, SOURCE.NodeValue, SOURCE.IncludeInCNP);
SELECT
@bntResultCount = COUNT(EntityIdent)
FROM
#tmpNodes WITH (NOLOCK)
--Second Round of connections
MERGE #tmpNodes AS TARGET
USING (
SELECT DISTINCT
EntityIdent = E.Ident,
DisplayName = E.FullName,
GroupIdent = ET.Ident,
GroupName = ET.Name1,
NodeValue = @intSecondGeneralTierNodeValue,
IncludeInCNP = ET.IncludeInCNP
FROM
#tmpNodes tN WITH (NOLOCK)
INNER JOIN
EntityCommunity EC WITH (NOLOCK)
ON EC.FromEntityIdent = tN.EntityIdent
INNER JOIN
Entity E WITH (NOLOCK)
ON EC.ToEntityIdent = E.Ident
INNER JOIN
EntityType ET WITH (NOLOCK)
ON E.EntityTypeIdent = ET.Ident
WHERE
tN.EntityIdent <> @bntEntityIdent
AND E.Ident <> @bntEntityIdent
AND E.Active = 1
AND EC.Active = 1
--AND @bntResultCount < 1000
) AS SOURCE
ON (TARGET.EntityIdent = SOURCE.EntityIdent)
WHEN NOT MATCHED BY TARGET THEN
INSERT (
EntityIdent ,
DisplayName,
GroupIdent ,
GroupName ,
NodeValue,
IncludeInCNP
)
VALUES (SOURCE.EntityIdent, SOURCE.DisplayName, SOURCE.GroupIdent, SOURCE.GroupName, SOURCE.NodeValue, SOURCE.IncludeInCNP);
SELECT
@bntResultCount = COUNT(EntityIdent)
FROM
#tmpNodes WITH (NOLOCK)
--Third Round of connections
MERGE #tmpNodes AS TARGET
USING (
SELECT DISTINCT
EntityIdent = E.Ident,
DisplayName = E.FullName,
GroupIdent = ET.Ident,
GroupName = ET.Name1,
NodeValue = @intThirdTierNodeValue,
IncludeInCNP = ET.IncludeInCNP
FROM
#tmpNodes tN WITH (NOLOCK)
INNER JOIN
EntityCommunity EC WITH (NOLOCK)
ON EC.FromEntityIdent = tN.EntityIdent
INNER JOIN
Entity E WITH (NOLOCK)
ON EC.ToEntityIdent = E.Ident
INNER JOIN
EntityType ET WITH (NOLOCK)
ON E.EntityTypeIdent = ET.Ident
WHERE
tN.EntityIdent <> @bntEntityIdent
AND E.Ident <> @bntEntityIdent
AND E.Active = 1
AND EC.Active = 1
--AND @bntResultCount < 1000
) AS SOURCE
ON (TARGET.EntityIdent = SOURCE.EntityIdent)
WHEN NOT MATCHED BY TARGET THEN
INSERT (
EntityIdent ,
DisplayName,
GroupIdent ,
GroupName ,
NodeValue,
IncludeInCNP
)
VALUES (SOURCE.EntityIdent, SOURCE.DisplayName, SOURCE.GroupIdent, SOURCE.GroupName, SOURCE.NodeValue, SOURCE.IncludeInCNP);
UPDATE #tmpNodes
SET IsInNetwork = 0
UPDATE N
SET
IsInNetwork = 1,
IncludeInCNP = 1 --Override the IncludeInCNP is the person is in our network
FROM
EntityNetwork EN WITH (NOLOCK)
INNER JOIN
#tmpNodes N WITH (NOLOCK)
ON EN.ToEntityIdent = N.EntityIdent
WHERE
EN.FromEntityIdent = @bntEntityIdent
AND EN.Active = 1
INSERT INTO #tmpEdges (
SourceEntityIdent ,
TargetEntityIdent ,
DisplayName ,
EdgeValue ,
EdgeType
)
SELECT
SourceEntityIdent = N.EntityIdent,
TargetEntityIdent = E.Ident,
DisplayName = N.DisplayName + ' ' + EC.Name + ' ' + E.FullName,
EdgeValue = ((N.NodeValue + N2.NodeValue) * @intCommunityEdgeValue),
EdgeType = CT.Ident
FROM
#tmpNodes N WITH (NOLOCK)
INNER JOIN
EntityCommunity EC WITH (NOLOCK)
ON EC.FromEntityIdent = N.EntityIdent
INNER JOIN
#tmpNodes N2 WITH (NOLOCK) --Make sure he edge should come back by having both sides in the list
ON EC.ToEntityIdent = N2.EntityIdent
INNER JOIN
ConnectionType CT WITH (NOLOCK)
ON CT.Ident = EC.ConnectionTypeIdent
INNER JOIN
Entity E WITH (NOLOCK)
ON EC.ToEntityIdent = E.Ident
WHERE
E.Active = 1
AND CT.Active = 1
AND EC.Active = 1
AND N.IncludeInCNP = 1
AND N2.IncludeInCNP = 1
----Setup all of the Network Edges
--INSERT INTO #tmpEdges (
-- SourceEntityIdent ,
-- TargetEntityIdent ,
-- DisplayName ,
-- EdgeValue ,
-- EdgeType
--)
--SELECT
-- SourceEntityIdent = N.EntityIdent,
-- TargetEntityIdent = E.Ident,
-- DisplayName = N.DisplayName + ' ' + EN.Name + ' ' + E.FullName,
-- EdgeValue = ((N.NodeValue + N2.NodeValue) * @intNetworkEdgeValue),
-- EdgeType = CT.Ident
--FROM
-- #tmpNodes N WITH (NOLOCK)
-- INNER JOIN
-- EntityNetwork EN WITH (NOLOCK)
-- ON EN.FromEntityIdent = N.EntityIdent
-- INNER JOIN
-- #tmpNodes N2 WITH (NOLOCK) --Make sure he edge should come back by having both sides in the list
-- ON EN.ToEntityIdent = N2.EntityIdent
-- INNER JOIN
-- ConnectionType CT WITH (NOLOCK)
-- ON CT.Ident = EN.ConnectionTypeIdent
-- INNER JOIN
-- Entity E WITH (NOLOCK)
-- ON EN.ToEntityIdent = E.Ident
--WHERE
-- E.Active = 1
-- AND EN.FromEntityIdent = @bntEntityIdent -- Only My network, not other customers networks
-- AND CT.Active = 1
-- AND EN.Active = 1
-- AND N.IncludeInCNP = 1
-- AND N2.IncludeInCNP = 1
SELECT DISTINCT
(N.Ident - 1) as [index],
N.EntityIdent as [NodeIdent],
CASE @bntEntityIdent WHEN N.EntityIdent THEN 1 ELSE 0 END as [CurrentCenterNode],
N.DisplayName as [name],
MAX(N.NodeValue) as [groupid],
CASE MAX(N.NodeValue)
WHEN @intMainEntityNodeValue THEN N.DisplayName
WHEN @intFirstTierSearchResultsNodeValue THEN 'Matching Search Result'
WHEN @intFirstTierConnectionNodeValue THEN 'Direct link to a Search Result'
WHEN @intSecondGeneralTierNodeValue THEN '2 hops away from a Search Result'
WHEN @intThirdTierNodeValue THEN '3 hops away from a Search Result'
ELSE 'Unknown'
END as [group],
MAX(N.NodeValue) as [value],
CASE MAX(N.NodeValue)
WHEN @intMainEntityNodeValue THEN N.DisplayName
WHEN @intFirstTierSearchResultsNodeValue THEN 'Matching Search Result'
WHEN @intFirstTierConnectionNodeValue THEN 'Direct link to a Search Result'
WHEN @intSecondGeneralTierNodeValue THEN '2 hops away from a Search Result'
WHEN @intThirdTierNodeValue THEN '3 hops away from a Search Result'
ELSE 'Unknown'
END as [valueDesc1],
E.ProfilePhoto,
IsInNetwork
FROM
#tmpNodes N WITH (NOLOCK)
INNER JOIN
Entity E WITH (NOLOCK)
ON E.Ident = N.EntityIdent
WHERE
IncludeInCNP = 1
GROUP BY
N.Ident,
N.EntityIdent,
CASE @bntEntityIdent WHEN N.EntityIdent THEN 1 ELSE 0 END,
N.DisplayName,
E.FullName,
E.ProfilePhoto,
N.GroupIdent,
N.GroupName,
IsInNetwork
--this will return it with an index!
--Edges
SELECT DISTINCT
tE.SourceEntityIdent as [source],
tE.TargetEntityIdent as [target],
(NSource.Ident - 1) as [sourceIndex],
(NTarget.Ident - 1) as [targetIndex],
tE.DisplayName as [name],
CONVERT(BIGINT,tE.EdgeValue) as [value],
tE.EdgeType as [type],
CONVERT(BIGINT,tE.EdgeValue) as[weight]
FROM
#tmpEdges tE WITH (NOLOCK)
INNER JOIN
#tmpNodes NSource WITH (NOLOCK)
on tE.SourceEntityIdent = NSource.EntityIdent
INNER JOIN
#tmpNodes NTarget WITH (NOLOCK)
on tE.TargetEntityIdent = NTarget.EntityIdent
DROP TABLE #tmpNodes
DROP TABLE #tmpEdges
DROP TABLE #tmpEntityResults
SELECT @EndTime=GETDATE()
--This will return execution time of your query
PRINT 'Duration ' + convert(varchar,DATEDIFF(MS,@StartTime,@EndTime) ) + ' MS'
GO
/**************************
exec uspSearchEntityNetworkNetwork
@bntEntityIdent = 306485,
@bntASUserIdent = 306485,
@nvrKeyword = '',
@nvrLocation = '',
@decLatitude = 0.0,
@decLongitude = 0.0,
@intDistanceInMiles = 25,
@bntResultsShown = 10,
@bitFullProjectExport = 0,
@bntAddEntityProjectIdent = 0
--475956
--Before we started: 35 seconds, 27677 rows
**************************/
|
CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_carrier`
(
`id_carrier` int(11) NOT NULL,
`id_prestafraud_carrier_type` int(11) NOT NULL,
PRIMARY KEY (`id_carrier`, `id_prestafraud_carrier_type`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_payment`
(
`id_module` int(11) NOT NULL,
`id_prestafraud_payment_type` int(11) NOT NULL,
PRIMARY KEY (`id_module`, `id_prestafraud_payment_type`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_carts`
(
`id_cart` int(11) NOT NULL,
`ip_address` int(11) NOT NULL,
`date` DATETIME NOT NULL,
PRIMARY KEY (`id_cart`, `ip_address`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `PREFIX_prestafraud_orders`
(
`id_order` int(11) NOT NULL,
`scoring` decimal(4,2) default NULL,
`comment` VARCHAR(255) default NULL,
PRIMARY KEY (`id_order`)
) ENGINE=ENGINE_TYPE DEFAULT CHARSET=utf8;
|
USE employee_trackerDB;
INSERT INTO department (name)
VALUES ("QA"), ("Development"), ("Sales");
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Frank", "Gibbs", 5, 6), ("Dan", "Wildes", 6, 5);
INSERT INTO role (title, salary, department_id)
VALUES ("Engineer", 80000, 8), ("Intern", 60000, 3); |
CREATE TABLE storeshop (
id CHAVE NOT NULL,
id_store CHAVE NOT NULL,
id_shop CHAVE NOT NULL,
CONSTRAINT pk_storeshop PRIMARY KEY (id)
); |
<reponame>UnstableMutex/WorkTemp
CREATE TABLE [dbo].[MainTable]
(
[ID] INT NOT NULL PRIMARY KEY DEFAULT next value for MainTablePKSeq,
[Name] VARCHAR(50) NOT NULL
)
|
create or replace package body pa_orcas_xtext_model is
procedure build
is
begin
null;
end;
end;
/
|
create table ab(a int, b int); |
<filename>_includes/tutorials/serialization/ksql/code/tutorial-steps/dev/create-avro-movies.sql
CREATE STREAM movies_avro
WITH (KAFKA_TOPIC='avro-movies', VALUE_FORMAT='avro') AS
SELECT * FROM movies_json;
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.1
-- Dumped by pg_dump version 11.1
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 client_min_messages = warning;
SET row_security = off;
--
-- Name: schema-generator$defaultValue; Type: SCHEMA; Schema: -; Owner: -
--
CREATE SCHEMA "schema-generator$defaultValue";
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: A; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."A" (
id character varying(25) NOT NULL,
a integer,
b integer NOT NULL,
c text NOT NULL,
d text,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: AWithId; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."AWithId" (
id character varying(25) NOT NULL,
a integer,
b integer NOT NULL,
c text NOT NULL,
d text,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: B; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."B" (
id character varying(25) NOT NULL,
"updatedAt" timestamp(3) without time zone NOT NULL,
"createdAt" timestamp(3) without time zone NOT NULL
);
--
-- Name: _AToB; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."_AToB" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _AWithIdToB; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."_AWithIdToB" (
"A" character varying(25) NOT NULL,
"B" character varying(25) NOT NULL
);
--
-- Name: _RelayId; Type: TABLE; Schema: schema-generator$defaultValue; Owner: -
--
CREATE TABLE "schema-generator$defaultValue"."_RelayId" (
id character varying(36) NOT NULL,
"stableModelIdentifier" character varying(25) NOT NULL
);
--
-- Name: AWithId AWithId_pkey; Type: CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."AWithId"
ADD CONSTRAINT "AWithId_pkey" PRIMARY KEY (id);
--
-- Name: A A_pkey; Type: CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."A"
ADD CONSTRAINT "A_pkey" PRIMARY KEY (id);
--
-- Name: B B_pkey; Type: CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."B"
ADD CONSTRAINT "B_pkey" PRIMARY KEY (id);
--
-- Name: _RelayId pk_RelayId; Type: CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."_RelayId"
ADD CONSTRAINT "pk_RelayId" PRIMARY KEY (id);
--
-- Name: _AToB_A; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE INDEX "_AToB_A" ON "schema-generator$defaultValue"."_AToB" USING btree ("A");
--
-- Name: _AToB_AB_unique; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "_AToB_AB_unique" ON "schema-generator$defaultValue"."_AToB" USING btree ("A", "B");
--
-- Name: _AToB_B; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE INDEX "_AToB_B" ON "schema-generator$defaultValue"."_AToB" USING btree ("B");
--
-- Name: _AWithIdToB_A; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE INDEX "_AWithIdToB_A" ON "schema-generator$defaultValue"."_AWithIdToB" USING btree ("A");
--
-- Name: _AWithIdToB_AB_unique; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "_AWithIdToB_AB_unique" ON "schema-generator$defaultValue"."_AWithIdToB" USING btree ("A", "B");
--
-- Name: _AWithIdToB_B; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE INDEX "_AWithIdToB_B" ON "schema-generator$defaultValue"."_AWithIdToB" USING btree ("B");
--
-- Name: schema-generator$defaultValue.A.a._UNIQUE; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "schema-generator$defaultValue.A.a._UNIQUE" ON "schema-generator$defaultValue"."A" USING btree (a);
--
-- Name: schema-generator$defaultValue.A.c._UNIQUE; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "schema-generator$defaultValue.A.c._UNIQUE" ON "schema-generator$defaultValue"."A" USING btree (c);
--
-- Name: schema-generator$defaultValue.AWithId.a._UNIQUE; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "schema-generator$defaultValue.AWithId.a._UNIQUE" ON "schema-generator$defaultValue"."AWithId" USING btree (a);
--
-- Name: schema-generator$defaultValue.AWithId.c._UNIQUE; Type: INDEX; Schema: schema-generator$defaultValue; Owner: -
--
CREATE UNIQUE INDEX "schema-generator$defaultValue.AWithId.c._UNIQUE" ON "schema-generator$defaultValue"."AWithId" USING btree (c);
--
-- Name: _AToB _AToB_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."_AToB"
ADD CONSTRAINT "_AToB_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$defaultValue"."A"(id) ON DELETE CASCADE;
--
-- Name: _AToB _AToB_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."_AToB"
ADD CONSTRAINT "_AToB_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$defaultValue"."B"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToB _AWithIdToB_A_fkey; Type: FK CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."_AWithIdToB"
ADD CONSTRAINT "_AWithIdToB_A_fkey" FOREIGN KEY ("A") REFERENCES "schema-generator$defaultValue"."AWithId"(id) ON DELETE CASCADE;
--
-- Name: _AWithIdToB _AWithIdToB_B_fkey; Type: FK CONSTRAINT; Schema: schema-generator$defaultValue; Owner: -
--
ALTER TABLE ONLY "schema-generator$defaultValue"."_AWithIdToB"
ADD CONSTRAINT "_AWithIdToB_B_fkey" FOREIGN KEY ("B") REFERENCES "schema-generator$defaultValue"."B"(id) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--
|
CREATE OR REPLACE FUNCTION "GETDECCOORDS" (collobjid in varchar2 )
return MYNUMTYPE pipelined
as
type rc is ref cursor;
dlat number;
dlong number;
mem varchar2(30);
name_cur rc;
begin
open name_cur for 'select dec_lat, dec_long,max_error_units
FROM
accepted_lat_long,
locality,
collecting_event,
cataloged_item
WHERE
accepted_lat_long.locality_id = locality.locality_id AND
locality.locality_id = collecting_event.locality_id AND
collecting_event.collecting_event_id = cataloged_item.collecting_event_id AND
cataloged_item.collection_object_id = :x'
using collobjid
;
pipe row(dec_lat);
return;
end; |
BEGIN;
ALTER TABLE operations ADD COLUMN platform_id varchar(100) NOT NULL DEFAULT '';
COMMIT; |
<reponame>Zhaojia2019/cubrid-testcases<filename>sql/_23_apricot_qa/_01_sql_extension3/_06_merge_statement/cases/_03_merge_using_subquery1.sql
--normal case: merge into target table using source subquery, merge condition
autocommit off;
--target table
create table target(
name char(20),
id char(20),
edate date,
email varchar
);
insert into target values('aaa', 'db110', '2000-12-25', '<EMAIL>');
insert into target values('bbb', 'db118', '2000-12-28', '<EMAIL>');
insert into target values('ccc', 'db125', '2001-05-25', '<EMAIL>');
insert into target values('ddd', 'db133', '2001-08-25', '<EMAIL>');
insert into target values('ddd', 'db141', '2001-09-12', '<EMAIL>');
insert into target values('eee', 'db142', '2002-03-12', '<EMAIL>');
insert into target values('fff', 'db211', '2002-03-25', '<EMAIL>');
insert into target values('ggg', 'db222', '2005-01-11', '<EMAIL>');
insert into target values('ggg', 'db231', '2005-02-22', '<EMAIL>');
insert into target values('hhh', 'db240', '2005-09-18', '<EMAIL>');
--source table
create table source_tbl(
noneed1 datetime default SYS_DATETIME,
name char(20),
id varchar(10),
noneed2 bigint not null,
edate date,
email varchar,
noneed sequence(char(10))
);
--same with target
insert into source_tbl values(default, 'aaa', 'db110', 100000, '2000-12-25', '<EMAIL>', {'a', 'b', 'c'});
insert into source_tbl values(default, 'fff', 'db211', 200000, '2002-03-25', '<EMAIL>', {'a', 'b', 'c'});
--updated, email unchanged
insert into source_tbl values(default, 'eeee', 'db148', 300000, '2002-04-12', '<EMAIL>', {'a', 'b', 'c'});
insert into source_tbl values(default, 'gggg', 'db212', 400000, '2002-04-25', '<EMAIL>', {'a', 'b', 'c'});
--inserted, new email
insert into source_tbl values(default, 'abc', 'db300', 500000, '2008-12-12', '<EMAIL>', {'a', 'b', 'c'});
insert into source_tbl values(default, 'bcd', 'db301', 600000, '2008-12-12', '<EMAIL>', {'a', 'b', 'c'});
insert into source_tbl values(default, 'cde', 'db333', 700000, '2009-01-01', '<EMAIL>', {'a', 'b', 'c'});
--others, id starting with 'dev'
insert into source_tbl values(default, 'ccc', 'dev101', 800000, null, null, {'a', 'b', 'c'});
insert into source_tbl values(default, 'iii', 'dev102', 900000, null, null, {'a', 'b', 'c'});
insert into source_tbl values(default, 'ccd', 'dev103', 1000000, null, null, {'a', 'b', 'c'});
insert into source_tbl values(default, 'cce', 'dev104', 2000000, null, null, {'a', 'b', 'c'});
commit;
--TEST: error, without both update and insert clause
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = source_vuiew.email);
--TEST: error, with insert clause, without update clause, insert part of the values
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on t.email = s.email
when not matched then
insert
values(s.id, s.edate);
--TEST: check merge result
select * from target order by email;
--TEST: with update clause, without insert clause, 4 rows merged
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = s.email)
when matched then
update
set t.name = s.name, t.edate = s.edate, t.id = s.id;
--TEST: check merge result
select * from target order by email;
rollback;
--TEST: with insert clause, without update clause, 3 row merged
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = s.email)
when not matched then
insert
values(s.name, s.id, s.edate, s.email);
--TEST: check merge result
select * from target order by email;
rollback;
--TEST: with update clause with where conditions, 2 rows merged
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = s.email)
when matched then
update
set t.name = s.name, t.id = s.id, t.edate = s.edate
where t.id != s.id;
--TEST: check merge result
select * from target order by email;
rollback;
--TEST: with both update and insert clause with where conditions, 4 rows merged
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = s.email)
when matched then
update
set t.edate = s.edate
where t.id = s.id and t.name = s.name
when not matched then
insert
values(s.name, s.id, s.edate, s.email)
where year(s.edate) = 2008;
--TEST: check merge result
select * from target order by email;
rollback;
--TEST: with delete clause, 4 rows merged
merge into target t
using (select name, id, edate, email from source_tbl where id like 'db%') s
on (t.email = s.email)
when matched then
update
set t.name = s.name, t.id = s.id
delete where(t.edate = s.edate)
when not matched then
insert
values(s.name, s.id, s.edate, s.email);
--TEST: check merge result
select * from target order by email;
rollback;
drop table target, source_tbl;
commit;
autocommit on;
|
<gh_stars>0
create table "user"
(
id bigserial
constraint user_pk primary key,
name varchar not null,
access_token varchar(32) not null
);
create unique index user_access_token_uindex on "user" (access_token);
create table category
(
id serial
constraint category_pk primary key,
title varchar not null
);
create table product
(
id bigserial
constraint product_pk primary key,
title varchar not null,
user_id int8 not null
constraint product_user_id_fk references "user" on update restrict on delete restrict,
category_id int not null
constraint product_category_id_fk references category on update restrict on delete restrict
);
create index product_user_id_index on product (user_id);
create index product_category_id_index on product (category_id);
create table tag
(
id serial
constraint tag_pk primary key,
title int not null
);
create table tag_product
(
tag_id int not null
constraint tag_product_tag_id_fk references tag on update cascade on delete cascade,
product_id int8 not null
constraint tag_product_product_id_fk references product on update cascade,
constraint tag_product_pk primary key (tag_id, product_id)
);
INSERT INTO category (id, title) VALUES (1, 'Горные лыжи');
INSERT INTO category (id, title) VALUES (2, 'Куртка');
INSERT INTO category (id, title) VALUES (3, 'Брюки');
INSERT INTO category (id, title) VALUES (4, 'Шлем');
INSERT INTO category (id, title) VALUES (5, 'Комбинезон');
INSERT INTO category (id, title) VALUES (6, 'Перчатки');
INSERT INTO "user" (id, name, access_token) VALUES (2, 'Екатерина', '<KEY>');
INSERT INTO "user" (id, name, access_token) VALUES (4, 'Вероника', '<KEY>');
INSERT INTO "user" (id, name, access_token) VALUES (1, 'Эдуард', '<KEY>');
INSERT INTO "user" (id, name, access_token) VALUES (3, 'Эвелина', '<KEY>');
INSERT INTO product (id, title, user_id, category_id) VALUES (1, 'Куртка горнолыжная для фрирайда', 1, 2);
INSERT INTO product (id, title, user_id, category_id) VALUES (2, 'Брюки лыжные', 3, 3);
INSERT INTO product (id, title, user_id, category_id) VALUES (3, 'Лыжи для трассового катания', 1, 1);
INSERT INTO product (id, title, user_id, category_id) VALUES (4, 'Куртка для катания на сноуборде и лыжах', 2, 2);
INSERT INTO product (id, title, user_id, category_id) VALUES (5, 'Шлем лыжный с защитным козырьком', 4, 4); |
WITH MultiLinkSections AS
(
SELECT RouteSectionId
FROM RouteLink RL
WHERE RL.FromStopPointRef = "9300BRB"
AND RL.ToStopPointRef = "9300ARD"
AND RL.RouteSectionId IN
(
SELECT RL.RouteSectionId
FROM RouteLink RL
GROUP BY RL.RouteSectionId HAVING COUNT(*) > 1
)
),
VehicleJourneysOperatingToday AS
(
SELECT VehicleJourneyRef
FROM DayOfOperation DOO
WHERE strftime('%s','now') >= DOO.StartDate
AND strftime('%s','now') <= DOO.EndDate
),
VehicleJourneysNotOperatingToday AS
(
SELECT VehicleJourneyRef
FROM DayOfNonOperation DONO
WHERE strftime('%s','now') >= DONO.StartDate
AND strftime('%s','now') <= DONO.EndDate
),
FromStopPointRef AS
(
SELECT *
FROM AnnotatedStopPointRef ASPR
),
ToStopPointRef AS
(
SELECT *
FROM AnnotatedStopPointRef ASPR
)
SELECT RL.RouteSectionId as RouteSectionId, FSPR.StopPointRef as FromCode, FSPR.CommonName AS `From`, TSPR.StopPointRef AS ToCode, TSPR.CommonName AS `To`, VJ.DepatureHour AS Hour, VJ.DepatureMinute AS Minute, JPTL.RunTime AS RunTime, JPTL.WaitTime AS WaitTime, RL.`Order` as `Order`, VJ.Note AS Note
FROM RouteLink RL
INNER JOIN MultiLinkSections MLS ON RL.RouteSectionId = MLS.RouteSectionId
INNER JOIN JourneyPatternTimingLink JPTL ON JPTL.RouteLinkRef = RL.RouteLinkId
INNER JOIN JourneyPattern JP ON JPTL.JourneyPatternSectionid = JP.JourneyPatternId
INNER JOIN VehicleJourney VJ ON VJ.JourneyPatternRef = JP.JourneyPatternId
INNER JOIN Service S ON S.ServiceCode = JP.ServiceRef
INNER JOIN FromStopPointRef FSPR ON FSPR.StopPointRef = JPTL.JourneyPatternFromStopPointRef
INNER JOIN ToStopPointRef TSPR ON TSPR.StopPointRef = JPTL.JourneyPatternToStopPointsRef
WHERE VJ.Saturday = 1
AND
(
(strftime('%s','now') >= S.StartDate AND strftime('%s','now') <= S.EndDate)
OR
(VJ.VehicleJourneyCode IN VehicleJourneysOperatingToday)
)
AND VJ.VehicleJourneyCode NOT IN VehicleJourneysNotOperatingToday |
<reponame>arjunolachery/vsocialci<filename>assets/messenger/id3473025_main.sql
-- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jun 01, 2018 at 06:03 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.0.26
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: `id3473025_main`
--
-- --------------------------------------------------------
--
-- Table structure for table `friend`
--
CREATE TABLE `friend` (
`id` bigint(100) NOT NULL,
`userid` bigint(100) NOT NULL,
`friendid` bigint(100) NOT NULL,
`status` varchar(100) COLLATE latin1_general_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timestamp` bigint(100) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `friend`
--
INSERT INTO `friend` (`id`, `userid`, `friendid`, `status`, `time`, `timestamp`) VALUES
(1, 2, 1, '1', '2017-10-14 11:19:35', 1507979993),
(6, 4, 2, '1', '2017-10-28 20:01:32', 1509221329),
(7, 4, 1, '1', '2017-10-28 20:01:58', 1509220934),
(8, 4, 3, '1', '2017-10-28 20:02:04', 1509220949),
(9, 3, 1, '1', '2017-10-28 20:02:35', 1509225065),
(10, 3, 2, '1', '2017-10-28 20:02:40', 1509221324),
(13, 4, 7, '1', '2017-10-29 20:46:55', 1509310029),
(14, 4, 6, '1', '2017-10-29 20:50:11', 1509310312),
(15, 5, 2, '1', '2017-10-29 20:50:30', 1509310243),
(16, 4, 5, '1', '2017-10-29 20:53:02', 1509310393),
(17, 2, 7, '1', '2017-10-29 20:58:32', 1509310724),
(18, 2, 6, '1', '2017-10-29 21:02:01', 1509310932),
(19, 6, 3, '1', '2017-10-29 21:04:56', 1509311105),
(20, 6, 5, '1', '2017-10-29 21:17:15', 1509311847),
(21, 1, 6, '1', '2017-10-30 16:32:11', 1509381143),
(23, 1, 7, '0', '2018-03-02 17:09:39', 1520010579);
-- --------------------------------------------------------
--
-- Table structure for table `message`
--
CREATE TABLE `message` (
`id` bigint(100) NOT NULL,
`userid` bigint(100) NOT NULL,
`friendid` bigint(100) NOT NULL,
`content` text COLLATE latin1_general_ci NOT NULL,
`timestamp` int(20) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `message`
--
INSERT INTO `message` (`id`, `userid`, `friendid`, `content`, `timestamp`) VALUES
(1, 1, 2, 'hey', 1509210806),
(2, 1, 2, 'how are you', 1509210808),
(3, 1, 2, 'aaa', 1509210822),
(4, 1, 2, 'aaa', 1509210825),
(5, 1, 2, 'a', 1509210828),
(6, 1, 2, 'aaa<br>a', 1509210842),
(7, 1, 2, 'okay', 1509211132),
(8, 1, 2, 'aasas', 1509211133),
(9, 1, 2, 'as', 1509211133),
(10, 1, 2, 'a', 1509211133),
(11, 1, 2, 's', 1509211133),
(12, 1, 2, 'as', 1509211134),
(13, 1, 2, 'a', 1509211134),
(14, 1, 2, 'sa', 1509211134),
(15, 1, 2, 's', 1509211134),
(16, 1, 2, 'a', 1509211134),
(17, 1, 2, 'sa', 1509211134),
(18, 1, 2, 's', 1509211134),
(19, 1, 2, 'a', 1509211135),
(20, 1, 2, 's', 1509211135),
(21, 1, 2, 'sa', 1509211135),
(22, 1, 2, 's', 1509211135),
(23, 1, 2, 'a', 1509211135),
(24, 1, 2, 's', 1509211135),
(25, 1, 2, 'a', 1509211136),
(26, 1, 2, 's', 1509211136),
(27, 1, 2, 'a', 1509211136),
(28, 1, 2, 's', 1509211136),
(29, 1, 2, 'a', 1509211136),
(30, 1, 2, 'sa', 1509211136),
(31, 1, 2, 's', 1509211136),
(32, 1, 2, 'a', 1509211137),
(33, 1, 2, 's', 1509211137),
(34, 1, 2, 'a', 1509211137),
(35, 1, 2, 's', 1509211137),
(36, 1, 2, 'as', 1509211137),
(37, 1, 2, 'as', 1509211138),
(38, 1, 2, 'as', 1509211138),
(39, 1, 2, 'aa', 1509212920),
(40, 1, 2, 'sdasd', 1509212923),
(41, 1, 2, 'hi', 1509213036),
(42, 1, 2, 'hey', 1509213243),
(43, 1, 2, 'app', 1509213253),
(44, 1, 2, 'hi', 1509213760),
(45, 1, 2, 'hi', 1509213761),
(46, 2, 1, 'hi', 1509213863),
(47, 2, 1, 'how are you', 1509213869),
(48, 2, 1, 'good', 1509213930),
(49, 2, 1, 'ok', 1509214016),
(50, 2, 1, 'a', 1509214372),
(51, 2, 1, 'asa', 1509216045),
(52, 2, 1, 'asa', 1509216048),
(53, 2, 1, 'asaas', 1509216049),
(54, 2, 1, 'okay', 1509216058),
(55, 2, 1, 'aa', 1509216161),
(56, 2, 1, 'hey', 1509216171),
(57, 2, 1, 'hey', 1509216172),
(58, 2, 1, 'asa', 1509216174),
(59, 2, 1, 'asa', 1509216174),
(60, 2, 1, 'asa', 1509216175),
(61, 2, 1, 'ok', 1509216178),
(62, 2, 1, 'ooo', 1509216181),
(63, 2, 1, 'o', 1509216183),
(64, 2, 1, 'as', 1509216186),
(65, 2, 1, 'o', 1509216189),
(66, 2, 1, 'asa', 1509216193),
(67, 2, 1, 'as', 1509216208),
(68, 2, 1, 'oo', 1509216211),
(69, 2, 1, 'o', 1509216216),
(70, 2, 1, 'apple', 1509216273),
(71, 2, 1, 'hey', 1509216435),
(72, 2, 1, 'hey', 1509217005),
(73, 2, 1, '<NAME>', 1509217008),
(74, 1, 2, 'how are you', 1509217131),
(75, 1, 2, 'fine?', 1509217136),
(76, 1, 2, 'aaa', 1509217174),
(77, 1, 2, 'ok', 1509217179),
(78, 1, 2, 'aa', 1509217189),
(79, 1, 2, 'aaa', 1509217190),
(80, 1, 2, 'a', 1509217191),
(81, 1, 2, 'a', 1509217192),
(82, 1, 2, 'a', 1509217193),
(83, 1, 2, 'a', 1509217193),
(84, 1, 2, 'hi', 1509217290),
(85, 1, 2, 'asa', 1509217368),
(86, 1, 2, 'how', 1509217371),
(87, 1, 2, 'how', 1509217371),
(88, 1, 2, 'how', 1509217372),
(89, 1, 2, 'ok', 1509217376),
(90, 1, 2, 'hi', 1509217382),
(91, 1, 2, 'asas', 1509217425),
(92, 1, 2, 'a', 1509217427),
(93, 1, 2, 'hi', 1509217458),
(94, 1, 2, 'how are you', 1509217462),
(95, 1, 2, 'hi', 1509217472),
(96, 1, 2, 'how are you', 1509217475),
(97, 1, 2, 'okay', 1509217479),
(98, 1, 2, 'okay', 1509217481),
(99, 1, 2, 'okya', 1509217482),
(100, 1, 2, 'asda', 1509217486),
(101, 1, 2, 'asda', 1509217486),
(102, 1, 2, '<NAME>', 1509217489),
(103, 1, 2, 'okay', 1509217522),
(104, 1, 2, 'ok', 1509217545),
(105, 1, 2, 'hi', 1509217606),
(106, 1, 2, 'how are you', 1509217609),
(107, 1, 2, 'good', 1509217612),
(108, 1, 2, 'okay', 1509217613),
(109, 1, 2, 'so where are you now', 1509217618),
(110, 1, 2, 'apple', 1509217654),
(111, 1, 2, 'okat', 1509217656),
(112, 1, 2, 'how are you', 1509217718),
(113, 1, 2, 'hey', 1509218637),
(114, 1, 2, 'hope youre fine', 1509218659),
(115, 1, 2, 'jok==', 1509219505),
(116, 1, 2, 'ok', 1509220182),
(117, 1, 2, 'aa', 1509220184),
(118, 1, 2, 'aa', 1509220522),
(119, 2, 3, 'hey', 1509221353),
(120, 2, 3, 'how are you doing', 1509221356),
(121, 2, 4, 'hey ', 1509221361),
(122, 2, 4, 'how are you doing', 1509221364),
(123, 1, 4, 'hey', 1509225935),
(124, 1, 2, 'ok', 1509226410),
(125, 1, 3, 'hey bill how are you?', 1509308213),
(126, 3, 1, 'hey arjun im good', 1509308370),
(127, 3, 1, 'hows your course going?', 1509308376),
(128, 1, 3, 'its great! thanks for asking', 1509308385),
(129, 3, 1, 'good to hear', 1509308393),
(130, 3, 1, 'this website is really nice', 1509308424),
(131, 1, 3, 'thank you! :)', 1509308439),
(132, 3, 1, 'your welcome', 1509308445),
(133, 3, 1, 'do you need any funding for this', 1509308470),
(134, 3, 1, '?', 1509308472),
(135, 1, 3, 'no its alright ', 1509308483),
(136, 1, 3, 'its self-financed ', 1509308489),
(137, 1, 3, 'thanks for the offer though, much appreciated', 1509308508),
(138, 3, 1, 'alright', 1509308513),
(139, 3, 1, 'hope everything goes well', 1509308521),
(140, 1, 3, 'thank you ', 1509308527),
(141, 1, 3, 'and you too!', 1509308529),
(142, 6, 3, 'hey', 1509311956),
(143, 1, 3, 'helo', 1509347629),
(144, 1, 2, 'helo', 1509347637),
(145, 1, 2, 'hi', 1509381243),
(146, 1, 6, 'test', 1509609818),
(147, 1, 2, 'Test', 1509612095),
(148, 1, 6, 'hi there', 1518037512),
(149, 1, 3, 'hi', 1521539967),
(150, 1, 2, 'hi', 1526280756),
(151, 1, 2, 'hi', 1526280762),
(152, 1, 4, 'hi', 1527830852),
(153, 1, 3, 'hello', 1527830886),
(154, 1, 3, 'hi', 1527830890),
(155, 1, 3, 'hi', 1527831705),
(156, 1, 3, 'hello', 1527831708),
(157, 1, 3, 'sada', 1527831733),
(158, 1, 3, 'hi', 1527831843),
(159, 1, 3, 'hi', 1527831854),
(160, 1, 3, 'hello', 1527832007),
(161, 1, 3, 'hi', 1527832037),
(162, 1, 2, 'as', 1527832952);
-- --------------------------------------------------------
--
-- Table structure for table `mytable`
--
CREATE TABLE `mytable` (
`FIELD1` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
`FIELD2` varchar(7) COLLATE utf8_unicode_ci NOT NULL,
`FIELD3` varchar(6) COLLATE utf8_unicode_ci NOT NULL,
`FIELD4` varchar(6) COLLATE utf8_unicode_ci NOT NULL,
`FIELD5` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
`FIELD6` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`FIELD7` varchar(3) COLLATE utf8_unicode_ci NOT NULL,
`FIELD8` varchar(11) COLLATE utf8_unicode_ci NOT NULL,
`FIELD9` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`FIELD10` varchar(7) COLLATE utf8_unicode_ci NOT NULL,
`FIELD11` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`FIELD12` varchar(4) COLLATE utf8_unicode_ci NOT NULL,
`FIELD13` varchar(8) COLLATE utf8_unicode_ci NOT NULL,
`FIELD14` varchar(8) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `mytable`
--
INSERT INTO `mytable` (`FIELD1`, `FIELD2`, `FIELD3`, `FIELD4`, `FIELD5`, `FIELD6`, `FIELD7`, `FIELD8`, `FIELD9`, `FIELD10`, `FIELD11`, `FIELD12`, `FIELD13`, `FIELD14`) VALUES
('b silva', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('delph', '5', '0', '9', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('ederson', '0', '3', '4', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('fernandinho', '0', '0', '12', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('gundogan', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('jesus', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('KDB', '0', '12', '6', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('otamendi', '4', '4', '19', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('sane', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('silva', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('sterling', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('stones', '5', '19', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'),
('walker', '2', '0', '12', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0');
-- --------------------------------------------------------
--
-- Table structure for table `notification_checked_on`
--
CREATE TABLE `notification_checked_on` (
`id` bigint(100) NOT NULL,
`userid` bigint(100) NOT NULL,
`type` varchar(100) COLLATE latin1_general_ci NOT NULL,
`timestamp` varchar(30) COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `notification_checked_on`
--
INSERT INTO `notification_checked_on` (`id`, `userid`, `type`, `timestamp`) VALUES
(1, 1, 'f', '1507979850'),
(2, 1, 'm', '1507979850'),
(3, 1, 'a', '1507979850'),
(4, 1, 'f', '1507979893'),
(5, 1, 'a', '1507979896'),
(6, 2, 'f', '1507979962'),
(7, 2, 'm', '1507979962'),
(8, 2, 'a', '1507979962'),
(9, 2, 'a', '1507979980'),
(10, 2, 'f', '1507979981'),
(11, 1, 'f', '1507979987'),
(12, 2, 'a', '1507980008'),
(13, 1, 'a', '1508999623'),
(14, 1, 'a', '1509120320'),
(15, 1, 'a', '1509120321'),
(16, 1, 'f', '1509122466'),
(17, 1, 'a', '1509122468'),
(18, 1, 'f', '1509123062'),
(19, 1, 'a', '1509123067'),
(20, 1, 'f', '1509203290'),
(21, 1, 'a', '1509203293'),
(22, 1, 'f', '1509206729'),
(23, 1, 'a', '1509206730'),
(24, 1, 'f', '1509209194'),
(25, 1, 'a', '1509210949'),
(26, 1, 'f', '1509210952'),
(27, 1, 'f', '1509212166'),
(28, 1, 'a', '1509212169'),
(29, 1, 'f', '1509212198'),
(30, 2, 'f', '1509216612'),
(31, 2, 'a', '1509216614'),
(32, 2, 'a', '1509216617'),
(33, 1, 'f', '1509217750'),
(34, 1, 'a', '1509217751'),
(35, 1, 'f', '1509217963'),
(36, 1, 'a', '1509217966'),
(37, 1, 'f', '1509219597'),
(38, 1, 'a', '1509219600'),
(39, 3, 'f', '1509220791'),
(40, 3, 'm', '1509220791'),
(41, 3, 'a', '1509220791'),
(42, 3, 'f', '1509220829'),
(43, 3, 'a', '1509220832'),
(44, 4, 'f', '1509220862'),
(45, 4, 'm', '1509220862'),
(46, 4, 'a', '1509220862'),
(47, 1, 'f', '1509220931'),
(48, 3, 'f', '1509220946'),
(49, 4, 'a', '1509220995'),
(50, 4, 'a', '1509220997'),
(51, 2, 'f', '1509221163'),
(52, 2, 'f', '1509221320'),
(53, 2, 'f', '1509221327'),
(54, 1, 'f', '1509223225'),
(55, 1, 'f', '1509223233'),
(56, 5, 'f', '1509223595'),
(57, 5, 'm', '1509223595'),
(58, 5, 'a', '1509223595'),
(59, 1, 'a', '1509225057'),
(60, 1, 'f', '1509225060'),
(61, 1, 'a', '1509225068'),
(62, 1, 'a', '1509225597'),
(63, 1, 'a', '1509225600'),
(64, 1, 'a', '1509225603'),
(65, 1, 'a', '1509225607'),
(66, 1, 'a', '1509225695'),
(67, 1, 'a', '1509225696'),
(68, 1, 'f', '1509225699'),
(69, 1, 'a', '1509225704'),
(70, 1, 'f', '1509225706'),
(71, 1, 'f', '1509225764'),
(72, 1, 'a', '1509225767'),
(73, 1, 'f', '1509225770'),
(74, 1, 'a', '1509225773'),
(75, 1, 'f', '1509225777'),
(76, 1, 'f', '1509306304'),
(77, 3, 'f', '1509307150'),
(78, 3, 'a', '1509307570'),
(79, 3, 'f', '1509307574'),
(80, 6, 'f', '1509309094'),
(81, 6, 'm', '1509309094'),
(82, 6, 'a', '1509309094'),
(83, 7, 'f', '1509309201'),
(84, 7, 'm', '1509309201'),
(85, 7, 'a', '1509309201'),
(86, 4, 'a', '1509309799'),
(87, 4, 'a', '1509309863'),
(88, 4, 'a', '1509309864'),
(89, 4, 'a', '1509309867'),
(90, 4, 'f', '1509309870'),
(91, 4, 'f', '1509309876'),
(92, 4, 'a', '1509309879'),
(93, 4, 'a', '1509309892'),
(94, 4, 'a', '1509309897'),
(95, 4, 'a', '1509309904'),
(96, 4, 'a', '1509309993'),
(97, 7, 'f', '1509310025'),
(98, 7, 'a', '1509310033'),
(99, 4, 'a', '1509310179'),
(100, 4, 'a', '1509310181'),
(101, 4, 'a', '1509310183'),
(102, 4, 'a', '1509310194'),
(103, 4, 'a', '1509310196'),
(104, 4, 'a', '1509310206'),
(105, 5, 'a', '1509310223'),
(106, 2, 'a', '1509310238'),
(107, 2, 'f', '1509310239'),
(108, 2, 'a', '1509310245'),
(109, 5, 'a', '1509310253'),
(110, 5, 'a', '1509310255'),
(111, 5, 'a', '1509310259'),
(112, 5, 'a', '1509310260'),
(113, 5, 'a', '1509310260'),
(114, 5, 'a', '1509310261'),
(115, 5, 'a', '1509310261'),
(116, 5, 'a', '1509310262'),
(117, 5, 'f', '1509310280'),
(118, 5, 'a', '1509310280'),
(119, 5, 'a', '1509310286'),
(120, 6, 'f', '1509310308'),
(121, 4, 'a', '1509310326'),
(122, 5, 'f', '1509310389'),
(123, 4, 'a', '1509310432'),
(124, 4, 'a', '1509310441'),
(125, 7, 'f', '1509310722'),
(126, 2, 'a', '1509310741'),
(127, 2, 'a', '1509310743'),
(128, 6, 'f', '1509310927'),
(129, 2, 'a', '1509310942'),
(130, 2, 'a', '1509310954'),
(131, 2, 'a', '1509310956'),
(132, 2, 'a', '1509310962'),
(133, 3, 'f', '1509311102'),
(134, 6, 'a', '1509311250'),
(135, 6, 'a', '1509311253'),
(136, 6, 'a', '1509311471'),
(137, 6, 'a', '1509311477'),
(138, 6, 'a', '1509311512'),
(139, 6, 'a', '1509311547'),
(140, 6, 'a', '1509311597'),
(141, 6, 'a', '1509311600'),
(142, 6, 'a', '1509311684'),
(143, 6, 'a', '1509311687'),
(144, 6, 'f', '1509311701'),
(145, 6, 'a', '1509311816'),
(146, 5, 'f', '1509311843'),
(147, 6, 'a', '1509311853'),
(148, 6, 'f', '1509311869'),
(149, 1, 'f', '1509347667'),
(150, 1, 'a', '1509347669'),
(151, 6, 'f', '1509381139'),
(152, 1, 'a', '1509381148'),
(153, 1, 'a', '1509381157'),
(154, 1, 'a', '1509381251'),
(155, 1, 'a', '1509381532'),
(156, 1, 'a', '1509381778'),
(157, 1, 'a', '1509451436'),
(158, 1, 'a', '1509451499'),
(159, 1, 'f', '1509612197'),
(160, 1, 'f', '1509612210'),
(161, 1, 'f', '1509653824'),
(162, 1, 'a', '1509653825'),
(163, 1, 'a', '1518037477'),
(164, 1, 'f', '1518037481'),
(165, 1, 'f', '1518037609'),
(166, 1, 'f', '1518037614'),
(167, 1, 'a', '1518037621'),
(168, 8, 'f', '1519495399'),
(169, 8, 'm', '1519495399'),
(170, 8, 'a', '1519495399'),
(171, 1, 'f', '1519495808'),
(172, 1, 'a', '1519495808'),
(173, 1, 'f', '1521539939'),
(174, 1, 'a', '1521539942'),
(175, 1, 'f', '1521800477'),
(176, 1, 'a', '1521800477'),
(177, 1, 'f', '1521810287'),
(178, 1, 'a', '1521810290'),
(179, 1, 'a', '1521826614'),
(180, 1, 'f', '1521826617'),
(181, 1, 'a', '1521826670'),
(182, 1, 'a', '1524986360'),
(183, 1, 'a', '1525277150'),
(184, 1, 'a', '1525936870'),
(185, 1, 'f', '1526064209'),
(186, 1, 'a', '1526064211'),
(187, 1, 'a', '1526280621');
-- --------------------------------------------------------
--
-- Table structure for table `page`
--
CREATE TABLE `page` (
`pageid` int(200) NOT NULL,
`userid` varchar(10) COLLATE latin1_general_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`url` varchar(1000) COLLATE latin1_general_ci NOT NULL,
`logged` varchar(1) COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
-- --------------------------------------------------------
--
-- Table structure for table `post`
--
CREATE TABLE `post` (
`postid` bigint(30) NOT NULL,
`userid` bigint(10) NOT NULL,
`content` text COLLATE latin1_general_ci NOT NULL,
`hashtags` text COLLATE latin1_general_ci NOT NULL,
`usertags` text COLLATE latin1_general_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timestamp` varchar(20) COLLATE latin1_general_ci NOT NULL,
`anonymous` varchar(1) COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `post`
--
INSERT INTO `post` (`postid`, `userid`, `content`, `hashtags`, `usertags`, `time`, `timestamp`, `anonymous`) VALUES
(1, 1, 'hello', '', '', '2017-10-14 11:17:48', '1507979868', ''),
(2, 1, '../uploads/213569033_1175264729161876_2804646331694300520_o.jpg', '', '', '2017-10-14 11:18:58', '1507979938', ''),
(3, 1, 'hi', '', '', '2017-10-28 15:07:55', '1509203275', ''),
(4, 1, '../uploads/4Capture.PNG', '', '', '2017-10-28 16:47:55', '1509209275', ''),
(5, 2, 'hello world\n', '', '', '2017-10-28 18:07:35', '1509214055', ''),
(6, 1, 'hi', '', '', '2017-10-28 19:58:54', '1509220734', ''),
(7, 5, 'hi\n', '', '', '2017-10-28 21:03:11', '1509224591', ''),
(8, 1, '../uploads/820121561_1536598979695114_865010858201447499_o (1).jpg', '', '', '2017-10-29 19:39:14', '1509305954', ''),
(9, 2, 'This app is awesome. Thanks!', '', '', '2017-10-29 19:53:20', '1509306800', ''),
(10, 1, 'hello (:\n', '', '', '2017-10-30 16:44:11', '1509381851', ''),
(11, 2, '../uploads/1120121561_1536598979695114_865010858201447499_o.jpg', '', '', '2017-11-02 08:05:17', '1509609917', ''),
(12, 1, 'hey', '', '', '2018-02-24 18:05:37', '1519495537', ''),
(13, 1, '../uploads/13images (37).jpeg', '', '', '2018-03-02 16:17:46', '1520007466', ''),
(14, 1, 'hi', '', '', '2018-03-23 17:37:42', '1521826662', ''),
(15, 1, 'hey ', '', '', '2018-05-14 06:50:15', '1526280615', ''),
(16, 1, '../uploads/16history.png', '', '', '2018-05-14 06:58:12', '1526281092', '');
-- --------------------------------------------------------
--
-- Table structure for table `primaryinfo`
--
CREATE TABLE `primaryinfo` (
`userid` bigint(10) NOT NULL,
`name` varchar(30) COLLATE latin1_general_ci NOT NULL,
`email` varchar(30) COLLATE latin1_general_ci NOT NULL,
`gender` varchar(1) COLLATE latin1_general_ci NOT NULL,
`age` varchar(3) COLLATE latin1_general_ci NOT NULL,
`phonenumber` varchar(15) COLLATE latin1_general_ci NOT NULL,
`address` varchar(65000) COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `primaryinfo`
--
INSERT INTO `primaryinfo` (`userid`, `name`, `email`, `gender`, `age`, `phonenumber`, `address`) VALUES
(1, 'arjun', '<EMAIL>', 'M', '', '', ''),
(2, 'mark', '<EMAIL>', 'M', '', '', ''),
(3, 'bill', '<EMAIL>', 'M', '', '', ''),
(4, 'sergey', '<EMAIL>', 'M', '', '', ''),
(5, 'larry', '<EMAIL>.vom', 'M', '', '', ''),
(6, 'jeff', '<EMAIL>', '', '', '', ''),
(7, 'elon', '<EMAIL>', '', '', '', ''),
(8, 'james', '<EMAIL>', '', '', '', '');
-- --------------------------------------------------------
--
-- Table structure for table `profilepic`
--
CREATE TABLE `profilepic` (
`id` bigint(10) NOT NULL,
`userid` bigint(10) NOT NULL,
`link` varchar(255) COLLATE latin1_general_ci NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`timestamp` bigint(200) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `profilepic`
--
INSERT INTO `profilepic` (`id`, `userid`, `link`, `time`, `timestamp`) VALUES
(1, 1, 'download.png', '2017-10-14 11:17:30', 1507979850),
(2, 1, '../uploads/213569033_1175264729161876_2804646331694300520_o.jpg', '2017-10-14 11:18:03', 1507979883),
(3, 2, 'download.png', '2017-10-14 11:19:22', 1507979962),
(4, 1, '../uploads/4giphy.gif', '2017-10-28 16:46:54', 1509209214),
(5, 1, '../uploads/5Capture2.PNG', '2017-10-28 16:48:21', 1509209301),
(6, 3, 'download.png', '2017-10-28 19:59:51', 1509220791),
(7, 4, 'download.png', '2017-10-28 20:01:02', 1509220862),
(8, 5, 'download.png', '2017-10-28 20:46:35', 1509223595),
(9, 1, '../uploads/914606519_1252349278120087_8406655802349638061_n.jpg', '2017-10-29 19:41:04', 1509306064),
(10, 2, '../uploads/10mark-zuckerberg.jpg', '2017-10-29 19:56:06', 1509306966),
(11, 3, '../uploads/10sergey-brin-4.jpg', '2017-10-29 19:58:59', 1509307139),
(12, 3, '../uploads/1018342229_103552640222041_9062695584582928451_n.jpg', '2017-10-29 20:02:58', 1509307378),
(13, 3, '../uploads/1020280559_10154756882766961_3434466954525858896_o.jpg', '2017-10-29 20:05:08', 1509307508),
(14, 1, '../uploads/1013502935_1175274395827576_1862613772696803217_o.jpg', '2017-10-29 20:24:14', 1509308654),
(15, 1, '../uploads/1014606519_1252349278120087_8406655802349638061_n (1).jpg', '2017-10-29 20:25:44', 1509308744),
(16, 4, '../uploads/1018342229_103552640222041_9062695584582928451_n.jpg', '2017-10-29 20:27:15', 1509308835),
(17, 5, '../uploads/10page-larry_topic.jpg', '2017-10-29 20:30:37', 1509309037),
(18, 6, 'download.png', '2017-10-29 20:31:34', 1509309094),
(19, 6, '../uploads/10UF3cgUk4.jpg', '2017-10-29 20:32:45', 1509309165),
(20, 7, 'download.png', '2017-10-29 20:33:21', 1509309201),
(21, 7, '../uploads/10zDo-gAo0_400x400.jpg', '2017-10-29 20:33:48', 1509309228),
(22, 4, '../uploads/10Sergey Brin.jpg', '2017-10-29 20:37:10', 1509309430),
(23, 4, '../uploads/10Sergey Brin.jpg', '2017-10-29 20:39:15', 1509309555),
(24, 4, '../uploads/10Sergey Brin.jpg', '2017-10-29 20:40:36', 1509309636),
(25, 4, '../uploads/10416x416.jpg', '2017-10-29 20:42:55', 1509309775),
(26, 8, 'download.png', '2018-02-24 18:03:19', 1519495399),
(27, 1, '../uploads/17user128.png', '2018-06-01 05:29:07', 1527830947);
-- --------------------------------------------------------
--
-- Table structure for table `usera`
--
CREATE TABLE `usera` (
`userid` bigint(10) NOT NULL,
`username` varchar(30) COLLATE latin1_general_ci NOT NULL,
`password` varchar(30) COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `usera`
--
INSERT INTO `usera` (`userid`, `username`, `password`) VALUES
(1, 'arjun', 'password'),
(2, 'mark', 'password'),
(3, 'bill', 'password'),
(4, 'sergey', 'password'),
(5, 'larry', 'password'),
(6, 'jeff', 'password'),
(7, 'elon', 'password'),
(8, 'james', 'password');
-- --------------------------------------------------------
--
-- Table structure for table `vitdetails`
--
CREATE TABLE `vitdetails` (
`userid` varchar(1000) COLLATE latin1_general_ci NOT NULL,
`regno` text COLLATE latin1_general_ci NOT NULL,
`email` text COLLATE latin1_general_ci NOT NULL,
`block` text COLLATE latin1_general_ci NOT NULL,
`roomnumber` text COLLATE latin1_general_ci NOT NULL,
`clubs` text COLLATE latin1_general_ci NOT NULL,
`cgpa` text COLLATE latin1_general_ci NOT NULL,
`branch` text COLLATE latin1_general_ci NOT NULL,
`classes` text COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data for table `vitdetails`
--
INSERT INTO `vitdetails` (`userid`, `regno`, `email`, `block`, `roomnumber`, `clubs`, `cgpa`, `branch`, `classes`) VALUES
('1', '15BCe0970', '<EMAIL>', '', '', '', '', '', ''),
('2', '', '', '', '', '', '', '', ''),
('3', '', '', '', '', '', '', '', ''),
('4', '', '', '', '', '', '', '', ''),
('5', '', '', '', '', '', '', '', ''),
('6', '', '', '', '', '', '', '', ''),
('7', '', '', '', '', '', '', '', ''),
('8', '', '', '', '', '', '', '', '');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `friend`
--
ALTER TABLE `friend`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `message`
--
ALTER TABLE `message`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mytable`
--
ALTER TABLE `mytable`
ADD PRIMARY KEY (`FIELD1`);
--
-- Indexes for table `notification_checked_on`
--
ALTER TABLE `notification_checked_on`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `page`
--
ALTER TABLE `page`
ADD PRIMARY KEY (`pageid`),
ADD UNIQUE KEY `userid` (`userid`);
--
-- Indexes for table `post`
--
ALTER TABLE `post`
ADD PRIMARY KEY (`postid`);
--
-- Indexes for table `primaryinfo`
--
ALTER TABLE `primaryinfo`
ADD UNIQUE KEY `userid` (`userid`);
--
-- Indexes for table `profilepic`
--
ALTER TABLE `profilepic`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `usera`
--
ALTER TABLE `usera`
ADD PRIMARY KEY (`userid`);
--
-- Indexes for table `vitdetails`
--
ALTER TABLE `vitdetails`
ADD UNIQUE KEY `userid` (`userid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `friend`
--
ALTER TABLE `friend`
MODIFY `id` bigint(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `message`
--
ALTER TABLE `message`
MODIFY `id` bigint(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=163;
--
-- AUTO_INCREMENT for table `notification_checked_on`
--
ALTER TABLE `notification_checked_on`
MODIFY `id` bigint(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=188;
--
-- AUTO_INCREMENT for table `page`
--
ALTER TABLE `page`
MODIFY `pageid` int(200) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `post`
--
ALTER TABLE `post`
MODIFY `postid` bigint(30) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `profilepic`
--
ALTER TABLE `profilepic`
MODIFY `id` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28;
--
-- AUTO_INCREMENT for table `usera`
--
ALTER TABLE `usera`
MODIFY `userid` bigint(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
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>closedaydata/OLD/IAT1908190935.sql
INSERT INTO pos_itemtemp VALUES("IATT190002090","193009","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1908190935","NHO2018000007","PAID","LV 2","193009"),
("IATT190002090","193054","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193054"),
("IATT190002090","193048","191002","192010","8000","1","8000","0","8000","1","1","2","IAT1908190935","NHO2018000007","PAID","","193048"),
("IATT190002091","193024","191001","192003","30000","1","30000","0","30000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193024"),
("IATT190002091","193024","191001","192003","30000","1","30000","0","30000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193024"),
("IATT190002091","193048","191002","192010","8000","1","8000","0","8000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193048"),
("IATT190002091","193048","191002","192010","8000","1","8000","0","8000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193048"),
("IATT190002092","193085","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193085"),
("IATT190002092","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193046"),
("IATT190002093","193018","191001","192002","37000","1","37000","13320","23680","1","1","1","IAT1908190935","NHO2018000007","PAID","LV 1","PEDAS"),
("IATT190002093","193010","191001","192001","40000","1","40000","14400","25600","1","1","1","IAT1908190935","NHO2018000007","PAID","","193010"),
("IATT190002093","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002093","193056","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002094","193022","191001","192003","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193022"),
("IATT190002094","193007","191001","192001","37000","1","37000","13320","23680","1","1","1","IAT1908190935","NHO2018000007","PAID","LV2","PEDAS"),
("IATT190002094","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002094","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002095","193030","191001","192004","27000","1","27000","8100","18900","1","1","1","IAT1908190935","NHO2018000007","PAID","","193030"),
("IATT190002095","193029","191001","192004","27000","1","27000","8100","18900","1","1","1","IAT1908190935","NHO2018000007","PAID","","193029"),
("IATT190002095","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002095","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002096","193011","191001","192001","40000","1","40000","14400","25600","1","1","1","IAT1908190935","NHO2018000007","PAID","","PEDAS"),
("IATT190002096","193076","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193076"),
("IATT190002096","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002096","193078","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","PEDAS"),
("IATT190002096","193077","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193077"),
("IATT190002097","193082","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193082"),
("IATT190002097","193005","191001","192001","37000","1","37000","13320","23680","1","1","1","IAT1908190935","NHO2018000007","PAID","SMBL PISAH","193005"),
("IATT190002097","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002097","193056","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002095","193051","191002","192010","20000","1","20000","0","20000","1","1","2","IAT1908190935","NHO2018000007","PAID","","193051"),
("IATT190002098","193084","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","PEDAS"),
("IATT190002098","193082","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193082"),
("IATT190002098","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193056"),
("IATT190002098","193051","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193051"),
("IATT190002099","193084","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","LV3","PEDAS"),
("IATT190002099","193082","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193082"),
("IATT190002099","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002099","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002100","193082","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193082"),
("IATT190002100","193082","191001","192001","30000","1","30000","10800","19200","2","1","1","IAT1908190935","NHO2018000007","PAID","","193082"),
("IATT190002100","193076","191001","192001","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193076"),
("IATT190002100","193076","191001","192001","30000","1","30000","10800","19200","2","1","1","IAT1908190935","NHO2018000007","PAID","","193076"),
("IATT190002100","193022","191001","192003","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193022"),
("IATT190002100","193022","191001","192003","30000","1","30000","10800","19200","2","1","1","IAT1908190935","NHO2018000007","PAID","","193022"),
("IATT190002100","193023","191001","192003","30000","1","30000","10800","19200","1","1","1","IAT1908190935","NHO2018000007","PAID","","193023"),
("IATT190002100","193023","191001","192003","30000","1","30000","10800","19200","2","1","1","IAT1908190935","NHO2018000007","PAID","","193023"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","3","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","4","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","5","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","6","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","7","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002100","193047","191002","192010","10000","1","10000","0","10000","8","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002101","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193047"),
("IATT190002102","193077","191001","192001","30000","1","30000","15000","15000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193077"),
("IATT190002102","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002103","193033","191001","192005","42000","1","42000","21000","21000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193033"),
("IATT190002103","193033","191001","192005","42000","1","42000","21000","21000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193033"),
("IATT190002103","193009","191001","192001","40000","1","40000","20000","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193009"),
("IATT190002103","193009","191001","192001","40000","1","40000","20000","20000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193009"),
("IATT190002103","193049","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193049"),
("IATT190002104","193012","191001","192001","40000","1","40000","20000","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193012"),
("IATT190002104","193036","191001","192006","36000","1","36000","18000","18000","1","1","1","IAT1908190935","NHO2018000007","PAID","","ORIGINAL"),
("IATT190002104","193033","191001","192005","42000","1","42000","21000","21000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193033"),
("IATT190002104","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002104","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002105","193035","191001","192006","32000","1","32000","16000","16000","1","1","1","IAT1908190935","NHO2018000007","PAID","","ORIGINAL"),
("IATT190002105","193036","191001","192006","36000","1","36000","18000","18000","1","1","1","IAT1908190935","NHO2018000007","PAID","","ORIGINAL"),
("IATT190002105","193012","191001","192001","40000","1","40000","20000","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193012"),
("IATT190002105","193010","191001","192001","40000","1","40000","20000","20000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193010"),
("IATT190002105","193069","191001","192012","13000","1","13000","6500","6500","1","1","1","IAT1908190935","NHO2018000007","PAID","","193069"),
("IATT190002105","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002105","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1908190935","NHO2018000007","PAID","","193055"),
("IATT190002103","193056","191002","192010","17000","1","17000","0","17000","1","1","2","IAT1908190935","NHO2018000007","PAID","","193056");
INSERT INTO pos_salestemp VALUES("IATT190002088","","1","0","0","0","0","0","0","19/08/2019","10:11","19/08/2019","10:15:40","ISU000012","tbl0010","CANCELED","1","PERMINTAAN CUSTOMER","","","","","","IAT1908190935","NHO2018000007"),
("IATT190002089","","0","10000","0","0","0","0","0","19/08/2019","11:02","19/08/2019","11:05:01","ISU000012","tbl0009","CANCELED","1","PERMINTAAN CUSTOMER","","","","","","IAT1908190935","NHO2018000007"),
("IATT190002090","","1","68000","0","6800","0","74800","75000","19/08/2019","16:05","2019-08-19","16:36:05","ISU000012","tbl0012","CLOSED","1","","IATR190002032","","","","","IAT1908190935","NHO2018000007"),
("IATT190002091","","2","76000","0","7600","0","83600","100000","19/08/2019","16:24","2019-08-19","17:07:57","ISU000012","tbl0010","CLOSED","1","","IATR190002033","","","","","IAT1908190935","NHO2018000007"),
("IATT190002092","","1","40000","10800","2920","0","32120","50120","19/08/2019","17:04","2019-08-19","17:38:13","ISU000012","tbl0011","CLOSED","1","","IATR190002034","","","","","IAT1908190935","NHO2018000007"),
("IATT190002093","","2","111000","27720","8328","0","91608","91608","19/08/2019","17:05","2019-08-19","17:46:47","ISU000012","tbl0012","CLOSED","1","","IATR190002035","","","","","IAT1908190935","NHO2018000007"),
("IATT190002094","","2","87000","24120","6288","0","69168","69168","19/08/2019","17:17","2019-08-19","17:48:49","ISU000012","tbl0010","CLOSED","1","","IATR190002036","","","","","IAT1908190935","NHO2018000007"),
("IATT190002095","","2","108000","16200","9180","0","100980","101000","19/08/2019","17:49","2019-08-19","20:54:29","ISU000012","tbl0024","CLOSED","1","","IATR190002042","","","","","IAT1908190935","NHO2018000007"),
("IATT190002096","","4","147000","46800","10020","0","110220","200000","19/08/2019","17:56","2019-08-19","18:43:14","ISU000012","tbl0011","CLOSED","1","","IATR190002037","","","","","IAT1908190935","NHO2018000007"),
("IATT190002097","","2","101000","24120","7688","0","84568","100000","19/08/2019","18:14","2019-08-19","19:04:44","ISU000012","tbl0010","CLOSED","1","","IATR190002038","","","","","IAT1908190935","NHO2018000007"),
("IATT190002098","","2","97000","21600","7540","0","82940","82940","19/08/2019","19:20","2019-08-19","20:47:07","ISU000012","tbl0012","CLOSED","1","","IATR190002041","","","","","IAT1908190935","NHO2018000007"),
("IATT190002099","","2","87000","21600","6540","0","71940","71940","19/08/2019","19:25","2019-08-19","19:58:21","ISU000012","tbl0010","CLOSED","1","","IATR190002040","","","","","IAT1908190935","NHO2018000007"),
("IATT190002100","","6","320000","86400","23360","0","256960","256960","19/08/2019","19:35","2019-08-19","19:38:31","ISU000012","tbl0013","CLOSED","1","","IATR190002039","","","","","IAT1908190935","NHO2018000007"),
("IATT190002101","","1","10000","0","1000","0","11000","20000","19/08/2019","20:27","2019-08-19","21:06:44","ISU000012","tbl0010","CLOSED","1","","IATR190002043","","","","","IAT1908190935","NHO2018000007"),
("IATT190002102","","2","47000","15000","3200","0","35200","40000","19/08/2019","20:55","2019-08-19","21:27:20","ISU000012","tbl0024","CLOSED","1","","IATR190002044","","","","","IAT1908190935","NHO2018000007"),
("IATT190002103","","2","191000","82000","10900","0","119900","120000","19/08/2019","21:04","2019-08-19","21:33:03","ISU000012","tbl0013","CLOSED","1","","IATR190002045","","","","","IAT1908190935","NHO2018000007"),
("IATT190002104","","2","152000","59000","9300","0","102300","103000","19/08/2019","21:05","2019-08-19","21:33:23","ISU000012","tbl0014","CLOSED","1","","IATR190002046","","","","","IAT1908190935","NHO2018000007"),
("IATT190002105","","2","195000","80500","11450","0","125950","127000","19/08/2019","21:05","2019-08-19","21:33:45","ISU000012","tbl0015","CLOSED","1","","IATR190002047","","","","","IAT1908190935","NHO2018000007");
INSERT INTO item_void VALUES("IATT190002088","IAT1908190935","NHO2018000007","193048","193048","1","8000","Before Send","Komplen Customer"),
("IATT190002103","IAT1908190935","NHO2018000007","193055","193055","1","17000","Before Send","Komplen Customer");
INSERT INTO pos_promotion_h VALUES("IATT190002092","NPRM18000016","DISC ITEM","1","10800","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002093","NPRM18000016","DISC ITEM","1","27720","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002094","NPRM18000016","DISC ITEM","1","24120","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002096","NPRM18000016","DISC ITEM","1","46800","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002097","NPRM18000016","DISC ITEM","1","24120","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","86400","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002099","NPRM18000016","DISC ITEM","1","21600","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002098","NPRM18000016","DISC ITEM","1","21600","Diskon 20% + 20% Agustus","IAT1908190935","PAID","NHO2018000007"),
("IATT190002095","NPRM18000008","DISC ITEM","1","16200","eatigo 30%","IAT1908190935","PAID","NHO2018000007"),
("IATT190002103","NPRM18000012","DISC ITEM","1","82000","eatigo 50%","IAT1908190935","PAID","NHO2018000007"),
("IATT190002104","NPRM18000012","DISC ITEM","1","59000","eatigo 50%","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","80500","eatigo 50%","IAT1908190935","PAID","NHO2018000007"),
("IATT190002102","NPRM18000012","DISC ITEM","1","15000","eatigo 50%","IAT1908190935","PAID","NHO2018000007");
INSERT INTO pos_promotion_d VALUES("IATT190002092","NPRM18000016","DISC ITEM","1","1","193085","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002093","NPRM18000016","DISC ITEM","1","1","193018","1","13320","IAT1908190935","PAID","NHO2018000007"),
("IATT190002093","NPRM18000016","DISC ITEM","1","1","193010","1","14400","IAT1908190935","PAID","NHO2018000007"),
("IATT190002094","NPRM18000016","DISC ITEM","1","1","193022","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002094","NPRM18000016","DISC ITEM","1","1","193007","1","13320","IAT1908190935","PAID","NHO2018000007"),
("IATT190002096","NPRM18000016","DISC ITEM","1","1","193011","1","14400","IAT1908190935","PAID","NHO2018000007"),
("IATT190002096","NPRM18000016","DISC ITEM","1","1","193076","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002096","NPRM18000016","DISC ITEM","1","1","193078","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002096","NPRM18000016","DISC ITEM","1","1","193077","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002097","NPRM18000016","DISC ITEM","1","1","193082","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002097","NPRM18000016","DISC ITEM","1","1","193005","1","13320","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193082","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193082","2","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193076","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193076","2","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193022","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193022","2","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193023","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002100","NPRM18000016","DISC ITEM","1","1","193023","2","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002099","NPRM18000016","DISC ITEM","1","1","193084","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002099","NPRM18000016","DISC ITEM","1","1","193082","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002098","NPRM18000016","DISC ITEM","1","1","193084","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002098","NPRM18000016","DISC ITEM","1","1","193082","1","10800","IAT1908190935","PAID","NHO2018000007"),
("IATT190002095","NPRM18000008","DISC ITEM","1","1","193030","1","8100","IAT1908190935","PAID","NHO2018000007"),
("IATT190002095","NPRM18000008","DISC ITEM","1","1","193029","1","8100","IAT1908190935","PAID","NHO2018000007"),
("IATT190002103","NPRM18000012","DISC ITEM","1","1","193033","1","21000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002103","NPRM18000012","DISC ITEM","1","1","193033","2","21000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002103","NPRM18000012","DISC ITEM","1","1","193009","1","20000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002103","NPRM18000012","DISC ITEM","1","1","193009","2","20000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002104","NPRM18000012","DISC ITEM","1","1","193012","1","20000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002104","NPRM18000012","DISC ITEM","1","1","193036","1","18000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002104","NPRM18000012","DISC ITEM","1","1","193033","1","21000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","1","193035","1","16000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","1","193036","1","18000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","1","193012","1","20000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","1","193010","1","20000","IAT1908190935","PAID","NHO2018000007"),
("IATT190002105","NPRM18000012","DISC ITEM","1","1","193069","1","6500","IAT1908190935","PAID","NHO2018000007"),
("IATT190002102","NPRM18000012","DISC ITEM","1","1","193077","1","15000","IAT1908190935","PAID","NHO2018000007");
INSERT INTO pos_paymenttemp VALUES("IATT190002090","CASH","CASH","74800","75000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002091","CASH","CASH","83600","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002092","CASH","CASH","32120","50120","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002093","CARD","DEBIT BCA","91608","91608","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002094","CARD","DEBIT BCA","69168","69168","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002096","CASH","CASH","110220","200000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002097","CASH","CASH","84568","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002100","CARD","MASTER","256960","256960","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002099","CARD","VISA","71940","71940","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002098","CARD","MASTER","82940","82940","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002095","VOUCHER","KUPON PROMO EATIGO 100K","100000","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002095","CASH","CASH","980","1000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002101","CASH","CASH","11000","20000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002104","VOUCHER","KUPON PROMO EATIGO 100K","100000","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002105","VOUCHER","KUPON PROMO EATIGO 100K","100000","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002102","VOUCHER","KUPON PROMO EATIGO 30K","30000","30000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002102","CASH","CASH","5200","10000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002103","VOUCHER","KUPON PROMO EATIGO 100K","100000","100000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002103","CASH","CASH","19900","20000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002104","CASH","CASH","2300","3000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007"),
("IATT190002105","CASH","CASH","25950","27000","ISU000012","2019-08-19","","1","","CLOSED","IAT1908190935","NHO2018000007");
|
/*
* Copyright (c) Meta Platforms, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "cqltest.h"
-- use this for both normal eval and SQLite eval
#define EXPECT_SQL_TOO(x) EXPECT(x); EXPECT((select x))
BEGIN_SUITE()
declare function blob_from_string(str text @sensitive) create blob not null;
declare function string_from_blob(b blob @sensitive) create text not null;
declare procedure cql_init_extensions() using transaction;
declare enum floats real (
one = 1.0,
two = 2.0
);
declare enum longs long_int (
one = 1,
big = 0x100000000,
neg = -1
);
call cql_init_extensions();
BEGIN_TEST(arithmetic)
EXPECT_SQL_TOO((1 + 2) * 3 == 9);
EXPECT_SQL_TOO(1 + 2 * 3 == 7);
EXPECT_SQL_TOO(6 / 3 == 2);
EXPECT_SQL_TOO(7 - 5 == 2);
EXPECT_SQL_TOO(6 % 5 == 1);
EXPECT_SQL_TOO(5 / 2.5 == 2);
EXPECT_SQL_TOO(-(1+3) == -4);
EXPECT_SQL_TOO(-1+3 == 2);
EXPECT_SQL_TOO(1+-3 == -2);
EXPECT_SQL_TOO(longs.neg == -1);
EXPECT_SQL_TOO(-longs.neg == 1);
EXPECT_SQL_TOO(- -longs.neg == -1);
END_TEST(arithmetic)
declare side_effect_0_count integer not null;
declare side_effect_1_count integer not null;
declare side_effect_null_count integer not null;
create proc side_effect_0(out result integer)
begin
set result := 0;
set side_effect_0_count := side_effect_0_count + 1;
end;
create proc side_effect_1(out result integer)
begin
set result := 1;
set side_effect_1_count := side_effect_1_count + 1;
end;
create proc side_effect_null(out result integer)
begin
set result := null;
set side_effect_null_count := side_effect_null_count + 1;
end;
create proc reset_counts()
begin
set side_effect_0_count := 0;
set side_effect_1_count := 0;
set side_effect_null_count := 0;
end;
BEGIN_TEST(logical_operations)
EXPECT_SQL_TOO((null and 0) == 0);
EXPECT_SQL_TOO((null and 0) = 0);
EXPECT_SQL_TOO((0 and null) == 0);
EXPECT_SQL_TOO((1 and null) is null);
EXPECT_SQL_TOO((null and 1) is null);
EXPECT_SQL_TOO((null or 1) == 1);
EXPECT_SQL_TOO((1 or null) == 1);
EXPECT_SQL_TOO((0 or null) is null);
EXPECT_SQL_TOO((null or 0) is null);
EXPECT_SQL_TOO((0 or 1) and (1 or 0));
EXPECT_SQL_TOO(NOT (1+2) == 0);
EXPECT_SQL_TOO((NOT 1)+2 == 2);
EXPECT((side_effect_0() and side_effect_0()) == 0);
EXPECT(side_effect_0_count == 1);
call reset_counts();
EXPECT((side_effect_0() and side_effect_1()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((side_effect_0() and side_effect_null()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_null_count == 0);
call reset_counts();
EXPECT((side_effect_1() and side_effect_0()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_1() and side_effect_1()) == 1);
EXPECT(side_effect_1_count == 2);
call reset_counts();
EXPECT((side_effect_1() and side_effect_null()) is null);
EXPECT(side_effect_1_count == 1);
EXPECT(side_effect_null_count == 1);
call reset_counts();
EXPECT((side_effect_null() and side_effect_0()) == 0);
EXPECT(side_effect_null_count == 1);
EXPECT(side_effect_0_count == 1);
call reset_counts();
EXPECT((side_effect_null() and side_effect_1()) is null);
EXPECT(side_effect_null_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_null() and side_effect_null()) is null);
EXPECT(side_effect_null_count == 2);
call reset_counts();
EXPECT((side_effect_0() or side_effect_0()) == 0);
EXPECT(side_effect_0_count == 2);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((side_effect_0() or side_effect_1()) == 1);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_0() or side_effect_null()) is null);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_null_count == 1);
call reset_counts();
EXPECT((side_effect_1() or side_effect_0()) == 1);
EXPECT(side_effect_0_count == 0);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_1() or side_effect_1()) == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_1() or side_effect_null()) == 1);
EXPECT(side_effect_null_count == 0);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_null() or side_effect_0()) is null);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_null_count == 1);
call reset_counts();
EXPECT((side_effect_null() or side_effect_1()) == 1);
EXPECT(side_effect_null_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((side_effect_null() or side_effect_null()) is null);
EXPECT(side_effect_null_count == 2);
call reset_counts();
-- even though this looks like all non nulls we do not eval side_effect_1
-- we can't use the simple && form because there is statement output
-- requred to evaluate the coalesce.
EXPECT((0 and coalesce(side_effect_1(), 1)) == 0);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((1 and coalesce(side_effect_1(), 1)) == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((1 or coalesce(side_effect_1(), 1)) == 1);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((0 or coalesce(side_effect_1(), 1)) == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
-- this is the same as NOT (0 < 0) rather than (NOT 0) < 0
-- do not move NOT around or you will break stuff
-- I have broken this many times now do not change this expectation
-- it will save your life.
EXPECT_SQL_TOO(NOT 0 < 0);
END_TEST(logical_operations)
declare zero integer not null;
set zero := 0;
declare one integer not null;
set one := 1;
-- logical and short-circuit verify 1/0 not evaluated
BEGIN_TEST(local_operations_early_out)
EXPECT_SQL_TOO(not (0 and 1/zero));
EXPECT_SQL_TOO(1 or 1/zero);
END_TEST(local_operations_early_out)
-- assorted between combinations
BEGIN_TEST(between_operations)
EXPECT_SQL_TOO(1 between 0 and 2);
EXPECT_SQL_TOO(not 3 between 0 and 2);
EXPECT_SQL_TOO(not (3 between 0 and 2));
EXPECT_SQL_TOO((null between 0 and 2) is null);
EXPECT_SQL_TOO((1 between null and 2) is null);
EXPECT_SQL_TOO((1 between 0 and null) is null);
EXPECT((-1 between side_effect_0() and side_effect_1()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((0 between side_effect_0() and side_effect_1()) == 1);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((2 between side_effect_0() and side_effect_1()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((-1 not between side_effect_0() and side_effect_1()) == 1);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 0);
call reset_counts();
EXPECT((0 not between side_effect_0() and side_effect_1()) == 0);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
EXPECT((2 not between side_effect_0() and side_effect_1()) == 1);
EXPECT(side_effect_0_count == 1);
EXPECT(side_effect_1_count == 1);
call reset_counts();
END_TEST(between_operations)
-- assorted not between combinations
BEGIN_TEST(not_between_operations)
EXPECT_SQL_TOO(3 not between 0 and 2);
EXPECT_SQL_TOO(not 1 not between 0 and 2);
EXPECT_SQL_TOO(not (1 not between 0 and 2));
EXPECT_SQL_TOO((not 1) not between 0 and 2 == 0);
EXPECT_SQL_TOO(1 not between 2 and 0);
EXPECT_SQL_TOO(0 == not 7 not between 5 and 6);
EXPECT_SQL_TOO(1 == (not 7) not between 5 and 6);
EXPECT_SQL_TOO((null not between 0 and 2) is null);
EXPECT_SQL_TOO((1 not between null and 2) is null);
EXPECT_SQL_TOO((1 not between 0 and null) is null);
END_TEST(not_between_operations)
-- assorted comparisons
BEGIN_TEST(numeric_comparisons)
EXPECT_SQL_TOO(0 == zero);
EXPECT_SQL_TOO(not (one == zero));
EXPECT_SQL_TOO(one <> zero);
EXPECT_SQL_TOO(not (one <> 1));
EXPECT_SQL_TOO(one > zero);
EXPECT_SQL_TOO(zero < one);
EXPECT_SQL_TOO(one >= zero);
EXPECT_SQL_TOO(zero <= one);
EXPECT_SQL_TOO(one >= 1);
EXPECT_SQL_TOO(one <= 1);
END_TEST(numeric_comparisons)
BEGIN_TEST(simple_funcs)
EXPECT_SQL_TOO(abs(-2) == 2);
EXPECT_SQL_TOO(abs(2) == 2);
EXPECT_SQL_TOO(abs(-2.0) == 2);
EXPECT_SQL_TOO(abs(2.0) == 2);
LET t := 3L;
EXPECT_SQL_TOO(abs(t) == t);
EXPECT_SQL_TOO(abs(-t) == t);
SET t := -4;
EXPECT_SQL_TOO(abs(t) == -t);
EXPECT_SQL_TOO(abs(-t) == -t);
EXPECT_SQL_TOO(abs(true) == true);
EXPECT_SQL_TOO(abs(false) == false);
EXPECT_SQL_TOO(abs(null) is null);
EXPECT(sign(5) == 1);
EXPECT(sign(0.1) == 1);
EXPECT(sign(7L) == 1);
EXPECT(sign(true) == 1);
EXPECT(sign(-5) == -1);
EXPECT(sign(-0.1) == -1);
EXPECT(sign(-7L) == -1);
EXPECT(sign(0) == 0);
EXPECT(sign(0.0) == 0);
EXPECT(sign(0L) == 0);
EXPECT(sign(false) == 0);
END_TEST(simple_funcs)
-- verify that out parameter is set in proc call
create procedure echo ( in arg1 integer not null, out arg2 integer not null)
begin
set arg2 := arg1;
end;
BEGIN_TEST(out_arguments)
declare scratch integer not null;
call echo(12, scratch);
EXPECT_SQL_TOO(scratch == 12);
END_TEST(out_arguments)
-- test simple recursive function
create procedure fib (in arg integer not null, out result integer not null)
begin
if (arg <= 2) then
set result := 1;
else
declare t integer not null;
call fib(arg - 1, result);
call fib(arg - 2, t);
set result := t + result;
end if;
end;
BEGIN_TEST(simple_recursion)
declare scratch integer not null;
call fib(1, scratch);
EXPECT(scratch == 1);
call fib(2, scratch);
EXPECT(scratch == 1);
call fib(3, scratch);
EXPECT(scratch == 2);
call fib(4, scratch);
EXPECT(scratch == 3);
call fib(5, scratch);
EXPECT(scratch == 5);
call fib(6, scratch);
EXPECT(scratch == 8);
END_TEST(simple_recursion)
-- test elementary cursor on select with no tables, still round trips through sqlite
BEGIN_TEST(cursor_basics)
declare col1 integer;
declare col2 real not null;
declare basic_cursor cursor for select 1, 2.5;
open basic_cursor;
fetch basic_cursor into col1, col2;
EXPECT(basic_cursor);
EXPECT(col1 == 1);
EXPECT(col2 == 2.5);
fetch basic_cursor into col1, col2;
EXPECT(not basic_cursor);
close basic_cursor;
END_TEST(cursor_basics)
-- the most expensive way to swap two variables ever :)
BEGIN_TEST(exchange_with_cursor)
declare arg1 integer not null;
declare arg2 integer not null;
set arg1 := 7;
set arg2 := 11;
declare exchange_cursor cursor for select arg2, arg1;
open exchange_cursor;
fetch exchange_cursor into arg1, arg2;
EXPECT(exchange_cursor);
EXPECT(arg1 == 11);
EXPECT(arg2 == 7);
close exchange_cursor;
END_TEST(exchange_with_cursor)
create procedure make_mixed()
begin
create table mixed(
id integer not null,
name text,
code long int, -- these are nullable to make the cg harder
flag bool,
rate real,
bl blob
);
end;
create procedure drop_mixed()
begin
drop table if exists mixed;
end;
call make_mixed();
create procedure load_mixed()
begin
delete from mixed;
insert into mixed values (1, "a name", 12, 1, 5.0, cast("blob1" as blob));
insert into mixed values (2, "another name", 14, 3, 7.0, cast("blob2" as blob));
end;
create procedure load_mixed_dupes()
begin
delete from mixed;
insert into mixed values (1, "a name", 12, 1, 5.0, NULL);
insert into mixed values (1, "a name", 12, 1, 5.0, NULL);
insert into mixed values (2, "another name", 14, 3, 7.0, cast("blob2" as blob));
insert into mixed values (2, "another name", 14, 3, 7.0, cast("blob2" as blob));
insert into mixed values (1, "a name", 12, 1, 5.0, cast("blob1" as blob));
insert into mixed values (1, NULL, 12, 1, 5.0, NULL);
end;
create procedure load_mixed_dupe_identities()
begin
delete from mixed;
insert into mixed values (1, "a name", 12, 1, 5.0, NULL);
insert into mixed values (1, "another name", 12, 1, 5.0, NULL);
insert into mixed values (1, "another name", 12, 0, 5.0, NULL);
insert into mixed values (1, "another name", 12, 0, 5.0, cast("blob1" as blob));
insert into mixed values (1, "another name", 14, 0, 7.0, cast("blob1" as blob));
end;
create procedure load_mixed_with_nulls()
begin
call load_mixed();
insert into mixed values (3, NULL, NULL, NULL, NULL, NULL);
insert into mixed values (4, "last name", 16, 0, 9.0, cast("blob3" as blob));
end;
create procedure update_mixed(id_ integer not null, name_ text, code_ long int, bl_ blob)
begin
update mixed set code = code_, bl = bl_ where id = id_;
end;
-- test readback of two rows
BEGIN_TEST(read_mixed)
declare id_ integer not null;
declare name_ text;
declare code_ long int;
declare flag_ bool;
declare rate_ real;
declare bl_ blob;
call load_mixed();
declare read_cursor cursor for select * from mixed;
open read_cursor;
fetch read_cursor into id_, name_, code_, flag_, rate_, bl_;
EXPECT(read_cursor);
EXPECT(id_ == 1);
EXPECT(name_ == "a name");
EXPECT(code_ == 12);
EXPECT(flag_ == 1);
EXPECT(rate_ == 5);
EXPECT(string_from_blob(bl_) == "blob1");
fetch read_cursor into id_, name_, code_, flag_, rate_, bl_;
EXPECT(read_cursor);
EXPECT(id_ == 2);
EXPECT(name_ == "another name");
EXPECT(code_ == 14);
EXPECT(flag_ == 1);
EXPECT(rate_ == 7);
EXPECT(string_from_blob(bl_) == "blob2");
fetch read_cursor into id_, name_, code_, flag_, rate_, bl_;
EXPECT(not read_cursor);
close read_cursor;
END_TEST(read_mixed)
-- now attempt a mutation
BEGIN_TEST(mutate_mixed)
declare new_code long integer;
declare code_ long integer;
set new_code := 88;
declare id_ integer;
set id_ := 2; -- either works
call load_mixed();
update mixed set code = new_code where id = id_;
declare updated_cursor cursor for select code from mixed where id = id_;
open updated_cursor;
fetch updated_cursor into code_;
close updated_cursor;
EXPECT(code_ == new_code);
END_TEST(mutate_mixed)
BEGIN_TEST(nested_select_expressions)
-- use nested expression select
declare temp_1 integer not null;
set temp_1 := (select zero*5 + one*11);
EXPECT(temp_1 == 11);
call load_mixed();
set temp_1 := (select id from mixed where id > 1 order by id limit 1);
EXPECT(temp_1 == 2);
set temp_1 := (select count(*) from mixed);
EXPECT(temp_1 == 2);
declare temp_2 real;
set temp_2 := (select avg(id) from mixed);
EXPECT(temp_2 == 1.5);
EXPECT((select longs.neg) == -1);
EXPECT((select -longs.neg) == 1);
EXPECT((select - -longs.neg) == -1);
END_TEST(nested_select_expressions)
-- complex delete pattern
create proc delete_one_from_mixed(out _id integer not null)
begin
set _id := (select id from mixed order by id limit 1);
delete from mixed where id = _id;
end;
BEGIN_TEST(delete_several)
call load_mixed();
EXPECT(2 == (select count(*) from mixed));
declare id_ integer not null;
call delete_one_from_mixed(id_);
EXPECT(1 == id_);
EXPECT(0 == (select count(*) from mixed where id = id_));
EXPECT(1 == (select count(*) from mixed where id != id_));
call delete_one_from_mixed(id_);
EXPECT(2 == id_);
EXPECT(0 == (select count(*) from mixed));
END_TEST(delete_several)
-- some basic string stuff using sqlite for string helpers
create proc string_copy(in input text not null, out output text not null)
begin
-- extra shuffling for refcount testing
declare t text not null;
set t := input;
set output := t;
end;
-- some basic string stuff using sqlite for string helpers
create proc string_equal(in t1 text not null, in t2 text not null, out result bool not null)
begin
set result := (select t1 == t2);
end;
-- try out some string lifetime functions
BEGIN_TEST(string_ref_test)
declare a_string text not null;
call string_copy("Hello", a_string);
declare result bool not null;
call string_equal(a_string, "Hello", result);
EXPECT(result);
END_TEST(string_ref_test)
-- try out some string comparisons
BEGIN_TEST(string_comparisons)
declare t1 text;
declare t2 text;
declare t3 text;
set t1 := "a";
set t2 := "b";
set t3 := "a";
EXPECT_SQL_TOO("a" == "a");
EXPECT_SQL_TOO("a" IS "a");
EXPECT_SQL_TOO("a" != "b");
EXPECT_SQL_TOO("a" IS NOT "b");
EXPECT_SQL_TOO(t1 < t2);
EXPECT_SQL_TOO(t2 > t1);
EXPECT_SQL_TOO(t1 <= t2);
EXPECT_SQL_TOO(t2 >= t1);
EXPECT_SQL_TOO(t1 <= t3);
EXPECT_SQL_TOO(t3 >= t1);
EXPECT_SQL_TOO(t1 == t3);
EXPECT_SQL_TOO(t1 != t2);
END_TEST(string_comparisons)
-- string comparison nullability checks
BEGIN_TEST(string_comparisons_nullability)
declare null_ text;
declare x text not null;
set x := "x";
EXPECT_SQL_TOO((nullable(x) < nullable(x)) is not null);
EXPECT_SQL_TOO((nullable(x) > nullable("x")) is not null);
EXPECT_SQL_TOO((null_ > x) is null);
EXPECT_SQL_TOO((x > null_) is null);
EXPECT_SQL_TOO((null_ > null_) is null);
EXPECT_SQL_TOO((null_ == null_) is null);
END_TEST(string_comparisons_nullability)
-- string is null and is not null tests
BEGIN_TEST(string_is_null_or_not)
declare null_ text;
declare x text not null;
set x := "x";
declare y text;
set y := nullable("y");
EXPECT_SQL_TOO(null_ is null);
EXPECT_SQL_TOO(nullable(x) is not null);
EXPECT_SQL_TOO(y is not null);
EXPECT_SQL_TOO(not (null_ is not null));
EXPECT_SQL_TOO(not (nullable(x) is null));
EXPECT_SQL_TOO(not (y is null));
END_TEST(string_is_null_or_not)
-- binding tests for not null types
BEGIN_TEST(bind_not_nullables)
declare b bool not null;
declare i integer not null;
declare l long integer not null;
declare r real not null;
declare t text not null;
set b := 1;
set i := 2;
set l := 3;
set r := 4.5;
set t := "foo";
EXPECT(b == (select b)); -- binding not null bool
EXPECT(i == (select i)); -- binding not null int
EXPECT(l == (select l)); -- binding not null long
EXPECT(r == (select r)); -- binding not null real
EXPECT(t == (select t)); -- binding not null text
EXPECT(b != (select not b)); -- binding not null bool
EXPECT(i != (select 1 + i)); -- binding not null int
EXPECT(l != (select 1 + l)); -- binding not null long
EXPECT(r != (select 1 + r)); -- binding not null real
END_TEST(bind_not_nullables)
-- binding tests for nullable types
BEGIN_TEST(bind_nullables_not_null)
declare b bool;
declare i integer;
declare l long integer;
declare r real;
declare t text;
set b := 1;
set i := 2;
set l := 3;
set r := 4.5;
set t := "foo";
EXPECT(b == (select b)); -- binding nullable not null bool
EXPECT(i == (select i)); -- binding nullable not null int
EXPECT(l == (select l)); -- binding nullable not null long
EXPECT(r == (select r)); -- binding nullable not null real
EXPECT(t == (select t)); -- binding nullable not null text
EXPECT(b != (select not b)); -- binding nullable not null bool
EXPECT(i != (select 1 + i)); -- binding nullable not null int
EXPECT(l != (select 1 + l)); -- binding nullable not null long
EXPECT(r != (select 1 + r)); -- binding nullable not null real
END_TEST(bind_nullables_not_null)
-- binding tests for nullable types values null
BEGIN_TEST(bind_nullables_null)
declare b bool;
declare i integer;
declare l long integer;
declare r real;
declare t text;
set b := null;
set i := null;
set l := null;
set r := null;
set t := null;
EXPECT((select b) is null); -- binding null bool
EXPECT((select i) is null); -- binding null int
EXPECT((select l) is null); -- binding null long
EXPECT((select r) is null); -- binding null real
EXPECT((select t) is null); -- binding null text
END_TEST(bind_nullables_null)
BEGIN_TEST(loop_fetch)
declare id_ integer not null;
declare name_ text;
declare code_ long int;
declare flag_ bool;
declare rate_ real;
declare bl_ blob;
declare count, sum integer not null;
call load_mixed();
declare read_cursor cursor for select * from mixed;
open read_cursor;
set count := 0;
set sum := 0;
loop fetch read_cursor into id_, name_, code_, flag_, rate_, bl_
begin
set count := count + 1;
set sum := sum + id_;
end;
EXPECT(count == 2); -- there should be two rows
EXPECT(sum == 3); -- some math along the way
END_TEST(loop_fetch)
create procedure load_more_mixed()
begin
delete from mixed;
insert into mixed values (1, "a name", 12, 1, 5.0, NULL);
insert into mixed values (2, "some name", 14, 3, 7.0, NULL);
insert into mixed values (3, "yet another name", 15, 3, 17.4, NULL);
insert into mixed values (4, "some name", 19, 4, 9.1, NULL);
insert into mixed values (5, "what name", 21, 8, 12.3, NULL);
end;
BEGIN_TEST(loop_control_flow)
declare id_ integer not null;
declare name_ text;
declare code_ long int;
declare flag_ bool;
declare rate_ real;
declare bl_ blob;
declare count integer not null;
call load_more_mixed();
declare read_cursor cursor for select * from mixed;
open read_cursor;
set count := 0;
loop fetch read_cursor into id_, name_, code_, flag_, rate_, bl_
begin
-- skip number two
if id_ == 2 then
continue;
end if;
set count := count + 1;
-- should break on number 4
if name_ == "some name" then
leave;
end if;
end;
EXPECT(count == 3); -- there should be three rows tested
EXPECT(id_ == 4); -- the match goes with id #4
END_TEST(loop_control_flow)
-- basic test of while loop plus leave and continue
BEGIN_TEST(while_control_flow)
declare i, sum integer not null;
set i := 0;
set sum := 0;
while i < 5
begin
set i := i + 1;
set sum := sum + i;
end;
EXPECT(i == 5); -- loop ended on time
EXPECT(sum == 15); -- correct sum computed: 1+2+3+4+5
set i := 0;
set sum := 0;
while i < 5
begin
set i := i + 1;
if i == 2 then
continue;
end if;
if i == 4 then
leave;
end if;
set sum := sum + i;
end;
EXPECT(i == 4); -- loop ended on time
EXPECT(sum == 4); -- correct sum computed: 1+3
END_TEST(while_control_flow)
-- same test but the control variable is nullable making the expression nullable
BEGIN_TEST(while_control_flow_with_nullables)
declare i, sum integer;
set i := 0;
set sum := 0;
while i < 5
begin
set i := i + 1;
set sum := sum + i;
end;
EXPECT(i == 5); -- loop ended on time
EXPECT(sum == 15); -- correct sum computed: 1+2+3+4+5
END_TEST(while_control_flow_with_nullables)
-- like predicate test
BEGIN_TEST(like_predicate)
EXPECT_SQL_TOO("this is a test" like "%is a%");
EXPECT_SQL_TOO(not ("this is a test" like "is a"));
declare txt text;
EXPECT_SQL_TOO(("" like txt) is null);
EXPECT_SQL_TOO((txt like "%") is null);
EXPECT_SQL_TOO((txt like txt) is null);
END_TEST(like_predicate)
-- error handling with try catch throw
create procedure throws(out did_throw bool not null)
begin
declare x integer not null;
set did_throw := 0;
begin try
-- this fails
set x := (select id from mixed where id = 999);
end try;
begin catch
set did_throw := 1;
-- and rethrow!
throw;
end catch;
set did_throw := 0; -- test fails if this runs, it should not
end;
BEGIN_TEST(throw_and_catch)
declare did_throw bool not null;
declare did_continue bool not null;
set did_continue := 0;
begin try
call throws(did_throw);
set did_throw := one / zero; -- this does not run
end try;
begin catch
set did_continue := 1;
end catch;
EXPECT(did_throw == 1); -- exception was caught
EXPECT(did_continue == 1); -- execution continued
END_TEST(throw_and_catch)
-- the catch block should not run if no errors
BEGIN_TEST(throw_and_not_catch)
declare did_catch integer not null;
begin try
set did_catch := 0;
end try;
begin catch
set did_catch := 1;
end catch;
EXPECT(did_catch == 0); -- catch did not run
END_TEST(throw_and_not_catch)
create procedure case_tester1(value integer not null, out result integer)
begin
set result := case value
when 1 then 100
when 2 then 200
when 3 then 300
else 400 end;
end;
create procedure case_tester2(value integer not null, out result integer)
begin
set result := case value
when 1 then 100
when 2 then 200
when 3 then 300
end;
end;
BEGIN_TEST(simple_case_test)
declare result integer;
call case_tester1(1, result);
EXPECT(result == 100);
call case_tester1(2, result);
EXPECT(result == 200);
call case_tester1(3, result);
EXPECT(result == 300);
call case_tester1(5, result);
EXPECT(result == 400);
call case_tester2(1, result);
EXPECT(result == 100);
call case_tester2(2, result);
EXPECT(result == 200);
call case_tester2(3, result);
EXPECT(result == 300);
call case_tester2(5, result);
EXPECT(result is null);
END_TEST(simple_case_test)
create procedure string_case_tester1(value text, out result text)
begin
set result := case value
when "1" then "100"
when "2" then "200"
when "3" then "300"
end;
end;
BEGIN_TEST(string_case_test)
declare result text;
call string_case_tester1("1", result);
EXPECT(result == "100");
call string_case_tester1("2", result);
EXPECT(result == "200");
call string_case_tester1("3", result);
EXPECT(result == "300");
call string_case_tester1("5", result);
EXPECT(result is null);
END_TEST(string_case_test)
create procedure in_tester1(value integer not null, out result bool not null)
begin
set result := value in (1, 2, 3);
end;
BEGIN_TEST(in_test_not_null)
declare result bool not null;
call in_tester1(1, result);
EXPECT(result);
call in_tester1(2, result);
EXPECT(result);
call in_tester1(3, result);
EXPECT(result);
call in_tester1(4, result);
EXPECT(not result);
END_TEST(in_test_not_null)
create procedure in_tester2(value integer, out result bool)
begin
declare two integer;
set two := 2;
set result := value in (1, two, 3);
end;
BEGIN_TEST(in_test_nullables)
declare result bool;
call in_tester2(1, result);
EXPECT(result);
call in_tester2(2, result);
EXPECT(result);
call in_tester2(3, result);
EXPECT(result);
call in_tester2(4, result);
EXPECT(not result);
call in_tester2(null, result);
EXPECT(result is null);
END_TEST(in_test_nullables)
create procedure nullables_case_tester(value integer, out result integer not null)
begin
-- this is a very weird way to get a bool
set result := case 1 when value then 1 else 0 end;
end;
BEGIN_TEST(nullable_when_test)
declare result integer not null;
call nullables_case_tester(1, result);
EXPECT(result == 1);
call nullables_case_tester(0, result);
EXPECT(result == 0);
END_TEST(nullable_when_test)
create procedure nullables_case_tester2(value integer, out result integer not null)
begin
-- this is a very weird way to get a bool
set result := case when value then 1 else 0 end;
end;
BEGIN_TEST(nullable_when_pred_test)
declare result integer not null;
call nullables_case_tester(1, result);
EXPECT(result == 1);
call nullables_case_tester(0, result);
EXPECT(result == 0);
call nullables_case_tester(null, result);
EXPECT(result == 0);
END_TEST(nullable_when_pred_test)
create procedure in_string_tester(value text, out result bool)
begin
set result := value in ("this", "that");
end;
BEGIN_TEST(string_in_test)
declare result bool;
call in_string_tester("this", result);
EXPECT(result);
call in_string_tester("that", result);
EXPECT(result);
call in_string_tester("at", result);
EXPECT(not result);
call in_string_tester(null, result);
EXPECT(result is null);
END_TEST(string_in_test)
BEGIN_TEST(string_between_test)
declare n1, n2, n3 text;
declare s1, s2, s3 text not null;
set n1 := "1";
set n2 := "2";
set n3 := "3";
set s1 := "1";
set s2 := "2";
set s3 := "3";
EXPECT_SQL_TOO(s2 between s1 and s3);
EXPECT_SQL_TOO(not (s2 between s3 and s1));
EXPECT_SQL_TOO(1 + (s2 between s1 and s3) == 2);
EXPECT_SQL_TOO(n2 between n1 and n3);
EXPECT_SQL_TOO(not (n2 between n3 and n1));
set n2 := null;
EXPECT_SQL_TOO((n2 between n1 and n3) is null);
set n2 := "2";
set n1 := null;
EXPECT_SQL_TOO((n2 between n1 and n3) is null);
set n1 := "1";
set n3 := null;
EXPECT_SQL_TOO((n2 between n1 and n3) is null);
set n3 := "3";
END_TEST(string_between_test)
BEGIN_TEST(string_not_between_test)
declare n1, n2, n3 text;
declare s1, s2, s3 text not null;
set n1 := "1";
set n2 := "2";
set n3 := "3";
set s1 := "1";
set s2 := "2";
set s3 := "3";
EXPECT_SQL_TOO(not (s2 not between s1 and s3));
EXPECT_SQL_TOO(s2 not between s3 and s1);
EXPECT_SQL_TOO(1 + (s2 not between s1 and s3) == 1);
EXPECT_SQL_TOO(not (n2 not between n1 and n3));
EXPECT_SQL_TOO(n2 not between n3 and n1);
set n2 := null;
EXPECT_SQL_TOO((n2 not between n1 and n3) is null);
set n2 := "2";
set n1 := null;
EXPECT_SQL_TOO((n2 not between n1 and n3) is null);
set n1 := "1";
set n3 := null;
EXPECT_SQL_TOO((n2 not between n1 and n3) is null);
set n3 := "3";
END_TEST(string_not_between_test)
create proc maybe_commit(do_commit bool not null)
begin
call load_mixed();
begin transaction;
delete from mixed where id = 1;
EXPECT(1 == (select count(*) from mixed)); -- delete successful
if do_commit then
commit transaction;
else
rollback transaction;
end if;
end;
BEGIN_TEST(transaction_mechanics)
call maybe_commit(1);
EXPECT(1 == (select count(*) from mixed)); -- commit successful
call maybe_commit(0);
EXPECT(2 == (select count(*) from mixed)); -- rollback successful
END_TEST(transaction_mechanics)
@attribute(cql:identity=(id, code, bl))
@attribute(cql:generate_copy)
create procedure get_mixed(lim integer not null)
begin
select * from mixed limit lim;
end;
@attribute(cql:generate_copy)
create procedure get_one_from_mixed(id_ integer not null)
begin
declare C cursor for select * from mixed where id = id_;
fetch C;
out C;
end;
BEGIN_TEST(proc_loop_fetch)
declare id_ integer not null;
declare name_ text;
declare code_ long int;
declare flag_ bool;
declare rate_ real;
declare bl_ blob;
declare count, sum integer not null;
call load_mixed();
declare read_cursor cursor for call get_mixed(200);
open read_cursor;
set count := 0;
loop fetch read_cursor into id_, name_, code_, flag_, rate_, bl_
begin
set count := count + 1;
end;
EXPECT(count == 2); -- there should be two rows
END_TEST(proc_loop_fetch)
create proc savepoint_maybe_commit(do_commit bool not null)
begin
call load_mixed();
savepoint foo;
delete from mixed where id = 1;
EXPECT(1 == (select count(*) from mixed)); -- delete successful
if do_commit then
release savepoint foo;
else
rollback transaction to savepoint foo;
end if;
end;
BEGIN_TEST(savepoint_mechanics)
call savepoint_maybe_commit(1);
EXPECT(1 == (select count(*) from mixed)); -- savepoint commit successful
call savepoint_maybe_commit(0);
EXPECT(2 == (select count(*) from mixed)); -- savepoint rollback successful
END_TEST(savepoint_mechanics)
BEGIN_TEST(exists_test)
call load_mixed();
EXPECT((select EXISTS(select * from mixed))); -- exists found rows
delete from mixed;
EXPECT((select NOT EXISTS(select * from mixed))); -- not exists found no rows
END_TEST(exists_test)
create proc bulk_load_mixed(rows_ integer not null)
begin
delete from mixed;
declare i integer not null;
set i := 0;
while i < rows_
begin
insert into mixed values (i, "a name", 12, 1, 5.0, cast(i as blob));
set i := i + 1;
end;
end;
BEGIN_TEST(complex_nested_selects)
create table data(id int, val int);
create table codes(id int, code int);
insert into data values(1, 100);
insert into data values(2, 200);
insert into data values(3, 300);
insert into codes values(1, 1000);
insert into codes values(1, 1001);
insert into codes values(1, 1002);
insert into codes values(2, 2000);
insert into codes values(2, 2001);
insert into codes values(3, 3000);
declare c1 cursor for select id from data as T1 where exists (select * from codes as T2 where T1.id == T2.id and T2.code % 1000 == 1);
declare id_ integer;
declare count_ integer;
loop fetch c1 into id_
begin
EXPECT(case id_ when 1 then 1 when 2 then 1 else 0 end);
end;
declare c2 cursor for
select id, (select count(*) from codes T2 where T2.id = T1.id) as code_count
from data T1
where val >= 7;
loop fetch c2 into id_, count_
begin
EXPECT(count_ == case id_ when 1 then 3 when 2 then 2 when 3 then 1 else 0 end);
end;
END_TEST(complex_nested_selects)
BEGIN_TEST(proc_loop_auto_fetch)
declare count, sum integer not null;
call load_mixed();
declare read_cursor cursor for call get_mixed(200);
open read_cursor;
set count := 0;
set sum := 0;
loop fetch read_cursor
begin
set count := count + 1;
set sum := sum + read_cursor.id;
end;
EXPECT(count == 2); -- there should be two rows
EXPECT(sum == 3); -- id checksum
END_TEST(proc_loop_auto_fetch)
BEGIN_TEST(coalesce)
declare i integer;
set i := null;
EXPECT_SQL_TOO(coalesce(i, i, 2) == 2); -- grab the not null last value
EXPECT_SQL_TOO(ifnull(i, 2) == 2); -- grab the not null last value
set i := nullable(3);
EXPECT_SQL_TOO(coalesce(i, i, 2) == 3); -- grab the not null first value
EXPECT_SQL_TOO(ifnull(i, 2) == 3); -- grab the not null first value
END_TEST(coalesce)
BEGIN_TEST(printf_expression)
EXPECT(printf("%d and %d", 12, 7) == "12 and 7"); -- loose printf ok
EXPECT((select printf("%d and %d", 12, 7)) == "12 and 7"); -- sql printf ok
END_TEST(printf_expression)
BEGIN_TEST(case_with_null)
declare x integer;
set x := null;
set x := case x when 0 then 1 else 2 end;
EXPECT(x == 2); --null only matches the else
END_TEST(case_with_null)
BEGIN_TEST(group_concat)
create table conc_test(id int, name text);
insert into conc_test values (1,"x");
insert into conc_test values (1,"y");
insert into conc_test values (2,"z");
declare C cursor for select id, group_concat(name) as vals from conc_test group by id;
fetch C;
EXPECT(C.id = 1);
EXPECT(C.vals = "x,y");
fetch C;
EXPECT(C.id = 2);
EXPECT(C.vals = "z");
END_TEST(group_concat)
BEGIN_TEST(strftime)
EXPECT((select strftime("%s", "1970-01-01T00:00:03")) == "3"); -- sql strftime ok
EXPECT((select strftime(null, "1970-01-01T00:00:03")) is null); -- strftime null format ok
EXPECT((select strftime("%s", null)) is null); -- strftime null timestring ok
EXPECT((select strftime("%s", "1970-01-01T00:00:03", "+1 day")) == "86403"); -- strftime null timestring ok
EXPECT((select strftime("%W", "now", "+1 month", "start of month", "-3 minutes", "weekday 4")) is not null); -- strftime with multiple modifiers on now ok
END_TEST(strftime)
BEGIN_TEST(cast_expr)
EXPECT((select cast(1.3 as int)) == 1); -- cast expression
END_TEST(cast_expr)
BEGIN_TEST(union_all_test)
declare C cursor for
select 1 as A, 2 as B
union all
select 3 as A, 4 as B;
fetch C;
EXPECT(C.A = 1);
EXPECT(C.B = 2);
fetch C;
EXPECT(C.A = 3);
EXPECT(C.B = 4);
END_TEST(union_all_test)
BEGIN_TEST(union_test)
declare C cursor for
select 1 as A, 2 as B
union
select 1 as A, 2 as B;
fetch C;
EXPECT(C.A = 1);
EXPECT(C.B = 2);
fetch C;
EXPECT(NOT C); -- no more rows
END_TEST(union_test)
BEGIN_TEST(union_test_with_nullable)
declare C cursor for
select nullable(121) as A, 212 as B
union
select nullable(121) as A, 212 as B;
fetch C;
EXPECT(C.A = 121);
EXPECT(C.B = 212);
fetch C;
EXPECT(NOT C);
END_TEST(union_test_with_nullable)
BEGIN_TEST(with_test)
declare C cursor for
with X(A,B) as ( select 1,2)
select * from X;
fetch C;
EXPECT(C.A = 1);
EXPECT(C.B = 2);
fetch C;
EXPECT(NOT C);
END_TEST(with_test)
BEGIN_TEST(with_recursive_test)
declare C cursor for
with recursive
c1(current) as (
select 1
union all
select current+1 from c1
limit 5
),
c2(current) as (
select 6
union all
select current+1 from c2
limit 5
)
select current as X from c1
union all
select current as X from c2;
declare i integer not null;
set i := 1;
loop fetch C
begin
EXPECT(C.X == i); -- iterating over the recursive result
set i := i + 1;
end;
EXPECT(i == 11); -- 10 results matched, 11th did not match
END_TEST(with_recursive_test)
create proc outint(out int1 integer, out int2 integer not null)
begin
declare C1 cursor for select 1;
fetch C1 into int1;
declare C2 cursor for select 2;
fetch C2 into int2;
END;
BEGIN_TEST(fetch_output_param)
declare int1 integer;
declare int2 integer not null;
call outint(int1, int2);
EXPECT(int1 == 1); -- bind output nullable
EXPECT(int2 == 2); -- bind output not nullable
END_TEST(fetch_output_param)
declare function run_test_math(int1 integer not null, out int2 integer) integer not null;
declare function string_create() create text;
declare function string_ref_count(str text) integer not null;
BEGIN_TEST(external_functions)
declare int_out integer;
declare int_result integer not null;
set int_result := run_test_math(100, int_out);
EXPECT(int_out == 500);
EXPECT(int_result == 700);
declare text_result text;
set text_result := string_create();
EXPECT(text_result like "%Hello%");
END_TEST(external_functions)
declare function set_create() create object not null;
declare function set_add(_set object not null, _key text not null) bool not null;
declare function set_contains(_set object not null, _key text not null) bool not null;
BEGIN_TEST(external_set)
-- stress the create and copy semantics
declare _set object not null;
set _set := set_create();
declare _set2 object not null;
set _set2 := set_create();
set _set := _set2; -- this is a copy
EXPECT(nullable(_set) is not null); -- successful create
EXPECT(not set_contains(_set, "garbonzo")); -- initially empty
EXPECT(set_add(_set, "garbonzo")); -- successful addition
EXPECT(set_contains(_set, "garbonzo")); -- key added
EXPECT(not set_add(_set, "garbonzo")); -- duplicate addition
END_TEST(external_set)
BEGIN_TEST(object_notnull)
declare _setNN object not null;
declare _set object;
set _set := nullable(set_create());
set _setNN := ifnull_crash(_set);
EXPECT(_set == _setNN); // should be the same pointer
END_TEST(object_notnull)
BEGIN_TEST(dummy_values)
delete from mixed;
declare i integer not null;
set i := 0;
while (i < 20)
begin
insert into mixed (bl) values (cast(i as blob)) @dummy_seed(i) @dummy_nullables @dummy_defaults;
set i := i + 1;
end;
declare C cursor for select * from mixed;
set i := 0;
while (i < 20)
begin
fetch C;
EXPECT(C.id == i);
EXPECT(C.name == printf("name_%d", i));
EXPECT(C.code == i);
EXPECT(not C.flag == not i);
EXPECT(C.rate == i);
set i := i + 1;
end;
END_TEST(dummy_values)
BEGIN_TEST(blob_basics)
declare s text not null;
set s := "a string";
declare b blob not null;
set b := blob_from_string(s);
declare s2 text not null;
set s2 := string_from_blob(b);
EXPECT(s == s2); -- blob conversion failed
EXPECT(b == blob_from_string("a string"));
EXPECT(b IS blob_from_string("a string"));
EXPECT(b <> blob_from_string("a strings"));
EXPECT(b IS NOT blob_from_string("a strings"));
declare b_null blob;
set b_null := null;
declare s_null text;
set s_null := null;
EXPECT(b_null IS b_null);
EXPECT(s_null IS s_null);
EXPECT(b_null IS NOT b);
EXPECT(s_null IS NOT s);
EXPECT(b_null IS NULL);
EXPECT(s_null IS NULL);
END_TEST(blob_basics)
create proc blob_table_maker()
begin
create table if not exists blob_table(
id integer not null,
b1 blob,
b2 blob not null
);
delete from blob_table;
end;
create proc load_blobs()
begin
call blob_table_maker();
declare i, count integer not null;
set i := 0;
set count := 20;
declare s text not null;
declare b1 blob;
declare b2 blob not null;
while (i < count)
begin
set s := printf("nullable blob %d", i);
set b1 := blob_from_string(s);
set s := printf("not nullable blob %d", i);
set b2 := blob_from_string(s);
insert into blob_table(id, b1, b2) values (i, b1, b2);
set i := i + 1;
end;
end;
BEGIN_TEST(blob_data_manip)
call load_blobs();
declare i, count integer not null;
declare C cursor for select * from blob_table order by id;
set i := 0;
set count := 20;
loop fetch C
begin
declare s1, s2 text;
EXPECT(i == C.id);
set s1 := string_from_blob(c.b1);
EXPECT(s1 == printf("nullable blob %d", i)); -- nullable blob failed to round trip
set s2 := string_from_blob(c.b2);
EXPECT(s2 == printf("not nullable blob %d", i)); -- not nullable blob failed to round trip
set i := i + 1;
end;
EXPECT(i == count); -- wrong number of rows
END_TEST(blob_data_manip)
create procedure get_blob_table()
begin
select * from blob_table;
end;
create procedure load_sparse_blobs()
begin
call blob_table_maker();
declare s text not null;
declare b1 blob;
declare b2 blob not null;
declare i, count integer not null;
set i := 0;
set count := 20;
while (i < count)
begin
set s := printf("nullable blob %d", i);
set b1 := case when i % 2 == 0 then blob_from_string(s) else null end;
set s := printf("not nullable blob %d", i);
set b2 := blob_from_string(s);
insert into blob_table(id, b1, b2) values (i, b1, b2);
set i := i + 1;
end;
end;
BEGIN_TEST(blob_data_manip_nullables)
declare i, count integer not null;
declare C cursor for select * from blob_table order by id;
set i := 0;
set count := 20;
call load_sparse_blobs();
loop fetch C
begin
declare s1, s2 text;
set s1 := string_from_blob(C.b1);
EXPECT(i == C.id);
if i % 2 == 0 then
set s1 := string_from_blob(C.b1);
EXPECT(s1 == printf("nullable blob %d", i)); -- nullable blob failed to round trip
else
EXPECT(C.b1 is null);
end if;
set s2 := string_from_blob(C.b2);
EXPECT(s2 == printf("not nullable blob %d", i)); -- not nullable blob failed to round trip
set i := i + 1;
end;
EXPECT(i == count); -- wrong number of rows
END_TEST(blob_data_manip_nullables)
create proc row_getter(x integer not null, y real not null, z text)
begin
declare C cursor for select x X, y Y, z Z;
fetch C;
out C;
end;
BEGIN_TEST(data_reader)
declare C cursor fetch from call row_getter(1, 2.5, "xyzzy");
EXPECT(C.X == 1);
EXPECT(C.Y == 2.5);
EXPECT(C.Z == "xyzzy");
END_TEST(data_reader)
-- test simple recursive function -- using func syntax!
create procedure fib2 (in arg integer not null, out result integer not null)
begin
if (arg <= 2) then
set result := 1;
else
set result := fib2(arg-1) + fib2(arg-2);
end if;
end;
BEGIN_TEST(recurse_with_proc)
EXPECT(fib2(1) == 1);
EXPECT(fib2(2) == 1);
EXPECT(fib2(3) == 2);
EXPECT(fib2(4) == 3);
EXPECT(fib2(5) == 5);
EXPECT(fib2(6) == 8);
END_TEST(recurse_with_proc)
-- test simple recursive function -- using func syntax!
create procedure fib3 (in arg integer not null, out result integer not null)
begin
if (arg <= 2) then
set result := (select 1); -- for this to be a dml proc
else
set result := fib3(arg-1) + fib3(arg-2);
end if;
end;
BEGIN_TEST(recurse_with_dml_proc)
-- we force all the error handling code to run with this flavor
EXPECT(fib3(1) == 1);
EXPECT(fib3(2) == 1);
EXPECT(fib3(3) == 2);
EXPECT(fib3(4) == 3);
EXPECT(fib3(5) == 5);
EXPECT(fib3(6) == 8);
END_TEST(recurse_with_dml_proc)
BEGIN_TEST(row_id_test)
call load_mixed();
declare C cursor for select rowid from mixed;
declare r integer not null;
set r := 1;
loop fetch C
begin
EXPECT(C.rowid == r);
set r := r + 1;
end;
END_TEST(row_id_test)
BEGIN_TEST(bind_and_fetch_all_types)
declare i integer not null;
declare l long not null;
declare r real not null;
declare b bool not null;
declare s text not null;
declare bl blob not null;
set i := 10;
set l := 1234567890156789L;
set r := 1234.45;
set b := 1;
set s := "string";
set bl := blob_from_string("blob text");
EXPECT(13*i == (select 13*i));
EXPECT(13*l == (select 13*l));
EXPECT(13*r == (select 13*r));
EXPECT(not b == (select not b));
EXPECT(printf("foo %s", s) == (select printf("foo %s", s)));
EXPECT("blob text" == string_from_blob((select bl)));
END_TEST(bind_and_fetch_all_types)
BEGIN_TEST(bind_and_fetch_all_types_nullable)
declare i integer;
declare l long;
declare r real;
declare b bool;
declare s text;
declare bl blob;
set i := 10;
set l := 1234567890156789L;
set r := 1234.45;
set b := 1;
set s := "string";
set bl := blob_from_string("blob text");
EXPECT(13*i == (select 13*i));
EXPECT(13*l == (select 13*l));
EXPECT(13*r == (select 13*r));
EXPECT(not b == (select not b));
EXPECT(printf("foo %s", s) == (select printf("foo %s", s)));
EXPECT("blob text" == string_from_blob((select bl)));
END_TEST(bind_and_fetch_all_types_nullable)
BEGIN_TEST(fetch_all_types_cursor)
declare i integer not null;
declare l long not null;
declare r real not null;
declare b bool not null;
declare s text not null;
declare bl blob not null;
set i := 10;
set l := 1234567890156789L;
set r := 1234.45;
set b := 1;
set s := "string";
set bl := blob_from_string("blob text");
declare C cursor for select i*13 i, l*13 l, r*13 r, not b b, printf("foo %s",s) s, bl bl;
fetch C;
EXPECT(13*i == C.i);
EXPECT(13*l == C.l);
EXPECT(13*r == C.r);
EXPECT(not b == C.b);
EXPECT(printf("foo %s", s) == C.s);
EXPECT("blob text" == string_from_blob(C.bl));
fetch C;
EXPECT(not C);
EXPECT(C.i == 0);
EXPECT(C.l == 0);
EXPECT(C.r == 0);
EXPECT(C.b == 0);
EXPECT(nullable(C.s) is null); -- even though s is not null, it is null... sigh
EXPECT(nullable(c.bl) is null); -- even though bl is not null, it is null... sigh
END_TEST(fetch_all_types_cursor)
BEGIN_TEST(fetch_all_types_cursor_nullable)
declare i integer;
declare l long;
declare r real;
declare b bool;
declare s text;
declare bl blob;
set i := nullable(10);
set l := nullable(1234567890156789L);
set r := nullable(1234.45);
set b := nullable(1);
set s := nullable("string");
set bl := nullable(blob_from_string("blob text"));
declare C cursor for select i*13 i, l*13 l, r*13 r, not b b, printf("foo %s",s) s, bl bl;
fetch C;
EXPECT(C);
EXPECT(13*i == C.i);
EXPECT(13*l == C.l);
EXPECT(13*r == C.r);
EXPECT(not b == C.b);
EXPECT(printf("foo %s", s) == C.s);
EXPECT("blob text" == string_from_blob(C.bl));
fetch C;
EXPECT(not C);
EXPECT(C.i is null);
EXPECT(C.l is null);
EXPECT(C.r is null);
EXPECT(C.b is null);
EXPECT(nullable(C.s) is null);
EXPECT(nullable(c.bl) is null);
END_TEST(fetch_all_types_cursor_nullable)
BEGIN_TEST(concat_pri)
-- concat is weaker than ~
EXPECT('-22' == (SELECT ~1||2));
EXPECT('-22' == (SELECT (~1)||2));
-- if the order was otherwise we'd get a different result...
-- a semantic error actually
EXPECT(-13 == (SELECT ~CAST(1||2 as INTEGER)));
--- negation is stronger than CONCAT
EXPECT('01' == (select -0||1));
EXPECT('01' == (select (-0)||1));
-- if the order was otherwise we'd get a different result...
-- a semantic error actually
EXPECT(-1 == (select -CAST(0||1 as INTEGER)));
END_TEST(concat_pri)
-- Test precedence of multiply with (* / %) with add (+ -)
BEGIN_TEST(multiply_pri)
EXPECT_SQL_TOO(1+2*3 == 7);
EXPECT_SQL_TOO(1+2*3+4*5 == 27);
EXPECT_SQL_TOO(1+2/2 == 2);
EXPECT_SQL_TOO(1+2/2*4 == 5);
EXPECT_SQL_TOO(1+2/2*4 == 5);
EXPECT_SQL_TOO(1*2+3 == 5);
EXPECT_SQL_TOO(1*2+6/3 == 4);
EXPECT_SQL_TOO(1*2+6/3 == 4);
EXPECT_SQL_TOO(2*3*4+3/3 == 25);
EXPECT_SQL_TOO(-5*5 == -25);
EXPECT_SQL_TOO(5-5*5 == -20);
EXPECT_SQL_TOO(4+5*5 == 29);
EXPECT_SQL_TOO(4*5+5 == 25);
EXPECT_SQL_TOO(4*4-1 == 15);
EXPECT_SQL_TOO(10-4*2 == 2);
EXPECT_SQL_TOO(25%3/2 == 0);
EXPECT_SQL_TOO(25/5%2 == 1);
EXPECT_SQL_TOO(25*5%2 == 1);
EXPECT_SQL_TOO(25*5%4%2 == 1);
EXPECT_SQL_TOO(25-5%2 == 24);
EXPECT_SQL_TOO(15%3-2 == -2);
EXPECT_SQL_TOO(15-30%4 == 13);
EXPECT_SQL_TOO(15-30/2 == 0);
EXPECT_SQL_TOO(15/5-3 == 0);
EXPECT_SQL_TOO(15*5-3 == 72);
EXPECT_SQL_TOO(5*5-3 == 22);
EXPECT_SQL_TOO(25+5%2 == 26);
EXPECT_SQL_TOO(15%3+2 == 2);
EXPECT_SQL_TOO(15+30%4 == 17);
EXPECT_SQL_TOO(15+30/2 == 30);
EXPECT_SQL_TOO(15/5+3 == 6);
EXPECT_SQL_TOO(15*5+3 == 78);
EXPECT_SQL_TOO(5*5+3 == 28);
EXPECT_SQL_TOO(5*12/3 == 20);
EXPECT_SQL_TOO(5*12/3%7 == 6);
EXPECT_SQL_TOO(9%12/3*7 == 21);
END_TEST(multiply_pri)
-- Test precedence of binary (<< >> & |) with add (+ -)
BEGIN_TEST(shift_pri)
EXPECT_SQL_TOO(10<<1+1 == 40);
EXPECT_SQL_TOO(1+10<<1 == 22);
EXPECT_SQL_TOO(10<<1-1 == 10);
EXPECT_SQL_TOO(10<<4-1 == 80);
EXPECT_SQL_TOO(10-1<<1 == 18);
EXPECT_SQL_TOO(10>>3-1 == 2);
EXPECT_SQL_TOO(11-1>>1 == 5);
EXPECT_SQL_TOO(10>>1+1 == 2);
EXPECT_SQL_TOO(1+10>>1 == 5);
EXPECT_SQL_TOO(10&1+1 == 2);
EXPECT_SQL_TOO(1+10&1 == 1);
EXPECT_SQL_TOO(1+10&7 == 3);
EXPECT_SQL_TOO(10-1&7 == 1);
EXPECT_SQL_TOO(10-4&7 == 6);
EXPECT_SQL_TOO(10|1+1 == 10);
EXPECT_SQL_TOO(10|4 == 14);
EXPECT_SQL_TOO(1+10|4 == 15);
EXPECT_SQL_TOO(10-1|7 == 15);
EXPECT_SQL_TOO(10-3|7 == 7);
EXPECT_SQL_TOO(6&4 == 4);
EXPECT_SQL_TOO(6&4|12 == 12);
EXPECT_SQL_TOO(6&4|12|2 == 14);
EXPECT_SQL_TOO(6&4|12|2|2 == 14);
EXPECT_SQL_TOO(6&4|12|2|2<<3 == 112);
EXPECT_SQL_TOO(6&4|12|2|2<<3>>3<<2 == 56);
END_TEST(shift_pri)
-- Test precedence of inequality (< <= > >=) with binary (<< >> & |)
BEGIN_TEST(inequality_pri)
EXPECT_SQL_TOO(10 < 10<<1);
EXPECT_SQL_TOO(10 <= 10<<1);
EXPECT_SQL_TOO(10 > 10>>1);
EXPECT_SQL_TOO(10 >= 10>>1);
EXPECT_SQL_TOO(0 >= 0>>1);
EXPECT_SQL_TOO(0 <= 0<<1);
EXPECT_SQL_TOO(5 >= 0<<31);
EXPECT_SQL_TOO(5 > 0<<31);
EXPECT_SQL_TOO(16>>1 >= 4<<1);
EXPECT_SQL_TOO(4<<1 <= 16>>1);
EXPECT_SQL_TOO(16>>1 > 3<<1);
EXPECT_SQL_TOO(16>>1 >= 3<<1);
EXPECT_SQL_TOO(16>>1 <= 4<<1);
EXPECT_SQL_TOO(16&8 <= 4|8);
EXPECT_SQL_TOO(16&8 < 15);
EXPECT_SQL_TOO(16&8 <= 15);
EXPECT_SQL_TOO(16&17 > 4);
EXPECT_SQL_TOO(16&17 >= 4);
EXPECT_SQL_TOO(6 > 4&5);
EXPECT_SQL_TOO(6 >= 4&5);
EXPECT_SQL_TOO(6 > 4|5);
EXPECT_SQL_TOO(6 >= 4|5);
EXPECT_SQL_TOO(3|8 >= 4&5);
EXPECT_SQL_TOO(3|8 > 4&5);
EXPECT_SQL_TOO(3|4 >= 4&5);
EXPECT_SQL_TOO(3|4 > 4&5);
EXPECT_SQL_TOO(4&5 <= 3|8);
EXPECT_SQL_TOO(4&5 < 3|8);
EXPECT_SQL_TOO(4&5 <= 3|4);
EXPECT_SQL_TOO(4&5 < 3|4);
EXPECT_SQL_TOO(4|3 <= 3|4);
EXPECT_SQL_TOO(4&5 <= 5&4);
EXPECT_SQL_TOO(4&5 >= 5&4);
EXPECT_SQL_TOO(4&5 >= 5&4 > 0);
EXPECT_SQL_TOO(4&5 >= 5&4 <= 1);
EXPECT_SQL_TOO(4&5 >= 5&4 >= 1);
EXPECT_SQL_TOO(3&10 <= 100 <= 3&2);
EXPECT_SQL_TOO((3&10 <= 100) <= 3&2 == 3&10 <= 100 <= 3&2);
EXPECT_SQL_TOO(5 > 3 > -1 > 0);
END_TEST(inequality_pri)
-- Test precedence of equality (= == != <> LIKE GLOB MATCH IN NOT IN IS_NOT_NULL IS_NULL) with binary (< <= > >=)
BEGIN_TEST(equality_pri)
declare null_ int;
EXPECT_SQL_TOO(5 == 5);
EXPECT_SQL_TOO(5 < 6 == 6 > 5);
EXPECT_SQL_TOO(5 <= 6 == 6 >= 5);
EXPECT_SQL_TOO(5 < 6 == 6 >= 5);
EXPECT_SQL_TOO(5 <= 6 == 6 > 5);
EXPECT_SQL_TOO(5 <= 6 == 1);
EXPECT_SQL_TOO(1 == 5 < 6);
EXPECT_SQL_TOO(1 == 5 <= 6);
EXPECT_SQL_TOO(1 == 0 + 1);
EXPECT_SQL_TOO(1 == 1 + 0 * 1);
EXPECT_SQL_TOO(1 == 0 * 1 + 1);
EXPECT_SQL_TOO(1 == 0 * -1 + 1);
EXPECT_SQL_TOO(1 + 1 == 3 - 1 == 1);
EXPECT_SQL_TOO(1 + 1 == 3 - 1 != 0);
EXPECT_SQL_TOO(1 + 1 == 3 - 1 != 30);
EXPECT_SQL_TOO(5 = 5);
EXPECT_SQL_TOO(5 < 6 = 6 > 5);
EXPECT_SQL_TOO(5 <= 6 = 6 >= 5);
EXPECT_SQL_TOO(5 < 6 = 6 >= 5);
EXPECT_SQL_TOO(5 <= 6 = 6 > 5);
EXPECT_SQL_TOO(5 <= 6 = 1);
EXPECT_SQL_TOO(1 = 5 < 6);
EXPECT_SQL_TOO(1 = 5 <= 6);
EXPECT_SQL_TOO(1 = 0 + 1);
EXPECT_SQL_TOO(1 = 1 + 0 * 1);
EXPECT_SQL_TOO(1 = 0 * 1 + 1);
EXPECT_SQL_TOO(1 = 0 * -1 + 1);
EXPECT_SQL_TOO(1 + 1 = 3 - 1 = 1);
EXPECT_SQL_TOO(1 + 1 = 3 - 1 <> 0);
EXPECT_SQL_TOO(1 + 1 == 3 - 1 <> 0);
EXPECT_SQL_TOO(1 + 1 = 3 - 1 <> 30);
EXPECT_SQL_TOO(1 + 1 == 3 - 1 <> 30);
EXPECT_SQL_TOO(1 == 1 <> 0 == 1 = 1 != 0 = 1 == 1);
-- CQL requires both operands of binary_like to be text, so there is no way to test
-- order of operations with <, <=, etc. When concat (||) is implemented, it is
-- possible to write a test case.
-- CQL requires both operands of binary_like to be text, so there is no way to test
-- order of operations with <, <=, etc. When concat (||) is implemented, it is
-- possible to write a test case.
-- GLOB must be inside a select statement so it also cannot be tested
-- MATCH can only be in a select statement, no test necessary
-- Test IS_NOT and IS
EXPECT_SQL_TOO(nullable(1) + nullable(1) IS NULL == 0);
EXPECT_SQL_TOO(nullable(1) + nullable(1) IS NOT NULL == 1);
EXPECT_SQL_TOO(nullable(1) + nullable(1) IS NULL + 1 == 0); -- Evaluated as: (1 + 1) IS (NULL + 1) == 0;
EXPECT_SQL_TOO(nullable(1) + nullable(1) IS NOT NULL);
EXPECT_SQL_TOO((nullable(1) + nullable(1) IS NOT NULL) + 1 == 2);
EXPECT_SQL_TOO(1 + 1 IS NOT NULL + 1 == 1);
EXPECT_SQL_TOO(1 + NULL IS NULL);
EXPECT_SQL_TOO(NULL + 1 IS NULL);
EXPECT_SQL_TOO(NULL * 1 IS NULL);
EXPECT_SQL_TOO(NULL * 0 IS NULL);
EXPECT_SQL_TOO(0 * NULL * 0 IS NULL);
EXPECT_SQL_TOO(NULL > 0 IS NULL);
EXPECT_SQL_TOO(NULL >= 1 IS NULL);
EXPECT_SQL_TOO(NULL < 2 IS NULL);
EXPECT_SQL_TOO(NULL <= 3 IS NULL);
EXPECT_SQL_TOO(1 + NULL == 3 IS NULL);
EXPECT_SQL_TOO(1 + NULL != 3 IS NULL);
EXPECT_SQL_TOO(1 + NULL <> 3 IS NULL);
EXPECT_SQL_TOO(1 = NULL * 1 + 1 IS NULL);
EXPECT_SQL_TOO(1 = NULL * -1 + 1 IS NULL);
EXPECT_SQL_TOO(1 + NULL = 3 - 1 = 1 IS NULL);
EXPECT_SQL_TOO(1 + NULL = 3 - 1 <> 0 IS NULL);
EXPECT_SQL_TOO(1 + NULL == 3 - 1 <> 0 IS NULL);
EXPECT_SQL_TOO(1 + NULL = 3 - 1 <> 30 IS NULL);
EXPECT_SQL_TOO(1 + NULL == 3 - 1 <> 30 IS NULL);
EXPECT_SQL_TOO((NULL IS NOT NULL) == 0);
EXPECT_SQL_TOO(nullable(1) + nullable(1) IS NOT NULL);
EXPECT_SQL_TOO(null_ == 3 IS NULL);
EXPECT_SQL_TOO(((null_ == 3) IS NULL) == 1);
EXPECT_SQL_TOO((null_ == 3 IS NULL) == 1);
EXPECT_SQL_TOO((null_ == 3 IS NULL) == 1);
EXPECT_SQL_TOO(nullable(null_ == 3 IS NULL) IS NOT NULL);
EXPECT_SQL_TOO((1 + NULL == 3 IS NOT NULL) == 0);
EXPECT_SQL_TOO((1 + NULL = 3 - 1 <> 0 IS NOT NULL) == 0);
EXPECT_SQL_TOO((1 + NULL == 3 - 1 <> 0 IS NOT NULL) == 0);
EXPECT_SQL_TOO((1 + NULL = 3 - 1 <> 30 IS NOT NULL) == 0);
-- Basic IS tests, all non null
EXPECT_SQL_TOO(2 * 3 IS 4 + 2);
EXPECT_SQL_TOO(2 * 3 IS 4 + 2);
EXPECT_SQL_TOO(10-4*2 IS 2);
EXPECT_SQL_TOO(25%3/2 IS 0);
EXPECT_SQL_TOO(25/5%2 IS 1);
EXPECT_SQL_TOO(25*5%2 IS 1);
EXPECT_SQL_TOO(25*5%4%2 IS 1);
EXPECT_SQL_TOO(25-5%2 IS 24);
EXPECT_SQL_TOO(15%3-2 IS -2);
EXPECT_SQL_TOO(15-30%4 IS 13);
EXPECT_SQL_TOO(15-30/2 IS 0);
EXPECT_SQL_TOO(15/5-3 IS 0);
EXPECT_SQL_TOO(15*5-3 IS 72);
EXPECT_SQL_TOO(5*5-3 IS 22);
EXPECT_SQL_TOO(25+5%2 IS 26);
EXPECT_SQL_TOO(15%3+2 IS 2);
EXPECT_SQL_TOO(15+30%4 IS 17);
EXPECT_SQL_TOO(15+30/2 IS 30);
EXPECT_SQL_TOO(15/5+3 IS 6);
EXPECT_SQL_TOO(15*5+3 IS 78);
EXPECT_SQL_TOO(5*5+3 IS 28);
EXPECT_SQL_TOO(5*12/3 IS 20);
EXPECT_SQL_TOO(5*12/3%7 IS 6);
EXPECT_SQL_TOO(9%12/3*7 IS 21);
-- IS tests with null
EXPECT_SQL_TOO(1 IS 1 == 1 IS 1 == 1);
EXPECT_SQL_TOO(5 > 6 IS 2 < 1);
EXPECT_SQL_TOO(5 <= 6 IS 2 > 1);
EXPECT_SQL_TOO(5 == 5 IS 2 > 1);
EXPECT_SQL_TOO("1" IS "2" == 0);
EXPECT_SQL_TOO(nullable("1") IS NULL == 0);
EXPECT_SQL_TOO(NULL IS "1" == 0);
EXPECT_SQL_TOO(NULL IS NULL);
EXPECT_SQL_TOO(null_ == 0 IS NULL);
EXPECT_SQL_TOO(NULL IS NULL == 1 != 0);
EXPECT_SQL_TOO(NULL IS NULL = 1 <> 0);
EXPECT_SQL_TOO(null_ == null_ IS NULL);
EXPECT_SQL_TOO(NULL IS (null_ == 0));
EXPECT_SQL_TOO(NULL IS NOT NULL == 0);
EXPECT_SQL_TOO((NULL IS NOT NULL) == 0);
EXPECT_SQL_TOO(nullable(5) > nullable(2) IS NOT NULL);
EXPECT_SQL_TOO(NULL IS NOT 2 < 3);
EXPECT_SQL_TOO(nullable(NULL IS 2 < 3) IS NOT NULL);
EXPECT_SQL_TOO(NULL IS NULL + 1);
EXPECT_SQL_TOO(NULL IS 1 + NULL);
EXPECT_SQL_TOO(NULL IS 1 << NULL);
-- Test IN
EXPECT_SQL_TOO(3 IN (1, 2) == 0);
EXPECT_SQL_TOO(3 + 2 IN (1, 5));
EXPECT_SQL_TOO(3 / 3 IN (1, 2));
EXPECT_SQL_TOO(3 / 3 IN (1, 2) IN (1));
EXPECT_SQL_TOO(1 IN (NULL, 1));
EXPECT(NOT (1 IN (NULL, 5)));
EXPECT((SELECT NULL IS (NOT (1 IN (NULL, 5))))); -- known sqlite and CQL IN difference for NULL
EXPECT_SQL_TOO(NULL IS (NULL IN (1)));
-- Test NOT IN
EXPECT_SQL_TOO(3 NOT IN (1, 2) == 1);
EXPECT_SQL_TOO(1 NOT IN (1, 2) == 0);
EXPECT_SQL_TOO(3 + 1 NOT IN (1, 5));
EXPECT_SQL_TOO(3 / 1 NOT IN (1, 2));
EXPECT_SQL_TOO(3 / 1 NOT IN (1, 2) NOT IN (0));
EXPECT_SQL_TOO(NOT (1 NOT IN (NULL, 1)));
EXPECT(1 NOT IN (NULL, 5));
EXPECT((SELECT NULL IS (1 NOT IN (NULL, 5)))); -- known sqlite and CQL IN difference for NULL
EXPECT_SQL_TOO(NULL IS (NULL NOT IN (1)));
declare x text;
set x := NULL;
EXPECT_SQL_TOO((x IN ("foo", "goo")) IS NULL);
EXPECT_SQL_TOO((x NOT IN ("foo", "goo")) IS NULL);
-- Test IS TRUE and IS FALSE
EXPECT_SQL_TOO(1 is true);
EXPECT_SQL_TOO(0 is false);
EXPECT_SQL_TOO(not 0 is true);
EXPECT_SQL_TOO(not 1 is false);
EXPECT_SQL_TOO(not null is false);
EXPECT_SQL_TOO(not null is true);
-- Test IS NOT TRUE and IS NOT FALSE
EXPECT_SQL_TOO(not 1 is not true);
EXPECT_SQL_TOO(not 0 is not false);
EXPECT_SQL_TOO(0 is not true);
EXPECT_SQL_TOO(1 is not false);
EXPECT_SQL_TOO(null is not false);
EXPECT_SQL_TOO(null is not true);
-- priority of same
EXPECT_SQL_TOO(not (1>=0 is false));
EXPECT_SQL_TOO(not ((1>=0) is false));
EXPECT_SQL_TOO(1 >= (0 is false));
EXPECT_SQL_TOO(-1 > -2 is not false);
EXPECT_SQL_TOO((-1 > -2) is not false);
EXPECT_SQL_TOO(not -1 > (-2 is not false));
EXPECT_SQL_TOO(-1 > -2 is true);
EXPECT_SQL_TOO((-1 > -2) is true);
EXPECT_SQL_TOO(not -1 > (-2 is true));
EXPECT_SQL_TOO(-5 > -2 is not true);
EXPECT_SQL_TOO((-5 > -2) is not true);
EXPECT_SQL_TOO(not -5 > (-2 is not true));
-- https://sqlite.org/forum/forumpost/70e78ad16a
--
-- sqlite> select false is true < false;
-- 1
-- sqlite> select sqlite_version();
-- 3.32.3
--
-- vs.
--
-- PostgreSQL> select false is true < false;
-- false
--
-- When CQL emits this operator, it naturally adds parens around (false is true)
-- because is true binds weaker than < which ensures the "correct" eval order even
-- though SQLite would do it the other way. CQL is like other SQL systems in that "is true"
-- is an operator. In SQLite the way it works is that if the right operator of "IS" happens
-- to the the literal "true" then you get "is true" behavior.
-- This is wrong. And hard to emulate. CQL forces it the normal way with parens.
-- SQLite will see "not ((false is true) < false)";
--
-- This may be fixed in future SQLites, but even if that happens the below will still pass.
--
EXPECT_SQL_TOO(not(false is true < false));
END_TEST(equality_pri)
BEGIN_TEST(between_pri)
-- between is the same as = but binds left to right
EXPECT_SQL_TOO(0 == (1=2 between 2 and 2));
EXPECT_SQL_TOO(1 == (1=(2 between 2 and 2)));
EXPECT_SQL_TOO(0 == ((1=2) between 2 and 2));
LET four := 4;
-- verifying binding when = is on the right, still left to right
EXPECT_SQL_TOO(0 == (0 between -2 and -1 = four));
EXPECT_SQL_TOO(0 == ((0 between -2 and -1) = four));
EXPECT_SQL_TOO(1 == (0 between -2 and (-1 = four)));
-- not is weaker than between
let neg := -1;
EXPECT_SQL_TOO(0 == (not 0 between neg and 2));
EXPECT_SQL_TOO(1 == ((not 0) between neg and 2));
EXPECT_SQL_TOO(0 == (not (0 between neg and 2)));
-- between binds left to right
EXPECT_SQL_TOO(0 == (0 between 0 and 3 between 2 and 3));
EXPECT_SQL_TOO(0 == ((0 between 0 and 3) between 2 and 3));
EXPECT_SQL_TOO(1 == (0 between 0 and (3 between 2 and 3)));
-- nested betweens are actually not ambiguous
EXPECT_SQL_TOO(1 == (0 between 1 between 3 and 4 and (3 between 2 and 3)));
EXPECT_SQL_TOO(1 == (0 between (1 between 3 and 4) and (3 between 2 and 3)));
END_TEST(between_pri)
-- AND tests with = == != <> IS IS_NOT IN NOT IN
BEGIN_TEST(and_pri)
declare null_ int;
EXPECT_SQL_TOO(3 + 3 AND 5);
EXPECT_SQL_TOO((3 + 3 AND 0) == 0);
EXPECT_SQL_TOO((NULL AND true) IS NULL);
EXPECT_SQL_TOO((NULL AND true = null_) IS NULL);
EXPECT_SQL_TOO(NOT (NULL AND nullable(true) IS NULL));
EXPECT_SQL_TOO((NULL AND false) == 0);
EXPECT_SQL_TOO(NOT (NULL AND false));
EXPECT_SQL_TOO(1 AND false == false);
EXPECT_SQL_TOO(1 AND false = false);
EXPECT_SQL_TOO(1 AND true != false);
EXPECT_SQL_TOO(1 AND true <> false);
EXPECT_SQL_TOO(5 IS 5 AND 2 IS 2);
EXPECT_SQL_TOO(nullable(5) IS NOT NULL AND 2 IS 2);
EXPECT_SQL_TOO(nullable(5) IS NOT NULL AND 2 IS 2);
EXPECT_SQL_TOO(5 AND false + 1);
EXPECT_SQL_TOO(5 AND false * 1 + 1);
EXPECT_SQL_TOO(5 AND false >> 4 >= -1);
EXPECT_SQL_TOO(5 AND false | 4 & 12);
EXPECT_SQL_TOO(5 AND 6 / 3);
EXPECT_SQL_TOO((5 AND 25 % 5) == false);
EXPECT_SQL_TOO(5 AND false IN (0));
EXPECT_SQL_TOO(5 AND true NOT IN (false));
EXPECT_SQL_TOO(NOT(5 AND false NOT IN (false)));
END_TEST(and_pri)
-- Test AND with OR
BEGIN_TEST(or_pri)
-- The following tests show that if AND and OR were evaluated from
-- left to right, then the output would be different
EXPECT_SQL_TOO((0 OR 1 OR 1 AND 0 OR 0) != ((((0 OR 1) OR 1) AND 0) OR 0));
EXPECT_SQL_TOO((1 OR 1 AND 0 AND 1 AND 0) != ((((1 OR 1) AND 0) AND 1) AND 0));
EXPECT_SQL_TOO((0 OR 1 OR 1 AND 0 AND 1) != ((((0 OR 1) OR 1) AND 0) AND 1));
EXPECT_SQL_TOO((1 OR 1 OR 1 AND 0 AND 0) != ((((1 OR 1) OR 1) AND 0) AND 0));
EXPECT_SQL_TOO((1 OR 1 OR 1 AND 0 OR 0) != ((((1 OR 1) OR 1) AND 0) OR 0));
EXPECT_SQL_TOO((1 AND 1 AND 1 OR 1 AND 0) != ((((1 AND 1) AND 1) OR 1) AND 0));
EXPECT_SQL_TOO((1 OR 0 AND 0 AND 1 OR 0) != ((((1 OR 0) AND 0) AND 1) OR 0));
EXPECT_SQL_TOO((1 AND 1 OR 0 AND 0 AND 1) != ((((1 AND 1) OR 0) AND 0) AND 1));
EXPECT_SQL_TOO((1 OR 0 OR 0 OR 0 AND 0) != ((((1 OR 0) OR 0) OR 0) AND 0));
EXPECT_SQL_TOO((1 OR 0 AND 0 OR 1 AND 0) != ((((1 OR 0) AND 0) OR 1) AND 0));
EXPECT_SQL_TOO((1 OR 1 AND 1 AND 1 AND 0) != ((((1 OR 1) AND 1) AND 1) AND 0));
EXPECT_SQL_TOO((0 AND 0 OR 1 OR 0 AND 0) != ((((0 AND 0) OR 1) OR 0) AND 0));
EXPECT_SQL_TOO((0 OR 1 OR 1 AND 0 AND 0) != ((((0 OR 1) OR 1) AND 0) AND 0));
EXPECT_SQL_TOO((1 AND 1 AND 1 OR 0 AND 0) != ((((1 AND 1) AND 1) OR 0) AND 0));
EXPECT_SQL_TOO((1 OR 1 OR 1 AND 0 AND 1) != ((((1 OR 1) OR 1) AND 0) AND 1));
EXPECT_SQL_TOO((1 OR 0 OR 0 OR 0 AND 0) != ((((1 OR 0) OR 0) OR 0) AND 0));
END_TEST(or_pri)
-- Take some priority tests and replace constants with nullable variables
BEGIN_TEST(nullable_test)
let x0 := nullable(0);
let x1 := nullable(1);
let x2 := nullable(2);
let x3 := nullable(3);
let x4 := nullable(4);
let x5 := nullable(5);
let x6 := nullable(6);
let x7 := nullable(7);
let x8 := nullable(8);
let x9 := nullable(9);
declare temp0 integer;
declare temp1 integer;
declare temp2 integer;
declare temp3 integer;
declare temp4 integer;
set temp0 := nullable(27);
EXPECT_SQL_TOO(x1+x2*x3+x4*x5 == temp0);
EXPECT_SQL_TOO(x1+x2/x2 == x2);
EXPECT_SQL_TOO(x1+x2/x2*x4 == x5);
EXPECT_SQL_TOO(x1+x2/x2*x4 == x5);
EXPECT_SQL_TOO(x1*x2+x3 == x5);
EXPECT_SQL_TOO(x1*x2+x6/x3 == x4);
EXPECT_SQL_TOO(x1*x2+x6/x3 == x4);
set temp0 := nullable(25);
EXPECT_SQL_TOO(x2*x3*x4+x3/x3 == temp0);
set temp0 := nullable(-25);
EXPECT_SQL_TOO(-x5*x5 == temp0);
set temp0 := nullable(-20);
EXPECT_SQL_TOO(x5-x5*x5 == temp0);
set temp0 := nullable(29);
EXPECT_SQL_TOO(x4+x5*x5 == temp0);
set temp0 := nullable(25);
EXPECT_SQL_TOO(x4*x5+x5 == temp0);
set temp0 := nullable(15);
EXPECT_SQL_TOO(x4*x4-x1 == temp0);
set temp0 := nullable(10);
EXPECT_SQL_TOO(10-x4*x2 == x2);
set temp0 := nullable(10);
set temp1 := nullable(40);
EXPECT_SQL_TOO(temp0<<x1+x1 == temp1);
set temp1 := nullable(22);
EXPECT_SQL_TOO(x1+temp0<<x1 == temp1);
EXPECT_SQL_TOO(temp0<<x1-x1 == temp0);
set temp1 := nullable(80);
EXPECT_SQL_TOO(temp0<<x4-x1 == temp1);
set temp1 := nullable(18);
EXPECT_SQL_TOO(temp0-x1<<x1 == temp1);
EXPECT_SQL_TOO(temp0>>x3-x1 == x2);
set temp1 := nullable(11);
EXPECT_SQL_TOO(temp1-x1>>x1 == x5);
EXPECT_SQL_TOO(temp0>>x1+x1 == x2);
EXPECT_SQL_TOO(x1+temp0>>x1 == x5);
EXPECT_SQL_TOO(temp0&x1+x1 == x2);
EXPECT_SQL_TOO(x1+temp0&x1 == x1);
EXPECT_SQL_TOO(x1+temp0&x7 == x3);
EXPECT_SQL_TOO(temp0-x1&x7 == x1);
EXPECT_SQL_TOO(temp0-x4&x7 == x6);
EXPECT_SQL_TOO(temp0|x1+x1 == temp0);
set temp1 := nullable(14);
EXPECT_SQL_TOO(temp0|x4 == temp1);
set temp1 := nullable(15);
EXPECT_SQL_TOO(x1+temp0|x4 == temp1);
EXPECT_SQL_TOO(temp0-x1|x7 == temp1);
EXPECT_SQL_TOO(temp0-x3|x7 == x7);
set temp1 := nullable(12);
EXPECT_SQL_TOO(x6&x4 == x4);
EXPECT_SQL_TOO(x6&x4|temp1 == temp1);
set temp2 := nullable(14);
EXPECT_SQL_TOO(x6&x4|temp1|x2 == temp2);
EXPECT_SQL_TOO(x6&x4|temp1|x2|x2 == temp2);
set temp2 := nullable(112);
EXPECT_SQL_TOO(x6&x4|temp1|x2|x2<<x3 == temp2);
set temp2 := nullable(56);
EXPECT_SQL_TOO(x6&x4|temp1|x2|x2<<x3>>x3<<x2 == temp2);
EXPECT_SQL_TOO(temp0 < temp0<<x1);
EXPECT_SQL_TOO(temp0 <= temp0<<x1);
set temp1 := nullable(31);
EXPECT_SQL_TOO(x5 >= x0<<temp1);
EXPECT_SQL_TOO(x5 > x0<<temp1);
set temp1 := nullable(16);
EXPECT_SQL_TOO(temp1>>x1 >= x4<<x1);
EXPECT_SQL_TOO(x4<<x1 <= temp1>>x1);
EXPECT_SQL_TOO(temp1>>x1 > x3<<x1);
EXPECT_SQL_TOO(temp1>>x1 >= x3<<x1);
EXPECT_SQL_TOO(temp1>>x1 <= x4<<x1);
EXPECT_SQL_TOO(temp1&x8 <= x4|x8);
set temp2 := nullable(15);
EXPECT_SQL_TOO(temp1&8 < temp2);
EXPECT_SQL_TOO(x6 > x4|x5);
EXPECT_SQL_TOO(x6 >= x4|x5);
EXPECT_SQL_TOO(x4&x5 <= x3|x4);
EXPECT_SQL_TOO(x4&x5 < x3|x4);
EXPECT_SQL_TOO(x4|x3 <= x3|x4);
EXPECT_SQL_TOO(x4&x5 <= x5&x4);
EXPECT_SQL_TOO(x4&x5 >= x5&x4);
EXPECT_SQL_TOO(x4&x5 >= x5&x4 > x0);
EXPECT_SQL_TOO(x4&x5 >= x5&x4 <= x1);
EXPECT_SQL_TOO(x4&x5 >= x5&x4 >= x1);
set temp1 := nullable(100);
EXPECT_SQL_TOO(x3&temp0 <= temp1 <= x3&x2);
EXPECT_SQL_TOO((x3&temp0 <= temp1) <= x3&x2 == x3&temp0 <= temp1 <= x3&x2);
EXPECT_SQL_TOO(x5 > x3 > -x1 > x0);
set temp1 := nullable(30);
EXPECT_SQL_TOO(x5 == x5);
EXPECT_SQL_TOO(x5 < x6 == x6 > x5);
EXPECT_SQL_TOO(x5 <= x6 == x6 >= x5);
EXPECT_SQL_TOO(x5 < x6 == x6 >= x5);
EXPECT_SQL_TOO(x5 <= x6 == x6 > x5);
EXPECT_SQL_TOO(x5 <= x6 == x1);
EXPECT_SQL_TOO(x1 == x5 < x6);
EXPECT_SQL_TOO(x1 == x5 <= x6);
EXPECT_SQL_TOO(x1 == x0 + x1);
EXPECT_SQL_TOO(x1 == x1 + x0 * x1);
EXPECT_SQL_TOO(x1 == x0 * x1 + x1);
EXPECT_SQL_TOO(x1 == x0 * -x1 + x1);
EXPECT_SQL_TOO(x1 + x1 == x3 - x1 == x1);
EXPECT_SQL_TOO(x1 + x1 == x3 - x1 != x0);
EXPECT_SQL_TOO(x1 + x1 == x3 - x1 != temp1);
EXPECT_SQL_TOO(x5 = x5);
EXPECT_SQL_TOO(x5 < x6 = x6 > x5);
EXPECT_SQL_TOO(x5 <= x6 = x6 >= x5);
EXPECT_SQL_TOO(x5 < x6 = x6 >= x5);
EXPECT_SQL_TOO(x5 <= x6 = x6 > x5);
EXPECT_SQL_TOO(x5 <= x6 = x1);
EXPECT_SQL_TOO(x1 = x5 < x6);
EXPECT_SQL_TOO(x1 = x5 <= x6);
EXPECT_SQL_TOO(x1 = x0 + x1);
EXPECT_SQL_TOO(x1 = x1 + x0 * x1);
EXPECT_SQL_TOO(x1 = x0 * x1 + x1);
EXPECT_SQL_TOO(x1 = x0 * -x1 + x1);
EXPECT_SQL_TOO(x1 + x1 = x3 - x1 = x1);
EXPECT_SQL_TOO(x1 + x1 = x3 - x1 <> x0);
EXPECT_SQL_TOO(x1 + x1 == x3 - x1 <> x0);
EXPECT_SQL_TOO(x1 + x1 = x3 - x1 <> temp1);
EXPECT_SQL_TOO(x1 + x1 == x3 - x1 <> temp1);
set temp1 := nullable(30);
declare temp_null integer;
set temp_null := NULL;
EXPECT_SQL_TOO(x1 + x1 IS NULL == x0);
EXPECT_SQL_TOO(x1 + x1 IS NOT NULL == x1);
EXPECT_SQL_TOO(x1 + x1 IS NULL + x1 == x0);
EXPECT_SQL_TOO(x1 + x1 IS NOT NULL);
EXPECT_SQL_TOO((x1 + x1 IS NOT NULL) + x1 == x2);
EXPECT_SQL_TOO(x1 + x1 IS NOT NULL + x1 == x1);
EXPECT_SQL_TOO(x1 + NULL IS NULL);
EXPECT_SQL_TOO(NULL + x1 IS NULL);
EXPECT_SQL_TOO(NULL * x1 IS NULL);
EXPECT_SQL_TOO(NULL * x0 IS NULL);
EXPECT_SQL_TOO(x0 * NULL * x0 IS NULL);
EXPECT_SQL_TOO(NULL > x0 IS NULL);
EXPECT_SQL_TOO(NULL >= x1 IS NULL);
EXPECT_SQL_TOO(NULL < x2 IS NULL);
EXPECT_SQL_TOO(NULL <= x3 IS NULL);
EXPECT_SQL_TOO(x1 + NULL == x3 IS NULL);
EXPECT_SQL_TOO(x1 + NULL != x3 IS NULL);
EXPECT_SQL_TOO(x1 + NULL <> x3 IS NULL);
EXPECT_SQL_TOO(x1 = temp_null * x1 + x1 IS temp_null);
EXPECT_SQL_TOO(x1 = temp_null * -x1 + x1 IS temp_null);
EXPECT_SQL_TOO(x1 + temp_null = x3 - x1 = x1 IS temp_null);
EXPECT_SQL_TOO(x1 + temp_null = x3 - x1 <> x0 IS temp_null);
EXPECT_SQL_TOO(x1 + temp_null == x3 - x1 <> x0 IS temp_null);
EXPECT_SQL_TOO(x1 + temp_null = x3 - x1 <> temp1 IS temp_null);
EXPECT_SQL_TOO(x1 + temp_null == x3 - x1 <> temp1 IS temp_null);
EXPECT_SQL_TOO((temp_null IS NOT temp_null) == x0);
EXPECT_SQL_TOO(x1 + x1 IS NOT temp_null);
EXPECT_SQL_TOO(temp_null == x3 IS temp_null);
EXPECT_SQL_TOO(((temp_null == x3) IS temp_null) == x1);
EXPECT_SQL_TOO((temp_null == x3 IS temp_null) == x1);
EXPECT_SQL_TOO((temp_null == x3 IS temp_null) == x1);
EXPECT_SQL_TOO((temp_null == x3 IS temp_null) IS NOT temp_null);
EXPECT_SQL_TOO((x1 + temp_null == x3 IS NOT temp_null) == x0);
EXPECT_SQL_TOO((x1 + temp_null = x3 - x1 <> x0 IS NOT temp_null) == x0);
EXPECT_SQL_TOO((x1 + temp_null == x3 - x1 <> x0 IS NOT temp_null) == x0);
EXPECT_SQL_TOO((x1 + temp_null = x3 - x1 <> temp1 IS NOT temp_null) == x0);
set temp0 := nullable(25);
EXPECT_SQL_TOO(x2 * x3 IS x4 + x2);
EXPECT_SQL_TOO(x2 * x3 IS x4 + x2);
set temp1 := nullable(10);
EXPECT_SQL_TOO(temp1-x4*x2 IS x2);
EXPECT_SQL_TOO(temp0%x3/x2 IS x0);
EXPECT_SQL_TOO(temp0/x5%x2 IS x1);
EXPECT_SQL_TOO(temp0*x5%x2 IS x1);
EXPECT_SQL_TOO(temp0*x5%x4%x2 IS x1);
set temp1 := nullable(24);
EXPECT_SQL_TOO(temp0-x5%x2 IS temp1);
set temp1 := nullable(15);
EXPECT_SQL_TOO(temp1%x3-x2 IS -x2);
set temp2 := nullable(30);
set temp3 := nullable(13);
EXPECT_SQL_TOO(temp1-temp2%x4 IS temp3);
EXPECT_SQL_TOO(temp1-temp2/x2 IS x0);
EXPECT_SQL_TOO(temp1/x5-x3 IS x0);
set temp3 := nullable(72);
EXPECT_SQL_TOO(temp1*x5-x3 IS temp3);
set temp3 := nullable(22);
EXPECT_SQL_TOO(x5*x5-x3 IS temp3);
set temp3 := 26;
EXPECT_SQL_TOO(temp0+x5%x2 IS temp3);
EXPECT_SQL_TOO(temp1%x3+x2 IS x2);
set temp1 := nullable(17);
set temp2 := nullable(30);
set temp3 := nullable(15);
EXPECT_SQL_TOO(temp3+temp2%x4 IS temp1);
set temp1 := nullable(30);
EXPECT_SQL_TOO(temp3+temp1/x2 IS temp1);
EXPECT_SQL_TOO(temp3/x5+x3 IS x6);
set temp1 := nullable(78);
EXPECT_SQL_TOO(temp3*x5+x3 IS temp1);
set temp1 := nullable(28);
EXPECT_SQL_TOO(x5*x5+x3 IS temp1);
set temp1 := nullable(20);
set temp2 := nullable(12);
EXPECT_SQL_TOO(x5*temp2/x3 IS temp1);
EXPECT_SQL_TOO(x5*temp2/x3%x7 IS x6);
set temp1 := nullable(21);
set temp2 := nullable(12);
EXPECT_SQL_TOO(x9%temp2/x3*x7 IS temp1);
EXPECT_SQL_TOO(x1 IS x1 == x1 IS x1 == x1);
EXPECT_SQL_TOO(x5 > x6 IS x2 < x1);
EXPECT_SQL_TOO(x5 <= x6 IS x2 > x1);
EXPECT_SQL_TOO(x5 == x5 IS x2 > x1);
EXPECT_SQL_TOO(NULL IS NULL);
EXPECT_SQL_TOO(temp_null == x0 IS NULL);
EXPECT_SQL_TOO(NULL IS NULL == x1 != x0);
EXPECT_SQL_TOO(NULL IS NULL = x1 <> x0);
EXPECT_SQL_TOO(temp_null == temp_null IS NULL);
EXPECT_SQL_TOO(NULL IS (temp_null == x0));
EXPECT_SQL_TOO(NULL IS NOT NULL == x0);
EXPECT_SQL_TOO((NULL IS NOT NULL) == x0);
EXPECT_SQL_TOO(x5 > x2 IS NOT NULL);
EXPECT_SQL_TOO(NULL IS NOT x2 < x3);
EXPECT_SQL_TOO(NULL IS NULL + x1);
EXPECT_SQL_TOO(NULL IS x1 + NULL);
EXPECT_SQL_TOO(NULL IS x1 << NULL);
let one := nullable("1");
let two := nullable("2");
EXPECT_SQL_TOO(one IS two == x0);
EXPECT_SQL_TOO(one IS NULL == x0);
EXPECT_SQL_TOO(NULL IS one == x0);
-- Test IN
EXPECT_SQL_TOO(x3 IN (x1, x2) == x0);
EXPECT_SQL_TOO(x3 + x2 IN (x1, x5));
EXPECT_SQL_TOO(x3 / x3 IN (x1, x2));
EXPECT_SQL_TOO(x3 / x3 IN (x1, x2) IN (x1));
EXPECT_SQL_TOO(x1 IN (NULL, x1));
EXPECT(NOT (x1 IN (NULL, x5))); -- known difference between CQL and SQLite in IN
EXPECT_SQL_TOO(NULL IS (NULL IN (x1)));
-- Test NOT IN
EXPECT_SQL_TOO(x1 NOT IN (x1, x2) == x0);
EXPECT_SQL_TOO(x3 NOT IN (x1, x2) == x1);
EXPECT_SQL_TOO(x3 + x2 NOT IN (x1, x2));
EXPECT_SQL_TOO(x3 / x1 NOT IN (x1, x2));
EXPECT_SQL_TOO(x3 / x1 NOT IN (x1, x2) IN (x1));
EXPECT_SQL_TOO(NOT (x1 NOT IN (NULL, x1)));
EXPECT(x1 NOT IN (NULL, x5)); -- known difference between CQL and SQLite in IN
EXPECT_SQL_TOO(NULL IS (NULL NOT IN (x1)));
declare x text;
set x := NULL;
EXPECT_SQL_TOO((x IN ("foo", "goo")) IS NULL);
EXPECT_SQL_TOO((x NOT IN ("foo", "goo")) IS NULL);
EXPECT_SQL_TOO(x3 + x3 AND x5);
EXPECT_SQL_TOO((x3 + x3 AND x0) == x0);
EXPECT_SQL_TOO((NULL AND x1) IS NULL);
EXPECT_SQL_TOO((NULL AND x1 = temp_null) IS NULL);
EXPECT_SQL_TOO(NOT (NULL AND x1 IS NULL));
EXPECT_SQL_TOO((NULL AND x0) == x0);
EXPECT_SQL_TOO(NOT (NULL AND x0));
EXPECT_SQL_TOO(x1 AND x0 == x0);
EXPECT_SQL_TOO(x1 AND x0 = x0);
EXPECT_SQL_TOO(x1 AND x1 != x0);
EXPECT_SQL_TOO(x1 AND x1 <> x0);
EXPECT_SQL_TOO(x5 IS x5 AND x2 IS x2);
EXPECT_SQL_TOO(x5 IS NOT NULL AND x2 IS x2);
EXPECT_SQL_TOO(x5 IS NOT NULL AND x2 IS x2);
EXPECT_SQL_TOO(x5 AND x0 + x1);
EXPECT_SQL_TOO(x5 AND x0 * x1 + x1);
EXPECT_SQL_TOO(x5 AND x0 >> x4 >= -x1);
set temp1 := nullable(12);
EXPECT_SQL_TOO(x5 AND x0 | x4 & temp1);
EXPECT_SQL_TOO(x5 AND x6 / x3);
set temp1 := nullable(25);
EXPECT_SQL_TOO((x5 AND temp1 % x5) == x0);
EXPECT_SQL_TOO(x5 AND x0 IN (x0));
EXPECT_SQL_TOO((x0 OR x1 OR x1 AND x0 OR x0) != ((((x0 OR x1) OR x1) AND x0) OR x0));
EXPECT_SQL_TOO((x1 OR x1 AND x0 AND x1 AND x0) != ((((x1 OR x1) AND x0) AND x1) AND x0));
EXPECT_SQL_TOO((x0 OR x1 OR x1 AND x0 AND x1) != ((((x0 OR x1) OR x1) AND x0) AND x1));
EXPECT_SQL_TOO((x1 OR x1 OR x1 AND x0 AND x0) != ((((x1 OR x1) OR x1) AND x0) AND x0));
EXPECT_SQL_TOO((x1 OR x1 OR x1 AND x0 OR x0) != ((((x1 OR x1) OR x1) AND x0) OR x0));
EXPECT_SQL_TOO((x1 AND x1 AND x1 OR x1 AND x0) != ((((x1 AND x1) AND x1) OR x1) AND x0));
EXPECT_SQL_TOO((x1 OR x0 AND x0 AND x1 OR x0) != ((((x1 OR x0) AND x0) AND x1) OR x0));
EXPECT_SQL_TOO((x1 AND x1 OR x0 AND x0 AND x1) != ((((x1 AND x1) OR x0) AND x0) AND x1));
EXPECT_SQL_TOO((x1 OR x0 OR x0 OR x0 AND x0) != ((((x1 OR x0) OR x0) OR x0) AND x0));
EXPECT_SQL_TOO((x1 OR x0 AND x0 OR x1 AND x0) != ((((x1 OR x0) AND x0) OR x1) AND x0));
EXPECT_SQL_TOO((x1 OR x1 AND x1 AND x1 AND x0) != ((((x1 OR x1) AND x1) AND x1) AND x0));
EXPECT_SQL_TOO((x0 AND x0 OR x1 OR x0 AND x0) != ((((x0 AND x0) OR x1) OR x0) AND x0));
EXPECT_SQL_TOO((x0 OR x1 OR x1 AND x0 AND x0) != ((((x0 OR x1) OR x1) AND x0) AND x0));
EXPECT_SQL_TOO((x1 AND x1 AND x1 OR x0 AND x0) != ((((x1 AND x1) AND x1) OR x0) AND x0));
EXPECT_SQL_TOO((x1 OR x1 OR x1 AND x0 AND x1) != ((((x1 OR x1) OR x1) AND x0) AND x1));
EXPECT_SQL_TOO((x1 OR x0 OR x0 OR x0 AND x0) != ((((x1 OR x0) OR x0) OR x0) AND x0));
END_TEST(nullable_test)
@attribute(cql:vault_sensitive)
create procedure load_encoded_table()
begin
create table all_types_encoded_table(
b0 bool @sensitive,
i0 integer @sensitive,
l0 long @sensitive,
d0 real @sensitive,
s0 text @sensitive,
bl0 blob @sensitive,
b1 bool not null @sensitive,
i1 integer not null @sensitive,
l1 long not null @sensitive,
d1 real not null @sensitive,
s1 text not null @sensitive,
bl1 blob not null @sensitive
);
insert into all_types_encoded_table values (
FALSE, 0, 0, 0.0, "0", cast("0" as blob),
TRUE, 1, 1, 1.1, "1", cast("1" as blob)
);
select * from all_types_encoded_table;
end;
@attribute(cql:vault_sensitive=(context, (b0, i0, l0, d0, s0, bl0, b1, i1, l1, d1, s1, bl1)))
create procedure load_encoded_with_context_table()
begin
create table all_types_encoded_with_context_table(
b0 bool @sensitive,
i0 integer @sensitive,
l0 long @sensitive,
d0 real @sensitive,
s0 text @sensitive,
bl0 blob @sensitive,
b1 bool not null @sensitive,
i1 integer not null @sensitive,
l1 long not null @sensitive,
d1 real not null @sensitive,
s1 text not null @sensitive,
bl1 blob not null @sensitive,
context text not null
);
insert into all_types_encoded_with_context_table values (
FALSE, 0, 0, 0.0, "0", cast("0" as blob),
TRUE, 1, 1, 1.1, "1", cast("1" as blob), "cxt"
);
select * from all_types_encoded_with_context_table;
end;
@attribute(cql:vault_sensitive)
create procedure load_encoded_cursor()
begin
declare C cursor for select * from all_types_encoded_table;
fetch C;
out C;
end;
@attribute(cql:vault_sensitive)
create proc out_union_dml()
begin
declare x cursor for select * from all_types_encoded_table;
fetch x;
out union x;
end;
@attribute(cql:vault_sensitive)
create proc out_union_not_dml()
begin
declare bogus cursor for select 1; -- just to make the proc dml to test a non dml cursor x with vault.
declare x cursor like all_types_encoded_table;
fetch x using
0 b0,
0 i0,
0 l0,
0.0 d0,
"0" s0,
blob_from_string("0") bl0,
1 b1,
1 i1,
1 l1,
1.1 d1,
"1" s1,
blob_from_string("1") bl1;
out union x;
end;
@attribute(cql:vault_sensitive)
create proc load_decoded_out_union()
begin
declare C cursor for call out_union_dml();
fetch C;
out C;
end;
@attribute(cql:vault_sensitive)
create proc load_decoded_multi_out_union()
begin
declare C cursor for call out_union_dml();
fetch C;
out union C;
declare C1 cursor for call out_union_not_dml();
fetch C1;
out union C1;
end;
@attribute(cql:vault_sensitive=(z, (y)))
create proc out_union_dml_with_encode_context()
begin
create table some_type_encoded_table(x integer, y text @sensitive, z text);
insert into some_type_encoded_table using 66 x, 'abc' y, 'xyz' z;
declare x cursor for select * from some_type_encoded_table;
fetch x;
out union x;
end;
BEGIN_TEST(decoded_value_with_encode_context)
declare C cursor for call out_union_dml_with_encode_context();
fetch C;
EXPECT(C.x IS 66);
EXPECT(C.y IS 'abc');
EXPECT(C.z IS 'xyz');
END_TEST(decoded_value_with_encode_context)
BEGIN_TEST(encoded_values)
declare C cursor for call load_encoded_table();
fetch C;
EXPECT(C.b0 IS 0);
EXPECT(C.i0 IS 0);
EXPECT(C.l0 IS 0);
EXPECT(C.d0 IS 0.0);
EXPECT(C.s0 IS "0");
EXPECT(string_from_blob(C.bl0) IS "0");
EXPECT(C.b1 IS 1);
EXPECT(C.i1 IS 1);
EXPECT(C.l1 IS 1);
EXPECT(C.d1 IS 1.1);
EXPECT(C.s1 IS "1");
EXPECT(string_from_blob(C.bl1) IS "1");
declare C1 cursor for call out_union_dml();
fetch C1;
EXPECT(cql_cursor_diff_val(C, C1) IS NULL);
declare C2 cursor for call out_union_not_dml();
fetch C2;
EXPECT(cql_cursor_diff_val(C, C2) IS NULL);
declare C3 cursor fetch from call load_decoded_out_union();
EXPECT(cql_cursor_diff_val(C, C3) IS NULL);
END_TEST(encoded_values)
BEGIN_TEST(encoded_null_values)
create table encode_null_table(
b0 bool @sensitive,
i0 integer @sensitive,
l0 long @sensitive,
d0 real @sensitive,
s0 text @sensitive,
bl0 blob @sensitive
);
insert into encode_null_table using
null b0,
null i0,
null l0,
null d0,
null s0,
null bl0;
declare C cursor for select * from encode_null_table;
fetch C;
EXPECT(C.b0 IS null);
EXPECT(C.i0 IS null);
EXPECT(C.l0 IS null);
EXPECT(C.d0 IS null);
EXPECT(C.s0 IS null);
EXPECT(C.bl0 IS null);
END_TEST(encoded_null_values)
declare proc obj_shape(set_ object) out union (o object);
declare proc not_null_obj_shape(set_ object not null) out union (o object not null);
create proc emit_object_result_set(set_ object)
begin
declare C cursor like obj_shape;
fetch C using set_ o;
out union C;
fetch C using null o;
out union C;
end;
create proc emit_object_result_set_not_null(set_ object not null)
begin
declare C cursor like not_null_obj_shape;
fetch C using set_ o;
out union C;
end;
BEGIN_TEST(object_result_set_value)
let s := set_create();
declare D cursor for call emit_object_result_set(s);
fetch D;
EXPECT(D);
EXPECT(D.o is s);
fetch D;
EXPECT(D);
EXPECT(D.o is null);
declare E cursor for call emit_object_result_set_not_null(s);
fetch E;
EXPECT(E);
EXPECT(E.o is s);
END_TEST(object_result_set_value)
@attribute(cql:vault_sensitive=(y))
create procedure load_some_encoded_field()
begin
create table some_encoded_field_table(x integer, y text @sensitive);
insert into some_encoded_field_table using 66 x, 'bogus' y;
declare C cursor for select * from some_encoded_field_table;
fetch C;
out C;
end;
BEGIN_TEST(read_partially_vault_cursor)
declare C cursor fetch from call load_some_encoded_field();
EXPECT(C.x IS 66);
EXPECT(C.y IS 'bogus');
END_TEST(read_partially_vault_cursor)
@attribute(cql:vault_sensitive=(z, (y)))
create procedure load_some_encoded_field_with_encode_context()
begin
create table some_encoded_field_context_table(x integer, y text @sensitive, z text);
insert into some_encoded_field_context_table using 66 x, 'bogus' y, 'context' z;
declare C cursor for select * from some_encoded_field_context_table;
fetch C;
out C;
end;
BEGIN_TEST(read_partially_encode_with_encode_context_cursor)
declare C cursor fetch from call load_some_encoded_field_with_encode_context();
EXPECT(C.x IS 66);
EXPECT(C.y IS 'bogus');
EXPECT(C.z IS 'context');
END_TEST(read_partially_encode_with_encode_context_cursor)
@attribute(cql:emit_setters)
create procedure load_all_types_table()
begin
create table all_types_table(
b0 bool @sensitive,
i0 integer @sensitive,
l0 long @sensitive,
d0 real @sensitive,
s0 text @sensitive,
bl0 blob @sensitive,
b1 bool not null,
i1 integer not null,
l1 long not null,
d1 real not null,
s1 text not null,
bl1 blob not null
);
-- all nullables null
insert into all_types_table(bl1) values(cast("bl1_0" as blob)) @dummy_seed(0);
-- all nullables not null
insert into all_types_table(bl0, bl1) values(cast("bl0_1" as blob), cast("bl1_1" as blob)) @dummy_seed(1) @dummy_nullables;
select * from all_types_table;
end;
-- this proc will make the tables and also this serves as the table declarations
create procedure init_temp_tables()
begin
create temp table temp_table_one(id integer not null @sensitive);
create temp table temp_table_two(id integer not null);
create temp table temp_table_three(id integer not null);
insert into temp_table_one values(1);
insert into temp_table_two values(2);
insert into temp_table_three values(3);
end;
-- The run test client verifies that we can call this proc twice
-- having read the rowset out of it and it still succeeds because
-- the tables are dropped. Note simply calling the proc from CQL
-- will not do the job -- you have to use the result set helper
-- to get the auto-cleanup. If you are using the statement
-- as with a direct CQL call, you are out of luck
@attribute(cql:autodrop=(temp_table_one, temp_table_two, temp_table_three))
create procedure read_three_tables_and_autodrop()
begin
call init_temp_tables();
select * from temp_table_one
union all
select * from temp_table_two
union all
select * from temp_table_three;
end;
-- This helper proc will be called by the client producing its one-row result
-- it has no DB pointer and that exercises and important case in the autodrop logic
-- where info.db is NULL. There can be no autodrop tables here.
create procedure simple_cursor_proc()
begin
declare C cursor like temp_table_one;
fetch C (id) from values(1);
out c;
end;
-- This is a simple proc we will use to create a result set that is a series of integers.
-- Below we will read and verify these results.
-- this table will never exist
create table dummy_table(id integer);
create proc some_integers(start integer not null, stop integer not null)
begin
declare C cursor like select 1 v, 2 vsq, "xx" junk;
declare i integer not null;
set i := start;
while (i < stop)
begin
fetch C(v, vsq, junk) from values (i, i*i, printf("%d", i));
out union C;
set i := i + 1;
end;
-- if the start was -1 then force an error, this ensures full cleanup
-- do this after we have produced rows to make it hard
if start == -1 then
drop table dummy_table;
end if;
end;
-- we need this helper to get a rowset out with type "object", all it does is call the above proc
-- we just need the cast that it does really, but there's no way to code that cast in CQL.
declare proc some_integers_fetch(out rs object not null, start integer not null, stop integer not null) using transaction;
-- these are the helper functions we will be using to read the rowset, they are defined and registered elsewhere
-- See the "call cql_init_extensions();" above for registration.
declare select function rscount(rs long) long;
declare select function rscol(rs long, row integer not null, col integer not null) long;
-- This test is is going to create a rowset using a stored proc, then
-- using the helper proc some_integers_fetch() get access to the result set pointer
-- rather than the sqlite statement. Then it iterates over the result set as though
-- that result set were a virtual table. The point of all of this is to test
-- the virtual-table-like construct that we have created and in so doing
-- test the runtime binding facilities needed by ptr(x)
BEGIN_TEST(rowset_reading)
declare start, stop, cur integer not null;
set start := 10;
set stop := 20;
declare rs object not null;
call some_integers_fetch(rs, start, stop);
-- use a nullable version too to exercise both kinds of binding
declare rs1 object;
set rs1 := rs;
declare C cursor for
with recursive
C(i) as (select 0 i union all select i+1 i from C limit rscount(ptr(rs))),
V(v,vsq) as (select rscol(ptr(rs), C.i, 0), rscol(ptr(rs1), C.i, 1) from C)
select * from V;
set cur := start;
loop fetch C
begin
EXPECT(C.v == cur);
EXPECT(C.v * C.v == C.vsq);
set cur := cur + 1;
end;
END_TEST(rowset_reading)
BEGIN_TEST(rowset_reading_language_support)
declare cur integer not null;
set cur := 7;
declare C cursor for call some_integers(7, 12);
loop fetch C
begin
EXPECT(C.v == cur);
EXPECT(c.vsq == cur * cur);
set cur := cur + 1;
end;
END_TEST(rowset_reading_language_support)
create procedure all_types_union()
begin
declare C cursor like all_types_table;
-- all nullables null
fetch C(bl1) from values(blob_from_string("bl1_0")) @dummy_seed(0);
out union C;
-- all nullables not null
fetch C(bl0, bl1) from values(blob_from_string("bl0_1"), blob_from_string("bl1_1")) @dummy_seed(1) @dummy_nullables;
out union C;
end;
BEGIN_TEST(read_all_types_rowset)
declare C cursor for call all_types_union();
fetch C;
EXPECT(C);
EXPECT(C.b0 IS NULL);
EXPECT(C.i0 IS NULL);
EXPECT(C.l0 IS NULL);
EXPECT(C.d0 IS NULL);
EXPECT(C.s0 IS NULL);
EXPECT(C.bl0 IS NULL);
EXPECT(C.b1 IS 0);
EXPECT(C.i1 IS 0);
EXPECT(C.l1 IS 0);
EXPECT(C.d1 IS 0);
EXPECT(C.s1 == "s1_0");
EXPECT(C.bl1 == blob_from_string("bl1_0"));
fetch C;
EXPECT(C);
EXPECT(C.b0 IS 1);
EXPECT(C.i0 IS 1);
EXPECT(C.l0 IS 1);
EXPECT(C.d0 IS 1);
EXPECT(C.s0 IS "s0_1");
EXPECT(C.bl0 IS blob_from_string("bl0_1"));
EXPECT(C.b1 IS 1);
EXPECT(C.i1 IS 1);
EXPECT(C.l1 IS 1);
EXPECT(C.d1 IS 1);
EXPECT(C.s1 == "s1_1");
EXPECT(C.bl1 IS blob_from_string("bl1_1"));
fetch C;
EXPECT(not C);
END_TEST(read_all_types_rowset)
-- make something to fake out CQL so we can call the real fetcher
DECLARE PROC load_all_types_table_shim() out union
(b0 BOOL, i0 INTEGER, l0 LONG_INT, d0 REAL, s0 TEXT, bl0 BLOB,
b1 BOOL NOT NULL, i1 INTEGER NOT NULL, l1 LONG_INT NOT NULL, d1 REAL NOT NULL, s1 TEXT NOT NULL, bl1 BLOB NOT NULL)
using transaction;
-- we're going to redirect this declared out union function to be the
-- automaticlaly generated fetcher above. That's a normal result set
-- generated in the normal way. And boom just like that we're reading a
-- result set rather than the statement
@echo c,"#define load_all_types_table_shim_fetch_results load_all_types_table_fetch_results\n";
@echo c,"#define load_all_types_table_shim_result_set_ref load_all_types_table_result_set_ref\n";
BEGIN_TEST(read_all_types_auto_fetcher)
declare C cursor for call load_all_types_table_shim();
fetch C;
EXPECT(C);
EXPECT(C.b0 IS NULL);
EXPECT(C.i0 IS NULL);
EXPECT(C.l0 IS NULL);
EXPECT(C.d0 IS NULL);
EXPECT(C.s0 IS NULL);
EXPECT(C.bl0 IS NULL);
EXPECT(C.b1 IS 0);
EXPECT(C.i1 IS 0);
EXPECT(C.l1 IS 0);
EXPECT(C.d1 IS 0);
EXPECT(C.s1 == "s1_0");
EXPECT(string_from_blob(C.bl1) == "bl1_0");
fetch C;
EXPECT(C);
EXPECT(C.b0 IS 1);
EXPECT(C.i0 IS 1);
EXPECT(C.l0 IS 1);
EXPECT(C.d0 IS 1);
EXPECT(C.s0 IS "s0_1");
EXPECT(string_from_blob(C.bl0) == "bl0_1");
EXPECT(C.b1 IS 1);
EXPECT(C.i1 IS 1);
EXPECT(C.l1 IS 1);
EXPECT(C.d1 IS 1);
EXPECT(C.s1 == "s1_1");
EXPECT(string_from_blob(C.bl1) == "bl1_1");
EXPECT(cql_get_blob_size(C.bl1) == 5);
fetch C;
EXPECT(not C);
END_TEST(read_all_types_auto_fetcher)
BEGIN_TEST(rowset_via_union_failed)
declare ok_after_all bool not null;
declare start, stop, cur integer not null;
set start := -1;
set stop := 1;
declare rs object not null;
begin try
call some_integers_fetch(rs, start, stop);
end try;
begin catch
set ok_after_all := 1;
end catch;
-- throw happened and we're not gonna leak
EXPECT(ok_after_all);
END_TEST(rowset_via_union_failed)
BEGIN_TEST(boxing_cursors)
declare i integer not null;
set i := 0;
while i < 5
begin
declare C cursor for
with data(x,y) as (values (1,2), (3,4), (5,6))
select * from data;
declare box object<C cursor>;
set box from cursor C;
declare D cursor for box;
fetch C;
EXPECT(C.x == 1);
EXPECT(C.y == 2);
fetch D;
-- C did not change
EXPECT(C.x == 1);
EXPECT(C.y == 2);
EXPECT(D.x == 3);
EXPECT(D.y == 4);
fetch C;
-- C advanced D values held
EXPECT(C.x == 5);
EXPECT(C.y == 6);
EXPECT(D.x == 3);
EXPECT(D.y == 4);
set i := i + 1;
end;
END_TEST(boxing_cursors)
create proc a_few_rows()
begin
with data(x,y) as (values (1,2), (3,4), (5,6))
select * from data;
end;
BEGIN_TEST(boxing_from_call)
declare i integer not null;
set i := 0;
while i < 5
begin
declare C cursor for call a_few_rows();
declare box object<C cursor>;
set box from cursor C;
declare D cursor for box;
fetch C;
EXPECT(C.x == 1);
EXPECT(C.y == 2);
fetch D;
-- C did not change
EXPECT(C.x == 1);
EXPECT(C.y == 2);
EXPECT(D.x == 3);
EXPECT(D.y == 4);
fetch C;
-- C advanced D values held
EXPECT(C.x == 5);
EXPECT(C.y == 6);
EXPECT(D.x == 3);
EXPECT(D.y == 4);
set i := i + 1;
end;
END_TEST(boxing_from_call)
@enforce_normal cast;
BEGIN_TEST(numeric_casts)
declare b bool not null;
declare i int not null;
declare l long not null;
declare r real not null;
declare b0 bool;
declare i0 int;
declare l0 long;
declare r0 real;
-- force conversion (not null)
set b := cast(7.5 as bool);
EXPECT(b == 1);
set i := cast(1.9 as integer);
EXPECT(i == 1);
set l := cast(12.9 as long);
EXPECT(l == 12);
set r := cast(12 as real);
EXPECT(r == 12.0);
-- null cases
EXPECT(cast(b0 as bool) is null);
EXPECT(cast(b0 as int) is null);
EXPECT(cast(b0 as long) is null);
EXPECT(cast(b0 as real) is null);
-- force conversion (nullable)
declare x real;
set x := 7.5;
set b0 := cast(x as bool);
EXPECT(b0 == 1);
set x := 1.9;
set i0 := cast(x as integer);
EXPECT(i0 == 1);
set x := 12.9;
set l0 := cast(x as long);
EXPECT(l0 == 12);
set x := 12.0;
set r0 := cast(x as real);
EXPECT(r0 == 12.0);
set l := 12;
set r0 := cast(l as real);
EXPECT(r0 == 12.0);
END_TEST(numeric_casts)
@enforce_strict cast;
create proc dummy(seed integer not null, i integer not null, r real not null, b bool not null)
begin
EXPECT(seed == i);
EXPECT(seed == r);
EXPECT(not seed == not b);
end;
BEGIN_TEST(cursor_args)
declare args cursor like dummy arguments;
fetch args() from values() @dummy_seed(12);
call dummy(from args);
END_TEST(cursor_args)
DECLARE PROCEDURE cql_exec_internal(sql TEXT NOT NULL) USING TRANSACTION;
create table xyzzy(id integer, name text, data blob);
BEGIN_TEST(exec_internal)
call cql_exec_internal("create table xyzzy(id integer, name text, data blob);");
declare bl1 blob;
set bl1 := blob_from_string('z');
declare bl2 blob;
set bl2 := blob_from_string('w');
insert into xyzzy using 1 id, 'x' name, bl1 data;
insert into xyzzy using 2 id, 'y' name, bl2 data;
declare C cursor for select * from xyzzy;
declare D cursor like C;
fetch C;
fetch D using 1 id, 'x' name, bl1 data;
EXPECT(cql_cursor_diff_val(C,D) is null);
fetch C;
fetch D using 2 id, 'y' name, bl2 data;
EXPECT(cql_cursor_diff_val(C,D) is null);
END_TEST(exec_internal)
BEGIN_TEST(const_folding)
EXPECT(const(1 + 1) == 2);
EXPECT(const(1.0 + 1) == 2.0);
EXPECT(const(1 + 1L) == 2L);
EXPECT(const(1 + (1==1) ) == 2);
EXPECT(const(1.0 + 1L) == 2.0);
EXPECT(const(1.0 + (1 == 1)) == 2.0);
EXPECT(const((1==1) + 1L) == 2L);
EXPECT(2 == const(1 + 1));
EXPECT(2.0 == const(1.0 + 1));
EXPECT(2L == const(1 + 1L));
EXPECT(2 == const(1 + (1==1) ));
EXPECT(const(1 - 1) == 0);
EXPECT(const(1.0 - 1) == 0.0);
EXPECT(const(1 - 1L) == 0L);
EXPECT(const(1 - (1==1) ) == 0);
EXPECT(const(3 * 2) == 6);
EXPECT(const(3.0 * 2) == 6.0);
EXPECT(const(3 * 2L) == 6L);
EXPECT(const(3 * (1==1) ) == 3);
EXPECT(const(3 / 1) == 3);
EXPECT(const(3.0 / 1) == 3.0);
EXPECT(const(3 / 1L) == 3L);
EXPECT(const(3 / (1==1) ) == 3);
EXPECT(const(3 % 1) == 0);
EXPECT(const(3 % 1L) == 0L);
EXPECT(const(3 % (1==1) ) == 0);
EXPECT(const(8 | 1) == 9);
EXPECT(const(8 | 1L) == 9L);
EXPECT(const(8 | (1==1) ) == 9);
EXPECT(const(7 & 4) == 4);
EXPECT(const(7 & 4L) == 4L);
EXPECT(const(7 & (1==1) ) == 1);
EXPECT(const(16 << 1) == 32);
EXPECT(const(16 << 1L) == 32L);
EXPECT(const(16 << (1==1) ) == 32);
EXPECT(const(16 >> 1) == 8);
EXPECT(const(16 >> 1L) == 8L);
EXPECT(const(16 >> (1==1) ) == 8);
EXPECT(const(NULL) is null);
EXPECT(const( 1 or 1/0) == 1);
EXPECT(const( 0 or null) is null);
EXPECT(const( 0 or 0) == 0);
EXPECT(const( 0 or 1) == 1);
EXPECT(const( null or null) is null);
EXPECT(const( null or 0) is null);
EXPECT(const( null or 1) is 1);
EXPECT(const( 0 and 1/0) == 0);
EXPECT(const( 1 and null) is null);
EXPECT(const( 1 and 0) == 0);
EXPECT(const( 1 and 1) == 1);
EXPECT(const( null and null) is null);
EXPECT(const( null and 0) == 0);
EXPECT(const( null and 1) is null);
EXPECT(const(3 == 3));
EXPECT(const(3 == 3.0));
EXPECT(const(3 == 3L));
EXPECT(const((0 == 0) == (1 == 1)));
EXPECT(const(4 != 3));
EXPECT(const(4 != 3.0));
EXPECT(const(4 != 3L));
EXPECT(const((1 == 0) != (1 == 1)));
EXPECT(const(4 >= 3));
EXPECT(const(4 >= 3.0));
EXPECT(const(4 >= 3L));
EXPECT(const((1 == 1) >= (1 == 0)));
EXPECT(const(3 >= 3));
EXPECT(const(3 >= 3.0));
EXPECT(const(3 >= 3L));
EXPECT(const((1 == 1) >= (1 == 1)));
EXPECT(const(4 > 3));
EXPECT(const(4 > 3.0));
EXPECT(const(4 > 3L));
EXPECT(const((1 == 1) > (1 == 0)));
EXPECT(const(2 <= 3));
EXPECT(const(2 <= 3.0));
EXPECT(const(2 <= 3L));
EXPECT(const((1 == 0) <= (1 == 1)));
EXPECT(const(3 <= 3));
EXPECT(const(3 <= 3.0));
EXPECT(const(3 <= 3L));
EXPECT(const((1 == 1) <= (1 == 1)));
EXPECT(const(2 < 3));
EXPECT(const(2 < 3.0));
EXPECT(const(2 < 3L));
EXPECT(const((1 == 0) < (1 == 1)));
EXPECT((NULL + NULL) is NULL);
EXPECT((NULL - NULL) is NULL);
EXPECT((NULL * NULL) is NULL);
EXPECT((NULL / NULL) is NULL);
EXPECT((NULL % NULL) is NULL);
EXPECT((NULL | NULL) is NULL);
EXPECT((NULL & NULL) is NULL);
EXPECT((NULL << NULL) is NULL);
EXPECT((NULL >> NULL) is NULL);
EXPECT(const(NULL + NULL) is NULL);
EXPECT(const(NULL - NULL) is NULL);
EXPECT(const(NULL * NULL) is NULL);
EXPECT(const(NULL / NULL) is NULL);
EXPECT(const(NULL % NULL) is NULL);
EXPECT(const(NULL | NULL) is NULL);
EXPECT(const(NULL & NULL) is NULL);
EXPECT(const(NULL << NULL) is NULL);
EXPECT(const(NULL >> NULL) is NULL);
EXPECT(const((NULL + NULL) is NULL));
EXPECT(const((NULL - NULL) is NULL));
EXPECT(const((NULL * NULL) is NULL));
EXPECT(const((NULL / NULL) is NULL));
EXPECT(const((NULL % NULL) is NULL));
EXPECT(const((NULL | NULL) is NULL));
EXPECT(const((NULL & NULL) is NULL));
EXPECT(const((NULL << NULL) is NULL));
EXPECT(const((NULL >> NULL) is NULL));
EXPECT(const(NULL IS NOT NULL) == 0);
EXPECT(const(NULL IS NOT 1));
EXPECT(const((1 OR NULL) IS NOT NULL));
EXPECT(const(1 IS 1));
EXPECT(const(1L IS 1L));
EXPECT(const(1.0 IS 1.0));
EXPECT(const((1==1) is (2==2)));
EXPECT(const(cast(3.2 as integer) == 3));
EXPECT(const(cast(3.2 as long_int) == 3L));
EXPECT(const(cast(3.2 as bool) == 1));
EXPECT(const(cast(0.0 as bool) == 0));
EXPECT(const(cast(null+0 as bool) is null));
EXPECT(const(cast(3L as real) == 3.0));
EXPECT(const(cast(3L as integer) == 3));
EXPECT(const(cast(3L as bool) == 1));
EXPECT(const(cast(0L as bool) == 0));
EXPECT(const(not 0) == 1);
EXPECT(const(not 1) == 0);
EXPECT(const(not 2) == 0);
EXPECT(const(not 0L) == 1);
EXPECT(const(not 1L) == 0);
EXPECT(const(not 2L) == 0);
EXPECT(const(not 2.0) == 0);
EXPECT(const(not 0.0) == 1);
EXPECT(const(not not 2) == 1);
EXPECT(const(not NULL) is NULL);
EXPECT(const(~0) == -1);
EXPECT(const(~0L) == -1L);
EXPECT(const(~ ~0L) == 0L);
EXPECT(const(~NULL) is NULL);
EXPECT(const(~(0==0)) == -2);
EXPECT(const(~(0==1)) == -1);
EXPECT(const(-1) == -1);
EXPECT(const(-2) == -2);
EXPECT(const(-1.0) == -1.0);
EXPECT(const(-2.0) == -2.0);
EXPECT(const((0 + -2)) == -2);
EXPECT(const(-(1 + 1)) == -2);
EXPECT(const(-1L) == -1L);
EXPECT(const(- -1L) == 1L);
EXPECT(const(-NULL) is NULL);
EXPECT(const(-(0==0)) == -1);
EXPECT(const(-(0==1)) == 0);
-- IIF gets rewritten to case/when so we use that here for convenience
EXPECT(const(iif(1, 3, 5)) == 3);
EXPECT(const(iif(0, 3, 5)) == 5);
EXPECT(const(iif(1L, 3, 5)) == 3);
EXPECT(const(iif(0L, 3, 5)) == 5);
EXPECT(const(iif(1.0, 3, 5)) == 3);
EXPECT(const(iif(0.0, 3, 5)) == 5);
EXPECT(const(iif((1==1), 3, 5)) == 3);
EXPECT(const(iif((1==0), 3, 5)) == 5);
EXPECT(const(case 1 when 2 then 20 else 10 end) == 10);
EXPECT(const(case 2 when 2 then 20 else 10 end) == 20);
EXPECT(const(case 2 when 1 then 10 when 2 then 20 else 40 end) == 20);
EXPECT(const(case 1 when 1 then 10 when 2 then 20 else 40 end) == 10);
EXPECT(const(case 5 when 1 then 10 when 2 then 20 else 40 end) == 40);
EXPECT(const(case null when 1 then 10 when 2 then 20 else 40 end) == 40);
EXPECT(const(case 1.0 when 2 then 20 else 10 end) == 10);
EXPECT(const(case 2.0 when 2 then 20 else 10 end) == 20);
EXPECT(const(case 2.0 when 1 then 10 when 2 then 20 else 40 end) == 20);
EXPECT(const(case 1.0 when 1 then 10 when 2 then 20 else 40 end) == 10);
EXPECT(const(case 5.0 when 1 then 10 when 2 then 20 else 40 end) == 40);
EXPECT(const(case 1L when 2 then 20 else 10 end) == 10);
EXPECT(const(case 2L when 2 then 20 else 10 end) == 20);
EXPECT(const(case 2L when 1 then 10 when 2 then 20 else 40 end) == 20);
EXPECT(const(case 1L when 1 then 10 when 2 then 20 else 40 end) == 10);
EXPECT(const(case 5L when 1 then 10 when 2 then 20 else 40 end) == 40);
EXPECT(const(case (1==1) when (1==1) then 10 else 20 end) == 10);
EXPECT(const(case (1==0) when (1==1) then 10 else 20 end) == 20);
EXPECT(const(case (1==1) when (0==1) then 10 else 20 end) == 20);
EXPECT(const(case (1==0) when (0==1) then 10 else 20 end) == 10);
EXPECT(const(case (1==0) when null then 10 else 20 end) == 20);
EXPECT(const(case (1==0) when null then 10 end ) is null);
EXPECT(const(case 5L when 1 then 10 when 2 then 20 end) is NULL);
EXPECT(const(case when NULL then 1 else 2 end) == 2);
EXPECT(const(0x10) == 16);
EXPECT(const(0x10 + 0xf) == 31);
EXPECT(const(0x100100100) == 0x100100100);
EXPECT(const(0x100100100L) == 0x100100100);
EXPECT(const(0x100100100) == 0x100100100L);
EXPECT(const(0x100100100L) == 0x100100100L);
END_TEST(const_folding)
BEGIN_TEST(long_literals)
declare x long not null;
declare z long;
set x := 1L;
EXPECT(x == 1);
set x := 10000000000;
EXPECT(x = 10000000000);
EXPECT(x != const(cast(10000000000L as integer)));
EXPECT(x > 0x7fffffff);
set x := 10000000000L;
EXPECT(x = 10000000000L);
EXPECT(x != const(cast(10000000000L as integer)));
EXPECT(x > 0x7fffffff);
set x := 0x1000000000L;
EXPECT(x = 0x1000000000L);
EXPECT(x != const(cast(0x10000000000L as integer)));
EXPECT(x > 0x7fffffff);
set x := 0x1000000000;
EXPECT(x = 0x1000000000L);
EXPECT(x != const(cast(0x10000000000L as integer)));
EXPECT(x > 0x7fffffff);
set x := const(0x1000000000);
EXPECT(x = 0x1000000000L);
EXPECT(x != const(cast(0x1000000000L as integer)));
EXPECT(x > 0x7fffffff);
set x := 1000L * 1000 * 1000 * 1000;
EXPECT(x = 1000000000000);
EXPECT(x != const(cast(1000000000000 as integer)));
set x := const(1000L * 1000 * 1000 * 1000);
set z := 1L;
EXPECT(z == 1);
set z := 10000000000;
EXPECT(z = 10000000000);
EXPECT(z != const(cast(10000000000L as integer)));
EXPECT(z > 0x7fffffff);
set z := 10000000000L;
EXPECT(z = 10000000000L);
EXPECT(z != const(cast(10000000000L as integer)));
EXPECT(z > 0x7fffffff);
set z := 0x1000000000L;
EXPECT(z = 0x1000000000L);
EXPECT(z != const(cast(0x1000000000L as integer)));
EXPECT(z > 0x7fffffff);
set z := 0x1000000000;
EXPECT(z = 0x1000000000L);
EXPECT(z != const(cast(0x1000000000L as integer)));
EXPECT(z > 0x7fffffff);
set z := const(0x1000000000);
EXPECT(z = 0x1000000000L);
EXPECT(z != const(cast(0x1000000000L as integer)));
EXPECT(z > 0x7fffffff);
set z := 1000L * 1000 * 1000 * 1000;
EXPECT(z = 1000000000000);
EXPECT(z != const(cast(1000000000000 as integer)));
set z := const(1000L * 1000 * 1000 * 1000);
END_TEST(long_literals)
create proc no_statement_really(x integer)
begin
if x then
select 1 x;
end if;
end;
BEGIN_TEST(null_statement)
declare C cursor for call no_statement_really(0);
declare x integer;
set x := 0;
loop fetch C
begin
set x := x + 1;
end;
EXPECT(x == 0);
END_TEST(null_statement)
BEGIN_TEST(if_nothing_forms)
create table tdata (
id integer,
v integer,
t text);
declare t1 text;
set t1 := (select t from tdata if nothing "nothing");
EXPECT(t1 == "nothing");
declare v1 integer;
set v1 := (select v from tdata if nothing -1);
EXPECT(v1 == -1);
insert into tdata values(1, 2, null);
set t1 := (select t from tdata if nothing "nothing");
EXPECT(t1 is null);
set v1 := (select v from tdata if nothing -1);
EXPECT(v1 == 2);
set t1 := (select t from tdata if nothing or null "still nothing");
EXPECT(t1 == "still nothing");
insert into tdata values(2, null, "x");
set v1 := (select v from tdata where id == 2 if nothing or null -1);
EXPECT(v1 == -1);
END_TEST(if_nothing_forms)
create proc simple_select()
begin
select 1 x;
end;
BEGIN_TEST(call_in_loop)
declare i integer;
set i := 0;
while i < 5
begin
set i := i + 1;
declare C cursor for call simple_select();
fetch C;
EXPECT(C.x == 1);
end;
END_TEST(call_in_loop)
BEGIN_TEST(call_in_loop_boxed)
declare i integer;
set i := 0;
while i < 5
begin
set i := i + 1;
declare C cursor for call simple_select();
declare box object<C cursor>;
set box from cursor C;
declare D cursor for box;
fetch D;
EXPECT(D.x == 1);
end;
END_TEST(call_in_loop_boxed)
create proc out_union_helper()
begin
declare C cursor like select 1 x;
fetch C using 1 x;
out union C;
end;
BEGIN_TEST(call_out_union_in_loop)
declare i integer;
set i := 0;
while i < 5
begin
set i := i + 1;
declare C cursor for call out_union_helper();
fetch C;
EXPECT(C.x == 1);
end;
END_TEST(call_out_union_in_loop)
create table simple_rc_table(id integer, foo text);
create proc simple_insert()
begin
insert into simple_rc_table(id, foo) values(1, "foo");
end;
create proc select_if_nothing(id_ integer not null)
begin
declare bar text;
set bar := (select foo from simple_rc_table where id == id_ if nothing "bar");
end;
create proc select_if_nothing_throw(id_ integer not null)
begin
declare bar text;
set bar := (select foo from simple_rc_table where id == id_ if nothing throw);
end;
BEGIN_TEST(rc_simple_select)
declare C cursor for call simple_select();
EXPECT(@rc == 0);
END_TEST(rc_simple_select)
BEGIN_TEST(rc_simple_insert_and_select)
create table simple_rc_table(id integer, foo text);
call simple_insert();
EXPECT(@rc == 0);
call select_if_nothing(1);
EXPECT(@rc == 0);
call select_if_nothing(2);
EXPECT(@rc == 0);
begin try
call select_if_nothing_throw(2);
end try;
begin catch
EXPECT(@rc != 0);
end catch;
END_TEST(rc_simple_insert_and_select)
create proc out_union()
begin
declare C cursor like select 1 x;
fetch C using 1 x;
out union C;
end;
-- claims to be an out-union proc but isn't really going to produce anything
-- non dml path
create proc out_union_nil_result()
begin
if 0 then
call out_union();
end if;
end;
-- claims to be an out-union proc but isn't really going to produce anything
-- dml path
create proc out_union_nil_result_dml()
begin
if 0 then
call out_union_dml();
end if;
end;
BEGIN_TEST(empty_out_union)
declare C cursor for call out_union_nil_result();
fetch C;
EXPECT(NOT C); -- cursor empty but not null
declare D cursor for call out_union_nil_result_dml();
fetch D;
EXPECT(NOT D); -- cursor empty but not null
END_TEST(empty_out_union)
BEGIN_TEST(nested_rc_values)
let e0 := @rc;
EXPECT(e0 = 0); -- SQLITE_OK
begin try
-- force duplicate table error
create table foo(id integer primary key);
create table foo(id integer primary key);
end try;
begin catch
let e1 := @rc;
EXPECT(e1 == 1); -- SQLITE_ERROR
begin try
let e2 := @rc;
EXPECT(e2 == 1); -- SQLITE_ERROR
-- force constraint error
insert into foo using 1 id;
insert into foo using 1 id;
end try;
begin catch
let e3 := @rc;
EXPECT(e3 == 19); -- SQLITE_CONSTRAINT
end catch;
let e4 := @rc;
EXPECT(e4 == 1); -- back to SQLITE_ERROR
end catch;
let e7 := @rc;
EXPECT(e7 = 0); -- back to SQLITE_OK
END_TEST(nested_rc_values)
-- facet helper functions, used by the schema upgrader
DECLARE facet_data TYPE LONG<facet_data> not null;
DECLARE FUNCTION cql_facets_new() facet_data;
DECLARE PROCEDURE cql_facets_delete(facets facet_data);
DECLARE FUNCTION cql_facet_add(facets facet_data, facet TEXT NOT NULL, crc LONG NOT NULL) BOOL NOT NULL;
DECLARE FUNCTION cql_facet_find(facets facet_data, facet TEXT NOT NULL) LONG NOT NULL;
BEGIN_TEST(facet_helpers)
let facets := cql_facets_new();
EXPECT(facets);
-- add some facets
let i := 0;
while i < 1000
begin
EXPECT(cql_facet_add(facets, printf('fake facet %d', i), i*i));
set i := i + 1;
end;
-- all duplicates, all the adds should return false
set i := 0;
while i < 1000
begin
EXPECT(NOT cql_facet_add(facets, printf('fake facet %d', i), i*i));
set i := i + 1;
end;
-- we should be able to find all of these
set i := 0;
while i < 1000
begin
EXPECT(i*i == cql_facet_find(facets, printf('fake facet %d', i)));
set i := i + 1;
end;
-- we should be able to find none of these
set i := 0;
while i < 1000
begin
EXPECT(-1 == cql_facet_find(facets, printf('fake_facet %d', i)));
set i := i + 1;
end;
-- NOTE the test infra is counting refs so that if we fail
-- to clean up the test fails; no expectation is required
call cql_facets_delete(facets);
END_TEST(facet_helpers)
-- not null result
create proc f(x integer not null, out y integer not null)
begin
set y := x;
end;
-- nullable version (not null arg)
create proc fn(x integer not null, out y integer)
begin
set y := x;
end;
-- nullable arg and result version (forces boxing)
create proc fnn(x integer, out y integer)
begin
set y := x;
end;
-- the point of this is to force the temporaries from previous calls to
-- survive into the next expression, the final expression should be
-- something like t1+t2+t3+t4+t5+t6 with no sharing
BEGIN_TEST(verify_temp_non_reuse)
EXPECT(f(1)+f(2)+f(4)+f(8)+f(16)+f(32)==63);
EXPECT(fn(1)+fn(2)+fn(4)+fn(8)+fn(16)+fn(32)==63);
EXPECT(f(1)+fn(2)+f(4)+fn(8)+f(16)+fn(32)==63);
EXPECT(fn(1)+f(2)+fn(4)+f(8)+fn(16)+f(32)==63);
EXPECT(fnn(1)+fnn(2)+fnn(4)+fnn(8)+fnn(16)+fnn(32)==63);
EXPECT(fn(1)+fnn(2)+fn(4)+fnn(8)+fn(16)+fnn(32)==63);
EXPECT(f(1)+fn(2)+fnn(4)+fn(8)+fnn(16)+fn(32)==63);
EXPECT(fn(1)+fnn(2)+fn(4)+f(8)+fnn(16)+f(32)==63);
END_TEST(verify_temp_non_reuse)
BEGIN_TEST(compressible_batch)
-- nest the batch so that it doesn't conflict with the macro proc preamble
IF 1 THEN
drop table if exists foo;
create table goo(id integer);
insert into goo values (1), (2), (3);
END IF;
EXPECT((select sum(id) from goo) == 6);
drop table goo;
END_TEST(compressible_batch)
-- a simple proc that creates a result set with out union
-- this reference must be correctly managed
create proc get_row()
begin
declare D cursor like select 'x' facet;
fetch D using 'x' facet;
out union D;
end;
-- the test here is to ensure that when we call get_row we correctly
-- release the previous result set
create proc get_row_thrice()
begin
-- these are redundant but they force the previous pending result to be freed
-- this still returns a single row
call get_row();
call get_row();
call get_row();
end;
BEGIN_TEST(out_union_refcounts)
DECLARE C CURSOR FOR CALL get_row();
FETCH C;
EXPECT(C);
EXPECT(C.facet = 'x');
FETCH C;
EXPECT(NOT C);
DECLARE D CURSOR FOR CALL get_row_thrice();
FETCH D;
EXPECT(D);
EXPECT(D.facet = 'x');
FETCH D;
EXPECT(NOT D);
END_TEST(out_union_refcounts)
@attribute(cql:shared_fragment)
create proc f1(pattern text)
begin
with source(*) LIKE (select 1 id, "x" t)
select * from source where t like pattern;
end;
@attribute(cql:shared_fragment)
create proc f2(pattern text, idstart int not null, idend int not null, lim int not null)
begin
with
source(*) LIKE f1,
data(*) as (call f1(pattern) using source as source)
select * from data where data.id between idstart and idend
limit lim;
end;
@attribute(cql:private)
create proc shared_consumer()
begin
with
source1(id, t) as (values (1100, 'x_x'), (1101, 'zz')),
source2(id, t) as (values (4500, 'y_y'), (4501, 'zz')),
t1(*) as (call f2('x%', 1000, 2000, 10) using source1 as source),
t2(*) as (call f2('y%', 4000, 5000, 20) using source2 as source)
select * from t1
union all
select * from t2;
end;
BEGIN_TEST(shared_fragments)
declare C cursor for call shared_consumer();
fetch C;
EXPECT(C.id = 1100);
EXPECT(C.t = 'x_x');
fetch C;
EXPECT(C.id = 4500);
EXPECT(C.t = 'y_y');
fetch C;
EXPECT(not C);
END_TEST(shared_fragments)
@attribute(cql:shared_fragment)
create proc get_values()
begin
select 1 id, 'x' t
union all
select 2 id, 'y' t;
end;
create table x(id integer, t text);
BEGIN_TEST(shared_exec)
drop table if exists x;
create table x(id integer, t text);
with
(call get_values())
insert into x select * from get_values;
declare C cursor for select * from x;
fetch C;
EXPECT(C.id = 1);
EXPECT(C.t = 'x');
fetch C;
EXPECT(C.id = 2);
EXPECT(C.t = 'y');
fetch C;
EXPECT(not C);
drop table x;
END_TEST(shared_exec)
END_SUITE()
-- manually force tracing on by redefining the macros
@echo c,"#undef cql_error_trace\n";
@echo c,"#define cql_error_trace() run_test_trace_callback(_PROC_, __FILE__, __LINE__)\n";
@echo c,"void run_test_trace_callback(const char *proc, const char *file, int32_t line);\n";
-- this table will never actually be created, only declared
-- hence it is a good source of db errors
create table does_not_exist(id integer);
create proc fails_because_bogus_table()
begin
begin try
declare D cursor for select * from does_not_exist;
end try;
begin catch
-- Without tracing this failure code can be seen, the cursor D
-- will be finalized as part of cleanup and THAT success will be
-- the sqlite3_errmsg() result. Tracing lets you see the error as it happens.
drop table if exists does_not_exist;
-- now we save the code
throw;
end catch;
end;
-- Called in the test client to verify that we hit tripwires when passing NULL
-- inappropriately for various argument types and at various argument indices.
create proc proc_with_notnull_args(
a text not null,
b text not null,
out c text not null,
out d text not null,
inout e text not null,
inout f text not null,
inout g text not null,
inout h text not null,
i text not null,
out j text not null,
inout k text not null,
inout l text not null,
)
begin
end;
@echo c,"#undef cql_error_trace\n";
@echo c,"#define cql_error_trace()\n";
@emit_enums;
|
<filename>database/python/worker/update.sql
UPDATE
coffee.altitude_meters am
SET
low = t.altitude,
mean = t.altitude,
high = t.altitude
FROM
({select}) as t
WHERE
t.id = am.id;
|
<reponame>purbon/docker-playground
-- table with declared columns:
CREATE TABLE users (
id BIGINT PRIMARY KEY,
gender VARCHAR,
region_id BIGINT,
profile_id BIGINT
) WITH (
KAFKA_TOPIC = 'users',
PARTITIONS = 1,
REPLICAS = 1,
VALUE_FORMAT = 'JSON'
);
CREATE TABLE region (
id BIGINT PRIMARY KEY,
name VARCHAR
) WITH (
KAFKA_TOPIC = 'regions',
PARTITIONS = 1,
REPLICAS = 1,
VALUE_FORMAT = 'JSON'
);
CREATE TABLE profile (
id BIGINT PRIMARY KEY,
name VARCHAR
) WITH (
KAFKA_TOPIC = 'profiles',
PARTITIONS = 1,
REPLICAS = 1,
VALUE_FORMAT = 'JSON'
);
INSERT INTO users (id, gender, region_id, profile_id) VALUES (1, 'M', 1, 1 );
INSERT INTO users (id, gender, region_id, profile_id) VALUES (2, 'M', 2, 2 );
INSERT INTO users (id, gender, region_id, profile_id) VALUES (3, 'F', 3, 1 );
INSERT INTO users (id, gender, region_id, profile_id) VALUES (4, 'F', 1, 2 );
INSERT INTO users (id, gender, region_id, profile_id) VALUES (5, 'M', 2, 1 );
INSERT INTO region (id, name) VALUES (1, 'Germany' );
INSERT INTO region (id, name) VALUES (2, 'Spain' );
INSERT INTO region (id, name) VALUES (3, 'UK' );
INSERT INTO region (id, name) VALUES (4, 'Spain' );
INSERT INTO region (id, name) VALUES (5, 'UK' );
INSERT INTO profile (id, name) VALUES (1, 'H' );
INSERT INTO profile (id, name) VALUES (2, 'L' );
INSERT INTO profile (id, name) VALUES (3, 'H' );
INSERT INTO profile (id, name) VALUES (4, 'L' );
INSERT INTO profile (id, name) VALUES (5, 'L' );
INSERT INTO region (id, name) VALUES (4, 'France' );
INSERT INTO profile (id, name) VALUES (3, 'M' );
CREATE TABLE global AS
SELECT *
FROM users u INNER JOIN region r ON u.id = r.id
INNER JOIN profile p ON u.id = p.id
EMIT CHANGES;
CREATE TABLE uglobal AS
SELECT UDF_NORM(u.gender), r.name
FROM users u INNER JOIN region r ON u.id = r.id
INNER JOIN profile p ON u.id = p.id
EMIT CHANGES;
|
ALTER TABLE users ADD blocked TINYINT DEFAULT 0; |
-- Demonstration B
-- Step 1: Open a new query window to the TSQL database
USE TSQL;
GO
-- Step 2: Using functions
-- Select and execute the following to
-- demonstrate using the sample function
-- Note: dbo.GetNums() takes as parameters: @low (bigint) and (@high) bigint
SELECT * FROM dbo.GetNums(10,20);
GO
-- Step 3: Creating simple functions
-- Select and execute the following to
-- Create a function to calculate line extension for orders
CREATE FUNCTION Sales.fn_LineTotal ( @orderid INT )
RETURNS TABLE
AS
RETURN
SELECT orderid, productid, unitprice, qty, discount,
CAST(( qty * unitprice * ( 1 - discount ) ) AS DECIMAL(8, 2)) AS line_total
FROM Sales.OrderDetails
WHERE orderid = @orderid ;
GO
-- Use the function
SELECT orderid, productid, unitprice, qty, discount, line_total
FROM Sales.fn_LineTotal(10252) AS LT;
GO
-- Step 4: Cleanup
DROP FUNCTION Sales.fn_LineTotal;
GO |
<gh_stars>1-10
// @author <NAME> (minor modifications)
// This Cypher Query Language (CQL) Script is for
// loading another sample (WikiData) RDF-like sample of SemMedDb data
// semmed_all_associated_with_sentences_1.tsv
//
// The script uses the CSV loader functionality of Neo4j.
//
// See the DATALOADING_R2.3_README.md for
// more details on how to run the script.
//
//****** WikiData Entities ******
MERGE (database:ExternalDatabase:IdentifiedEntity:DatabaseEntity{name : "WikiData Entity"})
ON CREATE SET database.name = "WikiData Entity",
database.description = "WikiData Entities",
database.url = "http://www.wikidata.org/entity/",
database.nameSpacePrefix = "wd",
database.accessionId = "wd:DB",
database.versionDate = timestamp(),
database.version = TOINT('1')
;
//****** PubMed Catalog ******
MERGE (database:ExternalDatabase:IdentifiedEntity:DatabaseEntity{name : "PubMed"})
ON CREATE SET database.name = "PubMed",
database.description = "Public Library of Medicine",
database.url = "https://www.ncbi.nlm.nih.gov/pubmed/",
database.nameSpacePrefix = "pmid",
database.accessionId = "pmid:DB",
database.versionDate = timestamp(),
database.version = TOINT('1')
;
//******Concept Loader*****
CREATE CONSTRAINT ON (concept:Concept) ASSERT concept.uri IS UNIQUE;
// Create Index for making initial search faster (need to review)
CREATE INDEX ON : Concept(name);
CREATE INDEX ON : Concept(usage);
CREATE INDEX ON : Concept(type);
// ... Capture Concepts from subject columns in the input file...
USING PERIODIC COMMIT 5000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row AS row, last(split(row.subject_uri,"/")) AS wikidataId
WHERE NOT row.subject_uri IS NULL
MERGE (concept:Concept:AnnotatedEntity:IdentifiedEntity:DatabaseEntity {uri : row.subject_uri })
ON CREATE SET
concept.uri = row.subject_uri,
concept.accessionId = "wd:"+wikidataId,
concept.type = upper(row.subject_semantic_group),
concept.name = row.subject_preferred_name,
concept.description = "",
concept.usage = TOINT('0'),
concept.versionDate = timestamp(),
concept.version = TOINT('1')
MERGE (concept)-[:LIBRARY]->(library:Library)
ON CREATE SET
library.numberOfArchivedMaps = TOINT('0'),
library.name = concept.name +"_Library",
library.description = "Library Of "+ concept.name,
library.accessionId = concept.accessionId,
library.versionDate = timestamp(),
library.version = TOINT('1')
;
//******Predicate Loader*****
CREATE CONSTRAINT ON (predicate:Predicate) ASSERT predicate.uri IS UNIQUE;
// ... Capture Predicates from predicate columns in the input file...
USING PERIODIC COMMIT 5000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH
row AS row,
CASE
WHEN left(row.property_uri,24) = "https://www.wikidata.org" THEN "wd"
WHEN left(row.property_uri,26) = "http://purl.obolibrary.org" THEN "obo"
ELSE "kb"
END AS qualifier,
CASE
WHEN left(row.property_uri,24) = "https://www.wikidata.org" THEN last(split(row.property_uri,":"))
ELSE last(split(row.property_uri,"/"))
END AS wikidataId
WHERE NOT row.property_uri IS NULL
MERGE (predicate:Predicate:IdentifiedEntity:DatabaseEntity {uri : row.property_uri })
ON CREATE SET
predicate.uri = row.property_uri,
predicate.accessionId = qualifier+":"+wikidataId,
predicate.name = row.property_name,
predicate.description = "",
predicate.versionDate = timestamp(),
predicate.version = TOINT('1')
;
// ... Capture Concepts from object columns in the input file...
USING PERIODIC COMMIT 5000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row, last(split(row.object_uri,"/")) AS wikidataId
WHERE NOT row.object_uri IS NULL
MERGE (concept:Concept:AnnotatedEntity:IdentifiedEntity:DatabaseEntity {uri : row.object_uri })
ON CREATE SET
concept.uri = row.object_uri,
concept.accessionId = "wd:"+wikidataId,
concept.type = upper(row.object_semantic_group),
concept.name = row.object_preferred_name,
concept.description = "",
concept.usage = TOINT('0'),
concept.versionDate = timestamp(),
concept.version = TOINT('1')
MERGE (concept)-[:LIBRARY]->(library:Library)
ON CREATE SET
library.numberOfArchivedMaps = TOINT('0'),
library.name = concept.name +"_Library",
library.description = "Library Of "+ concept.name,
library.accessionId = concept.accessionId,
library.versionDate = timestamp(),
library.version = TOINT('1')
;
//******Reference loader******
// Here we assume PubMed identifiers... needs to be generalized
CREATE CONSTRAINT ON (reference:Reference) ASSERT reference.uri IS UNIQUE;
USING PERIODIC COMMIT 5000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row, last(split(row.reference_uri,"/")) AS pmid, split(row.reference_date,"/") AS date
WHERE NOT row.reference_uri IS NULL
MERGE (reference:Reference:AnnotatedEntity:IdentifiedEntity:DatabaseEntity { uri : row.reference_uri })
ON CREATE SET
reference.uri = row.reference_uri,
reference.accessionId = "pmid:"+pmid,
reference.pmid = pmid,
reference.name = "pmid:"+pmid,
reference.description = "",
reference.month = CASE
WHEN
size(date) < 3 OR
trim(date[0]) = 'not set' OR
length(trim(date[0])) = 0
THEN TOINT('0')
ELSE TOINT(date[0])
END,
reference.day = CASE
WHEN size(date) < 3 OR
trim(date[0]) = 'not set' OR
length(trim(date[1])) = 0
THEN TOINT('0')
ELSE TOINT(date[1])
END,
reference.year = CASE
WHEN size(date) < 3 OR
trim(date[0]) = 'not set' OR
length(trim(date[2])) = 0
THEN TOINT('0')
ELSE TOINT(date[2])
END,
reference.versionDate = timestamp(),
reference.version = TOINT('1')
;
//******Annotation loader******
CREATE CONSTRAINT ON (annotation:Annotation) ASSERT annotation.accessionId IS UNIQUE;
USING PERIODIC COMMIT 5000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row
MATCH (reference:Reference { uri : row.reference_uri })
WITH row AS row, reference AS reference
MERGE (annotation:Annotation:IdentifiedEntity:DatabaseEntity { accessionId : "kba."+reference.name })
ON CREATE SET
annotation.uri = "http://knowledge.bio/annotation/"+reference.name,
annotation.accessionId = "kba."+reference.name,
annotation.name = row.reference_supporting_text,
annotation.description = "",
annotation.versionDate = timestamp(),
annotation.version = TOINT('1')
MERGE (annotation)-[:REFERENCE]->(reference)
;
//******Evidence Loader******
// Evidence node used to anchor Annotation associated with Reference uri's
CREATE CONSTRAINT ON (evidence:Evidence) ASSERT evidence.accessionId IS UNIQUE;
// Perhaps process this complex input in smaller commit blocks
USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row
MATCH (subject:Concept { uri : row.subject_uri })
MATCH (relation:Predicate { uri : row.property_uri })
MATCH (object:Concept { uri : row.object_uri })
MATCH (reference:Reference { uri : row.reference_uri })
WITH reference AS reference,
substring(subject.accessionId,3) + "." + substring(relation.accessionId,3) + "." + substring(object.accessionId,3) AS stmtId
MATCH (annotation:Annotation { accessionId : "kba."+reference.name })
MERGE (evidence:Evidence:IdentifiedEntity:DatabaseEntity { accessionId : "kbe:"+stmtId })
ON CREATE SET
evidence.uri = "http://knowledge.bio/evidence/"+stmtId,
evidence.accessionId = "kbe:"+stmtId,
evidence.name = "",
evidence.description = "",
evidence.count = TOINT('0'),
evidence.versionDate = timestamp(),
evidence.version = TOINT('1')
WITH evidence AS evidence, annotation AS annotation
MERGE (evidence)-[:ANNOTATION]->(annotation)
ON CREATE SET evidence.count = evidence.count + 1
;
//******Statement Loader******
CREATE CONSTRAINT ON (statement:Statement) ASSERT statement.accessionId IS UNIQUE;
// Perhaps process this complex input in smaller commit blocks
USING PERIODIC COMMIT 1000
LOAD CSV WITH HEADERS FROM "file:///semmeddb/semmed_all_associated_with_sentences_1.tsv" AS row FIELDTERMINATOR '\t'
WITH row
MATCH (subject:Concept { uri : row.subject_uri })
MATCH (relation:Predicate { uri : row.property_uri })
MATCH (object:Concept { uri : row.object_uri })
WITH subject AS subject,
relation AS relation,
object AS object,
substring(subject.accessionId,3) + "." + substring(relation.accessionId,3) + "." + substring(object.accessionId,3) AS stmtId
MATCH (evidence:Evidence:IdentifiedEntity:DatabaseEntity { accessionId : "kbe:"+stmtId })
MERGE (stmt:Statement:IdentifiedEntity:DatabaseEntity { accessionId : "kbs:"+stmtId })
ON CREATE SET
stmt.name = subject.name+" - "+relation.name+" -> "+object.name,
stmt.description = "",
stmt.uri = "http://knowledge.bio/statement/"+stmtId,
stmt.accessionId = "kbs:"+stmtId,
stmt.versionDate = timestamp(),
stmt.version = TOINT('1')
MERGE (subject)<-[:SUBJECT]-(stmt)-[:OBJECT]->(object)
ON CREATE SET subject.usage = subject.usage + 1, object.usage = object.usage + 1
MERGE (relation)<-[:RELATION]-(stmt)-[:EVIDENCE]->(evidence)
ON CREATE SET evidence.count = TOINT('1')
ON MATCH SET evidence.count = evidence.count + 1
;
|
CREATE PROCEDURE dbo.spTeams_Insert
@TeamName nvarchar(50),
@id int = 0 output
AS
BEGIN
SET NOCOUNT ON;
INSERT INTO dbo.Teams (TeamName)
VALUES (@TeamName);
SELECT @id = SCOPE_IDENTITY();
END
|
<gh_stars>10-100
ALTER TABLE `pexcard_transaction` ADD `transferToOrFromAccountId` int(11) unsigned DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `transactionType` varchar(50) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `isPending` int(1) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `isDecline` int(1) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `paddingAmount` float DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `merchantName` varchar(100) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `merchantCity` varchar(100) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `merchantState` varchar(100) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `merchantCountry` varchar(100) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `MCCCode` varchar(100) DEFAULT NULL;
ALTER TABLE `pexcard_transaction` ADD `authTransactionId` int(11) unsigned DEFAULT NULL; |
-- file:jsonb.sql ln:113 expect:true
CREATE TEMP TABLE test_jsonb (
json_type text,
test_json jsonb
)
|
<gh_stars>10-100
CREATE OR REPLACE FUNCTION pgl_ddl_deploy.queue_ddl_message_type()
RETURNS "char"
LANGUAGE sql
IMMUTABLE
AS $function$
SELECT 'Q'::"char";
$function$
;
|
SELECT
h2.name objectcsid,
cc.objectnumber,
h1.name mediacsid,
mc.description,
b.name,
mc.creator creatorRefname,
mc.creator creator,
mc.blobcsid,
mc.copyrightstatement,
mc.identificationnumber,
mc.rightsholder rightsholderRefname,
mc.rightsholder rightsholder,
mc.contributor
FROM media_common mc
LEFT OUTER JOIN media_cinefiles mb on (mb.id = mc.id)
JOIN misc ON (mc.id = misc.id AND misc.lifecyclestate <> 'deleted')
LEFT OUTER JOIN hierarchy h1 ON (h1.id = mc.id)
INNER JOIN relations_common r on (h1.name = r.objectcsid)
LEFT OUTER JOIN hierarchy h2 on (r.subjectcsid = h2.name)
LEFT OUTER JOIN collectionobjects_common cc on (h2.id = cc.id)
LEFT OUTER JOIN collectionobjects_cinefiles cop on (h2.id = cop.id)
JOIN hierarchy h3 ON (mc.blobcsid = h3.name)
LEFT OUTER JOIN blobs_common b on (h3.id = b.id)
|
/* ICC/Rotface - Place all Puddle Stalkers on the ground */
UPDATE `creature` SET `position_z` = 360.469 WHERE `id` = 37013; |
INSERT INTO country
( id
, alpha2_code
, alpha3_code
, name
, demonym
, continent_id
)
VALUES
( ?.id
, ?.alpha2Code
, ?.alpha3Code
, ?.name
, ?.demonym
, ?.continentId
);
|
<filename>wct-core/db/legacy/upgrade/upgrade-postgres-1_4-to-1_4_1.sql<gh_stars>10-100
ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_subject character varying(255);
ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_overwrite_from boolean DEFAULT FALSE NOT NULL;
ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_from character varying(255);
ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_cc character varying(2048);
ALTER TABLE DB_WCT.PERMISSION_template ADD COLUMN prt_template_bcc character varying(2048);
UPDATE DB_WCT.PERMISSION_template SET prt_template_subject = 'Web Preservation Programme' WHERE prt_template_Type like 'E%' ;
CREATE TABLE DB_WCT.SEED_HISTORY (SH_OID bigint not null, SH_TI_OID bigint, SH_SEED character varying(1024) not null, SH_PRIMARY boolean not null, primary key (SH_OID));
ALTER TABLE DB_WCT.SEED_HISTORY add constraint FK_SEED_HISTORY_TI_OID foreign key (SH_TI_OID) references DB_WCT.TARGET_INSTANCE (TI_OID);
GRANT SELECT, INSERT, UPDATE, DELETE ON DB_WCT.SEED_HISTORY TO USR_WCT;
ALTER TABLE DB_WCT.TARGET_INSTANCE ADD COLUMN ti_archived_time timestamp without time zone;
|
<filename>.setup/schema.1.cql
-- To run:
-- cqlsh --ssl -f schema.1.cql
-- SCRP
-- drop keyspace scrp;
--CREATE KEYSPACE scrp WITH replication = {'class': 'NetworkTopologyStrategy', 'DC1': '2'} AND durable_writes = true; --Use this for production
create keyspace scrp WITH REPLICATION = { 'class':'NetworkTopologyStrategy', 'DC1':'1' };
use scrp;
create table queries (
id timeuuid,
domain text,
filter text,
PRIMARY KEY (id)
);
create table urls (
url text,
seq timeuuid, --sequence it came in/last updated
status int, --0 untouched, 200=OK etc
sched timestamp, --scheduled for processing
completed boolean,
mid text, --machine id
qid timeuuid, --query id
attempt timeuuid,
attempts int,
PRIMARY KEY (url)
);
CREATE INDEX urls_qid_idx ON urls ( qid );
CREATE INDEX urls_completed_idx ON urls ( completed );
create table failures (
url text,
seq timeuuid, --sequence it came in/last updated
status int, --0 untouched, 200=OK etc
sched timestamp, --scheduled for processing
mid text, --machine id
qid timeuuid, --query ids
attempts int,
PRIMARY KEY (url)
);
create table successes (
url text,
seq timeuuid, --sequence it came in/last updated
status int, --0 untouched, 200=OK etc
sched timestamp, --scheduled for processing
mid text, --machine id
qid timeuuid, --query id
size bigint,
attempts int,
PRIMARY KEY (url)
);
--Successful scrapes
create table content (
url text,
seq timeuuid, --sequence it came in/last updated
mid text, --machine id
qid timeuuid, --query id
type text, --type of data
params frozen<map<text,text>>,
raw text,
PRIMARY KEY (url)
);
CREATE INDEX content_type_idx ON content ( type ); |
DELETE FROM @target_database_schema.@target_cohort_table where cohort_definition_id = @target_cohort_id;
insert into @target_database_schema.@target_cohort_table (cohort_definition_id, subject_id, cohort_start_date, cohort_end_date)
select @target_cohort_id as cohort_definition_id, op1.person_id as subject_id, datefromparts(2017,10,1) as cohort_start_date, datefromparts(2017,10,1) as cohort_end_date
from @cdm_database_schema.observation_period op1
where dateadd(dd,365,op1.observation_period_start_date) <= datefromparts(2017,10,1)
and op1.observation_period_end_date >= datefromparts(2017,10,1)
union all
select @target_cohort_id as cohort_definition_id, op1.person_id as subject_id, datefromparts(2018,10,1) as cohort_start_date, datefromparts(2018,10,1) as cohort_end_date
from @cdm_database_schema.observation_period op1
where dateadd(dd,365,op1.observation_period_start_date) <= datefromparts(2018,10,1)
and op1.observation_period_end_date >= datefromparts(2018,10,1)
union all
select @target_cohort_id as cohort_definition_id, op1.person_id as subject_id, datefromparts(2019,10,1) as cohort_start_date, datefromparts(2019,10,1) as cohort_end_date
from @cdm_database_schema.observation_period op1
where dateadd(dd,365,op1.observation_period_start_date) <= datefromparts(2019,10,1)
and op1.observation_period_end_date >= datefromparts(2019,10,1)
;
|
<reponame>opitzconsulting/orcas
create table tab_a
(
tab_a_id number(9) not null,
constraint pk_tab_a primary key (tab_a_id)
);
create table tab_ref
(
tab_a_id number(8),
constraint fk_tab_del_cas_tab_a_id foreign key (tab_a_id) references tab_a (tab_a_id) on delete cascade
);
create table tab_new_disable
(
id number(9) not null,
constraint tab_new_disable_cc foreign key (id) references tab_a (tab_a_id) disable
);
create table tab_old_disable
(
id number(9) not null,
constraint tab_old_disable_cc foreign key (id) references tab_a (tab_a_id) disable
);
create table tab_old_enable
(
id number(9) not null,
constraint tab_old_enable_cc foreign key (id) references tab_a (tab_a_id) enable
);
|
CREATE TABLE IF NOT EXISTS certificate.certificates
(
_id serial primary key,
uuid uuid NOT NULL DEFAULT uuid_generate_v4 (),
identity_id varchar NOT NULL, -- renamed to identity_uuid in later migration
operator_id varchar NOT NULL, -- renamed to operator_uuid in later migration
territory_id varchar NOT NULL, -- renamed to territory_uuid in later migration
start_at timestamp with time zone NOT NULL,
end_at timestamp with time zone NOT NULL,
created_at timestamp with time zone NOT NULL DEFAULT NOW(),
updated_at timestamp with time zone NOT NULL DEFAULT NOW(),
meta jsonb NOT NULL DEFAULT '{}'
);
CREATE UNIQUE INDEX ON certificate.certificates (uuid);
CREATE TRIGGER touch_certificates_updated_at BEFORE UPDATE ON certificate.certificates FOR EACH ROW EXECUTE PROCEDURE common.touch_updated_at();
|
CREATE PROCEDURE [dbo].[EnsureIpAddressFactsExist]
@addresses [dbo].[IpAddressFactTableType] READONLY
AS
BEGIN
SET NOCOUNT ON;
DECLARE @results TABLE
(
[Id] INT NOT NULL,
[Address] VARBINARY(16) NOT NULL,
[TextAddress] NVARCHAR(45) NOT NULL,
INDEX IX_Results NONCLUSTERED ([Id], [Address], [TextAddress])
)
DECLARE @Address VARBINARY(16)
DECLARE @TextAddress NVARCHAR(45)
BEGIN TRY
-- Open Cursor
DECLARE ipaddress_Cursor CURSOR FOR
SELECT [Address], [TextAddress]
FROM @addresses
OPEN ipaddress_Cursor FETCH NEXT
FROM ipaddress_Cursor
INTO @Address, @TextAddress
WHILE @@FETCH_STATUS = 0
BEGIN
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE
BEGIN TRANSACTION
-- Create fact if not exists
IF NOT EXISTS (SELECT Id FROM [Fact_IpAddress] (NOLOCK) WHERE ISNULL([TextAddress], '') = @TextAddress)
INSERT INTO [Fact_IpAddress] ([Address], [TextAddress])
OUTPUT inserted.Id, @Address, @TextAddress INTO @results
VALUES (@Address, @TextAddress);
ELSE
INSERT INTO @results ([Id], [Address], [TextAddress])
SELECT [Id], @Address, @TextAddress
FROM [dbo].[Fact_IpAddress] (NOLOCK)
WHERE ISNULL([TextAddress], '') = @TextAddress
COMMIT
-- Advance cursor
FETCH NEXT FROM ipaddress_Cursor
INTO @Address, @TextAddress
END
-- Close cursor
CLOSE ipaddress_Cursor
DEALLOCATE ipaddress_Cursor
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK;
THROW
END CATCH
-- Select all matching dimensions
SELECT [Id], [TextAddress]
FROM @results
END |
select count(*) from games;
-- game analysis
select
race, opponentrace,
count(*) as matches,
sum(if(result = "Victory", 1, 0)) / count(*) as win_percent,
format(avg(mmr), 2) as avg_match_making_rating,
format(avg(apm), 2) as avg_apm
from players
group by 1,2
order by 1,2;
-- compvecs
select race, opponentRace, loopID, loopLag, vec from compvecs where loopid > 6818;
-- manual checking
select
other.gameid,
other.playerid,
EUCLIDEAN_DISTANCE(game.vec, other.vec) dist
from
compvec(6818-2400, 6818) as game,
compvec(6820-2400, 6820) as other
where
game.gameid = -5280689129783593904 and game.playerid = 2
and other.gameid in (8282961679202068312,-1494454335525381675)
and other.playerid = 1
order by dist asc;
select * from gamesummary("-5280689129783593904");
select filename from games where gameid = -5280689129783593904;
select * from comp("-5280689129783593904", 2, 0, 5000);
-- similar games
select distinct gameid, playerid, loopid
from similarGamePoints(-5280689129783593904, 2, 'Zerg', 'Protoss', 7000, 2400, 5); |
-- Compute the count of all unique participants in AoU
-- that have at least one measurement.
SELECT
COUNT(DISTINCT person_id) AS number_of_participants_with_measurements
FROM
`{DATASET}.measurement`
|
<filename>grassroot-webapp/src/main/resources/db/scripts/script_71_rollback.sql<gh_stars>10-100
ALTER TABLE event ALTER COLUMN start_date_time DROP NOT NULL; |
<reponame>dsrhub/utask
-- +migrate Up
DROP INDEX "task_resolver_usernames_idx", "task_watcher_usernames_idx";
-- See section 8.14.4 relative to jsonb indexing:
-- https://www.postgresql.org/docs/9.4/datatype-json.html
CREATE INDEX "task_watcher_usernames_idx" ON "task" USING gin (watcher_usernames jsonb_path_ops);
CREATE INDEX "task_resolver_usernames_idx" ON "task" USING gin (resolver_usernames jsonb_path_ops);
ALTER TABLE "task_template" ALTER COLUMN "variables" SET DEFAULT 'null', ALTER COLUMN "variables" SET NOT NULL;
ALTER TABLE "task_template" ALTER COLUMN "allowed_resolver_usernames" SET DEFAULT '[]', ALTER COLUMN "allowed_resolver_usernames" SET NOT NULL;
ALTER TABLE "task" ALTER COLUMN "watcher_usernames" SET DEFAULT 'null', ALTER COLUMN "watcher_usernames" SET NOT NULL;
ALTER TABLE "task" ALTER COLUMN "resolver_usernames" SET DEFAULT 'null', ALTER COLUMN "resolver_usernames" SET NOT NULL;
-- +migrate Down
ALTER TABLE "task" ALTER COLUMN "resolver_usernames" DROP DEFAULT, ALTER COLUMN "resolver_usernames" DROP NOT NULL;
ALTER TABLE "task" ALTER COLUMN "watcher_usernames" DROP DEFAULT, ALTER COLUMN "watcher_usernames" DROP NOT NULL;
ALTER TABLE "task_template" ALTER COLUMN "allowed_resolver_usernames" DROP DEFAULT, ALTER COLUMN "allowed_resolver_usernames" DROP NOT NULL;
ALTER TABLE "task_template" ALTER COLUMN "variables" DROP DEFAULT, ALTER COLUMN "variables" DROP NOT NULL;
DROP INDEX "task_resolver_usernames_idx", "task_watcher_usernames_idx";
CREATE INDEX "task_watcher_usernames_idx" ON "task"(watcher_usernames);
CREATE INDEX "task_resolver_usernames_idx" ON "task"(resolver_usernames);
|
<filename>openGaussBase/testcase/SQL/DATATYPE/jsonb/Opengauss_Function_Datatype_Jsonb_Case0073.sql
-- @testpoint: 通用函数:jsonb_extract_path_text(返回由path_elems指向的JSON值,同操作符 #>>,当入参不合理时,合理报错)
--jsonb_extract_path_text函数,入参合理
select jsonb_extract_path_text('{"f2":{"f3":1},"f4":{"f5":99,"f6":"stringy"}}', 'f4','f6');
select jsonb_extract_path_text ('{"f1":[1,2,3],"f2":{"f3":1},"f4":null}','f2','f3');
select jsonb_extract_path_text ('{"a":1, "b":"test", "a":2,"b":true}','b','true');
select jsonb_extract_path_text ('{"a": {"b":{"a":{"b":{"a":{"b":88}}}}}}','a','b');
select jsonb_extract_path_text ('[{"a":"foo"},{"b":"bar"},{"c":"baz"}]','2','1');
select jsonb_extract_path_text ('[{"a":"foo"},{"b":"bar"},{"c":"baz"}]','1');
--jsonb_extract_path_text函数,入参不合理
select jsonb_extract_path_text ('[{"a":"foo"},{"b":"bar"},{"c":"baz"}]');
select jsonb_extract_path_text('true','true');
select jsonb_extract_path_text('1389158','138');
select jsonb_extract_path_text('null','n');
select jsonb_extract_path_text('true,false','true');
select jsonb_extract_path_text('138,158,369','138');
select jsonb_extract_path_text('null',);
--返回结果类型校验:text
select pg_typeof(jsonb_extract_path_text ('{"f2":{"f3":1},"f4":{"f5":99,"f6":"stringy"}}', 'f4','f6')); |
BEGIN TRANSACTION;
CREATE TABLE "Restaurant_Info" (
`restaurant_id` INTEGER PRIMARY KEY AUTOINCREMENT,
`restaurant_name` TEXT
);
INSERT INTO `Restaurant_Info` VALUES (1,'Wendy''s');
INSERT INTO `Restaurant_Info` VALUES (2,'<NAME>');
INSERT INTO `Restaurant_Info` VALUES (3,'Burger King');
INSERT INTO `Restaurant_Info` VALUES (4,'Applebee''s');
INSERT INTO `Restaurant_Info` VALUES (5,'TGI Friday''s');
INSERT INTO `Restaurant_Info` VALUES (6,'Olive Garden');
COMMIT;
|
CREATE SCHEMA pgpw_test AUTHORIZATION postgres;
|
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 06, 2020 at 08:14 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: `quizz`
--
-- --------------------------------------------------------
--
-- 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 `levels`
--
CREATE TABLE `levels` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(50) 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 `levels`
--
INSERT INTO `levels` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Part I', NULL, NULL),
(2, 'Part II', NULL, NULL);
-- --------------------------------------------------------
--
-- 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_11_27_034730_create_levels_table', 1),
(5, '2020_11_27_034742_create_subjects_table', 1),
(6, '2020_11_27_043508_create_quizzes_table', 1),
(7, '2020_11_27_044636_create_questions_table', 1),
(8, '2020_11_30_055257_create_results_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `questions`
--
CREATE TABLE `questions` (
`id` int(10) UNSIGNED NOT NULL,
`quizId` int(10) UNSIGNED NOT NULL,
`statement` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`optionA` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`optionB` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`optionC` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`optionD` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`ans` varchar(1) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `questions`
--
INSERT INTO `questions` (`id`, `quizId`, `statement`, `optionA`, `optionB`, `optionC`, `optionD`, `ans`) VALUES
(1, 1, 'Pakistan k nzriay ki asaas ______ hy', 'kalma', 'deen e islam', 'quaid e azam', 'saqafat ka frq', 'B'),
(2, 1, 'Nazria e Islam hi _____ hy', '2 qaumi nazria', 'Qrar dad e mqasid', 'Nazria e Pakistan', 'Asal Nazria', 'C'),
(3, 1, 'Pakistan to usi roz wajood me aa gia tha jb _____ hindu muslman hua', 'Pehla', 'Doosra', 'Teesra', 'Akhri', 'A'),
(4, 1, 'Nazria e Pakistan k ajza e trkeebi me shamil ni hy', 'Aqaaid o Ibadaat ', 'Muaashrti Insaf', 'Akhuwwat', 'Infradiat', 'D'),
(5, 1, '\"<NAME> jurm qrar paya\", ye kis writer ka alfaz hain? ', 'Robert', '<NAME>', 'Shakespere', 'Smith', 'B'),
(6, 1, 'Ghazi pur me madrassa kb qaim hua?', '1859', '1860', '1861', '1862', 'D'),
(7, 1, 'Muhammadan Educational Conference kb qaim hui?', '1885', '1886', '1890', '1900', 'B'),
(8, 1, 'Sir Syed Ahmad Khan ki tasneef hy', 'Miraat Ul Urros', 'Ibn ul Waqt', 'Al Ghazali', 'Aaeen e Akbari', 'D'),
(9, 1, 'Urdu Hindi tnaza kb start hua?', '1865', '1866', '1867', '1868', 'C'),
(10, 1, '\"Kasr e Pakistan ki buniad me pehli eent isi mrd peer ne rkhi thi\", kis k alfaz hain? ', '<NAME>', 'Sir Syed A<NAME>han', 'Quaid e Azam', 'Allama Iqbal', 'A'),
(11, 2, 'Standard version of C language is _____', 'ANCII', 'ANSI', 'ASCII', 'Turbo C', 'B'),
(12, 2, '____________ is an example of low level language', 'Pascal', 'Java', 'C', 'Machine Languauge', 'D'),
(13, 2, 'One who develops program is called _______', 'Developer', 'Programmer', 'Coder', 'All of above', 'D'),
(14, 2, 'Which program does not need compilation', 'Assembly program', 'Machine Langauge', 'Both A & B', 'None', 'C'),
(15, 2, 'Which language does not require compilation?', 'C', 'Java', 'C #', 'Assembly', 'D'),
(16, 2, 'scanF(\"%d\", &variable); contains', 'logical error', 'run time error', 'syntax error', 'no error', 'C'),
(17, 2, '.exe is finally produced by ___________', 'loader', 'linker', 'assembler', 'compiler', 'D'),
(18, 2, 'The symbol of preprocessor directive is _________', '$', '%', '&', '#', 'D'),
(19, 2, 'scanf() is an examples of ', 'input function', 'output function', 'printing function', 'storage function', 'A'),
(20, 2, 'what is true about an interpreter?', 'does not produce any .exe file', 'translates statements one by one', 'is slower than compiler', 'All of above', 'D'),
(21, 3, 'scanner is an example of _______', 'input device', 'output device', 'processing device', 'storage device', 'A'),
(22, 3, 'what is not true about information?', 'it is always in organized form', 'it is always meaningless', 'it is a processed form of data', 'None of above', 'B'),
(23, 3, 'It is not a storage device', 'CD', 'CPU', 'Hard Disk', 'USB', 'B'),
(24, 3, 'Window 7 is an example of ________', 'Utility software', 'Operating system', 'Application software', 'Customized software', 'B'),
(25, 3, 'Inverted mouse is just like ______', 'trackpad', 'trackball', 'touch pad', 'scanner', 'B'),
(26, 3, 'Hard copy is produced by _________', 'Speaker', 'CPU', 'Printer', 'Barcode reader', 'C'),
(27, 3, 'Corel draw is an example of ', 'application software ', 'driver', 'operating system', 'game', 'A'),
(28, 3, 'Hyper media may consist of ', 'text', 'image', 'audio', 'All of above', 'D'),
(29, 3, 'CPU is a _______________', 'Software', 'Hardware', 'Processing device', 'Storage device', 'C'),
(30, 3, '___________ is the part of CPU where actual execution takes place.', 'Memory', 'Hard disk', 'Control Unit', 'Arithmetic Logic Unit', 'D');
-- --------------------------------------------------------
--
-- Table structure for table `quizzes`
--
CREATE TABLE `quizzes` (
`id` int(10) UNSIGNED NOT NULL,
`levelId` int(10) UNSIGNED NOT NULL,
`subjectId` int(10) UNSIGNED NOT NULL,
`weekNo` int(10) UNSIGNED NOT NULL,
`teacherId` int(10) UNSIGNED 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 `quizzes`
--
INSERT INTO `quizzes` (`id`, `levelId`, `subjectId`, `weekNo`, `teacherId`, `created_at`, `updated_at`) VALUES
(1, 2, 2, 1, 1, NULL, NULL),
(2, 2, 3, 1, 1, NULL, NULL),
(3, 1, 3, 1, 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `results`
--
CREATE TABLE `results` (
`id` int(10) UNSIGNED NOT NULL,
`quizId` int(10) UNSIGNED NOT NULL,
`rollNo` int(10) UNSIGNED NOT NULL,
`sname` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`marks` int(10) UNSIGNED NOT NULL,
`total` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE `subjects` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `subjects`
--
INSERT INTO `subjects` (`id`, `name`) VALUES
(1, 'Islamiat'),
(2, 'Pak Studies'),
(3, 'Computer Sc.');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` 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 `users`
--
INSERT INTO `users` (`id`, `name`, `phone`, `password`, `created_at`, `updated_at`) VALUES
(1, 'abbas', '03424930066', '123', '2020-12-06 13:57:48', '2020-12-06 13:57:48'),
(2, 'umair', '03464428505', '123', '2020-12-06 13:57:48', '2020-12-06 13:57:48');
--
-- 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 `levels`
--
ALTER TABLE `levels`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `questions`
--
ALTER TABLE `questions`
ADD PRIMARY KEY (`id`),
ADD KEY `questions_quizid_foreign` (`quizId`);
--
-- Indexes for table `quizzes`
--
ALTER TABLE `quizzes`
ADD PRIMARY KEY (`id`),
ADD KEY `quizzes_levelid_foreign` (`levelId`),
ADD KEY `quizzes_subjectid_foreign` (`subjectId`),
ADD KEY `quizzes_teacherid_foreign` (`teacherId`);
--
-- Indexes for table `results`
--
ALTER TABLE `results`
ADD PRIMARY KEY (`id`),
ADD KEY `results_quizid_foreign` (`quizId`);
--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_phone_unique` (`phone`);
--
-- 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 `levels`
--
ALTER TABLE `levels`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `questions`
--
ALTER TABLE `questions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `quizzes`
--
ALTER TABLE `quizzes`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `results`
--
ALTER TABLE `results`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `questions`
--
ALTER TABLE `questions`
ADD CONSTRAINT `questions_quizid_foreign` FOREIGN KEY (`quizId`) REFERENCES `quizzes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `quizzes`
--
ALTER TABLE `quizzes`
ADD CONSTRAINT `quizzes_levelid_foreign` FOREIGN KEY (`levelId`) REFERENCES `levels` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `quizzes_subjectid_foreign` FOREIGN KEY (`subjectId`) REFERENCES `subjects` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `quizzes_teacherid_foreign` FOREIGN KEY (`teacherId`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `results`
--
ALTER TABLE `results`
ADD CONSTRAINT `results_quizid_foreign` FOREIGN KEY (`quizId`) REFERENCES `quizzes` (`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 */;
|
<reponame>Wbondar/techsupport-db
CREATE VIEW view_issue
AS
SELECT
issue.id AS id
, issue.issued_at AS issued_at
, issue.issued_by AS issued_by
, COALESCE(comment.content, 'Description of the issue is missing.') AS content
FROM issue JOIN comment ON issue.id = comment.issue_id
WHERE comment.id = 1 AND comment.reply_to IS NULL
;
|
WITH stargazers AS (
SELECT *
FROM {{ref('github_stargazers')}}
)
SELECT * FROM stargazers
|
<reponame>nevosial/HackerRank
/*
Enter your query here.
Please append a semicolon ";" at the end of the query and enter your query in a single line to avoid error.
select (select count(CITY) as num1 from STATION - select count(DISTINCT(CITY)) as num2 from STATION) as totalcount);
SELECT
(SELECT COUNT(*) FROM ... WHERE ...)
- (SELECT COUNT(*) FROM ... WHERE ...) AS Difference
SELECT
(SELECT COUNT(CITY) FROM STATION)
- (SELECT COUNT(DISTINCT(CITY)) FROM STATION) AS Difference
select ((select count(CITY) as num1 FROM STATION) - (select count(DISTINCT(CITY)) as num2 FROM STATION)) as cnt;
*/
select(count(CITY) - count(DISTINCT(CITY))) FROM STATION;
|
<filename>database.sql
# Host: 192.168.127.12 (Version 5.7.21-0ubuntu0.16.04.1)
# Date: 2018-07-09 12:57:55
# Generator: MySQL-Front 5.4 (Build 4.153) - http://www.mysqlfront.de/
/*!40101 SET NAMES utf8 */;
#
# Structure for table "child"
#
CREATE TABLE `child` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` text CHARACTER SET utf8mb4 COMMENT '姓名',
`days` int(11) DEFAULT NULL COMMENT '年龄',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4707 DEFAULT CHARSET=utf8;
#
# Structure for table "config"
#
CREATE TABLE `config` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`scheduling` text COMMENT '第n种疫苗第m次接种的最早和最晚时间',
`times` int(11) DEFAULT NULL COMMENT '第n种疫苗需要m次接种',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;
#
# Structure for table "user"
#
CREATE TABLE `user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` text,
`password` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4;
#
# Structure for table "vaccine"
#
CREATE TABLE `vaccine` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`start` int(11) DEFAULT NULL COMMENT '第n种疫苗的最早接种时间',
`end` int(11) DEFAULT NULL COMMENT '第n种疫苗的最晚接种时间',
`configId` int(11) DEFAULT NULL COMMENT '需要接种第n种疫苗',
`childId` int(11) DEFAULT NULL COMMENT '外键',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30144 DEFAULT CHARSET=utf8;
|
<gh_stars>1-10
-- Table: public.contracts
ALTER DATABASE active_record;
DROP TABLE IF EXISTS public.persons;
DROP SEQUENCE IF EXISTS persons_id_seq;
CREATE SEQUENCE persons_id_seq;
CREATE TABLE public.persons
(
person_id integer NOT NULL DEFAULT nextval('persons_id_seq'),
first_name character varying(100) NOT NULL,
second_name character varying(100) NOT NULL,
email character varying(100) NOT NULL,
CONSTRAINT contracts_pkey PRIMARY KEY (person_id)
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public.persons
OWNER to active_record; |
/*
<<property_start>>Description
* converts xref:sqldb:reference.additional_reference_object_t.adoc[] into xref:sqldb:repo.repoobject.adoc[]
<<property_end>>
*/
CREATE View [repo].[RepoObject_external_src]
As
Select
--PK: RepoObject_guid
T1.RepoObject_guid
, is_repo_managed = 1
, RepoObject_name = T1.ObjectName
, RepoObject_schema_name = T1.SchemaName
, RepoObject_type = 'U'
, SysObject_name = T1.ObjectName
, SysObject_schema_name = T1.SchemaName
, SysObject_type = 'U'
, external_AntoraComponent = T1.AntoraComponent
, external_AntoraModule = T1.AntoraModule
, is_external = 1
From
reference.additional_Reference_Object_T As T1
--filter not required, T1 should contain only external objects, but in case the current component or modules renames, we keep this for safity
Cross Join config.ftv_get_parameter_value ( 'AntoraComponent', '' ) As AntoraComponent
Cross Join config.ftv_get_parameter_value ( 'AntoraModule', '' ) As AntoraModule
Where
Not (
T1.AntoraComponent = AntoraComponent.Parameter_value_result
And T1.AntoraModule = AntoraModule.Parameter_value_result
)
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '41fe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'is_external';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '40fe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'external_AntoraModule';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3ffe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'external_AntoraComponent';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3efe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'SysObject_type';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3dfe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'SysObject_schema_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3cfe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'SysObject_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3bfe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'RepoObject_type';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '3afe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'RepoObject_schema_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '39fe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'RepoObject_name';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '38fe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'is_repo_managed';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObjectColumn_guid', @value = '37fe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src', @level2type = N'COLUMN', @level2name = N'RepoObject_guid';
GO
EXECUTE sp_addextendedproperty @name = N'RepoObject_guid', @value = '0dfe2e93-491a-ec11-851f-a81e8446d5b0', @level0type = N'SCHEMA', @level0name = N'repo', @level1type = N'VIEW', @level1name = N'RepoObject_external_src';
|
<filename>public.sql
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : PostgreSQL
Source Server Version : 90601
Source Host : localhost
Source Database : wlblog
Source Schema : public
Target Server Type : PostgreSQL
Target Server Version : 90601
File Encoding : utf-8
Date: 04/10/2017 17:34:29 PM
*/
-- ----------------------------
-- Sequence structure for articles_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."articles_id_seq";
CREATE SEQUENCE "public"."articles_id_seq" INCREMENT 1 START 11 MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1;
ALTER TABLE "public"."articles_id_seq" OWNER TO "wulong";
-- ----------------------------
-- Sequence structure for catagorys_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."catagorys_id_seq";
CREATE SEQUENCE "public"."catagorys_id_seq" INCREMENT 1 START 12 MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1;
ALTER TABLE "public"."catagorys_id_seq" OWNER TO "wulong";
-- ----------------------------
-- Sequence structure for fluent_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."fluent_id_seq";
CREATE SEQUENCE "public"."fluent_id_seq" INCREMENT 1 START 5 MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1;
ALTER TABLE "public"."fluent_id_seq" OWNER TO "wulong";
-- ----------------------------
-- Sequence structure for users_id_seq
-- ----------------------------
DROP SEQUENCE IF EXISTS "public"."users_id_seq";
CREATE SEQUENCE "public"."users_id_seq" INCREMENT 1 START 2 MAXVALUE 9223372036854775807 MINVALUE 1 CACHE 1;
ALTER TABLE "public"."users_id_seq" OWNER TO "wulong";
-- ----------------------------
-- Table structure for fluent
-- ----------------------------
DROP TABLE IF EXISTS "public"."fluent";
CREATE TABLE "public"."fluent" (
"id" int4 NOT NULL DEFAULT nextval('fluent_id_seq'::regclass),
"name" varchar(255) NOT NULL COLLATE "default"
)
WITH (OIDS=FALSE);
ALTER TABLE "public"."fluent" OWNER TO "wulong";
-- ----------------------------
-- Records of fluent
-- ----------------------------
BEGIN;
INSERT INTO "public"."fluent" VALUES ('1', 'User');
INSERT INTO "public"."fluent" VALUES ('3', 'Catagory');
INSERT INTO "public"."fluent" VALUES ('5', 'Article');
COMMIT;
-- ----------------------------
-- Table structure for users
-- ----------------------------
DROP TABLE IF EXISTS "public"."users";
CREATE TABLE "public"."users" (
"id" int4 NOT NULL DEFAULT nextval('users_id_seq'::regclass),
"name" varchar(255) NOT NULL COLLATE "default",
"password" varchar(255) NOT NULL COLLATE "default"
)
WITH (OIDS=FALSE);
ALTER TABLE "public"."users" OWNER TO "wulong";
-- ----------------------------
-- Records of users
-- ----------------------------
BEGIN;
INSERT INTO "public"."users" VALUES ('1', 'admin', '123456');
INSERT INTO "public"."users" VALUES ('2', 'admin2', '<PASSWORD>');
COMMIT;
-- ----------------------------
-- Table structure for catagorys
-- ----------------------------
DROP TABLE IF EXISTS "public"."catagorys";
CREATE TABLE "public"."catagorys" (
"id" int4 NOT NULL DEFAULT nextval('catagorys_id_seq'::regclass),
"cate_name" varchar(255) NOT NULL COLLATE "default",
"cate_title" varchar(255) NOT NULL COLLATE "default",
"cate_description" varchar(255) NOT NULL COLLATE "default",
"cate_keywords" varchar(255) NOT NULL COLLATE "default",
"cate_view" varchar(255) NOT NULL COLLATE "default",
"cate_order" varchar(255) NOT NULL COLLATE "default",
"cate_pid" varchar(255) NOT NULL COLLATE "default"
)
WITH (OIDS=FALSE);
ALTER TABLE "public"."catagorys" OWNER TO "wulong";
-- ----------------------------
-- Records of catagorys
-- ----------------------------
BEGIN;
INSERT INTO "public"."catagorys" VALUES ('1', '技术', '酷爱技术', '', '', '2', '2', '0');
INSERT INTO "public"."catagorys" VALUES ('2', '电玩', '超级电玩人', '', '', '5', '2', '0');
INSERT INTO "public"."catagorys" VALUES ('4', 'php技术', '快速开发网站', '', '', '5', '8', '1');
INSERT INTO "public"."catagorys" VALUES ('5', '读书技术', '有品位的读书', '', '', '1', '7', '1');
INSERT INTO "public"."catagorys" VALUES ('6', '生活技术', '生活中的小窍门', '', '', '1', '7', '1');
INSERT INTO "public"."catagorys" VALUES ('7', '电玩巴士', '
::TGbus.com::中国游戏第一门户_电玩巴士_电视游戏_...', '', '', '1', '7', '2');
INSERT INTO "public"."catagorys" VALUES ('8', '移动电玩城', '手机移动电玩城-百姓网', '', '', '1', '10', '2');
INSERT INTO "public"."catagorys" VALUES ('9', '99电玩', 'www.99dianwan.com # 99电玩官方网站 森林舞会 动物王国 万能鲨鱼...', '', '', '1', '7', '2');
INSERT INTO "public"."catagorys" VALUES ('10', 'vapor', 'Swift服务端框架-vapor', 'Swift服务端框架-vapor', 'Swift', '0', '11', '1');
INSERT INTO "public"."catagorys" VALUES ('11', '编程', '编程', '编程之美', '编程', '0', '2', '0');
INSERT INTO "public"."catagorys" VALUES ('12', '朋友', '朋友', '朋友', '朋友', '0', '5', '0');
COMMIT;
-- ----------------------------
-- Table structure for articles
-- ----------------------------
DROP TABLE IF EXISTS "public"."articles";
CREATE TABLE "public"."articles" (
"id" int4 NOT NULL DEFAULT nextval('articles_id_seq'::regclass),
"art_title" varchar(255) NOT NULL COLLATE "default",
"art_content" text NOT NULL COLLATE "default",
"art_description" varchar(255) NOT NULL COLLATE "default",
"art_keywords" varchar(255) NOT NULL COLLATE "default",
"art_tag" varchar(255) NOT NULL COLLATE "default",
"art_thumb" varchar(255) NOT NULL COLLATE "default",
"art_time" varchar(255) NOT NULL COLLATE "default",
"art_editor" varchar(255) NOT NULL COLLATE "default",
"art_view" varchar(255) NOT NULL COLLATE "default",
"catagory_id" int4 NOT NULL
)
WITH (OIDS=FALSE);
ALTER TABLE "public"."articles" OWNER TO "wulong";
-- ----------------------------
-- Records of articles
-- ----------------------------
BEGIN;
INSERT INTO "public"."articles" VALUES ('5', '嘻嘻嘻', '<p style="white-space: normal; text-align: center;"><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170303/1488510593130415.png" title="1488510593130415.png" alt="scrawl.png"/>ios-正确的圆角</p><p style="white-space: normal;"><img src="http://img.baidu.com/hi/bobo/B_0014.gif"/></p><p style="white-space: normal;">测试</p><table><tbody><tr class="firstRow"><td width="105" valign="top" style="word-break: break-all;">测试</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr><tr><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td><td width="105" valign="top" style="word-break: break-all;">测试数据</td></tr></tbody></table><p style="white-space: normal;"><br/></p><p style="white-space: normal;"><br/></p><p><br/></p>', '嘻嘻嘻', '', '', 'upload_images/1484876769.png', '', '嘻嘻嘻', '', '11');
INSERT INTO "public"."articles" VALUES ('10', 'hello5', '<p>hello5</p>', 'hello5', '', '', '', '', 'hello5', '', '11');
INSERT INTO "public"."articles" VALUES ('11', 'hello6', '<p>hello6</p>', 'hello6', '', '', '', '', 'hello6', '', '11');
INSERT INTO "public"."articles" VALUES ('6', 'hello', '<p>hello</p><p><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170214/1487052471527132.png" title="1487052471527132.png" alt="mmc_lottery_frame.png" width="250" height="82" style="width: 250px; height: 82px; float: left;"/></p><p><br/></p><p><br/></p><p><br/></p><p><br/></p><p>nice</p>', 'hello', '', '', '', '', 'hello', '', '11');
INSERT INTO "public"."articles" VALUES ('7', 'hello2', '<p>hello2</p><p><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170214/1487053666191989.png" title="1487053666191989.png" alt="scrawl.png"/></p><p><br/></p>', 'hello2', '', '', '', '', 'hello2', '', '11');
INSERT INTO "public"."articles" VALUES ('8', 'hello3', '<p>hello3</p><p><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170214/1487053791710046.png" title="1487053791710046.png" alt="Simulator Screen Shot 2017年2月10日 下午2.44.45.png" width="307" height="507" style="width: 307px; height: 507px;"/></p>', 'hello3', '', '', '', '', 'hello3', '', '11');
INSERT INTO "public"."articles" VALUES ('9', 'hello4', '<p>hello4</p><p><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170303/1488523091229739.png" title="1488523091229739.png" alt="scrawl.png"/></p>', 'hello4', '', '', '', '', 'hello4', '', '11');
INSERT INTO "public"."articles" VALUES ('2', 'PSV破解来袭-hello-爱上的 按时大', '<p>PSV玩家最近总算又活跃了起来,不是什么游戏大作发售了,而是PSV这次真的破解了!</p><p style="margin-top: 20px; margin-bottom: 20px; padding: 0px; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: normal; widows: 2; background-color: rgb(255, 255, 255);">经过了漫长的破解过程,几乎沦为PS4手柄的小V从新回到了大部分玩家的视线当中,最重要的是这次的破解再也不是之前的仅仅能玩玩PSP游戏的程度,而是可以成功运行自制软件以及破解的游戏。</p><p style="margin-top: 20px; margin-bottom: 20px; padding: 0px; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: normal; widows: 2; background-color: rgb(255, 255, 255);"> 玩家只要<span style="color: rgb(255, 0, 0);">保持主机系统在3.60下就能够安装HENkaku,经用浏览器访问固定地址就能够执行破解操作</span>,这种方法类似于之前WiiU的破解方法。</p><p style="margin-top: 20px; margin-bottom: 20px; padding: 0px; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: normal; widows: 2; background-color: rgb(255, 255, 255);">而目前游戏的破解速度也算迅速,像最先出现的《东京幻想乡》、随后的《萤火虫日记》《以撒 重生》等作品都稳步破解发布,甚至更有已经可以对应汉化补丁的《胧村正》这样的重量级作品。</p><p style="margin-top: 20px; margin-bottom: 20px; padding: 0px; color: rgb(51, 51, 51); font-family: 微软雅黑, 'Helvetica Neue', Helvetica, Tahoma, Arial, sans-serif; font-size: 14px; font-variant-ligatures: normal; orphans: 2; white-space: normal; widows: 2; background-color: rgb(255, 255, 255);"> 而游戏的Dump方式其实也已经发布,不过<span style="color: rgb(255, 0, 0);">对于一般普通玩家来说Dump破解游戏可能会显得麻烦</span>,相信应该有不少的玩家选择等待别人发布。另外和很多主机破解一样,PSV破解后也是基本建立在主机要离线的状态下才会安全,所以<span style="color: rgb(255, 0, 0);">想要通过破解版来体验在线联机是非常危险的</span>。</p><p style="margin-top: 20px; margin-bottom: 20px; padding: 0px;">当然,除了破解游戏外,PSV高破之后更有吸引力的一点其实是各种各样的自制软件,相信不会再有人说PSV没游戏玩了,因为不玩游戏你还可以期待更多其他有趣的功能。</p><p><img src="/wlblog_admin_front/admin/bower_components/ueditor/php/upload/image/20170303/1488523170416068.png" title="1488523170416068.png" alt="scrawl.png"/></p>', 'PSV全面告破!胧村正、东京幻想乡等作品相继发布', '', '', 'https://www.codercq.com/wlblog_upload/20161228214623826.jpg', '', '巫龙', '', '8');
COMMIT;
-- ----------------------------
-- Alter sequences owned by
-- ----------------------------
ALTER SEQUENCE "public"."articles_id_seq" RESTART 12 OWNED BY "articles"."id";
ALTER SEQUENCE "public"."catagorys_id_seq" RESTART 13 OWNED BY "catagorys"."id";
ALTER SEQUENCE "public"."fluent_id_seq" RESTART 6 OWNED BY "fluent"."id";
ALTER SEQUENCE "public"."users_id_seq" RESTART 3 OWNED BY "users"."id";
-- ----------------------------
-- Primary key structure for table fluent
-- ----------------------------
ALTER TABLE "public"."fluent" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
-- ----------------------------
-- Primary key structure for table users
-- ----------------------------
ALTER TABLE "public"."users" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
-- ----------------------------
-- Primary key structure for table catagorys
-- ----------------------------
ALTER TABLE "public"."catagorys" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
-- ----------------------------
-- Primary key structure for table articles
-- ----------------------------
ALTER TABLE "public"."articles" ADD PRIMARY KEY ("id") NOT DEFERRABLE INITIALLY IMMEDIATE;
|
<reponame>Jac0bDeal/Pikamon
create table if not exists trainers
(
id string not null
constraint trainers_pk
primary key
);
create table if not exists pokemon
(
id integer not null
constraint pokemon_pk
primary key autoincrement,
trainer string not null
constraint "pokemon_train_trainers.id_fk"
references trainers ("id"),
pokemon_id integer not null,
name text
);
create index pokemon_trainer_index
on pokemon (trainer);
|
-- file:date.sql ln:245 expect:true
SELECT EXTRACT(MILLENNIUM FROM DATE '1001-01-01')
|
-- Email template
INSERT INTO `sys_email_templates` (`Module`, `NameSystem`, `Name`, `Subject`, `Body`) VALUES
('bx_linkedin', '_bx_linkedin_et_password_generated', 'bx_linkedin_password_generated', '_bx_linkedin_et_password_generated_subject', '_bx_linkedin_et_password_generated_body');
-- Auth objects
INSERT INTO `sys_objects_auths` (`Name`, `Title`, `Link`, `Icon`) VALUES
('bx_linkedin', '_bx_linkedin_auth_title', 'modules/?r=linkedin/start', 'linkedin');
-- Alerts
INSERT INTO `sys_alerts_handlers` SET `name` = 'bx_linkedin', `class` = 'BxLinkedinAlerts', `file` = 'modules/boonex/linkedin_connect/classes/BxLinkedinAlerts.php';
SET @iHandlerId := (SELECT `id` FROM `sys_alerts_handlers` WHERE `name` = 'bx_linkedin');
INSERT INTO `sys_alerts` (`unit`, `action`, `handler_id`) VALUES
('account', 'logout', @iHandlerId),
('profile', 'delete', @iHandlerId),
('profile', 'add', @iHandlerId);
-- Options
SET @iTypeOrder = (SELECT MAX(`order`) FROM `sys_options_types` WHERE `group` = 'modules');
INSERT INTO `sys_options_types` (`group`, `name`, `caption`, `icon`, `order`) VALUES
('modules', 'bx_linkedin', '_bx_linkedin_adm_stg_cpt_type', 'bx_linkedin@modules/boonex/linkedin_connect/|std-icon.svg', IF(NOT ISNULL(@iTypeOrder), @iTypeOrder + 1, 1));
SET @iTypeId = LAST_INSERT_ID();
INSERT INTO `sys_options_categories` (`type_id`, `name`, `caption`, `order` )
VALUES (@iTypeId, 'bx_linkedin_general', '_sys_connect_adm_stg_cpt_category_general', 1);
SET @iCategId = LAST_INSERT_ID();
INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `check`, `check_error`, `order`, `extra`) VALUES
('bx_linkedin_api_key', '', @iCategId, '_bx_linkedin_option_app_id', 'digit', '', '', 10, ''),
('bx_linkedin_secret', '', @iCategId, '_bx_linkedin_option_app_secret', 'digit', '', '', 20, ''),
('bx_linkedin_redirect_page', 'dashboard', @iCategId, '_sys_connect_option_redirect', 'select', '', '', 40, 'join,settings,dashboard,index'),
('bx_linkedin_module', 'bx_persons', @iCategId, '_sys_connect_option_module', 'select', '', '', 50, 'a:2:{s:6:"module";s:11:"bx_linkedin";s:6:"method";s:20:"get_profiles_modules";}'),
('bx_linkedin_privacy', '3', @iCategId, '_sys_connect_option_privacy', 'select', '', '', 54, 'a:2:{s:6:"module";s:11:"bx_linkedin";s:6:"method";s:18:"get_privacy_groups";}'),
('bx_linkedin_confirm_email', 'on', @iCategId, '_sys_connect_option_confirm_email', 'checkbox', '', '', 70, ''),
('bx_linkedin_approve', '', @iCategId, '_sys_connect_option_approve', 'checkbox', '', '', 80, '');
-- Pages
INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES
('bx_linkedin_error', 'linkedin-error', '_bx_linkedin_error', '_bx_linkedin_error', 'bx_linkedin', 5, 2147483647, 0, '', '', '', '', 0, 1, 0, 'BxLinkedinPage', 'modules/boonex/linkedin_connect/classes/BxLinkedinPage.php');
INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES
('bx_linkedin_error', 1, 'bx_linkedin', '_bx_linkedin_error', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:11:\"bx_linkedin\";s:6:\"method\";s:10:\"last_error\";}', 0, 0, 1, 1);
|
<reponame>ciaranodonnell/Beef
-- Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef
CREATE TYPE [dbo].[udtUniqueIdentifierList] AS TABLE
(
[Value] UNIQUEIDENTIFIER
) |
<reponame>ProjectHyde/snaily-cadv4
-- AlterTable
ALTER TABLE "Citizen" ADD COLUMN "waterLicenseId" TEXT;
-- AddForeignKey
ALTER TABLE "Citizen" ADD CONSTRAINT "Citizen_waterLicenseId_fkey" FOREIGN KEY ("waterLicenseId") REFERENCES "Value"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
<reponame>Cailenys/podcasts-for-programmers-project
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 10, 2020 at 02:05 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `podcasts_for_programmers`
--
-- --------------------------------------------------------
--
-- Table structure for table `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `category`
--
INSERT INTO `category` (`id`, `name`) VALUES
(1, 'Data science'),
(2, 'Python'),
(3, 'React'),
(4, 'DotNet'),
(5, 'Javascript'),
(6, 'Cyber Security');
-- --------------------------------------------------------
--
-- Table structure for table `mentors`
--
CREATE TABLE `mentors` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `mentors`
--
INSERT INTO `mentors` (`id`, `name`) VALUES
(1, '<NAME>, <NAME>, and <NAME>'),
(2, '<NAME>'),
(3, '<NAME> and <NAME>'),
(4, '<NAME>'),
(5, '<NAME>'),
(6, '<NAME>'),
(7, '<NAME> and <NAME>');
-- --------------------------------------------------------
--
-- Table structure for table `playlistpodcasts`
--
CREATE TABLE `playlistpodcasts` (
`id` int(11) NOT NULL,
`podcastId` int(11) NOT NULL,
`playlistId` int(11) NOT NULL,
`playlistOrder` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `playlistpodcasts`
--
INSERT INTO `playlistpodcasts` (`id`, `podcastId`, `playlistId`, `playlistOrder`) VALUES
(1, 2, 1, 0);
-- --------------------------------------------------------
--
-- Table structure for table `playlists`
--
CREATE TABLE `playlists` (
`id` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`owner` varchar(50) NOT NULL,
`dateCreated` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `playlists`
--
INSERT INTO `playlists` (`id`, `name`, `owner`, `dateCreated`) VALUES
(1, 'My favourite podcasts', 'Donald', '2020-06-09 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `podcastcover`
--
CREATE TABLE `podcastcover` (
`id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
`mentor` int(11) NOT NULL,
`category` int(11) NOT NULL,
`podcastCoverPath` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `podcastcover`
--
INSERT INTO `podcastcover` (`id`, `title`, `mentor`, `category`, `podcastCoverPath`) VALUES
(1, 'Stack Overflow', 1, 3, 'assets/images/podcast-covers/stack-overflow-cover.jpg'),
(2, 'Talk Python to me', 1, 2, 'assets/images/podcast-covers/talk-python-logo-mic.png'),
(3, 'React Podcast', 4, 2, 'assets/images/podcast-covers/react-cover.jpg'),
(4, 'Cyber Security', 6, 6, 'assets/images/podcast-covers/cyber-security.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `podcasts`
--
CREATE TABLE `podcasts` (
`id` int(11) NOT NULL,
`title` varchar(250) NOT NULL,
`mentor` int(11) NOT NULL,
`podcastcover` int(11) NOT NULL,
`category` int(11) NOT NULL,
`duration` varchar(8) NOT NULL,
`path` varchar(500) NOT NULL,
`seriesOrder` int(11) NOT NULL,
`plays` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `podcasts`
--
INSERT INTO `podcasts` (`id`, `title`, `mentor`, `podcastcover`, `category`, `duration`, `path`, `seriesOrder`, `plays`) VALUES
(1, ' Pete Hunt on Seven Years of Reconsidering Best React Practices', 2, 3, 1, '58:15', 'assets/podcasts/96-pete-hunt_tc.mp3', 1, 8),
(2, 'Javascript is ready to get its own place', 1, 1, 5, '24:01', 'assets/podcasts/stackoverflow-episode240final_tc.mp3', 1, 9),
(3, '.Net and DevAroundTheSun - We\'re doing an episode live!', 1, 1, 4, '31:36', 'assets/podcasts/stackoverflow-episode234-final_tc', 2, 20),
(4, 'Paths into a data science career', 6, 2, 1, '1:02:47', 'assets/podcasts/139-paths-into-a-data-science-career.mp3', 3, 24),
(5, ' Working from home security: resistance is futile', 7, 4, 4, '31:00', 'assets/podcasts/Episode_194_Working_from_home_security_resistance_is_futile.mp3', 1, 3);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`firstName` varchar(25) NOT NULL,
`lastName` varchar(25) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(32) NOT NULL,
`signUpDate` datetime NOT NULL,
`profilePic` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `firstName`, `lastName`, `email`, `password`, `signUpDate`, `profilePic`) VALUES
(1, 'Donald', 'Cody', '<PASSWORD>', '<EMAIL>', 'e10adc3<PASSWORD>ba59abbe56e05<PASSWORD>', '2020-06-01 00:00:00', 'assets/images/profile-pics/head_emerald.png'),
(2, 'Super-Daisy', 'Daisy', 'Duck', '<EMAIL>', '<PASSWORD>', '2020-06-01 00:00:00', 'assets/images/profile-pics/head_emerald.png'),
(3, 'Pothole', 'Angus', 'Mcduck', 'Angus<EMAIL>', 'a688a47ac73fb58ce3828bcb184cb157', '2020-06-01 00:00:00', 'assets/images/profile-pics/head_emerald.png'),
(4, 'Quack', 'Quackmore', 'Duck', '<EMAIL>', '44cd4c5661c076ab533dd66d45759149', '2020-06-01 00:00:00', '/assets/images/profile-pics/Duck-in-the-pool.png'),
(5, 'Quack', 'Quackmore', 'Duck', '<EMAIL>', '44cd4c5661c076ab533dd66d45759149', '2020-06-01 00:00:00', '/assets/images/profile-pics/Duck-in-the-pool.png'),
(6, 'Cailenys', 'Cailenys', 'Salazar', '<EMAIL>', 'a89634359fd504a40922f09ed12d3e95', '2020-06-05 00:00:00', '/assets/images/profile-pics/Duck-in-the-pool.png'),
(7, 'barSimpson', 'Bart', 'Simpson', '<EMAIL>', 'e10adc3949ba59abbe56e057f20f883e', '2020-06-06 00:00:00', 'assets/images/profile-pics/head_emerald.png');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mentors`
--
ALTER TABLE `mentors`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `playlistpodcasts`
--
ALTER TABLE `playlistpodcasts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `playlists`
--
ALTER TABLE `playlists`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `podcastcover`
--
ALTER TABLE `podcastcover`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `podcasts`
--
ALTER TABLE `podcasts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `mentors`
--
ALTER TABLE `mentors`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `playlistpodcasts`
--
ALTER TABLE `playlistpodcasts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `playlists`
--
ALTER TABLE `playlists`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `podcastcover`
--
ALTER TABLE `podcastcover`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `podcasts`
--
ALTER TABLE `podcasts`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
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>KDAtkins/data-design
INSERT INTO profile (profileId, profileActivationToken, profileAtHandle,
profileEmail, profileHash, profileSalt, profilePhone)
VALUES (
-- generated UUID for profile ID converted to binary format
UNHEX(REPLACE("bd4f1683-4ee6-4b17-9f19-8af2a3aeb230", "-", "")),
-- activation token
"<PASSWORD>",
-- at handle
"@katkins2",
-- email
"<EMAIL>",
-- hash
"063b6645cdb3042291015982db2e30d5df9746a772fb0b42c8ba108bcc8326bl5fd587a8fb8ad6b08d434d9bb321fe92270d06ce836de0dadbc56469ffa31360",
-- salt
"8b00cee20d192975db6fc76b9694d7d0fab776b9416e74e4715f296f2e77b1fc",
-- phone
"12345678899"
);
INSERT INTO post (postId, postProfileId, postTopic, postContent, postDate)
VALUES (
-- generated UUID for post ID converted to binary format
UNHEX(REPLACE("6f14ba0b-daba-45fa-9506-4be0af8c2465", "-", "")),
-- post profile ID
UNHEX(REPLACE("bd4f1683-4ee6-4b17-9f19-8af2a3aeb230", "-", "")),
-- post topic
"",
-- post content
"",
-- post date
""
);
INSERT INTO comment (commentId, commentProfileId, commentPostId, commentContent, commentDate)
VALUES (
-- comment id
UNHEX(REPLACE("440bf065-4b16-4318-89f6-d76418395390", "-", "")),
-- comment profile id
UNHEX(REPLACE("bd4f1683-4ee6-4b17-9f19-8af2a3aeb230", "-", "")),
-- comment post id
UNHEX(REPLACE("6f14ba0b-daba-45fa-9506-4be0af8c2465", "-", "")),
-- comment content id
"",
-- comment date
""
);
-- update phone number of profile id
UPDATE profile
SET profilePhone = "1122334455"
WHERE profileId = "bd4f1683-4ee6-4b17-9f19-8af2a3aeb230";
-- update post content of post id
UPDATE post
SET postContent = "Where is Carmen San Diego?"
WHERE postId = "6f14ba0b-daba-45fa-9506-4be0af8c2465";
-- update comment content of post id
UPDATE comment
SET commentContent = "She is at some historical landmark somewhere..."
WHERE commentPostId = "440bf065-4b16-4318-89f6-d76418395390";
-- select profile handle from profile salt
SELECT profileAtHandle
FROM profile
WHERE profileSalt = "8b00cee20d192975db6fc76b9694d7d0fab776b9416e74e4715f296f2e77b1fc";
-- select post topic from post content
SELECT postTopic
FROM post
WHERE postContent = "Where is Carmen San Diego?";
-- select comment post id from comment profile id
SELECT commentPostId
FROM comment
WHERE commentProfileId = "bd4f1683-4ee6-4b17-9f19-8af2a3aeb230";
-- delete email from profile entity
DELETE FROM profile
WHERE profileEmail = "<EMAIL>";
-- delete empty date from post entity
DELETE FROM post
WHERE postDate = "";
-- delete empty date from comment entity
DELETE FROM comment
WHERE commentDate = ""; |
----------------------------------------
-- variables:
-- :total=100
-- :people=20
-- :opportunity=25
-- :core_services=30
-- :recreation=10
-- :transit=15
----------------------------------------
UPDATE neighborhood_census_blocks
SET overall_score = :total *
(
:people * COALESCE(pop_score,0)
+ :opportunity *
CASE
WHEN COALESCE(schools_high_stress,0)
+ COALESCE(colleges_high_stress,0)
+ COALESCE(universities_high_stress,0)
= 0 THEN 0
ELSE (
(
0.35 * COALESCE(emp_score,0)
+ 0.35 * COALESCE(schools_score,0)
+ 0.1 * COALESCE(colleges_score,0)
+ 0.2 * COALESCE(universities_score,0)
) /
(
0.35
+ CASE
WHEN schools_high_stress > 0
THEN 0.35
ELSE 0
END
+ CASE
WHEN colleges_high_stress > 0
THEN 0.1
ELSE 0
END
+ CASE
WHEN universities_high_stress > 0
THEN 0.2
ELSE 0
END
)
)
END
+ :core_services *
CASE
WHEN COALESCE(doctors_high_stress,0)
+ COALESCE(dentists_high_stress,0)
+ COALESCE(hospitals_high_stress,0)
+ COALESCE(pharmacies_high_stress,0)
+ COALESCE(supermarkets_high_stress,0)
+ COALESCE(social_services_high_stress,0)
= 0 THEN 0
ELSE (
(
0.2 * COALESCE(doctors_score,0)
+ 0.1 * COALESCE(dentists_score,0)
+ 0.2 * COALESCE(hospitals_score,0)
+ 0.1 * COALESCE(pharmacies_score,0)
+ 0.25 * COALESCE(supermarkets_score,0)
+ 0.15 * COALESCE(social_services_score,0)
) /
(
CASE
WHEN doctors_high_stress > 0
THEN 0.2
ELSE 0
END
+ CASE
WHEN dentists_high_stress > 0
THEN 0.1
ELSE 0
END
+ CASE
WHEN hospitals_high_stress > 0
THEN 0.2
ELSE 0
END
+ CASE
WHEN pharmacies_high_stress > 0
THEN 0.1
ELSE 0
END
+ CASE
WHEN supermarkets_high_stress > 0
THEN 0.25
ELSE 0
END
+ CASE
WHEN social_services_high_stress > 0
THEN 0.15
ELSE 0
END
)
)
END
+ :retail * COALESCE(retail_score,0)
+ :recreation *
CASE
WHEN COALESCE(parks_high_stress,0)
+ COALESCE(trails_high_stress,0)
+ COALESCE(community_centers_high_stress,0)
= 0 THEN 0
ELSE (
(
0.4 * COALESCE(parks_score,0)
+ 0.35 * COALESCE(trails_score,0)
+ 0.25 * COALESCE(community_centers_score,0)
) /
(
CASE
WHEN parks_high_stress > 0
THEN 0.4
ELSE 0
END
+ CASE
WHEN trails_high_stress > 0
THEN 0.35
ELSE 0
END
+ CASE
WHEN community_centers_high_stress > 0
THEN 0.25
ELSE 0
END
)
)
END
+ :transit * COALESCE(transit_score,0)
) /
(
:people
+ CASE
WHEN COALESCE(schools_high_stress,0)
+ COALESCE(colleges_high_stress,0)
+ COALESCE(universities_high_stress,0)
= 0 THEN 0
ELSE :opportunity
END
+ CASE
WHEN COALESCE(doctors_high_stress,0)
+ COALESCE(dentists_high_stress,0)
+ COALESCE(hospitals_high_stress,0)
+ COALESCE(pharmacies_high_stress,0)
+ COALESCE(supermarkets_high_stress,0)
+ COALESCE(social_services_high_stress,0)
= 0 THEN 0
ELSE :core_services
END
+ CASE
WHEN COALESCE(retail_high_stress,0) = 0 THEN 0
ELSE :retail
END
+ CASE
WHEN COALESCE(parks_high_stress,0)
+ COALESCE(trails_high_stress,0)
+ COALESCE(community_centers_high_stress,0)
= 0 THEN 0
ELSE :recreation
END
+ CASE
WHEN COALESCE(transit_high_stress,0) = 0
THEN 0
ELSE :transit
END
)
WHERE EXISTS (
SELECT 1
FROM neighborhood_boundary AS b
WHERE ST_Intersects(b.geom,neighborhood_census_blocks.geom)
);
|
<filename>fluxtream-web/db/0.9.0011/LastFM.sql
ALTER TABLE Facet_LastFmRecentTrack CONVERT TO CHARACTER SET utf8; |
-- paste your production schema's DDL, override these statements
-- and execute syncdb-replace-schema.bat(sh)
-- and execute manage.bat(sh), select schema-sync-check
/* Create Tables */
CREATE TABLE MEMBER
(
MEMBER_ID INT NOT NULL AUTO_INCREMENT COMMENT '会員ID : 連番として自動採番される。会員IDだけに限らず採番方法はDBMS次第。',
MEMBER_NAME VARCHAR(100) NOT NULL COMMENT '会員名称 : 会員のフルネームの名称。
苗字と名前を分けて管理することが多いが、ここでは単純にひとまとめ。',
MEMBER_ACCOUNT VARCHAR(50) NOT NULL UNIQUE COMMENT '会員アカウント : ログインIDとして利用する。
昨今メールアドレスをログインIDとすることが多いので、あまり見かけないかも!?',
MEMBER_STATUS_CODE CHAR(3) NOT NULL COMMENT '会員ステータスコード : 会員ステータスを参照するコード。
ステータスが変わるたびに、このカラムが更新される。',
FORMALIZED_DATETIME DATETIME COMMENT '正式会員日時 : 会員が正式に確定した(正式会員になった)日時。
一度確定したらもう二度と更新されないはずだ!',
BIRTHDATE DATE COMMENT '生年月日 : 必須項目ではないので、このデータがない会員もいる。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (MEMBER_ID)
) COMMENT = '会員 : 会員のプロフィールやアカウントなどの基本情報を保持する。
基本的に物理削除はなく、退会したらステータスが退会会員になる。
ライフサイクルやカテゴリの違う会員情報は、one-to-oneなどの関連テーブルにて。';
CREATE TABLE MEMBER_ADDRESS
(
MEMBER_ADDRESS_ID INT NOT NULL AUTO_INCREMENT COMMENT '会員住所ID : 会員住所を識別するID。
期間ごとに同じ会員のデータを保持することがあるため、これは単なるPKであってFKではない。',
MEMBER_ID INT NOT NULL COMMENT '会員ID : 会員を参照するID。
期間ごとのデータがあるので、これだけではユニークにはならない。有効開始日と合わせて複合ユニーク制約となるが、厳密には完全な制約にはなっていない。有効期間の概念はRDBでは表現しきれないのである。',
VALID_BEGIN_DATE DATE NOT NULL COMMENT '有効開始日 : 一つの有効期間の開始を示す日付。
前の有効終了日の次の日の値が格納される。',
VALID_END_DATE DATE NOT NULL COMMENT '有効終了日 : 有効期間の終了日。
期間の最後の日が格納される。基本的に、次の有効開始日の一日前の値となるが、次の有効期間がない場合は 9999/12/31 となる。',
ADDRESS VARCHAR(200) NOT NULL COMMENT '住所 : まるごと住所',
REGION_ID INT NOT NULL COMMENT '地域ID : 地域を参照するID。かなり漠然とした地域。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (MEMBER_ADDRESS_ID),
CONSTRAINT UQ_MEMBER_ADDRESS UNIQUE (MEMBER_ID, VALID_BEGIN_DATE)
) COMMENT = '会員住所情報 : 会員の住所に関する情報で、同時に有効期間ごとに履歴管理されている。
会員を基点に考えた場合、構造的には one-to-many だが、業務的な定型条件で one-to-one になる。このような構造を「業務的one-to-one」と呼ぶ!
有効期間は隙間なく埋められるが、ここでは住所情報のない会員も存在し、厳密には(業務的な) "1 : 0..1" である。';
CREATE TABLE MEMBER_FOLLOWING
(
MEMBER_FOLLOWING_ID BIGINT NOT NULL AUTO_INCREMENT COMMENT '会員フォローイングID : 連番',
MY_MEMBER_ID INT NOT NULL COMMENT 'わたし : 気になった人がいて...勇気を振り絞った会員のID。',
YOUR_MEMBER_ID INT NOT NULL COMMENT 'あなた : いきなりのアクションに...ちょっと心揺らいだ会員のID。',
FOLLOW_DATETIME DATETIME NOT NULL COMMENT 'その瞬間 : ふりかえるとちょっと恥ずかしい気持ちになる日時',
PRIMARY KEY (MEMBER_FOLLOWING_ID),
CONSTRAINT UQ_MEMBER_FOLLOWING UNIQUE (MY_MEMBER_ID, YOUR_MEMBER_ID)
) COMMENT = '会員フォローイング : とある会員が他の会員をフォローできる。すると、フォローした会員の購入履歴が閲覧できる。';
CREATE TABLE MEMBER_LOGIN
(
MEMBER_LOGIN_ID BIGINT NOT NULL AUTO_INCREMENT COMMENT '会員ログインID',
MEMBER_ID INT NOT NULL COMMENT '会員ID : 連番として自動採番される。会員IDだけに限らず採番方法はDBMS次第。',
LOGIN_DATETIME DATETIME NOT NULL COMMENT 'ログイン日時 : ログインした瞬間の日時。
同じ会員が同じ日時にログインはできない。(ユニーク制約で重複ログインできないようにしてある)',
MOBILE_LOGIN_FLG INT NOT NULL COMMENT 'モバイルログインフラグ : モバイル機器からのログインか否か。',
LOGIN_MEMBER_STATUS_CODE CHAR(3) NOT NULL COMMENT 'ログイン会員ステータスコード : ログイン時の会員ステータス',
PRIMARY KEY (MEMBER_LOGIN_ID),
CONSTRAINT UQ_MEMBER_LOGIN UNIQUE (MEMBER_ID, LOGIN_DATETIME)
) COMMENT = '会員ログイン : ログインするたびに登録されるログイン履歴。
登録されたら更新されるも削除されることもない。さらには、登録する人もプログラムもはっきりしているので、(紙面の都合上もあって)ここでは共通カラムは省略している。';
CREATE TABLE MEMBER_SECURITY
(
MEMBER_ID INT NOT NULL COMMENT '会員ID : そのまま one-to-one を構成するためのFKとなる。',
LOGIN_PASSWORD VARCHAR(50) NOT NULL COMMENT 'ログインパスワード : ログイン時に利用するパスワード。
本当は良くないが、Exampleなのでひとまず暗号化していない。',
REMINDER_QUESTION VARCHAR(50) NOT NULL COMMENT 'リマインダ質問 : パスワードを忘れた際のリマインダ機能における質問の内容。',
REMINDER_ANSWER VARCHAR(50) NOT NULL COMMENT 'リマインダ回答 : パスワードを忘れた際のリマインダ機能における質問の答え。',
REMINDER_USE_COUNT INT NOT NULL COMMENT 'リマインダ利用回数 : リマインダを利用した回数。
これが多いと忘れっぽい会員と言えるが、そんなことを知ってもしょうがない。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (MEMBER_ID)
) COMMENT = '会員セキュリティ : 会員とは one-to-one で、会員一人につき必ず一つのセキュリティ情報がある';
CREATE TABLE MEMBER_SERVICE
(
MEMBER_SERVICE_ID INT NOT NULL AUTO_INCREMENT COMMENT '会員サービスID : 独立した主キーとなるが、実質的に会員IDとは one-to-one である。',
MEMBER_ID INT NOT NULL UNIQUE COMMENT '会員ID : 会員を参照するID。ユニークなので、会員とは one-to-one の関係に。',
SERVICE_POINT_COUNT INT NOT NULL COMMENT 'サービスポイント数 : 購入したら増えて使ったら減る。',
SERVICE_RANK_CODE CHAR(3) NOT NULL COMMENT 'サービスランクコード : どんなランクがあるのかドキドキですね。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (MEMBER_SERVICE_ID)
) COMMENT = '会員サービス : 会員のサービス情報(ポイントサービスなど)。
テストケースのために、あえて統一性を崩してユニーク制約経由の one-to-one を表現している。';
CREATE TABLE MEMBER_STATUS
(
MEMBER_STATUS_CODE CHAR(3) NOT NULL COMMENT '会員ステータスコード : 会員ステータスを識別するコード。
固定的なデータなので連番とか番号にはせず、データを直接見たときも人が直感的にわかるように、例えば "FML" とかの3桁のコード形式にしている。(3って何会員だっけ?とかの問答をやりたくないので)
',
MEMBER_STATUS_NAME VARCHAR(50) NOT NULL COMMENT '会員ステータス名称 : 表示用の名称。
国際化対応するときはもっと色々考える必要があるかと...ということで英語名カラムがないので、そのまま区分値メソッド名の一部としても利用される。',
DESCRIPTION VARCHAR(200) NOT NULL COMMENT '説明 : 会員ステータスそれぞれの説明。
区分値の一つ一つの要素に気の利いた説明があるとディベロッパーがとても助かるので絶対に欲しい。',
DISPLAY_ORDER INT NOT NULL UNIQUE COMMENT '表示順 : UI上のステータスの表示順を示すNO。
並べるときは、このカラムに対して昇順のソート条件にする。',
PRIMARY KEY (MEMBER_STATUS_CODE)
) COMMENT = '会員ステータス : 会員のステータスを示す固定的なマスタテーブル。いわゆるテーブル区分値!
業務運用上で増えることはなく、増減するときはプログラム修正ともなうレベルの業務変更と考えられる。
こういった固定的なマスタテーブルには、更新日時などの共通カラムは定義していないが、業務上そういった情報を管理する必要性が低いという理由に加え、ExampleDBとして共通カラムでER図が埋め尽くされてしまい見づらくなるというところで割り切っている。実業務では統一的に定義することもある。';
CREATE TABLE MEMBER_WITHDRAWAL
(
MEMBER_ID INT NOT NULL COMMENT 'メンバーID : 連番として自動採番される。会員IDだけに限らず採番方法はDBMS次第。',
WITHDRAWAL_REASON_CODE CHAR(3) COMMENT '退会理由コード : 定型的な退会した理由を参照するコード。
何も言わずに退会する会員もいるので必須項目ではない。',
WITHDRAWAL_REASON_INPUT_TEXT TEXT COMMENT '退会理由入力テキスト : 会員がフリーテキストで入力できる退会理由。
もう言いたいこと言ってもらう感じ。サイト運営側としてはこういうのは真摯に受け止めて改善していきたいところ。',
WITHDRAWAL_DATETIME DATETIME NOT NULL COMMENT '退会日時 : 退会した瞬間の日時。
正式会員日時と違い、こっちは one-to-one の別テーブルで管理されている。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日付時間',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザ',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザ',
PRIMARY KEY (MEMBER_ID)
) COMMENT = '会員退会情報 : 退会会員の退会に関する詳細な情報。
退会会員のみデータが存在し、"1 : 0..1" のパターンの one-to-one である。
共通カラムがあってバージョンNOがないパターン。
基本的に更新は入らないが、重要なデータなので万が一のために更新系の共通カラムも。';
CREATE TABLE PRODUCT
(
PRODUCT_ID INT NOT NULL AUTO_INCREMENT COMMENT '商品ID',
PRODUCT_NAME VARCHAR(50) NOT NULL COMMENT '商品名称 : ExampleDBとして、コメントの少ないケースを表現するため、あえてコメントを控えている。
実業務ではしっかりとコメントを入れることが強く強く推奨される。「よりによってこのテーブルでやらないでよ!」あわわ、何も聞こえません〜',
PRODUCT_HANDLE_CODE VARCHAR(100) NOT NULL UNIQUE COMMENT '商品ハンドルコード : これだけは書いておこう、商品を識別する業務上のコード。よく品番とか言うかもしれませんねぇ...',
PRODUCT_CATEGORY_CODE CHAR(3) NOT NULL COMMENT '商品カテゴリコード : 自分のテーブルの別のレコードからも参照される。',
PRODUCT_STATUS_CODE CHAR(3) NOT NULL COMMENT '商品ステータスコード : 商品ステータスを識別するコード。',
REGULAR_PRICE INT NOT NULL COMMENT '定価',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (PRODUCT_ID)
) COMMENT = '商品';
CREATE TABLE PRODUCT_CATEGORY
(
PRODUCT_CATEGORY_CODE CHAR(3) NOT NULL COMMENT '商品カテゴリコード : 自分のテーブルの別のレコードからも参照される。',
PRODUCT_CATEGORY_NAME VARCHAR(50) NOT NULL COMMENT '商品カテゴリ名称',
PARENT_CATEGORY_CODE CHAR(3) COMMENT '親カテゴリコード : 最上位の場合はデータなし。まさひく自己参照FKカラム!',
PRIMARY KEY (PRODUCT_CATEGORY_CODE)
) COMMENT = '商品カテゴリ : 商品のカテゴリを表現するマスタ。自己参照FKの階層になっている。';
CREATE TABLE PRODUCT_STATUS
(
PRODUCT_STATUS_CODE CHAR(3) NOT NULL COMMENT '商品ステータスコード : 商品ステータスを識別するコード。',
PRODUCT_STATUS_NAME VARCHAR(50) NOT NULL COMMENT '商品ステータス名称 : 表示用の名称、英語名カラムがないのでそのままメソッド名の一部としても利用される。',
DISPLAY_ORDER INT NOT NULL UNIQUE COMMENT '表示順 : もう、ご想像の通りです。',
PRIMARY KEY (PRODUCT_STATUS_CODE)
) COMMENT = '商品ステータス : 商品のステータスを表現する固定的なマスタ。';
CREATE TABLE PURCHASE
(
PURCHASE_ID BIGINT NOT NULL AUTO_INCREMENT COMMENT '購入ID : 連番',
MEMBER_ID INT NOT NULL COMMENT '会員ID : 会員を参照するID。
購入を識別する自然キー(複合ユニーク制約)の筆頭要素。',
PRODUCT_ID INT NOT NULL COMMENT '商品ID : あなたは何を買ったのか?',
PURCHASE_DATETIME DATETIME NOT NULL COMMENT '購入日時 : 購入した瞬間の日時。',
PURCHASE_COUNT INT NOT NULL COMMENT '購入数量 : 購入した商品の一回の購入における数量。',
PURCHASE_PRICE INT NOT NULL COMMENT '購入価格 : 購入によって実際に会員が支払った(支払う予定の)価格。
基本は商品の定価に購入数量を掛けたものになるが、ポイント利用や割引があったりと必ずしもそうはならない。',
PAYMENT_COMPLETE_FLG INT NOT NULL COMMENT '支払完了フラグ : この購入に関しての支払いが完了しているか否か。',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
VERSION_NO BIGINT NOT NULL COMMENT 'バージョン番号 : 排他制御用、更新されるごとにインクリメントされる',
PRIMARY KEY (PURCHASE_ID),
CONSTRAINT UQ_PURCHASE UNIQUE (MEMBER_ID, PRODUCT_ID, PURCHASE_DATETIME)
) COMMENT = '購入 : 一つの商品に対する購入を表現する(購入履歴とも言える)。
実業務であれば購入詳細というテーブルを作り、「購入という行為」と「その中身(詳細)」を違う粒度のデータとしてそれぞれ管理するのが一般的と言えるでしょう。というか、注文とか請求とかそういうことを考え始めたらもっと複雑になるはずですが、ExampleDBということで割り切っています。';
CREATE TABLE PURCHASE_PAYMENT
(
PURCHASE_PAYMENT_ID BIGINT NOT NULL AUTO_INCREMENT COMMENT '購入支払ID : 連番',
PURCHASE_ID BIGINT NOT NULL COMMENT '購入ID : 支払い対象の購入へのID',
PAYMENT_AMOUNT DECIMAL(10,2) NOT NULL COMMENT '支払金額 : 支払った金額。さて、小数点なのはなぜでしょう?',
PAYMENT_DATETIME DATETIME NOT NULL COMMENT '支払日時 : 支払ったときの日時',
PAYMENT_METHOD_CODE CHAR(3) NOT NULL COMMENT '支払方法コード : 手渡しや銀行振込など',
REGISTER_DATETIME DATETIME NOT NULL COMMENT '登録日時 : レコードが登録された日時',
REGISTER_USER VARCHAR(200) NOT NULL COMMENT '登録ユーザー : レコードを登録したユーザー',
UPDATE_DATETIME DATETIME NOT NULL COMMENT '更新日時 : レコードが(最後に)更新された日時',
UPDATE_USER VARCHAR(200) NOT NULL COMMENT '更新ユーザー : レコードを(最後に)更新したユーザー',
PRIMARY KEY (PURCHASE_PAYMENT_ID)
) COMMENT = '購入支払 : 購入に対する支払。
分割払いもできるのでmanyとなり、会員からの孫テーブルのテストができてうれしい。';
CREATE TABLE REGION
(
REGION_ID INT NOT NULL COMMENT '地域ID : 地域をしっかりと識別するID。
珍しく(固定的な)マスタテーブルとしては数値だが、Exampleなのでやはり色々なパターンがないとね、ってところで。',
REGION_NAME VARCHAR(50) NOT NULL COMMENT '地域名称 : 地域を漠然と表す名称。',
PRIMARY KEY (REGION_ID)
) COMMENT = '地域 : 主に会員の住所に対応する漠然とした地域。
かなりざっくりした感じではある。唯一の業務的one-to-oneの親テーブルのケース。';
CREATE TABLE SERVICE_RANK
(
SERVICE_RANK_CODE CHAR(3) NOT NULL COMMENT 'サービスランクコード : サービスランクを識別するコード。',
SERVICE_RANK_NAME VARCHAR(50) NOT NULL COMMENT 'サービスランク名称 : サービスランクの名称。
ゴールドとかプラチナとか基本的には威厳のある名前',
SERVICE_POINT_INCIDENCE DECIMAL(5,3) NOT NULL COMMENT 'サービスポイント発生率 : 購入ごとのサービスポイントの発生率。
購入価格にこの値をかけた数が発生ポイント。ExampleDBとして数少ない貴重な小数点ありのカラム。',
NEW_ACCEPTABLE_FLG INT NOT NULL COMMENT '新規受け入れ可能フラグ : このランクへの新規受け入れができるかどうか。',
DESCRIPTION VARCHAR(200) NOT NULL COMMENT '説明 : ランクに関する業務的な説明。',
DISPLAY_ORDER INT NOT NULL UNIQUE COMMENT '表示順 : UI上の表示順を表現する番号。',
PRIMARY KEY (SERVICE_RANK_CODE)
) COMMENT = 'サービスランク : 会員のサービスレベルを表現するランク。(ゴールドとかプラチナとか)';
CREATE TABLE WITHDRAWAL_REASON
(
WITHDRAWAL_REASON_CODE CHAR(3) NOT NULL COMMENT '退会理由コード',
WITHDRAWAL_REASON_TEXT TEXT NOT NULL COMMENT '退会理由テキスト : 退会理由の内容。
テキスト形式なので目いっぱい書けるが、そうするとUI側できれいに見せるのが大変でしょうね。',
DISPLAY_ORDER INT NOT NULL UNIQUE COMMENT '表示順 : もう、ご想像の通りです。',
PRIMARY KEY (WITHDRAWAL_REASON_CODE)
) COMMENT = '退会理由 : 会員に選ばせる定型的な退会理由のマスタ。そういえば、これ表示順カラムがないですねぇ...';
/* Create Indexes */
CREATE INDEX IX_MEMBER_MEMBER_NAME USING BTREE ON MEMBER (MEMBER_NAME ASC);
CREATE INDEX IX_MEMBER_FORMALIZED_DATETIME USING BTREE ON MEMBER (FORMALIZED_DATETIME ASC);
CREATE INDEX IX_MEMBER_FOLLOWING_YOUR_MEMBER USING BTREE ON MEMBER_FOLLOWING (YOUR_MEMBER_ID ASC);
CREATE INDEX IX_MEMBER_FOLLOWING_DATETIME USING BTREE ON MEMBER_FOLLOWING (FOLLOW_DATETIME ASC);
CREATE INDEX IX_MEMBER_LOGIN_DATETIME USING BTREE ON MEMBER_LOGIN (LOGIN_DATETIME ASC);
CREATE INDEX IX_MEMBER_SERVICE_POINT_COUNT USING BTREE ON MEMBER_SERVICE (SERVICE_POINT_COUNT ASC);
CREATE INDEX FK_MEMBER_WITHDRAWAL_WITHDRAWAL_REASON USING BTREE ON MEMBER_WITHDRAWAL (WITHDRAWAL_REASON_CODE ASC);
CREATE INDEX IX_PRODUCT_PRODUCT_NAME USING BTREE ON PRODUCT (PRODUCT_NAME ASC);
CREATE INDEX IX_PURCHASE_MEMBER_ID USING BTREE ON PURCHASE (MEMBER_ID ASC);
CREATE INDEX IX_PURCHASE_PRODUCT_ID USING BTREE ON PURCHASE (PRODUCT_ID ASC);
CREATE INDEX IX_PURCHASE_PRODUCT_DATETIME USING BTREE ON PURCHASE (PRODUCT_ID ASC, PURCHASE_DATETIME ASC);
CREATE INDEX IX_PURCHASE_DATETIME_MEMBER USING BTREE ON PURCHASE (PURCHASE_DATETIME ASC, MEMBER_ID ASC);
CREATE INDEX IX_PURCHASE_PRICE USING BTREE ON PURCHASE (PURCHASE_PRICE ASC);
CREATE INDEX IX_PURCHASE_PAYMENT_DATETIME USING BTREE ON PURCHASE_PAYMENT (PAYMENT_DATETIME ASC, PAYMENT_AMOUNT ASC);
/* Create Foreign Keys */
ALTER TABLE MEMBER_ADDRESS
ADD CONSTRAINT FK_MEMBER_ADDRESS_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_FOLLOWING
ADD CONSTRAINT FK_MEMBER_FLLOWING_MY_MEMBER_ID FOREIGN KEY (MY_MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE RESTRICT
ON DELETE RESTRICT
;
ALTER TABLE MEMBER_FOLLOWING
ADD CONSTRAINT FK_MEMBER_FOLLOWING_YOUR_MEMBER_ID FOREIGN KEY (YOUR_MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE RESTRICT
ON DELETE RESTRICT
;
ALTER TABLE MEMBER_LOGIN
ADD CONSTRAINT FK_MEMBER_LOGIN_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_SECURITY
ADD CONSTRAINT FK_MEMBER_SECURITY_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_SERVICE
ADD CONSTRAINT FK_MEMBER_SERVICE_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_WITHDRAWAL
ADD CONSTRAINT FK_MEMBER_WITHDRAWAL_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PURCHASE
ADD CONSTRAINT FK_PURCHASE_MEMBER FOREIGN KEY (MEMBER_ID)
REFERENCES MEMBER (MEMBER_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER
ADD CONSTRAINT FK_MEMBER_MEMBER_STATUS FOREIGN KEY (MEMBER_STATUS_CODE)
REFERENCES MEMBER_STATUS (MEMBER_STATUS_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_LOGIN
ADD CONSTRAINT FK_MEMBER_LOGIN_MEMBER_STATUS FOREIGN KEY (LOGIN_MEMBER_STATUS_CODE)
REFERENCES MEMBER_STATUS (MEMBER_STATUS_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PURCHASE
ADD CONSTRAINT FK_PURCHASE_PRODUCT FOREIGN KEY (PRODUCT_ID)
REFERENCES PRODUCT (PRODUCT_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PRODUCT
ADD CONSTRAINT FK_PRODUCT_PRODUCT_CATEGORY FOREIGN KEY (PRODUCT_CATEGORY_CODE)
REFERENCES PRODUCT_CATEGORY (PRODUCT_CATEGORY_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PRODUCT_CATEGORY
ADD CONSTRAINT FK_PRODUCT_CATEGORY_PARENT FOREIGN KEY (PARENT_CATEGORY_CODE)
REFERENCES PRODUCT_CATEGORY (PRODUCT_CATEGORY_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PRODUCT
ADD CONSTRAINT FK_PRODUCT_PRODUCT_STATUS FOREIGN KEY (PRODUCT_STATUS_CODE)
REFERENCES PRODUCT_STATUS (PRODUCT_STATUS_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE PURCHASE_PAYMENT
ADD CONSTRAINT FK_PURCHASE_PAYMENT_PURCHASE FOREIGN KEY (PURCHASE_ID)
REFERENCES PURCHASE (PURCHASE_ID)
ON UPDATE RESTRICT
ON DELETE RESTRICT
;
ALTER TABLE MEMBER_ADDRESS
ADD CONSTRAINT FK_MEMBER_ADDRESS_REGION FOREIGN KEY (REGION_ID)
REFERENCES REGION (REGION_ID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_SERVICE
ADD CONSTRAINT FK_MEMBER_SERVICE_SERVICE_RANK_CODE FOREIGN KEY (SERVICE_RANK_CODE)
REFERENCES SERVICE_RANK (SERVICE_RANK_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
ALTER TABLE MEMBER_WITHDRAWAL
ADD CONSTRAINT FK_MEMBER_WITHDRAWAL_WITHDRAWAL_REASON FOREIGN KEY (WITHDRAWAL_REASON_CODE)
REFERENCES WITHDRAWAL_REASON (WITHDRAWAL_REASON_CODE)
ON UPDATE NO ACTION
ON DELETE NO ACTION
;
create view DIFF_TEST as
select product.PRODUCT_ID
, product.PRODUCT_NAME
, product.PRODUCT_HANDLE_CODE
, product.PRODUCT_STATUS_CODE
, (select max(purchase.PURCHASE_DATETIME)
from PURCHASE purchase
where purchase.PRODUCT_ID = product.PRODUCT_ID
) as LATEST_PURCHASE_DATETIME
from PRODUCT product
; |
<gh_stars>1-10
CREATE TABLE IF NOT EXISTS "DIMENSIONS"."AIRLINE_ID"
(
CODE varchar(5) PRIMARY KEY NOT NULL,
DESCRIPTION varchar(100)
)
;
CREATE UNIQUE INDEX IF NOT EXISTS PRIMARY_KEY_C ON "DIMENSIONS"."AIRLINE_ID"(CODE)
;
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('0','Unknown Airline');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19031','Mackey International Inc. MAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19032','Munz Northern Airlines Inc. XY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19033','Cochise Airlines Inc. COC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19034','Golden Gate Airlines Inc. GSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19035','Aeromech Inc. RZZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19036','Golden West Airlines Co. GLW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19037','Puerto Rico Intl Airlines PRN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19038','Air America Inc. STZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19039','Swift Aire Lines Inc. SWT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19040','American Central Airlines TSF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19041','Valdez Airlines VEZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19042','Southeast Alaska Airlines WEB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19043','Altair Airlines Inc. AAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19044','Chitina Air Service CHI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19045','Marco Island Airways Inc. MRC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19046','Caribbean Air Services Inc. OHZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19047','Sundance Airlines PRO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19048','Seair Alaska Airlines Inc. SAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19049','Southeast Airlines Inc. SLZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19050','Alaska Aeronautical Indust. AAZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19051','Imperial Airlines Inc. IMP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19052','Trans Western Airlines Utah TWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19053','Wright Airlines Inc. WRT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19054','Presidential Express COL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19055','Mississippi Valley Airlines MVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19056','Channel Flying Inc. CHL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19057','Rocky Mountain Airways Inc. JCZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19058','Midstate Airlines Inc. MIS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19059','Sedalia Marshall Boonvl Stg STG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19060','Inlet Airlines CKI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19061','Command Airways Inc. CMD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19062','Emerald Airlines EMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19063','Orion Air Inc. ORI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19064','Pan Am Express RAN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19065','Air Micronesia Inc. AJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19066','Sunbird Inc. SKI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19067','Wings West Airlines WWI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19068','Southcentral Air Inc. AND');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19069','Air Cargo Express Inc. ACG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19070','Associated Aviation Act. AAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19071','Antilles Air Boats Inc. AAB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19072','AAA Airlines AAE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19073','Argosy Air Lines Inc. AAL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19074','Air Bahia ABH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19075','Airbama Incorporated ABI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19076','Aeronaves Boringuena Inc. ABO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19077','Alaska Central Airways Inc. ACA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19078','Island Airlines Hawaii Inc. ACH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19079','AAA-Action Air Carrier Inc. ACI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19080','Air Cargo Enterprises Inc. ACO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19081','Air Chaparral Inc. ACP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19082','Alamo Commuter Airlines ACS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19083','Air Central Inc. (1) ACT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19084','Air Central Inc. ACK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19085','Astec Air East Inc. AEC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19086','American Flag Airlines Inc. AFA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19087','Air Cargo America Inc. AGA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19088','All Island Air AIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19089','Air Express Inc. AIE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19090','Air Mont. Inc. AIM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19091','Air Indiana AIN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19092','Air-Lift Associates Inc. ALE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19093','Brandt Air ALI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19094','All Seasons Air Pacific ALL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19095','North American Airlines Inc. AMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19096','American Inter-Island Inc. AMI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19097','Air Nebraska Inc. ANB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19098','Airways Of New Mexico Inc. ANM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19099','Metro Air Northeast Vermont ANO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19100','Air NorthNenana ANT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19101','Trans New York AOI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19102','Arizona Pacific Inc. API');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19103','Appalachian Flying Service APL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19104','Air Polynesia Inc. APY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19105','Arizona Aero Corp. ARI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19106','Arnold Aviation ARN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19107','Air Oregon ARO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19108','Arrowhead Airways Inc. ARR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19109','Amistad Airlines ASD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19110','Alpine Air Services Inc. ASI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19111','Asap Air Inc. ASP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19112','Astro Airways AST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19113','Air Atlantic Airlines Inc. ATN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19114','Pacific National Airways ATO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19115','Atlantis Airlines Inc. ATS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19116','Aerotransit Inc. ATT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19117','Air Carolina ATX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19118','Air Vectors Airways AVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19119','Aero Virgin Islands Corp. AVI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19120','Aviation Services AVS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19121','Southern Jersey Airways AVZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19122','Business Aircraft Corp. BAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19123','Brennan & Hargreaves Inc. BAH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19124','Bankair Inc. BAK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19125','Bard-Air Corp. BAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19126','Baja Cortez Airlines BCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19127','Bennington Aviation Inc. BEN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19128','Beyer Aviation BEY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19129','Blackhawk Airways Inc. BHK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19130','Bighorn Airways Inc. BHO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19131','Birchwood Air Service BIR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19132','Bremerton Aviation Inc. BMT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19133','Boise Air Service BOA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19134','Brower Airways Inc. BRO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19135','Burlington Airways Inc. BUR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19136','Coleman Air Transport CAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19137','Crawford Aviation Inc. CAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19138','C & M Airlines CAM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19139','Metro Air Northeast N Y CAP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19140','Catalina Airlines Inc. CAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19141','Air Virginia CAV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19142','Carriba Air Inc. CBA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19143','Cen-Tex Airlines Inc. CEN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19144','Century Airlines (Cal) CET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19145','Chandler Flyer CHD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19146','Charter Airlines CHE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19147','Hammonds Commuter Air Serv. CHF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19148','Choi Aviation Inc. CHO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19149','Christman Air System CHS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19150','Cal Sierra Airlines CIS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19151','Centennial Airlines CNN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19152','Cotton Belt Aviation Inc. COB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19153','Coker Aviation Inc. COK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19154','Commutair COM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19155','Coral Air Inc. COR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19156','Cosmopolitan Comm. Airline COS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19157','Southeastern Commuter COT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19158','Courtesy Air Service Inc. COU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19159','Capitol Air Lines CPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19160','Coastal Plains Commuter Inc. CPC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19161','Commuter Airlines CRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19162','Crown Aviaiton Inc. CRN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19163','Crown Airways Inc. CRO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19164','Crested Butte Air Service CRT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19165','Catskill Airways Inc. CSK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19166','Century Airlines CTA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19167','Cothron Aviation CTH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19168','Catalina-Vegas Airlines CVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19169','Danbury Airlines DAN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19170','Downeast Airlines Inc. DEA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19171','Decatur Aviation DEC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19172','DHL Airlines Inc. DHL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19173','Dickman Aviation Services DIC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19174','Desert Pacific Airways DPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19175','Desert Pacific Airlines Inc. DPI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19176','Desert Airlines DST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19177','Executive Aviation Inc. EAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19178','Eastern Caribbean Airways EAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19179','Eastern Carolina Aviation ECI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19180','Ede Aire EDE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19181','Executive Four Winds EFA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19182','Eagle Commuter Airlines Inc. EGL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19183','East Hampton Aire Inc. EHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19184','East. Indiana Aviation Sale EIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19185','Air Pacific Inc. EKA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19186','Erie Airways Inc. ERI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19187','Empire Aero Service ERO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19188','Evanston Aviation EVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19189','Federal Armored Service Inc. FAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19190','Young Flying Service FBI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19191','Southern Airlines Inc. FCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19192','Florida Airlines Inc. FDA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19193','Freedom Airlines Inc. FDM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19194','Flamenco Airways Inc. FLM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19195','Ford-Aire Inc. FOR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19196','Foster Aviation FOS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19197','Skycraft Inc. FVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19198','Far West Airlines FWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19199','General Aviation Inc. GAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19200','Gromer Aviation Inc. GAV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19201','Central States Airline GBA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19202','Golden Carriage Aire GCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19203','Midway Commuter GCS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19204','Green Hills Aviation Ltd. GHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19205','Green Mountain Airlines Ltd. GMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19206','Copper State Airlines GOF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19207','Isle Royale Seaplane Serv. GRO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19208','Golden South Airlines Inc. GSL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19209','Gull Air Inc. GUL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19210','Gunnel Aviation Inc. GUN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19211','Ross Aviation Inc. GWE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19212','Heussler Air Service Corp HEU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19213','Hensley Flying Service Inc. HFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19214','Long Island Airlines HMZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19215','Holiday Airlines Inc. HOL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19216','Iowa Airlines HOR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19217','Pacific Coast Airlines HPZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19218','Trans-National Airlines Haw HRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19219','Scenic Airlines Inc. HSZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19220','Skystream Airlines HUB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19221','Hawking Corporation HWK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19222','Hyannis Aviation HYA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19223','Iowa City Flying Service ICF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19224','Idee Industries Inc. III');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19225','Inland Empire Airlines Inc. INA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19226','Indiana Airways Inc. (Pa) IND');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19227','Indo-Pacific International IPI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19228','Island Airlines ISL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19229','Sunbelt Airlines Inc. JAM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19230','Air Chico JCM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19231','Jer-Don Air JER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19232','Knight Airlines Inc. KAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19233','Key Airlines KEE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19234','Crown Air KWZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19235','Chaparral Airlines Inc. KXZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19236','Lancer Aviation Inc. LAN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19237','Lawrence Aviation LAW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19238','Havasu Airlines LHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19239','Lakeland Aviation LLA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19240','Aero Commuter LOS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19241','Las Vegas Airlines LVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19242','Magum Airlines MAG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19243','The Maui Commuter MAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19244','Marshall''s Air Inc. MAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19245','Maxair Inc. MAX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19246','Mid Continental Airlines In MCO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19247','Metro Airlines MDU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19248','Metroplex Airlines MET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19249','Midway Aviation Inc. MIY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19250','Miller Air Transportersinc MLL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19251','Ocean Airways Inc. MMH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19252','Cumberland Airlines MNZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19253','Merrimack Aviation Inc. MRR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19254','Midwest Aviation MST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19255','Arkansas Traveler Airline MTA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19256','Metroflight Airlines MTR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19257','National Air Commuter Inc. NAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19258','New Born Wings Inc. NEB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19259','Nor East Commuter Airlines NEC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19260','Nevada Airlines NEV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19261','Northern Eagle Airways Inc. NGL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19262','Newair Flight Inc. NHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19263','N. J. Merrimack Airlines NJA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19264','E. J. A. Newport Inc. NPT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19265','Northaire NTH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19266','Lake State Airways NUM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19267','New York Helicopter Corp. NYH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19268','Harbor Airlines Inc. OAK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19269','Ocean Reef Airways Inc. OCR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19270','Offshore Logistics OFF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19271','Omaha Aviation OHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19272','Corporate Air Inc. OIZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19273','Omak Aviation Airlines OMK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19274','Omni Pacific Airline OMN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19275','Sun Aire Lines OOZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19276','Air Kentucky Air Lines OWS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19277','Permian Airways Inc. PAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19278','Provincetown Boston PBA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19279','Piasa Commuter Airlines PCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19280','Trans Southern Airways PDA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19281','Pearson Aircraft PEA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19282','Air Pennsylvania PER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19283','Petro Aviation Corp. PET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19284','Phillips Airlines PHL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19285','Phoenix Airlines PHX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19286','Pacific Island Airways PIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19287','Planes Inc. PLA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19288','Polar Airways Inc. PLZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19289','Pacific Missionary Aviation PMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19290','Pioneer Airways PNR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19291','Pocono Airlines Inc. POC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19292','Pompano Airways POM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19293','Ponderosa Aviation Inc. PON');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19294','Princeton Aviation Corp PRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19295','Pro Air Services PRR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19296','Precision Valley Aviation PVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19297','Bar Harbor Airways QOZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19298','Royal-Air Ltd. RAL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19299','Realwest Airlines REA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19300','Aerosun Int''l Airlines Inc. RED');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19301','Royal Hawaiian Airways Inc. RHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19302','Richardson Aviation RIC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19303','Indiana Airways Inc. (Reid RID');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19304','Rio Airways Inc. RIO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19305','Riverside Air Service RIV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19306','Michigan Airways Inc. RJS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19307','Roederer Aviation Inc. ROE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19308','Royal American Airways Inc. ROY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19309','Air Rovers Inc. RWG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19310','Sajen Air Inc. SAJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19311','Samoan Airlines Inc. SAM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19312','Air Cortez International SAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19313','Air Americana SAX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19314','Saber Aviation Inc. SBA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19315','Suburban Airlines SBN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19316','Seaco Airlines Inc. SCO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19317','Skyline Airlines SCT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19318','South Coast Airways SCY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19319','Semo Aviation Inc. SEM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19320','Stahmannfarms Inc. SFI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19321','Sfo Helicopter Airlines Inc. SFO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19322','Sierra Flite Service Inc. SFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19323','Shasta Air Inc. SHS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19324','Shavano Air Inc. SHV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19325','Silver State Airlines SIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19326','San Juan Airlines Inc. SJA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19327','Bas Airlines SKL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19328','Scheduled Skyways SKM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19329','Stopher Mechanical Inc. SMC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19330','Gelco Courier Services Inc. SNC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19331','Shawnee Airlines SNE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19332','Mall Airways Inc. SOA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19333','Soonair Lines Inc. SOL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19334','Springfield Air Service SPF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19335','Sterling Air Service SRL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19336','Southern Seaplane SSP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19337','Sierra Express Inc. SSS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19338','Seaplane Shuttle Transport SST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19339','Trans East International STF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19340','Star Aviation Corporation STR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19341','Sun International Airways SUI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19342','Sunbelt SUT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19343','Sun Valley Airlines SVL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19344','Sunwest Airlines SWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19345','Air Colorado TAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19346','Tejas Airlines Inc. TAL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19347','Yosemite Airlines Inc. TAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19348','Trans Catalina Airlines TCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19349','Oceanair Line TCE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19350','Trans California Airlines TCI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19351','Trans-Central Airlines Inc. TCL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19352','Trans-Colorado Airlines TCO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19353','Tennessee Airways Inc. TEN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19354','Terre Haute Air Commuter TER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19355','Thorson Aviation THO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19356','Trans Air Inc. TIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19357','Skyfreight TIS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19358','Trans Mo Airlines TMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19359','Transtate Aviation TNS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19360','Trans Pennsylvania Airlines TRP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19361','Trans Sierra Airlines Inc. TSI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19362','Tulsair Beechcraft Inc. TUL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19363','Temsco Airlines TYE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19364','Universal Airways Inc. UAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19365','Air U.S. USA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19366','Vagabond Aviation Inc. VAG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19367','Britt Airlines Inc. VER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19368','Viking Express VIG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19369','Vale International Airlines VIN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19370','Valley Airlines VLY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19371','Air East Airlines WAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19372','Walker''s International WCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19373','Mountainwest Airlines WCI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19374','Western Star Airlines Inc. WES');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19375','Western Charter Inc. WET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19376','Wheeler Airlines WFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19377','Wisc Air WIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19378','Will''s Air WIL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19379','Wings Airways WNG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19380','Mcphillips Flying Service ZFZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19381','Air New Mexico ZIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19382','Winnipesaukee Aviation Inc. ZMZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19383','Skyway Aviation Inc. ZYZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19384','P.S. Air Freight Inc. PSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19385','Reeve Aleutian Airways Inc. RV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19386','Northwest Airlines Inc. NW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19387','Wien Air Alaska Inc. WC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19388','Southern Airways FTI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19389','Air Florida Inc. QH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19390','Air California Inc. OC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19391','Pacific Southwest Airlines PS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19392','Rich International Airways RIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19393','Southwest Airlines Co. WN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19394','Mid-South Aviation Inc. VL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19395','Mid-South Aviation Inc. (1) RCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19396','Sky West Aviation Inc. QG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19397','Republic Airlines Inc. RC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19398','Dauphin Island Airways DAU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19399','New York Air Inc. NY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19400','Global Int''l Airways Corp. GIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19401','Colgan Airways Inc. CJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19402','Overseas National Airways UNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19403','Flight International PTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19404','Academy Airlines ACD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19405','Check-Air Inc. ACL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19406','Transwest Air Express ACW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19407','Airgo Inc. AIG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19408','American Air Transport AMT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19409','Bo-S-Aire Airlines Inc. BOI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19410','Combs Airways Inc. CMB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19411','Summit Airlines Inc. DUZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19412','Eagle Aviation Inc. EEZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19413','Falwell Aviation Inc. FAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19414','Falcon Airways Inc. FAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19415','Pinehurst Airlines Inc. PHR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19416','Great Western Airlines Inc. ROS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19417','Air Freight Express RRT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19418','S. S. Airways Inc. SSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19419','Aero Union Corp XAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19420','Air Express Int''l Airlines XAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19421','Central American Int''l XAJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19422','Michigan Peninsula Airways XAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19423','WTC Airlines XBF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19424','Profit Airlines Inc. XBH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19425','CF Air Freight XBI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19426','International Air Service XBJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19427','Aeronaves De Puerto Rico XBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19428','Allstates Air Cargo Inc. XBR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19429','Cam Air International Inc. XAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19430','Purolator Sky Courier Inc. XAZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19431','Circle Airfreight Corp. XBP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19432','Pacific Alaska Airlines Inc. XBT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19433','Icb International Airlines XBX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19434','Cohlmia Aviation XAM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19435','Amerford Airways Inc. XAE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19436','Astro-Wing Airlines Inc. XAF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19437','Ball Brothers Inc. XAG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19438','Burlington Northern Inc. XAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19439','Century Airlines Inc. XAK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19440','Dallas Flight Center XAO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19441','Jet Way Inc. XAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19442','Klondike Air Inc. XAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19443','Pat Air XAY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19444','Phh Air Inc. XBM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19445','Flight Line Inc. XAU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19446','Viking Int''l Airlines Inc. CGL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19447','Capitol International Inc. CL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19448','Air Caravane Inc. AEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19449','Argo S. A. AGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19450','Norontair AIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19451','Alberta Northern Airlines ALQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19452','Aviacion Y Comercio S.A. AO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19453','Air Bvi Limited BLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19454','Spantax S. A. BXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19455','Dan Air Services DA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19456','Maersk Air IS DM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19457','Aerolineas Dominicanas S A DOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19458','Caribwest Airways Ltd. DQQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19459','Execaire Aviation Ltd. EBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19460','Aero Trades (Western) Ltd. ERQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19461','Fast Air Carrier Ltd. (1) FAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19462','Business Flights Ltd. HIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19463','Tar Airlines HRQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19464','Transavia Holland B. V. HVQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19465','Iscargo Hf ICQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19466','Tradewinds Airways Ltd. IKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19467','Aerlinte Eireann Teoranta IN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19468','Iran National Airlines Corp IR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19469','Inair IXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19470','Allarco Developments Ltd. JXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19471','Transmeridian Air Cargo Ltd. KKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19472','Kelowna Flightcraft Air Cha KWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19473','Liat (1974) Limited LIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19474','Millardair Limited MAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19475','Montana Austria Flugetrieb MGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19476','P.N. Merpati Nusantara Air. MZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19477','North Cariboo Flying Serv. NFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19478','Norcanair NKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19479','Northward Airlines Ltd. NN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19480','North Coast Air Services NSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19481','National Aviation Consult. NTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19482','Air Niugini NUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19483','Nunasi-Central Airlines Ltd. ONQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19484','Ontario Worldair Limited OWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19485','Pem-Air Limited PD (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19486','Eastern Provincial Airways PV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19487','Pacific Western Airlines PW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19488','Inter-Quebec (Intair) QB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19489','Syrian Arab Airlines RB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19490','Aerotransportes Entre Rios RSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19491','Redcoat Air Cargo Limited RY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19492','Skycharter (Malton) Ltd. SJQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19493','Superior Airways Limited SSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19494','Belize Airways Limited ST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19495','Skycraft Air Transport Inc. STQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19496','Trans-Mediterranean Airways TLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19497','British Caribbean Airways TXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19498','Air Manila Inc. UMQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19499','Avalon Aviation Ltd. VOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19500','Wardair Canada Inc. WDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19501','Gateway Aviation Limited WGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19502','Windward Islands Airways WM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19503','Nal Inc. XBV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19504','Yellow Bird Air YBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19505','Air Europe Limited AE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19506','Intair dba Intair ND');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19507','Yugoslav Airlines JU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19508','Union De Transports Aeriens UT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19509','Air Haiti S. A. HJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19510','Servicio Aereo De Honduras SH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19511','Sterling Airways AS NBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19512','Aerolineas El Salvador S A SZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19513','Transp. Aereos Bolivianos BOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19514','Aeronaves Del Peru ADQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19515','Compania Dominicana De Avia DO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19516','Nigeria Airways Ltd. WT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19517','Lineas Aereas Paraguayas PZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19518','Lufthansa Cargo Airlines GE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19519','Venezuelan Int''l Airways VA (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19520','Andes ED');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19521','Compan. De Aviacion Faucett CF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19522','Aviateca GU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19523','Canadian Airlines Int''l Ltd. CP (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19524','Guyana Airways Corporation GY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19525','Seagreen Air Transport ESQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19526','Air Nauru ON');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19527','Aero Peru PL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19528','Balair Ag BBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19529','Sabena Belgian World Air. SN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19530','Air Afrique RK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19531','Air Canada AC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19532','Compagnie Nat''l Air France AF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19533','Air-India AI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19534','Aeromexico AM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19535','Aerolineas Argentinas AR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19536','Royal Air Maroc AT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19537','Aerovias Nac''l De Colombia AV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19538','Finnair Oy AY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19539','Alitalia-Linee Aeree Italia AZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19540','British Airways Plc BA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19541','British Midland Airways Ltd. BD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19542','British West Indian Airways BW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19543','Air China CA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19544','China Airlines Ltd. CI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19545','Cargolux Airlines Int''l S.A CV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19546','Icelandair FI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19547','Iberia Air Lines Of Spain IB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19548','Japan Air Lines Co. Ltd. JL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19549','Air Jamaica Limited JM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19550','Korean Air Lines Co. Ltd. KE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19551','Klm Royal Dutch Airlines KL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19552','Lan-Chile Airlines LA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19553','Lloyd Aereo Boliviano S. A. LB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19554','Lufthansa German Airlines LH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19555','Polskie Linie Lotnicze LO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19556','Lacsa LR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19557','Luftransport-Unternehmen LT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19558','El Al Israel Airlines Ltd. LY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19559','Compania Mexicana De Aviaci MX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19560','N. W. Territorial Airways NWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19561','Olympic Airways OA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19562','Polynesian Airlines Ltd. PH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19563','Pakistan Int''l Airlines PK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19564','Philippine Airlines Inc. PR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19565','Surinam Airways Limited PY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19566','Qantas Airways Ltd. QF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19567','Varig S. A. RG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19568','Alia-(The) Royal Jordanian RJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19569','Tarom Romanian Air Transpor RO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19570','South African Airways SA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19571','Scandinavian Airlines Sys. SK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19572','Singapore Airlines Ltd. SQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19573','Aeroflot Russian Airlines SU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19574','Taca Int''l Airlines TA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19575','Thai Airways Int''l Ltd. TG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19576','Tap-Portuguese Airlines TP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19577','Bahamasair Holding Limited UP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19578','Transtar Airlines Corp. MC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19579','Heavylift Cargo Airlines Lt HLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19580','Ladeco UC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19581','Altus Airlines ALT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19582','Atlantic Air ANC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19583','Aero International Airlines BAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19584','Northern Star DIR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19585','Skytrain SKT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19586','Trans Air Cargo Inc. TGO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19587','T-Bird Air Inc. THQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19588','Royal West Airways Inc. ROA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19589','Air East Of Delaware Inc. AED');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19590','Atlanta Express ALX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19591','Air New Orleans AOR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19592','Air Vermont Inc. AVR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19593','Dolphin Airways Inc. DOL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19594','Devoe Airlines DVO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19595','Golden Pacific Airlines KIN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19596','National Florida Airlines NFA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19597','Slocum Air Inc. SLO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19598','State Airlines Inc. STA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19599','Air Molakai TRO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19600','Williams Air Inc. WIR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19601','Mission Air WSU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19602','Guy-America Airways Inc. HX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19603','Pacific Express VB (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19604','Northeastern Int''l Airways QS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19605','Friendship Air Alaska HAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19606','Minuteman Aviation Inc. MIN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19607','Virgin Islands Seaplane VIS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19608','Flying Tiger Line Inc. FT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19609','Aerocondor OD (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19610','Emerald Airlines Inc. OD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19611','Northern Airlines Inc. NRN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19612','Pacific East Air Inc. 6P');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19613','Jet Charter Service Inc. TJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19614','Aeroservicios Ecuatorianos EOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19615','Arista Int''l Airlines Inc. RAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19616','Kuwait Airways Corp. KU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19617','Burlington Aeroplane Co. BAY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19618','Desert Sun Airlines DSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19619','Lake Union Air Service LAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19620','Aer Turas Teoranta QTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19621','Aero B Venezuela C.A. AFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19622','Air Ontario Limited GX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19623','Aer Lingus Plc EI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19624','Saudi Arabian Airlines Corp SV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19625','Air Polynesia dba DHL Cargo XAB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19626','Air Natl Aircraft Sal & Ser XBZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19627','AS Conair CIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19628','Dash Air Corporation ANI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19629','Air Resorts Airlines ARA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19630','Manu''a Air Transport MUA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19631','Pacific Cal Air PCL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19632','Service Aviation Inc. SER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19633','The Time Machine TTM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19634','Servicio De Carga Aerea Sa CMQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19635','Hapag Lloyd Flug. HAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19636','Air One Inc. CB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19637','Middle East Airlines S.A.L. ME');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19638','Arcata Flying Service AFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19639','Grand Canyon Airlines GRD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19640','Kodiak Airways Inc. KOD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19641','Mid-Atlantic Exp. Airlines MAE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19642','National Commuter Airlines NCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19643','Sundorph Aeronautical Corp. SAC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19644','Waring Air WAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19645','All Star Airlines Inc. EP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19646','Aeron Int''l Airlines Inc. AXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19647','Jet Fleet Intl. Airlines JIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19648','Markair Express HER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19649','Alaska Island Air Inc. LSZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19650','Air Sunshine Inc. AAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19651','Eastman Airways Inc. EAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19652','Spirit Helicopter SPH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19653','Air National AHQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19654','Executive Charter EXC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19655','Aviation Associates SNA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19656','Airmarc Airlines Inc. ARM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19657','Panorama Air Tours PAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19658','Trans-Air-Link Corporation TKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19659','Audi Air Inc. AAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19660','Galaxy Airlines Inc. GAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19661','Intl Air Service Co. Ltd. IDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19662','Transbrasil S.A. TR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19663','Hawkins And Powers Aviation XCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19664','Jet East Inc. XBC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19665','Air Sedona ARS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19666','Caribbean Express Inc. CRE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19667','Tri-State Airlines Inc. TFZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19668','Frontier Horizon Inc. FH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19669','Aermediterranea S.P.A. AWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19670','Markair Inc. BF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19671','Air Tungaru Corporation VK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19672','Resort Airlines Inc. RES');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19673','Alpine Air AAV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19674','Americair Inc. AME');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19675','Airspur Helicopters Inc. ARP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19676','Silver Kris Services Ltd. SKS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19677','Buffalo Airways Inc. BFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19678','Aloha Air Cargo AQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19679','Air Spirit Inc. APS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19680','Metro Express EME');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19681','Frontier Commuter FRT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19682','Virgin Atlantic Airways VS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19683','Airmark Corporation MKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19684','Independent Air Inc. INQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19685','Aerial Transit Company TPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19686','Westflight Aviation WFT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19687','Horizon Air QX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19688','Midway Express Airlines 2M');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19689','St. Lucia Airways Limited SDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19690','Hawaiian Airlines Inc. HA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19691','Pacific Air Express Inc. XDA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19692','Trump Air RIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19693','North Pacific Airlines Inc. NPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19694','Flirite Inc. FLR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19695','Talarik Creek Air Taxi TAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19696','Royale Airlines Inc. RAY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19697','Worldways Canada Ltd. WWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19698','Air Charter (Safa) AQQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19699','Samoa Airlines Inc. MB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19700','Alpha Air APH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19701','Jetaire Airlines Inc. JTA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19702','Haiti Air KB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19703','Harbor Air Service HSV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19704','Continental Air Lines Inc. CO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19705','Interstate Airlines Inc. IRQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19706','Hawaii Pacific Helicopters CLD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19707','Eastern Air Lines Inc. EA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19708','Chisum Flying Service CSM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19709','AvAir AMR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19710','Armstrong Air Service Inc. AAP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19711','Eagle Airline EGA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19712','Business Express Airlines BEA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19713','Alliance Airlines ACN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19714','Astor Air ASR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19715','West Penn Commuter BAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19716','Barken International BRK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19717','Commuter Airlines (Ca) CMR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19718','Cresent Medivac CRH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19719','Coastal Air Transport CTL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19720','Exec Express EEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19721','La Skycab Airline LAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19722','National Air NAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19723','Omniflight Airways OMI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19724','Southern Express Airways SEP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19725','Turner Aire TUR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19726','AAR Western Skyways WSK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19727','Skybus Inc. FW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19728','Caicos Caribbean Airways CUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19729','Jet Express BDE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19730','Regent Air Corporation 4R');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19731','Westates Airlines WTA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19732','Action Airlines AON');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19733','California Seaboard CAF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19734','Enterprise Airlines Inc. ENT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19735','Island Air Express IEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19736','Maui Airlines MAA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19737','Metro Express 11 MEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19738','Otter Air OTT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19739','Prime Air Inc. PRM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19740','Sallee''s Aviation SAL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19741','Wrangell Air Service WGL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19742','Atlantic Gulf Airlines ZY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19743','Skyworld Airlines Inc. PKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19744','Presidential Airways Inc. XV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19745','Caribbean Air Cargo Co Ltd. DC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19746','P.T. Garuda Indonesian Arwy GA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19747','Egyptair MS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19748','Bay Air BYA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19749','Five Star Airlines FFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19750','King Flying Service KFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19751','Le Point Air LEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19752','Barrow Air BRW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19753','Big Island Air BIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19754','Cityhop CCA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19755','GP Express Airlines GPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19756','Iowa Airways IOW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19757','Mountain West Airlines MWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19758','Resort Commuter RSC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19759','Texas National Airlines TXA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19760','Air Hawaii AHC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19761','Aerotal XK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19762','Air L.A. ALS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19763','Aero Coach AEO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19764','Air Link Airways ALK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19765','Million Air BFG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19766','Helitrans HEL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19767','La Helicopter LAH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19768','Omniflight Helicopters OMH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19769','Reeves Air RVA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19770','Compania Panamena (Copa) CM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19771','Zas Airline Of Egypt ZAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19772','Polar International POL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19773','Hemisphere Air Charter XDC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19774','Airways International AIT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19775','Chicago Airlines CGA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19776','Royal West Airlines YM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19777','Airpac Inc. XYZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19778','Aerovias Venezolanas-Avensa VE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19779','Cathay Pacific Airways Ltd. CX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19780','Galena Air Service GAL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19781','Stateswest Airlines STW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19782','Executive Transport EXR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19783','Propheter Aviation PRP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19784','Wise Airlines Inc. WAI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19786','Haines Airways HNS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19787','Great American Airways FDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19788','Air Puerto Rico Airlines FD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19789','Viacao Aerea Sao Paulo VP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19790','Delta Air Lines Inc. DL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19791','All Nippon Airways Co. NH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19792','Int''l Parcel Express Inc. XDD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19793','Anglo Airlines Ltd. AZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19794','Midcontinent Airlines MDC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19795','Malaysian Airline System MH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19796','Pilgrim Aviation & Airlines PMT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19797','Florida Express Inc. ZO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19798','Orion Air OPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19799','Nationair NAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19800','Air Cape APE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19801','Lake Coastal LCT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19802','Mst Aviation MTV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19803','First Air 7F');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19804','Transportes Aereos De Cabo VR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19805','American Airlines Inc. AA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19806','Air Charter Systems (Acs) WAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19807','Helitac Aviation HET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19808','Belize Air Int''l Ltd. BM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19809','Highland Express Airways VY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19810','Mid Pacific Airlines Inc. MPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19811','Aero Tranportes Panamenos ATQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19812','Millon Air Inc. LBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19813','Air Caribe International ARB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19814','Air South (1) ASU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19815','Air South ASH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19816','Bangor International Air BAN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19817','Chester County Aviation CCO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19818','East Coast Airways ECR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19819','Hub Express HEP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19820','Tropical Helicopter Airways THA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19821','Turk Hava Yollari A.O. TK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19822','Piedmont Aviation Inc. PI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19823','Air Train Inc. XDE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19824','Haiti Air Freight Intl HFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19825','Ketchikan Air Service KET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19826','Salair Inc. XDF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19827','Npa Inc. NAP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19828','Air America GM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19829','Time Air Ltd. KI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19830','Nippon Cargo Airlines KZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19831','Seagull Air Service SEG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19832','Nasville Eagle NAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19833','Aleutian Air ALU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19834','Custom Air Service CUS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19835','GCS Air Service GSC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19836','Golden State Airlines GST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19837','Springdale Air SPG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19838','Sportsman Flying Service SPR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19839','Saeta Airlines EH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19840','Aerolineas Mundo MUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19841','Tropical Airways Inc. GG (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19842','Grenada Airways Ltd. GG (2)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19843','Mid Pacific Air Corp. MPC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19844','Exec Express II EET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19845','Taquan Air Service TAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19846','Chartair CTR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19847','Laredo Air LAR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19848','Qwest Commuter QWE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19849','Tri Air Freight TAF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19850','Wra Inc. WRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19851','Zambia Airways Corp. Q2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19852','Swissair Transport Co. Ltd. SR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19853','Airlift International ARD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19854','Pacair PCR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19855','Bradley Air Services Ltd. BCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19856','Corse Air International CYQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19857','Iraqi Airways IA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19858','Monarch Airlines ZB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19859','Vacationair VAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19860','Lineas Aereas La-Tur Sa LUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19861','Holidair Airways HOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19862','Aerovias S.A. AOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19863','Alas De Transporte Int''l APQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19864','Transamerica Airlines Inc. TV (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19865','Haiti Trans Air TV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19866','Canadian Aviation Express CWQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19867','Japan Air System Co. Ltd. JD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19868','Manhattan Express MEA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19869','Britannia Airways Ltd. BY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19870','Aero Freight AEF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19871','Panama Aviation PNM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19872','Welch Aviation WLH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19873','Austrian Airlines OS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19874','Air Transport International 8C');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19875','Aero California JR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19876','Heritage Airlines HRG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19877','Kitty Hawk Air Cargo XDH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19878','Columbia Pacific Airlines (1) EXA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19879','Columbia Pacific Airlines CLB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19880','Central States Air Lines CSL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19881','Mohawk Airlines MHK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19882','Skymaster SYM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19883','Novair Int''l Airways Ltd. NVQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19884','TPI International Airways TSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19885','Universal Airlines Inc. UTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19886','Aruba Cargo IPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19887','Latcr LCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19888','Transcarga TDQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19889','Venexcargo TDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19890','Aeroejecutivos C.A. EJQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19891','Aeropuma PUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19892','Aeronautica De Cancun ACQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19893','Aerovias Colombianas Arca ARQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19894','Zuliana De Aviacion ZUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19895','Interamericana De Aviacion ITQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19896','Fast Air Carrier Ltd. UD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19897','Lineas Aereas Mayas (Lamsa) MYQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19898','Emery Worldwide Airlines TNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19899','Hong Kong Dragonair KA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19900','Air Marshall Islands Inc. CW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19901','Blue Bell Inc. BUQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19902','Wrangler Aviation Inc. BUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19903','Conquest Airline Corp. CQI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19904','Air Southeast ATH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19905','California Air Shuttle CLF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19906','Northcoast Executive NCE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19907','Scott Aviation SCN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19908','Trans Air (Hawaii) TXE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19909','Air Belgium BEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19910','Aerolineas Latinas LNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19911','Air Aruba FQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19912','Cayman Airways Limited KX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19913','Belize Trans Air 4H');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19914','Air Liberte LRQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19915','Sea Air Shuttle SAH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19916','Primeras Lineas Uruguays For International PU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19917','United Parcel Service 5X');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19918','Gulf Air Taxi GAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19919','Adirondack Airlines ADR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19920','Corporate Air CRP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19921','Drummond Island Air DIA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19922','Gulf Flite Center GFC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19923','Lapsa LAP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19924','L''Express LEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19925','Travelair TVL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19926','Valley Air Services VAS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19927','Aerosur ASQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19928','Central American Airlines GW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19929','Charter One CHT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19930','Alaska Airlines Inc. AS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19931','Regal Air 2R');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19932','Apa International Air S.A. 7P');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19933','Air New Zealand NZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19934','Das Air Cargo SE (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19935','Star Aviation SRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19936','Territorial Airlines TRR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19937','Loken Aviation LKN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19938','Dawn Air DWN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19939','Flying Boat FYB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19940','Caraven S.A. CVQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19941','Trans Europ. Airways France EFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19942','General Air Cargo GCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19943','Allied Airlines ALD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19944','Airvantage AVG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19945','Chicago Air Taxi CGO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19946','Great Western Aviation GWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19947','Paradise Island Airlines PRD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19948','Redwing Airways RDW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19949','Lauda Air Luftfahrt Ag NG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19950','Flagship Express Services 9R');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19951','Braniff Int''l Airlines Inc. BE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19952','Carnival Air Lines Inc. KW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19953','Transportes Aereos Mercantiles Panamericanos S.A QT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19954','Japan Air Charter Co. Ltd. JZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19955','Affretair ZL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19956','Servicios Avensa VC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19957','Mcclain Airlines Inc. MU (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19958','China Eastern Airlines MU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19959','Dulles Express DUL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19960','Skybus Express Airlines SYB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19961','Air Transat TS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19962','Hawaii Pacific Air XAH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19963','World Air Network WL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19964','Island Express IPS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19965','Rocky Mountain Helicopters RMH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19966','Sierra Nevada Airways SNV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19967','Trans World Express TWE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19968','Arizona Pacific Airways AZP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19969','International Cargo Xpress XPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19970','Northeast Express Regional (1) NER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19971','Northeast Express Regional NEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19972','Av Atlantic HCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19973','Aerotour Dominicano Cxa RTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19974','Aero Uruguay (1) ROQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19975','Aero Uruguay URQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19976','Air North 4N');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19977','United Air Lines Inc. UA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19978','Air Alpha AHA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19979','Alliance Air AIY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19980','Florida Air FLA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19981','Patriot Airlines Inc. PAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19982','USAir Shuttle TB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19983','Key Airlines Inc. ZN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19984','Translift Airways Limited FB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19985','Turks Air Ltd. KTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19986','Turks Air Ltd. (1) BHQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19987','Advantage Airlines ADV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19988','Air West Airlines AWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19989','Keene Airways KEA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19990','Sky One Express SOE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19991','America West Airlines Inc. HP (Merged with US Airways 905.Stopped reporting 1007.)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19992','Hispaniola Airways ZS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19993','Airmark Airlines Inc. AKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19994','Reno Air Inc. QQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19995','Aces Airlines VX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19996','Nicaraguense De Aviacion Sa 6Y');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19997','Jet America Airlines Inc. SI (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19998','Sierra Pacific Airlines SI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('19999','South Pacific Island Airway SOP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20000','Time Air Sweden Ab HK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20001','Tranps Aereos Guatemaltecos TGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20002','Morris Air Corporation KN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20003','Balkan Bulgarian Airlines LZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20004','Cal Air Int''l Ltd. BR (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20005','Eva Airways Corporation BR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20006','Capitol Air Express Inc. CPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20007','Atlas Air Inc. 5Y');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20008','Ram Aviation RMV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20009','Eclipse Airlines ECL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20010','Aero Transcolombiana CLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20011','Air Casino ASN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20012','Express Airlines II EXP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20013','Rader Aviation RDR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20014','Trans American Charter ECQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20015','Export Air Del Peru S.A. EXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20016','Lineas Aereas Allegro LGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20017','Continental Micronesia CS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20018','J.D.Valenciana De Aviation V5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20019','Private Jet Expeditions 5J');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20020','Eagle Airlines V9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20021','Eagle Airlines (1) ECA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20022','Leisure Int''l Airways Ltd. LZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20023','Malev Hungarian Airlines MA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20024','Serv. Aerolineas Mexicanas SMQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20025','Lineas Aereas Suramerican LSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20026','Quassar De Mexico OMQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20027','Oasis Int''l Airlines S.A. OB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20028','Aerochago S.A. G3');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20029','Transp. Aereos Ejecutivos GD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20030','Aerolineas Uruguayas S.A. UYQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20031','People Express Airlines Inc. PE (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20032','Air Europe S.P.A. PE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20033','UFS Inc. U2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20034','Pacific Int''l Airlines PIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20035','Air Florida Express AFE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20036','American Flight Group AFG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20037','Aviation Sales AVL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20038','Business Helicopters BUH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20039','Four Star Aviation FRS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20040','Sky-Jet SKJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20041','Salair SLR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20042','Southern Air Transport Inc. SAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20043','Air Ukraine 6U');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20044','Aeromonterrey S.A. 7M');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20045','Biman Bangladesh Airlines BG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20046','Air Wisconsin Airlines Corp ZW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20047','Caribair CRB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20048','Gorda Aero Service GRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20049','Western Air Lines Inc. WA (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20050','Worldwide Airlines Services WA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20051','USAfrica Airways Inc. E8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20052','Skyjet S.A. SBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20053','Servicio Aereo Leo Lopez 8L');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20054','Gulf Air Transport Inc. GF (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20055','Gulf Air Company GF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20056','Antigua Paradise Airways PDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20057','Evergreen Int''l Inc. EZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20058','Air Pacific Ltd. (1) FJ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20059','Air Pacific Ltd. FJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20060','Air South Inc. (1) WV (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20061','Air South Inc. ASC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20062','Island Air Charters ICH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20063','Pacificair PFA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20064','Ghana Airways Corporation GH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20065','Sky Service F.B.O. SEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20066','Advance Air Charters AAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20067','Mahalo Air MHO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20068','Capitol Air CPT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20069','Dolphin Express DXA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20070','Grand Airways Inc. QD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20071','Jetall Airways 8J');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20072','Scanair SIQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20073','Premiair SIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20074','Renown Aviation REQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20075','Aeromar C. Por A. BQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20076','Texas Airways TXY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20077','Halisa Air WD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20078','Western Pacific Airlines W7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20079','Brasair Transportes Aereos BTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20080','Uzbekistan Airways HY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20081','Downeast Flying Service DFS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20082','Pine State Airlines PNS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20083','Sunshine Airlines SUA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20084','Aspen Airways Inc. APN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20085','Aeromexpress QO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20086','Tristar Airlines Inc. T3');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20087','Sierra Expressway SXP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20088','Tower Air Inc. FF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20089','Serv De Trans Aereos Fuegui FS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20090','Royal Air QN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20091','Krasair 7B');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20092','Merlin Express MLX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20093','Custom Air Transport CTQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20094','Jettrain Airlines LF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20095','World Airways Inc. WO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20096','Mexicargo GJ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20097','Prestige Airways OI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20098','Eagle Jet Charter EGJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20099','Laker Airways Inc. 6F');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20100','Polar Air Cargo Airways PO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20101','Southern Frontier Air Trans SFQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20102','Pacific Int''l Airlines Inc. SFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20103','North East Cargo Airlines NEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20104','Transaero Airlines UN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20105','Ecuatoriana De Aviacion EU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20106','Sunworld Int''l Airlines SM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20107','Federal Express Corporation FX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20108','Northern Air Cargo Inc. NC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20109','Blue Scandinavia Ab TRQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20110','Antonov Design Bureau AUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20111','DHL Aero Expresso DHQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20112','Maverick Airways MAV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20113','Golden West Airlines Inc. GDW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20114','Air Caribbean (1) XC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20115','Air Caribbean AIC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20116','Canada 3000 Airlines Ltd. 2T');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20117','Sobelair Q7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20118','Air Illinois Inc. UX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20119','Air Europa UX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20120','Condor Flugdienst DE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20121','Air Atlantic Dominicana LU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20122','Mountain Air Express MTX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20123','Aeroejecutivo S.A. SX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20124','City Bird H2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20125','Panagra Airways PNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20126','Laker Airways GKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20127','Lb Limited 7Z');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20128','Flying Colours Airlines Ltd. MT (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20129','Sky Trek Int''l Airlines 1I');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20130','M & N Aviation MNA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20131','Jim Air Inc. JMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20132','Cascade Airways Inc. CZ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20133','China Southern Airlines CZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20134','Jamaica Air Freighters JAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20135','Nacnet NET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20136','Magadan Airlines H5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20137','Sunworld Int''l Airways Inc. JK (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20138','Spanair S.A. JK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20139','Air Atlanta Inc. CC (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20140','Air Atlanta Icelandic CC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20141','Austin Express Inc. AUX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20142','Flagship Airlines Inc. 8N');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20143','Kiwi International KP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20144','Transportes Aereos Nacional TX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20145','Soc.Nouvelle Air Guadeloupe TX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20146','Sun Pacific International SPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20147','Transmeridian Airlines T9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20148','Martinair Holland N.V. MP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20149','Florida West Airlines Inc. PRQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20150','Harlequin Air Corporation HQQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20151','Amerijet International M6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20152','Aviacsa Airlines 6A');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20153','Ethiopian Airlines ET');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20154','Airbus Transport Internat''l BGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20155','Aeropostal Alas De Venezuel VH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20156','ABSA-Aerolinhas Brasileiras M3');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20157','Swiss World Airways SO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20158','Av Center Inc. AVC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20159','Express Airdba Sunrise XPA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20160','Braniff Inc. BN (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20161','Britannia Airways GmbH BN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20162','Air Tahiti Nui TN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20163','Translux Intl Airlines LXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20164','Accessair Holdings ZA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20165','Queen Air 5G (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20166','Gulf And Caribbean Cargo GFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20167','Transportes Aeros Meridiona JJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20168','Eastwind Airlines Inc. W9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20169','Lynden Air Cargo Airlines L2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20170','Mesaba Airlines XJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20171','American Int''l Airways Inc. NI (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20172','Lanica NI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20173','Kitty Hawk International CDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20174','Air Ketchum Idaho Inc. AIK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20175','Luxair LG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20176','National Airlines N7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20177','Asia Pacific PFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20178','Lorair Ltd. LOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20179','TUIfly Nordic A.B. 6B');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20180','WRANGELL MOUNTAIN AIR INC. WMA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20181','Trans International Express TIE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20182','Lapa-Lineas Aereas Privadas MJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20183','Czech Airlines OK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20184','Novair Airlines Ab NOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20185','Jalways Co. Ltd. JO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20186','Sterling Cargo NB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20187','The Hawaii Express Inc. LP (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20188','Lan Peru Airlines LP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20189','Aero Continente N6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20190','Southern Air Inc. 9S');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20191','Fine Airlines Inc. FNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20192','Vanguard Airlines Inc. NJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20193','Gemini Air Cargo Airways GR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20194','Arrow Air Inc. JW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20195','Tradewinds Airlines WI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20196','Air Malta KM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20197','Casino Airlines (1) CSN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20198','Casino Airlines CSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20199','Farwest Airlines FRW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20200','C.A.L Cargo Airlines 5C');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20201','Ameristar Air Cargo AMQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20202','Chicago Express Airlines C8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20203','Falcon Air Express FCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20204','Champion Air MG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20205','Aeromaritime OV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20206','Air Canada Regional QK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20207','Casino Express XP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20208','Taca Peru TQQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20209','Air Japan Co NQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20210','Privatair PBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20211','Trans World Airways LLC TW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20212','Sunair Express LLC SUX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20213','Polyot Airlines POQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20214','Avia Leasing Company AD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20215','Best Airlines Inc. IW (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20216','Air Liberte Aka Aom Minerve IW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20217','Air Excursions LLC (1) AEX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20218','Express One Int''l Inc. JKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20219','Village Aviation VLA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20220','Air 21 A7 (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20221','Air Comet S.A. A7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20222','Estafeta Carga Aereas E7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20223','F.S. Air Service FSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20224','Katmai Air KAT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20225','Peninsula Airways Inc. KS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20226','Spernak Airways Inc. SNK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20227','Vensecar International V4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20228','Suncoast Airlines Inc. WS (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20229','Westjet WS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20230','Lineas Aereas Azteca ZE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20231','Dutch Caribbean Airlines K8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20232','Cielos De Peru A2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20233','Swiss International Airlines LX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20234','Edelweiss Air Ag 8R');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20235','Conner Air Lines Inc. 4S (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20236','Sol Air (Aero Hunduras) 4S');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20237','Trans States Airlines AX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20238','Southern Wind Airlines A4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20239','All Canada Express CEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20240','Ccair SNB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20241','Sunrise Airlines Inc. ASW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20242','North Vancouver Air NXQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20243','Valujet Airlines Inc. J7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20244','Potomac Air POA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20245','Great Plains Airlines Inc. TRI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20246','Atlantic Coast Jet Inc. ACJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20247','Rio Grande Air EWA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20248','Wilburs Inc. 8F');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20249','Nevis Express NVX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20250','Aerolitoral 5D');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20251','Westair Airlines Inc. OE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20252','Pacific Island Aviation 9J');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20253','Cape Air 9K');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20254','Colgan Air 9L');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20255','Central Mountain Air 9M');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20256','Arizona Airways ARZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20257','Bemidji Airlines CH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20258','Big Sky Airlines Inc. GQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20259','European Aviation Air Charter E72');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20260','Worldwide Airlines Inc. WLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20261','Ellis Air Taxi Inc. ELL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20262','Empire Airlines Inc. (1) UR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20263','Empire Airlines Inc. EM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20264','Empire Airlines Inc. (2) EMP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20265','Freedom Airlines dba HP Expr F8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20266','G5 Executive Ag GBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20267','Grand Canyon Helicopters GCH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20268','Global Supply System GSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20269','Allegheny Airlines HRZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20270','Helijet International Inc. JB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20271','Winair Inc. WNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20272','Kenmore Air Harbor KAH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20273','New England Airlines Inc. NEW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20274','Northwest Seaplanes NWS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20275','Ozark Air Lines Inc. (1) OZ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20276','Ozark Air Lines Inc. OZA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20277','Asiana Airlines Inc. OZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20278','Mytravel Airways RNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20279','Air-Serve RSV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20280','Seaborne Aviation SEB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20281','Mountain BirdSalmon Air S6 (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20282','Samoa Aviation Inc. SMO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20283','Trans Continental Airlines YB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20284','Express.Net Airlines TCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20285','Ward Air WRD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20286','Vintage Props & Jets Inc. VQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20287','Island Air Hawaii WP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20288','Trans Int''l Airlines Inc. TFQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20289','West Isle Air WST');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20290','Air St. Thomas ZP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20291','Air Midwest Inc. ZV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20292','Airbc Ltd. ZX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20293','Air Georgian ZX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20294','Jetsgo SG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20295','Midway Airlines Inc. (1) ML (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20296','Aero Costa Rica ML');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20297','Midway Airlines Inc. JI (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20298','Jes Air Ltd. JX (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20299','Southeast Airlines JX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20300','Pacific Wings Airlines LW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20301','Kar-Air Oy KR (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20302','Kitty Hawk Aircargo KR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20303','Nolinor Aviation NLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20304','Skywest Airlines Inc. OO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20305','Pace Airlines PCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20306','Challenge Air Transport Inc. VV (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20307','Challenge Air Int''l Inc. VV (2)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20308','Centurion Cargo Inc. WE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20309','Aerosvit Ukranian Airlines VV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20310','Caribbean Sun Airlines ZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20311','Jet Connection Businessflight Ag JCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20312','ATA Airlines dba ATA TZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20313','Cargojet Airways Ltd. W8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20314','Midwest Airline');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20315','Bellair Inc. (1) 7G (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20316','Bellair Inc. 5B');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20317','MK Airlines Ltd. 7G');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20318','Olson Air Service 4B');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20319','Smokey Bay Air Inc. 2E');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20320','Frontier Flying Service 2F');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20321','British Airtours Limited 4E (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20322','Tanana Air Service 4E');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20323','Warbelow 4W');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20324','Yute Air Aka Flight Alaska 4Y');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20325','Arctic Circle Air Service 5F');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20326','Cape Smythe Air Service 6C');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20327','Era Aviation 7H');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20328','Inland Aviation Services 7N');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20329','Skystar International Inc. 7S (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20330','Arctic Transportation 7S');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20331','Bering Air Inc. 8E');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20332','Baker Aviation Inc. 8Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20333','Wright Air Service 8V');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20334','Thomas Cook Airlines Uk Ltd. MT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20335','Boston-Maine Airways E9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20336','Hageland Aviation Service H6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20337','Alaska Seaplane Service J5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20338','Larrys Flying Service J6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20339','L.A.B. Flying Service Inc. JF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20340','Wings Of Alaska K5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20341','Alaska Central Express KO');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20342','40-Mile Air Q5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20343','Airlift International Inc. RD (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20344','Ryan International Airlines RD');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20345','Regency Air RGQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20346','Iliamna Air Taxi V8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20347','Pro Air Inc. P9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20348','Lan Ecuador XL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20349','Promech Z3 (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20350','Lan Dominica 4M (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20351','Primaris Airlines Inc. FE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20352','Westward Airways Inc. WAW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20353','Servant Air Inc. 8D');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20354','Aerodynamics Inc. AJQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20355','US Airways Inc. US (Merged with America West 905. Reporting for both starting 1007.)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20356','Skyway Airlines AL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20357','Astar Air Cargo Inc. ER');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20358','Great Lakes Airlines ZK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20359','Triair Bermuda Flt Operations TBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20360','Sata Internacional S4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20361','Valley Air Express Inc. 2U');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20362','China Cargo Airline CK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20363','Pinnacle Airlines Inc. 9E');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20364','Canjet Airlines C6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20365','Aviation Concepts CZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20366','Atlantic Southeast Airlines EV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20367','Freedom Air FRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20368','Allegiant Air G4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20369','Island Airlines Inc. IS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20370','Kalitta Air LLC KAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20371','Reliant Airlines RLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20372','Kalitta Charters II KLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20373','Propair PPQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20374','Expressjet Airlines Inc. XE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20375','First Choice Airways TZQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20376','Mn Aviation');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20377','Omni Air Express X9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20378','Mesa Airlines Inc. YV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20379','Zantop International ZKQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20380','Prince Edward Air PEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20381','Air Atlanta Europe EUQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20382','Victory Air Transport Inc. VCQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20383','Venture Travel LLC dba Taquan Air Service K3');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20384','Pan American World Airways (1) PA (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20385','Air Panama Internacional OP (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20386','Pan American World Airways PA (2)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20387','Pan American Airways Corp. PN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20388','Flying Boat Inc. OP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20389','Florida Coastal Airlines PA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20390','Belair Airlines Ltd. 4T');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20391','Israir Airlines 6H');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20392','Emirates EK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20393','Business Express HQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20394','Harmony Airways HQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20395','Sociedad Aeronautica De Med MM (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20396','Euro Atlantic Airways MM');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20397','PSA Airlines Inc. 16');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20398','American Eagle Airlines Inc. MQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20399','Planet Airways PLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20400','Capital Cargo International PT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20401','Gulfstream Int 3M');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20402','Miami Air International GL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20403','Discovery Airways Inc. DH (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20404','Independence Air DH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20405','National Air Cargo Group');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20406','Netjets Large Aircraft Company L.L.C. BNQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20407','Regions Air');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20408','Tatonduk Flying Service 3Z');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20409','JetBlue Airways B6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20410','Celtic Tech Jet Ltd. CSQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20411','Arizona Express K7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20412','Nations Air Express Inc. N5 (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20413','Skagway Air Service N5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20414','Executive Airlines OW');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20415','North American Airlines NA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20416','Spirit Air Lines NK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20417','Comair Inc. OH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20418','Chautauqua Airlines Inc. RP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20419','Aerolineas Nicaraguenses RL (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20420','UltrAir RL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20421','Sky King Inc. SLQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20422','Sun Country Airlines dba Mn Airlines SY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20423','USA 3000 Airlines U5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20424','Grand Canyon Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20425','Viscount Air Service Inc. VIQ (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20426','Vieques Air Link Inc. VI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20427','Piedmont Airlines 17');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20428','Volga-Dnepr Airlines VIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20429','Aero Laguna S.A. De C.V. AVQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20430','Aerodan S.A. De C.V. AYQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20431','Aero Rentas De Coahuila S.A. De C.V. BAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20432','Aerotaxis De Aguascalientes S.A. De C.V. BDQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20433','Servicios Aeronauticos Z S.A. De C.V. BIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20434','Taxirey S.A. De C.V. BJQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20435','Frontier Airlines Inc. (1) FL (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20436','Frontier Airlines Inc. F9');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20437','AirTran Airways Corporation FL');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20438','Air Club International HB (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20439','Homer Air HB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20440','Lineas Aereas Del Caribe LC (1)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20441','Legend Airlines LC (2)');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20442','Varig Logistica SA LC');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20443','Island Air Service 2O');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20444','Excel Airways JN');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20445','Commutair Aka Champlain Enterprises');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20446','Aerotransportes Mas De Crga M7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20447','USA Jet Airlines Inc. U7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20448','Shuttle America Corp. S5');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20449','Aero-Services-Corporate WEQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20450','Omega Air Holdings dba Focus Air F2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20451','Transmile Air Service TH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20452','Republic Airlines YX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20453','Abx Air');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20454','Eos Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20455','Grant Aviation GV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20456','Air Foyle Limited GS');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20500','GoJet Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20501','Morningstar Air Express MOQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('20502','MAXjet MY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21007','Abaco Air');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21008','Challenge Air Luftverkehrs GmbH CAQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21022','PM Air');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21027','Copper River Air Taxi CBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21029','Harris Air Services HBQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21035','Tyrolean Jet Service TIQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21036','Executive Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21040','Titan Airways 02Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21059','TUI Airlines Nederland B.V. OR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21061','Aerounion Aerotransporte de Carga Union SA de CV 6R');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21069','Cargo 360');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21070','Globespan Airways Limited dba Flyglobespan Y2');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21074','Arrow Panama WAP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21080','Tradewind Aviation 04Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21084','LAN Argentina 4M');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21089','US Helicopter Corporation UH');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21094','Comlux Aviation');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21099','NetJets Transportes Aereos');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21101','Friendship Airways');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21107','Etihad Airways EY');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21111','Pacific Airways');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21116','Flyjet Limited dba Silverjet Y7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21117','TravelspanGT');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21118','Zeal 320 37');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21121','Elysair dba L''Avion A0');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21126','ANA & JP Express Co. Ltd. 9N');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21131','VistaJet Luftfahrtunternehmen GmbH VSA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21132','Master Top Linhas Aereas Ltd. 06Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21134','JetClub AG 0J');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21136','Flair Airlines Ltd. 07Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21142','Avior Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21147','Flying Service N.V. 0Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21148','Master Top Linhas Aereas');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21158','Global Jet Austria');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21160','Global Jet Luxembourg');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21161','Swift Air');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21167','Compass Airlines CP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21171','Virgin America VX');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21177','Skybus Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21181','Skyservice Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21186','DCA 0BQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21192','Eurofly S.p.A GJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21196','ACM AIR CHARTER GmbH 0CQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21201','Jade Cargo International JI');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21202','CAT Aviation CAZ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21204','Maine Aviation Aircraft Charter');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21205','Inter Island Airways');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21212','Polar Airlines de Mexico dba Nova Air 0HQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21217','Lynx Aviation dba Frontier Airlines L3');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21221','Vladivostok Air XF');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21226','Porter Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21231','Sunwing Airlines Inc. WG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21236','Vision Airlines 0JQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21242','Mokulele Flight Services');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21247','Star Air AS S6');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21248','Metropix UK');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21253','Multi-Aero');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21258','Santa Barbara Airlines');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21261','Jet Airways (India) Limited 9W');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21262','Qatar Airways (Q.C.S.C) QR');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21266','Yangtze River Express Airlines Company Y8');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21271','Hainan Airlines Company Limited HU');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21281','JetAlliance Flugbetriebs dba JAF Airservice JAG');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21287','Open Skies 0OQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21294','Aeromexico Travel TRA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21302','Pan American World Airways Dominicana 7Q');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21306','TAG Aviation S.A. FP');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21308','TAG Aviation (UK) Ltd. 0QQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21309','TAG Aviation Espana S.L. 0RQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21312','Air Greco');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21317','Corporatejets');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21323','Compania Boliviana de Transporte Aero Privado Aero S.A. 5L');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21326','Great Wall Airlines Company Limited IJ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21331','Comlux Malta');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21342','Aeroenlaces Nacionales');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21346','Ocean Sky (UK) Limited 0VQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21351','Concesionaria Vuela Compania De Aviacion SA de CV (Volaris) Y4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21352','Avjet Corporation 0WQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21356','Jetstar Airways Pty Limited JQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21361','Air Berlin PLC and CO AB');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21366','XL Airways France SE');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21373','Aeroservices Executive BES');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21376','Lan Colombia L7');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21382','Comlux Malta Ltd. 0YQ');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21386','Air Excursions LLC X4');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21395','Virgin Blue International Airlines ta V Australia VA');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21402','Prescott Support Company');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21406','Acropolis Aviation Ltd. CRV');
INSERT INTO "DIMENSIONS"."AIRLINE_ID" (CODE,DESCRIPTION) VALUES ('21407','Swiss Air Ambulance 10Q');
|
<reponame>coryschwartz/nebula-crawler
DROP TABLE peers_x_properties;
|
<reponame>Dame0912/bcmall
SELECT
spu.id,
spu.thumbnail,
spu.short_name AS shortName,
c.category_name AS category,
u.unit_name AS unit,
b.brand_name AS brand
FROM base_spu spu
LEFT JOIN base_product_category c ON spu.category_id = c.id
LEFT JOIN base_product_unit u ON spu.unit_id = u.id
LEFT JOIN base_product_brand b ON spu.brand_id = b.id
WHERE spu.state=1
#{ and spu.category_id = :categoryId }
#{ and spu.brand_id = :brandId }
ORDER BY spu.last_modified_date DESC |
-- Licensed to the Apache Software Foundation (ASF) under one
-- or more contributor license agreements. See the NOTICE file
-- distributed with this work for additional information
-- regarding copyright ownership. The ASF licenses this file
-- to you 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.
select c_last_name
,c_first_name
,c_salutation
,c_preferred_cust_flag
,ss_ticket_number
,cnt from
(select ss_ticket_number
,ss_customer_sk
,count(*) cnt
from store_sales,date_dim,store,household_demographics
where store_sales.ss_sold_date_sk = date_dim.d_date_sk
and store_sales.ss_store_sk = store.s_store_sk
and store_sales.ss_hdemo_sk = household_demographics.hd_demo_sk
and (date_dim.d_dom between 1 and 3 or date_dim.d_dom between 25 and 28)
and (household_demographics.hd_buy_potential = '>10000' or
household_demographics.hd_buy_potential = 'Unknown')
and household_demographics.hd_vehicle_count > 0
and (case when household_demographics.hd_vehicle_count > 0
then household_demographics.hd_dep_count/ household_demographics.hd_vehicle_count
else null
end) > 1.2
and date_dim.d_year in (1998,1998+1,1998+2)
and store.s_county in ('Williamson County','Williamson County','Williamson County','Williamson County',
'Williamson County','Williamson County','Williamson County','Williamson County')
group by ss_ticket_number,ss_customer_sk) dn,customer
where ss_customer_sk = c_customer_sk
and cnt between 15 and 20
order by c_last_name,c_first_name,c_salutation,c_preferred_cust_flag desc, ss_ticket_number
|
ALTER TABLE "public"."RoomParticipant" ADD COLUMN "conferenceId" UUID NOT NULL;
|
<filename>forward_chaining.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 17 Des 2021 pada 16.41
-- Versi server: 10.4.17-MariaDB
-- Versi PHP: 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: `spk_jurusan`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `admin`
--
CREATE TABLE `admin` (
`id` bigint(20) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `admin`
--
INSERT INTO `admin` (`id`, `name`, `username`, `password`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'admin', <PASSWORD>', '2021-10-31 14:52:38', '2021-10-31 14:55:52');
-- --------------------------------------------------------
--
-- Struktur dari tabel `analisa`
--
CREATE TABLE `analisa` (
`id` varchar(20) NOT NULL,
`nama` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`hasil_akhir` varchar(255) DEFAULT NULL,
`deskripsi` text DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `analisa`
--
INSERT INTO `analisa` (`id`, `nama`, `email`, `hasil_akhir`, `deskripsi`, `created_at`, `updated_at`) VALUES
('1639311397', 'Tes', '<EMAIL>', 'Analisis Kimia', 'Tess', '2021-12-12 12:16:37', '2021-12-12 12:16:42');
-- --------------------------------------------------------
--
-- Struktur dari tabel `goal`
--
CREATE TABLE `goal` (
`id` varchar(10) NOT NULL,
`jurusan` varchar(50) NOT NULL,
`deskripsi` text NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `goal`
--
INSERT INTO `goal` (`id`, `jurusan`, `deskripsi`, `created_at`, `updated_at`) VALUES
('G1', 'Analisis Kimia', 'Tess', '2021-12-06 13:52:22', '2021-12-12 12:10:46'),
('G2', 'Perbankan Syariah', '', '2021-10-29 12:11:29', '2021-11-02 12:40:48'),
('G3', 'Rekayasa Perangkat Lunak', '', '2021-10-29 12:11:40', '2021-11-19 12:08:51'),
('G4', 'Teknik Elektronika', '', '2021-10-29 12:11:50', '2021-11-04 16:15:46'),
('G5', 'Tes', 'tesssss', '2021-12-12 12:06:25', '2021-12-12 12:08:54');
-- --------------------------------------------------------
--
-- Struktur dari tabel `hasil`
--
CREATE TABLE `hasil` (
`id` bigint(20) NOT NULL,
`id_analisa` varchar(20) NOT NULL,
`id_premis` varchar(10) NOT NULL,
`pertanyaan` varchar(255) NOT NULL,
`jawaban` tinyint(4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `hasil`
--
INSERT INTO `hasil` (`id`, `id_analisa`, `id_premis`, `pertanyaan`, `jawaban`, `created_at`, `updated_at`) VALUES
(575, '1639311397', 'P1', 'Apakah kamu suka bersosialisasi di lingkunganmu ?', 0, '2021-12-12 12:16:39', '2021-12-12 12:16:39'),
(576, '1639311397', 'P2', 'Apakah kamu tertarik dengan teknologi ?', 0, '2021-12-12 12:16:40', '2021-12-12 12:16:40'),
(577, '1639311397', 'P3', 'Apakah kamu menyukai pelajaran matematika ?', 1, '2021-12-12 12:16:41', '2021-12-12 12:16:41'),
(578, '1639311397', 'P4', 'Apakah kamu hobi membaca ?', 1, '2021-12-12 12:16:42', '2021-12-12 12:16:42');
-- --------------------------------------------------------
--
-- Struktur dari tabel `premis`
--
CREATE TABLE `premis` (
`id` varchar(10) NOT NULL,
`pertanyaan` varchar(255) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `premis`
--
INSERT INTO `premis` (`id`, `pertanyaan`, `created_at`, `updated_at`) VALUES
('P1', 'Apakah kamu suka bersosialisasi di lingkunganmu ?', '2021-10-29 12:14:34', '2021-12-12 08:56:06'),
('P2', 'Apakah kamu tertarik dengan teknologi ?', '2021-10-30 17:02:53', '2021-12-12 08:57:18'),
('P3', 'Apakah kamu menyukai pelajaran matematika ?', '2021-10-29 12:15:48', '2021-12-12 08:57:39'),
('P4', 'Apakah kamu hobi membaca ?', '2021-10-29 12:15:57', '2021-12-12 08:57:58'),
('P5', 'Apabila ada barangmu yang rusak, apakah kamu akan memperbaikinya? daripada menggantinya dengan yang baru !', '2021-10-29 12:16:08', '2021-12-12 09:07:01'),
('P6', 'Apakah kamu menyukai bidang multimedia ?', '2021-12-12 08:59:18', '2021-12-12 08:59:18'),
('P7', 'Apakah kamu ahli dalam bidang managemen ?', '2021-12-12 09:00:37', '2021-12-12 09:00:37');
-- --------------------------------------------------------
--
-- Struktur dari tabel `rule`
--
CREATE TABLE `rule` (
`id` bigint(20) NOT NULL,
`id_goal` varchar(10) NOT NULL,
`id_premis` varchar(10) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data untuk tabel `rule`
--
INSERT INTO `rule` (`id`, `id_goal`, `id_premis`, `created_at`, `updated_at`) VALUES
(118, 'G2', 'P1', '2021-12-12 08:56:06', '2021-12-12 08:56:06'),
(119, 'G4', 'P1', '2021-12-12 08:56:06', '2021-12-12 08:56:06'),
(120, 'G3', 'P2', '2021-12-12 08:57:18', '2021-12-12 08:57:18'),
(121, 'G4', 'P2', '2021-12-12 08:57:18', '2021-12-12 08:57:18'),
(123, 'G3', 'P3', '2021-12-12 08:57:39', '2021-12-12 08:57:39'),
(125, 'G2', 'P4', '2021-12-12 08:57:58', '2021-12-12 08:57:58'),
(127, 'G3', 'P6', '2021-12-12 08:59:18', '2021-12-12 08:59:18'),
(128, 'G2', 'P7', '2021-12-12 09:00:37', '2021-12-12 09:00:37'),
(129, 'G4', 'P5', '2021-12-12 09:07:01', '2021-12-12 09:07:01'),
(131, 'G5', 'P1', '2021-12-12 12:08:54', '2021-12-12 12:08:54'),
(132, 'G1', 'P3', '2021-12-12 12:10:46', '2021-12-12 12:10:46'),
(133, 'G1', 'P4', '2021-12-12 12:10:46', '2021-12-12 12:10:46');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`);
--
-- Indeks untuk tabel `analisa`
--
ALTER TABLE `analisa`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `goal`
--
ALTER TABLE `goal`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `hasil`
--
ALTER TABLE `hasil`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `premis`
--
ALTER TABLE `premis`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `rule`
--
ALTER TABLE `rule`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `admin`
--
ALTER TABLE `admin`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `hasil`
--
ALTER TABLE `hasil`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=579;
--
-- AUTO_INCREMENT untuk tabel `rule`
--
ALTER TABLE `rule`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134;
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>Discovery.Views.sql
SELECT TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.VIEWS |
<reponame>cyberwolf888/bali_radiance_bus
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 28 Agu 2017 pada 12.57
-- Versi Server: 10.1.13-MariaDB
-- PHP Version: 7.0.5
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `data_radiance`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `fee_kernet`
--
CREATE TABLE `fee_kernet` (
`id` int(11) NOT NULL,
`kernet_id` int(11) DEFAULT NULL,
`transaksi_id` int(11) DEFAULT NULL,
`fee` float DEFAULT NULL,
`status` int(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `fee_sopir`
--
CREATE TABLE `fee_sopir` (
`id` int(11) NOT NULL,
`sopir_id` int(11) DEFAULT NULL,
`transaksi_id` int(11) DEFAULT NULL,
`fee` float DEFAULT NULL,
`status` int(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `kendaraan`
--
CREATE TABLE `kendaraan` (
`id` varchar(10) NOT NULL,
`ket` varchar(100) DEFAULT NULL,
`status` int(1) DEFAULT NULL,
`kmmeter` int(11) DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `kendaraan`
--
INSERT INTO `kendaraan` (`id`, `ket`, `status`, `kmmeter`, `created_at`, `updated_at`, `created_by`, `updated_by`, `deleted_at`) VALUES
('DK1000LK', 'mobil baru', 1, 500, '2017-08-18 05:08:11', '2017-08-18 05:23:41', 1, 1, NULL),
('DK1001K', 'mobil lama', 1, 1000, '2017-08-18 05:09:44', '2017-08-21 05:31:15', 1, 1, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `kernet`
--
CREATE TABLE `kernet` (
`id` int(11) NOT NULL,
`nama` varchar(100) NOT NULL DEFAULT '0',
`no_hp` varchar(12) NOT NULL DEFAULT '0',
`status` int(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `kernet`
--
INSERT INTO `kernet` (`id`, `nama`, `no_hp`, `status`, `created_at`, `updated_at`, `created_by`, `updated_by`, `deleted_at`) VALUES
(1, 'Nyoman', '0853736434', 1, '2017-08-18 05:52:15', '2017-08-18 05:53:41', 1, 1, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `migrations`
--
CREATE TABLE `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 untuk tabel `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2014_10_12_000000_create_users_table', 1),
('2014_10_12_100000_create_password_resets_table', 1),
('2017_03_03_054055_entrust_setup_tables', 2);
-- --------------------------------------------------------
--
-- Struktur dari tabel `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Struktur dari tabel `roles`
--
CREATE TABLE `roles` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`display_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`description` 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 untuk tabel `roles`
--
INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'operator', 'Input Operator', 'User is the operator of a system', '2017-03-02 21:51:52', '2017-03-02 21:51:52'),
(2, 'admin', 'User Administrator', 'User is allowed to manage and edit other users', '2017-03-02 21:51:52', '2017-03-02 21:51:52');
-- --------------------------------------------------------
--
-- Struktur dari tabel `role_user`
--
CREATE TABLE `role_user` (
`user_id` int(10) UNSIGNED NOT NULL,
`role_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data untuk tabel `role_user`
--
INSERT INTO `role_user` (`user_id`, `role_id`) VALUES
(1, 2),
(2, 1),
(3, 2),
(4, 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `service`
--
CREATE TABLE `service` (
`id` int(11) NOT NULL,
`kendaraan_id` int(11) DEFAULT NULL,
`service_date` date DEFAULT NULL,
`total` int(11) DEFAULT NULL,
`image` varchar(255) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `service`
--
INSERT INTO `service` (`id`, `kendaraan_id`, `service_date`, `total`, `image`, `created_at`, `updated_at`) VALUES
(1, 2, '2017-08-03', 73000, '146b8736183d68296ec2a76157f19052.jpg', '2017-03-09 20:07:14', '2017-03-09 20:07:14'),
(3, 1, '2017-03-16', 100000, 'cf09a56182f8ffda31c082129a3b06ff.jpg', '2017-03-15 18:32:58', '2017-03-15 18:32:58');
-- --------------------------------------------------------
--
-- Struktur dari tabel `supir`
--
CREATE TABLE `supir` (
`id` int(11) NOT NULL,
`nama` varchar(100) NOT NULL DEFAULT '0',
`no_hp` varchar(12) NOT NULL DEFAULT '0',
`status` int(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `supir`
--
INSERT INTO `supir` (`id`, `nama`, `no_hp`, `status`, `created_at`, `updated_at`, `created_by`, `updated_by`, `deleted_at`) VALUES
(1, '<NAME>', '08684854', 1, '2017-08-18 05:43:41', '2017-08-18 05:53:07', 1, 1, NULL),
(2, 'Bedebah', '086737384', 1, '2017-08-18 05:50:07', '2017-08-18 05:50:07', 1, NULL, NULL),
(3, 'Made', '085737343465', 1, '2017-08-18 05:50:47', '2017-08-18 05:50:47', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `transaksi`
--
CREATE TABLE `transaksi` (
`id` int(11) NOT NULL,
`kendaraan_id` varchar(50) NOT NULL DEFAULT '0',
`supir_id` int(11) NOT NULL DEFAULT '0',
`kernet_id` int(11) NOT NULL DEFAULT '0',
`nama` varchar(100) DEFAULT NULL,
`telp` varchar(12) DEFAULT NULL,
`tgl_jalan` date DEFAULT NULL,
`tgl_kembali` date DEFAULT NULL,
`durasi` int(2) DEFAULT NULL,
`paket` varchar(100) DEFAULT NULL,
`total` int(11) DEFAULT NULL,
`status` int(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `transaksi`
--
INSERT INTO `transaksi` (`id`, `kendaraan_id`, `supir_id`, `kernet_id`, `nama`, `telp`, `tgl_jalan`, `tgl_kembali`, `durasi`, `paket`, `total`, `status`, `created_at`, `updated_at`, `created_by`, `updated_by`, `deleted_at`) VALUES
(1, 'DK1000LK', 1, 1, 'I Made H<NAME>', '082247464196', '2017-08-10', '2017-08-10', 1, '2', 4000000, 1, '2017-08-19 08:59:09', '2017-08-19 08:59:09', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `transaksi_detail`
--
CREATE TABLE `transaksi_detail` (
`id` int(11) NOT NULL,
`transaksi_id` int(11) DEFAULT NULL,
`keterangan` varchar(100) DEFAULT NULL,
`total` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`created_by` int(10) NOT NULL,
`updated_by` int(10) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `transaksi_detail`
--
INSERT INTO `transaksi_detail` (`id`, `transaksi_id`, `keterangan`, `total`, `created_at`, `updated_at`, `created_by`, `updated_by`, `deleted_at`) VALUES
(1, 1, 'Beli bensin', 100000, '2017-08-21 05:02:21', '2017-08-21 05:02:21', 1, NULL, NULL),
(2, 1, 'parkir', 50000, '2017-08-21 05:22:26', '2017-08-21 05:22:26', 1, NULL, NULL),
(3, 1, 'nyebrang', 400000, '2017-08-21 05:23:01', '2017-08-21 05:23:01', 1, NULL, NULL);
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`telp` varchar(12) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`type` int(1) DEFAULT NULL,
`status` int(1) 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 untuk tabel `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `telp`, `password`, `remember_token`, `type`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin', '<EMAIL>', '085737343456', <PASSWORD>', '<PASSWORD>', 1, 1, '2017-03-02 21:49:08', '2017-08-08 04:30:11'),
(2, 'Test Operator', '<EMAIL>', '08573736483', '$2y$10$GVVx1dXRRaMCeqKxLOAxoesiIPHRtyVmed7lR9/ejUXa6iaBMDYXi', '3z61oCPJfrjy2nL58BdwN1DzU3bYkkqFPFcGsgKV293oIYP5RjIt5QiRwWEg', 2, 1, '2017-03-13 05:44:16', '2017-08-08 04:31:46'),
(3, 'Admin Test', '<EMAIL>', '085737343456', '$2y$10$2dAYQNTVNhDruggKIqRaTuZtAQETnhKAr2LLtNeBX30c/.ntRGzOG', NULL, 1, 1, '2017-03-14 19:21:49', '2017-03-14 19:21:49'),
(4, 'Operator Awesome', '<EMAIL>', '08474283728', '$2y$10$YgZeq5P7BJnIJvcLIJbLSORIW9i0XOWJ.RbniMjZ0d5AKFmH7Y.tW', 'RIgzVSlCTBElZPgrwG48uUmNF7XgYhwPL8kqvTl1UR8lRgH9NXl5UjumNPPs', 2, 1, '2017-03-14 19:25:49', '2017-03-14 19:29:47');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `fee_kernet`
--
ALTER TABLE `fee_kernet`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `fee_sopir`
--
ALTER TABLE `fee_sopir`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kendaraan`
--
ALTER TABLE `kendaraan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `kernet`
--
ALTER TABLE `kernet`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`),
ADD KEY `password_resets_token_index` (`token`);
--
-- 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`),
ADD KEY `role_user_role_id_foreign` (`role_id`);
--
-- Indexes for table `service`
--
ALTER TABLE `service`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `supir`
--
ALTER TABLE `supir`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transaksi`
--
ALTER TABLE `transaksi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transaksi_detail`
--
ALTER TABLE `transaksi_detail`
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 `fee_kernet`
--
ALTER TABLE `fee_kernet`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `fee_sopir`
--
ALTER TABLE `fee_sopir`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `kernet`
--
ALTER TABLE `kernet`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `service`
--
ALTER TABLE `service`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `supir`
--
ALTER TABLE `supir`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `transaksi_detail`
--
ALTER TABLE `transaksi_detail`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `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,
ADD CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE 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 */;
|
<gh_stars>0
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Sp_Update_Bill_Count]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[Sp_Update_Bill_Count]
GO
--EXEC Sp_Update_Bill_Count 1, 5
CREATE PROCEDURE [dbo].[Sp_Update_Bill_Count]
@distId VARCHAR(2),
@Counter INT
AS
BEGIN
SET NOCOUNT ON;
IF EXISTS(SELECT 1 FROM Bill_Counter WHERE Dist_Id = @distId)
BEGIN
UPDATE Bill_Counter
SET TotalBillCounter = @Counter
WHERE Dist_Id = @distId
END
ELSE
BEGIN
INSERT INTO Bill_Counter
(
Dist_Id,
TotalBillCounter,
DayBillCounterOrCount,
BillDate
)
VALUES(@distId, @Counter, 1, GETDATE())
END
END
|
<reponame>ghuachins/php-challenge<filename>database/seeds/currency.sql
INSERT INTO currency VALUES
('AED','Dírham','fils',2,'.',',','2015-09-24 23:04:21','2015-09-24 23:04:21'),
('ALL','Lek','L',2,'.',',','2016-04-19 16:42:36','2016-04-19 16:42:36'),
('ARS','Pesos Argentinos','$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('AUD','Australian Dollar','$',2,'.',',','2016-03-08 17:07:12','2016-03-08 17:07:12'),
('BGN','Lev','Лв',2,'.',',','2016-04-19 22:07:28','2016-04-19 22:07:28'),
('BOB','Bolivianos','Bs.',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('BRL','Reais','R$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('BYR','<NAME>','Br',2,'.',',','2016-04-06 20:57:12','2016-04-06 20:57:12'),
('CAD','Canadian Dollar','¢',2,'.',',','2016-04-06 16:46:04','2016-04-06 16:46:04'),
('CHF','Franco suizo','Fr.',2,'.',',','2016-04-19 17:18:11','2016-04-19 17:18:11'),
('CHN','China Yuan Renminbi','¥',2,'.',',','2016-04-06 22:36:11','2016-04-06 22:36:11'),
('CLP','Pesos Chilenos','CL$',0,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('COP','Pesos Colombianos','$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('CRC','Colones','₡',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('CUB','Pesos Cubanos','¢',2,'.',',','2016-04-06 16:47:45','2016-04-06 16:47:45'),
('CZK','Corona checa','Kč',2,'.',',','2016-04-19 21:51:10','2016-04-19 21:51:10'),
('DEU','Euro','€',2,'.',',','2016-04-06 19:47:47','2016-04-06 19:47:47'),
('DKK','Corona Danesa','kr',2,'.',',','2016-04-20 20:16:14','2016-04-20 20:16:14'),
('DOP','Pesos Dominicanos','RD$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('EGP','Libra egipcia','ج.م',2,'.',',','2016-04-19 16:23:35','2016-04-19 16:23:35'),
('ETB','Birr etíope','Br',2,'.',',','2016-04-13 22:29:10','2016-04-13 22:29:10'),
('EUR','Euro','€',2,'.',',','2015-09-08 14:42:08','2015-09-08 14:42:08'),
('GBP','Pound','£',2,'.',',','2016-04-20 20:12:17','2016-04-20 20:12:17'),
('GEL','Lari','ლ',2,'.',',','2016-04-06 21:50:54','2016-04-06 21:50:54'),
('GTQ','Quetzales','Q',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('HKD','Dólar de Hong Kong','$',2,'.',',','2016-04-14 20:31:22','2016-04-14 20:31:22'),
('HNL','Lempira','L',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('HUF','<NAME>','Ft',2,'.',',','2016-04-06 22:25:03','2016-04-06 22:25:03'),
('IDR','Indonesian Rupiah','Rp',2,'.',',','2015-08-04 14:29:46','2015-08-04 14:29:46'),
('ILS','Nuevo shéquel israelí','₪',2,'.',',','2016-04-06 21:43:43','2016-04-14 22:37:04'),
('INR','India Rupee','Rs',2,'.',',','2016-04-20 15:40:22','2016-04-20 15:40:22'),
('IQD','<NAME>','ع.د',2,'.',',','2016-04-18 22:15:16','2016-04-18 22:15:16'),
('IRR','Iran Rial','﷼',2,'.',',','2016-04-06 16:50:02','2016-04-06 16:50:02'),
('JOD','<NAME>','JD',2,'.',',','2016-04-14 21:24:40','2016-04-14 21:24:40'),
('JPY','Yen','¥',2,'.',',','2016-04-19 20:04:02','2016-04-19 20:04:02'),
('KRW','Won','₩',2,'.',',','2016-04-06 16:26:05','2016-04-06 16:26:05'),
('LBP','Libra libanesa','ل.ل',2,'.',',','2016-04-14 21:14:41','2016-04-14 21:14:41'),
('MAD','<NAME>','درهم',2,'.',',','2016-04-15 22:52:48','2016-04-15 22:52:48'),
('MRO','Uquiya','UM',2,'.',',','2016-04-06 21:18:14','2016-04-06 21:18:14'),
('MXN','Pesos Mexicanos','MEX$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('MYR','Malaysian Ringgit','RM',2,'.',',','2015-08-04 14:30:58','2015-08-04 14:30:58'),
('NGN','Naira','₦',2,'.',',','2015-09-08 14:43:52','2015-09-08 14:43:52'),
('NIO','Córdoba','C$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('NOK','Corona noruega','kr',2,'.',',','2016-04-19 20:26:05','2016-04-19 20:26:05'),
('NZD','<NAME>','NZ$',2,'.',',','2016-04-06 21:06:17','2016-04-06 21:06:17'),
('PAB','Balboa','B/.',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('PEN','<NAME>','S/.',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('PHP','<NAME>','₱',2,'.',',','2015-08-04 14:28:25','2015-08-04 14:28:25'),
('PLN','Złoty','zł',2,'.',',','2016-04-19 17:45:50','2016-04-19 17:45:50'),
('PYG','Guaraní','₲',0,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('QAR','<NAME>','QR',2,'.',',','2016-04-13 21:59:38','2016-04-13 21:59:38'),
('RON','<NAME>','LEU',2,'.',',','2016-04-19 21:24:40','2016-04-19 21:24:40'),
('RUB','<NAME>','руб',2,'.',',','2016-04-18 22:52:17','2016-04-18 22:52:17'),
('SEK','Corona Sueca','kr',2,'.',',','2016-04-06 20:33:05','2016-04-06 20:33:05'),
('SGD','Singapore Dollar','$',2,'.',',','2016-03-08 17:07:59','2016-03-08 17:07:59'),
('SVC','Colone Salvadoreño','¢',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('THB','Baht','฿',2,'.',',','2015-08-05 15:07:33','2015-08-05 15:07:33'),
('TRY','Lira Turca','TL',2,'.',',','2016-04-18 20:53:22','2016-04-18 20:53:22'),
('TWD','Nuevo dólar taiwanés','$',2,'.',',','2016-04-18 20:24:21','2016-04-18 20:24:21'),
('UAH','Grivna','₴',2,'.',',','2016-04-19 16:52:46','2016-04-19 16:52:46'),
('USD','Dólares Americanos','US$',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('UYU','Pesos Uruguayos','$U',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('VEF','<NAME>','Bs.F',2,'.',',','2015-06-11 23:21:32','2015-06-11 23:21:32'),
('VND','Đồng vietnamita','₫',2,'.',',','2016-04-06 20:11:04','2016-04-06 20:11:04'),
('XAF','Franco CFA de África Central','FCFA',2,'.',',','2016-04-18 21:42:09','2016-04-18 21:42:09'),
('ZAR','Rand','R',2,'.',',','2015-09-08 14:45:34','2015-09-08 14:45:34');
|
DROP TABLE IF EXISTS users;
CREATE TABLE users (
id INTEGER PRIMARY KEY,
username TEXT,
password TEXT,
monthlyBudget INTEGER,
decimalPlaces INTEGER,
displayCurrency TEXT,
exchangeRate NUMERIC
);
CREATE UNIQUE INDEX udx_username ON users (username);
INSERT INTO users (username, password, monthlyBudget, decimalPlaces, displayCurrency, exchangeRate) VALUES ('will', '<PASSWORD>', 1000, 2, 'S$', 1);
DROP TABLE IF EXISTS entries;
CREATE TABLE entries (
id INTEGER PRIMARY KEY,
users_id INTEGER,
date TEXT,
monthcode INTEGER,
daycode INTEGER,
type INTEGER,
amount NUMERIC
);
DROP TABLE IF EXISTS types;
CREATE TABLE types (
id INTEGER PRIMARY KEY,
users_id INTEGER,
name TEXT
);
INSERT INTO types ( users_id, name ) VALUES
(1, 'Food'), (1, 'Taxi'), (1, 'Others'), (1, 'Travel'), (1, 'Bills');
|
select student_fname, student_lname
from students
where department_code = ’MCA’ and dob> ’2002-06-15’ |
SELECT
ROUND(MAX(LAT_N), 4)
FROM
STATION
WHERE
LAT_N < 137.2345; |
<reponame>valdero/community-app-event-service
DROP DATABASE "community_app_events";
DROP DATABASE "community_app_events_test";
|