sql stringlengths 6 1.05M |
|---|
DROP DATABASE puah_test;
DROP DATABASE puah; |
<reponame>AttilaJenei/seek-r<gh_stars>0
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
CREATE TABLE `directory` (
`directoryID` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`path` varchar(512) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Path',
`status` enum('active','removed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active' COMMENT 'Status',
`firstDate` datetime NOT NULL COMMENT 'First date',
`modifyDate` datetime NOT NULL COMMENT 'Modify date',
`owner` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Owner',
`group` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Group',
`permissions` int(10) NOT NULL COMMENT 'Permissions',
`linkTarget` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Link target',
`firstScanID` int(11) unsigned NOT NULL COMMENT 'First scan',
`modifyScanID` int(11) unsigned NOT NULL COMMENT 'Modify scan',
`lastScanID` int(11) unsigned DEFAULT NULL COMMENT 'Last scan',
PRIMARY KEY (`directoryID`),
KEY `FK_directory__modifyScanID` (`modifyScanID`),
KEY `FK_directory__lastScanID` (`lastScanID`),
KEY `IX_directory__path` (`path`(200)),
KEY `FK_directory__firstScanID` (`firstScanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Directories';
CREATE TABLE `directoryHistory` (
`directoryID` int(11) unsigned NOT NULL COMMENT 'Directory',
`scanID` int(11) unsigned NOT NULL COMMENT 'Scan',
`operation` enum('new','modified','removed') COLLATE utf8_unicode_ci NOT NULL COMMENT 'Status',
`dateOnly` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no' COMMENT 'Date only',
`modifyDate` datetime DEFAULT NULL COMMENT 'Modify date',
`owner` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Owner',
`group` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Group',
`permissions` int(10) DEFAULT NULL COMMENT 'Permissions',
`linkTarget` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Link target',
PRIMARY KEY (`directoryID`,`scanID`),
KEY `FK_directoryHistory__scanID` (`scanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Directory histories';
CREATE TABLE `file` (
`directoryID` int(11) unsigned NOT NULL COMMENT 'Directory',
`fileID` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Name',
`status` enum('active','removed') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active' COMMENT 'Status',
`firstDate` datetime NOT NULL COMMENT 'First date',
`modifyDate` datetime NOT NULL COMMENT 'Modify date',
`owner` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Owner',
`group` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Group',
`permissions` int(10) NOT NULL COMMENT 'Permissions',
`linkTarget` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Link target',
`size` int(10) NOT NULL COMMENT 'Size',
`contentHash` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Content hash',
`storedAs` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Stored as',
`firstScanID` int(11) unsigned NOT NULL COMMENT 'First scan',
`modifyScanID` int(11) unsigned NOT NULL COMMENT 'Modify scan',
`lastScanID` int(11) unsigned NOT NULL COMMENT 'Last scan',
PRIMARY KEY (`fileID`),
UNIQUE KEY `IX_file__directoryID_name` (`directoryID`,`name`),
KEY `FK_file__directoryID` (`directoryID`),
KEY `FK_file__modifyScanID` (`modifyScanID`),
KEY `FK_file__lastScanID` (`lastScanID`),
KEY `FK_file__firstScanID` (`firstScanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Files';
CREATE TABLE `fileHistory` (
`fileID` int(11) unsigned NOT NULL COMMENT 'File',
`scanID` int(11) unsigned NOT NULL COMMENT 'Scan',
`operation` enum('new','modified','removed') COLLATE utf8_unicode_ci NOT NULL COMMENT 'Status',
`dateOnly` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no' COMMENT 'Date only',
`modifyDate` datetime DEFAULT NULL COMMENT 'Modify date',
`owner` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Owner',
`group` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Group',
`permissions` int(10) DEFAULT NULL COMMENT 'Permissions',
`linkTarget` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Link target',
`size` int(10) DEFAULT NULL COMMENT 'Size',
`contentHash` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Content hash',
`storedAs` varchar(512) COLLATE utf8_unicode_ci DEFAULT NULL COMMENT 'Stored as',
PRIMARY KEY (`fileID`,`scanID`),
KEY `FK_fileHistory__scanID` (`scanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='File histories';
CREATE TABLE `log` (
`scanID` int(11) unsigned NOT NULL COMMENT 'Scan',
`logID` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`date` datetime NOT NULL COMMENT 'Date',
`type` enum('info','error') COLLATE utf8_unicode_ci NOT NULL COMMENT 'Type',
`text` varchar(512) COLLATE utf8_unicode_ci NOT NULL COMMENT 'Text',
PRIMARY KEY (`logID`),
KEY `FK_log__scanID` (`scanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Log';
CREATE TABLE `scan` (
`scanID` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`status` enum('progress','done') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'progress' COMMENT 'Status',
`startDate` datetime NOT NULL COMMENT 'Start date',
`lastOperationDate` datetime NOT NULL COMMENT 'Last operation date',
`endDate` datetime DEFAULT NULL COMMENT 'End date',
`directoryChanges` int(10) DEFAULT NULL COMMENT 'Directory changes',
`directoryDateOnlyChanges` int(10) DEFAULT NULL COMMENT 'Directory date only changes',
`fileChanges` int(10) DEFAULT NULL COMMENT 'File changes',
`fileDateOnlyChanges` int(10) DEFAULT NULL COMMENT 'File date only changes',
`errors` int(10) DEFAULT NULL COMMENT 'Errors',
`mailSent` enum('yes','no') COLLATE utf8_unicode_ci NOT NULL DEFAULT 'no' COMMENT 'Mail sent',
PRIMARY KEY (`scanID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='Scans';
ALTER TABLE `directory`
ADD CONSTRAINT `FK_directory__firstScanID` FOREIGN KEY (`firstScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE,
ADD CONSTRAINT `FK_directory__lastScanID` FOREIGN KEY (`lastScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE,
ADD CONSTRAINT `FK_directory__modifyScanID` FOREIGN KEY (`modifyScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE;
ALTER TABLE `directoryHistory`
ADD CONSTRAINT `FK_directoryHistory__directoryID` FOREIGN KEY (`directoryID`) REFERENCES `directory` (`directoryID`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `FK_directoryHistory__scanID` FOREIGN KEY (`scanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE;
ALTER TABLE `file`
ADD CONSTRAINT `FK_file__directoryID` FOREIGN KEY (`directoryID`) REFERENCES `directory` (`directoryID`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `FK_file__firstScanID` FOREIGN KEY (`firstScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE,
ADD CONSTRAINT `FK_file__lastScanID` FOREIGN KEY (`lastScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE,
ADD CONSTRAINT `FK_file__modifyScanID` FOREIGN KEY (`modifyScanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE;
ALTER TABLE `fileHistory`
ADD CONSTRAINT `FK_fileHistory__fileID` FOREIGN KEY (`fileID`) REFERENCES `file` (`fileID`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `FK_fileHistory__scanID` FOREIGN KEY (`scanID`) REFERENCES `scan` (`scanID`) ON UPDATE CASCADE;
ALTER TABLE `log`
ADD CONSTRAINT `FK_log__scanID` FOREIGN KEY (`scanID`) REFERENCES `scan` (`scanID`) ON DELETE CASCADE ON UPDATE CASCADE;
|
<filename>XE_Sessions/Error_reported.sql
CREATE EVENT SESSION [Error_reported] ON SERVER
ADD EVENT sqlserver.error_reported
(
ACTION
(
sqlserver.client_app_name
, sqlserver.client_hostname
, sqlserver.database_id
, sqlserver.server_instance_name
, sqlserver.server_principal_name
, sqlserver.sql_text
, sqlserver.tsql_stack
)
WHERE
package0.greater_than_int64(sysusermsgs.severity, (10))
)
ADD TARGET package0.event_file
(SET filename = N'Error_reported', max_file_size = (20))
GO |
<filename>test.sql
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th7 30, 2020 lúc 02:05 PM
-- Phiên bản máy phục vụ: 10.4.6-MariaDB
-- Phiên bản PHP: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Cơ sở dữ liệu: `test`
--
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`cat_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `categories`
--
INSERT INTO `categories` (`id`, `cat_name`) VALUES
(1, 'Category 1'),
(2, 'Category 2'),
(3, 'Category 3'),
(4, 'Category 4');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `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;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`prd_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`category` int(11) NOT NULL,
`prd_price` int(11) NOT NULL,
`prd_img` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`prd_des` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `products`
--
INSERT INTO `products` (`id`, `prd_title`, `category`, `prd_price`, `prd_img`, `prd_des`) VALUES
(6, 'Loa abc', 3, 300000, 'img/unnamed.jpg', 'phong vu'),
(7, 'Article add', 2, 230000, 'img/unnamed.jpg', 'phong vu');
--
-- Chỉ mục cho các bảng đã đổ
--
--
-- Chỉ mục cho bảng `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `category` (`category`);
--
-- AUTO_INCREMENT cho các bảng đã đổ
--
--
-- AUTO_INCREMENT cho bảng `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT cho bảng `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT cho bảng `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Các ràng buộc cho các bảng đã đổ
--
--
-- Các ràng buộc cho bảng `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_ibfk_1` FOREIGN KEY (`category`) REFERENCES `categories` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>company.sql
CREATE TABLE IF NOT EXISTS COMPANY(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
age INT NOT NULL,
address CHAR(50),
salary REAL
); |
select/* S.SID
,S.username
,to_char(
to_date(substr(first_load_time,3,8),'YY-MM-DD')
,'MON-DD') D1
,substr(first_load_time,12,10) "Time"
,A.users_opening
,A.users_executing
,A.buffer_gets
,A.executions
,buffer_gets/executions buff_exec*/
sql_text
from v$sqlarea A
,v$session S
,v$process P
where address=sql_address
and P.addr = S.paddr
and S.username =upper('&usuario')
order by buffer_gets
/
|
-- file:create_misc.sql ln:50 expect:true
INSERT INTO shighway
SELECT *
FROM road
WHERE name ~ 'State Hwy.*'
|
-- file:create_table.sql ln:695 expect:true
drop function func_part_create()
|
-- file:collate.icu.utf8.sql ln:188 expect:true
SELECT a, coalesce(b, 'foo') FROM collate_test1 ORDER BY 2
|
<filename>docs/banco-dados/script-criacao.sql
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema imobiliaria
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema imobiliaria
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `imobiliaria` DEFAULT CHARACTER SET utf8 ;
USE `imobiliaria` ;
-- -----------------------------------------------------
-- Table `imobiliaria`.`Proprietario`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imobiliaria`.`Proprietario` (
`cpf` VARCHAR(11) NOT NULL,
`nome` VARCHAR(100) NOT NULL,
`email` VARCHAR(45) NOT NULL,
`nascimento` DATE NOT NULL,
`senha` VARCHAR(50) NOT NULL,
PRIMARY KEY (`cpf`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `imobiliaria`.`Imovel`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imobiliaria`.`Imovel` (
`id` INT NOT NULL,
`logradouro` VARCHAR(75) NOT NULL,
`numero` INT NULL,
`bairro` VARCHAR(45) NOT NULL,
`aluguel` DOUBLE NOT NULL,
`cpfProprietario` VARCHAR(11) NOT NULL,
PRIMARY KEY (`id`),
INDEX `fk_Imovel_Proprietario1_idx` (`cpfProprietario` ASC),
CONSTRAINT `fk_Imovel_Proprietario1`
FOREIGN KEY (`cpfProprietario`)
REFERENCES `imobiliaria`.`Proprietario` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `imobiliaria`.`Cliente`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imobiliaria`.`Cliente` (
`cpf` VARCHAR(11) NOT NULL,
`nome` VARCHAR(100) NOT NULL,
`email` VARCHAR(45) NOT NULL,
`renda` DOUBLE NOT NULL,
`nascimento` DATE NOT NULL,
`senha` VARCHAR(50) NOT NULL,
PRIMARY KEY (`cpf`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `imobiliaria`.`Funcionario`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imobiliaria`.`Funcionario` (
`cpf` VARCHAR(11) NOT NULL,
`nome` VARCHAR(100) NOT NULL,
`nascimento` DATE NOT NULL,
`email` VARCHAR(45) NOT NULL,
`senha` VARCHAR(50) NOT NULL,
PRIMARY KEY (`cpf`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `imobiliaria`.`Contrato`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `imobiliaria`.`Contrato` (
`idContrato` INT NOT NULL,
`aluguelContrato` DOUBLE NULL,
`idImovel` INT NOT NULL,
`cpfProprietario` VARCHAR(11) NOT NULL,
`cpfFuncionario` VARCHAR(11) NOT NULL,
`cpfCliente` VARCHAR(11) NOT NULL,
PRIMARY KEY (`idContrato`),
INDEX `fk_Contrato_Imovel1_idx` (`idImovel` ASC),
INDEX `fk_Contrato_Proprietario1_idx` (`cpfProprietario` ASC),
INDEX `fk_Contrato_Funcionario1_idx` (`cpfFuncionario` ASC),
INDEX `fk_Contrato_Cliente1_idx` (`cpfCliente` ASC),
CONSTRAINT `fk_Contrato_Imovel1`
FOREIGN KEY (`idImovel`)
REFERENCES `imobiliaria`.`Imovel` (`id`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Contrato_Proprietario1`
FOREIGN KEY (`cpfProprietario`)
REFERENCES `imobiliaria`.`Proprietario` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Contrato_Funcionario1`
FOREIGN KEY (`cpfFuncionario`)
REFERENCES `imobiliaria`.`Funcionario` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Contrato_Cliente1`
FOREIGN KEY (`cpfCliente`)
REFERENCES `imobiliaria`.`Cliente` (`cpf`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<filename>Data Saturday 0003 - Haiti 2021/Demo/02 - use xEvents sessions.sql
--==============================================================================
--
-- Summary: Blocked Process report / deadlock
-- Date: 03/2021
--
-- ----------------------------------------------------------------------------
-- Written by <NAME>, SQL Server MVP / MCM
-- Blog : http://conseilit.wordpress.com
-- Twitter : @ConseilIT
--
-- You may alter this code for your own *non-commercial* purposes. You may
-- republish altered code as long as you give due credit.
--
-- THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF
-- ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
-- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
-- PARTICULAR PURPOSE.
--==============================================================================
-- Session 1
Use AdventureWorks
GO
BEGIN TRAN
update Production.Product
set name = 'Session 1 - Product 722'
where ProductID = 722
-- Session 2
Use AdventureWorks
GO
BEGIN TRAN
update Production.Product
set name = 'Session 2 - Product 512'
where ProductID = 512
-- Session 1
update Production.Product
set name = 'Session 1 - Product 512'
where ProductID = 512
-- Blocked Process report should occur
-- Find the table
SELECT c.name as schema_name,
o.name as object_name,
i.name as index_name,
p.object_id,p.index_id,p.partition_id,p.hobt_id
FROM sys.partitions AS p
INNER JOIN sys.objects as o on p.object_id=o.object_id
INNER JOIN sys.indexes as i on p.index_id=i.index_id and p.object_id=i.object_id
INNER JOIN sys.schemas AS c on o.schema_id=c.schema_id
WHERE p.hobt_id = 72057594045136896;
-- Find the records
SELECT %%lockres%%,sys.fn_physLocFormatter (%%physloc%%) as RID,*
FROM Production.Product
WHERE %%lockres%% in ('(4637a194cfd9)','(b147776edda1)');
-- Show the datapage and find the record
DBCC TRACEON(3604)
DBCC PAGE('Adventureworks',1,788,3)
-- Now let's create a deadlock
-- Session 2
update Production.Product
set name = 'Session 2 - Product 722'
where ProductID = 722
|
-- Not sure if all this trickery is needed, since the init script is only
-- run when an empty database directory is found. Oh, well..
CREATE EXTENSION IF NOT EXISTS dblink;
DO $$
BEGIN
PERFORM dblink_exec('', 'CREATE DATABASE sslr');
EXCEPTION WHEN duplicate_database THEN RAISE NOTICE '%, skipping', SQLERRM USING ERRCODE = SQLSTATE;
END
$$;
|
<filename>sql/victories/new_bbg_sv_1.sql
------------------------------------------------------------------------------
-- FILE: new_bbg_sv_1.sql
-- AUTHOR: <NAME>. / <NAME>
-- PURPOSE: Database modifications by new BBG
------------------------------------------------------------------------------
--==============================================================================================
--****** SV: FAST SETTINGS ******
--==============================================================================================
UPDATE GlobalParameters SET Value='1' WHERE Name='SCIENCE_VICTORY_POINTS_REQUIRED';
UPDATE Projects SET Cost='1500' WHERE ProjectType='PROJECT_LAUNCH_EXOPLANET_EXPEDITION';
UPDATE Projects SET Cost='1500' WHERE ProjectType='PROJECT_LAUNCH_MARS_BASE';
|
SELECT * FROM `user` WHERE refresh_token = ?;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Mar 02, 2022 at 04:08 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: `mges`
--
-- --------------------------------------------------------
--
-- Table structure for table `activated_candidates`
--
CREATE TABLE `activated_candidates` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED NOT NULL,
`present_city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`welfare_center_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_pdf` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_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 `adr_services`
--
CREATE TABLE `adr_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `adr_services`
--
INSERT INTO `adr_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `candidate_name`, `company_name`, `service_type`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 17, 8, 6, 'Demo candidate 11', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(2, 19, 8, 6, 'Demo candidate 12', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(3, 11, 8, 6, 'Demo candidate 13', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '12', NULL, '2022-03-02 15:08:02', NULL),
(4, 13, 8, 6, 'Demo candidate 14', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '11', NULL, '2022-03-02 15:08:02', NULL),
(5, 11, 8, 6, 'Demo candidate 15', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '11', NULL, '2022-03-02 15:08:02', NULL),
(6, 18, 8, 6, 'Demo candidate 16', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(7, 11, 8, 6, 'Demo candidate 17', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(8, 17, 8, 6, 'Demo candidate 18', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(9, 17, 8, 6, 'Demo candidate 19', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `amnesty_services`
--
CREATE TABLE `amnesty_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amnesty_application` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_charge` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amnesty_pdf` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `amnesty_services`
--
INSERT INTO `amnesty_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `service_type`, `cpr`, `amnesty_application`, `comments`, `service_status`, `delivery_status`, `delivery_charge`, `fees`, `delivery_to`, `amnesty_pdf`, `delivery_type`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 18, 8, 6, 'Demo service 11', '459127', NULL, 'Demo Comments', 'Paid', 'Open', '14', 13.00, '<NAME>', NULL, 'Door delivery', '17', NULL, '2022-03-02 15:08:02', NULL),
(2, 16, 8, 6, 'Demo service 12', '219232', NULL, 'Demo Comments', 'Paid', 'Open', '16', 12.00, '<NAME>', NULL, 'Door delivery', '16', NULL, '2022-03-02 15:08:02', NULL),
(3, 17, 8, 6, 'Demo service 13', '147204', NULL, 'Demo Comments', 'Paid', 'Open', '11', 18.00, '<NAME>', NULL, 'Door delivery', '14', NULL, '2022-03-02 15:08:02', NULL),
(4, 11, 8, 6, 'Demo service 14', '111856', NULL, 'Demo Comments', 'Paid', 'Open', '17', 16.00, '<NAME>', NULL, 'Door delivery', '19', NULL, '2022-03-02 15:08:02', NULL),
(5, 13, 8, 6, 'Demo service 15', '152506', NULL, 'Demo Comments', 'Paid', 'Open', '18', 16.00, '<NAME>', NULL, 'Door delivery', '15', NULL, '2022-03-02 15:08:02', NULL),
(6, 18, 8, 6, 'Demo service 16', '118082', NULL, 'Demo Comments', 'Paid', 'Open', '13', 17.00, '<NAME>', NULL, 'Door delivery', '12', NULL, '2022-03-02 15:08:02', NULL),
(7, 15, 8, 6, 'Demo service 17', '163397', NULL, 'Demo Comments', 'Paid', 'Open', '11', 11.00, '<NAME>', NULL, 'Door delivery', '15', NULL, '2022-03-02 15:08:02', NULL),
(8, 13, 8, 6, 'Demo service 18', '498928', NULL, 'Demo Comments', 'Paid', 'Open', '19', 15.00, '<NAME>', NULL, 'Door delivery', '19', NULL, '2022-03-02 15:08:02', NULL),
(9, 17, 8, 6, 'Demo service 19', '165546', NULL, 'Demo Comments', 'Paid', 'Open', '15', 16.00, '<NAME>', NULL, 'Door delivery', '13', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `applied_jobs`
--
CREATE TABLE `applied_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`job_post_id` bigint(20) UNSIGNED NOT NULL,
`company_id` bigint(20) UNSIGNED NOT NULL,
`applier_id` bigint(20) UNSIGNED NOT NULL,
`selected_medical_id` bigint(20) UNSIGNED DEFAULT NULL,
`selected_training_id` bigint(20) UNSIGNED DEFAULT NULL,
`job_vacancy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`applied_vacancy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remarks` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`applier_agency_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`datetime` datetime DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_vacancy` int(11) DEFAULT NULL,
`approved_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_id` int(11) DEFAULT NULL,
`approved_remarks` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `applied_jobs`
--
INSERT INTO `applied_jobs` (`id`, `job_post_id`, `company_id`, `applier_id`, `selected_medical_id`, `selected_training_id`, `job_vacancy`, `applied_vacancy`, `remarks`, `applier_agency_name`, `datetime`, `status`, `approved_by`, `approved_vacancy`, `approved_date`, `approved_company_name`, `approved_id`, `approved_remarks`, `created_at`, `updated_at`) VALUES
(1, 11, 6, 3, 1, 3, '33', '31', NULL, 'RlgW9fwGxh', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(2, 12, 6, 3, 3, 10, '34', '32', NULL, 'KTfMeNUjm5', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(3, 13, 6, 3, 9, 9, '24', '22', NULL, 'zXOX1zvoHC', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(4, 14, 6, 3, 3, 7, '23', '21', NULL, 'nqnrnRsXld', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(5, 15, 6, 3, 9, 7, '37', '35', NULL, 'vyrEC4hfOV', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(6, 16, 6, 3, 6, 1, '44', '42', NULL, '7HA1bwTg0s', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(7, 17, 6, 3, 5, 10, '33', '31', NULL, 'wazc0kDYda', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(8, 18, 6, 3, 9, 8, '45', '43', NULL, 'dV4Urakjts', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(9, 19, 6, 3, 3, 7, '33', '31', NULL, 'iUScKFk8kk', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(10, 20, 6, 3, 6, 4, '43', '41', NULL, 'UKbSO7zMxk', '2022-03-02 21:08:02', 'Applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL),
(11, 21, 6, 3, 2, 7, '31', '29', 'JckBABEb3u', 'aRtr2CwqgE', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 27, '2022-03-02 21:08:02', '1szkZp01fN', 7, 'k5dSi0b6tH', NULL, NULL),
(12, 22, 6, 3, 3, 7, '45', '43', 'd45t9uBGXi', 'hYALuYEGRu', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 41, '2022-03-02 21:08:02', 'RBShjirUdq', 7, 'b6xTnjsoBr', NULL, NULL),
(13, 23, 6, 3, 6, 7, '49', '47', 'xqIjqrhpmC', 'OJ5wXqGsVj', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 45, '2022-03-02 21:08:02', 'ujO4WZ7uWW', 7, 'L6csiJaVL7', NULL, NULL),
(14, 24, 6, 3, 1, 3, '41', '39', 'ibkETVRR4N', 'P1t5VwcWuZ', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 37, '2022-03-02 21:08:02', 'TLZ9worxmY', 7, 'ctohbXocbj', NULL, NULL),
(15, 25, 6, 3, 5, 9, '36', '34', 'OvUDbQOpoq', 'irhySkUhZf', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 32, '2022-03-02 21:08:02', 'TqJ4eTXH67', 7, '734Lx44mo5', NULL, NULL),
(16, 26, 6, 3, 4, 7, '32', '30', '3EZXbxkXYn', 'irlQJEifhK', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 28, '2022-03-02 21:08:02', 'waejUDvBB8', 7, 'K9XYR6zgXE', NULL, NULL),
(17, 27, 6, 3, 10, 5, '40', '38', 'MJbUp3e0UR', 'ZsZ9mZSn1I', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 36, '2022-03-02 21:08:02', '2ezcCPrigG', 7, 'EzdxFfJsx3', NULL, NULL),
(18, 28, 6, 3, 5, 9, '45', '43', 'r4AUg6l9mn', 'rIgj0wdeLm', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 41, '2022-03-02 21:08:02', 'OokYHJvNpd', 7, 'TXKCO5BYvv', NULL, NULL),
(19, 29, 6, 3, 4, 9, '28', '26', '3NcIksZNs2', 'KTSgCbl28a', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 24, '2022-03-02 21:08:02', 'CsKTapJus1', 7, 'pKAePWPpG6', NULL, NULL),
(20, 30, 6, 3, 5, 8, '34', '32', 'pIamRGFK4l', 'a6KqjDN56Z', '2022-03-02 21:08:02', 'Approved', 'Bangladesh High Commission ', 30, '2022-03-02 21:08:02', '4j5diJX3E7', 7, 'eO2m45NkYU', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `attestation_certificates`
--
CREATE TABLE `attestation_certificates` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED NOT NULL,
`company_id` bigint(20) UNSIGNED NOT NULL,
`wsc_id` bigint(20) UNSIGNED NOT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` int(11) DEFAULT NULL,
`delivery_charge` double(8,2) DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`legal_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` int(11) DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `attestation_certificates`
--
INSERT INTO `attestation_certificates` (`id`, `candidate_id`, `company_id`, `wsc_id`, `service_type`, `comments`, `service_status`, `fees`, `delivery_charge`, `delivery_type`, `delivery_to`, `document`, `legal_status`, `created_id`, `delivery_status`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 16, 8, 6, 'Demo service 11', 'Demo Comments', 'Approved', 167, 1272.00, 'Door delivery', '<NAME>', NULL, 'Approved', 12, '12', NULL, '2022-03-02 15:08:02', NULL),
(2, 14, 8, 6, 'Demo service 12', 'Demo Comments', 'Approved', 134, 1279.00, 'Door delivery', '<NAME>', NULL, 'Approved', 16, '18', NULL, '2022-03-02 15:08:02', NULL),
(3, 13, 8, 6, 'Demo service 13', 'Demo Comments', 'Approved', 195, 1130.00, 'Door delivery', '<NAME>', NULL, 'Approved', 18, '12', NULL, '2022-03-02 15:08:02', NULL),
(4, 12, 8, 6, 'Demo service 14', 'Demo Comments', 'Approved', 106, 1248.00, 'Door delivery', '<NAME>', NULL, 'Approved', 19, '15', NULL, '2022-03-02 15:08:02', NULL),
(5, 19, 8, 6, 'Demo service 15', 'Demo Comments', 'Approved', 183, 1702.00, 'Door delivery', '<NAME>', NULL, 'Approved', 13, '18', NULL, '2022-03-02 15:08:02', NULL),
(6, 14, 8, 6, 'Demo service 16', 'Demo Comments', 'Approved', 143, 1735.00, 'Door delivery', '<NAME>', NULL, 'Approved', 19, '11', NULL, '2022-03-02 15:08:02', NULL),
(7, 16, 8, 6, 'Demo service 17', 'Demo Comments', 'Approved', 168, 1199.00, 'Door delivery', '<NAME>', NULL, 'Approved', 17, '17', NULL, '2022-03-02 15:08:02', NULL),
(8, 18, 8, 6, 'Demo service 18', 'Demo Comments', 'Approved', 114, 1415.00, 'Door delivery', '<NAME>', NULL, 'Approved', 13, '17', NULL, '2022-03-02 15:08:02', NULL),
(9, 13, 8, 6, 'Demo service 19', 'Demo Comments', 'Approved', 140, 1040.00, 'Door delivery', '<NAME>', NULL, 'Approved', 19, '12', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `awareness_events`
--
CREATE TABLE `awareness_events` (
`id` bigint(20) UNSIGNED NOT NULL,
`event_category_id` int(11) DEFAULT NULL,
`event_agenda` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`conducted_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`event_date` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`event_time` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`place` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`event_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` int(11) DEFAULT NULL,
`event_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `b_r_a_interests`
--
CREATE TABLE `b_r_a_interests` (
`id` bigint(20) UNSIGNED NOT NULL,
`bra_id` int(11) DEFAULT NULL,
`job_post_id` int(11) DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `candidates`
--
CREATE TABLE `candidates` (
`id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL,
`job_category_id` bigint(20) UNSIGNED NOT NULL,
`job_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_dob` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_gender` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nationality` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`present_address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`permanent_address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Active',
`candidate_picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_resume` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_medical_certificate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_traning_certificate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`updated_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`updated_id` bigint(20) UNSIGNED DEFAULT NULL,
`pre_medical_id` bigint(20) UNSIGNED DEFAULT NULL,
`pre_training_id` bigint(20) UNSIGNED DEFAULT NULL,
`pre_medical_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_training_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_updated_dt` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approval_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_medical_report` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_training_report` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_medical_dt` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_training_dt` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_medical_comments` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pre_training_comments` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('Active','Inactive','Selected','Reviewed','Forwarded','Interview','confirmed') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`result_status` enum('New','Physical Interview','Online Interview','Selected','Rejected') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`offer_letter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`employer_comments` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `candidates`
--
INSERT INTO `candidates` (`id`, `role_id`, `job_category_id`, `job_id`, `company_id`, `candidate_name`, `candidate_dob`, `candidate_gender`, `passport_number`, `phone_number`, `candidate_email`, `candidate_password`, `country`, `nationality`, `present_address`, `permanent_address`, `active_status`, `candidate_picture`, `candidate_resume`, `passport`, `pre_medical_certificate`, `pre_traning_certificate`, `created_by`, `created_id`, `updated_by`, `updated_id`, `pre_medical_id`, `pre_training_id`, `pre_medical_status`, `pre_training_status`, `pre_updated_dt`, `approval_status`, `pre_medical_report`, `pre_training_report`, `pre_medical_dt`, `pre_training_dt`, `pre_medical_comments`, `pre_training_comments`, `status`, `result_status`, `offer_letter`, `employer_comments`, `created_at`, `updated_at`) VALUES
(1, 15, 9, 6, 10, 'Demo Name 0', '2021-30-07', 'male', 'IDS26DdXwDixEz28Un', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(2, 15, 4, 6, 10, 'Demo Name 1', '2021-30-07', 'male', 'fzV3huEWnY5bhRDazJ', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(3, 15, 10, 5, 9, 'Demo Name 2', '2021-30-07', 'male', '7pLW44veSakNCAZYt8', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(4, 15, 10, 3, 6, 'Demo Name 3', '2021-30-07', 'male', 'fAxMwkbAJL91yEeb43', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(5, 15, 4, 1, 5, 'Demo Name 4', '2021-30-07', 'male', 'P16zKsh6mqnSpi2i4u', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(6, 15, 6, 2, 7, 'Demo Name 5', '2021-30-07', 'male', 'oZ4jUp7Q1ifSqHlZMc', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(7, 15, 6, 1, 3, 'Demo Name 6', '2021-30-07', 'male', 'Ccytm4D8rw8dm9NBBR', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(8, 15, 5, 6, 3, 'Demo Name 7', '2021-30-07', 'male', 'VpdHGmfrJQSmor2dNS', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(9, 15, 9, 4, 8, 'Demo Name 8', '2021-30-07', 'male', 'u8r56Celmz5a1YDeqT', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(10, 15, 9, 8, 5, 'Demo Name 9', '2021-30-07', 'male', 'ZYSgpc5hvYmhZhfIrZ', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Active', NULL, NULL, NULL, '2022-03-02 15:08:02', NULL),
(11, 15, 8, 21, 6, 'Demo Name 11', '2021-30-07', 'male', 'moyYmA7vjDJHwM9Cj6', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(12, 15, 8, 21, 6, 'Demo Name 12', '2021-30-07', 'male', '02zzAftmZdhErLZhML', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(13, 15, 8, 21, 6, 'Demo Name 13', '2021-30-07', 'male', 'zZpFR16wyEZS5me4Mo', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(14, 15, 8, 21, 6, 'Demo Name 14', '2021-30-07', 'male', 'bg0xazBFJVtyhQ0h0K', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(15, 15, 8, 21, 6, 'Demo Name 15', '2021-30-07', 'male', 'YjSZ2bdadE0XaR6Amo', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(16, 15, 8, 21, 6, 'Demo Name 16', '2021-30-07', 'male', '9zpmgIAjr7cjh5cPHY', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(17, 15, 8, 21, 6, 'Demo Name 17', '2021-30-07', 'male', 'pU26pA3UHaO7Bm0ExK', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(18, 15, 8, 21, 6, 'Demo Name 18', '2021-30-07', 'male', 'TS7jRWnJ4r9TuejlDg', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL),
(19, 15, 8, 21, 6, 'Demo Name 19', '2021-30-07', 'male', 'YHmbkvq6ZNtXcQakJJ', '01856230550', '<EMAIL>', NULL, NULL, 'bangladesh', 'dhaka bangladesh', 'bahrain', 'Active', NULL, NULL, NULL, NULL, NULL, NULL, 3, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Selected', 'Selected', NULL, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `change_employer_services`
--
CREATE TABLE `change_employer_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED NOT NULL,
`company_id` bigint(20) UNSIGNED NOT NULL,
`wsc_id` bigint(20) UNSIGNED NOT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`new_offer_letter` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` int(11) DEFAULT NULL,
`delivery_charge` int(11) DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` int(11) DEFAULT NULL,
`deleted` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `change_employer_services`
--
INSERT INTO `change_employer_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `cpr`, `new_offer_letter`, `comments`, `service_status`, `delivery_type`, `fees`, `delivery_charge`, `delivery_to`, `delivery_status`, `document`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 15, 8, 6, '168248', NULL, 'Demo Comments', 'Open', 'Open', 16, 15, '<NAME>', 'Door delivery', NULL, 18, NULL, '2022-03-02 15:08:02', NULL),
(2, 11, 8, 6, '357085', NULL, 'Demo Comments', 'Open', 'Open', 11, 14, '<NAME>', 'Door delivery', NULL, 14, NULL, '2022-03-02 15:08:02', NULL),
(3, 11, 8, 6, '271404', NULL, 'Demo Comments', 'Open', 'Open', 19, 14, '<NAME>', 'Door delivery', NULL, 12, NULL, '2022-03-02 15:08:02', NULL),
(4, 12, 8, 6, '158258', NULL, 'Demo Comments', 'Open', 'Open', 14, 16, '<NAME>', 'Door delivery', NULL, 19, NULL, '2022-03-02 15:08:02', NULL),
(5, 13, 8, 6, '331191', NULL, 'Demo Comments', 'Open', 'Open', 14, 15, '<NAME>', 'Door delivery', NULL, 14, NULL, '2022-03-02 15:08:02', NULL),
(6, 17, 8, 6, '395277', NULL, 'Demo Comments', 'Open', 'Open', 14, 11, '<NAME>', 'Door delivery', NULL, 19, NULL, '2022-03-02 15:08:02', NULL),
(7, 13, 8, 6, '319597', NULL, 'Demo Comments', 'Open', 'Open', 19, 13, '<NAME>', 'Door delivery', NULL, 15, NULL, '2022-03-02 15:08:02', NULL),
(8, 11, 8, 6, '232400', NULL, 'Demo Comments', 'Open', 'Open', 18, 13, '<NAME>', 'Door delivery', NULL, 17, NULL, '2022-03-02 15:08:02', NULL),
(9, 11, 8, 6, '144895', NULL, 'Demo Comments', 'Open', 'Open', 16, 11, '<NAME>', 'Door delivery', NULL, 15, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `change_visa_services`
--
CREATE TABLE `change_visa_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_charge` double(8,2) DEFAULT NULL,
`document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `change_visa_services`
--
INSERT INTO `change_visa_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `cpr`, `service_type`, `fees`, `delivery_type`, `delivery_charge`, `document`, `delivery_to`, `delivery_status`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 19, 8, 6, '422098', 'Demo Services', 290.00, 'Door delivery', 59.00, NULL, 'Banani Dhaka', 'Open', 'Demo Comments', 'Open', 12, NULL, '2022-03-02 15:08:02', NULL),
(2, 14, 8, 6, '375637', 'Demo Services', 480.00, 'Door delivery', 58.00, NULL, 'Banani Dhaka', 'Open', 'Demo Comments', 'Open', 14, NULL, '2022-03-02 15:08:02', NULL),
(3, 18, 8, 6, '309609', 'Demo Services', 137.00, 'Door delivery', 56.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 13, NULL, '2022-03-02 15:08:02', NULL),
(4, 12, 8, 6, '148813', 'Demo Services', 187.00, 'Door delivery', 52.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 19, NULL, '2022-03-02 15:08:02', NULL),
(5, 13, 8, 6, '117963', 'Demo Services', 465.00, 'Door delivery', 50.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 12, NULL, '2022-03-02 15:08:02', NULL),
(6, 16, 8, 6, '462158', 'Demo Services', 370.00, 'Door delivery', 52.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 14, NULL, '2022-03-02 15:08:02', NULL),
(7, 17, 8, 6, '126179', 'Demo Services', 480.00, 'Door delivery', 51.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 17, NULL, '2022-03-02 15:08:02', NULL),
(8, 19, 8, 6, '450277', 'Demo Services', 302.00, 'Door delivery', 53.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 13, NULL, '2022-03-02 15:08:02', NULL),
(9, 14, 8, 6, '196383', 'Demo Services', 352.00, 'Door delivery', 53.00, NULL, '<NAME>', 'Open', 'Demo Comments', 'Open', 16, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `charity_services`
--
CREATE TABLE `charity_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `charity_services`
--
INSERT INTO `charity_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `candidate_name`, `company_name`, `service_type`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 14, 8, 6, 'Demo candidate 11', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 12, NULL, '2022-03-02 15:08:02', NULL),
(2, 16, 8, 6, 'Demo candidate 12', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 13, NULL, '2022-03-02 15:08:02', NULL),
(3, 15, 8, 6, 'Demo candidate 13', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 18, NULL, '2022-03-02 15:08:02', NULL),
(4, 13, 8, 6, 'Demo candidate 14', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 16, NULL, '2022-03-02 15:08:02', NULL),
(5, 18, 8, 6, 'Demo candidate 15', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 11, NULL, '2022-03-02 15:08:02', NULL),
(6, 15, 8, 6, 'Demo candidate 16', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 16, NULL, '2022-03-02 15:08:02', NULL),
(7, 18, 8, 6, 'Demo candidate 17', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 15, NULL, '2022-03-02 15:08:02', NULL),
(8, 13, 8, 6, 'Demo candidate 18', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 13, NULL, '2022-03-02 15:08:02', NULL),
(9, 11, 8, 6, 'Demo candidate 19', 'Demo Company', 'Demo Service', 'Demo Comments', 'Open', 14, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
CREATE TABLE `companies` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) DEFAULT NULL,
`user_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') 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 `companies`
--
INSERT INTO `companies` (`id`, `user_id`, `user_name`, `company_name`, `company_email`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, 'kamrulGroup0', 'kamrul Group 0', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(2, 2, 'kamrulGroup1', 'kamrul Group 1', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(3, 3, 'kamrulGroup2', 'kamrul Group 2', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(4, 4, 'kamrulGroup3', 'kamrul Group 3', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(5, 5, 'kamrulGroup4', 'kamrul Group 4', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(6, 6, 'kamrulGroup5', 'kamrul Group 5', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(7, 7, 'kamrulGroup6', 'kamrul Group 6', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(8, 8, 'kamrulGroup7', 'kamrul Group 7', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(9, 9, 'kamrulGroup8', 'kamrul Group 8', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(10, 10, 'kamrulGroup9', 'kamrul Group 9', '<EMAIL>', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01');
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` bigint(20) UNSIGNED NOT NULL,
`country_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') 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 `countries`
--
INSERT INTO `countries` (`id`, `country_code`, `country_name`, `status`, `created_at`, `updated_at`) VALUES
(2, '355', 'Albania(+355)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(3, '213', 'Algeria (+213)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(4, '684', 'American Samoa(+684)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(5, '376', 'Andorra (+376)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(6, '244', 'Angola (+244)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(7, '1264', 'Anguilla (+1264)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(8, '672', 'Antarctica(+672)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(9, '1268', 'Antigua & Barbuda (+1268)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(10, '54', 'Argentina (+54)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(11, '374', 'Armenia (+374)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(12, '297', 'Aruba (+297)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(13, '61', 'Australia (+61)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(14, '43', 'Austria (+43)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(15, '994', 'Azerbaijan (+994)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(16, '1242', 'Bahamas (+1242)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(17, '973', 'Bahrain (+973)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(18, '880', 'Bangladesh (+880)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(19, '1246', 'Barbados (+1246)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(20, '375', 'Belarus (+375)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(21, '32', 'Belgium (+32)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(22, '501', 'Belize (+501)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(23, '229', 'Benin (+229)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(24, '1441', 'Bermuda (+1441)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(25, '975', 'Bhutan (+975)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(26, '591', 'Bolivia (+591)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(27, '387', 'Bosnia Herzegovina (+387)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(28, '267', 'Botswana (+267)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(30, '55', 'Brazil (+55)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(31, '246', 'British Indian Ocean Territory(+246)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(32, '673', 'Brunei (+673)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(33, '359', 'Bulgaria (+359)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(34, '226', 'Burkina Faso (+226)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(35, '257', 'Burundi (+257)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(36, '855', 'Cambodia (+855)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(37, '237', 'Cameroon (+237)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(38, '1', 'Canada (+1)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(39, '238', 'Cape Verde Islands (+238)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(40, '1345', 'Cayman Islands (+1345)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(41, '236', 'Central African Republic (+236)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(42, '235', 'Chad(+235)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(43, '56', 'Chile (+56)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(44, '86', 'China (+86)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(47, '57', 'Colombia (+57)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(48, '269', 'Comoros (+269)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(49, '242', 'Congo (+242)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(50, '243', 'Congo The Democratic Republic Of The(+243)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(51, '682', 'Cook Islands (+682)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(52, '506', 'Costa Rica (+506)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(53, '225', 'Cote D\'Ivoire (Ivory Coast)(+225)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(54, '385', 'Croatia (+385)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(55, '53', 'Cuba (+53)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(56, '90392', 'Cyprus North (+90392)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(57, '42', 'Czech Republic (+42)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(58, '45', 'Denmark (+45)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(59, '253', 'Djibouti (+253)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(60, '1809', 'Dominica (+1809)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(62, '670', 'East Timor(+670)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(63, '593', 'Ecuador (+593)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(64, '20', 'Egypt (+20)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(65, '503', 'El Salvador (+503)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(66, '240', 'Equatorial Guinea (+240)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(67, '291', 'Eritrea (+291)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(68, '372', 'Estonia (+372)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(69, '251', 'Ethiopia (+251)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(71, '500', 'Falkland Islands (+500)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(72, '298', 'Faroe Islands (+298)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(73, '679', 'Fiji (+679)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(74, '358', 'Finland (+358)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(75, '33', 'France (+33)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(76, '594', 'French Guiana (+594)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(77, '689', 'French Polynesia (+689)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(78, '262', 'French Southern Territories(262)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(79, '241', 'Gabon (+241)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(80, '220', 'Gambia (+220)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(81, '7880', 'Georgia (+7880)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(82, '49', 'Germany (+49)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(83, '233', 'Ghana (+233)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(84, '350', 'Gibraltar (+350)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(85, '30', 'Greece (+30)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(86, '299', 'Greenland (+299)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(87, '1473', 'Grenada (+1473)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(88, '590', 'Guadeloupe (+590)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(89, '671', 'Guam (+671)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(90, '502', 'Guatemala (+502)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(91, '44', '<NAME>(44 1481)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(92, '224', 'Guinea (+224)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(93, '245', 'Guinea - Bissau (+245)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(94, '592', 'Guyana (+592)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(95, '509', 'Haiti (+509)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(97, '504', 'Honduras (+504)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(98, '852', 'Hong Kong (+852)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(99, '36', 'Hungary (+36)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(100, '354', 'Iceland (+354)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(101, '91', 'India (+91)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(102, '62', 'Indonesia (+62)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(103, '98', 'Iran (+98)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(104, '964', 'Iraq (+964)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(105, '353', 'Ireland (+353)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(106, '972', 'Israel (+972)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(107, '39', 'Italy (+39)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(108, '1876', 'Jamaica (+1876)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(109, '81', 'Japan (+81)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(111, '962', 'Jordan (+962)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(112, '7', 'Kazakhstan (+7)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(113, '254', 'Kenya (+254)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(114, '686', 'Kiribati (+686)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(115, '850', 'Korea North (+850)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(116, '82', 'Korea South (+82)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(117, '965', 'Kuwait (+965)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(118, '996', 'Kyrgyzstan (+996)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(119, '856', 'Laos (+856)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(120, '371', 'Latvia (+371)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(121, '961', 'Lebanon (+961)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(122, '266', 'Lesotho (+266)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(123, '231', 'Liberia (+231)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(124, '218', 'Libya (+218)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(125, '417', 'Liechtenstein (+417)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(126, '370', 'Lithuania (+370)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(127, '352', 'Luxembourg (+352)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(128, '853', 'Macao (+853)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(129, '389', 'Macedonia (+389)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(130, '261', 'Madagascar (+261)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(131, '265', 'Malawi (+265)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(132, '60', 'Malaysia (+60)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(133, '960', 'Maldives (+960)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(134, '223', 'Mali (+223)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(135, '356', 'Malta (+356)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(137, '692', 'Marshall Islands (+692)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(138, '596', 'Martinique (+596)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(139, '222', 'Mauritania (+222)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(140, '230', 'Mauritius(+230)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(142, '52', 'Mexico (+52)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(143, '691', 'Micronesia (+691)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(144, '373', 'Moldova (+373)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(145, '377', 'Monaco (+377)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(146, '976', 'Mongolia (+976)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(147, '1664', 'Montserrat (+1664)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(148, '212', 'Morocco (+212)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(149, '258', 'Mozambique (+258)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(150, '95', 'Myanmar(+95)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(151, '264', 'Namibia (+264)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(152, '674', 'Nauru (+674)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(153, '977', 'Nepal (+977)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(154, '599', 'Netherlands Antilles(+599)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(155, '31', 'Netherlands (+31)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(156, '687', 'New Caledonia (+687)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(157, '64', 'New Zealand (+64)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(158, '505', 'Nicaragua (+505)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(159, '227', 'Niger (+227)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(160, '234', 'Nigeria (+234)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(161, '683', 'Niue (+683)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(164, '47', 'Norway (+47)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(165, '968', 'Oman (+968)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(166, '92', 'Pakistan(+92)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(167, '680', 'Palau (+680)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(168, '970', 'Palestinian Territory Occupied(+970)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(169, '507', 'Panama (+507)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(170, '675', 'Papua New Guinea (+675)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(171, '595', 'Paraguay (+595)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(172, '51', 'Peru (+51)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(173, '63', 'Philippines (+63)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(175, '48', 'Poland (+48)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(176, '351', 'Portugal (+351)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(177, '1787', 'P<NAME> (+1787)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(178, '974', 'Qatar (+974)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(180, '40', 'Romania (+40)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(182, '250', 'Rwanda (+250)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(183, '290', 'St. Helena (+290)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(184, '1869', 'St. Kitts (+1869)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(185, '1758', '<NAME>(+1758)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(186, '508', 'Saint Pierre and Miquelon(+508)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(187, '1784', 'Saint Vincent And The Grenadines(+1784)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(188, '685', 'Samoa(+685)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(189, '378', 'San Marino (+378)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(190, '239', '<NAME> (+239)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(191, '966', '<NAME> (+966)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(192, '221', 'Senegal (+221)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(193, '381', 'Serbia(+381)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(194, '248', 'Seychelles (+248)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(195, '232', 'Sierra Leone (+232)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(196, '65', 'Singapore (+65)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(197, '421', 'Slovak Republic (+421)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(198, '386', 'Slovenia (+386)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(200, '677', 'Solomon Islands (+677)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(201, '252', 'Somalia (+252)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(202, '27', 'South Africa (+27)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(204, '211', 'South Sudan(+211)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(205, '34', 'Spain (+34)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(206, '94', 'Sri Lanka (+94)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(207, '249', 'Sudan (+249)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(208, '597', 'Suriname (+597)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(210, '268', 'Swaziland (+268)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(211, '46', 'Sweden (+46)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(212, '41', 'Switzerland (+41)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(213, '963', 'Syria(+963)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(214, '886', 'Taiwan (+886)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(216, '255', 'Tanzania(+255)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(217, '66', 'Thailand (+66)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(218, '228', 'Togo (+228)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(219, '690', 'Tokelau(+690)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(220, '676', 'Tonga (+676)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(221, '1868', 'Trinidad & Tobago (+1868)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(222, '216', 'Tunisia (+216)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(223, '90', 'Turkey (+90)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(225, '1649', 'Turks & Caicos Islands (+1649)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(226, '688', 'Tuvalu (+688)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(227, '256', 'Uganda (+256)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(228, '380', 'Ukraine (+380)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(229, '971', 'United Arab Emirates (+971)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(233, '598', 'Uruguay (+598)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(235, '678', 'Vanuatu (+678)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(236, '379', 'Vatican City (+379)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(237, '58', 'Venezuela (+58)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(238, '84', 'Vietnam (+84)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(241, '681', 'Wallis & Futuna (+681)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(243, '969', 'Yemen (North)(+969)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(244, '38', 'Yugoslavia(+38)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(245, '260', 'Zambia (+260)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(246, '263', 'Zimbabwe (+263)', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(247, '156', 'Bahraini +973', 'active', NULL, '2021-07-10 04:03:24');
-- --------------------------------------------------------
--
-- Table structure for table `deadbody_transfers`
--
CREATE TABLE `deadbody_transfers` (
`id` bigint(20) UNSIGNED NOT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deadbody_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`relation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_copy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_expirydate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_expirydate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cause_of_death` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bangladesh_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`relative_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `deadbody_transfers`
--
INSERT INTO `deadbody_transfers` (`id`, `wsc_id`, `candidate_name`, `company_name`, `deadbody_name`, `relation`, `passport_copy`, `passport_number`, `passport_expirydate`, `visa_number`, `visa_expirydate`, `cause_of_death`, `bangladesh_address`, `relative_name`, `contact_number`, `comments`, `active_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 6, 'Demo candidate 11', 'Demo Co. name 11', 'Demo name 11', 'Brother', NULL, '1093', '2027-03-02 21:08:02', '1336', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '10685136', 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(2, 6, 'Demo candidate 12', 'Demo Co. name 12', 'Demo name 12', 'Brother', NULL, '1227', '2027-03-02 21:08:02', '1166', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '19587285', 'Demo Comments', 'Open', '11', NULL, '2022-03-02 15:08:02', NULL),
(3, 6, 'Demo candidate 13', 'Demo Co. name 13', 'Demo name 13', 'Brother', NULL, '1938', '2027-03-02 21:08:02', '1990', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '13014534', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(4, 6, 'Demo candidate 14', 'Demo Co. name 14', 'Demo name 14', 'Brother', NULL, '1216', '2027-03-02 21:08:02', '1239', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '10286345', 'Demo Comments', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(5, 6, 'Demo candidate 15', 'Demo Co. name 15', 'Demo name 15', 'Brother', NULL, '1289', '2027-03-02 21:08:02', '1125', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '17062198', 'Demo Comments', 'Open', '18', NULL, '2022-03-02 15:08:02', NULL),
(6, 6, 'Demo candidate 16', 'Demo Co. name 16', 'Demo name 16', 'Brother', NULL, '1935', '2027-03-02 21:08:02', '1861', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '12086505', 'Demo Comments', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(7, 6, 'Demo candidate 17', 'Demo Co. name 17', 'Demo name 17', 'Brother', NULL, '1119', '2027-03-02 21:08:02', '1101', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '16498658', 'Demo Comments', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(8, 6, 'Demo candidate 18', 'Demo Co. name 18', 'Demo name 18', 'Brother', NULL, '1934', '2027-03-02 21:08:02', '1699', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '14960307', 'Demo Comments', 'Open', '11', NULL, '2022-03-02 15:08:02', NULL),
(9, 6, 'Demo candidate 19', 'Demo Co. name 19', 'Demo name 19', 'Brother', NULL, '1911', '2027-03-02 21:08:02', '1501', '2027-03-02 21:08:02', 'Couse of Death', '<NAME>', 'Demo Relative name', '16248794', 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `event_categories`
--
CREATE TABLE `event_categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') 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 `event_categories`
--
INSERT INTO `event_categories` (`id`, `category_name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'faPVLSvcvc', 'active', NULL, NULL),
(2, 'KVQWyznhkW', 'active', NULL, NULL),
(3, 'OaOCsvwfda', 'active', NULL, NULL),
(4, 'ziMw7Fp9vV', 'active', NULL, NULL),
(5, '6eb6B9DiJB', 'active', NULL, NULL),
(6, 'y2Qa9X3g3p', 'active', NULL, NULL),
(7, 'Q0idLd2tli', 'active', NULL, NULL),
(8, 'uJdXrpqQQ6', 'active', NULL, NULL),
(9, 'LtdTt7qQ4L', 'active', NULL, NULL),
(10, 'M2KOuAhpvN', 'active', NULL, NULL),
(11, 'Health and Safety', 'active', NULL, NULL),
(12, 'Drug Handling', 'active', NULL, NULL),
(13, 'Remittance', 'active', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `extension_passport_services`
--
CREATE TABLE `extension_passport_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salary_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`extention_passport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reject_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`b_embassy_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `extension_passport_services`
--
INSERT INTO `extension_passport_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `candidate_name`, `company_name`, `salary_type`, `cpr`, `comments`, `extention_passport`, `service_status`, `passport`, `fees`, `delivery_type`, `delivery_to`, `delivery_status`, `reject_reason`, `b_embassy_id`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 15, 6, 6, 'Demo Candidate 0', 'Demo Company 0', '48547', '26200', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(2, 12, 6, 6, 'Demo Candidate 1', 'Demo Company 1', '48562', '40829', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(3, 12, 6, 6, 'Demo Candidate 2', 'Demo Company 2', '24451', '9618', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(4, 17, 6, 6, 'Demo Candidate 3', 'Demo Company 3', '17447', '45110', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(5, 17, 6, 6, 'Demo Candidate 4', 'Demo Company 4', '41884', '40352', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(6, 19, 6, 6, 'Demo Candidate 5', 'Demo Company 5', '23871', '20909', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(7, 19, 6, 6, 'Demo Candidate 6', 'Demo Company 6', '33393', '18168', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(8, 13, 6, 6, 'Demo Candidate 7', 'Demo Company 7', '25608', '27385', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(9, 15, 6, 6, 'Demo Candidate 8', 'Demo Company 8', '39574', '26790', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL),
(10, 14, 6, 6, 'Demo Candidate 9', 'Demo Company 9', '9517', '11481', 'Demo Comments', NULL, 'Open', NULL, 200.00, NULL, NULL, NULL, NULL, '2', '6', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- 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 `insurance_services`
--
CREATE TABLE `insurance_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`insurance_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`insurance_card` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `insurance_services`
--
INSERT INTO `insurance_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `service_type`, `insurance_number`, `insurance_card`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 12, 8, 6, 'Demo service 11', '19507112', NULL, 'Demo Comments', 'Open', '12', NULL, '2022-03-02 15:08:02', NULL),
(2, 16, 8, 6, 'Demo service 12', '15449961', NULL, 'Demo Comments', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(3, 12, 8, 6, 'Demo service 13', '18166963', NULL, 'Demo Comments', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(4, 15, 8, 6, 'Demo service 14', '15181991', NULL, 'Demo Comments', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(5, 15, 8, 6, 'Demo service 15', '15400782', NULL, 'Demo Comments', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(6, 13, 8, 6, 'Demo service 16', '19288883', NULL, 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(7, 19, 8, 6, 'Demo service 17', '14457910', NULL, 'Demo Comments', 'Open', '18', NULL, '2022-03-02 15:08:02', NULL),
(8, 17, 8, 6, 'Demo service 18', '11714845', NULL, 'Demo Comments', 'Open', '12', NULL, '2022-03-02 15:08:02', NULL),
(9, 17, 8, 6, 'Demo service 19', '16621150', NULL, 'Demo Comments', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `issuance_certificates`
--
CREATE TABLE `issuance_certificates` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_charge` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `issuance_certificates`
--
INSERT INTO `issuance_certificates` (`id`, `candidate_id`, `company_id`, `wsc_id`, `service_type`, `comments`, `service_status`, `delivery_status`, `delivery_charge`, `fees`, `delivery_to`, `document`, `delivery_type`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 18, 8, 6, 'Demo service 11', 'Demo Comments', 'Approved', 'Approved', '103', 1314.00, 'Dhaka bonani', NULL, 'Door delivery', '17', NULL, '2022-03-02 15:08:02', NULL),
(2, 15, 8, 6, 'Demo service 12', 'Demo Comments', 'Approved', 'Approved', '164', 1701.00, 'Dhaka bonani', NULL, 'Door delivery', '16', NULL, '2022-03-02 15:08:02', NULL),
(3, 14, 8, 6, 'Demo service 13', 'Demo Comments', 'Approved', 'Approved', '161', 1764.00, '<NAME>', NULL, 'Door delivery', '15', NULL, '2022-03-02 15:08:02', NULL),
(4, 11, 8, 6, 'Demo service 14', 'Demo Comments', 'Approved', 'Approved', '187', 1510.00, '<NAME>', NULL, 'Door delivery', '16', NULL, '2022-03-02 15:08:02', NULL),
(5, 17, 8, 6, 'Demo service 15', 'Demo Comments', 'Approved', 'Approved', '152', 1313.00, '<NAME>', NULL, 'Door delivery', '11', NULL, '2022-03-02 15:08:02', NULL),
(6, 16, 8, 6, 'Demo service 16', 'Demo Comments', 'Approved', 'Approved', '126', 1565.00, '<NAME>', NULL, 'Door delivery', '13', NULL, '2022-03-02 15:08:02', NULL),
(7, 18, 8, 6, 'Demo service 17', 'Demo Comments', 'Approved', 'Approved', '109', 1655.00, 'Dh<NAME>', NULL, 'Door delivery', '18', NULL, '2022-03-02 15:08:02', NULL),
(8, 18, 8, 6, 'Demo service 18', 'Demo Comments', 'Approved', 'Approved', '171', 1853.00, 'Dh<NAME>', NULL, 'Door delivery', '13', NULL, '2022-03-02 15:08:02', NULL),
(9, 15, 8, 6, 'Demo service 19', 'Demo Comments', 'Approved', 'Approved', '170', 1883.00, '<NAME>', NULL, 'Door delivery', '11', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `jail_and_deportations`
--
CREATE TABLE `jail_and_deportations` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`job_category_id` bigint(20) UNSIGNED DEFAULT NULL,
`person_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`person_relation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_expirydate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_expirydate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cause_of_arrest` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`police_station_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`arrest_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_copy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `jail_and_deportations`
--
INSERT INTO `jail_and_deportations` (`id`, `candidate_id`, `company_id`, `wsc_id`, `job_category_id`, `person_name`, `person_relation`, `passport_number`, `passport_expirydate`, `visa_number`, `visa_expirydate`, `cause_of_arrest`, `police_station_name`, `arrest_date`, `passport_copy`, `comments`, `created_id`, `active_status`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 11, 8, 6, 2, 'Demo Name 11', 'Brother ', '1357', '2027-03-02 21:08:02', '1526', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '12', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(2, 12, 8, 6, 5, 'Demo Name 12', 'Brother ', '1923', '2027-03-02 21:08:02', '1037', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '13', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(3, 13, 8, 6, 5, 'Demo Name 13', 'Brother ', '1578', '2027-03-02 21:08:02', '1968', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '1', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(4, 14, 8, 6, 5, 'Demo Name 14', 'Brother ', '1861', '2027-03-02 21:08:02', '1112', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '14', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(5, 15, 8, 6, 3, 'Demo Name 15', 'Brother ', '1460', '2027-03-02 21:08:02', '1340', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '9', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(6, 16, 8, 6, 5, 'Demo Name 16', 'Brother ', '1282', '2027-03-02 21:08:02', '1066', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '7', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(7, 17, 8, 6, 2, 'Demo Name 17', 'Brother ', '1157', '2027-03-02 21:08:02', '1206', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '10', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(8, 18, 8, 6, 9, 'Demo Name 18', 'Brother ', '1156', '2027-03-02 21:08:02', '1146', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '14', 'Open', NULL, '2022-03-02 15:08:02', NULL),
(9, 19, 8, 6, 10, 'Demo Name 19', 'Brother ', '1524', '2027-03-02 21:08:02', '1661', '2027-03-02 21:08:02', 'Couse of Arrest', 'Demo Police Station', '2022-02-25 21:08:02', NULL, 'Demo Comments', '17', 'Open', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `job_categories`
--
CREATE TABLE `job_categories` (
`id` int(10) UNSIGNED NOT NULL,
`category_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('Active','Inactive') 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 `job_categories`
--
INSERT INTO `job_categories` (`id`, `category_name`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Demo Category 0', 'Active', NULL, NULL),
(2, 'Demo Category 1', 'Active', NULL, NULL),
(3, 'Demo Category 2', 'Active', NULL, NULL),
(4, 'Demo Category 3', 'Active', NULL, NULL),
(5, 'Demo Category 4', 'Active', NULL, NULL),
(6, 'Demo Category 5', 'Active', NULL, NULL),
(7, 'Demo Category 6', 'Active', NULL, NULL),
(8, 'Demo Category 7', 'Active', NULL, NULL),
(9, 'Demo Category 8', 'Active', NULL, NULL),
(10, 'Demo Category 9', 'Active', NULL, NULL),
(11, 'Web Developer', 'Active', NULL, NULL),
(12, 'Doctor', 'Active', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `job_distribute_in_b_r_a_s`
--
CREATE TABLE `job_distribute_in_b_r_a_s` (
`id` bigint(20) UNSIGNED NOT NULL,
`job_post_id` bigint(20) UNSIGNED DEFAULT NULL,
`bra_id` bigint(20) UNSIGNED DEFAULT NULL,
`bra_interest_id` bigint(20) UNSIGNED DEFAULT NULL,
`distributed_vacancy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `job_posts`
--
CREATE TABLE `job_posts` (
`id` int(10) UNSIGNED NOT NULL,
`job_category_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`company_id` int(11) DEFAULT NULL,
`employment_type` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`gender` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`age_limit` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salary` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`job_location` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`job_vacancy` int(11) DEFAULT NULL,
`app_vacancy` int(11) DEFAULT NULL,
`end_date` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`demand_letter` blob DEFAULT NULL,
`selected_wsc` int(11) DEFAULT NULL,
`mra_id` int(11) DEFAULT NULL,
`recruiting_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`appointment_date` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`appointment_time` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rejection_reason` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`wsc_send_status` int(11) NOT NULL DEFAULT 0,
`ma_status` enum('New','Verified','Approved','Applied','Rejected','Pending') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'New',
`forward_status` enum('Forwarded','Pending') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('New','Verified','Approved','Applied','Rejected','Pending') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'New',
`bd_embasy_status` enum('Approved','Rejected') 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 `job_posts`
--
INSERT INTO `job_posts` (`id`, `job_category_id`, `user_id`, `company_id`, `employment_type`, `gender`, `age_limit`, `salary`, `job_location`, `job_vacancy`, `app_vacancy`, `end_date`, `demand_letter`, `selected_wsc`, `mra_id`, `recruiting_type`, `appointment_date`, `appointment_time`, `rejection_reason`, `wsc_send_status`, `ma_status`, `forward_status`, `status`, `bd_embasy_status`, `created_at`, `updated_at`) VALUES
(1, 5, 6, 6, 'Full Time', 'Male only', '32', '42748', 'Dhaka Bangladesh', 90, NULL, '2022-03-02 21:08:02', 0x6a47366e31436b6e5035, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(2, 12, 6, 6, 'Full Time', 'Male only', '49', '12129', 'Dhaka Bangladesh', 94, NULL, '2022-03-02 21:08:02', 0x73455167667550695864, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(3, 12, 6, 6, 'Full Time', 'Male only', '50', '35127', 'Dhaka Bangladesh', 56, NULL, '2022-03-02 21:08:02', 0x764a7162337675463630, 9, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(4, 8, 6, 6, 'Full Time', 'Male only', '35', '17896', 'Dhaka Bangladesh', 69, NULL, '2022-03-02 21:08:02', 0x43484d74795070737670, 5, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(5, 11, 6, 6, 'Full Time', 'Male only', '37', '26948', 'Dhaka Bangladesh', 94, NULL, '2022-03-02 21:08:02', 0x5469444e426f484f5052, 3, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(6, 10, 6, 6, 'Full Time', 'Male only', '29', '34843', 'Dhaka Bangladesh', 70, NULL, '2022-03-02 21:08:02', 0x33794c59704156576c61, 6, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(7, 11, 6, 6, 'Full Time', 'Male only', '37', '37059', 'Dhaka Bangladesh', 54, NULL, '2022-03-02 21:08:02', 0x614d44684e4d4561576b, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(8, 6, 6, 6, 'Full Time', 'Male only', '27', '36687', 'Dhaka Bangladesh', 78, NULL, '2022-03-02 21:08:02', 0x427376716c3456494163, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(9, 10, 6, 6, 'Full Time', 'Male only', '29', '19630', 'Dhaka Bangladesh', 56, NULL, '2022-03-02 21:08:02', 0x394d41645a356b783272, 1, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(10, 9, 6, 6, 'Full Time', 'Male only', '35', '19429', 'Dhaka Bangladesh', 75, NULL, '2022-03-02 21:08:02', 0x55546b636a41726b5261, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'New', 'Approved', '2022-03-02 15:08:02', NULL),
(11, 7, 6, 6, '4IbhQxPxG2', 'Male only', '42', '34960', 'mYbVIfoTM6', 33, NULL, '2022-03-02 21:08:02', 0x514952394f53414a4969, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(12, 6, 6, 6, 'Wa8Uun2u3H', 'Male only', '46', '38686', 'XdJswqw8MC', 34, NULL, '2022-03-02 21:08:02', 0x547a72473644446b3837, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(13, 12, 6, 6, 'iMDWCbINAs', 'Male only', '36', '12617', 'G73W9dyuWF', 24, NULL, '2022-03-02 21:08:02', 0x63414e326b5a5638454d, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(14, 11, 6, 6, 'qlWyaGsRLf', 'Male only', '47', '17140', '8JkO5tP8jX', 23, NULL, '2022-03-02 21:08:02', 0x6d45675164435a34614d, 7, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(15, 8, 6, 6, 'iRC9Rb6hnW', 'Male only', '33', '34731', 'ToDJAYWGni', 37, NULL, '2022-03-02 21:08:02', 0x32473251483570314d4a, 5, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(16, 7, 6, 6, 'va7gaoaDAn', 'Male only', '36', '17373', 'JllP8QmkBt', 44, NULL, '2022-03-02 21:08:02', 0x48514f5241663862696b, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(17, 10, 6, 6, 'LZ8LsrR9ms', 'Male only', '46', '21300', '7cdKreIVHx', 33, NULL, '2022-03-02 21:08:02', 0x677562754a75516d754e, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(18, 9, 6, 6, 'HJk1QG61Mg', 'Male only', '39', '42312', 'uzOJvuQXEg', 45, NULL, '2022-03-02 21:08:02', 0x304674597156366e627a, 1, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(19, 12, 6, 6, 'mNcJcjPqWW', 'Male only', '43', '38547', 'g7ZCfAsmHU', 33, NULL, '2022-03-02 21:08:02', 0x694e5364565443547a6d, 3, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(20, 11, 6, 6, 'N9QeE12cdp', 'Male only', '22', '45512', 'vOwf9AzaW9', 43, NULL, '2022-03-02 21:08:02', 0x435a7448325471704771, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Verified', 'Approved', '2022-03-02 15:08:02', NULL),
(21, 8, 6, 6, 'XwV1sYLMjE', 'Male only', '36', '39550', 'tnYKl00YHU', 31, NULL, '2022-03-02 21:08:02', 0x45796b636868506f6c52, 9, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(22, 11, 6, 6, 'OMkMiXgO7y', 'Male only', '30', '10184', 'RJ8hP2Xhgi', 45, NULL, '2022-03-02 21:08:02', 0x34496a64686842555561, 2, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(23, 8, 6, 6, 'yrYmOnqaHp', 'Male only', '24', '48749', '8P3Q4NbrRa', 49, NULL, '2022-03-02 21:08:02', 0x3866673330654d564c39, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(24, 9, 6, 6, 'IRSs0amYTl', 'Male only', '21', '18317', 'q5RuRBz4EC', 41, NULL, '2022-03-02 21:08:02', 0x4e7a493762324e36794d, 10, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(25, 10, 6, 6, 'jbLy7PYLcj', 'Male only', '37', '6870', 'yRkECpVfMJ', 36, NULL, '2022-03-02 21:08:02', 0x4a644f72524e75375838, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(26, 10, 6, 6, 'eTgzsbKO7L', 'Male only', '20', '15872', 'c0n1UQt9vf', 32, NULL, '2022-03-02 21:08:02', 0x796f366f6d724d546933, 5, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(27, 7, 6, 6, 'bzadrU0PWy', 'Male only', '24', '34348', 'PiDD8zXVV7', 40, NULL, '2022-03-02 21:08:02', 0x49304546696d52534277, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(28, 10, 6, 6, 'S6HuHbzcNt', 'Male only', '46', '37984', '5M7K7rv7Tb', 45, NULL, '2022-03-02 21:08:02', 0x597a513277436e783943, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(29, 5, 6, 6, 'POnALzCXuY', 'Male only', '44', '10878', 'CdKq3VRHp9', 28, NULL, '2022-03-02 21:08:02', 0x705a34426c6c70394d47, 8, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(30, 9, 6, 6, 'SAnTZwsoFt', 'Male only', '33', '33694', 'YiYwcJxYsI', 34, NULL, '2022-03-02 21:08:02', 0x617345596d4d49463774, 4, NULL, NULL, '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'New', NULL, 'Applied', 'Approved', '2022-03-02 15:08:02', NULL),
(31, 11, 8, 8, 'Full Time', 'Male only', '25', '41835', 'Kuala lampur , Malaysia', 89, NULL, '2022-03-02 21:08:02', NULL, NULL, NULL, 'self', '2022-03-02 21:08:02', '2022-03-02 21:08:02', NULL, 0, 'Approved', NULL, 'Approved', 'Approved', '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `legal_aid_services`
--
CREATE TABLE `legal_aid_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `legal_aid_services`
--
INSERT INTO `legal_aid_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 19, 8, 6, 'Demo Service', 'Open', '14', NULL, '2022-03-02 15:08:02', NULL),
(2, 16, 8, 6, 'Demo Service', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(3, 18, 8, 6, 'Demo Service', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(4, 18, 8, 6, 'Demo Service', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(5, 16, 8, 6, 'Demo Service', 'Open', '12', NULL, '2022-03-02 15:08:02', NULL),
(6, 19, 8, 6, 'Demo Service', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(7, 15, 8, 6, 'Demo Service', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(8, 13, 8, 6, 'Demo Service', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(9, 11, 8, 6, 'Demo Service', 'Open', '14', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `lost_passport_services`
--
CREATE TABLE `lost_passport_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`b_embassy_id` bigint(20) UNSIGNED DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bhr_mobile_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bangladesh_mobile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bangladesh_address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`spouse_cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`spouse_mobile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salary` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`reject_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `lost_passport_services`
--
INSERT INTO `lost_passport_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `b_embassy_id`, `cpr`, `bhr_mobile_no`, `bangladesh_mobile`, `bangladesh_address`, `spouse_cpr`, `spouse_mobile`, `salary`, `comments`, `service_status`, `delivery_type`, `delivery_to`, `delivery_status`, `passport`, `fees`, `reject_reason`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 14, 6, 6, 2, '19887', '34885', '45002', 'jLvxn5L53PZOIjECxDlyCbBlRhEoJvUXlbnNZL2OExpwqe9Vmd', 'dfoQlKW9q2PMakBRLbyw6eL8xkoCCcS1x7P8Cv8H83tjLs15zZ', '330', '30165', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(2, 12, 6, 6, 2, '28144', '21649', '32401', 'VXftrWqEkLAhrffP77EZqCSqyZKFXZBxNd2zhhYsImXyRdTsV9', 'RkQ9MzEJ6b9CbQ5rS2DV6X7gj2D9TtJxEDKN4wLjZwuCtzCQOx', '165', '38585', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(3, 19, 6, 6, 2, '23779', '46695', '44766', 'GKP4GUxiPa4Uw21geuoZbUHjRlrcGblxZOBpM6soP8rynz3ZiE', 'hJpRUeM3SPbL751v3mcZLqiFsFUOEohshChI19U1NudIO3hPSS', '405', '13486', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(4, 18, 6, 6, 2, '7542', '28035', '46236', 'EMuFHJFRkYbDZ1Dkd1kec8EkGuIMMOC6cEZuXzKx0yQJmXacsz', 'u6eFctmbT3ucwlXYDRzYD3yQ6UnAoGCZEljWL6pRGqCErbHclr', '104', '32783', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(5, 15, 6, 6, 2, '10909', '22875', '45760', 'd3W3mxhntO1JbaDj0QkxO0prmc7JACH5bNwyiqt8Yglbmf1z2y', 'GtuDrkXIXw06YhIPKGe2wgMoIl4WkplVFZSa0RatohI3nw5D7K', '247', '5527', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(6, 16, 6, 6, 2, '42982', '46460', '47405', 'rxIXE7MJ6WQjae25a1kE4KHZxwp1DkA1sTHj4pFZrjipQaUtWr', 'K8Zq6Qjg19nry8kWAtHENZnrTuGxTmx5SsGlv0WRRLBgCR8ACp', '143', '40183', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(7, 17, 6, 6, 2, '37682', '17776', '43626', 'RAqMS5GrYaTK19DV05mMdYB5Ig49zhBuR0iUmOEdVJmvU2wpcv', 'Uao7grkbyg5Zsr0WyApZgjJW9rq0v1xjP629ADFKZbyDAZhlhz', '86', '24144', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(8, 19, 6, 6, 2, '26626', '11660', '45770', 'jXrRo9O5RntK8ZnpNNMPAjG70cotKkSgw8W57Fho95TgCj577G', 'o75q6kf3h4SQniWZ3EFMxNrs0ouduNToXXb3FPUrIph1wtD1N0', '328', '18068', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(9, 12, 6, 6, 2, '30028', '49223', '11244', 'n3MdPyUAdD8pzGieUjNX8CaGqyCVNNX5olHmSVBvNs7WuTS1MZ', 'm8diZoMHL149JKFws149yRlPqyGhM3h4oFgPPumr4MmsRuKZz9', '141', '7761', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL),
(10, 19, 6, 6, 2, '36496', '28583', '31528', 'GG3buCsQiX8DE8aEPn7gfDvE2XhVkEgYahbqcMJjzAQEqEv7ol', 'nXIRj6ACZTAz8tLhpsJx4wvTgFYFsFAyYZoTwejoQn3dpDzhOU', '423', '21048', 'Demo Comments', 'Open', NULL, NULL, NULL, NULL, 200.00, NULL, 6, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `medical_compensation`
--
CREATE TABLE `medical_compensation` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sick_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`doctor_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`hospital_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`prescription` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`insurance_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`insurance_card` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `medical_compensation`
--
INSERT INTO `medical_compensation` (`id`, `candidate_id`, `company_id`, `wsc_id`, `candidate_name`, `company_name`, `sick_type`, `doctor_name`, `hospital_name`, `prescription`, `insurance_number`, `insurance_card`, `comments`, `service_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 17, 1, 6, 'Demo name 11', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '19040834', NULL, 'Demo Comments', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(2, 12, 1, 6, 'Demo name 12', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '18510796', NULL, 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(3, 15, 1, 6, 'Demo name 13', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '15781264', NULL, 'Demo Comments', 'Open', '11', NULL, '2022-03-02 15:08:02', NULL),
(4, 17, 1, 6, 'Demo name 14', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '14111253', NULL, 'Demo Comments', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(5, 14, 1, 6, 'Demo name 15', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '16115811', NULL, 'Demo Comments', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(6, 11, 1, 6, 'Demo name 16', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '11193441', NULL, 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(7, 17, 1, 6, 'Demo name 17', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '19140118', NULL, 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(8, 15, 1, 6, 'Demo name 18', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '18458206', NULL, 'Demo Comments', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(9, 18, 1, 6, 'Demo name 19', 'Demon Co. name', 'Fiver / Cold', 'Demo Doctor name', 'Demo Hospital name', NULL, '16635567', NULL, 'Demo Comments', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `meet_and_greets`
--
CREATE TABLE `meet_and_greets` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`guest_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`number_of_guests` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`arrival_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`airline_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`flight_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`flight_time` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`transport_service` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passport_copy` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `meet_and_greets`
--
INSERT INTO `meet_and_greets` (`id`, `candidate_id`, `company_id`, `wsc_id`, `guest_name`, `number_of_guests`, `service_name`, `arrival_date`, `airline_name`, `flight_number`, `flight_time`, `transport_service`, `passport_copy`, `comments`, `active_status`, `created_by`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 11, 8, 6, 'Demo Guest Name11', '7', 'Demo service namwe11', '2022-02-25 21:08:02', 'Qatar Airlines', '1680', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(2, 12, 8, 6, 'Demo Guest Name12', '6', 'Demo service namwe12', '2022-02-25 21:08:02', 'Qatar Airlines', '1584', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(3, 13, 8, 6, 'Demo Guest Name13', '9', 'Demo service namwe13', '2022-02-25 21:08:02', 'Qatar Airlines', '1861', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(4, 14, 8, 6, 'Demo Guest Name14', '5', 'Demo service namwe14', '2022-02-25 21:08:02', 'Qatar Airlines', '1942', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(5, 15, 8, 6, 'Demo Guest Name15', '8', 'Demo service namwe15', '2022-02-25 21:08:02', 'Qatar Airlines', '1388', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(6, 16, 8, 6, 'Demo Guest Name16', '6', 'Demo service namwe16', '2022-02-25 21:08:02', 'Qatar Airlines', '1117', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(7, 17, 8, 6, 'Demo Guest Name17', '7', 'Demo service namwe17', '2022-02-25 21:08:02', 'Qatar Airlines', '1629', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(8, 18, 8, 6, 'Demo Guest Name18', '9', 'Demo service namwe18', '2022-02-25 21:08:02', 'Qatar Airlines', '1324', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', NULL),
(9, 19, 8, 6, 'Demo Guest Name19', '7', 'Demo service namwe19', '2022-02-25 21:08:02', 'Qatar Airlines', '1053', '2022-03-07 21:08:02', 'Demo Data', NULL, 'Demo Comments', 'Active', '6', NULL, '2022-03-02 15:08:02', 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, '2021_07_09_190616_create_countries_table', 1),
(5, '2021_07_09_192125_create_roles_table', 1),
(6, '2021_07_15_080421_create_job_posts_table', 1),
(7, '2021_07_15_190213_create_companies_table', 1),
(8, '2021_07_18_053801_create_job_categories_table', 1),
(9, '2021_07_19_102245_create_awareness_events_table', 1),
(10, '2021_07_19_102326_create_event_categories_table', 1),
(11, '2021_07_26_061922_create_candidates_table', 1),
(12, '2021_07_26_071748_create_applied_jobs_table', 1),
(13, '2021_07_26_111341_create_activated_candidates_table', 1),
(14, '2021_07_26_112159_create_attestation_certificates_table', 1),
(15, '2021_07_26_113110_create_submitted_travel_enquiries_table', 1),
(16, '2021_07_26_114747_create_change_employer_services_table', 1),
(17, '2021_07_31_100253_create_offered_candidates_table', 1),
(18, '2021_07_31_105728_create_lost_passport_services_table', 1),
(19, '2021_07_31_114010_create_change_visa_services_table', 1),
(20, '2021_07_31_120611_create_charity_services_table', 1),
(21, '2021_07_31_134021_create_registration_certificates_table', 1),
(22, '2021_08_01_072656_create_jail_and_deportations_table', 1),
(23, '2021_08_01_075709_create_amnesty_services_table', 1),
(24, '2021_08_01_080833_create_issuance_certificates_table', 1),
(25, '2021_08_01_081552_create_meet_and_greets_table', 1),
(26, '2021_08_01_082949_create_adr_services_table', 1),
(27, '2021_08_01_083323_create_insurance_services_table', 1),
(28, '2021_08_01_084115_create_medical_compensation_table', 1),
(29, '2021_08_01_095920_create_deadbody_transfers_table', 1),
(30, '2021_08_01_101245_create_new_passport_services_table', 1),
(31, '2021_08_01_101851_create_travel_enquiries_table', 1),
(32, '2021_08_01_103402_create_legal_aid_services_table', 1),
(33, '2021_08_01_104242_create_extension_passport_services_table', 1),
(34, '2021_08_01_104932_create_payment_services_table', 1),
(35, '2022_02_15_130658_create_static_options_table', 1),
(36, '2022_02_28_173507_create_notifications_table', 1),
(37, '2022_03_01_163129_create_b_r_a_interests_table', 1),
(38, '2022_03_02_183814_create_job_distribute_in_b_r_a_s_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `new_passport_services`
--
CREATE TABLE `new_passport_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`salary_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`new_offer_application` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`photo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`biometric` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`new_passport` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reject_reason` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `new_passport_services`
--
INSERT INTO `new_passport_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `candidate_name`, `company_name`, `salary_type`, `cpr`, `comments`, `new_offer_application`, `service_status`, `photo`, `biometric`, `fees`, `delivery_type`, `delivery_to`, `delivery_status`, `new_passport`, `reject_reason`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 18, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '46424', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(2, 13, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '49570', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(3, 17, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '16121', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(4, 15, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '36375', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(5, 14, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '29915', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(6, 13, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '47781', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(7, 15, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '49978', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(8, 17, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '41751', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(9, 19, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '46169', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL),
(10, 11, 6, 6, 'Demo Candidate Name', 'Demo Company Name', 'Full Time', '41961', 'Demo Comments', NULL, 'Open', NULL, NULL, 200.00, NULL, NULL, NULL, NULL, NULL, '6', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `notifications`
--
CREATE TABLE `notifications` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`text` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notification_for` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`notification_from` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` int(11) DEFAULT NULL,
`job_post_id` int(11) DEFAULT NULL,
`me_id` int(11) DEFAULT NULL,
`staus` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `offered_candidates`
--
CREATE TABLE `offered_candidates` (
`id` int(10) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`job_post_id` bigint(20) UNSIGNED DEFAULT NULL,
`job_category_id` bigint(20) UNSIGNED DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`interview_osc_id` bigint(20) UNSIGNED DEFAULT NULL,
`selected_osc_id` bigint(20) UNSIGNED DEFAULT NULL,
`post_medical_id` bigint(20) UNSIGNED DEFAULT NULL,
`post_biometric_id` bigint(20) UNSIGNED DEFAULT NULL,
`post_training_id` bigint(20) UNSIGNED DEFAULT NULL,
`travel_agency_id` bigint(20) UNSIGNED DEFAULT NULL,
`welfare_center_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`candidate_user_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_password` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`result_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Selected,Post-Processing,Finalized,Visa-Applied,Visa-Approved,Visa-Rejected,Visa-Stamping-Request,Visa-Stamping-Rejected,Visa-Stamping-Approved',
`active_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`employer_comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`offer_letter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_assigned` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`interview_result` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`biometric_fee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bio_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bio_report` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`post_medical_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'New,Pass,Fail',
`post_training_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'New,Pass,Fail',
`post_medical_report` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`post_training_report` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`medical_fee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`training_fee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`post_medical_comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`post_training_comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`visa_reason` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`travel_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_of_journey` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`flight_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ticket_cost` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ticket_pdf` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`activated_at` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `offered_candidates`
--
INSERT INTO `offered_candidates` (`id`, `candidate_id`, `job_post_id`, `job_category_id`, `created_id`, `interview_osc_id`, `selected_osc_id`, `post_medical_id`, `post_biometric_id`, `post_training_id`, `travel_agency_id`, `welfare_center_id`, `candidate_name`, `phone_number`, `candidate_email`, `candidate_user_id`, `candidate_password`, `result_status`, `active_status`, `employer_comments`, `offer_letter`, `payment_assigned`, `payment_method`, `interview_result`, `biometric_fee`, `bio_status`, `bio_report`, `post_medical_status`, `post_training_status`, `post_medical_report`, `post_training_report`, `medical_fee`, `training_fee`, `post_medical_comments`, `post_training_comments`, `visa_document`, `visa_reason`, `travel_status`, `date_of_journey`, `flight_number`, `ticket_cost`, `ticket_pdf`, `activated_at`, `created_at`, `updated_at`) VALUES
(1, 11, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 11', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'fkM24eliX9', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'New', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(2, 12, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 12', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'ctUclxW1BH', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(3, 13, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 13', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 't0p6imJy40', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(4, 14, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 14', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'jF3DbGhUzr', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(5, 15, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 15', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'Rnh75gLb9R', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(6, 16, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 16', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'XZ0DYGOOxn', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(7, 17, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 17', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'FOBDavIaB3', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(8, 18, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 18', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'WNO6du8FD9', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(9, 19, 21, 8, 8, NULL, 11, 12, NULL, NULL, 3, 6, 'Demo Name 19', '01856230550', '<EMAIL>', NULL, NULL, 'Recommended', NULL, 'uJBb5ILoCT', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'Ticket-Issued', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02');
-- --------------------------------------------------------
--
-- 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 `payment_services`
--
CREATE TABLE `payment_services` (
`id` bigint(20) UNSIGNED NOT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cpr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_application` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`penalty_pdf` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`delivery_charge` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `payment_services`
--
INSERT INTO `payment_services` (`id`, `candidate_id`, `company_id`, `wsc_id`, `service_type`, `cpr`, `comments`, `payment_application`, `service_status`, `penalty_pdf`, `fees`, `delivery_charge`, `delivery_type`, `delivery_to`, `delivery_status`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 12, 8, 6, 'Demo service 11', '348173', 'Demo Comments', NULL, 'Open', NULL, 119.00, '89', 'Door delivery', 'Banani Dhaka', 'Open', '15', NULL, '2022-03-02 15:08:02', NULL),
(2, 16, 8, 6, 'Demo service 12', '495404', 'Demo Comments', NULL, 'Open', NULL, 224.00, '86', 'Door delivery', 'Banani Dhaka', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(3, 15, 8, 6, 'Demo service 13', '424577', 'Demo Comments', NULL, 'Open', NULL, 195.00, '82', 'Door delivery', 'Banani Dhaka', 'Open', '13', NULL, '2022-03-02 15:08:02', NULL),
(4, 16, 8, 6, 'Demo service 14', '199180', 'Demo Comments', NULL, 'Open', NULL, 298.00, '83', 'Door delivery', 'Banani Dhaka', 'Open', '16', NULL, '2022-03-02 15:08:02', NULL),
(5, 13, 8, 6, 'Demo service 15', '121359', 'Demo Comments', NULL, 'Open', NULL, 219.00, '82', 'Door delivery', 'Ban<NAME>haka', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(6, 13, 8, 6, 'Demo service 16', '492884', 'Demo Comments', NULL, 'Open', NULL, 121.00, '83', 'Door delivery', 'Banani Dhaka', 'Open', '19', NULL, '2022-03-02 15:08:02', NULL),
(7, 14, 8, 6, 'Demo service 17', '136717', 'Demo Comments', NULL, 'Open', NULL, 199.00, '83', 'Door delivery', 'Banani Dhaka', 'Open', '12', NULL, '2022-03-02 15:08:02', NULL),
(8, 12, 8, 6, 'Demo service 18', '215826', 'Demo Comments', NULL, 'Open', NULL, 195.00, '82', 'Door delivery', 'Banani Dhaka', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL),
(9, 18, 8, 6, 'Demo service 19', '402691', 'Demo Comments', NULL, 'Open', NULL, 159.00, '89', 'Door delivery', '<NAME>', 'Open', '17', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `registration_certificates`
--
CREATE TABLE `registration_certificates` (
`id` bigint(20) UNSIGNED NOT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`candidate_id` bigint(20) UNSIGNED DEFAULT NULL,
`wsc_id` bigint(20) UNSIGNED DEFAULT NULL,
`service_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_charge` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivery_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fees` double(8,2) DEFAULT NULL,
`created_id` bigint(20) UNSIGNED DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `registration_certificates`
--
INSERT INTO `registration_certificates` (`id`, `company_id`, `candidate_id`, `wsc_id`, `service_type`, `comments`, `service_status`, `delivery_type`, `delivery_charge`, `document`, `delivery_to`, `delivery_status`, `fees`, `created_id`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 8, 16, 6, 'Demo service 11', 'Demo Comments', 'Paid', 'Door delivery', '175', NULL, '<NAME>', '16', 1030.00, 12, NULL, '2022-03-02 15:08:02', NULL),
(2, 8, 15, 6, 'Demo service 12', 'Demo Comments', 'Paid', 'Door delivery', '108', NULL, '<NAME>', '11', 1852.00, 13, NULL, '2022-03-02 15:08:02', NULL),
(3, 8, 11, 6, 'Demo service 13', 'Demo Comments', 'Paid', 'Door delivery', '101', NULL, '<NAME>', '13', 1003.00, 19, NULL, '2022-03-02 15:08:02', NULL),
(4, 8, 15, 6, 'Demo service 14', 'Demo Comments', 'Paid', 'Door delivery', '131', NULL, '<NAME>', '15', 1669.00, 18, NULL, '2022-03-02 15:08:02', NULL),
(5, 8, 19, 6, 'Demo service 15', 'Demo Comments', 'Paid', 'Door delivery', '131', NULL, '<NAME>', '15', 1387.00, 15, NULL, '2022-03-02 15:08:02', NULL),
(6, 8, 18, 6, 'Demo service 16', 'Demo Comments', 'Paid', 'Door delivery', '140', NULL, '<NAME>', '19', 1990.00, 15, NULL, '2022-03-02 15:08:02', NULL),
(7, 8, 15, 6, 'Demo service 17', 'Demo Comments', 'Paid', 'Door delivery', '150', NULL, '<NAME>', '18', 1171.00, 15, NULL, '2022-03-02 15:08:02', NULL),
(8, 8, 19, 6, 'Demo service 18', 'Demo Comments', 'Paid', 'Door delivery', '152', NULL, '<NAME>', '19', 1079.00, 17, NULL, '2022-03-02 15:08:02', NULL),
(9, 8, 19, 6, 'Demo service 19', 'Demo Comments', 'Paid', 'Door delivery', '134', NULL, '<NAME>', '16', 1520.00, 12, NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `slug`, `status`, `created_at`, `updated_at`) VALUES
(1, 'Super admin', 'super-admin', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(2, 'Malaysian Employer', 'malaysian-employer', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(3, 'Welfare service center company', 'welfare-service-center-company', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(4, 'Bangladeshi High Commission', 'bangladesh-high-commission', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(5, 'Master One stop service', 'master-one-stop-service', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(6, 'Child One stop service', 'child-one-stop-service', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(7, 'Medical Agency', 'medical-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(8, 'Training Agency', 'training-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(9, 'travel agency', 'travel-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(10, 'Biometric Agency', 'biometric-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(11, 'Bangladesh Recruiting Agency', 'bangladesh-recruiting-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(12, 'Bangladeshi admin', 'bangladeshi-admin', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(13, 'Employer', 'employer', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(14, 'Malaysia Admin', 'malaysia-admin', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(15, 'Malaysia Embassy', 'malaysia-embassy', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(16, 'Candidate', 'candidate', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(17, 'Malaysia Recruiting Agency', 'malaysia-recruiting-agency', 'active', '2022-03-02 15:08:01', '2022-03-02 15:08:01');
-- --------------------------------------------------------
--
-- Table structure for table `static_options`
--
CREATE TABLE `static_options` (
`id` bigint(20) UNSIGNED NOT NULL,
`option_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`option_value` longtext 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 `static_options`
--
INSERT INTO `static_options` (`id`, `option_name`, `option_value`, `created_at`, `updated_at`) VALUES
(1, 'logo', 'uploads/images/logo.png', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(2, 'no_image', 'uploads/images/setting/no-image.png', '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(3, 'user', 'uploads/images/setting/user.png', '2022-03-02 15:08:01', '2022-03-02 15:08:01');
-- --------------------------------------------------------
--
-- Table structure for table `submitted_travel_enquiries`
--
CREATE TABLE `submitted_travel_enquiries` (
`id` bigint(20) UNSIGNED NOT NULL,
`enquiry_id` bigint(20) UNSIGNED NOT NULL,
`journey_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_tickets` int(11) DEFAULT NULL,
`submitted_cost` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`travel_agency_comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`travel_agency_id` bigint(20) UNSIGNED NOT NULL,
`submitted_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`submitted_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `submitted_travel_enquiries`
--
INSERT INTO `submitted_travel_enquiries` (`id`, `enquiry_id`, `journey_date`, `total_tickets`, `submitted_cost`, `travel_agency_comments`, `travel_agency_id`, `submitted_date`, `submitted_status`, `created_at`, `updated_at`) VALUES
(1, 1, '2022-03-04 21:08:02', 2, '20000', 'Demo Comments', 3, '2022-03-02 21:08:02', 'New', NULL, NULL),
(2, 3, '2022-03-04 21:08:02', 2, '20000', 'Demo Comments', 3, '2022-03-02 21:08:02', 'New', NULL, NULL),
(3, 3, '2022-03-04 21:08:02', 2, '20000', 'Demo Comments', 3, '2022-03-02 21:08:02', 'New', NULL, NULL),
(4, 3, '2022-03-04 21:08:02', 2, '20000', 'Demo Comments', 3, '2022-03-02 21:08:02', 'New', NULL, NULL),
(5, 4, '2022-03-04 21:08:02', 2, '20000', 'Demo Comments', 3, '2022-03-02 21:08:02', 'New', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `travel_enquiries`
--
CREATE TABLE `travel_enquiries` (
`id` bigint(20) UNSIGNED NOT NULL,
`oss_id` bigint(20) UNSIGNED DEFAULT NULL,
`start_point` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`end_point` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tickets_required` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_of_journey` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`end_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`oss_comments` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enquiry_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_date` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `travel_enquiries`
--
INSERT INTO `travel_enquiries` (`id`, `oss_id`, `start_point`, `end_point`, `tickets_required`, `date_of_journey`, `end_date`, `oss_comments`, `enquiry_status`, `created_date`, `deleted`, `created_at`, `updated_at`) VALUES
(1, 11, 'Dh<NAME>', 'Kuala Lumpur, Malaysia', '2', '2022-03-04 21:08:02', '2022-03-09 21:08:02', 'Demo Comment', 'New', '2022-03-02 21:08:02', NULL, '2022-03-02 15:08:02', NULL),
(2, 11, 'Dhaka Bangladesh', 'Kuala Lumpur, Malaysia', '2', '2022-03-04 21:08:02', '2022-03-09 21:08:02', 'Demo Comment', 'New', '2022-03-02 21:08:02', NULL, '2022-03-02 15:08:02', NULL),
(3, 11, 'Dhaka Bangladesh', 'Kuala Lumpur, Malaysia', '2', '2022-03-04 21:08:02', '2022-03-09 21:08:02', 'Demo Comment', 'New', '2022-03-02 21:08:02', NULL, '2022-03-02 15:08:02', NULL),
(4, 11, 'Dhaka Bangladesh', 'Kuala Lumpur, Malaysia', '2', '2022-03-04 21:08:02', '2022-03-09 21:08:02', 'Demo Comment', 'New', '2022-03-02 21:08:02', NULL, '2022-03-02 15:08:02', NULL),
(5, 11, 'Dhaka Bangladesh', 'Kuala Lumpur, Malaysia', '2', '2022-03-04 21:08:02', '2022-03-09 21:08:02', 'Demo Comment', 'New', '2022-03-02 21:08:02', NULL, '2022-03-02 15:08:02', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL,
`country_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,
`user_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`active_status` enum('New','Pending','Approved','Rejected') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'New',
`quata` int(11) DEFAULT NULL,
`domain` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_register_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`abbr` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address1` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address2` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document1` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document2` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('active','inactive') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`childosc_id` int(11) DEFAULT NULL,
`cosc_assigned_status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 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`, `role_id`, `country_id`, `name`, `email`, `email_verified_at`, `password`, `user_type`, `active_status`, `quata`, `domain`, `company_name`, `company_register_number`, `abbr`, `phone`, `city`, `state`, `address1`, `address2`, `logo`, `document1`, `document2`, `status`, `childosc_id`, `cosc_assigned_status`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 'Super admin', '<EMAIL>', NULL, '$2y$10$kezvfN6he1cs5oQrQfnmn.rMKeLi/vhMlmmLFQM3D7FvZJKmYy0AG', 'super-admin', 'Approved', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(2, 12, 2, 'Bangladesh admin', '<EMAIL>', NULL, '$2y$10$zXxVw6lGFRxF5zroPXOXIu6rjqt9EJBtbqH5ol4io.epLJ47bz84W', 'bangladeshi-admin', 'Approved', NULL, NULL, 'Bangladesh admin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(3, 9, 2, 'Travel Agency', '<EMAIL>', NULL, '$2y$10$MkdApLu2LIhdk7z6zJlso.UGxYL/8kEzrlSCL2sywinqyDU9cj8Ty', 'travel-agency', 'Approved', NULL, NULL, 'Travel Agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(4, 10, 2, 'Biometric Agency', '<EMAIL>', NULL, '$2y$10$DztbeQtv5k3P/ycBOsL2fOfoWXwK5kIioTe0wouHMboEAwTc/0gva', 'biometric-agency', 'Approved', NULL, NULL, 'Biometric Agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(5, 11, 2, 'Bangladesh Recruiting agency', '<EMAIL>', NULL, '$2y$10$89rtuZFijN6jXJUsKc7Uxexg/FxPY8SsXR7y01FnwailM3alzHsb.', 'bangladesh-recruiting-agency', 'Approved', NULL, NULL, 'Bangladesh Recruiting agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(6, 3, 2, 'Welfare sevice centre', '<EMAIL>', NULL, '$2y$10$Cb7pR1toN.UIUPft6UNTdOfbfuUddSB.k3yDje4mym.Ssb6zqb9gy', 'welfare-service-center-company', 'Approved', NULL, NULL, 'Welfare sevice centre', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(7, 5, 2, 'Master One stop service', '<EMAIL>', NULL, '$2y$10$qcSF.HRmWuaGPtRccAoiTOwTNxm7HbHUP3GZHIIdna4.JaXtDxQMm', 'master-one-stop-service', 'Approved', NULL, NULL, 'Master One stop service', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(8, 2, 2, '<NAME>', '<EMAIL>', NULL, '$2y$10$Qn4mIgl37L/8GU0bm4B2uu1nLLi9C5KuJwqgChF/9pTpKErM2qwHW', 'malaysian-employer', 'Approved', NULL, NULL, 'Malaysian Employer', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(9, 4, 2, 'Bangladesh High Commission ', '<EMAIL>', NULL, '$2y$10$ROv5VKGWihK53izKbHDRzO463Ix6prcv085qbTnRbT4lA33126qVG', 'bangladesh-high-commission', 'Approved', NULL, NULL, 'Bangladesh High Commission ', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(10, 14, 2, 'Malaysia Admin', '<EMAIL>', NULL, '$2y$10$k6BXEWx0LKO7r4pYb37bI.8VQ9P4/40l4HbQ2.Os8tKQFWHka9By6', 'malaysia-admin', 'Approved', NULL, NULL, 'Malaysia Admin', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(11, 6, 2, 'Child One Stop Service', '<EMAIL>', NULL, '$2y$10$7g0MEt.tL3kOW2ox7wCrt.Cj44AUnpdUvZKM98kZgZFm7JyEPV.gS', 'child-one-stop-service', 'Approved', NULL, NULL, 'Child One Stop Service', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(12, 7, 2, 'Medical Agency', '<EMAIL>', NULL, '$2y$10$EORVM98FMr/V15CIt6mvbOlEoSQ/izcqfBDqOLDzRFnaTwCFqE7Ma', 'medical-agency', 'Approved', NULL, NULL, 'Medical Agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, '2022-03-02 15:08:01', '2022-03-02 15:08:01'),
(13, 8, 2, 'Training Agency', '<EMAIL>', NULL, '$2y$10$5pFn9tMCo092zzNktZmgKetD4wr0Iiw/efEPfcWYy0SOK4bus2.l.', 'training-agency', 'Approved', NULL, NULL, 'Training Agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 11, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(14, 15, 2, 'Malaysia Embassy', '<EMAIL>', NULL, '$2y$10$A6POGRnB4vw0/fhFOoM2buQPt2WlYhMd/n1uJcAWp.qw4HuxlKJYa', 'malaysia-embassy', 'Approved', NULL, NULL, 'Malaysia Embassy', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(15, 16, 2, 'Candidate', '<EMAIL>', NULL, '$2y$10$GhzaNTJvPQ3Dt4b9uV9mhu4/HHQsL6Q9N4V0d0z.5Kb/8zzgEWSyO', 'candidate', 'Approved', NULL, NULL, 'Candidate', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(16, 17, 2, 'Malaysia Recruiting Agency', '<EMAIL>', NULL, '$2y$10$b19Q76XIB7q2BMZlYaahFuP65dPaxO/0orhC/bPldde36W8j4c8ou', 'malaysia-recruiting-agency', 'Approved', NULL, NULL, 'Malaysia Recruiting Agency', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02'),
(17, 11, 18, 'Sonet Recruiting Agency BD', '<EMAIL>', NULL, '$2y$10$Ee7H9ek6VvlwjlwzFv8IUOmx6dXmQgr1IhIkmrCdW/fMWoVr3h3L2', 'bangladesh-recruiting-agency', 'Approved', NULL, 'srab.com', 'Sonet Recruiting Agency BD', '1313164', 'Sonet Recruiting Agency BD', '01487984654987', 'Dhaka', 'Dhaka', 'Dhaka fokirapul', 'Dkaha banglamotor', 'uploads/profile/vogkW72ZyKCZX5D50xjm-1646218057.png', 'uploads/profile/VRlWh9l1mzJVK2GyvZZ0-1646218058.pdf', NULL, NULL, NULL, NULL, NULL, '2022-03-02 15:08:02', '2022-03-02 15:08:02');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `activated_candidates`
--
ALTER TABLE `activated_candidates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `adr_services`
--
ALTER TABLE `adr_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `amnesty_services`
--
ALTER TABLE `amnesty_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `applied_jobs`
--
ALTER TABLE `applied_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `attestation_certificates`
--
ALTER TABLE `attestation_certificates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `awareness_events`
--
ALTER TABLE `awareness_events`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `b_r_a_interests`
--
ALTER TABLE `b_r_a_interests`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `candidates`
--
ALTER TABLE `candidates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `change_employer_services`
--
ALTER TABLE `change_employer_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `change_visa_services`
--
ALTER TABLE `change_visa_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `charity_services`
--
ALTER TABLE `charity_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `countries_country_name_unique` (`country_name`),
ADD UNIQUE KEY `countries_country_code_unique` (`country_code`);
--
-- Indexes for table `deadbody_transfers`
--
ALTER TABLE `deadbody_transfers`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `event_categories`
--
ALTER TABLE `event_categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `extension_passport_services`
--
ALTER TABLE `extension_passport_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `insurance_services`
--
ALTER TABLE `insurance_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `issuance_certificates`
--
ALTER TABLE `issuance_certificates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jail_and_deportations`
--
ALTER TABLE `jail_and_deportations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `job_categories`
--
ALTER TABLE `job_categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `job_distribute_in_b_r_a_s`
--
ALTER TABLE `job_distribute_in_b_r_a_s`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `job_posts`
--
ALTER TABLE `job_posts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `legal_aid_services`
--
ALTER TABLE `legal_aid_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `lost_passport_services`
--
ALTER TABLE `lost_passport_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `medical_compensation`
--
ALTER TABLE `medical_compensation`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `meet_and_greets`
--
ALTER TABLE `meet_and_greets`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `new_passport_services`
--
ALTER TABLE `new_passport_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `offered_candidates`
--
ALTER TABLE `offered_candidates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `payment_services`
--
ALTER TABLE `payment_services`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `registration_certificates`
--
ALTER TABLE `registration_certificates`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `roles_name_unique` (`name`);
--
-- Indexes for table `static_options`
--
ALTER TABLE `static_options`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `submitted_travel_enquiries`
--
ALTER TABLE `submitted_travel_enquiries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `travel_enquiries`
--
ALTER TABLE `travel_enquiries`
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 `activated_candidates`
--
ALTER TABLE `activated_candidates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `adr_services`
--
ALTER TABLE `adr_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `amnesty_services`
--
ALTER TABLE `amnesty_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `applied_jobs`
--
ALTER TABLE `applied_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `attestation_certificates`
--
ALTER TABLE `attestation_certificates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `awareness_events`
--
ALTER TABLE `awareness_events`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `b_r_a_interests`
--
ALTER TABLE `b_r_a_interests`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `candidates`
--
ALTER TABLE `candidates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `change_employer_services`
--
ALTER TABLE `change_employer_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `change_visa_services`
--
ALTER TABLE `change_visa_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `charity_services`
--
ALTER TABLE `charity_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=248;
--
-- AUTO_INCREMENT for table `deadbody_transfers`
--
ALTER TABLE `deadbody_transfers`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `event_categories`
--
ALTER TABLE `event_categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `extension_passport_services`
--
ALTER TABLE `extension_passport_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `insurance_services`
--
ALTER TABLE `insurance_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `issuance_certificates`
--
ALTER TABLE `issuance_certificates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `jail_and_deportations`
--
ALTER TABLE `jail_and_deportations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `job_categories`
--
ALTER TABLE `job_categories`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `job_distribute_in_b_r_a_s`
--
ALTER TABLE `job_distribute_in_b_r_a_s`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `job_posts`
--
ALTER TABLE `job_posts`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `legal_aid_services`
--
ALTER TABLE `legal_aid_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `lost_passport_services`
--
ALTER TABLE `lost_passport_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `medical_compensation`
--
ALTER TABLE `medical_compensation`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `meet_and_greets`
--
ALTER TABLE `meet_and_greets`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
--
-- AUTO_INCREMENT for table `new_passport_services`
--
ALTER TABLE `new_passport_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `notifications`
--
ALTER TABLE `notifications`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `offered_candidates`
--
ALTER TABLE `offered_candidates`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `payment_services`
--
ALTER TABLE `payment_services`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `registration_certificates`
--
ALTER TABLE `registration_certificates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `static_options`
--
ALTER TABLE `static_options`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `submitted_travel_enquiries`
--
ALTER TABLE `submitted_travel_enquiries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `travel_enquiries`
--
ALTER TABLE `travel_enquiries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
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 */;
|
-- This file and its contents are licensed under the Timescale License.
-- Please see the included NOTICE for copyright information and
-- LICENSE-TIMESCALE for a copy of the license.
\c :TEST_DBNAME :ROLE_SUPERUSER
--
-- Check that drop chunks with a unique constraint works as expected.
--
CREATE TABLE clients (
id SERIAL PRIMARY KEY,
name TEXT NOT NULL,
UNIQUE(name)
);
CREATE TABLE records (
time TIMESTAMPTZ NOT NULL,
clientId INT NOT NULL REFERENCES clients(id),
value DOUBLE PRECISION,
UNIQUE(time, clientId)
);
SELECT * FROM create_hypertable('records', 'time',
chunk_time_interval => INTERVAL '1h');
CREATE MATERIALIZED VIEW records_monthly
WITH (timescaledb.continuous)
AS
SELECT time_bucket('1d', time) as bucket,
clientId,
avg(value) as value_avg,
max(value)-min(value) as value_spread
FROM records GROUP BY bucket, clientId WITH NO DATA;
INSERT INTO clients(name) VALUES ('test-client');
INSERT INTO records
SELECT generate_series('2000-03-01'::timestamptz,'2000-04-01','1 day'),1,3.14;
SELECT * FROM records_monthly;
SELECT chunk_name, range_start, range_end
FROM timescaledb_information.chunks
WHERE hypertable_name = 'records_monthly' ORDER BY range_start;
SELECT chunk_name, range_start, range_end
FROM timescaledb_information.chunks
WHERE hypertable_name = 'records' ORDER BY range_start;
CALL refresh_continuous_aggregate('records_monthly', NULL, NULL);
\set VERBOSITY default
SELECT drop_chunks('records', '2000-03-16'::timestamptz);
\set VERBOSITY terse
DROP MATERIALIZED VIEW records_monthly;
DROP TABLE records;
DROP TABLE clients;
\set VERBOSITY default
CREATE PROCEDURE refresh_cagg_by_chunk_range(_cagg REGCLASS, _hypertable REGCLASS, _older_than INTEGER)
AS
$$
DECLARE
_r RECORD;
BEGIN
WITH _chunks AS (
SELECT relname, nspname
FROM show_chunks(_hypertable, _older_than) AS relid
JOIN pg_catalog.pg_class ON pg_class.oid = relid AND pg_class.relkind = 'r'
JOIN pg_catalog.pg_namespace ON pg_namespace.oid = pg_class.relnamespace
)
SELECT MIN(range_start) AS range_start, MAX(range_end) AS range_end
INTO _r
FROM
_chunks
JOIN _timescaledb_catalog.chunk ON chunk.schema_name = _chunks.nspname AND chunk.table_name = _chunks.relname
JOIN _timescaledb_catalog.chunk_constraint ON chunk_id = chunk.id
JOIN _timescaledb_catalog.dimension_slice ON dimension_slice.id = dimension_slice_id;
RAISE INFO 'range_start=% range_end=%', _r.range_start::int, _r.range_end::int;
CALL refresh_continuous_aggregate(_cagg, _r.range_start::int, _r.range_end::int + 1);
END;
$$
LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION test_int_now() returns INT LANGUAGE SQL STABLE as
$$ SELECT 125 $$;
CREATE TABLE conditions(time_int INT NOT NULL, value FLOAT);
SELECT create_hypertable('conditions', 'time_int', chunk_time_interval => 4);
INSERT INTO conditions
SELECT time_val, 1 FROM generate_series(0, 19, 1) AS time_val;
SELECT set_integer_now_func('conditions', 'test_int_now');
CREATE MATERIALIZED VIEW conditions_2
WITH (timescaledb.continuous, timescaledb.materialized_only = TRUE)
AS
SELECT time_bucket(2, time_int) as bucket,
SUM(value), COUNT(value)
FROM conditions GROUP BY bucket WITH DATA;
SELECT * FROM conditions_2 ORDER BY bucket;
UPDATE conditions SET value = 4.00 WHERE time_int = 0;
UPDATE conditions SET value = 4.00 WHERE time_int = 6;
CALL refresh_cagg_by_chunk_range('conditions_2', 'conditions', 4);
SELECT drop_chunks('conditions', 4);
SELECT * FROM conditions_2 ORDER BY bucket;
CALL refresh_cagg_by_chunk_range('conditions_2', 'conditions', 8);
SELECT * FROM conditions_2 ORDER BY bucket;
UPDATE conditions SET value = 4.00 WHERE time_int = 19;
SELECT drop_chunks('conditions', 8);
CALL refresh_cagg_by_chunk_range('conditions_2', 'conditions', 12);
SELECT * FROM conditions_2 ORDER BY bucket;
CALL refresh_cagg_by_chunk_range('conditions_2', 'conditions', NULL);
SELECT * FROM conditions_2 ORDER BY bucket;
DROP PROCEDURE refresh_cagg_by_chunk_range(REGCLASS, REGCLASS, INTEGER);
|
<reponame>uttam17/dbt_stripe
with charge as (
select *
from {{ ref('stg_stripe__charge')}}
)
select
created_at,
customer_id,
amount
from charge
where not is_captured
|
CREATE ROLE ockovani WITH
LOGIN
NOSUPERUSER
NOCREATEDB
NOCREATEROLE
INHERIT
NOREPLICATION
CONNECTION LIMIT -1
PASSWORD '<PASSWORD>';
CREATE DATABASE ockovani
WITH
OWNER = ockovani
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
|
SELECT
c.date as status_date,
h1.start_date,
h1.rx_expire_date,
rxno,
refill_status,
doctor_id,
patient_id,
drug_id,
days_supply,
date_part('year',h1.start_date ) = date_part('year',c.date ) as current_calendar
FROM {{ ref('dim_calendar_monthly')}} c
left join {{ ref('calc_refill_status_history')}} h1 on (h1.rxno,h1.status_date)
in(
select h2.rxno, max(status_date)
from {{ ref('calc_refill_status_history')}} h2
where h2.status_date <=c.date
and h1.rxno=h2.rxno
group by h2.rxno)
where h1.refill_status='Open'
union all
SELECT
c.date as status_date,
h1.start_date,
h1.rx_expire_date,
rxno,
refill_status,
doctor_id,
patient_id,
drug_id,
days_supply,
date_part('year',h1.start_date ) = date_part('year',c.date ) as current_calendar
from {{ ref('calc_refill_status_history')}} h1
join{{ ref('dim_calendar_monthly')}} c on c.date =
(select max(d.date) from {{ ref('dim_calendar_monthly')}} d
where d.date<=h1.status_date)
where
refill_status in ('Expired','Complete','Lost') |
declare b1 bool = true;
declare b2 boolean = false;
set b1 = false;
set b2 = true;
if b2 then
print 'ok';
else
print 'failed';
end if;
print b1;
print b2; |
USE [RailWaySystemDB]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- Inserting a new driver into the DB
Create Procedure get_emp_id_userId
@UserID int
As
Begin
-- Inserting Driver's basic info in the Employee table
-- Inserting the Driver into the Driver table
select EmployeeID from dbo.[USER] where dbo.[USER].ID=@UserID
End
Go
|
library CDSiSupportingData version '1'
using FHIR version '4.0.0'
using CDSI version '1.0.0'
include FHIRHelpers version '4.0.0' called FHIRHelpers
parameter AntigenSupportingData CDSI.AntigenSupportingData
parameter AntigenAncillaryData Tuple{series List<Tuple{seriesName String, primarySeriesNumberDoses Integer}>}
context Patient
define "Immunizations":
[Immunization] immunization
sort by (occurrence as FHIR.dateTime) asc
define "Run":
"EvaluateAllSeries"
define "EvaluateAllSeries":
AntigenSupportingData.series series
where series.seriesType != 'Risk'
return Tuple {
seriesName: series.seriesName,
complete: ("EvaluateSeries"(series.seriesName, series.selectSeries, series.seriesDose)).where(validPrimarySeries = true)
}
define function "EvaluateSeries" (seriesName String,
selectSeries CDSI.SelectSeries,
seriesDoses List<CDSI.SeriesDose>):
"Immunizations" immunization
aggregate all R starting (List{} as List<Tuple{startingImmunizationIndex Integer, validPrimarySeries Boolean }>):
R union ({
immunization X
let startingImmunizationIndex: Count(R),
doseEvaluations: "EvaluateSeriesDoses"(selectSeries, seriesDoses, startingImmunizationIndex)
return(
Tuple {
startingImmunizationIndex: startingImmunizationIndex,
validPrimarySeries: IsValidPrimarySeries(seriesName, seriesDoses, doseEvaluations),
doses: doseEvaluations.where(validDose = true)
}
)
})
define function "EvaluateSeriesDoses" (selectSeries CDSI.SelectSeries,
seriesDoses List<CDSI.SeriesDose>,
startingImmunizationIndex Integer):
seriesDoses seriesDose
aggregate all R starting (List{} as List<Tuple{immunizationIndex Integer, doseIndex Integer, doseNumber String, validDose Boolean }>):
R union ({
seriesDose X
let previousValidDoseIndex: if Count(R)>0 then (Last(R.where(validDose = true))).doseIndex else -1,
previousValidImmunizationIndex: if Count(R)>0 then (Last(R.where(validDose = true))).immunizationIndex else -1,
currentDoseIndex: Count(R),
doseImmunizationEvaluations: "EvaluateSeriesDose"(selectSeries, seriesDose, currentDoseIndex, startingImmunizationIndex, previousValidDoseIndex, previousValidImmunizationIndex)
return(
if First(doseImmunizationEvaluations.where(validDose = true)) is not null
then First(doseImmunizationEvaluations.where(validDose = true))
else if First(doseImmunizationEvaluations.where(validDose is not null and validDose = false)) is not null
then First(doseImmunizationEvaluations.where(validDose is not null and validDose = false))
else if previousValidImmunizationIndex is not null and First(doseImmunizationEvaluations.where(immunizationIndex > previousValidImmunizationIndex)) is not null
then First(doseImmunizationEvaluations.where(immunizationIndex > previousValidImmunizationIndex))
else First(doseImmunizationEvaluations)
)
})
define function "EvaluateSeriesDose" (selectSeries CDSI.SelectSeries,
seriesDose CDSI.SeriesDose,
currentDoseIndex Integer, startingImmunizationIndex Integer, previousValidDoseIndex Integer, previousValidImmunizationIndex Integer):
("Immunizations".skip(startingImmunizationIndex)) immunization
aggregate all R starting (List{} as List<Tuple{doseNumber String, doseIndex Integer, immunizationIndex Integer, immunization FHIR.Immunization, validDose Boolean }>):
R union ({
immunization X
let currentImmunizationIndex: Count(R) + startingImmunizationIndex
return(
EvaluateSeriesDoseImmunization(selectSeries, seriesDose, currentDoseIndex, currentImmunizationIndex, previousValidDoseIndex, previousValidImmunizationIndex)
)
})
define function "EvaluateSeriesDoseImmunization" (selectSeries CDSI.SelectSeries,
seriesDose CDSI.SeriesDose,
currentDoseIndex Integer, currentImmunizationIndex Integer, previousValidDoseIndex Integer, previousValidImmunizationIndex Integer):
if currentImmunizationIndex >= Count("Immunizations")
then Tuple {
doseNumber: seriesDose.doseNumber,
doseIndex: currentDoseIndex,
immunizationIndex: null,
immunization: null,
validDose: null
}
else if previousValidDoseIndex is null or (previousValidImmunizationIndex is not null and currentImmunizationIndex <= previousValidImmunizationIndex)
then Tuple {
doseNumber: seriesDose.doseNumber,
doseIndex: currentDoseIndex,
immunizationIndex: currentImmunizationIndex,
immunization: "Immunizations"[currentImmunizationIndex],
validDose: null
}
else
Tuple {
doseNumber: seriesDose.doseNumber,
doseIndex: currentDoseIndex,
immunizationIndex: currentImmunizationIndex,
immunization: "Immunizations"[currentImmunizationIndex],
validDose: "IsValidSeriesDose"(selectSeries, seriesDose, "Immunizations"[currentImmunizationIndex], "Immunizations"[previousValidImmunizationIndex])
}
define function "IsValidSeriesDose" (selectSeries CDSI.SelectSeries,
seriesDose CDSI.SeriesDose,
immunization FHIR.Immunization,
previousImmunization FHIR.Immunization):
(previousImmunization is not null or "IsValidSeriesAgeToStart"(selectSeries, immunization))
and "IsValidAllowableVaccine"(seriesDose.allowableVaccine, immunization)
and "IsValidAllowableInterval"(seriesDose.allowableInterval, immunization, previousImmunization)
and "IsValidAllowableAge"(seriesDose.age, immunization)
define function "IsValidSeriesAgeToStart"(selectSeries CDSI.SelectSeries,
immunization FHIR.Immunization):
if (selectSeries.minAgeToStart.value is not null and selectSeries.minAgeToStart.unit is null)
or (selectSeries.maxAgeToStart.value is not null and selectSeries.maxAgeToStart.unit is null)
then null
else
(selectSeries.minAgeToStart.value is null
or AgeInUnitsAt(selectSeries.minAgeToStart.unit, immunization.occurrence) >= selectSeries.minAgeToStart.value)
and (selectSeries.maxAgeToStart.value is null
or AgeInUnitsAt(selectSeries.maxAgeToStart.unit, immunization.occurrence) < selectSeries.maxAgeToStart.value)
define function "IsValidAllowableVaccine" (allowableVaccine List<CDSI.SeriesDose.AllowableVaccine>,
immunization FHIR.Immunization) returns Boolean:
exists(
flatten(immunization.vaccineCode.coding coding
where coding.system = 'http://hl7.org/fhir/sid/cvx'
return(allowableVaccine av
where coding.code = av.cvx
and (av.beginAge.value is null
or AgeInUnitsAt(av.beginAge.unit, immunization.occurrence) >= av.beginAge.value)
and (av.endAge.value is null
or AgeInUnitsAt(av.endAge.unit, immunization.occurrence) < av.endAge.value)
)
)
)
define function "IsValidAllowableInterval" (allowableInterval List<CDSI.SeriesDose.AllowableInterval>,
immunization FHIR.Immunization,
previousImmunization FHIR.Immunization) returns Boolean:
if Count(allowableInterval) = 0
or Count(First(allowableInterval.where(fromPrevious = 'Y'))) = 0
or First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.value is null
or previousImmunization is null
then
true
else
case First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.unit
when 'd' then difference in days between (previousImmunization.occurrence as FHIR.dateTime) and (immunization.occurrence as FHIR.dateTime)
>= First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.value
when 'wk' then difference in weeks between (previousImmunization.occurrence as FHIR.dateTime) and (immunization.occurrence as FHIR.dateTime)
>= First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.value
when 'mo' then difference in months between (previousImmunization.occurrence as FHIR.dateTime) and (immunization.occurrence as FHIR.dateTime)
>= First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.value
when 'a' then difference in years between (previousImmunization.occurrence as FHIR.dateTime) and (immunization.occurrence as FHIR.dateTime)
>= First(allowableInterval.where(fromPrevious = 'Y')).absMinInt.value
else null
end
define function "IsValidAllowableAge" (age CDSI.SeriesDose.Age,
immunization FHIR.Immunization):
if Count(age) = 0
or age.absMinAge.value is null
then true
else if age.absMinAge.unit is not null
then AgeInUnitsAt(age.absMinAge.unit, immunization.occurrence) >= age.absMinAge.value
else null
define function "IsValidPrimarySeries" (primarySeriesName String,
seriesDoses List<CDSI.SeriesDose>,
doseEvaluations List<Tuple{doseNumber String, doseIndex Integer,
immunizationIndex Integer, validDose Boolean }>):
Count(doseEvaluations.where(validDose = true)) >= First(AntigenAncillaryData.series.where(seriesName = primarySeriesName)).primarySeriesNumberDoses
define function "AgeInUnitsAt"(unit String, atDate FHIR.dateTime):
case unit
when 'd' then AgeInDaysAt(atDate as FHIR.dateTime)
when 'wk' then AgeInWeeksAt(atDate as FHIR.dateTime)
when 'mo' then AgeInMonthsAt(atDate as FHIR.dateTime)
when 'a' then AgeInYearsAt(atDate as FHIR.dateTime)
else null
end |
CREATE TABLE IF NOT EXISTS Bots (
UserId varchar(26) NOT NULL,
Description text,
OwnerId varchar(190) DEFAULT NULL,
CreateAt bigint(20) DEFAULT NULL,
UpdateAt bigint(20) DEFAULT NULL,
DeleteAt bigint(20) DEFAULT NULL,
PRIMARY KEY (UserId)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
SET @preparedStatement = (SELECT IF(
(
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS
WHERE table_name = 'Bots'
AND table_schema = DATABASE()
AND column_name = 'LastIconUpdate'
) > 0,
'SELECT 1',
'ALTER TABLE Bots ADD LastIconUpdate bigint;'
));
PREPARE alterIfNotExists FROM @preparedStatement;
EXECUTE alterIfNotExists;
DEALLOCATE PREPARE alterIfNotExists;
|
/*
SQLyog Ultimate v11.24 (32 bit)
MySQL - 5.6.11 : Database - zt
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`zt` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `zt`;
/*Table structure for table `zt_category` */
DROP TABLE IF EXISTS `zt_category`;
CREATE TABLE `zt_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`pid` int(11) NOT NULL COMMENT '父亲',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='分类';
/*Data for the table `zt_category` */
insert into `zt_category`(`id`,`name`,`pid`) values (1,'生活用品',0),(2,'电子数码',0),(3,'辅助教材',0);
/*Table structure for table `zt_content` */
DROP TABLE IF EXISTS `zt_content`;
CREATE TABLE `zt_content` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`news_id` int(11) NOT NULL COMMENT '所属条目id',
`content` text CHARACTER SET utf8mb4 NOT NULL COMMENT '内容',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='内容';
/*Data for the table `zt_content` */
insert into `zt_content`(`id`,`news_id`,`content`) values (5,5,'<p>阿什顿飞大<span style="text-decoration: underline;">水法的说法</span><br/></p>');
/*Table structure for table `zt_news` */
DROP TABLE IF EXISTS `zt_news`;
CREATE TABLE `zt_news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL COMMENT '标题',
`keyword` varchar(50) NOT NULL COMMENT '关键字',
`description` varchar(200) NOT NULL COMMENT '描述',
`price` int(11) NOT NULL COMMENT '价格(单位:分)',
`img` varchar(100) NOT NULL COMMENT '主图',
`category_id` int(11) NOT NULL COMMENT '分类id',
`neworold` int(1) NOT NULL DEFAULT '0' COMMENT '新旧程度 0:少于五成新',
`user_id` int(11) NOT NULL COMMENT '用户id',
`show_count` int(11) NOT NULL COMMENT '浏览次数',
`is_top` int(1) NOT NULL COMMENT '置顶',
`is_del` int(1) NOT NULL COMMENT '删除',
`created` int(11) NOT NULL COMMENT '创建时间',
`updated` int(11) NOT NULL COMMENT '更改时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COMMENT='发布内容';
/*Data for the table `zt_news` */
insert into `zt_news`(`id`,`title`,`keyword`,`description`,`price`,`img`,`category_id`,`neworold`,`user_id`,`show_count`,`is_top`,`is_del`,`created`,`updated`) values (5,'123','桌子,木头','温柔啊地方',13,'',1,9,1,0,0,0,1444225890,0);
/*Table structure for table `zt_user` */
DROP TABLE IF EXISTS `zt_user`;
CREATE TABLE `zt_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(50) NOT NULL DEFAULT '0' COMMENT '邮件地址',
`password` varchar(100) NOT NULL DEFAULT '0' COMMENT '密码',
`nickname` varchar(50) NOT NULL DEFAULT '0' COMMENT '昵称',
`phone` int(11) NOT NULL DEFAULT '0' COMMENT '电话',
`class` varchar(50) NOT NULL DEFAULT '0' COMMENT '班级',
`status` int(11) NOT NULL DEFAULT '0' COMMENT '状态',
`lastlogintime` int(11) NOT NULL DEFAULT '0' COMMENT '最后登录时间',
`created` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`updated` int(11) NOT NULL DEFAULT '0' COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 CHECKSUM=1 DELAY_KEY_WRITE=1 ROW_FORMAT=DYNAMIC COMMENT='用户表';
/*Data for the table `zt_user` */
insert into `zt_user`(`id`,`email`,`password`,`nickname`,`phone`,`class`,`status`,`lastlogintime`,`created`,`updated`) values (4,'<EMAIL>','<PASSWORD>','0',0,'0',0,0,1444227754,0),(3,'<EMAIL>','<PASSWORD>','0',0,'0',0,0,0,0);
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<filename>sql/_24_aprium_qa/_02_sql_extension/issue_9488_round_date/cases/round_date_datetime.sql
--pass datetime type/format argument
--TEST: pass only one argument
select round(datetime'1999-12-20 15:23:56.345');
select round('12/20/1999 15:23:56.345');
--TEST: pass datetime type argument, select directly
select round(datetime'1999-12-20 15:23:56.345', 'yyyy');
select round(datetime'1999-12-20 15:23:56.345', 'yy');
select round(datetime'12/20/1999 15:23:56.345', 'q');
select round(datetime'1999-12-20 15:23:56.345', 'mm');
select round(datetime'1999-12-20 15:23:56.345', 'month');
select round(datetime'1999-12-20 15:23:56.345', 'mon');
select round(datetime'1999-12-20 15:23:56.345', 'dd');
select round(datetime'1999-12-20 15:23:56.345', 'day');
select round(datetime'1999-12-20 15:23:56.345', 'dy');
select round(datetime'1999-12-20 15:23:56.345', 'd');
select round(datetime'1999-12-20 15:23:56.345', 'hh');
select round(datetime'1999-12-20 15:23:56.345', 'hh12');
select round(datetime'1999-12-20 15:23:56.345', 'mi');
select round(datetime'1999-12-20 15:23:56.345', 'ss');
select round(datetime'1999-12-20 15:23:56.345', 'ff');
--TEST: pass datetime format string argument, select directly
select round('1999-12-20 15:23:56.345', 'yyyy');
select round('1999-12-20 15:23:56.345', 'yy');
select round('12/20/1999 15:23:56.345', 'q');
select round('1999-12-20 15:23:56.345', 'mm');
select round('1999-12-20 15:23:56.345', 'month');
select round('1999-12-20 15:23:56.345', 'mon');
select round('1999-12-20 15:23:56.345', 'dd');
select round('1999-12-20 15:23:56.345', 'day');
select round('1999-12-20 15:23:56.345', 'dy');
select round('1999-12-20 15:23:56.345', 'd');
select round('1999-12-20 15:23:56.345', 'hh');
select round('1999-12-20 15:23:56.345', 'hh12');
select round('1999-12-20 15:23:56.345', 'mi');
select round('1999-12-20 15:23:56.345', 'ss');
select round('1999-12-20 15:23:56.345', 'ff');
--TEST: select from a table
create table round_datetime(
col1 datetime,
col2 datetime not null
);
insert into round_datetime values(datetime'05/13/2020 10:24:06.789 AM', '05/13/2020 10:24:06.789 am');
insert into round_datetime values(datetime'11/05/1987 10:24:06.789 PM', '1987-11-05 10:24:06.789 pm');
--TEST: pass datetime format string argument, select directly
select round(col1, 'yyyy'), round(col2, 'yyyy') from round_datetime;
select round(col1, 'yy'), round(col2, 'yy') from round_datetime;
select round(col1, 'q'), round(col2, 'q') from round_datetime;
select round(col1, 'mm'), round(col2, 'mm') from round_datetime;
select round(col1, 'month'), round(col2, 'month') from round_datetime;
select round(col1, 'mon'), round(col2, 'mon') from round_datetime;
select round(col1, 'dd'), round(col2, 'dd') from round_datetime;
select round(col1, 'day'), round(col2, 'day') from round_datetime;
select round(col1, 'dy'), round(col2, 'dy') from round_datetime;
select round(col1, 'd'), round(col2, 'd') from round_datetime;
select round(col1, 'hh'), round(col2, 'hh') from round_datetime;
select round(col1, 'hh12'), round(col2, 'hh24') from round_datetime;
select round(col1, 'mi'), round(col2, 'mi') from round_datetime;
select round(col1, 'ss'), round(col2, 'ss') from round_datetime;
select round(col1, 'ff'), round(col2, 'ff') from round_datetime;
drop table round_datetime;
|
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 15-Mar-2021 às 00:26
-- Versão do servidor: 10.4.11-MariaDB
-- versão do PHP: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Banco de dados: `delta`
--
CREATE DATABASE IF NOT EXISTS `delta` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `delta`;
-- --------------------------------------------------------
--
-- Estrutura da tabela `aluno`
--
CREATE TABLE IF NOT EXISTS `aluno` (
`idaluno` int(11) NOT NULL AUTO_INCREMENT,
`matricula` int(8) NOT NULL,
`nome` varchar(144) NOT NULL,
`telefone` varchar(15) NOT NULL,
`turma` varchar(20) NOT NULL,
`nascimento` datetime NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`img` varchar(200) DEFAULT NULL,
PRIMARY KEY (`idaluno`),
UNIQUE KEY `matricula` (`matricula`)
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
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 */;
|
-- +goose Up
-- SQL in this section is executed when the migration is applied.
ALTER TABLE `channel_members` DROP `created`;
ALTER TABLE `channel_members` DROP `modified`;
ALTER TABLE `channel_members` DROP `username`;
ALTER TABLE `channel_members` DROP `channel`;
ALTER TABLE `channel_members` DROP `role`;
ALTER TABLE `channel_members` ADD (`standup_time` BIGINT NOT NULL);
-- +goose Down
-- SQL in this section is executed when the migration is rolled back.
ALTER TABLE `channel_members` DROP `standup_time`;
ALTER TABLE `channel_members` ADD (`created` DATETIME);
ALTER TABLE `channel_members` ADD (`modified` DATETIME);
ALTER TABLE `channel_members` ADD (`username` VARCHAR (255) NOT NULL);
ALTER TABLE `channel_members` ADD (`channel` VARCHAR (255) NOT NULL);
ALTER TABLE `channel_members` ADD (`role` VARCHAR (255) NOT NULL);
|
<filename>sql/596. Classes More Than 5 Students.sql
--- using subquery
/* Write your T-SQL query statement below */
select sub.class
from (select s.class, count(*) as cnt
from (select distinct student, class
from courses)s
group by s.class) sub
where sub.cnt >= 5
########################################################
--- using cte
/* Write your T-SQL query statement below */
with r as (
select a.class, count(*) as cnt
from (select distinct student, class from courses)a
group by a.class
)
select class from r where cnt >= 5
|
<filename>Database/Schema Objects/Schemas/dbo/Programmability/Stored Procedures/usp_GetExpensesBySFN.proc.sql
------------------------------------------------------------------------
/*
PROGRAM: usp_GetExpensesBySFN
BY: <NAME>, <NAME>
--USAGE:
EXEC usp_GetExpensesBySFN [<OrgR>] [, <Accession] [, <intAssociationStatus>]
--e.g.
EXEC usp_GetExpensesBySFN 'AANS'
EXEC usp_GetExpensesBySFN 'AANS', NULL, 1
EXEC usp_GetExpensesBySFN 'AANS', NULL, 3
EXEC usp_GetExpensesBySFN 'ALL', NULL, 3
EXEC usp_GetExpensesBySFN 'ALL', '0080277', 4
DESCRIPTION:
CURRENT STATUS:
[10/26/06] SRK:
Changed udf_GetSFNTotalExpenses and udf_GetSFNAssociatedExpenses into temp tables so everything is in one SPROC.
Added parameter @Accession, which defaults to null. When intAssociationStatus = 4, that means
that we are adding up the totals for a specific project, not the whole department. Haven't yet implemented
the project totals.
[10/5/06] Thu Working properly
Converted to get data from a UDF. This will be easier for other sprocs to use this data, for instance when joins with other data are required, such as the associated expenses.
Will probably want to create a more generic sproc that can return either Associate, Unassociated, or Total expenses.
NOTES:
CALLED BY:
CLIENTS/RELATED FILES/DEPENDENCIES:
TODO LIST:
Need to add a AD419Valid flag field to Departments table to filter out old depts not in use.
MODIFICATIONS: see bottom
*/
-------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[usp_GetExpensesBySFN]
@OrgR VARCHAR(4) = NULL,
@Accession varchar(50) = NULL,
@intAssociationStatus INT = NULL
AS
BEGIN
-------------------------------------------------------------------------
/* Sample parameter values for devel:
declare @OrgR char(4), @intAssociationStatus int
set @OrgR = 'APLS'
set @intAssociationStatus = 1
*/
-------------------------------------------------------------------------
--Set OrgR from parameter and check validity
DECLARE @OrgCt INT
DECLARE @Return INT
IF ISNULL(@OrgR,'ALL') = 'ALL'
SET @OrgR = '%'
ELSE
BEGIN
SET @OrgCt = (SELECT COUNT(OrgR) FROM ReportingOrg WHERE OrgR = @OrgR AND IsActive <> 0)
IF @OrgCt <> 1
BEGIN
SET @RETURN = -1
RETURN
END
END
-------------------------------------------------------------------------------
------------ BEGIN SFNTotalExpenses and SFNAssociated Expenses tables ---------
DECLARE @TotalExpenses TABLE
(
GroupDisplayOrder tinyint,
LineDisplayOrder tinyint,
LineTypeCode varchar(20),
LineDisplayDescriptor varchar(48),
SFN char(3),
Total float
)
DECLARE @AssociatedExpenses TABLE
(
GroupDisplayOrder tinyint,
LineDisplayOrder tinyint,
LineTypeCode varchar(20),
LineDisplayDescriptor varchar(48),
SFN char(3),
Total float
)
IF @intAssociationStatus <> 4
BEGIN
INSERT INTO @TotalExpenses
(
D.GroupDisplayOrder,
D.LineDisplayOrder,
LineTypeCode,
LineDisplayDescriptor,
SFN,
Total
)
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
CASE LineTypeCode
WHEN 'Heading' THEN null
ELSE ISNULL(Totals.Total,0)
END Total /* (from large UNION sub-query below) */
FROM
SFN_Display D LEFT OUTER JOIN
/* Columns from large block of UNIONed queries returning expense and FTE SUMs */
(
--------------------------------------------------
/* SFN SUBTOTALS */
SELECT
D.SFN,
SUM(E.Expenses) Total
FROM
SFN_Display D JOIN Expenses E ON
D.SFN = E.Exp_SFN
WHERE
E.OrgR like @OrgR
GROUP BY
D.SFN
--------------------------------------------------
UNION /* NON-FEDERAL EMPLOYED STAFF SUPPORT (FTE) */
SELECT
D.SFN,
SUM(E.FTE) Total
FROM
SFN_Display D JOIN Expenses E ON
D.SFN = E.FTE_SFN
WHERE
SFN NOT LIKE ' '
AND E.OrgR like @OrgR
GROUP BY
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineDisplayDescriptor,
D.SFN,
D.LineTypeCode
--------------------------------------------------
UNION /* CSREES FUNDS GROUP SUBTOTAL */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '231'
AND E.OrgR like @OrgR
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '231'
--------------------------------------------------
UNION /* Total Other Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '332'
AND E.OrgR like @OrgR
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '332'
--------------------------------------------------
UNION /* Total Non-Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '233'
AND E.OrgR like @OrgR
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '233'
--------------------------------------------------
UNION /* TOTAL ALL RESEARCH FUNDS */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
WHERE E.OrgR like @OrgR
) Total
FROM
SFN_Display D
WHERE D.SFN = '234'
--------------------------------------------------
UNION /* TOTAL SUPPORT YEARS */
SELECT
D.SFN,
(
SELECT SUM(E.FTE) Total
FROM Expenses E
WHERE
E.FTE_SFN IS NOT NULL
AND E.OrgR like @OrgR
) Total
FROM
SFN_Display D
WHERE
D.SFN = '350'
--------------------------------------------------
UNION /* HEADING ROWS */
SELECT
D.SFN,
NULL Total
FROM
SFN_Display D
WHERE D.LineDisplayOrder = '0'
--------------------------------------------------
) Totals ON
D.SFN = Totals.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
-------------------------------------------------------------------------
INSERT INTO @AssociatedExpenses
(
D.GroupDisplayOrder,
D.LineDisplayOrder,
LineTypeCode,
LineDisplayDescriptor,
SFN,
Total
)
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
CASE LineTypeCode
WHEN 'Heading' THEN null
ELSE ISNULL(Totals.Total,0)
END Total /* (from large UNION sub-query below) */
FROM
SFN_Display D LEFT OUTER JOIN
/* Columns from large block of UNIONed queries returning expense and FTE SUMs */
(
--------------------------------------------------
/* SFN SUBTOTALS */
SELECT
D.SFN,
SUM(E.Expenses) Total
FROM
SFN_Display D JOIN Expenses E ON
D.SFN = E.Exp_SFN
WHERE
E.OrgR like @OrgR AND E.isAssociated = 1
GROUP BY
D.SFN
--------------------------------------------------
UNION /* NON-FEDERAL EMPLOYED STAFF SUPPORT (FTE) */
SELECT
D.SFN,
SUM(E.FTE) Total
FROM
SFN_Display D JOIN Expenses E ON
D.SFN = E.FTE_SFN
WHERE
SFN NOT LIKE ' '
AND E.OrgR like @OrgR
AND E.isAssociated = 1
GROUP BY
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineDisplayDescriptor,
D.SFN,
D.LineTypeCode
--------------------------------------------------
UNION /* CSREES FUNDS GROUP SUBTOTAL */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '231'
AND E.OrgR like @OrgR
AND E.isAssociated = 1
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '231'
--------------------------------------------------
UNION /* Total Other Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '332'
AND E.OrgR like @OrgR
AND E.isAssociated = 1
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '332'
--------------------------------------------------
UNION /* Total Non-Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
JOIN SFN_Display D ON
D.SFN = E.Exp_SFN
WHERE
D.SumToLine = '233'
AND E.OrgR like @OrgR
AND E.isAssociated = 1
GROUP BY SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '233'
--------------------------------------------------
UNION /* TOTAL ALL RESEARCH FUNDS */
SELECT
D.SFN,
(
SELECT SUM(E.Expenses) Total
FROM Expenses E
WHERE E.OrgR like @OrgR
AND E.isAssociated = 1
) Total
FROM
SFN_Display D
WHERE D.SFN = '234'
--------------------------------------------------
UNION /* TOTAL SUPPORT YEARS */
SELECT
D.SFN,
(
SELECT SUM(E.FTE) Total
FROM Expenses E
WHERE
E.FTE_SFN IS NOT NULL
AND E.OrgR like @OrgR
AND E.isAssociated = 1
) Total
FROM
SFN_Display D
WHERE
D.SFN = '350'
--------------------------------------------------
UNION /* HEADING ROWS */
SELECT
D.SFN,
NULL Total
FROM
SFN_Display D
WHERE D.LineDisplayOrder = '0'
--------------------------------------------------
) Totals ON
D.SFN = Totals.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
END
----------------------------------------------------------
ELSE IF @intAssociationStatus = 4
BEGIN
INSERT INTO @TotalExpenses
(
D.GroupDisplayOrder,
D.LineDisplayOrder,
LineTypeCode,
LineDisplayDescriptor,
SFN,
Total
)
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
CASE LineTypeCode
WHEN 'Heading' THEN null
ELSE ISNULL(Totals.Total,0)
END Total /* (from large UNION sub-query below) */
FROM
SFN_Display D LEFT OUTER JOIN
/* Columns from large block of UNIONed queries returning expense and FTE SUMs */
(
--------------------------------------------------
/* SFN SUBTOTALS */
SELECT D.SFN, SUM(A.Expenses) AS Total
FROM SFN_Display AS D INNER JOIN
Expenses AS E ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
GROUP BY D.SFN
--------------------------------------------------
UNION /* NON-FEDERAL EMPLOYED STAFF SUPPORT (FTE) */
SELECT D.SFN, SUM(A.FTE) AS Total
FROM SFN_Display AS D INNER JOIN
Expenses AS E ON D.SFN = E.FTE_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SFN NOT LIKE ' ')
AND (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
GROUP BY D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineDisplayDescriptor,
D.SFN,
D.LineTypeCode
--------------------------------------------------
UNION /* CSREES FUNDS GROUP SUBTOTAL */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '231')
AND (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '231'
--------------------------------------------------
UNION /* Total Other Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '332')
AND (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '332'
--------------------------------------------------
UNION /* Total Non-Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '233')
AND (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '233'
--------------------------------------------------
UNION /* TOTAL ALL RESEARCH FUNDS */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
) Total
FROM
SFN_Display D
WHERE D.SFN = '234'
--------------------------------------------------
UNION /* TOTAL SUPPORT YEARS */
SELECT
D.SFN,
(
SELECT SUM(A.FTE) AS Total
FROM Expenses AS E INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.FTE_SFN IS NOT NULL)
AND (E.OrgR LIKE @OrgR)
AND (A.Accession = @Accession)
) Total
FROM
SFN_Display D
WHERE
D.SFN = '350'
--------------------------------------------------
UNION /* HEADING ROWS */
SELECT
D.SFN,
NULL Total
FROM
SFN_Display D
WHERE D.LineDisplayOrder = '0'
--------------------------------------------------
) Totals ON
D.SFN = Totals.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
---------------------------------------
INSERT INTO @AssociatedExpenses
(
D.GroupDisplayOrder,
D.LineDisplayOrder,
LineTypeCode,
LineDisplayDescriptor,
SFN,
Total
)
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
CASE LineTypeCode
WHEN 'Heading' THEN null
ELSE ISNULL(Totals.Total,0)
END Total /* (from large UNION sub-query below) */
FROM
SFN_Display D LEFT OUTER JOIN
/* Columns from large block of UNIONed queries returning expense and FTE SUMs */
(
--------------------------------------------------
/* SFN SUBTOTALS */
SELECT D.SFN, SUM(A.Expenses) AS Total
FROM SFN_Display AS D INNER JOIN
Expenses AS E ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
GROUP BY D.SFN
--------------------------------------------------
UNION /* NON-FEDERAL EMPLOYED STAFF SUPPORT (FTE) */
SELECT D.SFN, SUM(A.FTE) AS Total
FROM SFN_Display AS D INNER JOIN
Expenses AS E ON D.SFN = E.FTE_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SFN NOT LIKE ' ')
AND (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
GROUP BY D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineDisplayDescriptor,
D.SFN,
D.LineTypeCode
--------------------------------------------------
UNION /* CSREES FUNDS GROUP SUBTOTAL */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '231')
AND (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '231'
--------------------------------------------------
UNION /* Total Other Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '332')
AND (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '332'
--------------------------------------------------
UNION /* Total Non-Federal Research Funds */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
SFN_Display AS D ON D.SFN = E.Exp_SFN INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (D.SumToLine = '233')
AND (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
GROUP BY D.SumToLine
) Total
FROM
SFN_Display D
WHERE D.SFN = '233'
--------------------------------------------------
UNION /* TOTAL ALL RESEARCH FUNDS */
SELECT
D.SFN,
(
SELECT SUM(A.Expenses) AS Total
FROM Expenses AS E INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
) Total
FROM
SFN_Display D
WHERE D.SFN = '234'
--------------------------------------------------
UNION /* TOTAL SUPPORT YEARS */
SELECT
D.SFN,
(
SELECT SUM(A.FTE) AS Total
FROM Expenses AS E INNER JOIN
Associations AS A ON E.ExpenseID = A.ExpenseID
WHERE (E.FTE_SFN IS NOT NULL)
AND (E.OrgR LIKE @OrgR)
AND (E.isAssociated = 1)
AND (A.Accession = @Accession)
) Total
FROM
SFN_Display D
WHERE
D.SFN = '350'
--------------------------------------------------
UNION /* HEADING ROWS */
SELECT
D.SFN,
NULL Total
FROM
SFN_Display D
WHERE D.LineDisplayOrder = '0'
--------------------------------------------------
) Totals ON
D.SFN = Totals.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
END
----------------------------------- End Tables --------------------------------
--------------------------------------------------
--Get "SFN" subtotals, group subtotals, and heading lines:
if @intAssociationStatus = 1 /* Total Expenses */
SELECT * FROM @TotalExpenses
ORDER BY
GroupDisplayOrder,
LineDisplayOrder
else if @intAssociationStatus = 2 /* Associated Expenses */
SELECT * FROM @AssociatedExpenses
ORDER BY
GroupDisplayOrder,
LineDisplayOrder
else if @intAssociationStatus = 3 /* Unassociated Expenses */
BEGIN
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
(T.Total - A.Total) Total
FROM
SFN_Display D LEFT JOIN
(
SELECT *
FROM @TotalExpenses
) T
ON D.SFN = T.SFN
LEFT JOIN
(
SELECT *
FROM @AssociatedExpenses
) A
ON D.SFN = A.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
END
--else if @intAssociationStatus = 4 /* Project Expenses */
ELSE /* Default to showing all 3 columns side by side. */
BEGIN
SELECT
/* Columns from SFN_Display */
D.GroupDisplayOrder,
D.LineDisplayOrder,
D.LineTypeCode,
D.LineDisplayDescriptor,
D.SFN,
T.Total Total,
A.Total Associated,
(T.Total - A.Total) Unassociated
FROM
SFN_Display D LEFT JOIN
(
SELECT *
FROM @TotalExpenses
) T
ON D.SFN = T.SFN
LEFT JOIN
(
SELECT *
FROM @AssociatedExpenses
) A
ON D.SFN = A.SFN
ORDER BY
D.GroupDisplayOrder,
D.LineDisplayOrder
END
END
/*
-------------------------------------------------------------------------
MODIFICATIONS:
[9/27/06] Wed
Begun.
[10/4/06] Wed
Was getting result row with 49.something FTE but no other data due to blank value in Expenses.FTE_SFN.
This is a problem with the FoxPro data set from last year that shouldn't have occurred.
We need to guard both against this occurring, and against presenting any blank rows if they do exist.
Preventing the row from output is done with the following line in the FTE section:
SFN NOT LIKE ' '
[10/5/06] Thu
Converted to get data from a UDF. This will be easier for other sprocs to use this data, for instance when joins with other data are required, such as the associated expenses.
[10/12/06] Thu
* Added IF...ELSE branching to present Total, Associated, Unassociated, or (default) all three
* Added a AD419Valid flag field to ReportingOrg table to filter out old depts not in use. (Changed from Departments to ReportingOrg also)
--------------------------------------------------
--USAGE:
EXEC usp_GetExpensesBySFN 'AANS'
EXEC usp_GetExpensesBySFN 'AANS', 1
EXEC usp_GetExpensesBySFN 'AANS', 3
EXEC usp_GetExpensesBySFN 'ALL', 3
*/
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Servidor: 1192.168.3.11
-- Tiempo de generación: 24-04-2021 a las 00:10:15
-- Versión del servidor: 10.4.18-MariaDB
-- Versión de PHP: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `nivelacion`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `clientes`
--
CREATE TABLE `clientes` (
`id` int(10) UNSIGNED NOT NULL,
`Nombre` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Apellido_Paterno` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Apellido_materno` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`cliente_codigo` 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;
--
-- Volcado de datos para la tabla `clientes`
--
INSERT INTO `clientes` (`id`, `Nombre`, `Apellido_Paterno`, `Apellido_materno`, `cliente_codigo`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 'Castro', 'Ortiz', '180017', NULL, NULL),
(2, '<NAME>', 'Gayosso', 'Zaragoza', '162512', NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `detalles`
--
CREATE TABLE `detalles` (
`id` int(10) UNSIGNED NOT NULL,
`Pedido_codigo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Producto_codigo` 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;
--
-- Volcado de datos para la tabla `detalles`
--
INSERT INTO `detalles` (`id`, `Pedido_codigo`, `Producto_codigo`, `created_at`, `updated_at`) VALUES
(1, '123258', '123253', NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(5, '2014_10_12_000000_create_users_table', 1),
(6, '2014_10_12_100000_create_password_resets_table', 1),
(7, '2019_08_19_000000_create_failed_jobs_table', 1),
(8, '2021_04_23_201112_create_usuarios_table', 1),
(9, '2021_04_16_202855_create_vendedores_table', 2),
(10, '2021_04_17_153219_create_clientes_table', 2),
(11, '2021_04_17_153633_create_detalles_table', 2),
(12, '2021_04_17_153656_create_productos_table', 2),
(13, '2021_04_17_153720_create_pedidos_table', 2);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pedidos`
--
CREATE TABLE `pedidos` (
`id` int(10) UNSIGNED NOT NULL,
`Fecha_pedido` date NOT NULL,
`Estado_pedido` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`cliente_codigo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`vendedor_codigo` 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;
--
-- Volcado de datos para la tabla `pedidos`
--
INSERT INTO `pedidos` (`id`, `Fecha_pedido`, `Estado_pedido`, `cliente_codigo`, `vendedor_codigo`, `created_at`, `updated_at`) VALUES
(1, '2021-04-22', 'En Proceso', '180017', '126865', NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `productos`
--
CREATE TABLE `productos` (
`id` int(10) UNSIGNED NOT NULL,
`Nombre` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Tipo` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Producto_codigo` 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;
--
-- Volcado de datos para la tabla `productos`
--
INSERT INTO `productos` (`id`, `Nombre`, `Tipo`, `Producto_codigo`, `created_at`, `updated_at`) VALUES
(1, 'Coca Cola', 'Refresco', '001', NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '<EMAIL>', NULL, '$2y$10$tjFBvzL9kxhKRkapKkUIseT61mSsfZmx2JSC9NyCI7.WWpVDxd7KG', NULL, '2021-04-24 01:58:53', '2021-04-24 01:58:53');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `vendedores`
--
CREATE TABLE `vendedores` (
`id` int(10) UNSIGNED NOT NULL,
`Nombre` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Apellido_Paterno` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`Apellido_materno` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`vendedor_codigo` 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;
--
-- Volcado de datos para la tabla `vendedores`
--
INSERT INTO `vendedores` (`id`, `Nombre`, `Apellido_Paterno`, `Apellido_materno`, `vendedor_codigo`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 'Castro', 'Ortiz', '123258', NULL, NULL);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `clientes`
--
ALTER TABLE `clientes`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `detalles`
--
ALTER TABLE `detalles`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indices de la tabla `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indices de la tabla `pedidos`
--
ALTER TABLE `pedidos`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `productos`
--
ALTER TABLE `productos`
ADD PRIMARY KEY (`id`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Indices de la tabla `vendedores`
--
ALTER TABLE `vendedores`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `clientes`
--
ALTER TABLE `clientes`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT de la tabla `detalles`
--
ALTER TABLE `detalles`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT de la tabla `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de la tabla `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT de la tabla `pedidos`
--
ALTER TABLE `pedidos`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `productos`
--
ALTER TABLE `productos`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT de la tabla `vendedores`
--
ALTER TABLE `vendedores`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE OR REPLACE PACKAGE BODY quilt_logger IS
g_quilt_run_id quilt_run.quilt_run_id%Type;
----------------------------------------------------------------------------
PROCEDURE log_start
(
p_quilt_run_id IN INTEGER,
p_test_name IN VARCHAR2
) IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
log_detail('starting quilt with p_quilt_run_id=$1, test_name=$2', p_quilt_run_id, p_test_name);
g_quilt_run_id := p_quilt_run_id;
INSERT INTO quilt_run (quilt_run_id, start_ts, test_name) VALUES (p_quilt_run_id, systimestamp, p_test_name);
COMMIT;
END log_start;
----------------------------------------------------------------------------
PROCEDURE log_profiler_run_id
(
p_quilt_run_id IN INTEGER,
p_profiler_run_id IN NUMBER,
p_profiler_user IN VARCHAR2
) IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
log_detail('stopping quilt with quilt_run_id=$1', p_quilt_run_id);
UPDATE quilt_run SET profiler_run_id = p_profiler_run_id, profiler_user = p_profiler_user WHERE quilt_run_id = p_quilt_run_id;
COMMIT;
END log_profiler_run_id;
----------------------------------------------------------------------------
PROCEDURE log_stop(p_quilt_run_id IN INTEGER) IS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
log_detail('stopping quilt with quilt_run_id=$1', p_quilt_run_id);
UPDATE quilt_run SET stop_ts = systimestamp WHERE quilt_run_id = p_quilt_run_id;
COMMIT;
END log_stop;
----------------------------------------------------------------------------
PROCEDURE log_detail
(
p_msg IN VARCHAR2,
p_placeholder1 IN VARCHAR2 DEFAULT NULL,
p_placeholder2 IN VARCHAR2 DEFAULT NULL,
p_placeholder3 IN VARCHAR2 DEFAULT NULL,
p_placeholder4 IN VARCHAR2 DEFAULT NULL,
p_placeholder5 IN VARCHAR2 DEFAULT NULL,
p_placeholder6 IN VARCHAR2 DEFAULT NULL,
p_placeholder7 IN VARCHAR2 DEFAULT NULL,
p_placeholder8 IN VARCHAR2 DEFAULT NULL,
p_placeholder9 IN VARCHAR2 DEFAULT NULL,
p_placeholder10 IN VARCHAR2 DEFAULT NULL
) IS
PRAGMA AUTONOMOUS_TRANSACTION;
l_caller VARCHAR2(255);
l_msg VARCHAR2(32767);
BEGIN
l_caller := quilt_util.getCallerQualifiedName;
l_msg := quilt_util.formatString(p_msg,
p_placeholder1,
p_placeholder2,
p_placeholder3,
p_placeholder4,
p_placeholder5,
p_placeholder6,
p_placeholder7,
p_placeholder8,
p_placeholder9,
p_placeholder10);
--
INSERT INTO quilt_log
(log_id, quilt_run_id, procedure_name, msg, insert_ts)
VALUES
(quilt_log_id.nextval, g_quilt_run_id, l_caller, l_msg, systimestamp);
COMMIT;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('quilt_logger.log_detail failed: ' || SQLERRM);
dbms_output.put_line('l_caller' || substr(l_caller, 1, 50));
dbms_output.put_line('l_msg' || substr(l_msg, 1, 50));
END log_detail;
END quilt_logger;
/
|
INSERT INTO network_addresses(ip) VALUES('192.168.3.11/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('192.168.3.11/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/8');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/32');
INSERT INTO network_addresses(ip) VALUES('192.168.127.12/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/16');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/32');
INSERT INTO network_addresses(ip) VALUES('192.168.3.11/32');
INSERT INTO network_addresses(ip) VALUES('172.16.58.3/24');
INSERT INTO network_addresses(ip) VALUES('192.168.3.11/32');
INSERT INTO network_addresses(ip) VALUES('172.16.17.32/32');
INSERT INTO network_addresses(ip) VALUES('172.16.31.10/32'); |
<filename>tempdb/pageinfo.sql<gh_stars>1-10
USE tempdb;
GO
SELECT object_name(page_info.object_id), d.wait_type, page_info.*
FROM sys.dm_exec_requests AS d
CROSS APPLY sys.fn_PageResCracker(d.page_resource) AS r
CROSS APPLY sys.dm_db_page_info(r.db_id, r.file_id, r.page_id,'DETAILED')
AS page_info;
GO
|
<filename>service/src/sql/dict_voc.sql
/*generated by F5 DATA2SQL*/
/* DATA2SQL DICT.VOC */
DROP TABLE IF EXISTS DICT.VOC CASCADE;
CREATE TABLE IF NOT EXISTS DICT.VOC
(
key text primary key,
data text
);
ALTER TABLE DICT.VOC OWNER to exodus;
INSERT INTO DICT.VOC (key,data) values (E'#',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'(',E'RLIST(');
INSERT INTO DICT.VOC (key,data) values (E')',E'RLIST)');
INSERT INTO DICT.VOC (key,data) values (E'<',E'RLISTLT');
INSERT INTO DICT.VOC (key,data) values (E'<=',E'RLISTLE');
INSERT INTO DICT.VOC (key,data) values (E'<>',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'=',E'RLISTEQ');
INSERT INTO DICT.VOC (key,data) values (E'=<',E'RLISTLE');
INSERT INTO DICT.VOC (key,data) values (E'=>',E'RLISTGE');
INSERT INTO DICT.VOC (key,data) values (E'>',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'>=',E'RLISTGE');
INSERT INTO DICT.VOC (key,data) values (E'@CRT',E'GTYPE FMC PART DISPLAY2 SM CONV JUST LEN MASTER_FLAG0');
INSERT INTO DICT.VOC (key,data) values (E'@ID',E'F0Ref.S0T20');
INSERT INTO DICT.VOC (key,data) values (E'A',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'AFTER',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'ALINES',E'SALINESS0@ANS=COUNT(@RECORD,\\\\0A\\\\)+1IF @RECORD EQ \'\' THEN @ANS=0R60');
INSERT INTO DICT.VOC (key,data) values (E'ALL',E'SALLSANS=@ID:@FM:@RECORDreturn ansL200');
INSERT INTO DICT.VOC (key,data) values (E'ALLUPPERCASE',E'SALLSconvert @lower.case to @upper.case in @recordreturn @record*@ANS=@RECORD*convert @lower.case to @upper.case in @ansANS=@RECORDconvert @lower.case to @upper.case in ans*can cause out of memory*1. doesnt help*declare function memspace*mem=memspace(999999)*2. dont pass back in @ans variable seems to solve it!*transfer @ans to ans*if you return something then it uses it, otherwise it uses what is in @ansreturn @recordT300');
INSERT INTO DICT.VOC (key,data) values (E'ALPHA',E'SALPHAS0@ANS=@IDCONVERT \'0123456789\' TO \'\' IN @ANSL100');
INSERT INTO DICT.VOC (key,data) values (E'AN',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'AND',E'RLISTAND');
INSERT INTO DICT.VOC (key,data) values (E'ANY',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ANYDEBUG',E'SANYDEBUGSif index(\'*$\',@id[1,1],1) then return 0if @id=\'DEBUG\' then return 0if @id=\'MSG\' then return 0if @id=\'RTP25\' then return 0if @id=\'TEST\' then return 0if @id=\'TESTBASIC\' then return 0*upper=@record*convert @lower.case to @upper.case in upperequ upper to @recordif index(upper,\'debug\',1) then return 1if @id=\'SENDMAIL\' then convert "\'EXODUS.ID\'" to \'\' in upperif index(upper,"\'EXODUS.ID\'",1) and @id<>\'INSTALLALLOWHOSTS\' then return 1return 0L100');
INSERT INTO DICT.VOC (key,data) values (E'ARE',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ARENT',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'AVERAGE',E'RLISTAVERAGE');
INSERT INTO DICT.VOC (key,data) values (E'BECAUSE',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'BEFORE',E'RLISTLT');
INSERT INTO DICT.VOC (key,data) values (E'BETWEEN',E'RLISTBETWEEN');
INSERT INTO DICT.VOC (key,data) values (E'BREAK-ON',E'RLISTBREAK-ON');
INSERT INTO DICT.VOC (key,data) values (E'BY',E'RLISTBY');
INSERT INTO DICT.VOC (key,data) values (E'BY-DSND',E'RLISTBY-DSND');
INSERT INTO DICT.VOC (key,data) values (E'BY-EXP',E'RLISTBY');
INSERT INTO DICT.VOC (key,data) values (E'BY-EXP-DSND',E'RLISTBY-DSND');
INSERT INTO DICT.VOC (key,data) values (E'CASERATIO',E'SCASERATIOSMD00Px=@recordconvert @lower.case to \'\' in xy=@recordconvert @upper.case to \'\' in yu=len(@record)-len(y)l=len(@record)-len(x)if u>l then @ans=u/(l+1) else @ans=-(l/(u+1))R100');
INSERT INTO DICT.VOC (key,data) values (E'CH',E'RLISTCH');
INSERT INTO DICT.VOC (key,data) values (E'CLASS',E'F1CLASSSL1"F""S""G"CHAR(1)');
INSERT INTO DICT.VOC (key,data) values (E'COL-HDR-SUPP',E'RLISTCS');
INSERT INTO DICT.VOC (key,data) values (E'COLHEAD',E'RLISTCH');
INSERT INTO DICT.VOC (key,data) values (E'COLUMN_NAME',E'F0COLUMN_NAMES2L20');
INSERT INTO DICT.VOC (key,data) values (E'COMPUTED_INDEX',E'F27COMPUTED_INDEXSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'CONTAINING',E'RLIST[]');
INSERT INTO DICT.VOC (key,data) values (E'CONTAINS',E'RLIST[]');
INSERT INTO DICT.VOC (key,data) values (E'CONV',E'F7CONVS0L9');
INSERT INTO DICT.VOC (key,data) values (E'CONV2UTF8',E'SCONV2UTF8Sorigrecord=@recordorigid=@idcall conv2utf8(msg,@recur0,\'\')@recur1+=1print @(0):@(-4):@recur1:\'. \':@rec.count:@ans=msgif @ans else @ans=@record<>origrecord or @id<>origid end*restore otherwise select will not find it again@id=origidT100');
INSERT INTO DICT.VOC (key,data) values (E'CONVERSION',E'F7CONVERSIONSL10VARCHAR');
INSERT INTO DICT.VOC (key,data) values (E'COUNT',E'SCountS@ANS=1R100');
INSERT INTO DICT.VOC (key,data) values (E'CROSSREFERENCED',E'F22CROSSREFERENCEDSR1BOOLEAN1');
INSERT INTO DICT.VOC (key,data) values (E'C_ARGS',E'SC ARGSS@ans=@record<2>if @ans[1,3] ne \'*c \' then @ans=\'\'T100');
INSERT INTO DICT.VOC (key,data) values (E'DATA',E'SDATAS0@ANS=@RECORDCONVERT \\\\FFFEFDFCFBFAF9F8\\\\ TO \'\' IN @ANSL100');
INSERT INTO DICT.VOC (key,data) values (E'DATETIME_CREATED',E'SDate TimeCreatedS[DATETIME]@ans={DATETIME_UPDATED}<1,1>R200');
INSERT INTO DICT.VOC (key,data) values (E'DBL-SPC',E'RLISTDB');
INSERT INTO DICT.VOC (key,data) values (E'DEFAULT',E'F29DEFAULTSL10"NULL""CURRENT""USER"\'"\'0X\'"\'VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'DESC',E'F14DESCS0T20');
INSERT INTO DICT.VOC (key,data) values (E'DESCRIPTION',E'F14DESCRIPTIONMT20VARCHAR');
INSERT INTO DICT.VOC (key,data) values (E'DET-SUPP',E'RLISTDS');
INSERT INTO DICT.VOC (key,data) values (E'DICT',E'RLISTDICT');
INSERT INTO DICT.VOC (key,data) values (E'DIFFERENT',E'SDIFFERENTS$INSERT GBP,GENERAL.COMMON*COMMON /DIFFERENT/ LAST.RECCOUNT, COMPARE.FILE*IF COMPARE.FILE EQ \'\' THEN LAST.RECCOUNT = 9999**IF @RECCOUNT LT LAST.RECCOUNT THEN** FN=\'\'** CALL MSG(\'DIFFERENT FROM WHAT FILE\',\'RC\',FN,\'\')*fn=\'QFILE\'OPEN \'\',FN TO COMPARE.FILE ELSE STOP \'CANNOT OPEN \':FN*ENDLAST.RECCOUNT = @RECCOUNTREAD REC FROM COMPARE.FILE, @ID THEN IF @RECORD EQ REC THEN @ANS = \'\' ELSE IF @ID[1,1]=\'$\' THEN REC.DATETIME=FIELD2(@RECORD,@FM,-1) REC.DATETIME=TRIM(FIELD(REC.DATETIME,\' \',2,9)):\' \':FIELD(REC.DATETIME,\' \',1) REC.DATETIME=ICONV(REC.DATETIME,\'DT\') CMP.DATETIME=FIELD2(REC,@FM,-1) CMP.DATETIME=TRIM(FIELD(CMP.DATETIME,\' \',2,9)):\' \':FIELD(CMP.DATETIME,\' \',1) CMP.DATETIME=ICONV(CMP.DATETIME,\'DT\') IF REC.DATETIME AND CMP.DATETIME ELSE GOTO CHANGED IF REC.DATETIME EQ CMP.DATETIME THEN GOTO CHANGED IF REC.DATETIME GT CMP.DATETIME THEN @ANS=\'REPLACES\' END ELSE @ANS=\'REPLACED\' END END ELSECHANGED: @ANS = \'CHANGED\' END ENDEND ELSE @ANS = \'NEW REC\'ENDR10');
INSERT INTO DICT.VOC (key,data) values (E'DISPLAY',E'F3HEADINGS0L13');
INSERT INTO DICT.VOC (key,data) values (E'DISPLAY2',E'SHEADINGS@ans=@record<3>convert @vm to \' \' in @ansT130');
INSERT INTO DICT.VOC (key,data) values (E'DISPLAY_LENGTH',E'F10DISPLAY_LENGTHSL100N_(0,65537)INTEGER');
INSERT INTO DICT.VOC (key,data) values (E'DOES',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'DOESNT',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'DT',E'SDTS0D2-@ANS=DATE()L10(D)0');
INSERT INTO DICT.VOC (key,data) values (E'EACH',E'RLISTEVERY');
INSERT INTO DICT.VOC (key,data) values (E'ENDING',E'RLIST[');
INSERT INTO DICT.VOC (key,data) values (E'EQ',E'RLISTEQ');
INSERT INTO DICT.VOC (key,data) values (E'EQUAL',E'RLISTEQ');
INSERT INTO DICT.VOC (key,data) values (E'EVERY',E'RLISTEVERY');
INSERT INTO DICT.VOC (key,data) values (E'EXCEPT',E'RLISTWITH NOT');
INSERT INTO DICT.VOC (key,data) values (E'EXCLUDE',E'RLISTWITH NOT');
INSERT INTO DICT.VOC (key,data) values (E'EXCLUDING',E'RLISTWITH NOT');
INSERT INTO DICT.VOC (key,data) values (E'EXECUTIVE_EMAIL',E'SExecutive EmailSexecutivecode={EXECUTIVE_CODE}convert @lower.case to @upper.case in executivecode*@ in executive name assume is an email emailif index(executivecode,\'@\',1) then @ans=executivecode convert \' ,\' to \';;\' in @ansend else *1) look for user code directly user=xlate(\'USERS\',executivecode,\'\',\'X\') *2) look for user name if user else user=xlate(\'USERS\',\'%\':executivecode:\'%\',\'\',\'X\') *3) try to use the first word of the executive code as the username *first name only if user else user=xlate(\'USERS\',field(executivecode,\' \',1),\'\',\'X\') if user<35> and date() ge user<35> then *expired @ans=\'\' end else *not expired @ans=user<7> end *runtime users email if @ans else @ans=xlate(\'USERS\',@username,7,\'X\') end endL100');
INSERT INTO DICT.VOC (key,data) values (E'EXECUTIVE_NAME',E'SExecutiveS*ans={EXECUTIVE_CODE}*ans2=ans*convert @lower.case to @upper.case in ans2*@ans=xlate(\'USERS\',ans2,1,\'X\')*if @ans else @ans=ansdeclare function capitaliseans={EXECUTIVE_CODE}ans2=ansconvert @lower.case to @upper.case in ans2if ans2 ne ans then transfer ans to @ansend else *@ans=xlate(\'USERS\',\'%\':ans2:\'%\',1,\'X\') @ans=xlate(\'USERS\',ans2,1,\'X\') if @ans then ans2=@ans convert @lower.case to @upper.case in ans2 if ans2=@ans then @ans=capitalise(@ans) end end else transfer ans to @ans @ans=capitalise(@ans) end endT200');
INSERT INTO DICT.VOC (key,data) values (E'EXPORTABLE',E'G@IDTYPEFMCDISPLAYSNJUSTLEN0');
INSERT INTO DICT.VOC (key,data) values (E'F0_1',E'F0Key Part 1S1L10');
INSERT INTO DICT.VOC (key,data) values (E'F0_2',E'F0Key Part 2S2L10');
INSERT INTO DICT.VOC (key,data) values (E'F0_3',E'F0Key Part 3S3L10');
INSERT INTO DICT.VOC (key,data) values (E'F1',E'F1F1L10');
INSERT INTO DICT.VOC (key,data) values (E'F10',E'F10F10ML10');
INSERT INTO DICT.VOC (key,data) values (E'F10M',E'F10F10ML10');
INSERT INTO DICT.VOC (key,data) values (E'F11',E'F11F11ML10');
INSERT INTO DICT.VOC (key,data) values (E'F11M',E'F11F11ML10');
INSERT INTO DICT.VOC (key,data) values (E'F12',E'F12F12ML10');
INSERT INTO DICT.VOC (key,data) values (E'F12M',E'F12F12ML10');
INSERT INTO DICT.VOC (key,data) values (E'F14',E'F14FIELD 14ML10');
INSERT INTO DICT.VOC (key,data) values (E'F1M',E'F1F1ML10');
INSERT INTO DICT.VOC (key,data) values (E'F1_R',E'F1FIELD 1S0R10');
INSERT INTO DICT.VOC (key,data) values (E'F2',E'F2F2ML10');
INSERT INTO DICT.VOC (key,data) values (E'F2M',E'F2F2ML10');
INSERT INTO DICT.VOC (key,data) values (E'F3',E'F3F3ML10');
INSERT INTO DICT.VOC (key,data) values (E'F3M',E'F3F3ML10');
INSERT INTO DICT.VOC (key,data) values (E'F4',E'F4F4ML10');
INSERT INTO DICT.VOC (key,data) values (E'F4M',E'F4F4ML10');
INSERT INTO DICT.VOC (key,data) values (E'F5',E'F5F5ML10');
INSERT INTO DICT.VOC (key,data) values (E'F5M',E'F5F5ML10');
INSERT INTO DICT.VOC (key,data) values (E'F6',E'F6F6ML101');
INSERT INTO DICT.VOC (key,data) values (E'F6M',E'F6F6ML10');
INSERT INTO DICT.VOC (key,data) values (E'F7',E'F7F7ML10');
INSERT INTO DICT.VOC (key,data) values (E'F7M',E'F7F7ML10');
INSERT INTO DICT.VOC (key,data) values (E'F8',E'F8F8ML10');
INSERT INTO DICT.VOC (key,data) values (E'F8M',E'F8F8ML10');
INSERT INTO DICT.VOC (key,data) values (E'F9',E'F9F9ML10');
INSERT INTO DICT.VOC (key,data) values (E'F9M',E'F9F9ML10');
INSERT INTO DICT.VOC (key,data) values (E'FIELD',E'SFIELDMIF @RECUR0 ELSE CALL MSG(\'WHICH FIELD NUMBER ?\',\'R\',@RECUR0,\'\') END@ANS=@RECORD<@RECUR0>L100');
INSERT INTO DICT.VOC (key,data) values (E'FILE',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'FINDALL',E'STestMif @record<1> then data=@record<8> convert @vm to @fm in dataend else data=@record endn=count(data,@fm)+1convert @lower.case to @upper.case in dataconvert \'"\' to "\'" in data@ans=\'\'for fn=1 to n tx=trim(data<fn>) if index(tx,\'xlate(\',1) and (index(tx,"\',\'C\')",1) or index(tx,"\',\'X\')",1)) then *gosub change2 @ans<1,-1>=tx end *if index(tx,\'MSG(\',1) and ( index(tx,",\'U",1) or index(tx,",\'D",1) or index(tx,",\'R",1) ) then * gosub change * @ans<1,-1>=tx * end *if index(tx,\'NOTE(\',1) and ( index(tx,",\'U",1) or index(tx,",\'D",1) or index(tx,",\'R",1) or index(tx,",\'T",1)) then * gosub change * @ans<1,-1>=tx * end next fnreturn @ans/*change: tx=data<fn> swap \'MSG(\' with \'msg2(\' in tx declare function decide2 if decide2(@id:@fm:tx:\'\',\'\',reply,2) else stop if reply=1 then open \'TEMP\' to file else call fsmsg();stop *writev tx on file,@id,fn if @record<1>=\'S\' then @record<8,fn>=tx end else @record<fn>=tx end write @record on file,@id end return*/T600');
INSERT INTO DICT.VOC (key,data) values (E'FMC',E'F2FMCS0R3');
INSERT INTO DICT.VOC (key,data) values (E'FOOTING',E'RLISTFOOTING');
INSERT INTO DICT.VOC (key,data) values (E'FOR',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'FOREIGN_TYPE',E'F15FOREIGN TYPESL101');
INSERT INTO DICT.VOC (key,data) values (E'FOREIGN_ATTRIBUTES',E'F18FOREIGN_ATTRIBUTESSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'FOREIGN_MAP',E'F17FOREIGN_MAPSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'FOREIGN_NAME',E'F16FOREIGN_NAMESL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'FORMULA',E'F8FORMULAS0T65');
INSERT INTO DICT.VOC (key,data) values (E'FRIDAY',E'RLISTFRI');
INSERT INTO DICT.VOC (key,data) values (E'FROM',E'RLISTFROM');
INSERT INTO DICT.VOC (key,data) values (E'GE',E'RLISTGE');
INSERT INTO DICT.VOC (key,data) values (E'GENERIC_TYPE',E'F12GENERIC TYPESL15');
INSERT INTO DICT.VOC (key,data) values (E'GRAND-TOTAL',E'RLISTGRAND-TOTAL');
INSERT INTO DICT.VOC (key,data) values (E'GREATER',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'GT',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'GTOT-SUPP',E'RLISTGTS');
INSERT INTO DICT.VOC (key,data) values (E'HAS',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'HDR-SUPP',E'RLISTHS');
INSERT INTO DICT.VOC (key,data) values (E'HEADING',E'RLISTHEADING');
INSERT INTO DICT.VOC (key,data) values (E'ID',E'F0Ref.S0T20');
INSERT INTO DICT.VOC (key,data) values (E'ID-SUPP',E'RLISTIS');
INSERT INTO DICT.VOC (key,data) values (E'ID_R',E'F0Ref.S0R20');
INSERT INTO DICT.VOC (key,data) values (E'IF',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'IN',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'INCLUDE',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'INCLUDING',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'INDEXED',E'F6INDEXEDSL1"1""0"BOOLEAN');
INSERT INTO DICT.VOC (key,data) values (E'INDEX_DEPENDANCIES',E'F21INDEX_DEPENDANCIESSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'INPUT_TRUNCATION',E'F39INPUT_TRUNCATIONSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'IS',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ISCPP',E'SISCPPS@ans=@record<2>[1,3]=\'*c \'L100');
INSERT INTO DICT.VOC (key,data) values (E'ISNT',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'IT',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ITEMS',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ITS',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'JUST',E'F9JSTS0L3');
INSERT INTO DICT.VOC (key,data) values (E'JUSTIFICATION',E'F9JUSTIFICATIONSL10"L""R""C""T"CHAR(10)');
INSERT INTO DICT.VOC (key,data) values (E'JUSTLEN',E'RLISTJL');
INSERT INTO DICT.VOC (key,data) values (E'KEY1',E'SKEY1S@ans=field(@id,\'*\',1)L100');
INSERT INTO DICT.VOC (key,data) values (E'KEY2',E'SKEY2S@ans=field(@id,\'*\',2)L100');
INSERT INTO DICT.VOC (key,data) values (E'KEY3',E'SKEY3S@ans=field(@id,\'*\',3)L100');
INSERT INTO DICT.VOC (key,data) values (E'KEY4',E'SKEY4S@ans=field(@id,\'*\',4)L100');
INSERT INTO DICT.VOC (key,data) values (E'KEYLEN',E'SKEYLENS@ans=len(@id)R100');
INSERT INTO DICT.VOC (key,data) values (E'KEYPART',E'F5KEYPARTSR50N_(0,32768)INTEGER');
INSERT INTO DICT.VOC (key,data) values (E'KEYSIZE',E'SKey SizeS@ANS=LEN(@ID)R80');
INSERT INTO DICT.VOC (key,data) values (E'LAST',E'RLISTLAST');
INSERT INTO DICT.VOC (key,data) values (E'LATENT',E'RLISTNR');
INSERT INTO DICT.VOC (key,data) values (E'LATER',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'LE',E'RLISTLE');
INSERT INTO DICT.VOC (key,data) values (E'LEN',E'F10LENS0R3LENGTH');
INSERT INTO DICT.VOC (key,data) values (E'LESS',E'RLISTLT');
INSERT INTO DICT.VOC (key,data) values (E'LIKE',E'RLISTEQ');
INSERT INTO DICT.VOC (key,data) values (E'LIMIT',E'RLISTLIMIT');
INSERT INTO DICT.VOC (key,data) values (E'LINEMARKS',E'SLINEMARKSSif index(\'$*\',@id[1,1],1) then return \'\'end else if index(@record,\'linemark\',1) then tt=@record convert \' \' to @fm in tt return index(tt,@fm:\'linemark\',1)end else @ans=0 endreturn @ansL100');
INSERT INTO DICT.VOC (key,data) values (E'LINES',E'SLINESM0@ANS=@RECORDCONVERT @FM TO @VM IN @ANSL600');
INSERT INTO DICT.VOC (key,data) values (E'LISTDICT_REP',E'GCOLHEAD "FIELD NAME" TYPE FMC PART MASTER_FLAG SM GENERIC_TYPE JUST LEN HEADING "\'FS22DS22\'PAGE\'PP\'"0');
INSERT INTO DICT.VOC (key,data) values (E'LOG@CRT',E'GLOG_DATE LOG_TIME LOG_USERNAME LOG_WORKSTATION LOG_SOURCE LOG_MESSAGE20');
INSERT INTO DICT.VOC (key,data) values (E'LOG_DATE',E'F0DateS3[DATE,4]R12[DATE]1');
INSERT INTO DICT.VOC (key,data) values (E'LOG_MESSAGE',E'F2MessageST30');
INSERT INTO DICT.VOC (key,data) values (E'LOG_MESSAGE2',E'SMessageSdeclare function trim2@ans=trim2(@record<2>,@vm)T300');
INSERT INTO DICT.VOC (key,data) values (E'LOG_SOURCE',E'F1SourceSL20');
INSERT INTO DICT.VOC (key,data) values (E'LOG_SOURCE1',E'SSourceS@ans=field(@record<1>,\' \',1)L200');
INSERT INTO DICT.VOC (key,data) values (E'LOG_TIME',E'F0TimeS4MTSR5(MT)1');
INSERT INTO DICT.VOC (key,data) values (E'LOG_USERNAME',E'F0UsernameS2T201');
INSERT INTO DICT.VOC (key,data) values (E'LOG_WORKSTATION',E'F0WorkstationS1L201');
INSERT INTO DICT.VOC (key,data) values (E'LONG_FORMULA',E'F8FORMULAS0T60FORMULA');
INSERT INTO DICT.VOC (key,data) values (E'LOWERCASE_INDEX',E'F26LOWERCASE_INDEXSR1BOOLEAN1');
INSERT INTO DICT.VOC (key,data) values (E'LPTR',E'RLIST(P)');
INSERT INTO DICT.VOC (key,data) values (E'LT',E'RLISTLT');
INSERT INTO DICT.VOC (key,data) values (E'MASTER_FLAG',E'F28MASTER FLAGSBYes,L41');
INSERT INTO DICT.VOC (key,data) values (E'MASTER_DEFINITION',E'F28MASTER_DEFINITIONSR1BOOLEAN');
INSERT INTO DICT.VOC (key,data) values (E'MATCH',E'RLISTMATCH');
INSERT INTO DICT.VOC (key,data) values (E'MATCHES',E'RLISTMATCH');
INSERT INTO DICT.VOC (key,data) values (E'MATCHING',E'RLISTMATCH');
INSERT INTO DICT.VOC (key,data) values (E'MAX_LENGTH',E'F33MAX_LENGTHSR50N_(1,65537)INTEGER1');
INSERT INTO DICT.VOC (key,data) values (E'MONDAY',E'RLISTMON');
INSERT INTO DICT.VOC (key,data) values (E'MV',E'SMVMreturn @mvR30');
INSERT INTO DICT.VOC (key,data) values (E'NE',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'NEXT',E'RLISTNEXT');
INSERT INTO DICT.VOC (key,data) values (E'NFIELDS',E'SNFIELDSS@ans=count(@record,@fm)+1R100');
INSERT INTO DICT.VOC (key,data) values (E'NFIELDS0',E'SNFIELDSSconvert \\\\FE20\\\\ to \\\\20FE\\\\ in @record@ans=count(trim(@record),\' \')+1L100');
INSERT INTO DICT.VOC (key,data) values (E'NFIELDS00',E'SNFIELDS00S*remove comment blocksloop pos1=index(@record,\'/*\',1)while pos1 pos2=index(@record,\'*/\',1) if pos2 else pos2=len(@record)+1 @record[pos1,pos2-pos1+2]=\'\' repeat*call msg(\'x\')*remove comment linesnfields=count(@record,@fm)+1*dim x(nfields)*matparse @record into xfor i=1 to nfields *if trim(x(i))[1,1]=\'*\' then x(i)=\'\' if trim(@record<i>)[1,1]=\'*\' then @record<i>=\'\' next*@record=matunparse(x)* call msg(\'y\')*remove blank linesconvert \\\\FE20\\\\ to \\\\20FE\\\\ in @recordnfields=count(trim(@record),\' \')+1@ans=nfieldsR100');
INSERT INTO DICT.VOC (key,data) values (E'NLINES',E'SNLINESS0@ANS=COUNT(@RECORD,@FM)+1IF @RECORD EQ \'\' THEN @ANS=0R60');
INSERT INTO DICT.VOC (key,data) values (E'NO',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'NOPAGE',E'RLIST(N)');
INSERT INTO DICT.VOC (key,data) values (E'NORESOLVE',E'RLISTNR');
INSERT INTO DICT.VOC (key,data) values (E'NOT',E'RLISTNOT');
INSERT INTO DICT.VOC (key,data) values (E'NULL_FLAG',E'F31NULL_FLAGSR1BOOLEAN1');
INSERT INTO DICT.VOC (key,data) values (E'NULL_TRUNCATION',E'F20NULL_TRUNCATIONSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'NUM',E'SNUMS0@ANS=@IDHOLD=@IDCONVERT \'0123456789\' TO \'\' IN HOLDCONVERT HOLD TO \'\' IN @ANSR100');
INSERT INTO DICT.VOC (key,data) values (E'NUMID',E'F0NUMIDS0R10');
INSERT INTO DICT.VOC (key,data) values (E'OBJECT',E'GWITH @ID "$]"0');
INSERT INTO DICT.VOC (key,data) values (E'OBJECTCODETYPE',E'SOBJECTCODETYPES@ans=seq(@record<1>)L100');
INSERT INTO DICT.VOC (key,data) values (E'OCONV',E'RLISTOC');
INSERT INTO DICT.VOC (key,data) values (E'OF',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ONLY',E'RLISTONLY');
INSERT INTO DICT.VOC (key,data) values (E'OR',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'ORDINAL',E'F2ORDINALSR50N_(0,32768)INTEGER');
INSERT INTO DICT.VOC (key,data) values (E'OUTPUT_TRUNCATION',E'F40OUTPUT_TRUNCATIONSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'OVER',E'RLISTGT');
INSERT INTO DICT.VOC (key,data) values (E'PAGE',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'PART',E'F5PARTS0R2');
INSERT INTO DICT.VOC (key,data) values (E'PATRN',E'F11PATRNS0T10');
INSERT INTO DICT.VOC (key,data) values (E'PG',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'PHYSICAL_MAP_DOMAIN',E'F19PHYSICAL_MAP_DOMAINSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'PROGRAM_DATE',E'SPROGRAM DATES[DATE,4]ans={TIMEDATE}@ans=iconv(ans[11,99],\'D\')R120');
INSERT INTO DICT.VOC (key,data) values (E'PROMPT',E'F12PROMPTS0L12');
INSERT INTO DICT.VOC (key,data) values (E'PROTECTED',E'F25PROTECTEDSL10BOOLEAN1');
INSERT INTO DICT.VOC (key,data) values (E'RECNUM',E'SRECNUMS*@reccount is the same thing@ANS=@REC.COUNTL100');
INSERT INTO DICT.VOC (key,data) values (E'RECORD',E'SRECORDS@ANS=@RECORDT300');
INSERT INTO DICT.VOC (key,data) values (E'REDUCE',E'RLISTRP');
INSERT INTO DICT.VOC (key,data) values (E'REFERENCES',E'F30REFERENCESML10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'REFERENTIAL_INDEX',E'F23REFERENTIAL_INDEXSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'REFERRED',E'F24REFERREDSL10VARCHAR1');
INSERT INTO DICT.VOC (key,data) values (E'REPEAT',E'F4REPEATSL1"S""M"CHAR(1)');
INSERT INTO DICT.VOC (key,data) values (E'SATURDAY',E'RLISTSAT');
INSERT INTO DICT.VOC (key,data) values (E'SHOW',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'SHOWING',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'SIZE',E'SSIZES@ANS=LEN(@RECORD) + LEN(@ID) + 5R80');
INSERT INTO DICT.VOC (key,data) values (E'SM',E'F4SMS0L4');
INSERT INTO DICT.VOC (key,data) values (E'SOURCE',E'GWITH NOT @ID "$]" "*]"0');
INSERT INTO DICT.VOC (key,data) values (E'SPACER',E'S---S@ans=\'\'L100');
INSERT INTO DICT.VOC (key,data) values (E'STARTING',E'RLIST]');
INSERT INTO DICT.VOC (key,data) values (E'STARTS',E'RLIST]');
INSERT INTO DICT.VOC (key,data) values (E'SUNDAY',E'RLISTSUN');
INSERT INTO DICT.VOC (key,data) values (E'SUPP',E'RLISTHS');
INSERT INTO DICT.VOC (key,data) values (E'TABLE_NAME',E'F0TABLE_NAMES1L20VARCHAR');
INSERT INTO DICT.VOC (key,data) values (E'TEMP',E'STEMPS@ans=count(@record,\'xlate(\')R100');
INSERT INTO DICT.VOC (key,data) values (E'THAN',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'THAT',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'THE',E'RLIST');
INSERT INTO DICT.VOC (key,data) values (E'THURSDAY',E'RLISTTHU');
INSERT INTO DICT.VOC (key,data) values (E'TIME',E'S3TIMEMTHS@ANS=FIELD(DIR(@ID),@FM,3)L90');
INSERT INTO DICT.VOC (key,data) values (E'TIMEDATE',E'STIMEDATES$INSERT GBP,GENERAL.COMMONANS = FIELD2(@RECORD,@FM,-1)IF ANS[1,1] = \'V\' THEN ANS = FIELD2(@RECORD,@FM,-2) ENDIF NOT(ANS[1,2] MATCHES \'2N\') THEN @ANS=\'\' ELSE @ANS = ANSL210');
INSERT INTO DICT.VOC (key,data) values (E'TO',E'RLISTTO');
INSERT INTO DICT.VOC (key,data) values (E'TODAY',E'RLISTDAY');
INSERT INTO DICT.VOC (key,data) values (E'TOMMORROW',E'RLISTTOM');
INSERT INTO DICT.VOC (key,data) values (E'TOTAL',E'RLISTTOTAL');
INSERT INTO DICT.VOC (key,data) values (E'TUESDAY',E'RLISTTUE');
INSERT INTO DICT.VOC (key,data) values (E'TYPE',E'F1TYPES0L4');
INSERT INTO DICT.VOC (key,data) values (E'UNDER',E'RLISTLT');
INSERT INTO DICT.VOC (key,data) values (E'UNIQUE_FLAG',E'F32UNIQUE_FLAGSR1BOOLEAN1');
INSERT INTO DICT.VOC (key,data) values (E'UNLESS',E'RLISTWITH NOT');
INSERT INTO DICT.VOC (key,data) values (E'USER1',E'F41USER1SL101');
INSERT INTO DICT.VOC (key,data) values (E'USER2',E'F42USER2SL101');
INSERT INTO DICT.VOC (key,data) values (E'USER3',E'F43USER3SL101');
INSERT INTO DICT.VOC (key,data) values (E'USER4',E'F44USER4SL101');
INSERT INTO DICT.VOC (key,data) values (E'USER5',E'F45USER5SL101');
INSERT INTO DICT.VOC (key,data) values (E'USERNAME',E'SOperatorS@ANS=@USERNAMET200');
INSERT INTO DICT.VOC (key,data) values (E'USERNAME_CREATED',E'SUsernameCreatedS@ans={USERNAME_UPDATED}<1,1>L100');
INSERT INTO DICT.VOC (key,data) values (E'USING',E'RLISTUSING');
INSERT INTO DICT.VOC (key,data) values (E'VALIDATION',E'F11VALIDATIONML10VARCHAR');
INSERT INTO DICT.VOC (key,data) values (E'VERSION',E'SVERSIONSdeclare function field2if index(@dict,\'VOC\',1) then @ans=xlate(@record<3>,\'$\':@record<4>,\'VERSION\',\'X\')end else @ANS = FIELD2(@RECORD,@FM,-1) *IF @ANS[1,1] = \'V\' THEN * @ANS=@ANS[2,99] *END ELSE * @ANS = \'\' ENDL70');
INSERT INTO DICT.VOC (key,data) values (E'VERSION_DATE',E'SVERSION DATES[DATE,4]@ans=iconv(field(trim({VERSION}),\' \',2,3),\'D\')R100');
INSERT INTO DICT.VOC (key,data) values (E'VOC_ID',E'F0VOC.IDL10');
INSERT INTO DICT.VOC (key,data) values (E'WEDNESDAY',E'RLISTWED');
INSERT INTO DICT.VOC (key,data) values (E'WHEN',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'WHENEVER',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'WHICH',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'WITH',E'RLISTWITH');
INSERT INTO DICT.VOC (key,data) values (E'WITHOUT',E'RLISTWITH NOT');
INSERT INTO DICT.VOC (key,data) values (E'YESTERDAY',E'RLISTYST');
INSERT INTO DICT.VOC (key,data) values (E'[',E'RLIST[');
INSERT INTO DICT.VOC (key,data) values (E'[]',E'RLIST[]');
INSERT INTO DICT.VOC (key,data) values (E']',E'RLIST]');
INSERT INTO DICT.VOC (key,data) values (E'{',E'RLIST(');
INSERT INTO DICT.VOC (key,data) values (E'}',E'RLIST)');
|
-- capi2.test
--
-- execsql {
-- CREATE TABLE tab1(col1, col2);
-- }
CREATE TABLE tab1(col1, col2); |
<gh_stars>0
INSERT INTO KRIM_ROLE_PERM_T ( ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND )
VALUES ( KRIM_ROLE_PERM_ID_S.NEXTVAL, '1DD197DD1EE24867A83B157DBB389FE7', 1, 1, 1088, 'Y');
INSERT INTO KRIM_ROLE_PERM_T ( ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND )
VALUES ( KRIM_ROLE_PERM_ID_S.NEXTVAL, 'D309EA64643F4799832AF1AFAE57B184', 1, 1, 1089, 'Y');
INSERT INTO KRIM_ROLE_PERM_T ( ROLE_PERM_ID, OBJ_ID, VER_NBR, ROLE_ID, PERM_ID, ACTV_IND )
VALUES ( KRIM_ROLE_PERM_ID_S.NEXTVAL, 'D68A7129791941BA9BC3555FFE424269', 1, 1, 1090, 'Y');
COMMIT; |
<reponame>Erdigergeist/ADB
Update creature_template set mindmg='300', maxdmg='400', attackpower='24', dmg_multiplier='7.5', minrangedmg='300', maxrangedmg='400' where entry='31283'; |
/*+------------------------------------------------------------------------------------------------
@q lsg /grantee/privilege/owner
: Database privileges listing
*/-------------------------------------------------------------------------------------------------
/* Author : <NAME> (mailto:<EMAIL>)
Copyright : Copyright (c) 2007-2012 <NAME>. All rights reserved.
This file is part of Quality Oracle Scripts.
The Quality Oracle Scripts is a free software;
you can redistribute it and/or adapt it under the terms
of the Creative Commons Attribution 3.0 Unported license.
Notes : This software is provided "AS IS" without warranty
of any kind, express or implied.
*/-------------------------------------------------------------------------------------------------
with q as
(/* QLSG */
select /*+ DRIVING_SITE(p) */ p.grantee, p.privilege, p.owner, p.table_name object_name
from dba_tab_privs&&2 p
union all
select /*+ DRIVING_SITE(p) */ p.grantee, p.granted_role privilege, 'ROLE' owner, '' object_name
from dba_role_privs&&2 p
union all
select /*+ DRIVING_SITE(p) */ p.grantee, p.privilege, 'SYS' owner, '' object_name
from dba_sys_privs&&2 p
/* QEND */)
select
'/'||grantee||'/'||privilege||'/'||owner
||case when object_name is NULL then NULL else '/'||object_name end fqname
from q
where
'/'||grantee||'/'||privilege||'/'||owner
||case when object_name is NULL then NULL else '/'||object_name end
like upper('%/&&1%')
order by 1
;
|
<filename>oxide.sql
CREATE TABLE users (
pass text NOT NULL UNIQUE,
coin float NOT NULL default 0,
id int NOT NULL UNIQUE
);
CREATE TABLE config (
id int default 1 NOT NULL UNIQUE,
coinsMined DOUBLE(21, 17) default 0 NOT NULL,
coinCap float default 350 NOT NULL
);
CREATE TABLE transactions (
sendingUserId int NOT NULL,
recievingUserId int NOT NULL,
amountTransferred float NOT NULL,
transactionId int NOT NULL UNIQUE,
reason text NOT NULL
);
CREATE TABLE items (
itemName text NOT NULL,
amountToCharge float NOT NULL,
sellerId int NOT NULL,
stock int NOT NULL,
itemId int NOT NULL UNIQUE,
category text NOT NULL,
contactSeller text NOT NULL,
descr text NOT NULL
);
|
--
-- CREATE_TYPE
--
--
-- Note: widget_in/out were created in create_function_1, without any
-- prior shell-type creation. These commands therefore complete a test
-- of the "old style" approach of making the functions first.
--
-- start_ignore
drop database hdfs;
-- end_ignore
create database hdfs;
\c hdfs
-- Test stand-alone composite type
create type temp_type_1 as (a int, b int);
create type temp_type_2 as (a int, b int);
create table temp_table (id int, a temp_type_1, b temp_type_2) distributed randomly;
insert into temp_table values (1, (1,2), (3,4));
insert into temp_table values (2, (5,6), (7,8));
insert into temp_table values (3, (9,10), (11,12));
\d temp_table
select * from temp_table order by 1;
drop table temp_table;
create type temp_type_3 as (a temp_type_1, b temp_type_2);
CREATE table temp_table (id int, a temp_type_1, b temp_type_3) distributed randomly;
insert into temp_table values (1, (9,10), ((11,12),(7,8)));
insert into temp_table values (2, (1,2), ((3,4),(5,6)));
select * from temp_table order by 1;
-- check catalog entries for types
select count(typrelid) from pg_type where typname like 'temp_type_%';
comment on type temp_type_1 is 'test composite type';
\dT temp_type_1
select count(reltype) from pg_class where relname like 'temp_type%';
create table test_func (foo temp_type_1);
insert into test_func values((1,2));
insert into test_func values((3,4));
insert into test_func values((5,6));
insert into test_func values((7,8));
-- Functions with UDTs
create function test_temp_func(temp_type_1, temp_type_2) RETURNS temp_type_1 AS '
select foo from test_func where (foo).a = 3;
' LANGUAGE SQL;
SELECT * FROM test_temp_func((7,8), (5,6));
drop function test_temp_func(temp_type_1, temp_type_2);
-- UDT and UDA
create or replace function test_temp_func_2(temp_type_1, temp_type_1) RETURNS temp_type_1 AS '
select ($1.a + $2.a, $1.b + $2.b)::temp_type_1;
' LANGUAGE SQL;
CREATE AGGREGATE agg_comp_type (temp_type_1) (
sfunc = test_temp_func_2, stype = temp_type_1,
initcond = '(0,0)'
);
select agg_comp_type(foo) from test_func;
-- Check alter schema
create schema type_test;
alter type temp_type_1 set schema type_test;
\dT temp_type_1
\dT type_test.temp_type_1
\d test_func
select foo from test_func where (foo).a = 3;
-- type name with truncation
create type abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890 as (a int, b int);
create table huge_type_table (a abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890);
insert into huge_type_table values ((1,2));
insert into huge_type_table values ((3,4));
select * from huge_type_table;
\d huge_type_table;
drop table huge_type_table;
drop type abcdefghijklmnopqrstuvwxyz1234567890abcdefghijklmnopqrstuvwxyz1234567890;
-- composite type array tests ..negative test
create table type_array_table (col_one type_test.temp_type_1[]);
\c regression
|
<reponame>ik-scripting/sql-scripts
-- Show every Database Size
-- On new vindow
sp_msforeachtable 'EXEC sp_spaceused [?]' GO
exec sp_spaceused N'sdct_PS_NetStampPreLoad';
|
<reponame>SoftmedTanzania/opensrp_server
INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('c');
INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('demo1');
INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('demo2');
INSERT INTO anm_report.dim_anm (anmIdentifier) VALUES ('demo3');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT_BOOSTER_2'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='HEP'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OPV'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MEASLES'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BCG'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC<12'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OCP'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='IUD'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MALE_STERILIZATION'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FEMALE_STERILIZATION'), 400, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='CONDOM'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DMPA'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FP_TRADITIONAL'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LAM'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='SUB_TT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT1'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT2'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TTB'), 30, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LIVE_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='INSTITUTIONAL_DELIVERY'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BF_POST_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='WEIGHED_AT_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_1'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_2'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC4'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='PNC3'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_HOM'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SC'), 21, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PHC'), 22, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_CHC'), 23, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SDH'), 24, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_DH'), 25, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PRI'), 26, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT3_OPV3'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='c'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPTB_OPVB'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT_BOOSTER_2'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='HEP'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OPV'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MEASLES'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BCG'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC<12'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OCP'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='IUD'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MALE_STERILIZATION'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FEMALE_STERILIZATION'), 400, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='CONDOM'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DMPA'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FP_TRADITIONAL'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LAM'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='SUB_TT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT1'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT2'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TTB'), 30, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LIVE_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='INSTITUTIONAL_DELIVERY'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BF_POST_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='WEIGHED_AT_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_1'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_2'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC4'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='PNC3'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_HOM'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SC'), 21, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PHC'), 22, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_CHC'), 23, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SDH'), 24, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_DH'), 25, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PRI'), 26, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT3_OPV3'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo1'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPTB_OPVB'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT_BOOSTER_2'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='HEP'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OPV'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MEASLES'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BCG'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC<12'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OCP'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='IUD'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MALE_STERILIZATION'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FEMALE_STERILIZATION'), 400, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='CONDOM'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DMPA'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FP_TRADITIONAL'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LAM'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='SUB_TT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT1'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT2'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TTB'), 30, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LIVE_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='INSTITUTIONAL_DELIVERY'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BF_POST_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='WEIGHED_AT_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_1'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_2'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC4'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='PNC3'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_HOM'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SC'), 21, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PHC'), 22, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_CHC'), 23, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SDH'), 24, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_DH'), 25, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PRI'), 26, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT3_OPV3'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo2'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPTB_OPVB'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT_BOOSTER_2'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='HEP'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OPV'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MEASLES'), 45, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BCG'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC<12'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='OCP'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='IUD'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='MALE_STERILIZATION'), 60, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FEMALE_STERILIZATION'), 400, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='CONDOM'), 55, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DMPA'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='FP_TRADITIONAL'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LAM'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='SUB_TT'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT1'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TT2'), 10, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='TTB'), 30, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='LIVE_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='INSTITUTIONAL_DELIVERY'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='BF_POST_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='WEIGHED_AT_BIRTH'), 200, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_1'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='VIT_A_2'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='ANC4'), 50, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='PNC3'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_HOM'), 20, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SC'), 21, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PHC'), 22, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_CHC'), 23, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_SDH'), 24, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_DH'), 25, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='D_PRI'), 26, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPT3_OPV3'), 40, '2012-03-26', '2013-03-25');
INSERT INTO anm_report.annual_target (anmIdentifier, indicator, target, start_date, end_date) VALUES ((SELECT ID FROM anm_report.dim_anm WHERE anmIdentifier='demo3'), (SELECT ID FROM anm_report.dim_indicator WHERE indicator='DPTB_OPVB'), 45, '2012-03-26', '2013-03-25');
|
CREATE TABLE [dbo].[Room] (
[RoomId] INT IDENTITY (1, 1) NOT NULL,
[Title] NVARCHAR (1000) NOT NULL,
[ShortTitle] NVARCHAR (500) NULL,
[Description] NVARCHAR (4000) NULL,
[SeatingCapacity] INT NOT NULL,
[Latitude] FLOAT (53) NOT NULL,
[Longitude] FLOAT (53) NOT NULL,
[DataVersion] INT CONSTRAINT [DF_Room_DataVersion] DEFAULT ((1)) NOT NULL,
[CreatedUtcDate] DATETIME2 (7) CONSTRAINT [DF_Room_CreatedUtcDate] DEFAULT (getutcdate()) NOT NULL,
[CreatedBy] NVARCHAR (200) NOT NULL,
[ModifiedUtcDate] DATETIME2 (7) CONSTRAINT [DF_Room_ModifiedUtcDate] DEFAULT (getutcdate()) NOT NULL,
[ModifiedBy] NVARCHAR (200) NOT NULL,
[IsDeleted] BIT CONSTRAINT [DF_Room_IsDeleted] DEFAULT ((0)) NOT NULL,
CONSTRAINT [PK_Room] PRIMARY KEY CLUSTERED ([RoomId] ASC)
);
GO
CREATE TRIGGER [dbo].[trg_Room_Update] ON [dbo].[Room]
FOR UPDATE
AS
SET NOCOUNT ON
UPDATE a SET
a.DataVersion = b.DataVersion + 1
FROM Room a
INNER JOIN inserted b
ON a.RoomId = b.RoomId
|
<reponame>goldmansachs/obevo-kata<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func443.sql
CREATE FUNCTION func443() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE390);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE185);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE325);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW4);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW78);END $$;
GO |
-- @author prabhd
-- @created 2012-12-05 12:00:00
-- @modified 2012-12-05 12:00:00
-- @tags dml HAWQ
-- @db_name dmldb
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS dml_ao_pt_r;
DROP TABLE IF EXISTS dml_ao_pt_s;
DROP TABLE IF EXISTS dml_ao_pt_p;
CREATE TABLE dml_ao_pt_r (
a int ,
b int ,
c text ,
d numeric)
WITH (appendonly = true)
DISTRIBUTED BY (a)
partition by range(b) (
start(1) end(301) every(10));
CREATE TABLE dml_ao_pt_s (
a int ,
b int,
c text ,
d numeric)
WITH (appendonly = true)
DISTRIBUTED BY (b)
partition by range(a) (
start(1) end(101) every(100),
default partition def);
CREATE TABLE dml_ao_pt_p (
a int ,
b int,
c text ,
d numeric)
WITH (appendonly = true)
DISTRIBUTED BY (a,b)
partition by list(a,d) (
partition one VALUES ((1,1),(1,2),(1,3),(1,4),(1,5)),
partition two VALUES((2,1),(2,2),(2,3),(2,4),(2,5)),
default partition def);
INSERT INTO dml_ao_pt_r SELECT generate_series(1,100), generate_series(1,100) * 3,'r', generate_series(1,100) % 6;
INSERT INTO dml_ao_pt_p SELECT generate_series(1,100), generate_series(1,100) * 3,'p', generate_series(1,100) % 6;
INSERT INTO dml_ao_pt_p VALUES(generate_series(1,10),NULL,'pn',NULL);
INSERT INTO dml_ao_pt_p VALUES(NULL,1,'pn',NULL),(1,NULL,'pn',0),(NULL,NULL,'pn',0),(0,1,'pn',NULL),(NULL,NULL,'pn',NULL);
INSERT INTO dml_ao_pt_s SELECT generate_series(1,100), generate_series(1,100) * 3,'s', generate_series(1,100) % 6;
INSERT INTO dml_ao_pt_s VALUES(generate_series(1,10),NULL,'sn',NULL);
INSERT INTO dml_ao_pt_s VALUES(NULL,1,'sn',NULL),(1,NULL,'sn',0),(NULL,NULL,'sn',0),(0,1,'sn',NULL),(NULL,NULL,'sn',NULL);
|
<filename>tests/test-data/initdb/archive/03_cone_search.sql
CREATE EXTENSION cube;
CREATE EXTENSION earthdistance;
/* redefine earth radius such that great circle distances are in degrees */
CREATE OR REPLACE FUNCTION earth() RETURNS float8
LANGUAGE SQL IMMUTABLE PARALLEL SAFE
AS 'SELECT 180/pi()';
/* schema-qualify definition of ll_to_earth() so that it can used for autoanalyze */
CREATE OR REPLACE FUNCTION ll_to_earth(float8, float8)
RETURNS earth
LANGUAGE SQL
IMMUTABLE STRICT
PARALLEL SAFE
AS 'SELECT public.cube(public.cube(public.cube(public.earth()*cos(radians($1))*cos(radians($2))),public.earth()*cos(radians($1))*sin(radians($2))),public.earth()*sin(radians($1)))::public.earth';
CREATE INDEX cone_search on candidate USING gist (ll_to_earth(dec, ra));
|
--
-- Add new types to MDS
--
-- Adding Float to Type table
--
INSERT INTO "Type"
SELECT "id" + 1, 'mds.field.description.float','mds.field.float','float','java.lang.Float'
FROM "Type"
ORDER BY "id" DESC
LIMIT 1;
-- Adding Short to Type table
--
INSERT INTO "Type"
SELECT "id" + 1, 'mds.field.description.short','mds.field.short','short','java.lang.Short'
FROM "Type"
ORDER BY "id" DESC
LIMIT 1;
-- Adding Character to Type table
--
INSERT INTO "Type"
SELECT "id" + 1, 'mds.field.description.character','mds.field.character','char','java.lang.Character'
FROM "Type"
ORDER BY "id" DESC
LIMIT 1;
-- Adding Type Validations to float
INSERT INTO "TypeValidation"
SELECT tv."id" + 1, 'mds.field.validation.minValue', t."id"
FROM "TypeValidation" tv, "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
ORDER BY tv."id" DESC
LIMIT 1;
INSERT INTO "TypeValidation"
SELECT tv."id" + 1, 'mds.field.validation.maxValue', t."id"
FROM "TypeValidation" tv, "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
ORDER BY tv."id" DESC
LIMIT 1;
-- Adding Type Validations to short
INSERT INTO "TypeValidation"
SELECT tv."id" + 1, 'mds.field.validation.minValue', t."id"
FROM "TypeValidation" tv, "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
ORDER BY tv."id" DESC
LIMIT 1;
INSERT INTO "TypeValidation"
SELECT tv."id" + 1, 'mds.field.validation.maxValue', t."id"
FROM "TypeValidation" tv, "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
ORDER BY tv."id" DESC
LIMIT 1;
-- Joining Type and TypeValidation tables using TYPE_TYPE_VALIDATION table for float, short
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 12, 0
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 13, 1
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 3, 2
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 4, 3
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Float'
LIMIT 1;
-- TYPE_TYPE_VALIDATION for Short
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 14, 0
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 15, 1
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 3, 2
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
LIMIT 1;
INSERT INTO "TYPE_TYPE_VALIDATION"
SELECT t."id", 4, 3
FROM "Type" t
WHERE t."typeClass" LIKE 'java.lang.Short'
LIMIT 1;
-- Adding content to TypeValidation_annotations table
INSERT INTO "TypeValidation_annotations" VALUES (12,'javax.validation.constraints.DecimalMin',0), (12,'javax.validation.constraints.Min',1), (13,'javax.validation.constraints.DecimalMin',0), (13,'javax.validation.constraints.Min',1);
INSERT INTO "TypeValidation_annotations" VALUES (14,'javax.validation.constraints.DecimalMin',0), (14,'javax.validation.constraints.Min',1), (15,'javax.validation.constraints.DecimalMin',0), (15,'javax.validation.constraints.Min',1);
-- Adding Settings to Float Type
INSERT INTO "TYPE_TYPE_SETTING"
SELECT t."id", ts."id", 0
FROM "Type" t, "TypeSetting" ts
WHERE t."typeClass" LIKE 'java.lang.Float' AND ts."name" LIKE 'mds.form.label.precision';
INSERT INTO "TYPE_TYPE_SETTING"
SELECT t."id", ts."id", 1
FROM "Type" t, "TypeSetting" ts
WHERE t."typeClass" LIKE 'java.lang.Float' AND ts."name" LIKE 'mds.form.label.scale';
|
<gh_stars>10-100
\set VERBOSITY default
\set ECHO all
LOAD 'pg_statement_rollback.so';
SET pg_statement_rollback.enabled = 1;
BEGIN;
CREATE TABLE savepoint_test(id integer);
INSERT INTO savepoint_test SELECT 1;
ROLLBACK TO "PgSLRAutoSvpt";
SELECT COUNT( * ) FROM savepoint_test;
INSERT INTO savepoint_test SELECT 1;
SAVEPOINT useless;
INSERT INTO savepoint_test SELECT 1;
SAVEPOINT s1;
INSERT INTO savepoint_test SELECT 1;
SELECT COUNT( * ) FROM savepoint_test;
INSERT INTO savepoint_test SELECT 'wrong 1';
ROLLBACK TO "PgSLRAutoSvpt";
SELECT COUNT( * ) FROM savepoint_test;
INSERT INTO savepoint_test SELECT 'wrong 2';
ROLLBACK TO s1;
SELECT COUNT( * ) FROM savepoint_test;
RELEASE badsp;
ROLLBACK TO "PgSLRAutoSvpt";
SELECT COUNT( * ) FROM savepoint_test;
RELEASE useless;
INSERT INTO savepoint_test SELECT 1;
ROLLBACK TO "PgSLRAutoSvpt";
SELECT COUNT( * ) FROM savepoint_test;
ROLLBACK;
|
-- phpMyAdmin SQL Dump
-- version 4.1.12
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 31-12-2018 a las 06:02:09
-- Versión del servidor: 5.5.36
-- Versión de PHP: 5.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de datos: `hist_db`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `cat_u_administrativas`
--
DROP TABLE IF EXISTS `cat_u_administrativas`;
CREATE TABLE IF NOT EXISTS `cat_u_administrativas` (
`ID` int(11) unsigned NOT NULL AUTO_INCREMENT,
`VC_NOMBRE` text NOT NULL,
`DIRECCION` text,
`TELEFONO` varchar(255) DEFAULT NULL,
`ES_INSTITUCION` int(11) DEFAULT NULL,
`USU_CREA` varchar(40) DEFAULT NULL,
`FCH_CREA` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`ID_UA_AGENDA_DIGITAL` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `contactos_grupos`
--
DROP TABLE IF EXISTS `contactos_grupos`;
CREATE TABLE IF NOT EXISTS `contactos_grupos` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`CONTACTO_ID` int(11) DEFAULT NULL,
`GRUPO_ID` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=4 ;
--
-- Volcado de datos para la tabla `contactos_grupos`
--
INSERT INTO `contactos_grupos` (`ID`, `CONTACTO_ID`, `GRUPO_ID`) VALUES
(2, 1, 1),
(3, 1, 5);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `contacto_u_administrativa`
--
DROP TABLE IF EXISTS `contacto_u_administrativa`;
CREATE TABLE IF NOT EXISTS `contacto_u_administrativa` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`VC_NOMBRE` varchar(255) NOT NULL,
`VC_APELLIDO_PAT` varchar(255) NOT NULL,
`VC_APELLIDO_MAT` varchar(255) DEFAULT NULL,
`ID_U_ADMINISTRATIVA` int(11) NOT NULL,
`VC_CARGO` varchar(255) DEFAULT NULL,
`VC_TELEFONO` varchar(255) DEFAULT NULL,
`VC_EXTENSION` varchar(100) DEFAULT NULL,
`VC_CORREO` varchar(255) NOT NULL,
`VC_CORREO_EXT` varchar(255) DEFAULT NULL,
`VC_PSWD` varchar(255) NOT NULL,
`VC_ESTATUS` varchar(1) DEFAULT NULL,
`FCH_ALTA` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`FCH_ACTIVACION` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`FCH_BAJA` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`USU_BAJA` varchar(40) DEFAULT NULL,
`ID_PERFIL` int(11) NOT NULL,
`ACTIVATION_CODE` varchar(40) DEFAULT NULL,
`SALT` varchar(255) DEFAULT NULL,
`FORGOTTEN_PASSWORD_CODE` varchar(40) DEFAULT NULL,
`FORGOTTEN_PASSWORD_TIME` int(10) unsigned DEFAULT NULL,
`REMEMBER_CODE` varchar(40) DEFAULT NULL,
`LAST_LOGIN` int(10) unsigned DEFAULT NULL,
`IP_ADDRESS` varchar(15) DEFAULT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11 ;
--
-- Volcado de datos para la tabla `contacto_u_administrativa`
--
INSERT INTO `contacto_u_administrativa` (`ID`, `VC_NOMBRE`, `VC_APELLIDO_PAT`, `VC_APELLIDO_MAT`, `ID_U_ADMINISTRATIVA`, `VC_CARGO`, `VC_TELEFONO`, `VC_EXTENSION`, `VC_CORREO`, `VC_CORREO_EXT`, `VC_PSWD`, `VC_ESTATUS`, `FCH_ALTA`, `FCH_ACTIVACION`, `FCH_BAJA`, `USU_BAJA`, `ID_PERFIL`, `ACTIVATION_CODE`, `SALT`, `FORGOTTEN_PASSWORD_CODE`, `FORGOTTEN_PASSWORD_TIME`, `REMEMBER_CODE`, `LAST_LOGIN`, `IP_ADDRESS`) VALUES
(1, 'Administrador', 'Solicitud', 'Desarrollo', 0, 'Administrador', '41550200', '9333', '<EMAIL>', '', '$2a$07$SeBknntpZror9uyftVopmu61qg0ms8Qv1yV6FG.kQOSM.9QhmTo36', '1', '2018-12-31 04:53:45', '2017-06-23 21:19:07', '0000-00-00 00:00:00', NULL, 1, NULL, NULL, NULL, NULL, 'SPCBHXUP302ylssxnEdrH.', 1546232025, NULL),
(10, 'Alberto ', 'Olivares', '', 21, '', '41550200', '9333', '<EMAIL>', '', '$2y$08$dq91fgz0oM3ZoHf7fg6XweMJ26k5OqZC5tA2jyMlVzU76Ieu.vVoS', '1', '2018-10-29 23:55:57', '0000-00-00 00:00:00', '0000-00-00 00:00:00', NULL, 0, NULL, NULL, NULL, NULL, 'ewUntJ0MBKe.lu7xD/z3nO', 1540835757, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `grupos`
--
DROP TABLE IF EXISTS `grupos`;
CREATE TABLE IF NOT EXISTS `grupos` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`NOMBRE` varchar(255) NOT NULL,
`DESCRIPCION` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=6 ;
--
-- Volcado de datos para la tabla `grupos`
--
INSERT INTO `grupos` (`ID`, `NOMBRE`, `DESCRIPCION`) VALUES
(1, 'admin', 'Administrador'),
(2, 'Registrado', 'Estatus inicial'),
(3, 'Capturista', 'Capturista'),
(4, 'Sub_admin', 'El subadmin de la plataforma'),
(5, 'historias', 'Acceso a edición de historías');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_avatar`
--
DROP TABLE IF EXISTS `ips_avatar`;
CREATE TABLE IF NOT EXISTS `ips_avatar` (
`id_avatar` int(11) NOT NULL AUTO_INCREMENT,
`nombre_avatar` varchar(255) NOT NULL,
`imagen_avatar` text NOT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_avatar`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_bancos`
--
DROP TABLE IF EXISTS `ips_bancos`;
CREATE TABLE IF NOT EXISTS `ips_bancos` (
`id_banco` int(11) NOT NULL AUTO_INCREMENT,
`banco` varchar(255) NOT NULL,
PRIMARY KEY (`id_banco`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_calificaciones`
--
DROP TABLE IF EXISTS `ips_calificaciones`;
CREATE TABLE IF NOT EXISTS `ips_calificaciones` (
`id_calif` int(11) NOT NULL AUTO_INCREMENT,
`calificacion` int(11) NOT NULL,
`id_hist` int(11) NOT NULL,
`comentario` text,
`fecha_registro` timestamp NULL DEFAULT NULL,
`id_register` int(11) DEFAULT NULL,
`es_lector` int(11) DEFAULT NULL,
`es_autor` int(11) DEFAULT NULL,
`es_mediador` int(11) DEFAULT NULL,
`mostrar_comentario` int(11) NOT NULL,
`fecha_autorizacion` timestamp NULL DEFAULT NULL,
`usuario_autorizacion` varchar(45) DEFAULT NULL,
`razones_comentario` text,
`enviar_correo_autor` int(11) DEFAULT NULL,
`tipo_comentario` char(1) DEFAULT NULL,
PRIMARY KEY (`id_calif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_categorias`
--
DROP TABLE IF EXISTS `ips_categorias`;
CREATE TABLE IF NOT EXISTS `ips_categorias` (
`id_categoria` int(11) NOT NULL AUTO_INCREMENT,
`categoria` varchar(510) NOT NULL,
`descripcion` text,
PRIMARY KEY (`id_categoria`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Volcado de datos para la tabla `ips_categorias`
--
INSERT INTO `ips_categorias` (`id_categoria`, `categoria`, `descripcion`) VALUES
(1, 'Histórico', NULL),
(2, 'Romance', NULL),
(3, 'Aventura', NULL),
(4, 'Ficción', NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_categorias_x_series`
--
DROP TABLE IF EXISTS `ips_categorias_x_series`;
CREATE TABLE IF NOT EXISTS `ips_categorias_x_series` (
`ips_categorias_id_categoria` int(11) NOT NULL,
`ips_series_id_serie` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `ips_categorias_x_series`
--
INSERT INTO `ips_categorias_x_series` (`ips_categorias_id_categoria`, `ips_series_id_serie`) VALUES
(2, 1),
(4, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_ciudades`
--
DROP TABLE IF EXISTS `ips_ciudades`;
CREATE TABLE IF NOT EXISTS `ips_ciudades` (
`id_ciudad` int(11) NOT NULL,
`ciudad` varchar(510) NOT NULL,
`id_estado` int(11) NOT NULL,
PRIMARY KEY (`id_ciudad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_datos_bancarios`
--
DROP TABLE IF EXISTS `ips_datos_bancarios`;
CREATE TABLE IF NOT EXISTS `ips_datos_bancarios` (
`id_dato_bancario` int(11) NOT NULL AUTO_INCREMENT,
`nombre_titular_banco` varchar(255) DEFAULT NULL,
`cuenta_banco` int(11) DEFAULT NULL,
`clabe_banco` int(11) DEFAULT NULL,
`numero_tarjeta_banco` int(11) DEFAULT NULL,
`id_register` int(11) NOT NULL,
`id_banco` int(11) NOT NULL,
`sucursal_banco` varchar(255) DEFAULT NULL,
`numero_cliente_banco` int(11) DEFAULT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_dato_bancario`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_duraciones_suscripciones`
--
DROP TABLE IF EXISTS `ips_duraciones_suscripciones`;
CREATE TABLE IF NOT EXISTS `ips_duraciones_suscripciones` (
`id_duracion_suscr` int(11) NOT NULL AUTO_INCREMENT,
`duracion_suscr` varchar(255) NOT NULL,
PRIMARY KEY (`id_duracion_suscr`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_estados`
--
DROP TABLE IF EXISTS `ips_estados`;
CREATE TABLE IF NOT EXISTS `ips_estados` (
`id_estado` int(11) NOT NULL AUTO_INCREMENT,
`estado` varchar(150) NOT NULL,
`id_pais` int(11) NOT NULL,
PRIMARY KEY (`id_estado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_estatus_hist`
--
DROP TABLE IF EXISTS `ips_estatus_hist`;
CREATE TABLE IF NOT EXISTS `ips_estatus_hist` (
`id_estatus_hist` int(11) NOT NULL AUTO_INCREMENT,
`estatus_hist` varchar(255) NOT NULL,
PRIMARY KEY (`id_estatus_hist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_estatus_suscripciones`
--
DROP TABLE IF EXISTS `ips_estatus_suscripciones`;
CREATE TABLE IF NOT EXISTS `ips_estatus_suscripciones` (
`id_estatus_susc` int(11) NOT NULL AUTO_INCREMENT,
`estatus_suscripcion` varchar(255) NOT NULL,
PRIMARY KEY (`id_estatus_susc`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_faq`
--
DROP TABLE IF EXISTS `ips_faq`;
CREATE TABLE IF NOT EXISTS `ips_faq` (
`id_faq` int(11) NOT NULL AUTO_INCREMENT,
`titulo_faq` varchar(510) NOT NULL,
`descripcion_faq` text,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_faq`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_fiscal`
--
DROP TABLE IF EXISTS `ips_fiscal`;
CREATE TABLE IF NOT EXISTS `ips_fiscal` (
`id_fiscal` int(11) NOT NULL AUTO_INCREMENT,
`id_tipo_persona` char(1) NOT NULL,
`rfc_fiscal` varchar(13) NOT NULL,
`razon_social` varchar(510) NOT NULL,
`domiclio_fiscal` text,
`cif_archivo` text,
`id_register` int(11) NOT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_fiscal`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_forma_pago`
--
DROP TABLE IF EXISTS `ips_forma_pago`;
CREATE TABLE IF NOT EXISTS `ips_forma_pago` (
`id_forma_pago` int(11) NOT NULL AUTO_INCREMENT,
`forma_pago` varchar(45) NOT NULL,
PRIMARY KEY (`id_forma_pago`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_historias`
--
DROP TABLE IF EXISTS `ips_historias`;
CREATE TABLE IF NOT EXISTS `ips_historias` (
`id_hist` int(11) NOT NULL AUTO_INCREMENT,
`titulo_hist` varchar(510) NOT NULL,
`duracion_hist` varchar(255) DEFAULT NULL,
`copy_hist` varchar(255) DEFAULT NULL,
`historia` text,
`portada_bg` text,
`portada_sm` text,
`teaser_audio` text,
`archivo_audio` text,
`duracion_audio` varchar(255) DEFAULT NULL,
`id_estatus_hist` int(11) NOT NULL,
`id_register` int(11) NOT NULL,
`id_tiempo` int(11) DEFAULT NULL,
`id_serie` int(11) DEFAULT NULL,
`hashtag_hist` varchar(150) DEFAULT NULL,
`fecha_inicio_hist` datetime DEFAULT NULL,
`fecha_fin_hist` datetime DEFAULT NULL,
`fecha_captura_hist` timestamp NULL DEFAULT NULL,
`fecha_publicacion_hist` timestamp NULL DEFAULT NULL,
`usuario_publica_hist` varchar(45) DEFAULT NULL,
`id_modifica_register` int(11) NOT NULL,
`fch_modifica_register` int(11) NOT NULL,
`id_elimina_register` int(11) NOT NULL,
`fch_elimina_register` int(11) NOT NULL,
`fecha_terminacion_contrato_hist` timestamp NULL DEFAULT NULL,
`usuario_terminacion_hist` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_hist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Volcado de datos para la tabla `ips_historias`
--
INSERT INTO `ips_historias` (`id_hist`, `titulo_hist`, `duracion_hist`, `copy_hist`, `historia`, `portada_bg`, `portada_sm`, `teaser_audio`, `archivo_audio`, `duracion_audio`, `id_estatus_hist`, `id_register`, `id_tiempo`, `id_serie`, `hashtag_hist`, `fecha_inicio_hist`, `fecha_fin_hist`, `fecha_captura_hist`, `fecha_publicacion_hist`, `usuario_publica_hist`, `id_modifica_register`, `fch_modifica_register`, `id_elimina_register`, `fch_elimina_register`, `fecha_terminacion_contrato_hist`, `usuario_terminacion_hist`) VALUES
(1, 'El título es ...', '--', 'La historia es sobre', '<p>comienza en..ttuuuuuu</p>', NULL, NULL, NULL, NULL, NULL, 0, 1, NULL, 0, '', '2018-12-31 00:00:00', '2018-12-31 00:00:00', '2018-12-27 22:45:28', NULL, NULL, 1, 2018, 0, 0, NULL, NULL),
(2, 'Segunda historia', '2', 'la segunda historia es de...', '<p>lahistoria comienza en..</p>', 'perros4 (6).jpg', 'perros3 (4).jpg', NULL, NULL, NULL, 0, 1, NULL, 0, 'gato', '2018-12-30 00:00:00', '2018-12-31 00:00:00', '2018-12-27 22:48:01', NULL, NULL, 1, 2018, 0, 0, NULL, NULL),
(3, 'historia tres', '2', 'la historia es de..', '<p>la historia es de..buuuu espantos..</p>', 'perros 2 (1).jpg', 'bacheo.jpg', 'AHORROS CHONCHOSCHEDRAUISPOT RADIO (3).mp3', 'Pedigree me toca sobre Mexico (5).mp3', NULL, 1, 1, NULL, 1, 'tercer', '2018-12-31 00:00:00', '2018-12-31 00:00:00', '2018-12-28 05:06:43', '2018-12-29 04:01:30', '1', 1, 2018, 0, 0, NULL, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_historias_logs`
--
DROP TABLE IF EXISTS `ips_historias_logs`;
CREATE TABLE IF NOT EXISTS `ips_historias_logs` (
`id_hist_log` bigint(20) NOT NULL AUTO_INCREMENT,
`id_hist` int(11) NOT NULL,
`titulo_hist` varchar(510) NOT NULL,
`duracion_hist` varchar(255) DEFAULT NULL,
`copy_hist` varchar(255) DEFAULT NULL,
`historia` text,
`portada_bg` text,
`portada_sm` text,
`teaser_audio` text,
`archivo_audio` text,
`duracion_audio` varchar(255) DEFAULT NULL,
`id_estatus_hist` int(11) NOT NULL,
`id_register` int(11) NOT NULL,
`id_tiempo` int(11) DEFAULT NULL,
`id_serie` int(11) DEFAULT NULL,
`hashtag_hist` varchar(150) DEFAULT NULL,
`fecha_inicio_hist` datetime DEFAULT NULL,
`fecha_fin_hist` datetime DEFAULT NULL,
`fecha_captura_hist` timestamp NULL DEFAULT NULL,
`fecha_publicacion_hist` timestamp NULL DEFAULT NULL,
`usuario_publica_hist` varchar(45) DEFAULT NULL,
`fecha_terminacion_contrato_hist` timestamp NULL DEFAULT NULL,
`usuario_terminacion_hist` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_hist_log`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_historias_x_categorias`
--
DROP TABLE IF EXISTS `ips_historias_x_categorias`;
CREATE TABLE IF NOT EXISTS `ips_historias_x_categorias` (
`id_categoria` int(11) NOT NULL,
`id_hist` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `ips_historias_x_categorias`
--
INSERT INTO `ips_historias_x_categorias` (`id_categoria`, `id_hist`) VALUES
(2, 2),
(3, 2),
(4, 2),
(1, 3),
(4, 3);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_historias_x_readlist`
--
DROP TABLE IF EXISTS `ips_historias_x_readlist`;
CREATE TABLE IF NOT EXISTS `ips_historias_x_readlist` (
`id_hist` int(11) NOT NULL,
`id_readlist` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Volcado de datos para la tabla `ips_historias_x_readlist`
--
INSERT INTO `ips_historias_x_readlist` (`id_hist`, `id_readlist`) VALUES
(3, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_legales`
--
DROP TABLE IF EXISTS `ips_legales`;
CREATE TABLE IF NOT EXISTS `ips_legales` (
`id_legal` int(11) NOT NULL AUTO_INCREMENT,
`titulo_legal` varchar(510) NOT NULL,
`descripcion_legal` text,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_legal`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_mis_historias`
--
DROP TABLE IF EXISTS `ips_mis_historias`;
CREATE TABLE IF NOT EXISTS `ips_mis_historias` (
`id_mi_hist` int(11) NOT NULL AUTO_INCREMENT,
`id_register` int(11) NOT NULL,
`id_hist` int(11) NOT NULL,
`estatus_hist` char(1) NOT NULL,
`fecha_registro` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_mi_hist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_notificaciones`
--
DROP TABLE IF EXISTS `ips_notificaciones`;
CREATE TABLE IF NOT EXISTS `ips_notificaciones` (
`id_notif` int(11) NOT NULL AUTO_INCREMENT,
`fecha_hora_notif` datetime NOT NULL,
`titulo_notif` varchar(510) NOT NULL,
`descripcion_notif` text,
`estatus_notif` varchar(45) DEFAULT NULL,
`imagen_notif` text,
`id_tipo_notif` int(11) NOT NULL,
`id_register` int(11) DEFAULT NULL,
`id_suscripcion` int(11) DEFAULT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
`total_envios` int(11) DEFAULT NULL,
`fecha_total` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_notif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_notificaciones_tipos`
--
DROP TABLE IF EXISTS `ips_notificaciones_tipos`;
CREATE TABLE IF NOT EXISTS `ips_notificaciones_tipos` (
`id_tipo_notif` int(11) NOT NULL AUTO_INCREMENT,
`tipo_notif` varchar(150) NOT NULL,
PRIMARY KEY (`id_tipo_notif`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_notificaciones_x_categorias`
--
DROP TABLE IF EXISTS `ips_notificaciones_x_categorias`;
CREATE TABLE IF NOT EXISTS `ips_notificaciones_x_categorias` (
`id_notif` int(11) NOT NULL,
`id_categoria` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_paises`
--
DROP TABLE IF EXISTS `ips_paises`;
CREATE TABLE IF NOT EXISTS `ips_paises` (
`id_pais` int(11) NOT NULL AUTO_INCREMENT,
`pais` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_pais`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_profiles_users`
--
DROP TABLE IF EXISTS `ips_profiles_users`;
CREATE TABLE IF NOT EXISTS `ips_profiles_users` (
`id_profile_user` int(11) NOT NULL AUTO_INCREMENT,
`profile_user` varchar(150) NOT NULL,
PRIMARY KEY (`id_profile_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_publicidad`
--
DROP TABLE IF EXISTS `ips_publicidad`;
CREATE TABLE IF NOT EXISTS `ips_publicidad` (
`id_publicidad` int(11) NOT NULL AUTO_INCREMENT,
`titulo_publicidad` varchar(510) NOT NULL,
`banner_publicidad` text,
`estatus_publicidad` int(11) NOT NULL,
`fecha_inicio_publicidad` datetime NOT NULL,
`fecha_fin_publicidad` datetime NOT NULL,
`orden` int(11) DEFAULT NULL,
`id_seccion` int(11) NOT NULL,
PRIMARY KEY (`id_publicidad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_readlist`
--
DROP TABLE IF EXISTS `ips_readlist`;
CREATE TABLE IF NOT EXISTS `ips_readlist` (
`id_readlist` int(11) NOT NULL AUTO_INCREMENT,
`titulo_readlist` varchar(510) NOT NULL,
`portada_readlist_bg` text,
`portada_readlist_sm` text,
`es_permanente_readlist` int(1) NOT NULL,
`estatus_readlist` int(1) NOT NULL,
`fecha_inicio_readlist` datetime DEFAULT NULL,
`fecha_fin_readlist` datetime DEFAULT NULL,
`copy_readlist` varchar(510) DEFAULT NULL,
`hashtag_readlist` varchar(150) DEFAULT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_readlist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Volcado de datos para la tabla `ips_readlist`
--
INSERT INTO `ips_readlist` (`id_readlist`, `titulo_readlist`, `portada_readlist_bg`, `portada_readlist_sm`, `es_permanente_readlist`, `estatus_readlist`, `fecha_inicio_readlist`, `fecha_fin_readlist`, `copy_readlist`, `hashtag_readlist`, `fecha_alta`, `usuario_alta`, `fecha_modifica`, `usuario_modifica`) VALUES
(1, 'readlist uno', 'perros.jpg', 'perros 2.jpg', 0, 1, '2018-12-29 00:00:00', '2018-12-31 00:00:00', 'la readlist uno', 'read', '2018-12-30 10:48:32', '1', '2018-12-31 11:39:59', '1');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_recomendaciones`
--
DROP TABLE IF EXISTS `ips_recomendaciones`;
CREATE TABLE IF NOT EXISTS `ips_recomendaciones` (
`id_recom` int(11) NOT NULL AUTO_INCREMENT,
`fecha_registro` timestamp NULL DEFAULT NULL,
`fecha_inicio_recom` datetime NOT NULL,
`fecha_fin_recom` datetime NOT NULL,
`estatus_recom` int(1) NOT NULL,
`orden` int(11) DEFAULT NULL,
`id_hist` int(11) NOT NULL,
PRIMARY KEY (`id_recom`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_recomendaciones_x_categorias`
--
DROP TABLE IF EXISTS `ips_recomendaciones_x_categorias`;
CREATE TABLE IF NOT EXISTS `ips_recomendaciones_x_categorias` (
`id_categoria` int(11) NOT NULL,
`id_recom` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_register`
--
DROP TABLE IF EXISTS `ips_register`;
CREATE TABLE IF NOT EXISTS `ips_register` (
`id_register` int(11) NOT NULL AUTO_INCREMENT,
`email_register` varchar(510) NOT NULL,
`password_register` varchar(45) NOT NULL,
`ap_paterno_register` varchar(150) NOT NULL,
`ap_materno_register` varchar(150) DEFAULT NULL,
`nombre_register` varchar(150) NOT NULL,
`fch_nacimiento_register` date DEFAULT NULL,
`genero_register` char(1) DEFAULT NULL,
`pseudonimo_register` varchar(150) DEFAULT NULL,
`con_avatar_register` int(11) NOT NULL,
`id_avatar` int(11) DEFAULT NULL,
`foto_register` text,
`estatus_register` int(1) NOT NULL,
`es_lector_register` int(1) DEFAULT NULL,
`es_autor_register` int(1) DEFAULT NULL,
`id_pais` int(11) DEFAULT NULL,
`id_estado` int(11) DEFAULT NULL,
`id_ciudad` int(11) DEFAULT NULL,
`minibio_register` varchar(255) DEFAULT NULL,
`semblanza_register` text,
`numero_contrato_register` varchar(255) DEFAULT NULL,
`comentarios_register` text,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_register`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_register_logs`
--
DROP TABLE IF EXISTS `ips_register_logs`;
CREATE TABLE IF NOT EXISTS `ips_register_logs` (
`id_register_log` int(11) NOT NULL AUTO_INCREMENT,
`id_register` int(11) NOT NULL,
`fecha_hora` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id_register_log`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_secciones`
--
DROP TABLE IF EXISTS `ips_secciones`;
CREATE TABLE IF NOT EXISTS `ips_secciones` (
`id_seccion` int(11) NOT NULL AUTO_INCREMENT,
`seccion` varchar(255) NOT NULL,
PRIMARY KEY (`id_seccion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_secciones_x_recomendaciones`
--
DROP TABLE IF EXISTS `ips_secciones_x_recomendaciones`;
CREATE TABLE IF NOT EXISTS `ips_secciones_x_recomendaciones` (
`id_seccion` int(11) NOT NULL,
`id_recom` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_series`
--
DROP TABLE IF EXISTS `ips_series`;
CREATE TABLE IF NOT EXISTS `ips_series` (
`id_serie` int(11) NOT NULL AUTO_INCREMENT,
`titulo_serie` varchar(510) NOT NULL,
`estatus_serie` int(11) NOT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`portada_serie_bg` text,
`portada_serie_sm` text,
`fecha_inicio_serie` datetime DEFAULT NULL,
`fecha_fin_serie` datetime DEFAULT NULL,
`copy_serie` varchar(255) DEFAULT NULL,
`hashtag_serie` varchar(150) DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_serie`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
--
-- Volcado de datos para la tabla `ips_series`
--
INSERT INTO `ips_series` (`id_serie`, `titulo_serie`, `estatus_serie`, `fecha_alta`, `portada_serie_bg`, `portada_serie_sm`, `fecha_inicio_serie`, `fecha_fin_serie`, `copy_serie`, `hashtag_serie`, `usuario_alta`, `fecha_modifica`, `usuario_modifica`) VALUES
(1, 'serie uno', 1, '2018-12-29 09:23:28', 'perros4.jpg', 'bcheo 2.jpg', '2018-12-31 00:00:00', '2018-12-31 00:00:00', 'la serie es de..', 'unaserie', '1', '2018-12-29 04:00:55', '1');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_suscripciones`
--
DROP TABLE IF EXISTS `ips_suscripciones`;
CREATE TABLE IF NOT EXISTS `ips_suscripciones` (
`id_suscripcion` int(11) NOT NULL AUTO_INCREMENT,
`titulo_suscripcion` varchar(510) NOT NULL,
`descripcion_suscripcion` text,
`tipo_suscripcion` char(1) DEFAULT NULL,
`precio_suscripcion` float NOT NULL,
`estatus_suscripcion` int(1) NOT NULL,
`num_historias_suscripcion` int(11) DEFAULT NULL,
`id_duracion_suscr` int(11) DEFAULT NULL,
`orden_suscripcion` int(11) DEFAULT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id_suscripcion`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_suscripciones_historias`
--
DROP TABLE IF EXISTS `ips_suscripciones_historias`;
CREATE TABLE IF NOT EXISTS `ips_suscripciones_historias` (
`id_suschist` int(11) NOT NULL AUTO_INCREMENT,
`id_suscreg` int(11) NOT NULL,
`id_hist` int(11) NOT NULL,
`id_register` int(11) NOT NULL,
`regalia_pct` float DEFAULT NULL,
`regalia_valor` float DEFAULT NULL,
`fecha_registro` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_suschist`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_suscripciones_register`
--
DROP TABLE IF EXISTS `ips_suscripciones_register`;
CREATE TABLE IF NOT EXISTS `ips_suscripciones_register` (
`id_suscreg` int(11) NOT NULL AUTO_INCREMENT,
`id_register` int(11) NOT NULL,
`id_suscripcion` int(11) NOT NULL,
`id_estatus_susc` int(11) NOT NULL,
`fecha_inicio_suscreg` datetime NOT NULL,
`fecha_fin_suscreg` datetime NOT NULL,
`num_historias_suscreg` int(11) DEFAULT NULL,
`fecha_suscripcion` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id_suscreg`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_suscripciones_transacciones`
--
DROP TABLE IF EXISTS `ips_suscripciones_transacciones`;
CREATE TABLE IF NOT EXISTS `ips_suscripciones_transacciones` (
`id_trans` int(11) NOT NULL AUTO_INCREMENT,
`fecha_hora_trans` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`estatus_trans` char(1) NOT NULL,
`num_trans` varchar(255) DEFAULT NULL,
`monto_trans` float NOT NULL,
`plataforma` char(1) NOT NULL,
`id_suscreg` int(11) NOT NULL,
`id_forma_pago` int(11) NOT NULL,
PRIMARY KEY (`id_trans`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_tiempo`
--
DROP TABLE IF EXISTS `ips_tiempo`;
CREATE TABLE IF NOT EXISTS `ips_tiempo` (
`id_tiempo` int(11) NOT NULL AUTO_INCREMENT,
`tiempo` varchar(45) NOT NULL,
PRIMARY KEY (`id_tiempo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Volcado de datos para la tabla `ips_tiempo`
--
INSERT INTO `ips_tiempo` (`id_tiempo`, `tiempo`) VALUES
(1, '10 minutos'),
(2, '20 minutos'),
(3, '30 minutos'),
(4, '45 minutos');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_topics_register`
--
DROP TABLE IF EXISTS `ips_topics_register`;
CREATE TABLE IF NOT EXISTS `ips_topics_register` (
`id_topic_register` int(11) NOT NULL AUTO_INCREMENT,
`id_register` int(11) NOT NULL,
`id_categoria` int(11) NOT NULL,
PRIMARY KEY (`id_topic_register`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_users`
--
DROP TABLE IF EXISTS `ips_users`;
CREATE TABLE IF NOT EXISTS `ips_users` (
`login_user` varchar(45) NOT NULL,
`email_user` varchar(510) NOT NULL,
`password_user` varchar(45) NOT NULL,
`ap_paterno_user` varchar(150) NOT NULL,
`ap_materno_user` varchar(150) DEFAULT NULL,
`nombre_user` varchar(150) NOT NULL,
`foto_user` text,
`fch_nacimiento_user` date DEFAULT NULL,
`estatus_user` int(1) NOT NULL,
`id_profile_user` int(11) NOT NULL,
`fecha_alta` timestamp NULL DEFAULT NULL,
`usuario_alta` varchar(45) DEFAULT NULL,
`fecha_modifica` timestamp NULL DEFAULT NULL,
`usuario_modifica` varchar(45) DEFAULT NULL,
PRIMARY KEY (`login_user`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_user_logs`
--
DROP TABLE IF EXISTS `ips_user_logs`;
CREATE TABLE IF NOT EXISTS `ips_user_logs` (
`id_user_log` int(11) NOT NULL AUTO_INCREMENT,
`login_user` varchar(45) NOT NULL,
`fecha_hora` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id_user_log`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ips_uso_cfdi`
--
DROP TABLE IF EXISTS `ips_uso_cfdi`;
CREATE TABLE IF NOT EXISTS `ips_uso_cfdi` (
`id_cfdi` int(11) NOT NULL AUTO_INCREMENT,
`clave_cfdi` varchar(45) NOT NULL,
`cfdi` varchar(255) NOT NULL,
PRIMARY KEY (`id_cfdi`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `sugerencias`
--
DROP TABLE IF EXISTS `sugerencias`;
CREATE TABLE IF NOT EXISTS `sugerencias` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`TITULO` varchar(255) NOT NULL,
`RESUMEN` text NOT NULL,
`DESCRIPCION` text NOT NULL,
`FUENTE` varchar(255) NOT NULL,
`SLUG` varchar(255) DEFAULT NULL,
`ESTATUS` char(1) DEFAULT NULL,
`FECHA` datetime DEFAULT NULL,
`URL` varchar(255) DEFAULT NULL,
`IMAGEN` text,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=1 ;
/*!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 05, 2021 at 02:58 PM
-- Server version: 10.1.19-MariaDB
-- PHP Version: 5.6.28
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: `pembayaran`
--
-- --------------------------------------------------------
--
-- Table structure for table `kelas`
--
CREATE TABLE `kelas` (
`id_kelas` int(11) NOT NULL,
`nama_kelas` varchar(10) NOT NULL,
`kompetensi_keahlian` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kelas`
--
INSERT INTO `kelas` (`id_kelas`, `nama_kelas`, `kompetensi_keahlian`) VALUES
(5, 'XII TKJ1', 'Teknik Komputer Jaringansu'),
(10, 'XII RPL', 'Rekayasa Perangkat Lunak'),
(15, 'XII MM 1', 'Multimedia');
-- --------------------------------------------------------
--
-- Table structure for table `pembayaran`
--
CREATE TABLE `pembayaran` (
`id_pembayaran` int(11) NOT NULL,
`id_petugas` int(11) NOT NULL,
`nisn` varchar(10) NOT NULL,
`tgl_bayar` date NOT NULL,
`bulan_dibayar` varchar(8) NOT NULL,
`tahun_dibayar` varchar(4) NOT NULL,
`id_spp` int(11) NOT NULL,
`jumlah_dibayar` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `petugas`
--
CREATE TABLE `petugas` (
`id_petugas` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`password` varchar(32) NOT NULL,
`nama_petugas` varchar(35) NOT NULL,
`level` enum('1','2') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `petugas`
--
INSERT INTO `petugas` (`id_petugas`, `username`, `password`, `nama_petugas`, `level`) VALUES
(0, 'Petugas', '<PASSWORD>', 'Kuy', '2'),
(123, 'Adminnn', '<PASSWORD>', '<NAME>', '1');
-- --------------------------------------------------------
--
-- Table structure for table `siswa`
--
CREATE TABLE `siswa` (
`nisn` char(10) NOT NULL,
`nis` char(8) NOT NULL,
`nama` varchar(35) NOT NULL,
`id_kelas` int(11) NOT NULL,
`alamat` text NOT NULL,
`no_telp` varchar(13) NOT NULL,
`id_spp` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `siswa`
--
INSERT INTO `siswa` (`nisn`, `nis`, `nama`, `id_kelas`, `alamat`, `no_telp`, `id_spp`) VALUES
('4150', '007050', '<NAME>', 7, 'Sedayu, jl Wates km.10', '087712345678', 0),
('4152', '004463', '<NAME>', 3, 'Jogokaryan', '087754567678', 0),
('4275', '89', '<NAME>', 9, '<NAME>, Wirobrajan', '087823675589', 0),
('5321', '101010', 'Giorno Junior Senior', 90, 'Kasihan, bantul', '+68234219876', 9),
('5611', '009876', '<NAME>', 8, 'Kotagede', '085792821590', 0);
-- --------------------------------------------------------
--
-- Table structure for table `spp`
--
CREATE TABLE `spp` (
`id_spp` int(11) NOT NULL,
`tahun` int(11) NOT NULL,
`nominal` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `spp`
--
INSERT INTO `spp` (`id_spp`, `tahun`, `nominal`) VALUES
(1050, 2030, 400000),
(1231, 2021, 225000);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `kelas`
--
ALTER TABLE `kelas`
ADD PRIMARY KEY (`id_kelas`);
--
-- Indexes for table `pembayaran`
--
ALTER TABLE `pembayaran`
ADD PRIMARY KEY (`id_pembayaran`);
--
-- Indexes for table `petugas`
--
ALTER TABLE `petugas`
ADD PRIMARY KEY (`id_petugas`);
--
-- Indexes for table `siswa`
--
ALTER TABLE `siswa`
ADD PRIMARY KEY (`nisn`);
--
-- Indexes for table `spp`
--
ALTER TABLE `spp`
ADD PRIMARY KEY (`id_spp`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
create database padrao_documento;
use padrao_documento;
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_VOCB_CNTLD` (
`ID_VOCB_CNTLD` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Identificador unico da tabela de vocabularios controlados.',
`SG_VOCB_CNTLD` VARCHAR(10) NOT NULL COMMENT 'Sigla do termo usado no vocabulário controlado',
`DS_VOCB_CNTLD` VARCHAR(1000) NOT NULL COMMENT 'Descricao do termo usado no vocabulario controlado',
`FL_TIPO_VOCB_CNTLD` VARCHAR(1) NULL COMMENT 'Flag do tipo de vocabulario controlado usado para compor nomes de objetos e suas propriedades.');
CREATE INDEX `PK_VOCB_CONTLD` ON `padrao_documento`.`T_SPDC_VOCB_CNTLD` (`ID_VOCB_CNTLD` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_PRFX` (
`ID_PRFX` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Identificador unico do prefixo de objetos do banco. Por exemplo, DS para atributos usados como descricao, e T para tabelas.',
`SG_PRFX` VARCHAR(4) NOT NULL COMMENT 'Sigla do prefixo de objeto de banco.',
`DS_TIPO_DADO_PRFX` VARCHAR(400) NOT NULL COMMENT 'Descricao do tipo de dado do prefixo de objeto',
`DS_CNTD_PRFX` VARCHAR(400) NOT NULL COMMENT 'Descricao do conteudo do prefixo de objeto',
`DS_EXPLO_PRFX` VARCHAR(400) NOT NULL COMMENT 'Descricao do exemplo do prefixo',
`DS_DFNC_PRFX` VARCHAR(400) NOT NULL COMMENT 'Descricao ampla da definicao do prefixo de objeto.');
CREATE INDEX `PK_PRFX_OBJT` ON `padrao_documento`.`T_SPDC_PRFX` (`ID_PRFX` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_TIPO_OBJT` (
`ID_TIPO_OBJT` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Identificador único do tipo do objeto',
`DS_TIPO_OBJT` VARCHAR(45) NOT NULL COMMENT 'Descricao do tipo de objeto');
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_OBJT` (
`ID_OBJT` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Identificador único do objeto inserido no sistema de padronizao de documentos.',
`ID_TIPO_OBJT` INT DEFAULT NULL,
`ID_PRFX` INT DEFAULT NULL COMMENT 'Identificador único do prefixo que compoe o nome do objeto',
`NM_OBJT` VARCHAR(50) NOT NULL COMMENT 'Nome do objeto de padronizacao de documentos.',
`DC_OBJT` VARCHAR(1000) NULL COMMENT 'Descricao a respeito do objeto.',
CONSTRAINT `fk_tipo_objt_01` FOREIGN KEY (`ID_TIPO_OBJT`) REFERENCES `padrao_documento`.`T_TIPO_OBJT` (`ID_TIPO_OBJT`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_prfx_objt_02` FOREIGN KEY (`ID_PRFX`) REFERENCES `padrao_documento`.`T_SPDC_PRFX` (`ID_PRFX`) ON DELETE NO ACTION ON UPDATE NO ACTION);
CREATE INDEX `IX_SPDC_OBJT01` ON `padrao_documento`.`T_SPDC_OBJT` (`ID_TIPO_OBJT` ASC);
CREATE INDEX `FK_PRFX_OBJT_01` ON `padrao_documento`.`T_SPDC_OBJT` (`ID_PRFX` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_OBJT_VOCB_CNTLD` (
`ID_OBJT_VOCB` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`ID_OBJT` INT DEFAULT NULL COMMENT 'Identificador único do objeto inserido no sistema de padronizao de documentos.',
`ID_VOCB_CNTLD` INT DEFAULT NULL COMMENT 'Identificador unico da tabela de vocabularios controlados.',
CONSTRAINT `FK_SPDC_OBJT_VOCB_CNTLD` FOREIGN KEY (`ID_OBJT`) REFERENCES `padrao_documento`.`T_SPDC_OBJT` (`ID_OBJT`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `FK_SPDC_VOCB_CNTLD` FOREIGN KEY (`ID_VOCB_CNTLD`) REFERENCES `padrao_documento`.`T_SPDC_VOCB_CNTLD` (`ID_VOCB_CNTLD`) ON DELETE NO ACTION ON UPDATE NO ACTION);
CREATE INDEX `IX_SPDC_VOCB_CNTLD` ON `padrao_documento`.`T_SPDC_OBJT_VOCB_CNTLD` (`ID_VOCB_CNTLD` ASC);
CREATE INDEX `IX_SPDC_OBJT_VOCB_CNTLD` ON `padrao_documento`.`T_SPDC_OBJT_VOCB_CNTLD` (`ID_OBJT` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_PRPD_OBJT` (
`ID_PRPD_OBJT` INT NOT NULL PRIMARY KEY AUTO_INCREMENT COMMENT 'Identificador unico das propriedades de um objeto.',
`ID_PRFX` INT DEFAULT NULL COMMENT 'Identificador unico do prefixo de objetos do banco. Por exemplo, DS para atributos usados como descricao, e T para tabelas.',
`ID_OBJT` INT DEFAULT NULL COMMENT 'Identificador único do objeto inserido no sistema de padronizao de documentos.',
`NM_PRPD_OBJT` VARCHAR(50) NOT NULL,
`DC_PRPD_OBJT` VARCHAR(1000) NOT NULL,
CONSTRAINT `FK_OBJT_PRPD_01` FOREIGN KEY (`ID_OBJT`) REFERENCES `padrao_documento`.`T_SPDC_OBJT` (`ID_OBJT`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_PRFX_PRPD_OBJT_02` FOREIGN KEY (`ID_PRFX`) REFERENCES `padrao_documento`.`T_SPDC_PRFX` (`ID_PRFX`) ON DELETE NO ACTION ON UPDATE NO ACTION);
CREATE INDEX `IX_SPDC_OBJT_PRPD1` ON `padrao_documento`.`T_SPDC_PRPD_OBJT` (`ID_OBJT` ASC);
CREATE INDEX `IX_SPDC_OBJT_PRPD2` ON `padrao_documento`.`T_SPDC_PRPD_OBJT` (`ID_PRFX` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_PRPD_VOCB_CNTLD` (
`ID_PRPDOBJT_VOCB` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`ID_PRPD_OBJT` INT DEFAULT NULL COMMENT 'Identificador unico das propriedades de um objeto.',
`ID_VOCB_CNTLD` INT DEFAULT NULL COMMENT 'Identificador unico da tabela de vocabularios controlados.',
CONSTRAINT `FK_SPDC_PRPD_VOCB_CNTLD01` FOREIGN KEY (`ID_VOCB_CNTLD`) REFERENCES `padrao_documento`.`T_SPDC_VOCB_CNTLD` (`ID_VOCB_CNTLD`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `FK_SPDC_PRPD_VOCB_CNTLD02` FOREIGN KEY (`ID_PRPD_OBJT`) REFERENCES `padrao_documento`.`T_SPDC_PRPD_OBJT` (`ID_PRPD_OBJT`) ON DELETE NO ACTION ON UPDATE NO ACTION);
CREATE INDEX `IX_SPDC_PRPD_VOCB_CNTLD` ON `padrao_documento`.`T_SPDC_PRPD_VOCB_CNTLD` (`ID_VOCB_CNTLD` ASC);
CREATE TABLE IF NOT EXISTS `padrao_documento`.`T_SPDC_PRMT_ACSSO_TXTO` (
`ID_PRMT_ACSSO_TXTO` INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`DS_PRMT_ACSSO_TXTO` VARCHAR(100) NULL COMMENT 'Descricao do parametro de acesso a texto. Por exemplo, PUBLIC CLASS, CREATE TABLE.',
`NU_INIC_ACSSO_TXTO` VARCHAR(10) NULL COMMENT 'Numero do inicio de acesso ao texto lido.',
`NU_FIM_ACSSO_TXTO` VARCHAR(10) NULL COMMENT 'Numero do fim de acesso ao texto lido.',
`FL_INIC_ACSSO_TXTO` VARCHAR(5) NULL COMMENT 'Flag de inicio de leitura do acesso ao texto a ser reconhecido na leitura de um documento a ser verificado de acordo com os padrões.',
`FL_FIM_ACSSO_TXTO` VARCHAR(5) NULL COMMENT 'Flag de fim de leitura do acesso ao texto a ser reconhecido na leitura de um documento a ser verificado de acordo com os padrões.',
`IC_TIPO_ACSSO_TXTO` VARCHAR(100) NULL COMMENT 'Indicador do tipo do texto a ser lido. (T) Tabela, (P) Primary Key, Foreign Key (F).')
|
<reponame>AKaporov/2021-12-otus-java-Kaporov<filename>hw10-hibernate/homework-template/src/main/resources/db/migration/V1__initial_schema.sql
-- Для @GeneratedValue(strategy = GenerationType.IDENTITY)
/*
create table client
(
id bigserial not null primary key,
name varchar(50)
);
*/
--drop table if exists client;
--drop table if exists address;
--drop table if exists phone;
--drop sequence if exists hibernate_sequence;
-- Для @GeneratedValue(strategy = GenerationType.SEQUENCE)
create sequence hibernate_sequence start with 1 increment by 1;
create table addresses
(
id bigint not null primary key,
street varchar(50)
);
create table clients
(
id bigint not null primary key,
name varchar(50),
address_id bigint,
foreign key(address_id) references addresses(id) --on delete cascade
);
create table phones
(
id bigint not null primary key,
number varchar(50),
client_id bigint not null,
foreign key(client_id) references clients(id)
); |
<reponame>WallaceFelipe/escolaFuturo
-- MySQL Script generated by MySQL Workbench
-- 11/25/16 15:03:51
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES';
-- -----------------------------------------------------
-- Schema escolafuturo
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema escolafuturo
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `escolafuturo` DEFAULT CHARACTER SET utf8 ;
USE `escolafuturo` ;
-- -----------------------------------------------------
-- Table `escolafuturo`.`disciplina`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`disciplina` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`disciplina` (
`iddisciplina` INT NOT NULL AUTO_INCREMENT,
`codigo` VARCHAR(10) NOT NULL,
`nome` VARCHAR(100) NOT NULL,
PRIMARY KEY (`iddisciplina`),
UNIQUE INDEX `codigo_UNIQUE` (`codigo` ASC))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`professor`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`professor` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`professor` (
`idprofessor` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(100) NOT NULL,
`login` VARCHAR(15) NOT NULL,
`senha` VARCHAR(15) NOT NULL,
PRIMARY KEY (`idprofessor`),
UNIQUE INDEX `login_UNIQUE` (`login` ASC))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`turma`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`turma` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`turma` (
`idturma` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`disciplina_codigo` VARCHAR(10) NOT NULL,
`professor_idprofessor` INT NOT NULL,
`horario` VARCHAR(45) NOT NULL,
PRIMARY KEY (`idturma`),
INDEX `fk_turma_diciplina_idx` (`disciplina_codigo` ASC),
INDEX `fk_turma_professor1_idx` (`professor_idprofessor` ASC),
UNIQUE INDEX `un_turma` (`disciplina_codigo` ASC, `professor_idprofessor` ASC, `horario` ASC),
CONSTRAINT `fk_turma_diciplina`
FOREIGN KEY (`disciplina_codigo`)
REFERENCES `escolafuturo`.`disciplina` (`codigo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_turma_professor1`
FOREIGN KEY (`professor_idprofessor`)
REFERENCES `escolafuturo`.`professor` (`idprofessor`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`aluno`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`aluno` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`aluno` (
`matricula` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(100) NOT NULL,
`login` VARCHAR(15) NOT NULL,
`senha` VARCHAR(15) NOT NULL,
PRIMARY KEY (`matricula`),
UNIQUE INDEX `login_UNIQUE` (`login` ASC))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`funcionario`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`funcionario` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`funcionario` (
`idfuncionario` INT NOT NULL AUTO_INCREMENT,
`nome` VARCHAR(100) NOT NULL,
`login` VARCHAR(15) NOT NULL,
`senha` VARCHAR(15) NOT NULL,
PRIMARY KEY (`idfuncionario`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`avaliacao`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`avaliacao` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`avaliacao` (
`idavaliacao` INT NOT NULL AUTO_INCREMENT,
`status` INT(1) NOT NULL,
`turma_idturma` INT UNSIGNED NOT NULL,
PRIMARY KEY (`idavaliacao`, `turma_idturma`),
INDEX `fk_avaliacao_turma1_idx` (`turma_idturma` ASC),
CONSTRAINT `fk_avaliacao_turma1`
FOREIGN KEY (`turma_idturma`)
REFERENCES `escolafuturo`.`turma` (`idturma`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`questao`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`questao` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`questao` (
`idquestao` INT NOT NULL AUTO_INCREMENT,
`enunciado` VARCHAR(255) NOT NULL,
`opcao1` VARCHAR(255) NOT NULL,
`opcao2` VARCHAR(255) NOT NULL,
`opcao3` VARCHAR(255) NOT NULL,
`opcao4` VARCHAR(255) NOT NULL,
`resposta` INT(1) NOT NULL,
`disciplina_codigo` VARCHAR(10) NOT NULL,
PRIMARY KEY (`idquestao`),
INDEX `fk_questao_diciplina1_idx` (`disciplina_codigo` ASC),
CONSTRAINT `fk_questao_diciplina1`
FOREIGN KEY (`disciplina_codigo`)
REFERENCES `escolafuturo`.`disciplina` (`codigo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`questao_avaliacao`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`questao_avaliacao` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`questao_avaliacao` (
`questao_idquestao` INT NOT NULL,
`avaliacao_idavaliacao` INT NOT NULL,
PRIMARY KEY (`questao_idquestao`, `avaliacao_idavaliacao`),
INDEX `fk_questao_has_avaliacao_avaliacao1_idx` (`avaliacao_idavaliacao` ASC),
INDEX `fk_questao_has_avaliacao_questao1_idx` (`questao_idquestao` ASC),
CONSTRAINT `fk_questao_has_avaliacao_questao1`
FOREIGN KEY (`questao_idquestao`)
REFERENCES `escolafuturo`.`questao` (`idquestao`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_questao_has_avaliacao_avaliacao1`
FOREIGN KEY (`avaliacao_idavaliacao`)
REFERENCES `escolafuturo`.`avaliacao` (`idavaliacao`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`nota`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`nota` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`nota` (
`avaliacao_idavaliacao` INT NOT NULL,
`aluno_matricula` INT NOT NULL,
`nota` VARCHAR(45) NOT NULL,
PRIMARY KEY (`avaliacao_idavaliacao`, `aluno_matricula`),
INDEX `fk_avaliacao_has_aluno_aluno1_idx` (`aluno_matricula` ASC),
INDEX `fk_avaliacao_has_aluno_avaliacao1_idx` (`avaliacao_idavaliacao` ASC),
CONSTRAINT `fk_avaliacao_has_aluno_avaliacao1`
FOREIGN KEY (`avaliacao_idavaliacao`)
REFERENCES `escolafuturo`.`avaliacao` (`idavaliacao`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_avaliacao_has_aluno_aluno1`
FOREIGN KEY (`aluno_matricula`)
REFERENCES `escolafuturo`.`aluno` (`matricula`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `escolafuturo`.`turma_aluno`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `escolafuturo`.`turma_aluno` ;
CREATE TABLE IF NOT EXISTS `escolafuturo`.`turma_aluno` (
`turma_idturma` INT UNSIGNED NOT NULL,
`aluno_matricula` INT NOT NULL,
`disciplina` VARCHAR(10) NOT NULL,
PRIMARY KEY (`turma_idturma`, `aluno_matricula`),
INDEX `fk_turma_has_aluno_aluno1_idx` (`aluno_matricula` ASC),
INDEX `fk_turma_has_aluno_turma1_idx` (`turma_idturma` ASC),
UNIQUE INDEX `un_turma` (`aluno_matricula` ASC, `disciplina` ASC),
CONSTRAINT `fk_turma_has_aluno_turma1`
FOREIGN KEY (`turma_idturma`)
REFERENCES `escolafuturo`.`turma` (`idturma`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_turma_has_aluno_aluno1`
FOREIGN KEY (`aluno_matricula`)
REFERENCES `escolafuturo`.`aluno` (`matricula`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
<gh_stars>0
# --- !Ups
create table "clubs" (
"id" int generated by default as identity(start with 1) not null primary key,
"name" varchar not null,
);
create table "members" (
"id" int generated by default as identity(start with 1) not null primary key,
"name" varchar not null,
"clubId" int not null
);
# --- !Downs
drop table "clubs" if exists;
drop table "members" if exists; |
CREATE SCHEMA fabrica;
USE fabrica;
CREATE TABLE materia_prima(
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(45) NOT NULL,
estoque INT NOT NULL
);
CREATE TABLE produto(
id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
nome VARCHAR(45) NOT NULL,
valor DECIMAL(15,2) NOT NULL
);
CREATE TABLE insumo(
id_produto INT UNSIGNED,
id_materia_prima INT UNSIGNED,
quantidade INT NOT NULL,
PRIMARY KEY produto_materia_prima (`id_produto`,`id_materia_prima`),
FOREIGN KEY(id_produto) REFERENCES produto(id),
FOREIGN KEY(id_materia_prima) REFERENCES materia_prima(id)
); |
-- savepoint.test
--
-- execsql {
-- CREATE TABLE t3(a, b, UNIQUE(a, b));
-- ROLLBACK TO one;
-- }
CREATE TABLE t3(a, b, UNIQUE(a, b));
ROLLBACK TO one; |
-- Written for MySQL databases only. I'm not responsible if it
-- breaks on other systems.
CREATE TABLE `Posts` (
`PostId` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`PostTitle` VARCHAR(250),
`PostBody` MEDIUMTEXT NOT NULL,
`CreationDate` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`CreationUser` VARCHAR(200) NOT NULL,
`PostTypeId` TINYINT(1) NOT NULL,
`ParentId` INT(11)
);
CREATE TABLE `PostTypes` (
`Id` TINYINT(1) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`Description` VARCHAR(100) NOT NULL
);
CREATE TABLE `BlockedUsers` (
`Id` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`IpAddress` VARCHAR(20) NOT NULL UNIQUE,
`Reason` VARCHAR(500) NOT NULL
);
INSERT INTO `PostTypes` (`Id`, `Description`) VALUES
(DEFAULT, 'Post'),
(DEFAULT, 'Comment');
CREATE VIEW `MainPosts` AS
SELECT `PostId` AS 'ID',
`PostTitle` AS 'Title',
`PostBody` AS 'Content',
`CreationDate` AS 'Date Posted',
`CreationUser` AS 'Author'
FROM `Posts` AS `p`
INNER JOIN `PostTypes` AS `pt`
ON `pt`.`Id` = `p`.`PostTypeId`
WHERE `pt`.`Description` = 'Post';
CREATE VIEW `Comments` AS
SELECT `PostId` AS 'ID',
`PostBody` AS 'Content',
`CreationDate` AS 'Date Posted',
`CreationUser` AS 'Author'
FROM `Posts` AS `p`
INNER JOIN `PostTypes` AS `pt`
ON `pt`.`Id` = `p`.`PostTypeId`
WHERE `pt`.`Description` = 'Comment';
CREATE TABLE `Users` (
`UserId` INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
`Email` VARCHAR(200) NOT NULL,
`UserName` VARCHAR(200) NOT NULL,
`Password` VARCHAR(64) NOT NULL,
`Salt` VARCHAR(32) NOT NULL,
`AuthLevel` TINYINT(2) NOT NULL DEFAULT 0
); |
ALTER TABLE "public"."resume"
DROP COLUMN "version_date"; |
<reponame>AvindaAlamsyah/padas<gh_stars>1-10
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Waktu pembuatan: 23 Jul 2021 pada 07.00
-- Versi server: 5.7.33
-- Versi PHP: 7.4.19
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: `padas`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `domisili`
--
CREATE TABLE `domisili` (
`id_domisili` int(11) NOT NULL,
`siswa_id_siswa` bigint(20) NOT NULL,
`desa_id_desa` int(11) DEFAULT NULL,
`tempat_tinggal_id_tempat_tinggal` int(11) DEFAULT NULL,
`detail_domisili` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nomor_rumah` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rt` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rw` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`dusun` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`kode_pos` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lintang` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bujur` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `domisili`
--
INSERT INTO `domisili` VALUES
(1, 224, 45558, 1, '42756 Miller Flats Suite 658', '3254', '98', '4', 'Abernathyside', '35683-6589', '22.067528', '40.516845', '2021-07-21 21:15:48', '2021-07-23 06:22:39', NULL),
(2, 437, 45504, 1, NULL, '7302', '97', '3', NULL, '01153-7262', NULL, NULL, '2021-07-18 21:35:21', '2021-07-23 06:22:39', NULL),
(3, 225, 45542, 4, '5851 Jayden Run', NULL, '34', '5', NULL, '40867', NULL, NULL, '2021-07-11 06:37:22', '2021-07-23 06:22:39', NULL),
(4, 532, 45505, 1, NULL, '777', '2', '8', NULL, '19741-9783', NULL, '69.444198', '2021-07-06 05:45:03', '2021-07-23 06:22:39', NULL),
(5, 270, 45495, 6, NULL, '0727', '68', '2', 'South Etha', '13460-6345', '9.688708', NULL, '2021-07-15 13:42:59', '2021-07-23 06:22:39', NULL),
(6, 524, 45553, 5, '0695 Margarita Isle', NULL, '28', '10', 'Rippinfurt', '64023-0231', NULL, NULL, '2021-07-20 20:40:52', '2021-07-23 06:22:39', NULL),
(7, 70, 45469, 4, NULL, '5608', '3', '2', 'East Clemmiechester', '17209-8931', '-14.423430', NULL, '2021-07-14 16:47:55', '2021-07-23 06:22:39', NULL),
(8, 1242, 45542, 4, '619 Crist Unions Apt. 193', NULL, '9', '9', 'South Petra', '80042-4263', '26.168259', NULL, '2021-07-02 14:26:35', '2021-07-23 06:22:39', NULL),
(9, 152, 45474, 3, NULL, NULL, '2', '5', 'East Leolamouth', '63041', '-60.797294', '138.264928', '2021-07-21 20:37:44', '2021-07-23 06:22:39', NULL),
(10, 381, 45496, 2, NULL, NULL, '78', '4', 'West Shanon', '32902', NULL, NULL, '2021-07-15 21:42:34', '2021-07-23 06:22:39', NULL),
(11, 779, 45549, 5, '7219 <NAME>', '84598', '5', '7', 'Stefanborough', '07361-0943', NULL, NULL, '2021-07-12 01:47:26', '2021-07-23 06:22:39', NULL),
(12, 151, 45489, 4, NULL, '096', '41', '10', 'Funkville', '69943', '-25.908394', '-10.694831', '2021-07-21 22:24:26', '2021-07-23 06:22:39', NULL),
(13, 1251, 45543, 5, NULL, '09894', '91', '8', NULL, '97679-0650', NULL, NULL, '2021-07-04 09:52:51', '2021-07-23 06:22:39', NULL),
(14, 868, 45487, 2, '789 Brice Turnpike Apt. 277', NULL, '73', '3', 'South Elza', '13049-9943', NULL, NULL, '2021-06-30 11:34:21', '2021-07-23 06:22:39', NULL),
(15, 754, 45522, 2, '116 Sister Orchard Apt. 788', '889', '67', '7', NULL, '17154-8733', '60.101366', NULL, '2021-06-22 21:22:34', '2021-07-23 06:22:39', NULL),
(16, 372, 45479, 1, '895 Alysson Stravenue', NULL, '44', '5', 'West Keshawn', '07797-9005', NULL, '-20.119987', '2021-07-06 22:55:21', '2021-07-23 06:22:39', NULL),
(17, 1010, 45470, 3, '98296 Kris Center Apt. 167', '3059', '13', '1', 'West Christine', '14524-0069', NULL, NULL, '2021-06-30 02:04:49', '2021-07-23 06:22:39', NULL),
(18, 78, 45558, 3, '70551 Hane Views Apt. 533', '192', '17', '10', 'Jacobiland', '27112-9362', '-11.330547', '-42.258133', '2021-07-12 01:22:15', '2021-07-23 06:22:39', NULL),
(19, 731, 45489, 6, '1124 Trey Ranch', NULL, '36', '10', 'Mallietown', '96227', NULL, '-138.630513', '2021-07-19 12:16:29', '2021-07-23 06:22:39', NULL),
(20, 39, 45527, 5, '255 Amiya Burgs', NULL, '45', '1', 'Seamusborough', '54475-1458', NULL, '60.386555', '2021-07-18 20:18:25', '2021-07-23 06:22:39', NULL),
(21, 322, 45536, 5, NULL, NULL, '19', '10', 'West Jordyland', '24953', '-75.569104', '137.695922', '2021-06-27 18:19:46', '2021-07-23 06:22:39', NULL),
(22, 1160, 45529, 3, NULL, '94028', '12', '10', NULL, '47395-9298', NULL, '97.092629', '2021-07-17 12:09:50', '2021-07-23 06:22:39', NULL),
(23, 861, 45468, 6, '337 Emmy Port', NULL, '69', '4', NULL, '34304', '56.437746', NULL, '2021-07-02 03:01:40', '2021-07-23 06:22:39', NULL),
(24, 460, 45540, 2, '208 Hansen Unions', '908', '64', '8', 'West Brent', '46014', NULL, '114.381038', '2021-07-20 07:05:22', '2021-07-23 06:22:39', NULL),
(25, 131, 45520, 1, NULL, NULL, '76', '2', 'DuBuquefort', '47588-9390', '33.708043', NULL, '2021-07-08 05:12:54', '2021-07-23 06:22:39', NULL),
(26, 608, 45488, 2, NULL, NULL, '46', '9', 'South Mariela', '69859', '85.063743', '-20.160278', '2021-07-13 11:49:19', '2021-07-23 06:22:39', NULL),
(27, 582, 45488, 4, NULL, NULL, '32', '8', NULL, '14939', NULL, NULL, '2021-07-04 17:37:04', '2021-07-23 06:22:39', NULL),
(28, 404, 45489, 1, '9208 Barton Port Apt. 071', '511', '59', '2', 'Lake Willyshire', '93546', '-75.564088', '-136.343897', '2021-07-20 20:28:42', '2021-07-23 06:22:39', NULL),
(29, 703, 45514, 3, '622 Cormier Lodge', '09943', '49', '2', NULL, '79022-2737', '18.598426', NULL, '2021-07-02 06:08:02', '2021-07-23 06:22:39', NULL),
(30, 429, 45495, 2, NULL, '93310', '19', '9', 'East Lizeth', '75730', NULL, '63.117456', '2021-06-30 15:05:26', '2021-07-23 06:22:39', NULL),
(31, 888, 45498, 6, NULL, NULL, '71', '8', 'Framishire', '95426', NULL, '23.835315', '2021-06-29 01:55:21', '2021-07-23 06:22:39', NULL),
(32, 854, 45491, 5, NULL, '35801', '14', '3', NULL, '09985', NULL, '-177.076869', '2021-07-14 02:36:30', '2021-07-23 06:22:39', NULL),
(33, 922, 45510, 1, '558 Keven Point Apt. 905', '0728', '73', '4', 'South Mohamedfort', '36099-9404', NULL, NULL, '2021-06-24 08:00:29', '2021-07-23 06:22:39', NULL),
(34, 1243, 45541, 1, NULL, NULL, '71', '6', 'Hermannmouth', '35415-3203', NULL, NULL, '2021-07-19 04:05:39', '2021-07-23 06:22:39', NULL),
(35, 452, 45538, 1, '1381 <NAME>', NULL, '13', '8', NULL, '16287-1201', NULL, NULL, '2021-07-12 02:46:15', '2021-07-23 06:22:39', NULL),
(36, 186, 45473, 4, NULL, '2181', '35', '9', 'West Jayson', '90303', '-0.527322', '7.178381', '2021-07-16 19:45:23', '2021-07-23 06:22:39', NULL),
(37, 258, 45535, 5, NULL, NULL, '41', '10', 'South Chaz', '71176-4646', NULL, '105.696069', '2021-07-21 00:08:08', '2021-07-23 06:22:39', NULL),
(38, 908, 45506, 3, NULL, NULL, '21', '6', 'Gutkowskiville', '00562-9618', '-12.535826', '161.994504', '2021-07-21 08:23:40', '2021-07-23 06:22:39', NULL),
(39, 694, 45506, 6, NULL, NULL, '18', '8', 'Port Vancemouth', '44514-4982', '-49.287652', NULL, '2021-07-17 09:53:47', '2021-07-23 06:22:39', NULL),
(40, 118, 45501, 2, '9221 Garnet Garden', NULL, '64', '6', NULL, '00971-5259', NULL, '1.958498', '2021-07-09 16:44:31', '2021-07-23 06:22:39', NULL),
(41, 1195, 45525, 1, NULL, NULL, '17', '9', NULL, '21578', NULL, '0.821611', '2021-06-27 23:22:42', '2021-07-23 06:22:39', NULL),
(42, 566, 45541, 1, NULL, NULL, '80', '1', 'South Minnie', '41578-7354', NULL, NULL, '2021-07-18 02:21:22', '2021-07-23 06:22:39', NULL),
(43, 887, 45467, 5, NULL, NULL, '30', '8', NULL, '07742-7032', '-16.722648', '12.129160', '2021-07-05 02:54:55', '2021-07-23 06:22:39', NULL),
(44, 777, 45549, 1, '943 Edison Pines Apt. 550', NULL, '88', '6', NULL, '65913-4425', NULL, '155.437522', '2021-07-02 11:47:25', '2021-07-23 06:22:39', NULL),
(45, 455, 45532, 3, NULL, NULL, '14', '4', NULL, '30418', '27.847726', '-28.650226', '2021-06-26 18:00:10', '2021-07-23 06:22:39', NULL),
(46, 1068, 45513, 6, '4722 Eula Curve', '70315', '83', '1', 'Antoniettatown', '32187-8413', '-64.385612', '52.130943', '2021-07-17 05:51:32', '2021-07-23 06:22:39', NULL),
(47, 426, 45492, 5, NULL, '084', '20', '4', NULL, '15753-3824', NULL, NULL, '2021-07-16 01:33:51', '2021-07-23 06:22:39', NULL),
(48, 876, 45483, 1, '981 Kilback Pike', '15093', '90', '9', 'Genevievefort', '10296', '31.010676', NULL, '2021-06-25 22:40:13', '2021-07-23 06:22:39', NULL),
(49, 734, 45524, 4, '1770 Cristina Lights', '6209', '86', '5', NULL, '71088-1754', '15.008650', NULL, '2021-07-14 04:33:34', '2021-07-23 06:22:39', NULL),
(50, 851, 45529, 5, '052 Carmel Walk Apt. 169', '95468', '90', '4', NULL, '89207-0758', NULL, '107.275682', '2021-06-25 15:25:09', '2021-07-23 06:22:39', NULL),
(51, 630, 45479, 3, '780 Bechtelar Knolls', '88673', '46', '8', 'Dickibury', '87849', NULL, '-9.199589', '2021-06-29 13:12:21', '2021-07-23 06:22:39', NULL),
(52, 1258, 45558, 4, NULL, NULL, '88', '7', NULL, '67602-8049', NULL, NULL, '2021-07-07 18:59:25', '2021-07-23 06:22:39', NULL),
(53, 1150, 45545, 2, '9044 Yesenia Mountain Apt. 410', '79620', '10', '9', NULL, '41226-1500', NULL, NULL, '2021-07-09 21:22:02', '2021-07-23 06:22:39', NULL),
(54, 121, 45518, 3, NULL, NULL, '54', '10', NULL, '72495-6355', '-16.154812', NULL, '2021-07-20 01:00:38', '2021-07-23 06:22:39', NULL),
(55, 541, 45487, 6, NULL, '3823', '31', '3', 'Johannbury', '03109-4962', NULL, '-149.923242', '2021-06-25 10:45:55', '2021-07-23 06:22:39', NULL),
(56, 277, 45484, 4, NULL, NULL, '94', '1', NULL, '42628', '-67.735077', '30.884096', '2021-07-17 13:33:30', '2021-07-23 06:22:39', NULL),
(57, 1223, 45543, 6, NULL, '5492', '38', '6', 'Elroyview', '07590-4913', '50.864403', NULL, '2021-07-05 22:13:20', '2021-07-23 06:22:39', NULL),
(58, 1058, 45483, 4, '086 Berge Forks Apt. 998', '494', '58', '8', NULL, '91067', NULL, NULL, '2021-06-25 09:50:55', '2021-07-23 06:22:39', NULL),
(59, 1108, 45529, 5, '2370 Theresa Heights Apt. 958', NULL, '62', '1', 'New Murl', '24286-7438', NULL, '95.124961', '2021-07-09 04:41:23', '2021-07-23 06:22:39', NULL),
(60, 1080, 45533, 2, '2822 Swaniawski Meadow', '6521', '26', '6', NULL, '36030-5520', '36.752309', NULL, '2021-07-02 19:32:14', '2021-07-23 06:22:39', NULL),
(61, 96, 45501, 2, '18316 Schaefer Extensions', '037', '69', '8', NULL, '71332', '24.019464', NULL, '2021-07-04 06:17:12', '2021-07-23 06:22:39', NULL),
(62, 1148, 45556, 6, NULL, '8834', '20', '4', 'Lake Maeve', '76929-9209', NULL, NULL, '2021-07-15 06:34:12', '2021-07-23 06:22:39', NULL),
(63, 497, 45497, 1, NULL, '12158', '34', '8', NULL, '61681', NULL, '156.413829', '2021-07-20 07:05:35', '2021-07-23 06:22:39', NULL),
(64, 267, 45498, 6, '677 Kemmer Vista Apt. 030', NULL, '22', '3', 'East Haleigh', '07890', '86.738257', '54.054786', '2021-07-04 18:46:24', '2021-07-23 06:22:39', NULL),
(65, 177, 45546, 5, NULL, '88814', '2', '8', NULL, '38116-1262', '-12.185963', '-104.252389', '2021-07-18 08:04:16', '2021-07-23 06:22:39', NULL),
(66, 865, 45556, 2, '7832 Samson Village Suite 521', NULL, '25', '5', 'North Vancehaven', '82054-7378', '18.514388', NULL, '2021-07-21 00:11:58', '2021-07-23 06:22:39', NULL),
(67, 872, 45499, 4, NULL, NULL, '98', '10', 'New Hillaryville', '77255-9732', NULL, '66.398956', '2021-07-17 05:35:09', '2021-07-23 06:22:39', NULL),
(68, 903, 45551, 5, '56945 Goyette Tunnel', NULL, '43', '10', NULL, '64822-9260', NULL, NULL, '2021-06-25 16:27:12', '2021-07-23 06:22:39', NULL),
(69, 981, 45555, 4, '2100 Myriam Mountain Suite 836', NULL, '1', '8', 'Heaneystad', '60108', NULL, '116.346878', '2021-07-15 22:59:57', '2021-07-23 06:22:39', NULL),
(70, 1106, 45520, 6, NULL, NULL, '14', '9', NULL, '32695-2229', '-67.945924', NULL, '2021-07-21 20:35:55', '2021-07-23 06:22:39', NULL),
(71, 710, 45490, 5, NULL, '310', '28', '1', NULL, '54095', '36.126274', '80.966953', '2021-06-25 10:13:53', '2021-07-23 06:22:39', NULL),
(72, 769, 45486, 2, NULL, NULL, '37', '9', NULL, '53609', NULL, '169.516050', '2021-07-06 16:26:48', '2021-07-23 06:22:39', NULL),
(73, 414, 45489, 5, NULL, '12755', '10', '3', NULL, '78642-0701', '-17.681127', '-169.344172', '2021-07-16 09:49:06', '2021-07-23 06:22:39', NULL),
(74, 356, 45551, 4, NULL, NULL, '79', '3', 'Klingfurt', '48951', '9.728868', NULL, '2021-07-15 03:22:15', '2021-07-23 06:22:39', NULL),
(75, 1065, 45504, 2, '232 Davis Ports Suite 634', NULL, '16', '10', 'West Hildegardhaven', '90251', NULL, NULL, '2021-07-12 19:52:41', '2021-07-23 06:22:39', NULL),
(76, 983, 45490, 5, NULL, '25164', '54', '8', 'Port Napoleon', '58644', '21.395944', NULL, '2021-07-22 11:52:20', '2021-07-23 06:22:39', NULL),
(77, 296, 45503, 1, NULL, '489', '54', '6', 'Parisianberg', '85611-4406', '-49.896857', NULL, '2021-07-04 07:10:50', '2021-07-23 06:22:39', NULL),
(78, 934, 45567, 2, NULL, NULL, '84', '10', 'Adammouth', '55301-5908', '-7.784189', NULL, '2021-07-08 17:40:27', '2021-07-23 06:22:39', NULL),
(79, 1175, 45568, 5, NULL, NULL, '72', '9', NULL, '91005', '84.985786', NULL, '2021-06-26 02:58:33', '2021-07-23 06:22:39', NULL),
(80, 303, 45518, 1, '015 Swaniawski Walks Apt. 998', '36612', '70', '1', NULL, '61336', '89.725598', '9.909192', '2021-07-08 04:50:27', '2021-07-23 06:22:39', NULL),
(81, 653, 45546, 3, '0559 Raul Stream', '493', '9', '6', NULL, '38943-7685', NULL, '85.485237', '2021-07-01 15:43:16', '2021-07-23 06:22:39', NULL),
(82, 263, 45486, 2, NULL, NULL, '42', '4', 'South Herbertton', '65261', NULL, '43.412467', '2021-06-26 13:40:24', '2021-07-23 06:22:39', NULL),
(83, 119, 45498, 2, '9079 Ruecker Roads Apt. 516', NULL, '80', '2', 'Roxaneborough', '12375-1650', '59.412056', NULL, '2021-06-24 07:44:43', '2021-07-23 06:22:39', NULL),
(84, 498, 45543, 4, NULL, '21555', '13', '4', 'Quigleybury', '05931', '-28.040081', '30.779559', '2021-06-25 20:53:57', '2021-07-23 06:22:39', NULL),
(85, 1038, 45516, 3, '119 Lewis Village', '7045', '88', '5', NULL, '94692-1584', NULL, NULL, '2021-07-02 15:09:37', '2021-07-23 06:22:39', NULL),
(86, 699, 45495, 1, NULL, NULL, '34', '1', NULL, '26961-7311', NULL, '171.788428', '2021-07-12 07:25:57', '2021-07-23 06:22:39', NULL),
(87, 112, 45510, 6, '59262 Caleb Orchard Suite 001', '818', '42', '8', NULL, '50738', NULL, '164.493154', '2021-07-14 13:01:44', '2021-07-23 06:22:39', NULL),
(88, 1235, 45551, 5, NULL, '987', '3', '6', 'West Lavina', '18773-8519', '-45.526995', '154.413712', '2021-07-16 21:02:41', '2021-07-23 06:22:39', NULL),
(89, 20, 45512, 1, '21473 Kirlin Centers', '830', '99', '10', NULL, '79487', NULL, NULL, '2021-07-18 23:44:18', '2021-07-23 06:22:39', NULL),
(90, 469, 45488, 1, NULL, '73561', '91', '6', 'Wilfredshire', '35788', NULL, NULL, '2021-07-20 16:14:14', '2021-07-23 06:22:39', NULL),
(91, 1169, 45482, 6, '4075 O\'Keefe Trail Apt. 056', NULL, '67', '1', NULL, '36221', '-42.370673', NULL, '2021-07-06 04:55:59', '2021-07-23 06:22:39', NULL),
(92, 955, 45565, 1, '0604 O\'Hara Port Suite 512', NULL, '79', '8', NULL, '42782', '24.459674', '-48.327693', '2021-07-18 07:33:12', '2021-07-23 06:22:39', NULL),
(93, 233, 45511, 3, NULL, NULL, '91', '2', NULL, '79250', '28.938484', '10.253953', '2021-07-17 11:50:41', '2021-07-23 06:22:39', NULL),
(94, 167, 45522, 6, '4639 Beier Path', NULL, '92', '5', NULL, '36098-6377', '-33.339347', '167.958857', '2021-07-20 08:45:42', '2021-07-23 06:22:39', NULL),
(95, 584, 45514, 5, '015 Harvey Parkways Apt. 042', '097', '96', '2', NULL, '12906-6893', NULL, '-55.310744', '2021-07-13 09:16:48', '2021-07-23 06:22:39', NULL),
(96, 320, 45530, 4, NULL, NULL, '71', '4', NULL, '46786', NULL, '0.669079', '2021-07-15 12:59:09', '2021-07-23 06:22:39', NULL),
(97, 511, 45559, 2, NULL, '339', '54', '2', 'New Moriah', '76812', '-11.640000', NULL, '2021-07-04 00:45:52', '2021-07-23 06:22:39', NULL),
(98, 1245, 45566, 5, '3576 Dean Walk', NULL, '15', '3', NULL, '88535-2967', NULL, NULL, '2021-06-27 00:43:45', '2021-07-23 06:22:39', NULL),
(99, 848, 45517, 5, NULL, NULL, '17', '10', NULL, '84039', '-15.474428', '-33.158309', '2021-07-02 02:19:42', '2021-07-23 06:22:39', NULL),
(100, 228, 45524, 3, '68676 Jarrell Plains', NULL, '19', '9', NULL, '59164', NULL, NULL, '2021-07-21 10:24:06', '2021-07-23 06:22:39', NULL),
(101, 1264, 45529, 4, NULL, NULL, '45', '3', NULL, '63560-4272', '-61.657991', NULL, '2021-07-14 01:34:42', '2021-07-23 06:22:39', NULL),
(102, 200, 45503, 3, '230 Reva Path', '413', '2', '9', 'Ambroseberg', '15688', '7.477180', '-106.375358', '2021-06-29 10:19:42', '2021-07-23 06:22:39', NULL),
(103, 671, 45469, 6, '199 Gus Spur', NULL, '76', '4', NULL, '60398', NULL, NULL, '2021-07-06 02:56:41', '2021-07-23 06:22:39', NULL),
(104, 743, 45546, 5, NULL, '9593', '13', '1', 'Rashawnmouth', '00823', NULL, '-27.658515', '2021-07-19 17:31:00', '2021-07-23 06:22:39', NULL),
(105, 90, 45532, 3, '540 Julio Light Apt. 791', NULL, '62', '1', 'Raustad', '67309-8412', '61.272815', NULL, '2021-06-22 20:22:00', '2021-07-23 06:22:39', NULL),
(106, 439, 45476, 3, NULL, '285', '70', '9', NULL, '17532-0797', NULL, NULL, '2021-07-04 12:26:19', '2021-07-23 06:22:39', NULL),
(107, 1206, 45526, 4, '33208 Gerhold Mews Suite 466', '0340', '53', '7', NULL, '30381-4946', '82.865437', NULL, '2021-07-18 14:10:27', '2021-07-23 06:22:39', NULL),
(108, 269, 45562, 2, NULL, '179', '25', '8', NULL, '04758-6550', NULL, '-157.821883', '2021-06-24 12:00:56', '2021-07-23 06:22:39', NULL),
(109, 1209, 45480, 6, '8508 Leonardo Lodge', '60077', '56', '2', NULL, '84830', '38.824577', '17.390346', '2021-07-17 04:03:17', '2021-07-23 06:22:39', NULL),
(110, 1132, 45476, 5, NULL, NULL, '84', '7', NULL, '66828', '85.802216', NULL, '2021-07-10 07:20:35', '2021-07-23 06:22:39', NULL),
(111, 899, 45569, 4, '60127 Efren Parkway Suite 760', '750', '91', '8', NULL, '19675', '53.269125', '-155.305136', '2021-07-08 20:50:28', '2021-07-23 06:22:39', NULL),
(112, 749, 45467, 5, '93528 John Views', NULL, '12', '3', NULL, '08640-2648', NULL, '98.610071', '2021-07-01 08:34:00', '2021-07-23 06:22:39', NULL),
(113, 825, 45494, 2, NULL, NULL, '47', '1', 'East Ansley', '28965-7275', '-17.214750', '-1.670498', '2021-07-18 05:46:19', '2021-07-23 06:22:39', NULL),
(114, 1256, 45520, 2, NULL, '041', '89', '9', NULL, '47810-0065', '-15.150998', NULL, '2021-07-03 13:47:55', '2021-07-23 06:22:39', NULL),
(115, 1022, 45467, 5, NULL, NULL, '72', '2', NULL, '12027', NULL, '173.024638', '2021-06-28 21:48:23', '2021-07-23 06:22:39', NULL),
(116, 603, 45493, 6, '708 Wolf Forge Apt. 676', '267', '90', '2', 'Gorczanyside', '26770-3966', '-6.177698', '63.337152', '2021-07-20 14:41:36', '2021-07-23 06:22:39', NULL),
(117, 481, 45479, 4, NULL, NULL, '6', '4', 'Sawaynhaven', '37194', NULL, NULL, '2021-06-26 22:16:34', '2021-07-23 06:22:39', NULL),
(118, 140, 45515, 3, '290 Davonte Crossing', '640', '98', '8', 'Kautzerville', '69687-8121', NULL, NULL, '2021-07-09 22:48:10', '2021-07-23 06:22:39', NULL),
(119, 223, 45477, 4, '592 Corkery Mill Suite 939', '2025', '78', '10', 'Davemouth', '09258-7247', NULL, '-162.176230', '2021-06-27 23:50:16', '2021-07-23 06:22:39', NULL),
(120, 561, 45501, 6, '36478 Dietrich Islands Apt. 284', NULL, '15', '5', '<NAME>', '67104', NULL, NULL, '2021-07-12 14:17:23', '2021-07-23 06:22:39', NULL),
(121, 696, 45553, 6, NULL, '93362', '31', '1', NULL, '40955', NULL, NULL, '2021-06-29 21:04:05', '2021-07-23 06:22:39', NULL),
(122, 47, 45487, 3, NULL, NULL, '66', '3', NULL, '38417-2082', '12.213131', NULL, '2021-07-20 18:21:10', '2021-07-23 06:22:39', NULL),
(123, 921, 45519, 1, NULL, '191', '84', '1', 'Ernsershire', '15407', '-16.880915', '76.024023', '2021-07-03 18:26:45', '2021-07-23 06:22:39', NULL),
(124, 441, 45509, 2, '0352 Bart Crossroad Apt. 617', NULL, '93', '10', 'Lake Alana', '31276-6105', NULL, NULL, '2021-07-11 07:07:03', '2021-07-23 06:22:39', NULL),
(125, 310, 45484, 2, NULL, '18443', '41', '6', NULL, '75674-9618', NULL, '-41.269045', '2021-07-20 20:43:54', '2021-07-23 06:22:39', NULL),
(126, 1180, 45529, 5, '46811 Giuseppe Streets Apt. 553', '2662', '81', '3', 'Augustaburgh', '61251-9191', '63.511310', '153.287776', '2021-07-06 21:25:18', '2021-07-23 06:22:39', NULL),
(127, 1210, 45561, 6, '79051 Ondricka Pines Apt. 031', NULL, '60', '10', NULL, '74325-0147', NULL, NULL, '2021-07-02 03:08:29', '2021-07-23 06:22:39', NULL),
(128, 1023, 45542, 1, NULL, NULL, '77', '10', NULL, '89505', '70.289441', '-95.352359', '2021-06-29 02:50:41', '2021-07-23 06:22:39', NULL),
(129, 103, 45493, 3, '9355 Williamson Street Apt. 451', NULL, '83', '2', NULL, '17806-6408', '-9.840171', NULL, '2021-06-28 08:20:12', '2021-07-23 06:22:39', NULL),
(130, 187, 45522, 5, '597 Bernier Glens Suite 109', '6715', '53', '5', 'West Carmen', '70947-8500', NULL, NULL, '2021-07-12 12:13:25', '2021-07-23 06:22:39', NULL),
(131, 61, 45469, 4, '51985 <NAME>', NULL, '63', '10', 'Lamberttown', '46715', NULL, NULL, '2021-07-07 16:16:29', '2021-07-23 06:22:39', NULL),
(132, 956, 45505, 6, NULL, NULL, '79', '7', NULL, '54596', '10.933429', NULL, '2021-07-10 18:33:21', '2021-07-23 06:22:39', NULL),
(133, 215, 45553, 6, '04324 Gulgowski Meadows', '4146', '80', '3', 'Prohaskaborough', '67612', NULL, '-144.922611', '2021-06-30 08:05:11', '2021-07-23 06:22:39', NULL),
(134, 689, 45486, 3, NULL, '3175', '57', '1', NULL, '37796-1483', '49.502038', NULL, '2021-07-01 08:20:30', '2021-07-23 06:22:39', NULL),
(135, 1097, 45540, 2, '84429 Garrison Summit Apt. 479', NULL, '70', '3', 'Robelton', '40719-4048', NULL, '-19.178718', '2021-07-04 20:29:02', '2021-07-23 06:22:39', NULL),
(136, 214, 45482, 1, '66279 Alek Fields', '57940', '67', '8', 'Luzshire', '99597-2630', '-19.056148', NULL, '2021-07-11 10:37:29', '2021-07-23 06:22:39', NULL),
(137, 476, 45493, 4, NULL, '173', '82', '10', 'Walshshire', '58089-5172', '32.806659', NULL, '2021-07-11 20:34:21', '2021-07-23 06:22:39', NULL),
(138, 635, 45513, 3, '9441 Dewitt Branch', '96829', '84', '7', 'Lake Gabriellefort', '04017-8099', '-60.459761', NULL, '2021-06-29 00:53:31', '2021-07-23 06:22:39', NULL),
(139, 156, 45562, 4, NULL, '75642', '70', '8', NULL, '94662', '29.386573', '45.973135', '2021-07-06 12:45:26', '2021-07-23 06:22:39', NULL),
(140, 979, 45535, 4, NULL, '23428', '95', '9', 'Lizzieborough', '82319', NULL, '-86.025687', '2021-07-19 04:21:57', '2021-07-23 06:22:39', NULL),
(141, 305, 45539, 6, NULL, NULL, '59', '7', 'Lake Kaylaview', '42309', NULL, NULL, '2021-07-21 17:35:07', '2021-07-23 06:22:39', NULL),
(142, 382, 45562, 2, NULL, '30519', '11', '9', NULL, '35369', NULL, NULL, '2021-07-12 03:26:57', '2021-07-23 06:22:39', NULL),
(143, 623, 45540, 5, '526 Cleve Way', NULL, '93', '3', NULL, '62346-2681', '-63.653537', NULL, '2021-06-27 04:26:48', '2021-07-23 06:22:39', NULL),
(144, 1214, 45558, 2, NULL, NULL, '95', '2', NULL, '20549', '19.190426', NULL, '2021-07-11 17:47:43', '2021-07-23 06:22:39', NULL),
(145, 326, 45550, 4, '001 Lesch Walks', '3627', '46', '9', NULL, '05371', '-76.590143', NULL, '2021-07-20 16:56:03', '2021-07-23 06:22:39', NULL),
(146, 370, 45531, 3, '370 Efren Dam Apt. 943', '794', '31', '5', NULL, '74424-2921', NULL, NULL, '2021-07-21 10:51:59', '2021-07-23 06:22:39', NULL),
(147, 379, 45545, 2, '8784 Rhoda Roads', NULL, '73', '5', NULL, '22756-6919', '1.445798', '130.063037', '2021-07-08 19:47:03', '2021-07-23 06:22:39', NULL),
(148, 883, 45532, 3, NULL, NULL, '75', '4', NULL, '99672-5124', NULL, NULL, '2021-07-19 10:16:18', '2021-07-23 06:22:39', NULL),
(149, 1067, 45487, 4, NULL, NULL, '10', '7', NULL, '18330', '47.217688', '175.978297', '2021-07-12 06:47:42', '2021-07-23 06:22:39', NULL),
(150, 938, 45483, 4, '4204 Connelly Mews Apt. 720', NULL, '67', '9', 'Lake Murielmouth', '14291-2233', NULL, NULL, '2021-07-13 00:56:57', '2021-07-23 06:22:39', NULL),
(151, 1069, 45519, 4, NULL, NULL, '55', '5', NULL, '37316', NULL, NULL, '2021-07-09 23:35:37', '2021-07-23 06:22:39', NULL),
(152, 958, 45557, 4, '741 <NAME>', NULL, '70', '9', 'South Kevinfurt', '30093-9780', NULL, NULL, '2021-07-20 21:01:22', '2021-07-23 06:22:39', NULL),
(153, 363, 45528, 5, NULL, '4991', '81', '1', 'North Rosemarieberg', '85234', '-82.546480', NULL, '2021-06-26 05:40:42', '2021-07-23 06:22:39', NULL),
(154, 949, 45515, 2, '2056 Sharon Branch', NULL, '13', '10', NULL, '21372', '16.908106', '-95.437514', '2021-06-26 17:01:54', '2021-07-23 06:22:39', NULL),
(155, 818, 45567, 1, NULL, '84814', '95', '5', 'Bergnaumshire', '93148', NULL, '-74.646122', '2021-06-26 18:29:58', '2021-07-23 06:22:39', NULL),
(156, 124, 45532, 1, '077 Steve Harbors', NULL, '85', '4', 'New Nikkiside', '95935-0657', '53.942524', '21.232059', '2021-07-05 15:27:08', '2021-07-23 06:22:39', NULL),
(157, 839, 45469, 4, NULL, '2777', '76', '2', 'South Tiara', '41924-0711', '34.515936', NULL, '2021-07-15 12:53:21', '2021-07-23 06:22:39', NULL),
(158, 796, 45533, 5, NULL, '543', '26', '5', 'Homenickfurt', '44137', NULL, NULL, '2021-07-05 15:56:08', '2021-07-23 06:22:39', NULL),
(159, 1051, 45525, 2, NULL, '76248', '66', '7', 'Considineland', '01011-1169', '33.003947', NULL, '2021-06-27 04:59:33', '2021-07-23 06:22:39', NULL),
(160, 742, 45547, 1, NULL, NULL, '16', '10', 'Cruickshankshire', '36066-7786', '-42.730511', NULL, '2021-07-06 06:22:49', '2021-07-23 06:22:39', NULL),
(161, 1146, 45516, 4, '775 Arnulfo Skyway Apt. 850', NULL, '32', '10', NULL, '34187', '-68.516783', '-77.034433', '2021-07-05 17:30:38', '2021-07-23 06:22:39', NULL),
(162, 1168, 45499, 5, NULL, NULL, '22', '1', NULL, '24941-7116', '21.387999', NULL, '2021-07-02 22:09:27', '2021-07-23 06:22:39', NULL),
(163, 1119, 45543, 6, '9527 Mohr Valley Apt. 155', '5930', '35', '4', '<NAME>', '06507', '-72.577029', NULL, '2021-07-10 13:56:55', '2021-07-23 06:22:39', NULL),
(164, 645, 45527, 2, '284 Klocko Villages', '98056', '23', '3', 'New Alanshire', '17166-3594', NULL, '152.108388', '2021-06-27 08:53:58', '2021-07-23 06:22:39', NULL),
(165, 1095, 45491, 5, NULL, NULL, '54', '9', NULL, '89115-6075', '63.430975', '94.054646', '2021-06-29 04:46:06', '2021-07-23 06:22:39', NULL),
(166, 547, 45508, 3, NULL, NULL, '50', '9', 'Port Nathanial', '37127', NULL, '-130.195608', '2021-07-15 11:45:29', '2021-07-23 06:22:39', NULL),
(167, 1079, 45565, 5, NULL, '75753', '99', '10', NULL, '11101-9272', NULL, NULL, '2021-07-10 00:22:45', '2021-07-23 06:22:39', NULL),
(168, 479, 45541, 2, '685 Deonte Trace Suite 133', '600', '65', '8', NULL, '02919', NULL, '20.760923', '2021-06-29 09:01:36', '2021-07-23 06:22:39', NULL),
(169, 790, 45470, 4, NULL, '73126', '86', '9', 'Loweport', '84309-1287', NULL, NULL, '2021-07-13 12:15:52', '2021-07-23 06:22:39', NULL),
(170, 193, 45536, 6, '84714 Schmidt Grove Apt. 180', NULL, '40', '7', 'North Darion', '14197-1503', '-22.532503', NULL, '2021-07-11 12:19:10', '2021-07-23 06:22:39', NULL),
(171, 750, 45564, 5, NULL, NULL, '84', '7', 'Gerlachbury', '71779', NULL, NULL, '2021-07-13 13:42:42', '2021-07-23 06:22:39', NULL),
(172, 409, 45525, 6, '48924 Sincere Streets', NULL, '39', '7', NULL, '16297', NULL, NULL, '2021-06-25 10:42:47', '2021-07-23 06:22:39', NULL),
(173, 803, 45525, 3, '3376 Kessler Forks', '457', '80', '4', '<NAME>', '38712-9257', '41.929452', NULL, '2021-06-27 07:55:34', '2021-07-23 06:22:39', NULL),
(174, 1033, 45485, 1, NULL, '271', '76', '9', 'South Joanny', '36264-4431', NULL, NULL, '2021-07-11 08:11:42', '2021-07-23 06:22:39', NULL),
(175, 805, 45558, 4, NULL, '86514', '6', '7', NULL, '47452-3277', NULL, '33.205447', '2021-07-19 11:56:24', '2021-07-23 06:22:39', NULL),
(176, 509, 45503, 6, '511 Brekke Hollow', '36241', '100', '8', 'East Dasiaside', '95681-0723', NULL, NULL, '2021-07-13 07:52:29', '2021-07-23 06:22:39', NULL),
(177, 612, 45549, 1, '700 Brekke Light', NULL, '12', '7', 'Cristton', '44253-2167', NULL, '81.806488', '2021-06-26 04:18:47', '2021-07-23 06:22:39', NULL),
(178, 265, 45482, 6, NULL, '555', '19', '5', 'Rogahnfurt', '35425', NULL, '1.488354', '2021-07-15 02:08:02', '2021-07-23 06:22:39', NULL),
(179, 585, 45511, 1, NULL, NULL, '59', '8', NULL, '32389-6180', '-4.395471', NULL, '2021-07-08 13:59:21', '2021-07-23 06:22:39', NULL),
(180, 297, 45514, 1, '16698 Rippin Motorway', '83096', '6', '1', 'Hermannmouth', '35057-9988', '13.660564', '56.624826', '2021-07-20 02:52:39', '2021-07-23 06:22:39', NULL),
(181, 7, 45537, 6, NULL, NULL, '99', '2', NULL, '27904', NULL, NULL, '2021-06-24 10:02:50', '2021-07-23 06:22:39', NULL),
(182, 618, 45509, 5, '9072 Rath Street', '8190', '65', '3', NULL, '13212', NULL, '-78.799112', '2021-07-21 00:18:07', '2021-07-23 06:22:39', NULL),
(183, 247, 45524, 3, '668 Muller Brooks Suite 505', NULL, '51', '7', 'Mantehaven', '11009', '-42.475746', '63.995097', '2021-07-15 06:16:39', '2021-07-23 06:22:39', NULL),
(184, 229, 45476, 2, '46694 Kolby Overpass', NULL, '2', '8', 'Wiegandstad', '78186', '0.872045', '-167.342069', '2021-07-08 22:29:51', '2021-07-23 06:22:39', NULL),
(185, 691, 45517, 1, '8976 Frederic Points Suite 667', NULL, '96', '3', 'New Gaylord', '32128', NULL, NULL, '2021-07-22 20:11:14', '2021-07-23 06:22:39', NULL),
(186, 216, 45559, 4, NULL, NULL, '37', '2', 'Domenicamouth', '68779', NULL, '18.914729', '2021-07-06 11:04:14', '2021-07-23 06:22:39', NULL),
(187, 374, 45484, 4, '4759 Kreiger Plains Suite 660', NULL, '96', '2', NULL, '63653', NULL, '-69.651040', '2021-07-19 10:20:48', '2021-07-23 06:22:39', NULL),
(188, 260, 45544, 1, '223 Larkin Plains Suite 485', '3865', '79', '10', NULL, '28426', '61.731183', NULL, '2021-07-09 05:17:54', '2021-07-23 06:22:39', NULL),
(189, 217, 45556, 3, '000 Xander Spurs', '81012', '60', '7', 'West Sydnieburgh', '33377-2506', NULL, '-121.741022', '2021-07-13 10:44:31', '2021-07-23 06:22:39', NULL),
(190, 419, 45488, 4, NULL, '826', '23', '4', 'New Leopoldoview', '85315', '-37.889419', NULL, '2021-06-23 20:19:56', '2021-07-23 06:22:39', NULL),
(191, 107, 45525, 1, '09505 <NAME>', NULL, '89', '2', '<NAME>', '94462-0992', NULL, NULL, '2021-07-06 09:03:53', '2021-07-23 06:22:39', NULL),
(192, 516, 45551, 2, NULL, '7817', '4', '1', NULL, '40945-4914', NULL, NULL, '2021-06-30 22:21:23', '2021-07-23 06:22:39', NULL),
(193, 715, 45498, 6, '35536 Gregorio Gardens Suite 228', '490', '97', '1', 'South Sigridberg', '85417-4828', '66.722281', NULL, '2021-06-26 21:57:26', '2021-07-23 06:22:39', NULL),
(194, 559, 45536, 6, '8421 Houston Square Suite 592', '3809', '71', '6', 'East Orlandochester', '51885', NULL, '119.418613', '2021-07-03 23:15:30', '2021-07-23 06:22:39', NULL),
(195, 87, 45544, 6, '05926 Hans Mission Suite 737', '0844', '85', '8', NULL, '71092', '-63.487410', '153.926367', '2021-06-23 18:10:55', '2021-07-23 06:22:39', NULL),
(196, 1136, 45481, 2, '022 Zboncak Plains Apt. 093', '456', '37', '5', 'Maritzaberg', '08295-7839', NULL, NULL, '2021-07-14 15:04:17', '2021-07-23 06:22:39', NULL),
(197, 990, 45548, 3, '64124 Stoltenberg Ford Apt. 846', NULL, '17', '2', NULL, '17366', NULL, NULL, '2021-07-16 21:59:46', '2021-07-23 06:22:39', NULL),
(198, 724, 45491, 4, NULL, NULL, '9', '4', 'West Chelsea', '08254-1131', '36.761953', '107.299357', '2021-06-25 20:55:30', '2021-07-23 06:22:39', NULL),
(199, 209, 45472, 1, NULL, NULL, '3', '1', 'North Cecilechester', '00481', NULL, NULL, '2021-07-20 22:45:35', '2021-07-23 06:22:39', NULL),
(200, 195, 45477, 4, '97418 Kautzer Square Suite 735', NULL, '83', '3', 'Lake Paige', '48902', NULL, '70.934867', '2021-06-25 20:37:07', '2021-07-23 06:22:39', NULL),
(201, 822, 45520, 4, '08029 Yolanda Stream', NULL, '51', '4', NULL, '53840-9396', NULL, NULL, '2021-07-16 14:54:31', '2021-07-23 06:22:39', NULL),
(202, 1298, 45561, 2, '100 Lola Prairie Apt. 158', NULL, '98', '2', NULL, '01598', '-50.507588', '150.562946', '2021-07-21 15:17:01', '2021-07-23 06:22:39', NULL),
(203, 1027, 45469, 2, '4496 Mattie Passage Suite 970', NULL, '35', '10', 'Littelberg', '82919', '-4.924157', NULL, '2021-06-30 17:45:30', '2021-07-23 06:22:39', NULL),
(204, 52, 45546, 1, '05152 Schmeler Garden', NULL, '23', '9', 'West Cristiantown', '24844', NULL, '-126.711209', '2021-07-09 08:30:08', '2021-07-23 06:22:39', NULL),
(205, 621, 45560, 1, NULL, '54412', '89', '1', NULL, '51764', '66.104676', '162.268638', '2021-07-12 17:48:11', '2021-07-23 06:22:39', NULL),
(206, 1131, 45515, 2, NULL, NULL, '97', '1', NULL, '49049-6004', '-78.992485', NULL, '2021-07-14 15:33:20', '2021-07-23 06:22:39', NULL),
(207, 510, 45499, 1, NULL, '75815', '83', '7', NULL, '20930', NULL, '-22.763226', '2021-06-23 13:14:14', '2021-07-23 06:22:39', NULL),
(208, 1173, 45570, 2, NULL, NULL, '41', '2', 'West Rebekah', '20879', '33.669666', NULL, '2021-07-14 12:49:23', '2021-07-23 06:22:39', NULL),
(209, 218, 45514, 5, '342 Tara Parkways', '03394', '65', '3', NULL, '17745', NULL, NULL, '2021-07-16 06:05:14', '2021-07-23 06:22:39', NULL),
(210, 390, 45561, 2, '882 Emerald Springs Apt. 932', NULL, '95', '6', NULL, '97448-5762', NULL, NULL, '2021-06-26 11:31:49', '2021-07-23 06:22:39', NULL),
(211, 262, 45519, 5, NULL, '68921', '54', '5', 'Verniestad', '17564', '35.625895', NULL, '2021-07-12 23:30:13', '2021-07-23 06:22:39', NULL),
(212, 590, 45565, 4, '7942 Maureen Forest Apt. 658', NULL, '88', '4', 'Lake Vanceshire', '04376-9193', NULL, NULL, '2021-07-13 17:20:51', '2021-07-23 06:22:39', NULL),
(213, 319, 45525, 5, '857 Borer Trafficway', '7099', '58', '8', NULL, '36085-6687', NULL, NULL, '2021-06-29 00:12:07', '2021-07-23 06:22:39', NULL),
(214, 741, 45515, 5, NULL, NULL, '69', '1', NULL, '51143-5431', '89.210131', NULL, '2021-07-17 20:45:10', '2021-07-23 06:22:39', NULL),
(215, 1225, 45536, 5, NULL, '099', '24', '5', NULL, '22892', '14.757669', '48.909289', '2021-07-22 13:30:52', '2021-07-23 06:22:39', NULL),
(216, 655, 45554, 4, '3983 Isaias Rapids Apt. 844', '3112', '65', '8', 'New Edmundborough', '32653-1391', NULL, '-95.323504', '2021-07-11 23:57:59', '2021-07-23 06:22:39', NULL),
(217, 41, 45506, 4, '079 Zulauf Falls', '055', '36', '5', 'New Myaville', '41811-7165', '53.502234', NULL, '2021-07-14 23:51:44', '2021-07-23 06:22:39', NULL),
(218, 529, 45489, 3, '40614 Kiehn Club', NULL, '68', '10', NULL, '13785', '-37.997340', NULL, '2021-07-17 17:51:51', '2021-07-23 06:22:39', NULL),
(219, 1253, 45516, 4, NULL, '2565', '25', '3', 'South Jazlynstad', '43172', NULL, NULL, '2021-07-02 17:44:51', '2021-07-23 06:22:39', NULL),
(220, 1093, 45468, 2, NULL, '558', '30', '9', NULL, '04716', '40.164805', '53.169362', '2021-07-08 13:29:16', '2021-07-23 06:22:39', NULL),
(221, 127, 45495, 2, '145 <NAME>', NULL, '20', '4', NULL, '15813', NULL, '-141.260591', '2021-06-29 07:46:43', '2021-07-23 06:22:39', NULL),
(222, 829, 45566, 4, '72998 Gerda Ville Suite 440', NULL, '15', '7', 'Ortizfort', '88571', '65.218768', '-164.795263', '2021-06-23 15:30:04', '2021-07-23 06:22:39', NULL),
(223, 771, 45476, 1, '510 Dylan Cove Apt. 053', NULL, '38', '3', 'Effertzstad', '11530', '51.309876', NULL, '2021-07-22 16:07:43', '2021-07-23 06:22:39', NULL),
(224, 286, 45484, 4, NULL, NULL, '34', '3', NULL, '84142', NULL, NULL, '2021-07-08 11:26:40', '2021-07-23 06:22:39', NULL),
(225, 1238, 45563, 6, '296 Twila Shoal Apt. 300', NULL, '66', '9', 'Fayburgh', '50070', '-80.836376', '32.051122', '2021-07-14 12:48:24', '2021-07-23 06:22:39', NULL),
(226, 791, 45561, 5, NULL, '314', '84', '6', NULL, '58426', NULL, '-134.102116', '2021-06-28 16:14:47', '2021-07-23 06:22:39', NULL),
(227, 1244, 45481, 6, '7660 Torey Port', '540', '55', '10', 'Port Melyssamouth', '70472-7961', NULL, NULL, '2021-07-19 10:25:54', '2021-07-23 06:22:39', NULL),
(228, 1026, 45510, 4, '70005 Armstrong Forges', '960', '34', '9', NULL, '00017-2937', '-46.873935', NULL, '2021-07-21 04:35:22', '2021-07-23 06:22:39', NULL),
(229, 535, 45537, 5, NULL, '68406', '3', '10', 'Anaport', '57932', '23.133102', NULL, '2021-07-22 14:37:25', '2021-07-23 06:22:39', NULL),
(230, 1170, 45522, 6, NULL, NULL, '27', '1', NULL, '10096-1836', NULL, '7.209580', '2021-07-21 20:38:35', '2021-07-23 06:22:39', NULL),
(231, 685, 45530, 3, '3506 <NAME>', NULL, '17', '5', NULL, '82117-0708', '49.079729', NULL, '2021-06-24 11:06:40', '2021-07-23 06:22:39', NULL),
(232, 197, 45535, 2, NULL, NULL, '59', '4', 'Port Marianneland', '68193', '-43.991203', NULL, '2021-06-28 08:56:37', '2021-07-23 06:22:39', NULL),
(233, 800, 45529, 5, '1186 Reanna Fields Suite 781', '8892', '20', '8', 'Port Francesco', '96082-3787', '-27.634128', NULL, '2021-07-09 17:48:13', '2021-07-23 06:22:39', NULL),
(234, 144, 45509, 3, '05759 Funk Ramp Apt. 487', NULL, '60', '9', 'Valentinberg', '99963-5241', '-5.098321', NULL, '2021-07-21 03:04:15', '2021-07-23 06:22:39', NULL),
(235, 483, 45536, 1, NULL, '9682', '78', '3', NULL, '72535', '-2.155508', '90.454157', '2021-07-20 17:16:25', '2021-07-23 06:22:39', NULL),
(236, 727, 45570, 6, '33878 Bergnaum Course Suite 834', NULL, '96', '10', 'Rennerborough', '89287-2384', '-30.541882', '56.382271', '2021-07-15 02:20:04', '2021-07-23 06:22:39', NULL),
(237, 1018, 45492, 3, '93801 Murazik Hills', NULL, '83', '3', 'Harberton', '67706', '45.547603', '-142.605630', '2021-06-24 08:31:16', '2021-07-23 06:22:39', NULL),
(238, 1216, 45567, 5, NULL, '45098', '21', '5', NULL, '13749-2111', NULL, NULL, '2021-07-09 05:49:54', '2021-07-23 06:22:39', NULL),
(239, 1005, 45469, 4, NULL, NULL, '49', '9', 'Jacynthestad', '18394-7383', NULL, '59.921259', '2021-07-10 13:35:06', '2021-07-23 06:22:39', NULL),
(240, 994, 45486, 1, NULL, '37355', '12', '3', NULL, '90247-5083', '69.861604', '-143.872907', '2021-07-07 18:52:37', '2021-07-23 06:22:39', NULL),
(241, 936, 45555, 2, '958 Brenna Summit Suite 297', NULL, '57', '6', 'Claudineland', '62691-1374', '-40.561557', '40.891897', '2021-07-09 15:57:07', '2021-07-23 06:22:39', NULL),
(242, 1159, 45519, 3, '865 Catalina Green Suite 497', NULL, '29', '7', 'Johnsonburgh', '55276-3727', NULL, NULL, '2021-06-24 04:05:05', '2021-07-23 06:22:39', NULL),
(243, 139, 45510, 5, NULL, NULL, '94', '6', NULL, '57025-4176', NULL, NULL, '2021-07-10 07:28:31', '2021-07-23 06:22:39', NULL),
(244, 109, 45487, 1, NULL, '16903', '35', '4', 'Haleyburgh', '02118', NULL, NULL, '2021-07-20 22:35:43', '2021-07-23 06:22:39', NULL),
(245, 992, 45509, 5, NULL, NULL, '13', '6', NULL, '90557-2074', '-37.306758', '-77.353517', '2021-07-03 11:26:29', '2021-07-23 06:22:39', NULL),
(246, 58, 45560, 4, '298 Bogisich Green Apt. 044', NULL, '37', '4', '<NAME>', '60651', '44.710344', NULL, '2021-07-05 11:42:03', '2021-07-23 06:22:39', NULL),
(247, 962, 45470, 5, '54811 O\'Reilly Neck Suite 122', NULL, '65', '10', 'Larsonburgh', '21201-7336', NULL, '106.664175', '2021-07-18 13:25:34', '2021-07-23 06:22:39', NULL),
(248, 351, 45479, 1, '8528 Borer Squares', NULL, '5', '3', NULL, '15869', NULL, '91.403362', '2021-07-01 12:21:34', '2021-07-23 06:22:39', NULL),
(249, 1130, 45545, 4, '86425 Lavina Crest Apt. 915', NULL, '64', '10', NULL, '75536-4522', NULL, NULL, '2021-07-12 08:32:21', '2021-07-23 06:22:39', NULL),
(250, 633, 45502, 4, NULL, NULL, '90', '5', 'Autumnstad', '11005', '-48.337585', NULL, '2021-07-12 13:16:00', '2021-07-23 06:22:39', NULL),
(251, 574, 45557, 1, '24351 Nitzsche Plaza', NULL, '22', '10', NULL, '68757', NULL, NULL, '2021-07-17 02:42:01', '2021-07-23 06:22:39', NULL),
(252, 548, 45497, 5, '45614 Odell Stravenue Suite 327', NULL, '30', '5', 'East Willie', '54202-0046', NULL, NULL, '2021-07-19 21:47:10', '2021-07-23 06:22:39', NULL),
(253, 245, 45532, 4, NULL, '38687', '89', '9', 'Eunicefurt', '42001-2644', NULL, NULL, '2021-06-25 06:18:05', '2021-07-23 06:22:39', NULL),
(254, 434, 45551, 3, NULL, '6447', '41', '7', 'New Darbybury', '48215-7549', NULL, '90.042271', '2021-07-05 20:54:33', '2021-07-23 06:22:39', NULL),
(255, 867, 45529, 1, NULL, NULL, '43', '2', NULL, '93181', '-5.393526', NULL, '2021-07-19 11:13:38', '2021-07-23 06:22:39', NULL),
(256, 18, 45492, 6, '030 Curt Rue Apt. 686', '8447', '13', '10', 'Flatleyside', '25574-8060', '47.147440', NULL, '2021-07-15 13:37:04', '2021-07-23 06:22:39', NULL),
(257, 1154, 45487, 6, '51888 Vandervort Rue', NULL, '36', '7', 'Port Brodymouth', '31169', '-41.565901', NULL, '2021-07-16 04:48:52', '2021-07-23 06:22:39', NULL),
(258, 402, 45484, 2, '662 Emmett Forks', NULL, '46', '2', 'North Bernard', '98154-0716', NULL, NULL, '2021-07-01 13:00:06', '2021-07-23 06:22:39', NULL),
(259, 173, 45551, 3, NULL, '802', '61', '9', 'Monahantown', '02819', '-54.518232', NULL, '2021-06-25 22:36:06', '2021-07-23 06:22:39', NULL),
(260, 1281, 45483, 6, '3574 Lowell Well Apt. 059', '838', '71', '10', 'Strosinton', '51895', '-74.120648', '126.452314', '2021-07-01 02:56:20', '2021-07-23 06:22:39', NULL),
(261, 133, 45482, 1, NULL, NULL, '64', '4', NULL, '11446-6769', '58.626299', NULL, '2021-07-12 11:11:17', '2021-07-23 06:22:39', NULL),
(262, 1025, 45560, 6, NULL, '215', '70', '3', 'Jacobsonstad', '93924', '-32.071059', NULL, '2021-07-08 19:41:09', '2021-07-23 06:22:39', NULL),
(263, 976, 45486, 5, '61490 <NAME>', NULL, '24', '2', 'Lulahaven', '25412', NULL, NULL, '2021-06-27 19:51:49', '2021-07-23 06:22:39', NULL),
(264, 723, 45522, 3, '428 Hickle Isle Suite 295', '65652', '4', '10', NULL, '38599', '-77.316007', '-82.796354', '2021-07-21 13:00:02', '2021-07-23 06:22:39', NULL),
(265, 663, 45492, 1, NULL, NULL, '39', '10', NULL, '33983-6891', '-80.762936', NULL, '2021-07-19 08:14:03', '2021-07-23 06:22:39', NULL),
(266, 1240, 45554, 6, NULL, NULL, '29', '5', NULL, '97056-7586', NULL, '43.537303', '2021-07-05 19:23:21', '2021-07-23 06:22:39', NULL),
(267, 248, 45475, 2, '311 Bernice Islands Suite 047', NULL, '91', '2', 'West Seth', '21681-1919', '-39.659721', NULL, '2021-07-17 02:42:57', '2021-07-23 06:22:39', NULL),
(268, 26, 45480, 3, '9805 Reichert Turnpike Suite 295', '4909', '22', '4', NULL, '62186-1527', '-77.159459', NULL, '2021-07-02 05:51:45', '2021-07-23 06:22:39', NULL),
(269, 895, 45502, 6, '608 Cremin Plains Suite 807', '900', '64', '10', 'West Onieview', '41810', '79.075468', '-120.595560', '2021-07-07 00:25:11', '2021-07-23 06:22:39', NULL),
(270, 904, 45565, 3, '3163 Nolan Meadow Apt. 526', NULL, '76', '9', 'South Kaleshire', '03953-9284', '-76.947988', '52.373319', '2021-07-03 09:14:30', '2021-07-23 06:22:39', NULL),
(271, 589, 45522, 4, NULL, '716', '38', '1', NULL, '83788-6529', NULL, '-46.338184', '2021-07-06 08:18:41', '2021-07-23 06:22:39', NULL),
(272, 312, 45545, 5, '3560 Brielle Ridges', NULL, '50', '5', NULL, '88564-9933', '-8.216132', '-87.105757', '2021-07-13 20:35:34', '2021-07-23 06:22:39', NULL),
(273, 1034, 45480, 3, NULL, '24282', '82', '10', NULL, '38889-5978', NULL, '-77.731605', '2021-07-13 08:08:22', '2021-07-23 06:22:39', NULL),
(274, 615, 45552, 1, '218 <NAME>', NULL, '62', '7', 'Jeraldshire', '99275', NULL, '46.440152', '2021-07-16 16:34:56', '2021-07-23 06:22:39', NULL),
(275, 1272, 45537, 1, '747 Autumn Isle Suite 606', '554', '80', '5', NULL, '01583', '-60.125313', NULL, '2021-07-07 09:10:31', '2021-07-23 06:22:39', NULL),
(276, 425, 45474, 6, '2676 Williamson Views Apt. 192', NULL, '76', '7', NULL, '06311', '-13.715659', '138.692661', '2021-07-17 12:29:57', '2021-07-23 06:22:39', NULL),
(277, 27, 45471, 1, NULL, '57212', '45', '2', 'East Jeanette', '19843', NULL, '-50.402340', '2021-07-11 10:51:08', '2021-07-23 06:22:39', NULL),
(278, 192, 45523, 2, NULL, '7329', '92', '6', 'New Ferneburgh', '91367-7828', '-31.333229', NULL, '2021-06-27 02:54:37', '2021-07-23 06:22:39', NULL),
(279, 384, 45538, 3, '3558 Jenkins Well', NULL, '75', '5', 'New Selmer', '73946-4650', '-27.664444', '-102.400214', '2021-07-05 06:32:30', '2021-07-23 06:22:39', NULL),
(280, 1255, 45564, 4, NULL, '2825', '63', '10', NULL, '39471-9090', '-16.022309', NULL, '2021-07-14 16:05:36', '2021-07-23 06:22:39', NULL),
(281, 1089, 45539, 1, NULL, NULL, '20', '1', 'Theaburgh', '36109', '-53.992668', NULL, '2021-06-26 13:22:18', '2021-07-23 06:22:39', NULL),
(282, 616, 45473, 3, '2401 H<NAME>', '107', '73', '5', 'Clementineberg', '37629-9038', NULL, '35.480149', '2021-07-01 12:42:55', '2021-07-23 06:22:39', NULL),
(283, 410, 45484, 4, NULL, '62892', '16', '1', 'Langhaven', '94610', NULL, NULL, '2021-06-26 21:19:55', '2021-07-23 06:22:39', NULL),
(284, 500, 45535, 1, '51913 Priscilla Forge Apt. 431', NULL, '31', '6', 'Rueckerhaven', '80485-2427', NULL, NULL, '2021-07-06 16:18:57', '2021-07-23 06:22:39', NULL),
(285, 292, 45534, 1, NULL, NULL, '45', '1', NULL, '99325-1127', NULL, '163.920823', '2021-07-11 17:22:48', '2021-07-23 06:22:39', NULL),
(286, 35, 45532, 6, NULL, '4705', '92', '4', 'Elissamouth', '68826-3224', NULL, NULL, '2021-07-09 04:47:23', '2021-07-23 06:22:39', NULL),
(287, 843, 45517, 6, '143 Dietrich Prairie Apt. 366', NULL, '72', '4', NULL, '51408-3600', NULL, NULL, '2021-07-03 03:53:50', '2021-07-23 06:22:39', NULL),
(288, 711, 45569, 5, '075 Erdman Shores Suite 088', '065', '9', '6', NULL, '17091', NULL, '-70.475521', '2021-06-24 18:54:22', '2021-07-23 06:22:39', NULL),
(289, 72, 45485, 1, NULL, NULL, '98', '6', NULL, '36484', NULL, NULL, '2021-06-28 15:30:11', '2021-07-23 06:22:39', NULL),
(290, 686, 45528, 6, '59915 Elody Fork Apt. 872', '001', '97', '10', 'Ellisbury', '19259', NULL, NULL, '2021-07-07 00:09:20', '2021-07-23 06:22:39', NULL),
(291, 373, 45535, 4, '8436 Stark Walks', '6531', '6', '10', 'Lake Auroremouth', '43248-9988', '11.420066', NULL, '2021-07-14 23:14:09', '2021-07-23 06:22:39', NULL),
(292, 5, 45470, 5, NULL, '34459', '13', '1', NULL, '76607', NULL, NULL, '2021-07-13 11:25:39', '2021-07-23 06:22:39', NULL),
(293, 352, 45547, 2, '17992 <NAME>', '53103', '52', '5', 'Lake Ezekielville', '25067', NULL, '157.079184', '2021-07-19 14:54:52', '2021-07-23 06:22:39', NULL),
(294, 614, 45527, 6, '47946 Arlie Land Suite 957', NULL, '82', '7', NULL, '90482-3039', '-59.471655', '143.271667', '2021-07-05 05:01:30', '2021-07-23 06:22:39', NULL),
(295, 885, 45495, 1, NULL, NULL, '24', '3', NULL, '74088-8421', '28.181870', NULL, '2021-07-01 00:34:39', '2021-07-23 06:22:39', NULL),
(296, 852, 45526, 6, NULL, '277', '74', '7', NULL, '11336-1330', NULL, '138.016034', '2021-06-30 02:27:02', '2021-07-23 06:22:39', NULL),
(297, 564, 45490, 4, '059 Wiza Lock Apt. 331', NULL, '39', '2', 'Mayerchester', '75767', '10.683715', '-11.489765', '2021-07-21 04:10:14', '2021-07-23 06:22:39', NULL),
(298, 858, 45467, 4, NULL, '696', '56', '9', NULL, '96059-8694', '-45.545171', '173.780091', '2021-07-04 05:33:27', '2021-07-23 06:22:39', NULL),
(299, 809, 45557, 1, '055 Botsford Drives', '15967', '70', '9', 'Robeltown', '07475-0329', NULL, NULL, '2021-07-15 15:15:13', '2021-07-23 06:22:39', NULL),
(300, 1020, 45518, 3, NULL, '501', '86', '7', 'Maggieville', '22185-7330', '-59.780900', '69.749675', '2021-07-13 18:45:48', '2021-07-23 06:22:39', NULL);
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `domisili`
--
ALTER TABLE `domisili`
ADD PRIMARY KEY (`id_domisili`),
ADD KEY `fk_domisili_desa1_idx` (`desa_id_desa`),
ADD KEY `fk_domisili_tempat_tinggal1_idx` (`tempat_tinggal_id_tempat_tinggal`),
ADD KEY `fk_domisili_siswa1_idx` (`siswa_id_siswa`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `domisili`
--
ALTER TABLE `domisili`
MODIFY `id_domisili` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=301;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `domisili`
--
ALTER TABLE `domisili`
ADD CONSTRAINT `fk_domisili_desa1` FOREIGN KEY (`desa_id_desa`) REFERENCES `desa` (`id_desa`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_domisili_siswa1` FOREIGN KEY (`siswa_id_siswa`) REFERENCES `siswa` (`id_siswa`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_domisili_tempat_tinggal1` FOREIGN KEY (`tempat_tinggal_id_tempat_tinggal`) REFERENCES `tempat_tinggal` (`id_tempat_tinggal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>Justarone/bmstu-db<filename>lab_02/query16.sql
-- Однострочная инструкция INSERT, выполняющая вставку в таблицу одной строки значений
-- Создадим новую команду (самая малая таблица, проще будет проверить и в дальнейшем оттуда убрать)
INSERT INTO team_info (team_id, franshizeId, shortName, teamName, abbreviation)
VALUES (101, 101, 'Moscow', 'Spartak', 'SPA');
|
<gh_stars>10-100
alter table lc_entry_value modify column label_source ENUM('AI_PRE_LABEL','API_UPLOAD','USER','API_KEY') default 'USER' not null; |
<reponame>jessica-severin/ZENBU_2.11.1<gh_stars>0
-- MySQL dump 10.9
--
-- Host: fantom40.gsc.riken.jp Database: eeDB_fantom4_may08
-- ------------------------------------------------------
-- Server version 4.1.20-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `assembly`
--
CREATE TABLE `assembly` (
`assembly_id` int(11) NOT NULL auto_increment,
`taxon_id` int(11) default NULL,
`assembly_name` varchar(64) default NULL,
`ncbi_version` varchar(32) default NULL,
`ncbi_assembly_acc` varchar(128) default NULL,
`ucsc_name` varchar(32) default NULL,
`release_date` date default NULL,
`taxon_name` varchar(255) default NULL,
`sequence_loaded` char(1) NOT NULL default '',
PRIMARY KEY (`assembly_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `chrom`
--
CREATE TABLE `chrom` (
`chrom_id` int(11) NOT NULL auto_increment,
`chrom_name` char(64) default NULL,
`assembly_id` int(11) default NULL,
`chrom_length` int(11) default NULL,
`chrom_type` char(64) default NULL,
`ncbi_chrom_name` char(64) default NULL,
`ncbi_chrom_acc` char(64) default NULL,
`refseq_chrom_acc` char(64) default NULL,
`chrom_name_alt1` char(64) default NULL,
`description` char(255) default NULL,
PRIMARY KEY (`chrom_id`),
UNIQUE KEY `uqname` (`chrom_name`,`assembly_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED;
--
-- Table structure for table `chrom_chunk`
--
CREATE TABLE `chrom_chunk` (
`chrom_chunk_id` int(11) NOT NULL auto_increment,
`chrom_id` int(11) default NULL,
`chrom_start` int(10) unsigned default NULL,
`chrom_end` int(10) unsigned default NULL,
`chunk_len` int(11) default NULL,
PRIMARY KEY (`chrom_chunk_id`),
UNIQUE KEY `uniq_chunk` (`chrom_id`,`chrom_start`,`chrom_end`),
KEY `chrom_name_id` (`chrom_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `chrom_chunk_seq`
--
CREATE TABLE `chrom_chunk_seq` (
`chrom_chunk_id` int(11) NOT NULL default '0',
`length` int(10) NOT NULL default '0',
`sequence` longtext NOT NULL,
PRIMARY KEY (`chrom_chunk_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=10000000 AVG_ROW_LENGTH=19000;
--
-- Table structure for table `experiment`
--
CREATE TABLE `experiment` (
`experiment_id` int(11) NOT NULL auto_increment,
`platform` varchar(255) NOT NULL default '',
`exp_accession` varchar(255) NOT NULL default '',
`display_name` varchar(255) NOT NULL default '',
`series_name` varchar(255) NOT NULL default '',
`series_point` float NOT NULL default '0',
`is_active` char(1) NOT NULL default '',
`is_visible` char(1) NOT NULL default '',
`owner_openid` varchar(255) NOT NULL default '',
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`experiment_id`),
UNIQUE KEY `experiment_unq_name` USING BTREE (`exp_accession`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `experiment_2_metadata`
--
CREATE TABLE `experiment_2_metadata` (
`experiment_id` int(11) default NULL,
`metadata_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `experiment_2_metadata_uq` USING BTREE (`experiment_id`,`metadata_id`),
KEY `experiment_id` USING BTREE (`experiment_id`),
KEY `metadata_id` USING BTREE (`metadata_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `experiment_2_symbol`
--
CREATE TABLE `experiment_2_symbol` (
`experiment_id` int(11) default NULL,
`symbol_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `experiment_2_symbol_uq` USING BTREE (`experiment_id`,`symbol_id`),
KEY `symbol_id` (`symbol_id`),
KEY `experiment_id` USING BTREE (`experiment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `experiment_2_datatype`
--
CREATE TABLE `experiment_2_datatype` (
`experiment_id` int(11) default NULL,
`datatype_id` int(11) default NULL,
UNIQUE KEY `experiment_2_datatype_uq` USING BTREE (`experiment_id`,`datatype_id`),
KEY `experiment_id` (`experiment_id`),
KEY `datatype_id` (`datatype_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `feature`
--
CREATE TABLE `feature` (
`feature_id` int(11) NOT NULL auto_increment,
`chrom_id` int(11) default NULL,
`feature_source_id` int(11) NOT NULL default '0',
`chrom_start` int(11) default NULL,
`chrom_end` int(11) default NULL,
`strand` char(1) default NULL,
`primary_name` char(64) default NULL,
`significance` double default '1',
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`feature_id`),
KEY `chrom_id` (`chrom_id`),
KEY `feature_source_id` (`feature_source_id`),
KEY `primary_name` (`primary_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `feature_2_chunk`
--
CREATE TABLE `feature_2_chunk` (
`feature_id` int(11) default NULL,
`chrom_chunk_id` int(11) default NULL,
KEY `feature_id` (`feature_id`),
KEY `chrom_chunk_id` (`chrom_chunk_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `feature_2_metadata`
--
CREATE TABLE `feature_2_metadata` (
`feature_id` int(11) default NULL,
`metadata_id` int(11) default NULL,
KEY `feature_id` (`feature_id`),
KEY `metadata_id` USING BTREE (`metadata_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `feature_2_symbol`
--
CREATE TABLE `feature_2_symbol` (
`feature_id` int(11) default NULL,
`symbol_id` int(11) default NULL,
KEY `feature_id` (`feature_id`),
KEY `symbol_id` (`symbol_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `expression`
--
CREATE TABLE `expression` (
`expression_id` int(11) NOT NULL auto_increment,
`experiment_id` int(11) NOT NULL default '0',
`feature_id` int(11) NOT NULL default '0',
`datatype_id` int(11) default NULL,
`value` double default NULL,
`sig_error` double default NULL,
PRIMARY KEY (`expression_id`),
KEY `feature_id` (`feature_id`),
KEY `experiment_id` (`experiment_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `expression_datatype`
--
CREATE TABLE `expression_datatype` (
`datatype_id` int(11) NOT NULL auto_increment,
`datatype` char(64) NOT NULL default '',
PRIMARY KEY (`datatype_id`),
UNIQUE KEY `datatype_unq` (`datatype`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `edge`
--
CREATE TABLE `edge` (
`edge_id` int(11) NOT NULL auto_increment,
`edge_source_id` int(11) default NULL,
`feature1_id` int(11) default NULL,
`feature2_id` int(11) default NULL,
`direction` char(1) default NULL,
`sub_type` char(16) default NULL,
`weight` float default NULL,
PRIMARY KEY (`edge_id`),
KEY `feature1_id` (`feature1_id`),
KEY `feature2_id` (`feature2_id`),
KEY `edge_source_id` (`edge_source_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `edge_2_metadata`
--
CREATE TABLE `edge_2_metadata` (
`edge_id` int(11) default NULL,
`metadata_id` int(11) default NULL,
KEY `edge_id` USING BTREE (`edge_id`),
KEY `metadata_id` USING BTREE (`metadata_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `edge_2_symbol`
--
CREATE TABLE `edge_2_symbol` (
`edge_id` int(11) default NULL,
`symbol_id` int(11) default NULL,
KEY `symbol_id` USING BTREE (`symbol_id`),
KEY `edge_id` USING BTREE (`edge_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `edge_source`
--
CREATE TABLE `edge_source` (
`edge_source_id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`display_name` varchar(255) default NULL,
`category` varchar(255) default NULL,
`classification` varchar(64) default NULL,
`is_active` char(1) NOT NULL default 'y',
`is_visible` char(1) NOT NULL default 'y',
`create_date` date default NULL,
`f1_ext_peer` varchar(255) default NULL,
`f2_ext_peer` varchar(255) default NULL,
`owner_openid` varchar(255) NOT NULL default '',
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`edge_source_id`),
UNIQUE KEY `unq_name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `edge_source_2_metadata`
--
CREATE TABLE `edge_source_2_metadata` (
`edge_source_id` int(11) default NULL,
`metadata_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `edgesrc_2_metadata_unq` USING BTREE (`edge_source_id`,`metadata_id`),
KEY `edge_source_id` (`edge_source_id`),
KEY `metadata_id` (`metadata_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `edge_source_2_symbol`
--
CREATE TABLE `edge_source_2_symbol` (
`edge_source_id` int(11) default NULL,
`symbol_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `edgesrc2sym_unq` USING BTREE (`edge_source_id`,`symbol_id`),
KEY `edge_source_id` (`edge_source_id`),
KEY `symbol_id` (`symbol_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `feature_source`
--
CREATE TABLE `feature_source` (
`feature_source_id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`category` varchar(255) default NULL,
`is_active` char(1) NOT NULL default '',
`is_visible` char(1) NOT NULL default '',
`import_source` varchar(255) default NULL,
`import_date` date default NULL,
`feature_count` int(11) default NULL,
`owner_openid` varchar(255) NOT NULL default '',
`last_update` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`feature_source_id`),
UNIQUE KEY `fsrc_unq` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `feature_source_2_metadata`
--
CREATE TABLE `feature_source_2_metadata` (
`feature_source_id` int(11) default NULL,
`metadata_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `fsrc2mdata_unq` (`metadata_id`,`feature_source_id`),
KEY `feature_source_id` (`feature_source_id`),
KEY `metadata_id` (`metadata_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `feature_source_2_symbol`
--
CREATE TABLE `feature_source_2_symbol` (
`feature_source_id` int(11) default NULL,
`symbol_id` int(11) default NULL,
`added_by_user_id` int(11) default NULL,
`added_on` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
`deleted_on` date default NULL,
UNIQUE KEY `fsrc2sym_unq` (`symbol_id`,`feature_source_id`),
KEY `feature_source_id` (`feature_source_id`),
KEY `symbol_id` (`symbol_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `feature_source_2_datatype`
--
CREATE TABLE `feature_source_2_datatype` (
`feature_source_id` int(11) default NULL,
`datatype_id` int(11) default NULL,
UNIQUE KEY `feature_source_2_datatype_uq` USING BTREE (`feature_source_id`,`datatype_id`),
KEY `feature_source_id` (`feature_source_id`),
KEY `datatype_id` (`datatype_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Table structure for table `metadata`
--
CREATE TABLE `metadata` (
`metadata_id` int(11) NOT NULL auto_increment,
`data_type` varchar(255) character set utf8 collate utf8_bin default NULL,
`data` mediumtext character set utf8 collate utf8_bin,
PRIMARY KEY USING BTREE (`metadata_id`),
KEY `data_prefix` (`data`(256)),
KEY `type` (`data_type`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 MIN_ROWS=10000000;
--
-- Table structure for table `peer`
--
CREATE TABLE `peer` (
`uuid` varchar(255) NOT NULL default '',
`alias` varchar(255) NOT NULL default '',
`is_self` tinyint(1) default '0',
`db_url` varchar(255) default NULL,
`web_url` varchar(255) default NULL,
PRIMARY KEY (`uuid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
--
-- Table structure for table `symbol`
--
CREATE TABLE `symbol` (
`symbol_id` int(11) NOT NULL auto_increment,
`sym_type` char(32) default NULL,
`sym_value` char(128) default NULL,
PRIMARY KEY (`symbol_id`),
UNIQUE KEY `symbol_unq` (`sym_type`,`sym_value`),
KEY `sym_type` (`sym_type`),
KEY `sym_value` (`sym_value`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=10000000;
--
-- Table structure for table `taxon`
--
CREATE TABLE `taxon` (
`taxon_id` int(10) unsigned NOT NULL default '0',
`genus` varchar(50) default NULL,
`species` varchar(50) default NULL,
`sub_species` varchar(50) default NULL,
`common_name` varchar(100) default NULL,
`classification` mediumtext,
PRIMARY KEY (`taxon_id`),
KEY `genus` (`genus`,`species`),
KEY `common_name` (`common_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
optimize table assembly,chrom,chrom_chunk,chrom_chunk_seq,edge,edge_2_metadata,edge_2_symbol,
edge_source,edge_source_2_metadata,edge_source_2_symbol,
experiment,experiment_2_metadata,experiment_2_symbol,expression,expression_datatype,
feature,feature_2_chunk,feature_2_metadata,feature_2_symbol,
feature_source,feature_source_2_metadata,feature_source_2_symbol,
metadata,peer,symbol,taxon;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<gh_stars>0
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.10
-- Dumped by pg_dump version 9.5.9
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: postgis; Type: SCHEMA; Schema: -; Owner: lifemap
--
CREATE SCHEMA postgis;
ALTER SCHEMA postgis OWNER TO lifemap;
--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
--
-- Name: postgis; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA postgis;
--
-- Name: EXTENSION postgis; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION postgis IS 'PostGIS geometry, geography, and raster spatial types and functions';
SET search_path = public, pg_catalog;
--
-- Name: change_user_role_on_update_mobile_phone(); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION change_user_role_on_update_mobile_phone() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
DEFAULT_ROLE_ID integer = 4;
TRUSTED_USER_ROLE_ID integer = 5;
BEGIN
IF (TG_OP = 'UPDATE') THEN
-- if user role equals DEFAULT_ROLE_ID
IF ((select role_id from lm_user_role where user_id = old.id and old.status = 'A' limit 1) = DEFAULT_ROLE_ID) THEN
-- if user send contacts, change role to TRUSTED_USER_ROLE
IF (old.phone_mobile IS NULL and new.phone_mobile IS NOT NULL) THEN
UPDATE lm_user_role
SET status = 'D',
exp_date = now()
WHERE user_id = old.id
and role_id = DEFAULT_ROLE_ID
and status = 'A';
INSERT INTO lm_user_role (user_id, role_id) values (NEW.id, TRUSTED_USER_ROLE_ID);
END IF;
END IF;
RETURN NEW;
END IF;
RETURN NULL; -- возвращаемое значение для триггера AFTER игнорируется
END;
$$;
ALTER FUNCTION public.change_user_role_on_update_mobile_phone() OWNER TO lifemap;
--
-- Name: create_user_role_on_user_insert(); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION create_user_role_on_user_insert() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
DEFAULT_ROLE_ID integer = 4;
TRUSTED_USER_ROLE_ID integer = 5;
BEGIN
-- Create default user role when user created
IF (TG_OP = 'INSERT') THEN
IF (new.phone_mobile IS NULL) THEN
INSERT INTO lm_user_role (user_id, role_id) values (NEW.id, DEFAULT_ROLE_ID);
ELSEIF (new.phone_mobile IS NOT NULL AND LENGTH(new.phone_mobile) >= 6) THEN
INSERT INTO lm_user_role (user_id, role_id) values (NEW.id, TRUSTED_USER_ROLE_ID);
END IF;
RETURN NEW;
ELSIF (TG_OP = 'UPDATE') THEN
-- if user role equals DEFAULT_ROLE_ID
IF ((select role_id from lm_user_role where user_id = old.id and old.status = 'A' limit 1) = DEFAULT_ROLE_ID) THEN
INSERT INTO lm_user_role (user_id, role_id) values (NEW.id, TRUSTED_USER_ROLE_ID);
-- if user send contacts, change role to TRUSTED_USER_ROLE
IF (old.phone_mobile IS NULL and new.phone_mobile IS NOT NULL) THEN
UPDATE lm_user_role
SET status = 'D',
exp_date = now()
WHERE user_id = old.id
and role_id = DEFAULT_ROLE_ID
and status = 'A';
INSERT INTO lm_user_role (user_id, role_id) values (NEW.id, TRUSTED_USER_ROLE_ID);
END IF;
ELSE
END IF;
RETURN NEW;
END IF;
RETURN NULL; -- возвращаемое значение для триггера AFTER игнорируется
END;
$$;
ALTER FUNCTION public.create_user_role_on_user_insert() OWNER TO lifemap;
--
-- Name: get_dashboard_data_events(bigint, bigint, bigint, timestamp without time zone, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_dashboard_data_events(icategory_id bigint, iregion_id bigint, iuser_id bigint, istart_date timestamp without time zone, iend_date timestamp without time zone) RETURNS TABLE(events_count_total integer, events_count_total_telegram integer, events_count_relevant integer, events_count_all integer, events_count_own integer, events_count_moderating integer)
LANGUAGE plpgsql
AS $$
BEGIN
-- Возвращает данные по событиям для admin Dashboard
RETURN QUERY
-- explain analyse
select count(e.id) ::integer events_count_total,
count(e.bot_event_id) ::integer events_count_total_telegram,
(SELECT count(e_relevant.id)::integer
from lm_event e_relevant
join lm_user u on e_relevant.user_id = u.id and u.status = 'A'
WHERE e_relevant.status = 'A'
and (e_relevant.category_id = icategory_id or icategory_id = 0)
and (e_relevant.start_date <= now() and e_relevant.end_date >= now())
and (e_relevant.is_moderated = true)) events_count_relevant,
(SELECT count(e_all.id)::integer
from lm_event e_all
WHERE e_all.status = 'A'
and (e_all.category_id = icategory_id or icategory_id = 0)
and (
(e_all.end_date >= istart_date and e_all.end_date <= iend_date) or (e_all.start_date >= istart_date and e_all.end_date <= iend_date) or
(e_all.start_date >= istart_date and e_all.start_date <= iend_date) or (e_all.start_date < istart_date and e_all.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date
)
) events_count_all,
(SELECT count(e_own.id)::integer
from lm_event e_own
WHERE e_own.status = 'A'
and (e_own.user_id = iuser_id or iuser_id = 0)
and (e_own.category_id = icategory_id or icategory_id = 0)
) events_count_own,
(SELECT count(e_moderating.id)::integer
from lm_event e_moderating
WHERE e_moderating.status = 'A'
and (e_moderating.user_id = iuser_id or iuser_id = 0)
and (e_moderating.category_id = icategory_id or icategory_id = 0)
and (is_moderated is null)
and (
(e_moderating.end_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.start_date <= iend_date) or
(e_moderating.start_date < istart_date and e_moderating.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date
)
) events_count_moderating
from lm_event e
where status = 'A';
END;
$$;
ALTER FUNCTION public.get_dashboard_data_events(icategory_id bigint, iregion_id bigint, iuser_id bigint, istart_date timestamp without time zone, iend_date timestamp without time zone) OWNER TO lifemap;
--
-- Name: get_dashboard_data_events_by_category_filter(timestamp without time zone, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_dashboard_data_events_by_category_filter(istart_date timestamp without time zone, iend_date timestamp without time zone) RETURNS TABLE(category_id bigint, category_name text, relevant_events_count integer, all_events_count integer, moderating_events_count integer)
LANGUAGE plpgsql
AS $$
BEGIN
-- Возвращает данные по количеству событий в разрезе категорий событий
RETURN QUERY
-- explain analyse
select ctgr.id category_id,
ctgr.name category_name,
(SELECT count(e_relevant.id)::integer
from lm_event e_relevant
join lm_user u on e_relevant.user_id = u.id and u.status = 'A'
WHERE e_relevant.status = 'A'
and (e_relevant.category_id = ctgr.id or ctgr.id = 0)
and (e_relevant.start_date <= now() and e_relevant.end_date >= now())
and (e_relevant.is_moderated = true)) relevant_events_count,
(SELECT count(e_all.id)::integer
from lm_event e_all
WHERE e_all.status = 'A'
and (e_all.category_id = ctgr.id or ctgr.id = 0)
and ((e_all.end_date >= istart_date and e_all.end_date <= iend_date) or (e_all.start_date >= istart_date and e_all.end_date <= iend_date) or
(e_all.start_date >= istart_date and e_all.start_date <= iend_date) or (e_all.start_date < istart_date and e_all.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
) all_events_count,
(SELECT count(e_moderating.id)::integer
from lm_event e_moderating
WHERE e_moderating.status = 'A'
and (e_moderating.category_id = ctgr.id or ctgr.id = 0)
and (is_moderated is null)
and (
(e_moderating.end_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.start_date <= iend_date) or
(e_moderating.start_date < istart_date and e_moderating.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date
)
) moderating_events_count
from lm_event_category ctgr
where ctgr.status = 'A'
order by id;
END;
$$;
ALTER FUNCTION public.get_dashboard_data_events_by_category_filter(istart_date timestamp without time zone, iend_date timestamp without time zone) OWNER TO lifemap;
--
-- Name: get_dashboard_data_events_by_category_region(timestamp without time zone, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_dashboard_data_events_by_category_region(istart_date timestamp without time zone, iend_date timestamp without time zone) RETURNS TABLE(category_id bigint, category_name text, unknown_region_events_count integer, tashkent_events_count integer, andijan_region_events_count integer, bukhara_region_events_count integer, jizzakh_region_events_count integer, qashqadaryo_region_events_count integer, navoiy_region_events_count integer, namangan_region_events_count integer, samarqand_region_events_count integer, surxondaryo_region_events_count integer, sirdaryo_region_events_count integer, tashkent_region_events_count integer, fergana_region_events_count integer, xorazm_region_events_count integer, karakalpakstan_events_count integer)
LANGUAGE plpgsql
AS $$
DECLARE
REGION_UNKNOWN integer = 1;
REGION_TASHKENT integer = 2;
REGION_ANDIJAN integer = 3;
REGION_BUKHARA integer = 4;
REGION_JIZZAKH integer = 5;
REGION_QASHQADARYO integer = 6;
REGION_NAVOIY integer = 7;
REGION_NAMANGAN integer = 8;
REGION_SAMARKAND integer = 9;
REGION_SURHONDARYO integer = 10;
REGION_SIRDARYO integer = 11;
REGION_TAHKENT integer = 12;
REGION_FERGANA integer = 13;
REGION_XORAZM integer = 14;
REGION_KARAKALPAKSTAN integer = 15;
BEGIN
-- Возвращает данные по количеству событий в разрезе категорий событий и регионов
RETURN QUERY
-- explain analyse
select ctgr.id category_id,
ctgr.name category_name,
(SELECT count(unknown_region_events.id)::integer
from lm_event unknown_region_events
WHERE unknown_region_events.status = 'A'
and (unknown_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((unknown_region_events.end_date >= istart_date and unknown_region_events.end_date <= iend_date) or
(unknown_region_events.start_date >= istart_date and unknown_region_events.end_date <= iend_date) or
(unknown_region_events.start_date >= istart_date and unknown_region_events.start_date <= iend_date) or
(unknown_region_events.start_date < istart_date and unknown_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (unknown_region_events.region_id = REGION_UNKNOWN)) unknown_region_events,
(SELECT count(tashkent_events.id)::integer
from lm_event tashkent_events
WHERE tashkent_events.status = 'A'
and (tashkent_events.category_id = ctgr.id or ctgr.id = 0)
and ((tashkent_events.end_date >= istart_date and tashkent_events.end_date <= iend_date) or
(tashkent_events.start_date >= istart_date and tashkent_events.end_date <= iend_date) or
(tashkent_events.start_date >= istart_date and tashkent_events.start_date <= iend_date) or
(tashkent_events.start_date < istart_date and tashkent_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (tashkent_events.region_id = REGION_TASHKENT)) tashkent_events,
(SELECT count(andijan_region_events.id)::integer
from lm_event andijan_region_events
WHERE andijan_region_events.status = 'A'
and (andijan_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((andijan_region_events.end_date >= istart_date and andijan_region_events.end_date <= iend_date) or
(andijan_region_events.start_date >= istart_date and andijan_region_events.end_date <= iend_date) or
(andijan_region_events.start_date >= istart_date and andijan_region_events.start_date <= iend_date) or
(andijan_region_events.start_date < istart_date and andijan_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (andijan_region_events.region_id = REGION_ANDIJAN)) andijan_region_events,
(SELECT count(bukhara_region_events.id)::integer
from lm_event bukhara_region_events
WHERE bukhara_region_events.status = 'A'
and (bukhara_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((bukhara_region_events.end_date >= istart_date and bukhara_region_events.end_date <= iend_date) or
(bukhara_region_events.start_date >= istart_date and bukhara_region_events.end_date <= iend_date) or
(bukhara_region_events.start_date >= istart_date and bukhara_region_events.start_date <= iend_date) or
(bukhara_region_events.start_date < istart_date and bukhara_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (bukhara_region_events.region_id = REGION_BUKHARA)) bukhara_region_events,
(SELECT count(jizzakh_region_events.id)::integer
from lm_event jizzakh_region_events
WHERE jizzakh_region_events.status = 'A'
and (jizzakh_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((jizzakh_region_events.end_date >= istart_date and jizzakh_region_events.end_date <= iend_date) or
(jizzakh_region_events.start_date >= istart_date and jizzakh_region_events.end_date <= iend_date) or
(jizzakh_region_events.start_date >= istart_date and jizzakh_region_events.start_date <= iend_date) or
(jizzakh_region_events.start_date < istart_date and jizzakh_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (jizzakh_region_events.region_id = REGION_JIZZAKH)) jizzakh_region_events,
(SELECT count(qashqadaryo_region_events.id)::integer
from lm_event qashqadaryo_region_events
WHERE qashqadaryo_region_events.status = 'A'
and (qashqadaryo_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((qashqadaryo_region_events.end_date >= istart_date and qashqadaryo_region_events.end_date <= iend_date) or
(qashqadaryo_region_events.start_date >= istart_date and qashqadaryo_region_events.end_date <= iend_date) or
(qashqadaryo_region_events.start_date >= istart_date and qashqadaryo_region_events.start_date <= iend_date) or
(qashqadaryo_region_events.start_date < istart_date and qashqadaryo_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (qashqadaryo_region_events.region_id = REGION_QASHQADARYO)) qashqadaryo_region_events,
(SELECT count(navoiy_region_events.id)::integer
from lm_event navoiy_region_events
WHERE navoiy_region_events.status = 'A'
and (navoiy_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((navoiy_region_events.end_date >= istart_date and navoiy_region_events.end_date <= iend_date) or
(navoiy_region_events.start_date >= istart_date and navoiy_region_events.end_date <= iend_date) or
(navoiy_region_events.start_date >= istart_date and navoiy_region_events.start_date <= iend_date) or
(navoiy_region_events.start_date < istart_date and navoiy_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (navoiy_region_events.region_id = REGION_NAVOIY)) navoiy_region_events,
(SELECT count(namangan_region_events.id)::integer
from lm_event namangan_region_events
WHERE namangan_region_events.status = 'A'
and (namangan_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((namangan_region_events.end_date >= istart_date and namangan_region_events.end_date <= iend_date) or
(namangan_region_events.start_date >= istart_date and namangan_region_events.end_date <= iend_date) or
(namangan_region_events.start_date >= istart_date and namangan_region_events.start_date <= iend_date) or
(namangan_region_events.start_date < istart_date and namangan_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (namangan_region_events.region_id = REGION_NAMANGAN)) namangan_region_events,
(SELECT count(samarqand_region_events.id)::integer
from lm_event samarqand_region_events
WHERE samarqand_region_events.status = 'A'
and (samarqand_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((samarqand_region_events.end_date >= istart_date and samarqand_region_events.end_date <= iend_date) or
(samarqand_region_events.start_date >= istart_date and samarqand_region_events.end_date <= iend_date) or
(samarqand_region_events.start_date >= istart_date and samarqand_region_events.start_date <= iend_date) or
(samarqand_region_events.start_date < istart_date and samarqand_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (samarqand_region_events.region_id = REGION_SAMARKAND)) samarqand_region_events,
(SELECT count(surxondaryo_region_events.id)::integer
from lm_event surxondaryo_region_events
WHERE surxondaryo_region_events.status = 'A'
and (surxondaryo_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((surxondaryo_region_events.end_date >= istart_date and surxondaryo_region_events.end_date <= iend_date) or
(surxondaryo_region_events.start_date >= istart_date and surxondaryo_region_events.end_date <= iend_date) or
(surxondaryo_region_events.start_date >= istart_date and surxondaryo_region_events.start_date <= iend_date) or
(surxondaryo_region_events.start_date < istart_date and surxondaryo_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (surxondaryo_region_events.region_id = REGION_SURHONDARYO)) surxondaryo_region_events,
(SELECT count(sirdaryo_region_events.id)::integer
from lm_event sirdaryo_region_events
WHERE sirdaryo_region_events.status = 'A'
and (sirdaryo_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((sirdaryo_region_events.end_date >= istart_date and sirdaryo_region_events.end_date <= iend_date) or
(sirdaryo_region_events.start_date >= istart_date and sirdaryo_region_events.end_date <= iend_date) or
(sirdaryo_region_events.start_date >= istart_date and sirdaryo_region_events.start_date <= iend_date) or
(sirdaryo_region_events.start_date < istart_date and sirdaryo_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (sirdaryo_region_events.region_id = REGION_SIRDARYO)) sirdaryo_region_events,
(SELECT count(tashkent_region_events.id)::integer
from lm_event tashkent_region_events
WHERE tashkent_region_events.status = 'A'
and (tashkent_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((tashkent_region_events.end_date >= istart_date and tashkent_region_events.end_date <= iend_date) or
(tashkent_region_events.start_date >= istart_date and tashkent_region_events.end_date <= iend_date) or
(tashkent_region_events.start_date >= istart_date and tashkent_region_events.start_date <= iend_date) or
(tashkent_region_events.start_date < istart_date and tashkent_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (tashkent_region_events.region_id = REGION_TAHKENT)) tashkent_region_events,
(SELECT count(fergana_region_events.id)::integer
from lm_event fergana_region_events
WHERE fergana_region_events.status = 'A'
and (fergana_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((fergana_region_events.end_date >= istart_date and fergana_region_events.end_date <= iend_date) or
(fergana_region_events.start_date >= istart_date and fergana_region_events.end_date <= iend_date) or
(fergana_region_events.start_date >= istart_date and fergana_region_events.start_date <= iend_date) or
(fergana_region_events.start_date < istart_date and fergana_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (fergana_region_events.region_id = REGION_FERGANA)) fergana_region_events,
(SELECT count(xorazm_region_events.id)::integer
from lm_event xorazm_region_events
WHERE xorazm_region_events.status = 'A'
and (xorazm_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((xorazm_region_events.end_date >= istart_date and xorazm_region_events.end_date <= iend_date) or
(xorazm_region_events.start_date >= istart_date and xorazm_region_events.end_date <= iend_date) or
(xorazm_region_events.start_date >= istart_date and xorazm_region_events.start_date <= iend_date) or
(xorazm_region_events.start_date < istart_date and xorazm_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (xorazm_region_events.region_id = REGION_XORAZM)) xorazm_region_events,
(SELECT count(karakalpakstan_region_events.id)::integer
from lm_event karakalpakstan_region_events
WHERE karakalpakstan_region_events.status = 'A'
and (karakalpakstan_region_events.category_id = ctgr.id or ctgr.id = 0)
and ((karakalpakstan_region_events.end_date >= istart_date and karakalpakstan_region_events.end_date <= iend_date) or
(karakalpakstan_region_events.start_date >= istart_date and karakalpakstan_region_events.end_date <= iend_date) or
(karakalpakstan_region_events.start_date >= istart_date and karakalpakstan_region_events.start_date <= iend_date) or
(karakalpakstan_region_events.start_date < istart_date and karakalpakstan_region_events.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
and (karakalpakstan_region_events.region_id = REGION_KARAKALPAKSTAN)) karakalpakstan_region_events
from lm_event_category ctgr
where ctgr.status = 'A'
order by id;
END;
$$;
ALTER FUNCTION public.get_dashboard_data_events_by_category_region(istart_date timestamp without time zone, iend_date timestamp without time zone) OWNER TO lifemap;
--
-- Name: get_dashboard_data_events_by_region_filter(timestamp without time zone, timestamp without time zone); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_dashboard_data_events_by_region_filter(istart_date timestamp without time zone, iend_date timestamp without time zone) RETURNS TABLE(region_id bigint, region_name_en text, relevant_events_count integer, all_events_count integer, moderating_events_count integer)
LANGUAGE plpgsql
AS $$
BEGIN
-- Возвращает данные по количеству событий в разрезе регионов
RETURN QUERY
-- explain analyse
select rg.id region_id,
rg.name_en region_name_en,
(SELECT count(e_relevant.id)::integer
from lm_event e_relevant
join lm_user u on e_relevant.user_id = u.id and u.status = 'A'
WHERE e_relevant.status = 'A'
and (e_relevant.region_id = rg.id)
and (e_relevant.start_date <= now() and e_relevant.end_date >= now())
and (e_relevant.is_moderated = true)) relevant_events_count,
(SELECT count(e_all.id)::integer
from lm_event e_all
WHERE e_all.status = 'A'
and (e_all.region_id = rg.id or rg.id = 0)
and ((e_all.end_date >= istart_date and e_all.end_date <= iend_date) or (e_all.start_date >= istart_date and e_all.end_date <= iend_date) or
(e_all.start_date >= istart_date and e_all.start_date <= iend_date) or (e_all.start_date < istart_date and e_all.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date)
) all_events_count,
(SELECT count(e_moderating.id)::integer
from lm_event e_moderating
WHERE e_moderating.status = 'A'
and (e_moderating.region_id = rg.id)
and (is_moderated is null)
and (
(e_moderating.end_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.end_date <= iend_date) or
(e_moderating.start_date >= istart_date and e_moderating.start_date <= iend_date) or
(e_moderating.start_date < istart_date and e_moderating.end_date >= iend_date)
or CAST('1970-01-01' AS timestamp) = istart_date or CAST('1970-01-01' AS timestamp) = iend_date
)
) moderating_events_count
from lm_region rg
where rg.status = 'A'
order by id;
END;
$$;
ALTER FUNCTION public.get_dashboard_data_events_by_region_filter(istart_date timestamp without time zone, iend_date timestamp without time zone) OWNER TO lifemap;
--
-- Name: get_dashboard_data_users(); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_dashboard_data_users() RETURNS TABLE(users_count_total integer, users_count_role_admin integer, users_count_role_moderator integer, users_count_role_user integer, users_count_role_trusted_user integer)
LANGUAGE plpgsql
AS $$
DECLARE
ROLE_ROOT BIGINT = 1;
ROLE_ADMIN BIGINT = 2;
ROLE_MODERATOR BIGINT = 3;
ROLE_USER BIGINT = 4;
ROLE_TRUSTED_USER BIGINT = 5;
BEGIN
-- Возвращает данные по пользователям для admin Dashboard
RETURN QUERY
-- explain analyse
select count(u.id)::integer users_count_total,
(SELECT count(u_admin.id)::integer
from lm_user u_admin
join lm_user_role ur on u_admin.id = ur.user_id and ur.status = 'A'
WHERE u_admin.status = 'A'
and ur.role_id = ROLE_ADMIN
) users_count_role_admin,
(SELECT count(u_admin.id)::integer
from lm_user u_admin
join lm_user_role ur on u_admin.id = ur.user_id and ur.status = 'A'
WHERE u_admin.status = 'A'
and ur.role_id = ROLE_MODERATOR
) users_count_role_moderator,
(SELECT count(u_admin.id)::integer
from lm_user u_admin
join lm_user_role ur on u_admin.id = ur.user_id and ur.status = 'A'
WHERE u_admin.status = 'A'
and ur.role_id = ROLE_USER
) users_count_role_user,
(SELECT count(u_admin.id)::integer
from lm_user u_admin
join lm_user_role ur on u_admin.id = ur.user_id and ur.status = 'A'
WHERE u_admin.status = 'A'
and ur.role_id = ROLE_TRUSTED_USER
) users_count_role_trusted_user
from lm_user u
join lm_user_role ur on u.id = ur.user_id and ur.status = 'A'
where u.status = 'A'
and ur.role_id != ROLE_ROOT;
END;
$$;
ALTER FUNCTION public.get_dashboard_data_users() OWNER TO lifemap;
--
-- Name: get_region_by_location(double precision, double precision); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION get_region_by_location(ilongitude double precision, ilatitude double precision) RETURNS bigint
LANGUAGE plpgsql
AS $$
DECLARE
p_region RECORD;
is_in_region boolean;
BEGIN
FOR p_region IN
select rg.id, rg.name_en, rg.geom
from lm_region rg
where geom is not null
and country_id = 2
and status = 'A'
LOOP
raise INFO 'rg id: %', p_region.id;
raise INFO 'rg name: %', p_region.name_en;
select postgis.ST_Within(
postgis.ST_GeomFromText('POINT(' || ilongitude || ' ' || ilatitude || ')'),
p_region.geom)
into is_in_region;
raise INFO 'is_in_region: %', is_in_region;
if is_in_region = true then
RETURN p_region.id ;
else
raise INFO 'check next region with coordinates';
end if;
END LOOP;
RETURN 0;
END;
$$;
ALTER FUNCTION public.get_region_by_location(ilongitude double precision, ilatitude double precision) OWNER TO lifemap;
--
-- Name: save_event_action(); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION save_event_action() RETURNS trigger
LANGUAGE plpgsql
AS $$
DECLARE
UPDATE_EVENT_USER bigint = 1;
UPDATE_EVENT_CATEGORY bigint = 2;
UPDATE_EVENT_ADDRESS bigint = 3;
UPDATE_EVENT_GEOJSON bigint = 4;
UPDATE_EVENT_NAME bigint = 5;
UPDATE_EVENT_DESCRIPTION bigint = 6;
UPDATE_EVENT_START_DATE bigint = 7;
UPDATE_EVENT_END_DATE bigint = 8;
UPDATE_EVENT_IS_MODERATED bigint = 9;
BEGIN
IF (TG_OP = 'UPDATE') THEN
IF (new.action_user_id is null) THEN
RETURN NEW;
END IF;
-- update event user
IF (old.user_id != new.user_id) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.user_id, NEW.user_id, UPDATE_EVENT_USER);
END IF;
-- update event category
IF (old.category_id != new.category_id) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.category_id, NEW.category_id, UPDATE_EVENT_CATEGORY);
END IF;
-- update event address
IF (old.address != new.address) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.address, NEW.address, UPDATE_EVENT_ADDRESS);
END IF;
-- update event geojson
IF (old.geojson::json::text != new.geojson::json::text) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.geojson, NEW.geojson, UPDATE_EVENT_GEOJSON);
END IF;
-- update event name
IF (old.name != new.name) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.name, NEW.name, UPDATE_EVENT_NAME);
END IF;
-- update event description
IF (old.description != new.description or old.description is null and new.description is not null) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.description, NEW.description, UPDATE_EVENT_DESCRIPTION);
END IF;
-- update event start date
IF (old.start_date != new.start_date) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.start_date, NEW.start_date, UPDATE_EVENT_START_DATE);
END IF;
-- update event end date
IF (old.end_date != new.end_date) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.end_date, NEW.end_date, UPDATE_EVENT_END_DATE);
END IF;
-- update event is moderated
IF ((old.is_moderated != new.is_moderated) or (old.is_moderated is null and new.is_moderated is not null)) THEN
INSERT INTO lm_event_action (event_id, user_id, previous_value, current_value, action_type_id)
values (NEW.id, NEW.action_user_id, old.is_moderated, NEW.is_moderated, UPDATE_EVENT_IS_MODERATED);
END IF;
RETURN NEW;
END IF;
RETURN NULL; -- возвращаемое значение для триггера AFTER игнорируется
END;
$$;
ALTER FUNCTION public.save_event_action() OWNER TO lifemap;
--
-- Name: to_time_tashkent(timestamp with time zone); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION to_time_tashkent(datetime timestamp with time zone) RETURNS timestamp without time zone
LANGUAGE plpgsql IMMUTABLE
AS $$
BEGIN
RETURN dateTime AT TIME ZONE 'Asia/Tashkent';
END;
$$;
ALTER FUNCTION public.to_time_tashkent(datetime timestamp with time zone) OWNER TO postgres;
--
-- Name: to_time_utc(timestamp with time zone); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION to_time_utc(datetime timestamp with time zone) RETURNS timestamp without time zone
LANGUAGE plpgsql IMMUTABLE
AS $$
BEGIN
RETURN dateTime AT TIME ZONE 'UTC';
END;
$$;
ALTER FUNCTION public.to_time_utc(datetime timestamp with time zone) OWNER TO postgres;
--
-- Name: to_time_zone(timestamp without time zone, text); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION to_time_zone(datetime timestamp without time zone, timezone text) RETURNS timestamp without time zone
LANGUAGE plpgsql IMMUTABLE
AS $$
BEGIN
RETURN dateTime AT TIME ZONE timeZone;
END;
$$;
ALTER FUNCTION public.to_time_zone(datetime timestamp without time zone, timezone text) OWNER TO postgres;
--
-- Name: to_time_zone(timestamp with time zone, text); Type: FUNCTION; Schema: public; Owner: lifemap
--
CREATE FUNCTION to_time_zone(datetime timestamp with time zone, timezone text) RETURNS timestamp without time zone
LANGUAGE plpgsql IMMUTABLE
AS $$
BEGIN
RETURN dateTime AT TIME ZONE timeZone;
END;
$$;
ALTER FUNCTION public.to_time_zone(datetime timestamp with time zone, timezone text) OWNER TO lifemap;
--
-- Name: user_get_and_update(bigint, integer); Type: FUNCTION; Schema: public; Owner: uzgps
--
CREATE FUNCTION user_get_and_update(iext_user_id bigint, iauth_type integer) RETURNS TABLE(id bigint, role_id bigint, ext_user_id bigint, login text, first_name text, last_name text, auth_type_id integer, photo_url text, phone_mobile text, is_blocked boolean, region_id bigint)
LANGUAGE plpgsql
AS $$
DECLARE
p_current_date_block TIMESTAMP WITHOUT TIME ZONE;
-- p_user lm_user;
AUTH_TYPE_TELEGRAM BIGINT = 1;
BEGIN
/**
Updated 18.05.2020
*/
p_current_date_block = date_trunc('day', now());
CREATE TEMPORARY TABLE IF NOT EXISTS p_user
(
p_id bigint,
p_role_id bigint,
p_ext_user_id bigint,
p_login text,
p_first_name text,
p_last_name text,
p_auth_type_id integer,
p_photo_url text,
p_phone_mobile text,
p_is_blocked boolean,
p_region_id bigint
);
-- Get user by ext_user_id
insert into p_user
SELECT guser.id,
ur.role_id,
guser.ext_user_id,
guser.login,
guser.first_name,
guser.last_name,
guser.auth_type_id,
guser.photo_url,
guser.phone_mobile,
guser.is_blocked,
guser.region_id
FROM lm_user guser
inner join lm_user_role ur on guser.id = ur.user_id and ur.status = 'A'
WHERE guser.ext_user_id = iext_user_id
AND guser.auth_type_id = iauth_type
limit 1;
if found then
update lm_user u_user
set last_logged_in = now(),
mod_date = now()
WHERE u_user.ext_user_id = iext_user_id
AND u_user.auth_type_id = iauth_type;
else
end if;
return query select * from p_user;
drop table if exists p_user;
END
$$;
ALTER FUNCTION public.user_get_and_update(iext_user_id bigint, iauth_type integer) OWNER TO uzgps;
--
-- Name: user_get_or_create(bigint, integer); Type: FUNCTION; Schema: public; Owner: postgres
--
CREATE FUNCTION user_get_or_create(iext_user_id bigint, iauth_type integer) RETURNS TABLE(id bigint)
LANGUAGE plpgsql
AS $$
DECLARE
p_current_date_block TIMESTAMP WITHOUT TIME ZONE;
AUTH_TYPE_TELEGRAM BIGINT = 1;
BEGIN
/**
Updated 09.04.2020
*/
p_current_date_block = date_trunc('day', now());
CREATE TEMPORARY TABLE IF NOT EXISTS updated_gps_units
(
u_id bigint
);
-- Get user by ext_user_id
SELECT ext_user_id, login, first_name, last_name, auth_type_id, photo_url
FROM lm_user
WHERE lm_user.ext_user_id = iext_user_id
AND auth_type_id = iauth_type
limit 1;
if found then
else
end if;
return query select * from iext_user_id;
END
$$;
ALTER FUNCTION public.user_get_or_create(iext_user_id bigint, iauth_type integer) OWNER TO postgres;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: lm_auth_type; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_auth_type (
id bigint NOT NULL,
name text NOT NULL,
description text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_auth_type OWNER TO lifemap;
--
-- Name: lm_auth_type_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_auth_type_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_auth_type_id_seq OWNER TO lifemap;
--
-- Name: lm_auth_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_auth_type_id_seq OWNED BY lm_auth_type.id;
--
-- Name: lm_bot_event; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_bot_event (
id bigint NOT NULL,
user_id bigint NOT NULL,
ext_user_id bigint NOT NULL,
category_id bigint,
name text,
description text,
start_date timestamp with time zone,
end_date timestamp with time zone,
country_code text,
region text,
address text,
geojson json,
complete_date timestamp without time zone,
is_imported boolean,
imported_date timestamp without time zone,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_bot_event OWNER TO lifemap;
--
-- Name: lm_bot_event_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_bot_event_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_bot_event_id_seq OWNER TO lifemap;
--
-- Name: lm_bot_event_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_bot_event_id_seq OWNED BY lm_bot_event.id;
--
-- Name: lm_bot_user_option; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_bot_user_option (
user_id bigint NOT NULL,
lang text,
is_start_text_shown boolean DEFAULT false,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_bot_user_option OWNER TO lifemap;
--
-- Name: lm_bot_user_state; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_bot_user_state (
user_id bigint,
chat_id bigint,
state integer DEFAULT 0 NOT NULL,
lang text DEFAULT 'en'::text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_bot_user_state OWNER TO lifemap;
--
-- Name: lm_country; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_country (
id bigint NOT NULL,
name text NOT NULL,
name_en text,
name_ru text,
name_uz text,
description text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_country OWNER TO lifemap;
--
-- Name: lm_country_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_country_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_country_id_seq OWNER TO lifemap;
--
-- Name: lm_country_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_country_id_seq OWNED BY lm_country.id;
--
-- Name: lm_event; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_event (
id bigint NOT NULL,
user_id bigint NOT NULL,
category_id bigint NOT NULL,
name text,
address text,
start_date timestamp with time zone,
end_date timestamp with time zone,
description text,
geometry_type text DEFAULT 'point'::text,
is_active boolean DEFAULT true,
geojson json,
country_code text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone,
is_moderated boolean,
duration_min bigint DEFAULT 1440 NOT NULL,
perform_deletion_user_id bigint,
show_name_for_anonym boolean DEFAULT true,
show_description_for_anonym boolean DEFAULT false,
action_user_id bigint,
bot_event_id bigint,
region text,
region_id bigint DEFAULT 1
);
ALTER TABLE lm_event OWNER TO lifemap;
--
-- Name: lm_event_action; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_event_action (
id bigint NOT NULL,
event_id bigint NOT NULL,
user_id bigint NOT NULL,
action_type_id bigint NOT NULL,
previous_value text,
current_value text,
details text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_event_action OWNER TO lifemap;
--
-- Name: lm_event_action_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_event_action_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_event_action_id_seq OWNER TO lifemap;
--
-- Name: lm_event_action_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_event_action_id_seq OWNED BY lm_event_action.id;
--
-- Name: lm_event_action_type; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_event_action_type (
id bigint NOT NULL,
name text,
description text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_event_action_type OWNER TO lifemap;
--
-- Name: lm_event_action_type_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_event_action_type_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_event_action_type_id_seq OWNER TO lifemap;
--
-- Name: lm_event_action_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_event_action_type_id_seq OWNED BY lm_event_action_type.id;
--
-- Name: lm_event_category; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_event_category (
id bigint NOT NULL,
name text NOT NULL,
description text,
help_type_id bigint DEFAULT 1,
pin_url text,
is_active boolean DEFAULT true,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone,
is_visible boolean DEFAULT true,
duration_min bigint DEFAULT 1440
);
ALTER TABLE lm_event_category OWNER TO lifemap;
--
-- Name: lm_event_category_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_event_category_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_event_category_id_seq OWNER TO lifemap;
--
-- Name: lm_event_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_event_category_id_seq OWNED BY lm_event_category.id;
--
-- Name: lm_event_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_event_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_event_id_seq OWNER TO lifemap;
--
-- Name: lm_event_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_event_id_seq OWNED BY lm_event.id;
--
-- Name: lm_event_response; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_event_response (
id bigint NOT NULL,
event_id bigint,
responsed_user_id bigint NOT NULL,
name text,
message text,
start_date timestamp with time zone,
end_date timestamp with time zone,
is_completed boolean DEFAULT false,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_event_response OWNER TO lifemap;
--
-- Name: lm_event_response_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_event_response_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_event_response_id_seq OWNER TO lifemap;
--
-- Name: lm_event_response_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_event_response_id_seq OWNED BY lm_event_response.id;
--
-- Name: lm_exported_event; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_exported_event (
id bigint NOT NULL,
event_id bigint,
external_id bigint,
responded_user_id bigint,
responded_first_name text,
responded_middle_name text,
responded_last_name text,
responded_phone_number text,
responded_description text,
responded_category text,
is_responded boolean,
responded_date timestamp without time zone,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_exported_event OWNER TO lifemap;
--
-- Name: lm_exported_event_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_exported_event_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_exported_event_id_seq OWNER TO lifemap;
--
-- Name: lm_exported_event_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_exported_event_id_seq OWNED BY lm_exported_event.id;
--
-- Name: lm_file_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lm_file_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_file_id_seq OWNER TO postgres;
--
-- Name: lm_file; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_file (
id bigint DEFAULT nextval('lm_file_id_seq'::regclass) NOT NULL,
content_type text,
filename text NOT NULL,
is_external boolean NOT NULL,
size bigint NOT NULL,
crypt_algorithm text,
crypt_base64key text,
is_crypted boolean,
data oid,
secured boolean,
session_id bigint,
stored_exists boolean,
is_stored_separate boolean,
stored_path text,
status character varying(1) DEFAULT 'A'::character varying,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_file OWNER TO lifemap;
--
-- Name: lm_permission; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_permission (
id bigint NOT NULL,
name text NOT NULL,
description text,
is_active boolean DEFAULT false,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_permission OWNER TO lifemap;
--
-- Name: lm_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_permission_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_permission_id_seq OWNER TO lifemap;
--
-- Name: lm_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_permission_id_seq OWNED BY lm_permission.id;
--
-- Name: lm_region; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_region (
id bigint NOT NULL,
country_id bigint,
osm_id bigint,
place_id bigint,
code text,
name_en text,
name_ru text,
name_uz text,
name_alternative_1 text,
name_alternative_2 text,
name_alternative_3 text,
description text,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone,
geom postgis.geometry
);
ALTER TABLE lm_region OWNER TO lifemap;
--
-- Name: lm_region_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_region_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_region_id_seq OWNER TO lifemap;
--
-- Name: lm_region_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_region_id_seq OWNED BY lm_region.id;
--
-- Name: lm_role_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE lm_role_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_role_id_seq OWNER TO postgres;
--
-- Name: lm_role; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_role (
id bigint DEFAULT nextval('lm_role_id_seq'::regclass) NOT NULL,
name text NOT NULL,
description text,
assigned_role boolean DEFAULT true,
status character varying(1) DEFAULT 'A'::character varying,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone,
lowered_name text
);
ALTER TABLE lm_role OWNER TO lifemap;
--
-- Name: lm_role_permission; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_role_permission (
id bigint NOT NULL,
role_id bigint,
permission_id bigint NOT NULL,
access_value integer DEFAULT 0 NOT NULL,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_role_permission OWNER TO lifemap;
--
-- Name: lm_role_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_role_permission_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_role_permission_id_seq OWNER TO lifemap;
--
-- Name: lm_role_permission_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_role_permission_id_seq OWNED BY lm_role_permission.id;
--
-- Name: lm_user; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_user (
id bigint NOT NULL,
login text,
password text,
first_name text,
middle_name text,
last_name text,
auth_type_id integer DEFAULT 1 NOT NULL,
ext_user_id bigint,
photo_url text,
photo_id bigint,
last_logged_in timestamp with time zone,
login_attempt integer,
recovery_exp timestamp without time zone,
recovery_key text,
auth_token text,
status character(1) DEFAULT 'A'::text,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone,
is_blocked boolean DEFAULT false,
block_date timestamp with time zone,
phone_mobile text,
perform_blocking_user_id bigint,
email text,
region_id bigint DEFAULT 1
);
ALTER TABLE lm_user OWNER TO lifemap;
--
-- Name: lm_user_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE lm_user_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE lm_user_id_seq OWNER TO lifemap;
--
-- Name: lm_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE lm_user_id_seq OWNED BY lm_user.id;
--
-- Name: lm_user_role; Type: TABLE; Schema: public; Owner: lifemap
--
CREATE TABLE lm_user_role (
id bigint NOT NULL,
user_id bigint,
role_id bigint,
status character(1) DEFAULT 'A'::bpchar,
reg_date timestamp without time zone DEFAULT now(),
mod_date timestamp without time zone,
exp_date timestamp without time zone
);
ALTER TABLE lm_user_role OWNER TO lifemap;
--
-- Name: user_role_id_seq; Type: SEQUENCE; Schema: public; Owner: lifemap
--
CREATE SEQUENCE user_role_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE user_role_id_seq OWNER TO lifemap;
--
-- Name: user_role_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: lifemap
--
ALTER SEQUENCE user_role_id_seq OWNED BY lm_user_role.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_auth_type ALTER COLUMN id SET DEFAULT nextval('lm_auth_type_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_event ALTER COLUMN id SET DEFAULT nextval('lm_bot_event_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_country ALTER COLUMN id SET DEFAULT nextval('lm_country_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event ALTER COLUMN id SET DEFAULT nextval('lm_event_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action ALTER COLUMN id SET DEFAULT nextval('lm_event_action_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action_type ALTER COLUMN id SET DEFAULT nextval('lm_event_action_type_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_category ALTER COLUMN id SET DEFAULT nextval('lm_event_category_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_response ALTER COLUMN id SET DEFAULT nextval('lm_event_response_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_exported_event ALTER COLUMN id SET DEFAULT nextval('lm_exported_event_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_permission ALTER COLUMN id SET DEFAULT nextval('lm_permission_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_region ALTER COLUMN id SET DEFAULT nextval('lm_region_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_role_permission ALTER COLUMN id SET DEFAULT nextval('lm_role_permission_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user ALTER COLUMN id SET DEFAULT nextval('lm_user_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user_role ALTER COLUMN id SET DEFAULT nextval('user_role_id_seq'::regclass);
--
-- Name: file_pkey; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_file
ADD CONSTRAINT file_pkey PRIMARY KEY (id);
--
-- Name: lm_auth_type_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_auth_type
ADD CONSTRAINT lm_auth_type_pk PRIMARY KEY (id);
--
-- Name: lm_bot_event_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_event
ADD CONSTRAINT lm_bot_event_pk PRIMARY KEY (id);
--
-- Name: lm_bot_state_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_user_state
ADD CONSTRAINT lm_bot_state_pk UNIQUE (user_id, chat_id);
--
-- Name: lm_bot_user_option_pkey; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_user_option
ADD CONSTRAINT lm_bot_user_option_pkey PRIMARY KEY (user_id);
--
-- Name: lm_country_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_country
ADD CONSTRAINT lm_country_pk PRIMARY KEY (id);
--
-- Name: lm_event_action_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action
ADD CONSTRAINT lm_event_action_pk PRIMARY KEY (id);
--
-- Name: lm_event_action_type_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action_type
ADD CONSTRAINT lm_event_action_type_pk PRIMARY KEY (id);
--
-- Name: lm_event_category_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_category
ADD CONSTRAINT lm_event_category_pk PRIMARY KEY (id);
--
-- Name: lm_event_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event
ADD CONSTRAINT lm_event_pk PRIMARY KEY (id);
--
-- Name: lm_event_response_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_response
ADD CONSTRAINT lm_event_response_pk PRIMARY KEY (id);
--
-- Name: lm_exported_event_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_exported_event
ADD CONSTRAINT lm_exported_event_pk PRIMARY KEY (id);
--
-- Name: lm_permissions_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_permission
ADD CONSTRAINT lm_permissions_pk PRIMARY KEY (id);
--
-- Name: lm_region_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_region
ADD CONSTRAINT lm_region_pk PRIMARY KEY (id);
--
-- Name: lm_role_permission_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_role_permission
ADD CONSTRAINT lm_role_permission_pk PRIMARY KEY (id);
--
-- Name: lm_role_pkey; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_role
ADD CONSTRAINT lm_role_pkey PRIMARY KEY (id);
--
-- Name: lm_user_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user
ADD CONSTRAINT lm_user_pk PRIMARY KEY (id);
--
-- Name: user_role_pk; Type: CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user_role
ADD CONSTRAINT user_role_pk PRIMARY KEY (id);
--
-- Name: lm_auth_type_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_auth_type_id_uindex ON lm_auth_type USING btree (id);
--
-- Name: lm_bot_event_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_bot_event_id_uindex ON lm_bot_event USING btree (id);
--
-- Name: lm_country_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_country_id_uindex ON lm_country USING btree (id);
--
-- Name: lm_event_action_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_event_action_id_uindex ON lm_event_action USING btree (id);
--
-- Name: lm_event_action_type_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_event_action_type_uindex ON lm_event_action_type USING btree (id);
--
-- Name: lm_event_category_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_event_category_id_uindex ON lm_event_category USING btree (id);
--
-- Name: lm_event_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_event_id_uindex ON lm_event USING btree (id);
--
-- Name: lm_event_response_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_event_response_id_uindex ON lm_event_response USING btree (id);
--
-- Name: lm_exported_event_event_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_exported_event_event_id_uindex ON lm_exported_event USING btree (event_id);
--
-- Name: lm_exported_event_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_exported_event_id_uindex ON lm_exported_event USING btree (id);
--
-- Name: lm_permissions_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_permissions_id_uindex ON lm_permission USING btree (id);
--
-- Name: lm_region_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_region_id_uindex ON lm_region USING btree (id);
--
-- Name: lm_role_permission_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_role_permission_id_uindex ON lm_role_permission USING btree (id);
--
-- Name: lm_user_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX lm_user_id_uindex ON lm_user USING btree (id);
--
-- Name: user_role_id_uindex; Type: INDEX; Schema: public; Owner: lifemap
--
CREATE UNIQUE INDEX user_role_id_uindex ON lm_user_role USING btree (id);
--
-- Name: change_user_role_on_update_mobile_phone; Type: TRIGGER; Schema: public; Owner: lifemap
--
CREATE TRIGGER change_user_role_on_update_mobile_phone AFTER UPDATE ON lm_user FOR EACH ROW EXECUTE PROCEDURE change_user_role_on_update_mobile_phone();
--
-- Name: create_user_role_on_user_insert; Type: TRIGGER; Schema: public; Owner: lifemap
--
CREATE TRIGGER create_user_role_on_user_insert AFTER INSERT ON lm_user FOR EACH ROW EXECUTE PROCEDURE create_user_role_on_user_insert();
--
-- Name: save_event_action; Type: TRIGGER; Schema: public; Owner: lifemap
--
CREATE TRIGGER save_event_action AFTER UPDATE ON lm_event FOR EACH ROW EXECUTE PROCEDURE save_event_action();
--
-- Name: lm_bot_event_lm_bot_event_category_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_event
ADD CONSTRAINT lm_bot_event_lm_bot_event_category_id_fk FOREIGN KEY (category_id) REFERENCES lm_event_category(id);
--
-- Name: lm_bot_event_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_bot_event
ADD CONSTRAINT lm_bot_event_lm_user_id_fk FOREIGN KEY (user_id) REFERENCES lm_user(id);
--
-- Name: lm_event_action_lm_event_action_type_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action
ADD CONSTRAINT lm_event_action_lm_event_action_type_id_fk FOREIGN KEY (action_type_id) REFERENCES lm_event_action_type(id);
--
-- Name: lm_event_action_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action
ADD CONSTRAINT lm_event_action_lm_user_id_fk FOREIGN KEY (user_id) REFERENCES lm_user(id);
--
-- Name: lm_event_lm_event_category_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event
ADD CONSTRAINT lm_event_lm_event_category_id_fk FOREIGN KEY (category_id) REFERENCES lm_event_category(id);
--
-- Name: lm_event_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event
ADD CONSTRAINT lm_event_lm_user_id_fk FOREIGN KEY (user_id) REFERENCES lm_user(id);
--
-- Name: lm_event_response_lm_event_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_response
ADD CONSTRAINT lm_event_response_lm_event_id_fk FOREIGN KEY (event_id) REFERENCES lm_event(id);
--
-- Name: lm_event_response_lm_event_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_action
ADD CONSTRAINT lm_event_response_lm_event_id_fk FOREIGN KEY (event_id) REFERENCES lm_event(id);
--
-- Name: lm_event_response_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_event_response
ADD CONSTRAINT lm_event_response_lm_user_id_fk FOREIGN KEY (responsed_user_id) REFERENCES lm_user(id);
--
-- Name: lm_exported_event_lm_event_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_exported_event
ADD CONSTRAINT lm_exported_event_lm_event_id_fk FOREIGN KEY (event_id) REFERENCES lm_event(id);
--
-- Name: lm_exported_event_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_exported_event
ADD CONSTRAINT lm_exported_event_lm_user_id_fk FOREIGN KEY (responded_user_id) REFERENCES lm_user(id);
--
-- Name: lm_region_lm_country_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_region
ADD CONSTRAINT lm_region_lm_country_id_fk FOREIGN KEY (country_id) REFERENCES lm_country(id);
--
-- Name: lm_role_permission_lm_permission_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_role_permission
ADD CONSTRAINT lm_role_permission_lm_permission_id_fk FOREIGN KEY (permission_id) REFERENCES lm_permission(id);
--
-- Name: lm_role_permission_lm_role_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_role_permission
ADD CONSTRAINT lm_role_permission_lm_role_id_fk FOREIGN KEY (role_id) REFERENCES lm_role(id);
--
-- Name: lm_user_lm_auth_type_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user
ADD CONSTRAINT lm_user_lm_auth_type_id_fk FOREIGN KEY (auth_type_id) REFERENCES lm_auth_type(id);
--
-- Name: lm_user_lm_file_id_fk_2; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user
ADD CONSTRAINT lm_user_lm_file_id_fk_2 FOREIGN KEY (photo_id) REFERENCES lm_file(id);
--
-- Name: lm_user_lm_region_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user
ADD CONSTRAINT lm_user_lm_region_id_fk FOREIGN KEY (region_id) REFERENCES lm_region(id);
--
-- Name: lm_user_role_lm_role_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user_role
ADD CONSTRAINT lm_user_role_lm_role_id_fk FOREIGN KEY (role_id) REFERENCES lm_role(id);
--
-- Name: lm_user_role_lm_user_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: lifemap
--
ALTER TABLE ONLY lm_user_role
ADD CONSTRAINT lm_user_role_lm_user_id_fk FOREIGN KEY (user_id) REFERENCES lm_user(id);
--
-- Name: public; Type: ACL; Schema: -; Owner: postgres
--
REVOKE ALL ON SCHEMA public FROM PUBLIC;
REVOKE ALL ON SCHEMA public FROM postgres;
GRANT ALL ON SCHEMA public TO postgres;
GRANT ALL ON SCHEMA public TO PUBLIC;
--
-- PostgreSQL database dump complete
--
|
<reponame>Li-Ko/tukey_portal
CREATE TABLE inode(
id integer not null primary key autoincrement
);
CREATE TABLE file(
id integer not null references inode(id) ON DELETE CASCADE,
real_location char(512) unique,
name char(512) unique,
owner references filesystem_user(id),
primary key(id)
);
CREATE TABLE collection(
id integer not null references inode(id) ON DELETE CASCADE,
name char(512) unique,
owner references filesystem_user(id),
primary key(id)
);
CREATE TABLE collection2(
id integer not null references inode(id) ON DELETE CASCADE,
name char(512) unique,
owner references filesystem_user(id),
primary key(id)
);
CREATE TABLE collection_file(
id INTEGER PRIMARY KEY AUTOINCREMENT,
collection_ref INTEGER REFERENCES collection(id) ON DELETE CASCADE,
file_ref INTEGER REFERENCES file(id) ON DELETE CASCADE,
owner references filesystem_user(id)
);
CREATE TABLE collection2_collection(
id INTEGER PRIMARY KEY AUTOINCREMENT,
collection2_ref INTEGER REFERENCES collection2(id) ON DELETE CASCADE,
collection_ref INTEGER REFERENCES collection(id) ON DELETE CASCADE,
owner references filesystem_user(id)
);
CREATE TABLE abstract_user(
id integer not null primary key AUTOINCREMENT
);
CREATE TABLE filesystem_user(
id integer not null references abstract_user(id) ON DELETE CASCADE,
name char(512) unique,
primary key(id)
);
CREATE TABLE filesystem_group(
id integer not null references abstract_user(id) ON DELETE CASCADE,
name char(512) unique,
owner references filesystem_user(id),
primary key(id)
);
CREATE TABLE filesystem_group_filesystem_user(
id integer primary key autoincrement,
filesystem_user_ref integer references filesystem_user(id) on delete cascade,
filesystem_group_ref integer references filesystem_group(id) on delete cascade,
owner references filesystem_user(id)
);
CREATE TABLE permission(
id integer not null primary key AUTOINCREMENT,
inode_ref INTEGER REFERENCES inode(id) ON DELETE CASCADE,
user_ref INTEGER REFERENCES abstract_user(id) ON DELETE CASCADE,
owner references filesystem_user(id)
);
|
<gh_stars>0
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table app_user (
id integer auto_increment not null,
name varchar(255),
email varchar(255),
phone varchar(255),
city varchar(255),
address varchar(255),
work_time varchar(255),
description TEXT,
password varchar(255),
user_access_level integer,
is_active tinyint(1) default 0,
constraint pk_app_user primary key (id))
;
create table banner (
id integer auto_increment not null,
banner_position integer,
link varchar(255),
image varchar(255),
constraint pk_banner primary key (id))
;
create table category (
id integer auto_increment not null,
name varchar(255),
constraint pk_category primary key (id))
;
create table image (
id integer auto_increment not null,
public_id varchar(255),
image_url varchar(255),
secret_image_url varchar(255),
item_id integer,
news_id integer,
user_id integer,
constraint pk_image primary key (id))
;
create table item (
id integer auto_increment not null,
name varchar(255),
price varchar(255),
old_price varchar(255),
description TEXT,
average_grade integer,
date_of_activation datetime(6),
date_of_de_activation datetime(6),
blocking_date datetime(6),
is_active tinyint(1) default 0,
is_visible tinyint(1) default 0,
is_blocked tinyint(1) default 0,
user_id integer,
category_id integer,
sub_category_id integer,
constraint pk_item primary key (id))
;
create table message (
id integer auto_increment not null,
customer_email varchar(255),
subject varchar(255),
message_text TEXT,
create_date datetime(6),
status tinyint(1) default 0,
delete_status tinyint(1) default 0,
user_id integer,
constraint pk_message primary key (id))
;
create table news (
id integer auto_increment not null,
title varchar(255),
text TEXT,
date datetime(6),
user_id integer,
constraint pk_news primary key (id))
;
create table review (
id integer auto_increment not null,
mark integer,
name varchar(255),
email varchar(255),
phone varchar(255),
item_id integer,
constraint pk_review primary key (id))
;
create table store (
id integer auto_increment not null,
name varchar(255),
city varchar(255),
address varchar(255),
user_id integer,
constraint pk_store primary key (id))
;
create table sub_category (
id integer auto_increment not null,
name varchar(255),
category_id integer,
constraint pk_sub_category primary key (id))
;
alter table image add constraint fk_image_item_1 foreign key (item_id) references item (id) on delete restrict on update restrict;
create index ix_image_item_1 on image (item_id);
alter table image add constraint fk_image_news_2 foreign key (news_id) references news (id) on delete restrict on update restrict;
create index ix_image_news_2 on image (news_id);
alter table image add constraint fk_image_user_3 foreign key (user_id) references app_user (id) on delete restrict on update restrict;
create index ix_image_user_3 on image (user_id);
alter table item add constraint fk_item_user_4 foreign key (user_id) references app_user (id) on delete restrict on update restrict;
create index ix_item_user_4 on item (user_id);
alter table item add constraint fk_item_category_5 foreign key (category_id) references category (id) on delete restrict on update restrict;
create index ix_item_category_5 on item (category_id);
alter table item add constraint fk_item_subCategory_6 foreign key (sub_category_id) references sub_category (id) on delete restrict on update restrict;
create index ix_item_subCategory_6 on item (sub_category_id);
alter table message add constraint fk_message_user_7 foreign key (user_id) references app_user (id) on delete restrict on update restrict;
create index ix_message_user_7 on message (user_id);
alter table news add constraint fk_news_user_8 foreign key (user_id) references app_user (id) on delete restrict on update restrict;
create index ix_news_user_8 on news (user_id);
alter table review add constraint fk_review_item_9 foreign key (item_id) references item (id) on delete restrict on update restrict;
create index ix_review_item_9 on review (item_id);
alter table store add constraint fk_store_user_10 foreign key (user_id) references app_user (id) on delete restrict on update restrict;
create index ix_store_user_10 on store (user_id);
alter table sub_category add constraint fk_sub_category_category_11 foreign key (category_id) references category (id) on delete restrict on update restrict;
create index ix_sub_category_category_11 on sub_category (category_id);
# --- !Downs
SET FOREIGN_KEY_CHECKS=0;
drop table app_user;
drop table banner;
drop table category;
drop table image;
drop table item;
drop table message;
drop table news;
drop table review;
drop table store;
drop table sub_category;
SET FOREIGN_KEY_CHECKS=1;
|
SELECT fn_db_add_column('vm_dynamic', 'current_cpu_pinning', 'VARCHAR(4000)');
SELECT fn_db_add_column('vm_dynamic', 'current_sockets', 'INTEGER NOT NULL DEFAULT 0');
SELECT fn_db_add_column('vm_dynamic', 'current_cores', 'INTEGER NOT NULL DEFAULT 0');
SELECT fn_db_add_column('vm_dynamic', 'current_threads', 'INTEGER NOT NULL DEFAULT 0');
|
<reponame>leapframework/framework
--should not load this file.
create table; |
-- Cleanup unused tables from DB.
DROP TABLE IF EXISTS network_external_lb_device_map;
DROP TABLE IF EXISTS external_load_balancer_devices;
DROP TABLE IF EXISTS global_load_balancer_lb_rule_map;
DROP TABLE IF EXISTS global_load_balancing_rules;
DROP TABLE IF EXISTS inline_load_balancer_nic_map;
-- Remove all autoscaling tables
DROP TABLE IF EXISTS autoscale_policy_condition_map;
DROP TABLE IF EXISTS autoscale_vmgroup_details;
DROP TABLE IF EXISTS autoscale_vmgroup_policy_map;
DROP TABLE IF EXISTS autoscale_vmgroup_vm_map;
DROP TABLE IF EXISTS autoscale_vmgroups;
DROP TABLE IF EXISTS autoscale_vmprofile_details;
DROP TABLE IF EXISTS autoscale_vmprofiles;
DROP TABLE IF EXISTS autoscale_policies;
DROP VIEW IF EXISTS async_job_view;
CREATE VIEW `async_job_view` AS
SELECT
`account`.`id` AS `account_id`,
`account`.`uuid` AS `account_uuid`,
`account`.`account_name` AS `account_name`,
`account`.`type` AS `account_type`,
`domain`.`id` AS `domain_id`,
`domain`.`uuid` AS `domain_uuid`,
`domain`.`name` AS `domain_name`,
`domain`.`path` AS `domain_path`,
`user`.`id` AS `user_id`,
`user`.`uuid` AS `user_uuid`,
`async_job`.`id` AS `id`,
`async_job`.`uuid` AS `uuid`,
`async_job`.`job_cmd` AS `job_cmd`,
`async_job`.`job_status` AS `job_status`,
`async_job`.`job_process_status` AS `job_process_status`,
`async_job`.`job_result_code` AS `job_result_code`,
`async_job`.`job_result` AS `job_result`,
`async_job`.`created` AS `created`,
`async_job`.`removed` AS `removed`,
`async_job`.`instance_type` AS `instance_type`,
`async_job`.`instance_id` AS `instance_id`,
(CASE WHEN (`async_job`.`instance_type` = 'Volume')
THEN `volumes`.`uuid`
WHEN ((`async_job`.`instance_type` = 'Template') OR (`async_job`.`instance_type` = 'Iso'))
THEN `vm_template`.`uuid`
WHEN ((`async_job`.`instance_type` = 'VirtualMachine') OR (`async_job`.`instance_type` = 'ConsoleProxy') OR (`async_job`.`instance_type` = 'SystemVm') OR
(`async_job`.`instance_type` = 'DomainRouter'))
THEN `vm_instance`.`uuid`
WHEN (`async_job`.`instance_type` = 'Snapshot')
THEN `snapshots`.`uuid`
WHEN (`async_job`.`instance_type` = 'Host')
THEN `host`.`uuid`
WHEN (`async_job`.`instance_type` = 'StoragePool')
THEN `storage_pool`.`uuid`
WHEN (`async_job`.`instance_type` = 'IpAddress')
THEN `user_ip_address`.`uuid`
WHEN (`async_job`.`instance_type` = 'SecurityGroup')
THEN `security_group`.`uuid`
WHEN (`async_job`.`instance_type` = 'PhysicalNetwork')
THEN `physical_network`.`uuid`
WHEN (`async_job`.`instance_type` = 'TrafficType')
THEN `physical_network_traffic_types`.`uuid`
WHEN (`async_job`.`instance_type` = 'PhysicalNetworkServiceProvider')
THEN `physical_network_service_providers`.`uuid`
WHEN (`async_job`.`instance_type` = 'FirewallRule')
THEN `firewall_rules`.`uuid`
WHEN (`async_job`.`instance_type` = 'Account')
THEN `acct`.`uuid`
WHEN (`async_job`.`instance_type` = 'User')
THEN `us`.`uuid`
WHEN (`async_job`.`instance_type` = 'StaticRoute')
THEN `static_routes`.`uuid`
WHEN (`async_job`.`instance_type` = 'PrivateGateway')
THEN `vpc_gateways`.`uuid`
WHEN (`async_job`.`instance_type` = 'Counter')
THEN `counter`.`uuid`
WHEN (`async_job`.`instance_type` = 'Condition')
THEN `conditions`.`uuid`
ELSE NULL END) AS `instance_uuid`
FROM (((((((((((((((((((((`async_job`
LEFT JOIN `account` ON ((`async_job`.`account_id` = `account`.`id`))) LEFT JOIN `domain` ON ((`domain`.`id` = `account`.`domain_id`))) LEFT JOIN `user`
ON ((`async_job`.`user_id` = `user`.`id`))) LEFT JOIN `volumes` ON ((`async_job`.`instance_id` = `volumes`.`id`))) LEFT JOIN `vm_template`
ON ((`async_job`.`instance_id` = `vm_template`.`id`))) LEFT JOIN `vm_instance` ON ((`async_job`.`instance_id` = `vm_instance`.`id`))) LEFT JOIN `snapshots`
ON ((`async_job`.`instance_id` = `snapshots`.`id`))) LEFT JOIN `host` ON ((`async_job`.`instance_id` = `host`.`id`))) LEFT JOIN `storage_pool`
ON ((`async_job`.`instance_id` = `storage_pool`.`id`))) LEFT JOIN `user_ip_address` ON ((`async_job`.`instance_id` = `user_ip_address`.`id`))) LEFT JOIN `security_group`
ON ((`async_job`.`instance_id` = `security_group`.`id`))) LEFT JOIN `physical_network` ON ((`async_job`.`instance_id` = `physical_network`.`id`))) LEFT JOIN `physical_network_traffic_types`
ON ((`async_job`.`instance_id` = `physical_network_traffic_types`.`id`))) LEFT JOIN `physical_network_service_providers`
ON ((`async_job`.`instance_id` = `physical_network_service_providers`.`id`))) LEFT JOIN `firewall_rules` ON ((`async_job`.`instance_id` = `firewall_rules`.`id`))) LEFT JOIN `account` `acct`
ON ((`async_job`.`instance_id` = `acct`.`id`))) LEFT JOIN `user` `us` ON ((`async_job`.`instance_id` = `us`.`id`))) LEFT JOIN `static_routes`
ON ((`async_job`.`instance_id` = `static_routes`.`id`))) LEFT JOIN `vpc_gateways` ON ((`async_job`.`instance_id` = `vpc_gateways`.`id`))) LEFT JOIN `counter`
ON ((`async_job`.`instance_id` = `counter`.`id`))) LEFT JOIN `conditions` ON ((`async_job`.`instance_id` = `conditions`.`id`)));
|
<filename>testdata/colcompression-maria.sql<gh_stars>10-100
# Table using MariaDB's column compression
SET foreign_key_checks=0;
SET sql_log_bin=0;
use testing
CREATE TABLE colcompr(
id int unsigned NOT NULL,
body text compressed=zlib character set utf8mb4,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
<filename>tests/queries/0_stateless/01768_extended_range.sql
SELECT toYear(toDateTime64('1968-12-12 11:22:33', 0, 'UTC'));
SELECT toInt16(toRelativeWeekNum(toDateTime64('1960-11-30 18:00:11.999', 3, 'UTC')));
SELECT toStartOfQuarter(toDateTime64('1990-01-04 12:14:12', 0, 'UTC'));
SELECT toUnixTimestamp(toDateTime64('1900-12-12 11:22:33', 0, 'UTC')); -- { serverError 407 }
|
DROP DATABASE IF EXISTS db;
CREATE DATABASE db ENGINE = default;
DROP DATABASE db;
DROP DATABASE IF EXISTS db;
DROP DATABASE db; -- {ErrorCode 3}
|
<gh_stars>0
/****** Object: StoredProcedure [dbo].[BINWARD_CASH_WITHDRAW_Load_Status] Script Date: 29/10/2014 5:25:32 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[BINWARD_CASH_WITHDRAW_Load_Status](@ID nvarchar(20), @GetFor nvarchar(50))
AS
IF @GetFor = 'CashWithdraw'
SELECT Status from [dbo].[BINWARD_CASH_WITHDRAW] WHERE ID = @ID
else IF @GetFor='trans_by_acct'
SELECT Status from [dbo].[BOUTWARD_TRANS_BY_ACCT] WHERE ID = @ID
else IF @GetFor='CreditAcct'
SELECT Status from [dbo].[BINWARD_PROC_CRE_ACCT] WHERE ID = @ID
else IF @GetFor='trans_by_cash'
SELECT Status from [dbo].[BOUTWARD_TRANS_BY_CASH] WHERE ID = @ID
GO
|
<gh_stars>10-100
create schema "schedule";
|
<reponame>analuciabolico/sensores-umidade
DROP TABLE roles IF EXISTS;
DROP TABLE users IF EXISTS;
DROP TABLE customers IF EXISTS;
DROP TABLE users_roles IF EXISTS;
DROP TABLE types IF EXISTS;
DROP TABLE sensors IF EXISTS;
DROP TABLE plants IF EXISTS;
DROP TABLE reads IF EXISTS;
CREATE TABLE roles (
id INTEGER IDENTITY PRIMARY KEY,
role VARCHAR(20) NOT NULL
);
CREATE TABLE users (
username VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(50) NOT NULL,
email VARCHAR(100) NOT NULL,
enabled BOOLEAN DEFAULT TRUE NOT NULL,
PRIMARY KEY (username)
);
CREATE TABLE users_roles (
username VARCHAR(255) NOT NULL,
role_id INTEGER NOT NULL,
PRIMARY KEY (username,role_id)
);
ALTER TABLE users_roles ADD CONSTRAINT fk_users_roles_users FOREIGN KEY (username) REFERENCES users (username);
ALTER TABLE users_roles ADD CONSTRAINT fk_users_roles_roles FOREIGN KEY (role_id) REFERENCES roles (id);
CREATE TABLE types (
id INTEGER IDENTITY PRIMARY KEY,
name VARCHAR(20),
trackmin INTEGER,
trackmax INTEGER
);
CREATE TABLE plants (
id INTEGER IDENTITY PRIMARY KEY,
type_id INTEGER NOT NULL
);
ALTER TABLE plants ADD CONSTRAINT fk_plants_types FOREIGN KEY (type_id) REFERENCES types (id);
CREATE TABLE sensors (
id INTEGER IDENTITY PRIMARY KEY,
name VARCHAR(50),
username VARCHAR(20) NOT NULL,
plant_id INTEGER NOT NULL
);
ALTER TABLE sensors ADD CONSTRAINT fk_sensors_users FOREIGN KEY (username) REFERENCES users (username);
ALTER TABLE sensors ADD CONSTRAINT fk_sensors_plants FOREIGN KEY (plant_id) REFERENCES plants (id);
CREATE TABLE reads (
id INTEGER IDENTITY PRIMARY KEY,
sensor_id INTEGER NOT NULL,
humidity INTEGER NOT NULL,
status BOOLEAN,
date_time TIMESTAMP NOT NULL
);
ALTER TABLE reads ADD CONSTRAINT fk_reads_sensors FOREIGN KEY (sensor_id) REFERENCES sensors (id); |
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64)
--
-- Host: localhost Database: eshop
-- ------------------------------------------------------
-- Server version 5.7.17-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `oc_pavoblog_post_description`
--
DROP TABLE IF EXISTS `oc_pavoblog_post_description`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oc_pavoblog_post_description` (
`post_id` int(11) NOT NULL,
`language_id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text,
`content` text,
`tag` text,
`meta_title` varchar(255) NOT NULL,
`meta_description` varchar(255) NOT NULL,
`meta_keyword` varchar(255) NOT NULL,
PRIMARY KEY (`post_id`,`language_id`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oc_pavoblog_post_description`
--
LOCK TABLES `oc_pavoblog_post_description` WRITE;
/*!40000 ALTER TABLE `oc_pavoblog_post_description` DISABLE KEYS */;
INSERT INTO `oc_pavoblog_post_description` VALUES (1,2,'Startup founded by Osgoode students places','','<p>\r\nDonec tellus Nulla lorem Nullam elit id ut elit feugiat lacus. Congue eget dapibus congue tincidunt senectus nibh risus Phasellus tristique justo. Justo Pellentesque Donec lobortis faucibus Vestibulum Praesent mauris volutpat vitae metus. Ipsum cursus vestibulum at interdum Vivamus nunc fringilla Curabitur ac quis. Nam lacinia wisi tortor orci quis vitae.</p>\r\n<p>\r\n\r\nCommodo laoreet semper tincidunt lorem Vestibulum nunc at In Curabitur magna. Euismod euismod Suspendisse tortor ante adipiscing risus Aenean Lorem vitae id. Odio ut pretium ligula quam Vestibulum consequat convallis fringilla Vestibulum nulla. Accumsan morbi tristique auctor Aenean nulla lacinia Nullam elit vel vel. At risus pretium urna tortor metus fringilla interdum mauris tempor congue.</p>\r\n<p>\r\nDonec tellus Nulla lorem Nullam elit id ut elit feugiat lacus. Congue eget dapibus congue tincidunt senectus nibh risus Phasellus tristique justo. Justo Pellentesque Donec lobortis faucibus Vestibulum Praesent mauris volutpat vitae metus. Ipsum cursus vestibulum at interdum Vivamus nunc fringilla Curabitur ac quis. Nam lacinia wisi tortor orci quis vitae.\r\n\r\nSed mauris Pellentesque elit Aliquam at lacus interdum nascetur elit ipsum. Enim ipsum hendrerit Suspendisse turpis laoreet fames tempus ligula pede ac. Et Lorem penatibus orci eu ultrices egestas Nam quam Vivamus nibh. Morbi condimentum molestie Nam enim odio sodales pretium eros sem pellentesque. Sit tellus Integer elit egestas lacus turpis id auctor nascetur ut. Ac elit vitae.</p>\r\n\r\nMi vitae magnis Fusce laoreet nibh felis porttitor laoreet Vestibulum faucibus. At Nulla id tincidunt ut sed semper vel Lorem condimentum ornare. Laoreet Vestibulum lacinia massa a commodo habitasse velit Vestibulum tincidunt In. Turpis at eleifend leo mi elit Aenean porta ac sed faucibus. Nunc urna Morbi fringilla vitae orci convallis condimentum auctor sit dui. Urna pretium elit mauris cursus Curabitur at elit Vestibulum.','','Donec tellus Nulla','',''),(1,1,'Startup founded by Osgoode students places','','<p>\r\nDonec tellus Nulla lorem Nullam elit id ut elit feugiat lacus. Congue eget dapibus congue tincidunt senectus nibh risus Phasellus tristique justo. Justo Pellentesque Donec lobortis faucibus Vestibulum Praesent mauris volutpat vitae metus. Ipsum cursus vestibulum at interdum Vivamus nunc fringilla Curabitur ac quis. Nam lacinia wisi tortor orci quis vitae.</p>\r\n<p>\r\n\r\nCommodo laoreet semper tincidunt lorem Vestibulum nunc at In Curabitur magna. Euismod euismod Suspendisse tortor ante adipiscing risus Aenean Lorem vitae id. Odio ut pretium ligula quam Vestibulum consequat convallis fringilla Vestibulum nulla. Accumsan morbi tristique auctor Aenean nulla lacinia Nullam elit vel vel. At risus pretium urna tortor metus fringilla interdum mauris tempor congue.</p>\r\n<p>\r\nDonec tellus Nulla lorem Nullam elit id ut elit feugiat lacus. Congue eget dapibus congue tincidunt senectus nibh risus Phasellus tristique justo. Justo Pellentesque Donec lobortis faucibus Vestibulum Praesent mauris volutpat vitae metus. Ipsum cursus vestibulum at interdum Vivamus nunc fringilla Curabitur ac quis. Nam lacinia wisi tortor orci quis vitae.\r\n\r\nSed mauris Pellentesque elit Aliquam at lacus interdum nascetur elit ipsum. Enim ipsum hendrerit Suspendisse turpis laoreet fames tempus ligula pede ac. Et Lorem penatibus orci eu ultrices egestas Nam quam Vivamus nibh. Morbi condimentum molestie Nam enim odio sodales pretium eros sem pellentesque. Sit tellus Integer elit egestas lacus turpis id auctor nascetur ut. Ac elit vitae.</p>\r\n\r\nMi vitae magnis Fusce laoreet nibh felis porttitor laoreet Vestibulum faucibus. At Nulla id tincidunt ut sed semper vel Lorem condimentum ornare. Laoreet Vestibulum lacinia massa a commodo habitasse velit Vestibulum tincidunt In. Turpis at eleifend leo mi elit Aenean porta ac sed faucibus. Nunc urna Morbi fringilla vitae orci convallis condimentum auctor sit dui. Urna pretium elit mauris cursus Curabitur at elit Vestibulum.','','Nulla lorem Nullam','',''),(2,2,'6 Article I have learned from my mother-starteds','','When Cody and I started dating, I moved to Utah where all of his family is from. I’m an only child so I loved getting to marry into Cody’s huge family! I know sometimes mothers-in-law get a bad rap, but I love Cody’s mom and am thankful for how sweet and supportive she is! I’ve learned a lot from her and today I wanted to share 6 things my mother-in-law has taught me:\r\nLesson 1. Laugh at yourself, and don’t take things too seriously. Her boys are always playing jokes and pranks on each other and that attitude, to be quick to laugh, is so contagious!\r\nLesson 2. Family is everything. She has 8 kids. 8!! She’s a great example of how to put first things first – and number one is always family. She is always making sure everyone gets together and she looks forward to family time more than anything!\r\nLesson 3. How to make the best homemade cinnamon rolls. Ok well I haven’t totally mastered it yet, but she taught Cody how to make them so I still get to reap the benefits! Her cinnamon rolls are magic and she makes them on special family occasions, but always every Christmas morning.\r\n\r\nLesson 4. Don’t be afraid to say what you want or speak your mind. Luedeen is never afraid to speak her mind, and I love that about her!\r\n\r\nLesson 5. Start your Christmas shopping early! She has over 40 people in the family (just kids and grandkids – not including extended family) and she buys gifts for every single one of them. Her secret is to start months in advance so when the holidays come around, she can really enjoy time with the family instead of stressing about gifts. It’s such a great idea, so even though I’m a procrastinator at heart I try to follow her lead. I love browsing the aisles to find the best stocking stuffers. I always end up grabbing this Burt’s Bees Essentials Kit at Walmart – everyone always needs travel sized everything. The hand salve is a life saver, and you can never have enough chapsticks! We also bet foot massages on pretty much everything, so the foot cream comes in handy too. (Also with the chaos of the holidays it’s sometimes easier to pick up whatever you need for your holiday shopping online.)\r\n\r\nLesson 6. Gift bags are your best friend. When you are getting gifts for lots of people, you can save a lot of time by using (and reusing) gift bags instead of taking time to individually wrap everything.','','Startup founded','',''),(2,1,'6 Article I have learned from my mother-starteds','','When Cody and I started dating, I moved to Utah where all of his family is from. I’m an only child so I loved getting to marry into Cody’s huge family! I know sometimes mothers-in-law get a bad rap, but I love Cody’s mom and am thankful for how sweet and supportive she is! I’ve learned a lot from her and today I wanted to share 6 things my mother-in-law has taught me:\r\nLesson 1. Laugh at yourself, and don’t take things too seriously. Her boys are always playing jokes and pranks on each other and that attitude, to be quick to laugh, is so contagious!\r\nLesson 2. Family is everything. She has 8 kids. 8!! She’s a great example of how to put first things first – and number one is always family. She is always making sure everyone gets together and she looks forward to family time more than anything!\r\nLesson 3. How to make the best homemade cinnamon rolls. Ok well I haven’t totally mastered it yet, but she taught Cody how to make them so I still get to reap the benefits! Her cinnamon rolls are magic and she makes them on special family occasions, but always every Christmas morning.\r\n\r\nLesson 4. Don’t be afraid to say what you want or speak your mind. Luedeen is never afraid to speak her mind, and I love that about her!\r\n\r\nLesson 5. Start your Christmas shopping early! She has over 40 people in the family (just kids and grandkids – not including extended family) and she buys gifts for every single one of them. Her secret is to start months in advance so when the holidays come around, she can really enjoy time with the family instead of stressing about gifts. It’s such a great idea, so even though I’m a procrastinator at heart I try to follow her lead. I love browsing the aisles to find the best stocking stuffers. I always end up grabbing this Burt’s Bees Essentials Kit at Walmart – everyone always needs travel sized everything. The hand salve is a life saver, and you can never have enough chapsticks! We also bet foot massages on pretty much everything, so the foot cream comes in handy too. (Also with the chaos of the holidays it’s sometimes easier to pick up whatever you need for your holiday shopping online.)\r\n\r\nLesson 6. Gift bags are your best friend. When you are getting gifts for lots of people, you can save a lot of time by using (and reusing) gift bags instead of taking time to individually wrap everything.','','Startup founded','',''),(5,2,'Jewel Tone Velvet Linens for Fall and Winter Weddings','','<p>There’s that special something in the air letting us know, Fall is right around the corner and Winter is coming right after! We’re ready to feel the temperatures drop and the indoors get extra cozy! To be honest, we love this time of year when it comes to designing weddings and events!</p>\r\nWith that in mind, we are feeling gemstones, jewel tones and the soft touch of velvet for this wedding\r\nseason. Last winter we were all about Marsala, this year we are going the whole assortment of colors!\r\n<p>\r\nFor those looking to lighten up, we found the perfect shade of Turquoise for the fall. It’s deep enough to sparkle like an Aquamarine and bright enough to warm us up too!\r\nPaired with our natural wood Verona Chairs, the Turquoise Velluto has a rustic sensibility to it perfect for an outdoor fall wedding. Give it even more of a boho bride style by adding in pretty pink accents like these raw crystals. With floating candles and the softest touch of blush blooms, the Velluto fabric sets a perfect canvas for this design. Just like this setting, it’s a great way to bring cool fall feels to a tropical setting!</p><p>\r\n\r\nNow, for those looking to go all in on fall colors, we love a deep Ruby red like our Wine Velluto. It sets the mood for a lively holiday feast or a romantic wedding reception.\r\n\r\nPaired with our French country-inspired linen Maison Dining Chairs, this color palette creates a rich\r\natmosphere for dinner guests, especially when set against beautiful blooming Bougainvillea!\r\n\r\nBring in more of those gorgeous jewel tones in purples and oranges across the tabletop and use copper toned accents to tie the look together!\r\n\r\nSo whatever your event is this season, bring in those fall feelings with an array of gemstone-hued linens in soft velvet-inspired fabrics to really amp up the party. Trust us, we know how to host a good one!\r\n\r\nPhotography <NAME> Photography | Florals Petal Productions | Tabletop Pieces Anthropologie | Chargers, Linens and Napkins, Chairs and Tables Nuage Designs\r\n</p>','','Jewel tones','',''),(3,1,'Startup founded by Osgoode students places','','Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.\r\n\r\nNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?','','Osgoode students','',''),(3,2,'Startup founded by Osgoode students places','','Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.\r\n\r\nNeque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur? Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?','','Osgoode students','',''),(6,2,'The Affordable Outfit Game-Changers You Can','','<p>Obsessed with these dainty layers! This necklace I layer with everything.<br></p>\r\n\r\n<p>These earrings are a great delicate but statement piece. They look so pretty with casual outfits and gorgeous paired with an off the shoulder dress or top for date night.</p>\r\n\r\n<p>You don’t realize it, but jewelry can completely transform your outfit. Even such a simple detail can be a total game-changer! I’m always on the go, and between trying to get the kids ready and in the car, honestly sometimes it’s enough of a feat to get dressed and out the door with a bag and shoes haha. I’ve learned to keep a lot of my jewelry in my car so instead of an afterthought it’s become more of a habit to finish accessorizing in the car.</p>\r\n\r\n<p>I can’t get enough of dainty pieces! I think that’s probably 90% of my jewelry collection right now, from pretty stacked rings to layered chokers and necklaces – they are pieces that you can wear with anything and everything. I just got these from Rocksbox – it’s such a great way to get a jewelry refresher for the season. It’s a membership service so you can try out new styles and different designers before you buy them. If you haven’t tried it yet, you can get your first month free with code: hellofashionxoxo if you sign up between now and October 31st. It’s also a great gift idea for the holidays coming up.</p>\r\n','','Affordable','',''),(4,2,'The Best Street Style Blogs Take Into Any Weddings','','<p>We have been so spoiled here in Utah with a really warm fall, but this week it’s been so cold this week (technically freezing this morning!) and I’m already over the cold.. Anyone else already thinking about planning a trip somewhere warm? I’m not ready for all the colorful leaves to disappear either! It’s my favorite part of fall. While I was shooting this the leaf-blowing truck pulled up and started blowing all the leaves away from the street – I didn’t know know that was a thing haha but apparently they have to do it every day during the fall since there are so many leaves falling. So it’s crazy to think all these leaves are just from ONE DAY!</p>\r\n<p>\r\nYou guys may recognize this look from when I shared it a couple weeks ago on Instagram, but honestly pics don’t do the pieces justice. They are an investment but all of the pieces have so much detail – they are amazing in real life. I discovered <NAME> last year. Remember this outfit? I fell in love with their collection and they quickly became some of my favorite designers. This top is probably my favorite. I love the combination collar and it’s so simple but really high quality so it can transform any outfit you pair it with. Also love the beaded hem on this trouser. It’s crazy what a difference little details make but they really do! This trench is super softer and also reversible, with a grey or camel option – so pretty. Also obsessed with the detailing on this coat. Below are some more of my favorites!</p>','','The Best Street','',''),(6,1,'The Affordable Outfit Game-Changers You Can','','<p>Obsessed with these dainty layers! This necklace I layer with everything.<br></p>\r\n\r\n<p>These earrings are a great delicate but statement piece. They look so pretty with casual outfits and gorgeous paired with an off the shoulder dress or top for date night.</p>\r\n\r\n<p>You don’t realize it, but jewelry can completely transform your outfit. Even such a simple detail can be a total game-changer! I’m always on the go, and between trying to get the kids ready and in the car, honestly sometimes it’s enough of a feat to get dressed and out the door with a bag and shoes haha. I’ve learned to keep a lot of my jewelry in my car so instead of an afterthought it’s become more of a habit to finish accessorizing in the car.</p>\r\n\r\n<p>I can’t get enough of dainty pieces! I think that’s probably 90% of my jewelry collection right now, from pretty stacked rings to layered chokers and necklaces – they are pieces that you can wear with anything and everything. I just got these from Rocksbox – it’s such a great way to get a jewelry refresher for the season. It’s a membership service so you can try out new styles and different designers before you buy them. If you haven’t tried it yet, you can get your first month free with code: hellofashionxoxo if you sign up between now and October 31st. It’s also a great gift idea for the holidays coming up.</p>\r\n','','Affordable','',''),(7,1,'How To Be A Street Style Star For Halloween','','<h3>SEE ALL SLIDES</h3>\r\n<p>BEGIN SLIDESHOW</p>\r\n\r\n\r\n<p>PHOTOGRAPHED BY <NAME>.</p>\r\n<p>Everyone knows the best Halloween costumes are the ones that both mock the cultural zeitgeist and are rich in references. Think: throwback \'90s moments and multi-layered puns. Want to be <NAME>? Instead, go as "<NAME> (Is Coming)." Looking to pay homage to Miuccia Prada? Meet Mew Mew, the Pokémon in bejeweled Miu Miu heels.</p>\r\n<p>\r\nCome October 31, instead of digging deep into our style encyclopedias for a punny costume, we’re turning the camera on ourselves (and not just for a selfie). No, we\'re not talking about a #shoefie or an #OOTD — hell, not even an #evachenpose. Instead, we\'re taking to the streets of New York as parodies of the fashion editors, bloggers, street style stars, and influencers we are. And it doesn\'t even require a Versace-level budget. (Though, we do suggest a sense of humor packed neatly into your Tom Ford alligator belt).</p>\r\n<p>\r\nHere\'s what you\'ll need: Basically, anything that went viral this year (say, one of those IKEA doodads, a crystal-dipped bodysuit à la Rihanna, or a Moschino whatchamacallit), something politically-inspired, or anything from the juggernaut of celebrity fashion collaborations (i.e. Fenty Puma by Rihanna, Yeezy, or <NAME>). Put all of that in a blender, slap a CFDA x ACLU pin on it, et voilà, you are one of us.\r\nAnd, if you\'re still lost — or still brushing up on your fashion vocabulary — let the slideshow ahead serve as your starting point. So get in, loser (and grab your Olympia Le-Tan Meine Lieblingsmorde appliquéd cotton-faille clutch) — we\'re going trick-or-treating.</p>','','Affordable','',''),(7,2,'How To Be A Street Style Star For Halloween','','<h3>SEE ALL SLIDES</h3>\r\n<p>BEGIN SLIDESHOW</p>\r\n\r\n\r\n<p>PHOTOGRAPHED BY <NAME>.</p>\r\n<p>Everyone knows the best Halloween costumes are the ones that both mock the cultural zeitgeist and are rich in references. Think: throwback \'90s moments and multi-layered puns. Want to be <NAME>? Instead, go as "<NAME> (Is Coming)." Looking to pay homage to Miuccia Prada? Meet Mew Mew, the Pokémon in bejeweled Miu Miu heels.</p>\r\n<p>\r\nCome October 31, instead of digging deep into our style encyclopedias for a punny costume, we’re turning the camera on ourselves (and not just for a selfie). No, we\'re not talking about a #shoefie or an #OOTD — hell, not even an #evachenpose. Instead, we\'re taking to the streets of New York as parodies of the fashion editors, bloggers, street style stars, and influencers we are. And it doesn\'t even require a Versace-level budget. (Though, we do suggest a sense of humor packed neatly into your Tom Ford alligator belt).</p>\r\n<p>\r\nHere\'s what you\'ll need: Basically, anything that went viral this year (say, one of those IKEA doodads, a crystal-dipped bodysuit à la Rihanna, or a Moschino whatchamacallit), something politically-inspired, or anything from the juggernaut of celebrity fashion collaborations (i.e. Fenty Puma by Rihanna, Yeezy, or <NAME>). Put all of that in a blender, slap a CFDA x ACLU pin on it, et voilà, you are one of us.\r\nAnd, if you\'re still lost — or still brushing up on your fashion vocabulary — let the slideshow ahead serve as your starting point. So get in, loser (and grab your Olympia Le-Tan Meine Lieblingsmorde appliquéd cotton-faille clutch) — we\'re going trick-or-treating.</p>','','Affordable','',''),(5,1,'Jewel Tone Velvet Linens for Fall and Winter Weddings','','<p>There’s that special something in the air letting us know, Fall is right around the corner and Winter is coming right after! We’re ready to feel the temperatures drop and the indoors get extra cozy! To be honest, we love this time of year when it comes to designing weddings and events!</p>\r\nWith that in mind, we are feeling gemstones, jewel tones and the soft touch of velvet for this wedding\r\nseason. Last winter we were all about Marsala, this year we are going the whole assortment of colors!\r\n<p>\r\nFor those looking to lighten up, we found the perfect shade of Turquoise for the fall. It’s deep enough to sparkle like an Aquamarine and bright enough to warm us up too!\r\nPaired with our natural wood Verona Chairs, the Turquoise Velluto has a rustic sensibility to it perfect for an outdoor fall wedding. Give it even more of a boho bride style by adding in pretty pink accents like these raw crystals. With floating candles and the softest touch of blush blooms, the Velluto fabric sets a perfect canvas for this design. Just like this setting, it’s a great way to bring cool fall feels to a tropical setting!</p><p>\r\n\r\nNow, for those looking to go all in on fall colors, we love a deep Ruby red like our Wine Velluto. It sets the mood for a lively holiday feast or a romantic wedding reception.\r\n\r\nPaired with our French country-inspired linen Maison Dining Chairs, this color palette creates a rich\r\natmosphere for dinner guests, especially when set against beautiful blooming Bougainvillea!\r\n\r\nBring in more of those gorgeous jewel tones in purples and oranges across the tabletop and use copper toned accents to tie the look together!\r\n\r\nSo whatever your event is this season, bring in those fall feelings with an array of gemstone-hued linens in soft velvet-inspired fabrics to really amp up the party. Trust us, we know how to host a good one!\r\n\r\nPhotography Katie Lopez Photography | Florals Petal Productions | Tabletop Pieces Anthropologie | Chargers, Linens and Napkins, Chairs and Tables Nuage Designs\r\n</p>','','Jewel tones','',''),(8,1,'20 Inspiring Middle Eastern Influencers You Should','','<p>I always thought I understood what it meant when people said "representation matters," but I really didn\'t know what I was missing until I challenged myself to put together a list of successful female influencers from the Middle East.<br></p>\r\n\r\n<p>What I found was a group of brilliant young women who work and inspire a whole new world.</p>\r\n<p> Having someone who looks like you to look up to (or culling inspiration from someone who looks like you but lives a completely different reality) can be incredibly impactful.</p> <p>This roster of Instagram influencers is like seeing 20 versions of me and realizing what people like me are able to achieve. From the first woman to swim the Thames river to the Arab versions of Kendall and <NAME>, click on to meet our favorite Middle Eastern and North African influencers.</p>','','Inspiring Middle','',''),(8,2,'20 Inspiring Middle Eastern Influencers You Should','','<p>I always thought I understood what it meant when people said "representation matters," but I really didn\'t know what I was missing until I challenged myself to put together a list of successful female influencers from the Middle East.<br></p>\r\n\r\n<p>What I found was a group of brilliant young women who work and inspire a whole new world.</p>\r\n<p> Having someone who looks like you to look up to (or culling inspiration from someone who looks like you but lives a completely different reality) can be incredibly impactful.</p> <p>This roster of Instagram influencers is like seeing 20 versions of me and realizing what people like me are able to achieve. From the first woman to swim the Thames river to the Arab versions of Kendall and <NAME>, click on to meet our favorite Middle Eastern and North African influencers.</p>','','Inspiring Middle','',''),(4,1,'The Best Street Style Blogs Take Into Any Weddings','','<p>We have been so spoiled here in Utah with a really warm fall, but this week it’s been so cold this week (technically freezing this morning!) and I’m already over the cold.. Anyone else already thinking about planning a trip somewhere warm? I’m not ready for all the colorful leaves to disappear either! It’s my favorite part of fall. While I was shooting this the leaf-blowing truck pulled up and started blowing all the leaves away from the street – I didn’t know know that was a thing haha but apparently they have to do it every day during the fall since there are so many leaves falling. So it’s crazy to think all these leaves are just from ONE DAY!</p>\r\n<p>\r\nYou guys may recognize this look from when I shared it a couple weeks ago on Instagram, but honestly pics don’t do the pieces justice. They are an investment but all of the pieces have so much detail – they are amazing in real life. I discovered <NAME> last year. Remember this outfit? I fell in love with their collection and they quickly became some of my favorite designers. This top is probably my favorite. I love the combination collar and it’s so simple but really high quality so it can transform any outfit you pair it with. Also love the beaded hem on this trouser. It’s crazy what a difference little details make but they really do! This trench is super softer and also reversible, with a grey or camel option – so pretty. Also obsessed with the detailing on this coat. Below are some more of my favorites!</p>','','The Best Street','','');
/*!40000 ALTER TABLE `oc_pavoblog_post_description` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2018-08-28 21:59:34
|
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Dec 01, 2016 at 11:36 PM
-- Server version: 5.7.16-0ubuntu0.16.04.1
-- PHP Version: 7.0.8-0ubuntu0.16.04.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `tinderbox`
--
-- --------------------------------------------------------
--
-- Table structure for table `announcements`
--
CREATE TABLE `announcements` (
`a_id` int(11) NOT NULL,
`u_id` int(11) NOT NULL,
`content` text COLLATE utf8_danish_ci NOT NULL,
`datetime` datetime NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `announcements`
--
INSERT INTO `announcements` (`a_id`, `u_id`, `content`, `datetime`, `status`) VALUES
(1, 2, 'To all social media managers!!!\r\nRemember to share the tinderbox facebook page on all social media, and use the hashtag #tinderbox', '2016-11-28 11:36:20', 1),
(2, 3, 'Remember to use the official tinderbox hashtag: #tinderbox', '2016-11-21 13:18:38', 1),
(3, 3, 'Guys, i forgot the password to the tinderbox instagram account, PLS HALP!!', '2016-11-30 12:14:23', 0),
(4, 2, 'You really know nothing <NAME>', '2016-11-30 12:17:26', 0),
(5, 3, 'Never mind, I found it again, had it written down somewhere.', '2016-11-30 12:19:10', 0),
(6, 1, 'To all other bartenders, remember to check if everyone you serve, is over 18', '2016-12-01 16:25:32', 0);
-- --------------------------------------------------------
--
-- Table structure for table `role`
--
CREATE TABLE `role` (
`r_id` int(11) NOT NULL,
`role` varchar(50) COLLATE utf8_danish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `role`
--
INSERT INTO `role` (`r_id`, `role`) VALUES
(1, 'facebook manager'),
(2, 'instagram ambassador'),
(3, 'bartender');
-- --------------------------------------------------------
--
-- Table structure for table `schedule`
--
CREATE TABLE `schedule` (
`u_id` int(11) NOT NULL,
`si_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `schedule`
--
INSERT INTO `schedule` (`u_id`, `si_id`) VALUES
(3, 1),
(3, 2),
(3, 3),
(3, 4),
(3, 5);
-- --------------------------------------------------------
--
-- Table structure for table `schedule_item`
--
CREATE TABLE `schedule_item` (
`si_id` int(11) NOT NULL,
`t_id` int(11) NOT NULL,
`task` varchar(100) COLLATE utf8_danish_ci NOT NULL,
`start` datetime NOT NULL,
`end` datetime NOT NULL,
`location` varchar(50) COLLATE utf8_danish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `schedule_item`
--
INSERT INTO `schedule_item` (`si_id`, `t_id`, `task`, `start`, `end`, `location`) VALUES
(1, 2, 'SCRUM meeting', '2016-12-01 06:00:00', '2016-12-01 23:59:00', 'social media office'),
(2, 2, 'SCRUM meeting', '2016-12-02 06:00:00', '2016-12-02 07:00:00', 'social media office'),
(3, 2, 'SCRUM meeting', '2016-12-03 06:00:00', '2016-12-03 07:00:00', 'social media office'),
(4, 2, 'SCRUM meeting', '2016-12-04 06:00:00', '2016-12-04 07:00:00', 'social media office'),
(5, 2, 'SCRUM meeting', '2016-12-05 06:00:00', '2016-12-05 07:00:00', 'social media office');
-- --------------------------------------------------------
--
-- Table structure for table `team`
--
CREATE TABLE `team` (
`t_id` int(11) NOT NULL,
`team` varchar(50) COLLATE utf8_danish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `team`
--
INSERT INTO `team` (`t_id`, `team`) VALUES
(1, 'service team'),
(2, 'social media team');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`u_id` int(11) NOT NULL,
`t_id` int(11) NOT NULL DEFAULT '1',
`r_id` int(11) NOT NULL DEFAULT '1',
`fname` varchar(50) COLLATE utf8_danish_ci NOT NULL,
`lname` varchar(50) COLLATE utf8_danish_ci NOT NULL,
`email` varchar(50) COLLATE utf8_danish_ci NOT NULL,
`password` varchar(255) COLLATE utf8_danish_ci NOT NULL,
`birthdate` date NOT NULL,
`phone` varchar(50) COLLATE utf8_danish_ci NOT NULL,
`shirt_size` varchar(10) COLLATE utf8_danish_ci NOT NULL,
`shoe_size` varchar(10) COLLATE utf8_danish_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_danish_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`u_id`, `t_id`, `r_id`, `fname`, `lname`, `email`, `password`, `birthdate`, `phone`, `shirt_size`, `shoe_size`) VALUES
(1, 1, 3, 'John', 'Doe', '<EMAIL>', '$2y$10$0X21pVdIxeol6Goh2lX/o.kDSHdIrPtMvb4SnZHnnqd2nXCfQB7Em', '1969-06-06', '12345678', 'l', '42'),
(2, 2, 1, 'Jane', 'Doe', '<EMAIL>', '$2y$10$RhmjZSGObPyJkOY0xAAmuOsFP9s5eKjJ1iHwSuLje0c1A<PASSWORD>Bz<PASSWORD>', '1975-08-12', '87654321', 'm', '39'),
(3, 2, 2, 'Jon', 'Snow', '<EMAIL>', '$2y$10$slz7mD9iyrQLoRU0aenwwO4yHFvHAtwHvetMrcORU.59VnW36GJiy', '1955-03-27', '12348765', 'xl', '45');
-- --------------------------------------------------------
--
-- Table structure for table `user_tokens`
--
CREATE TABLE `user_tokens` (
`token` varchar(35) NOT NULL,
`u_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_tokens`
--
INSERT INTO `user_tokens` (`token`, `u_id`) VALUES
('<PASSWORD>', 2),
('<PASSWORD>', 1),
('<PASSWORD>', 3);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `announcements`
--
ALTER TABLE `announcements`
ADD PRIMARY KEY (`a_id`);
--
-- Indexes for table `role`
--
ALTER TABLE `role`
ADD PRIMARY KEY (`r_id`);
--
-- Indexes for table `schedule_item`
--
ALTER TABLE `schedule_item`
ADD PRIMARY KEY (`si_id`);
--
-- Indexes for table `team`
--
ALTER TABLE `team`
ADD PRIMARY KEY (`t_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`u_id`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `user_tokens`
--
ALTER TABLE `user_tokens`
ADD UNIQUE KEY `tokens` (`token`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `announcements`
--
ALTER TABLE `announcements`
MODIFY `a_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `role`
--
ALTER TABLE `role`
MODIFY `r_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `schedule_item`
--
ALTER TABLE `schedule_item`
MODIFY `si_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `team`
--
ALTER TABLE `team`
MODIFY `t_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `u_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE categorias_comunidades(
id_categoria INT PRIMARY KEY,
tipo VARCHAR(50)
)ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO categorias_comunidades(id_categoria, tipo) VALUES
(1, 'pueblo'),
(2, 'centro poblado'),
(3, 'comunidad indigena'),
(4, 'parcelamiento'),
(5, 'caserio'),
(6, 'barrio'),
(7, 'sector'),
(8, 'urbanizacion'),
(9, 'conjunto residencial');
CREATE TABLE comunidades(
id_comunidad INT PRIMARY KEY AUTO_INCREMENT,
nombre VARCHAR(50),
sector VARCHAR(50),
id_categoria INT,
cod_parr INT,
geom POINT,
FOREIGN KEY (cod_parr) REFERENCES parroquias(cod_parr),
FOREIGN KEY (id_categoria) REFERENCES categorias_comunidades(id_categoria)
)ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO comunidades(id_comunidad, nombre, sector, id_categoria, cod_parr, geom) VALUES
(3, 'lusinchi', NULL, 6, 231317, ST_GeomFromText('Point (-71.67747 10.71342)', 4326)),
(4, 'la providencia', NULL, 6, 231317, ST_GeomFromText('Point (-71.68974 10.71181)', 4326)),
(5, 'mi esperanza', NULL, 6, 231317, ST_GeomFromText('Point (-71.69195 10.69691)', 4326)),
(6, 'modelo', NULL, 6, 231317, ST_GeomFromText('Point (-71.69411 10.70058)', 4326)),
(8, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.70404 10.70031)', 4326)),
(9, 'obrero', NULL, 6, 231317, ST_GeomFromText('Point (-71.67497 10.7035)', 4326)),
(10, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.71213 10.69966)', 4326)),
(11, '<NAME>', '1', 6, 231317, ST_GeomFromText('Point (-71.67996 10.69419)', 4326)),
(12, '<NAME>', '2', 6, 231317, ST_GeomFromText('Point (-71.68298 10.69073)', 4326)),
(13, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.6713 10.7017)', 4326)),
(14, 'calendario', NULL, 6, 231301, ST_GeomFromText('Point (-71.69996 10.66996)', 4326)),
(15, 'calendario', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.69839 10.66595)', 4326)),
(16, 'calendario', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.69883 10.67406)', 4326)),
(17, 'cassianito', NULL, 6, 231301, ST_GeomFromText('Point (-71.69461 10.6755)', 4326)),
(18, 'cassiano lossada', '1', 6, 231301, ST_GeomFromText('Point (-71.68945 10.67518)', 4326)),
(19, 'cassiano lossada', '2', 6, 231301, ST_GeomFromText('Point (-71.69363 10.67273)', 4326)),
(20, 'cassiano lossada', '3', 6, 231301, ST_GeomFromText('Point (-71.69519 10.66972)', 4326)),
(21, 'el marite', NULL, 6, 231301, ST_GeomFromText('Point (-71.69152 10.68969)', 4326)),
(22, 'el nispero', NULL, 6, 231301, ST_GeomFromText('Point (-71.71125 10.68793)', 4326)),
(23, 'el nispero', 'santa ana', 6, 231301, ST_GeomFromText('Point (-71.716 10.68373)', 4326)),
(24, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.72392 10.70236)', 4326)),
(25, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.71968 10.69993)', 4326)),
(26, 'el samide', 'el empedrao', 6, 231301, ST_GeomFromText('Point (-71.72651 10.69988)', 4326)),
(27, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.71679 10.69882)', 4326)),
(28, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.71535 10.69459)', 4326)),
(29, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.71898 10.69699)', 4326)),
(30, 'el samide', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.72947 10.70656)', 4326)),
(31, 'estrella del lago', NULL, 6, 231301, ST_GeomFromText('Point (-71.704 10.69303)', 4326)),
(32, 'hato grande', NULL, 6, 231301, ST_GeomFromText('Point (-71.70389 10.67855)', 4326)),
(33, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.70746 10.69273)', 4326)),
(34, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.71754 10.69791)', 4326)),
(35, 'la gracia de dios', 'el castillo', 6, 231301, ST_GeomFromText('Point (-71.72136 10.69359)', 4326)),
(36, 'la revancha', NULL, 6, 231301, ST_GeomFromText('Point (-71.68957 10.67916)', 4326)),
(37, 'la rinconada', 'fe y alegria', 6, 231301, ST_GeomFromText('Point (-71.71161 10.67165)', 4326)),
(38, 'libertador', NULL, 6, 231301, ST_GeomFromText('Point (-71.68385 10.68338)', 4326)),
(39, 'los caobos', NULL, 6, 231301, ST_GeomFromText('Point (-71.70661 10.66868)', 4326)),
(40, 'los caobos', 'domingo de ramos', 6, 231301, ST_GeomFromText('Point (-71.70159 10.66665)', 4326)),
(41, 'los domingues', NULL, 6, 231301, ST_GeomFromText('Point (-71.70593 10.6822)', 4326)),
(42, 'los rios', NULL, 6, 231301, ST_GeomFromText('Point (-71.7065 10.67268)', 4326)),
(43, 'los rios', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.70291 10.67535)', 4326)),
(44, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.69188 10.68431)', 4326)),
(45, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.74641 10.71093)', 4326)),
(46, 'miraflores', NULL, 6, 231301, ST_GeomFromText('Point (-71.69647 10.68958)', 4326)),
(47, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.70389 10.6877)', 4326)),
(48, '<NAME>', '3', 6, 231301, ST_GeomFromText('Point (-71.68452 10.68814)', 4326)),
(49, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.70469 10.68517)', 4326)),
(50, '<NAME>', '2', 6, 231301, ST_GeomFromText('Point (-71.70064 10.68964)', 4326)),
(51, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.69959 10.67836)', 4326)),
(52, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.69912 10.68377)', 4326)),
(53, 'zulia', NULL, 6, 231301, ST_GeomFromText('Point (-71.69013 10.68557)', 4326)),
(54, '<NAME>', '1', 6, 231315, ST_GeomFromText('Point (-71.65586 10.67267)', 4326)),
(55, '<NAME>', '2', 6, 231315, ST_GeomFromText('Point (-71.65706 10.66998)', 4326)),
(56, '<NAME>', '3', 6, 231315, ST_GeomFromText('Point (-71.65444 10.66854)', 4326)),
(57, '<NAME>', NULL, 6, 231315, ST_GeomFromText('Point (-71.66378 10.6626)', 4326)),
(58, 'venezuela', NULL, 6, 231315, ST_GeomFromText('Point (-71.66258 10.67469)', 4326)),
(59, 'la florida', NULL, 9, 231315, ST_GeomFromText('Point (-71.67384 10.67874)', 4326)),
(60, 'arco iris', NULL, 6, 231315, ST_GeomFromText('Point (-71.66637 10.6676)', 4326)),
(61, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.65574 10.66044)', 4326)),
(62, '<NAME>', NULL, 6, 231315, ST_GeomFromText('Point (-71.67158 10.66854)', 4326)),
(63, '<NAME>', '<NAME>', 6, 231315, ST_GeomFromText('Point (-71.67065 10.66696)', 4326)),
(64, 'ayacucho', NULL, 6, 231315, ST_GeomFromText('Point (-71.67235 10.68238)', 4326)),
(65, '<NAME>', NULL, 7, 231315, ST_GeomFromText('Point (-71.66719 10.67775)', 4326)),
(66, 'altamira', NULL, 8, 231315, ST_GeomFromText('Point (-71.67112 10.66374)', 4326)),
(67, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.65887 10.65633)', 4326)),
(68, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.66067 10.66131)', 4326)),
(69, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.66124 10.67662)', 4326)),
(70, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.66011 10.67364)', 4326)),
(71, 'gilcon', NULL, 8, 231315, ST_GeomFromText('Point (-71.66417 10.67524)', 4326)),
(72, 'la floresta', '1', 8, 231315, ST_GeomFromText('Point (-71.67719 10.68482)', 4326)),
(73, 'la floresta', 'santa ana', 8, 231315, ST_GeomFromText('Point (-71.67725 10.67997)', 4326)),
(74, 'la floresta', '3', 8, 231315, ST_GeomFromText('Point (-71.67869 10.67744)', 4326)),
(75, 'la rosaleda', NULL, 8, 231315, ST_GeomFromText('Point (-71.67271 10.67367)', 4326)),
(76, 'la rotaria', '1', 8, 231315, ST_GeomFromText('Point (-71.68149 10.67629)', 4326)),
(77, 'la rotaria', '2', 8, 231315, ST_GeomFromText('Point (-71.68097 10.67179)', 4326)),
(78, 'la rotaria', '3', 8, 231315, ST_GeomFromText('Point (-71.67688 10.67338)', 4326)),
(79, 'la rotaria', '4', 8, 231315, ST_GeomFromText('Point (-71.67732 10.6695)', 4326)),
(80, 'la rotaria', '5', 8, 231315, ST_GeomFromText('Point (-71.68465 10.67087)', 4326)),
(81, 'las lomas', NULL, 8, 231315, ST_GeomFromText('Point (-71.66612 10.67182)', 4326)),
(82, 'lomas de marcaibo', NULL, 8, 231315, ST_GeomFromText('Point (-71.66704 10.66215)', 4326)),
(83, 'los aceitunos', NULL, 8, 231315, ST_GeomFromText('Point (-71.65883 10.6711)', 4326)),
(84, 'los naranjos', NULL, 8, 231315, ST_GeomFromText('Point (-71.68173 10.66568)', 4326)),
(85, 'santa fe', '1', 8, 231315, ST_GeomFromText('Point (-71.67322 10.66529)', 4326)),
(86, 'santa fe', '3', 8, 231315, ST_GeomFromText('Point (-71.66455 10.66498)', 4326)),
(87, '<NAME>', NULL, 8, 231315, ST_GeomFromText('Point (-71.66886 10.66829)', 4326)),
(88, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.66326 10.66864)', 4326)),
(90, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.71621 10.6568)', 4326)),
(91, 'bolivita', NULL, 6, 231309, ST_GeomFromText('Point (-71.66983 10.62142)', 4326)),
(89, '<NAME>', 'los aceitunos', 8, 231315, ST_GeomFromText('Point (-71.66269 10.66669)', 4326)),
(92, 'brisas de la vanega', NULL, 6, 231309, ST_GeomFromText('Point (-71.67507 10.61221)', 4326)),
(93, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.70839 10.6503)', 4326)),
(94, 'cuatricentenario', NULL, 6, 231309, ST_GeomFromText('Point (-71.67352 10.64963)', 4326)),
(95, 'dia de las madres', NULL, 6, 231309, ST_GeomFromText('Point (-71.68413 10.65408)', 4326)),
(96, 'divina concepcion', NULL, 6, 231309, ST_GeomFromText('Point (-71.7115 10.65002)', 4326)),
(97, 'el despertar', NULL, 6, 231309, ST_GeomFromText('Point (-71.67628 10.63635)', 4326)),
(98, 'el hollito', NULL, 6, 231309, ST_GeomFromText('Point (-71.71064 10.65623)', 4326)),
(99, 'el renacer', NULL, 6, 231309, ST_GeomFromText('Point (-71.71032 10.66635)', 4326)),
(100, 'el rosario', 'el eden', 6, 231309, ST_GeomFromText('Point (-71.68888 10.64249)', 4326)),
(101, 'est<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.70836 10.66041)', 4326)),
(103, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.70408 10.6538)', 4326)),
(104, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.67743 10.65782)', 4326)),
(105, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.6609 10.6535)', 4326)),
(106, 'la arboleda', NULL, 6, 231309, ST_GeomFromText('Point (-71.71215 10.66138)', 4326)),
(107, 'la montañita', NULL, 6, 231309, ST_GeomFromText('Point (-71.70044 10.65748)', 4326)),
(108, 'las marias', NULL, 6, 231309, ST_GeomFromText('Point (-71.66843 10.64799)', 4326)),
(109, 'las marias', 'divino niño norte', 6, 231309, ST_GeomFromText('Point (-71.66731 10.6457)', 4326)),
(110, 'las mercedes', NULL, 6, 231309, ST_GeomFromText('Point (-71.72164 10.64567)', 4326)),
(111, 'las taparitas', NULL, 6, 231309, ST_GeomFromText('Point (-71.68387 10.65192)', 4326)),
(112, 'las trinitarias', NULL, 6, 231309, ST_GeomFromText('Point (-71.68114 10.63331)', 4326)),
(113, 'lomas de <NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.66645 10.65762)', 4326)),
(114, 'lomitas del country sur', NULL, 6, 231309, ST_GeomFromText('Point (-71.6658 10.65591)', 4326)),
(115, 'lomitas del zulia', NULL, 6, 231309, ST_GeomFromText('Point (-71.66419 10.65398)', 4326)),
(116, 'lomitas del zulia', '<NAME>', 6, 231309, ST_GeomFromText('Point (-71.66965 10.65555)', 4326)),
(117, 'los altos', '1', 6, 231309, ST_GeomFromText('Point (-71.68294 10.6474)', 4326)),
(118, 'los altos', '2', 6, 231309, ST_GeomFromText('Point (-71.68706 10.64519)', 4326)),
(119, 'los altos', '3', 6, 231309, ST_GeomFromText('Point (-71.69408 10.64584)', 4326)),
(120, 'nueva idependencia', '1', 6, 231309, ST_GeomFromText('Point (-71.67588 10.66214)', 4326)),
(121, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68465 10.6227)', 4326)),
(122, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68334 10.62684)', 4326)),
(123, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.67716 10.64301)', 4326)),
(124, 'san benito de la democracia', NULL, 6, 231309, ST_GeomFromText('Point (-71.67192 10.65693)', 4326)),
(125, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.6681 10.62852)', 4326)),
(126, 'villa centenario de luz', NULL, 6, 231309, ST_GeomFromText('Point (-71.6696 10.63407)', 4326)),
(127, 'villa concepcion', NULL, 6, 231309, ST_GeomFromText('Point (-71.71693 10.65276)', 4326)),
(128, 'lajas blancas', NULL, 9, 231309, ST_GeomFromText('Point (-71.6754 10.64749)', 4326)),
(129, 'las acacias', NULL, 9, 231309, ST_GeomFromText('Point (-71.6737 10.65733)', 4326)),
(130, 'los continentes', NULL, 9, 231309, ST_GeomFromText('Point (-71.67277 10.65582)', 4326)),
(131, 'el palmar', NULL, 4, 231309, ST_GeomFromText('Point (-71.68496 10.64229)', 4326)),
(132, 'el parque', NULL, 6, 231309, ST_GeomFromText('Point (-71.68057 10.65639)', 4326)),
(133, 'el recreo', NULL, 6, 231309, ST_GeomFromText('Point (-71.67954 10.64852)', 4326)),
(134, 'el valle', NULL, 6, 231309, ST_GeomFromText('Point (-71.67997 10.63698)', 4326)),
(135, '<NAME>de', NULL, 6, 231309, ST_GeomFromText('Point (-71.68845 10.64862)', 4326)),
(136, 'la montañita', '1', 8, 231309, ST_GeomFromText('Point (-71.69751 10.66303)', 4326)),
(137, 'las praderas', NULL, 6, 231309, ST_GeomFromText('Point (-71.68815 10.65211)', 4326)),
(138, '<NAME>', '1', 6, 231309, ST_GeomFromText('Point (-71.69496 10.65164)', 4326)),
(139, 'valle altos de la vanega', NULL, 6, 231309, ST_GeomFromText('Point (-71.67118 10.61406)', 4326)),
(140, 'altos de la vanega', NULL, 8, 231309, ST_GeomFromText('Point (-71.66979 10.61758)', 4326)),
(141, 'altos del sol amado', NULL, 8, 231309, ST_GeomFromText('Point (-71.68113 10.61124)', 4326)),
(142, 'club hipico', NULL, 8, 231309, ST_GeomFromText('Point (-71.67154 10.65913)', 4326)),
(143, 'cuatricentenario', '2', 8, 231309, ST_GeomFromText('Point (-71.68009 10.65218)', 4326)),
(144, 'cuatricentenario', '1', 8, 231309, ST_GeomFromText('Point (-71.67555 10.65314)', 4326)),
(145, 'el progeso', NULL, 6, 231309, ST_GeomFromText('Point (-71.68831 10.63757)', 4326)),
(146, 'la chamarreta', '1', 8, 231309, ST_GeomFromText('Point (-71.67444 10.62444)', 4326)),
(147, 'la chamarreta', '2', 8, 231309, ST_GeomFromText('Point (-71.67565 10.62036)', 4326)),
(148, 'la chamarreta', '3', 8, 231309, ST_GeomFromText('Point (-71.67967 10.62157)', 4326)),
(149, 'la chamarreta', '4', 8, 231309, ST_GeomFromText('Point (-71.67944 10.62472)', 4326)),
(150, 'la gloria', NULL, 8, 231309, ST_GeomFromText('Point (-71.683 10.66292)', 4326)),
(151, 'la montañita', '2', 8, 231309, ST_GeomFromText('Point (-71.69611 10.66131)', 4326)),
(152, '12 de octubre', NULL, 6, 231303, ST_GeomFromText('Point (-71.64904 10.64943)', 4326)),
(153, 'amparo', '3', 6, 231303, ST_GeomFromText('Point (-71.64655 10.66011)', 4326)),
(154, 'amparo', '4', 6, 231303, ST_GeomFromText('Point (-71.65173 10.66001)', 4326)),
(155, 'amparo', '5', 6, 231303, ST_GeomFromText('Point (-71.64679 10.65593)', 4326)),
(156, 'amparo', 'los postes negros', 6, 231303, ST_GeomFromText('Point (-71.64419 10.6628)', 4326)),
(157, 'amparo', '<NAME>', 6, 231303, ST_GeomFromText('Point (-71.65114 10.66322)', 4326)),
(158, 'buena vista', NULL, 6, 231303, ST_GeomFromText('Point (-71.65503 10.64865)', 4326)),
(159, '<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.64385 10.6478)', 4326)),
(160, '<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.64206 10.64472)', 4326)),
(161, '<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.62663 10.63881)', 4326)),
(162, '<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.66066 10.64639)', 4326)),
(163, 'la pastora', 'la conquista', 6, 231303, ST_GeomFromText('Point (-71.65369 10.64428)', 4326)),
(164, 'la pastora', '<NAME>', 6, 231303, ST_GeomFromText('Point (-71.65119 10.6472)', 4326)),
(165, '<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.65481 10.65405)', 4326)),
(166, 'n<NAME>', NULL, 6, 231303, ST_GeomFromText('Point (-71.64738 10.64533)', 4326)),
(167, '<NAME>', '1', 6, 231303, ST_GeomFromText('Point (-71.63782 10.65376)', 4326)),
(168, '<NAME>', '2', 6, 231303, ST_GeomFromText('Point (-71.64062 10.65723)', 4326)),
(169, '<NAME>', '3', 6, 231303, ST_GeomFromText('Point (-71.64324 10.65793)', 4326)),
(170, '<NAME>', '4', 6, 231303, ST_GeomFromText('Point (-71.63767 10.6593)', 4326)),
(171, '<NAME>', 'arismendi', 6, 231303, ST_GeomFromText('Point (-71.62611 10.64096)', 4326)),
(172, '<NAME>', 'miranda la florida', 6, 231303, ST_GeomFromText('Point (-71.62622 10.6436)', 4326)),
(173, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.78002 10.72218)', 4326)),
(174, '<NAME>', '1', 6, 231303, ST_GeomFromText('Point (-71.6333 10.64923)', 4326)),
(175, '<NAME>', '2', 6, 231303, ST_GeomFromText('Point (-71.63833 10.65081)', 4326)),
(176, 'arizona', NULL, 6, 231310, ST_GeomFromText('Point (-71.69615 10.75953)', 4326)),
(177, '<NAME>', '3', 6, 231303, ST_GeomFromText('Point (-71.63475 10.65203)', 4326)),
(178, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.643 10.70894)', 4326)),
(179, '<NAME>', '4', 6, 231303, ST_GeomFromText('Point (-71.63483 10.64709)', 4326)),
(180, '<NAME>', '6', 6, 231303, ST_GeomFromText('Point (-71.64095 10.65224)', 4326)),
(181, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.74599 10.66564)', 4326)),
(182, '<NAME>', '7', 6, 231303, ST_GeomFromText('Point (-71.63961 10.64794)', 4326)),
(183, 'socorro', '1', 6, 231303, ST_GeomFromText('Point (-71.63498 10.64087)', 4326)),
(184, 'socorro', '2', 6, 231303, ST_GeomFromText('Point (-71.6316 10.64378)', 4326)),
(185, '<NAME>', NULL, 9, 231303, ST_GeomFromText('Point (-71.64298 10.66043)', 4326)),
(186, 'visoca', NULL, 9, 231303, ST_GeomFromText('Point (-71.63997 10.64338)', 4326)),
(187, '<NAME>', '1', 6, 231305, ST_GeomFromText('Point (-71.66187 10.6339)', 4326)),
(188, '<NAME>', '2', 6, 231305, ST_GeomFromText('Point (-71.65867 10.63322)', 4326)),
(189, '<NAME>', NULL, NULL, 231317, ST_GeomFromText('Point (-71.74001 10.76035)', 4326)),
(190, '<NAME>', '3', 6, 231305, ST_GeomFromText('Point (-71.6589 10.62937)', 4326)),
(191, '<NAME>', 'matapalo', 6, 231305, ST_GeomFromText('Point (-71.65577 10.63139)', 4326)),
(192, '<NAME>', NULL, 6, 231305, ST_GeomFromText('Point (-71.66199 10.64143)', 4326)),
(193, 'estrella de belen', NULL, 6, 231305, ST_GeomFromText('Point (-71.64062 10.63879)', 4326)),
(194, 'gallo verde', '1', 6, 231305, ST_GeomFromText('Point (-71.65407 10.62998)', 4326)),
(195, 'gallo verde', '2', 6, 231305, ST_GeomFromText('Point (-71.65346 10.62699)', 4326)),
(196, 'gallo verde', 'santa teresita', 6, 231305, ST_GeomFromText('Point (-71.65633 10.62563)', 4326)),
(197, 'ix<NAME>', NULL, 6, 231305, ST_GeomFromText('Point (-71.66253 10.62873)', 4326)),
(198, 'la pastora', 'indio mara', 6, 231305, ST_GeomFromText('Point (-71.64866 10.64163)', 4326)),
(199, 'los claveles', '1', 6, 231305, ST_GeomFromText('Point (-71.64975 10.63783)', 4326)),
(200, 'los claveles', '2', 6, 231305, ST_GeomFromText('Point (-71.64655 10.63719)', 4326)),
(201, 'los claveles', '4', 6, 231305, ST_GeomFromText('Point (-71.6513 10.63497)', 4326)),
(202, 'los claveles', '5', 6, 231305, ST_GeomFromText('Point (-71.65225 10.6396)', 4326)),
(203, 'los claveles', 'los isleños', 6, 231305, ST_GeomFromText('Point (-71.64657 10.63459)', 4326)),
(204, 'los claveles', 'los lirios', 6, 231305, ST_GeomFromText('Point (-71.64199 10.64097)', 4326)),
(205, 'los claveles', 'mi chinita', 6, 231305, ST_GeomFromText('Point (-71.64394 10.63834)', 4326)),
(206, '<NAME>', NULL, 6, 231305, ST_GeomFromText('Point (-71.66336 10.62563)', 4326)),
(207, 'nucleo parque las palmeras', NULL, 6, 231305, ST_GeomFromText('Point (-71.64351 10.63456)', 4326)),
(208, 'padre de la patria', NULL, 6, 231305, ST_GeomFromText('Point (-71.63963 10.63724)', 4326)),
(209, 'santa clara norte', NULL, 6, 231305, ST_GeomFromText('Point (-71.64097 10.63059)', 4326)),
(210, 'socorro', 'royal', 6, 231305, ST_GeomFromText('Point (-71.63694 10.639)', 4326)),
(211, 'terrazas de sabaneta', NULL, 6, 231305, ST_GeomFromText('Point (-71.646 10.62994)', 4326)),
(212, 'el araguaney', NULL, 9, 231305, ST_GeomFromText('Point (-71.6503 10.63156)', 4326)),
(213, 'el palmeral', NULL, 9, 231305, ST_GeomFromText('Point (-71.6452 10.63399)', 4326)),
(214, 'el varillal', NULL, 9, 231305, ST_GeomFromText('Point (-71.65923 10.62573)', 4326)),
(215, 'gallo verde', NULL, 9, 231305, ST_GeomFromText('Point (-71.65643 10.628)', 4326)),
(216, 'la vega', NULL, 9, 231305, ST_GeomFromText('Point (-71.66184 10.62406)', 4326)),
(217, 'las palmeras', NULL, 9, 231305, ST_GeomFromText('Point (-71.64396 10.63215)', 4326)),
(218, 'los almendros', NULL, 9, 231305, ST_GeomFromText('Point (-71.66179 10.62554)', 4326)),
(219, 'parque la colina', NULL, 9, 231305, ST_GeomFromText('Point (-71.64205 10.63716)', 4326)),
(220, 'arismendi', NULL, 6, 231305, ST_GeomFromText('Point (-71.63182 10.63885)', 4326)),
(221, 'union', NULL, 6, 231305, ST_GeomFromText('Point (-71.66135 10.64336)', 4326)),
(222, 'union', '<NAME>', 6, 231305, ST_GeomFromText('Point (-71.66159 10.63896)', 4326)),
(223, 'el guayabal', NULL, 8, 231305, ST_GeomFromText('Point (-71.64876 10.62806)', 4326)),
(224, 'fac', NULL, 8, 231305, ST_GeomFromText('Point (-71.65118 10.6268)', 4326)),
(225, 'la paz', '1', 8, 231305, ST_GeomFromText('Point (-71.65477 10.6366)', 4326)),
(226, 'la paz', '2', 8, 231305, ST_GeomFromText('Point (-71.65667 10.64115)', 4326)),
(227, 'la paz', '<NAME>', 8, 231305, ST_GeomFromText('Point (-71.65817 10.63798)', 4326)),
(228, '<NAME>', NULL, 8, 231305, ST_GeomFromText('Point (-71.63587 10.63404)', 4326)),
(229, '<NAME>', 'sector el vivero', 8, 231305, ST_GeomFromText('Point (-71.63314 10.63648)', 4326)),
(230, 'altamira sur', NULL, 6, 231306, ST_GeomFromText('Point (-71.63338 10.61563)', 4326)),
(231, 'altamira sur', '<NAME>', 6, 231306, ST_GeomFromText('Point (-71.6297 10.61224)', 4326)),
(232, 'altamira sur', '<NAME>', 6, 231306, ST_GeomFromText('Point (-71.62868 10.61703)', 4326)),
(233, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.6354 10.62508)', 4326)),
(234, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62286 10.62836)', 4326)),
(235, 'chocolate', NULL, 6, 231306, ST_GeomFromText('Point (-71.61709 10.62617)', 4326)),
(236, 'corito', '3', 6, 231306, ST_GeomFromText('Point (-71.61349 10.61524)', 4326)),
(237, 'corito', '2', 6, 231306, ST_GeomFromText('Point (-71.61679 10.61322)', 4326)),
(238, 'corito', '4', 6, 231306, ST_GeomFromText('Point (-71.61794 10.61794)', 4326)),
(239, 'dia de la raza', NULL, 6, 231306, ST_GeomFromText('Point (-71.63631 10.6206)', 4326)),
(240, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62611 10.62738)', 4326)),
(241, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.61697 10.60515)', 4326)),
(242, 'el poniente', NULL, 6, 231306, ST_GeomFromText('Point (-71.6231 10.63456)', 4326)),
(243, 'el progreso', '1', 6, 231306, ST_GeomFromText('Point (-71.6237 10.6189)', 4326)),
(244, 'el progreso', '2', 6, 231306, ST_GeomFromText('Point (-71.62507 10.61687)', 4326)),
(245, 'la arreaga', '1', 6, 231306, ST_GeomFromText('Point (-71.61114 10.61226)', 4326)),
(246, 'la arreaga', '2', 6, 231306, ST_GeomFromText('Point (-71.61259 10.60867)', 4326)),
(247, 'la chinita', NULL, 6, 231306, ST_GeomFromText('Point (-71.62584 10.61177)', 4326)),
(248, 'la pomona', 'la fortaleza', 6, 231306, ST_GeomFromText('Point (-71.63232 10.62598)', 4326)),
(249, 'la rancheria', '1', 6, 231306, ST_GeomFromText('Point (-71.61454 10.62067)', 4326)),
(250, 'la rancheria', '2', 6, 231306, ST_GeomFromText('Point (-71.61348 10.61767)', 4326)),
(251, 'la rancheria', '<NAME>', 6, 231306, ST_GeomFromText('Point (-71.61429 10.62332)', 4326)),
(252, 'las banderas', NULL, 6, 231306, ST_GeomFromText('Point (-71.62689 10.61506)', 4326)),
(253, 'nuevo', NULL, 6, 231306, ST_GeomFromText('Point (-71.62136 10.62409)', 4326)),
(255, 'pomona', '3', 6, 231306, ST_GeomFromText('Point (-71.6282 10.6282)', 4326)),
(256, 'pomona', '1', 6, 231306, ST_GeomFromText('Point (-71.62685 10.62439)', 4326)),
(257, 'pomona', 'corea', 6, 231306, ST_GeomFromText('Point (-71.62985 10.62236)', 4326)),
(258, 'pomona', '5', 6, 231306, ST_GeomFromText('Point (-71.63179 10.62945)', 4326)),
(259, 'pomona', '6', 6, 231306, ST_GeomFromText('Point (-71.62623 10.63168)', 4326)),
(260, 'pravia', NULL, 6, 231306, ST_GeomFromText('Point (-71.62044 10.63172)', 4326)),
(261, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62187 10.61795)', 4326)),
(262, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62963 10.6097)', 4326)),
(263, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62694 10.62106)', 4326)),
(264, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62441 10.62175)', 4326)),
(265, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.62654 10.63609)', 4326)),
(266, '<NAME>ara', '1', 6, 231306, ST_GeomFromText('Point (-71.63965 10.62822)', 4326)),
(267, 'santa clara', '2', 6, 231306, ST_GeomFromText('Point (-71.63957 10.62509)', 4326)),
(268, 'santo domingo', '1', 6, 231306, ST_GeomFromText('Point (-71.61799 10.62218)', 4326)),
(269, 'las piramides', NULL, 9, 231306, ST_GeomFromText('Point (-71.63022 10.62571)', 4326)),
(254, 'pomona', '4', 6, 231306, ST_GeomFromText('Point (-71.62669 10.62999)', 4326)),
(270, 'haticos ii', '1', 4, 231306, ST_GeomFromText('Point (-71.62037 10.603)', 4326)),
(271, 'haticos ii', '2', 4, 231306, ST_GeomFromText('Point (-71.62358 10.60347)', 4326)),
(272, 'la arreaga', 'hospital general del sur', 6, 231306, ST_GeomFromText('Point (-71.62364 10.6008)', 4326)),
(273, 'villa esperanza', NULL, 6, 231306, ST_GeomFromText('Point (-71.62976 10.61984)', 4326)),
(274, '<NAME>', NULL, 7, 231306, ST_GeomFromText('Point (-71.60935 10.61609)', 4326)),
(275, 'fundacion maracaibo', '1', 8, 231306, ST_GeomFromText('Point (-71.62776 10.60685)', 4326)),
(276, 'fundacion maracaibo', '2', 8, 231306, ST_GeomFromText('Point (-71.6274 10.60359)', 4326)),
(277, 'fundacion mendoza', NULL, 8, 231306, ST_GeomFromText('Point (-71.6204 10.60827)', 4326)),
(278, 'la pomona', NULL, 8, 231306, ST_GeomFromText('Point (-71.63049 10.63208)', 4326)),
(279, 'los haticos', NULL, 8, 231306, ST_GeomFromText('Point (-71.62112 10.6058)', 4326)),
(280, 'altos de la vanega', NULL, 6, 231313, ST_GeomFromText('Point (-71.6613 10.62106)', 4326)),
(281, 'bello monte', '2', 6, 231313, ST_GeomFromText('Point (-71.64122 10.60329)', 4326)),
(282, 'bello monte', 'sanatorio', 6, 231313, ST_GeomFromText('Point (-71.64321 10.60056)', 4326)),
(283, 'brisas del sur', '1', 6, 231313, ST_GeomFromText('Point (-71.63434 10.60001)', 4326)),
(284, 'brisas del sur', '2', 6, 231313, ST_GeomFromText('Point (-71.63377 10.60333)', 4326)),
(285, 'brisas del sur', '3', 6, 231313, ST_GeomFromText('Point (-71.62994 10.60069)', 4326)),
(286, 'el calvario', NULL, 6, 231313, ST_GeomFromText('Point (-71.65041 10.6223)', 4326)),
(287, 'el pajar', 'santa clara', 6, 231313, ST_GeomFromText('Point (-71.64131 10.61063)', 4326)),
(288, 'la brecha', NULL, 6, 231313, ST_GeomFromText('Point (-71.64083 10.61718)', 4326)),
(289, 'la frontera', NULL, 6, 231313, ST_GeomFromText('Point (-71.63636 10.60533)', 4326)),
(290, 'la libertad', NULL, 6, 231313, ST_GeomFromText('Point (-71.65331 10.6184)', 4326)),
(291, 'la mision', NULL, 6, 231313, ST_GeomFromText('Point (-71.64743 10.62046)', 4326)),
(292, 'la mision', 'la sonrisa', 6, 231313, ST_GeomFromText('Point (-71.64335 10.622)', 4326)),
(293, 'la mision', 'santa ana', 6, 231313, ST_GeomFromText('Point (-71.64576 10.62175)', 4326)),
(294, 'las malvinas', NULL, 6, 231313, ST_GeomFromText('Point (-71.65265 10.60878)', 4326)),
(295, 'los andes', '1', 6, 231313, ST_GeomFromText('Point (-71.64193 10.61351)', 4326)),
(296, 'los andes', '2', 6, 231313, ST_GeomFromText('Point (-71.64226 10.61839)', 4326)),
(297, 'los andes', '3', 6, 231313, ST_GeomFromText('Point (-71.64615 10.614)', 4326)),
(298, 'los andes', '<NAME>', 6, 231313, ST_GeomFromText('Point (-71.64459 10.61866)', 4326)),
(299, 'los estanques', '1', 6, 231313, ST_GeomFromText('Point (-71.64731 10.60481)', 4326)),
(300, 'los pinos', NULL, 6, 231313, ST_GeomFromText('Point (-71.63238 10.60888)', 4326)),
(301, 'los pinos', '<NAME> los pinos', 6, 231313, ST_GeomFromText('Point (-71.6308 10.60711)', 4326)),
(302, 'los pinos', 'la entrada', 6, 231313, ST_GeomFromText('Point (-71.63518 10.61355)', 4326)),
(303, 'los pinos', '<NAME>', 6, 231313, ST_GeomFromText('Point (-71.63574 10.61497)', 4326)),
(304, 'maria concepcion palacion', '2', 6, 231313, ST_GeomFromText('Point (-71.63689 10.617)', 4326)),
(305, 'maria concepcion palacios', '1', 6, 231313, ST_GeomFromText('Point (-71.64108 10.62278)', 4326)),
(306, 'mi triunfo', NULL, 6, 231313, ST_GeomFromText('Point (-71.65272 10.60497)', 4326)),
(308, 'san benito de palermo', NULL, 6, 231313, ST_GeomFromText('Point (-71.65275 10.61137)', 4326)),
(309, '<NAME>', NULL, 6, 231313, ST_GeomFromText('Point (-71.65716 10.61271)', 4326)),
(310, '<NAME>', 'buenos aires', 6, 231313, ST_GeomFromText('Point (-71.65853 10.62066)', 4326)),
(311, '<NAME>', NULL, 6, 231313, ST_GeomFromText('Point (-71.64078 10.60609)', 4326)),
(312, 'terrazas de sabaneta', NULL, 9, 231313, ST_GeomFromText('Point (-71.64421 10.62776)', 4326)),
(313, 'colinas del sur', NULL, 6, 231313, ST_GeomFromText('Point (-71.63018 10.59818)', 4326)),
(314, '<NAME>', NULL, 6, 231313, ST_GeomFromText('Point (-71.64714 10.60809)', 4326)),
(315, 'tamanaco', NULL, 4, 231313, ST_GeomFromText('Point (-71.64606 10.61646)', 4326)),
(316, '<NAME>', NULL, 8, 231313, ST_GeomFromText('Point (-71.63346 10.6011)', 4326)),
(317, '<NAME>', NULL, 8, 231313, ST_GeomFromText('Point (-71.63659 10.61009)', 4326)),
(318, '<NAME>', '1', 8, 231313, ST_GeomFromText('Point (-71.64918 10.61802)', 4326)),
(319, '<NAME>', '2', 8, 231313, ST_GeomFromText('Point (-71.64963 10.61546)', 4326)),
(320, '<NAME>', NULL, 8, 231313, ST_GeomFromText('Point (-71.64774 10.62517)', 4326)),
(321, 'richmond', NULL, 8, 231313, ST_GeomFromText('Point (-71.63845 10.59733)', 4326)),
(323, 'el gaitero', NULL, 6, 231312, ST_GeomFromText('Point (-71.67837 10.58986)', 4326)),
(324, 'el museo', NULL, 6, 231312, ST_GeomFromText('Point (-71.67516 10.5964)', 4326)),
(325, 'integracion comunal', '23 de febrero', 6, 231312, ST_GeomFromText('Point (-71.66919 10.60914)', 4326)),
(326, 'integracion comunal', '5', 6, 231312, ST_GeomFromText('Point (-71.66492 10.59937)', 4326)),
(327, 'integracion comunal', '6 de enero', 6, 231312, ST_GeomFromText('Point (-71.66073 10.60191)', 4326)),
(328, 'integracion comunal', 'bicentenerio girardot', 6, 231312, ST_GeomFromText('Point (-71.66074 10.60645)', 4326)),
(329, 'integracion comunal', 'colinas del country', 6, 231312, ST_GeomFromText('Point (-71.66457 10.60567)', 4326)),
(330, 'integracion comunal', 'colinas del country independencia', 6, 231312, ST_GeomFromText('Point (-71.66699 10.60634)', 4326)),
(331, 'integracion comunal', '<NAME>', 6, 231312, ST_GeomFromText('Point (-71.66732 10.60392)', 4326)),
(332, 'integracion comunal', 'la industrial', 6, 231312, ST_GeomFromText('Point (-71.6611 10.59947)', 4326)),
(333, 'integracion comunal', '<NAME>', 6, 231312, ST_GeomFromText('Point (-71.67489 10.60447)', 4326)),
(334, 'integracion comunal', '<NAME>', 6, 231312, ST_GeomFromText('Point (-71.66254 10.60678)', 4326)),
(335, 'integracion comunal', 'yet set', 6, 231312, ST_GeomFromText('Point (-71.66663 10.60161)', 4326)),
(336, '<NAME>', '1', 6, 231312, ST_GeomFromText('Point (-71.66319 10.61511)', 4326)),
(337, '<NAME>', '2', 6, 231312, ST_GeomFromText('Point (-71.66232 10.61195)', 4326)),
(338, '<NAME>', '1', 6, 231312, ST_GeomFromText('Point (-71.66899 10.59899)', 4326)),
(339, '<NAME>', '2', 6, 231312, ST_GeomFromText('Point (-71.66942 10.59639)', 4326)),
(340, '<NAME>', '1', 6, 231312, ST_GeomFromText('Point (-71.65431 10.58981)', 4326)),
(341, '<NAME>', '2', 6, 231312, ST_GeomFromText('Point (-71.65271 10.59738)', 4326)),
(342, '<NAME>', '1', 6, 231312, ST_GeomFromText('Point (-71.68313 10.60027)', 4326)),
(343, '<NAME>', '2', 6, 231312, ST_GeomFromText('Point (-71.68322 10.59602)', 4326)),
(344, '<NAME>', '3', 6, 231312, ST_GeomFromText('Point (-71.68698 10.59561)', 4326)),
(345, '<NAME>', NULL, 6, 231312, ST_GeomFromText('Point (-71.65784 10.60215)', 4326)),
(346, '<NAME>', NULL, 6, 231312, ST_GeomFromText('Point (-71.64795 10.59152)', 4326)),
(347, '<NAME>', NULL, 9, 231312, ST_GeomFromText('Point (-71.65837 10.60469)', 4326)),
(348, 'amalwin', NULL, 6, 231312, ST_GeomFromText('Point (-71.68578 10.59217)', 4326)),
(349, '<NAME>', '3', 6, 231302, ST_GeomFromText('Point (-71.61284 10.64217)', 4326)),
(350, 'villa hermosa', NULL, 8, 231306, ST_GeomFromText('Point (-71.62727 10.61916)', 4326)),
(351, 'vista bella', NULL, 9, 231303, ST_GeomFromText('Point (-71.6575 10.65194)', 4326)),
(352, 'los mangos', '1', 8, 231310, ST_GeomFromText('Point (-71.66181 10.70039)', 4326)),
(353, 'villas del sur', NULL, 8, 231313, ST_GeomFromText('Point (-71.63286 10.59746)', 4326)),
(354, 'villa delicias', NULL, 8, 231311, ST_GeomFromText('Point (-71.62842 10.69452)', 4326)),
(355, 'villa duna', NULL, 8, 231311, ST_GeomFromText('Point (-71.62506 10.71163)', 4326)),
(322, '<NAME>', NULL, 6, 231312, ST_GeomFromText('Point (-71.66068 10.60925)', 4326)),
(356, 'zapara', NULL, 8, 231307, ST_GeomFromText('Point (-71.60484 10.69035)', 4326)),
(357, 'vista del lago', NULL, 8, 231306, ST_GeomFromText('Point (-71.61998 10.60076)', 4326)),
(358, 'nuevo renacer', NULL, 6, 231303, ST_GeomFromText('Point (-71.64898 10.64602)', 4326)),
(359, 'sucre', NULL, 8, 231303, ST_GeomFromText('Point (-71.63982 10.66205)', 4326)),
(360, 'sobre la misma tierra', NULL, 6, 231317, ST_GeomFromText('Point (-71.68582 10.71634)', 4326)),
(361, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.77388 10.6469)', 4326)),
(362, 'la pionera', NULL, 8, 231309, ST_GeomFromText('Point (-71.70252 10.6628)', 4326)),
(363, '<NAME>', '1', 8, 231309, ST_GeomFromText('Point (-71.66791 10.65223)', 4326)),
(364, '<NAME>', '2', 8, 231309, ST_GeomFromText('Point (-71.66882 10.65873)', 4326)),
(365, '<NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.66759 10.64288)', 4326)),
(366, '<NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.66895 10.63682)', 4326)),
(367, '<NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.66246 10.65073)', 4326)),
(368, 'villa baralt', '1', 8, 231309, ST_GeomFromText('Point (-71.69525 10.657)', 4326)),
(369, 'villa baralt', '2', 8, 231309, ST_GeomFromText('Point (-71.69079 10.65732)', 4326)),
(370, '<NAME> mi fortaleza', NULL, 6, 231318, ST_GeomFromText('Point (-71.72972 10.60999)', 4326)),
(371, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.7754 10.63974)', 4326)),
(372, 'la bendicion de dios', NULL, 6, 231318, ST_GeomFromText('Point (-71.73225 10.65174)', 4326)),
(373, 'la gran parada', NULL, 6, 231318, ST_GeomFromText('Point (-71.7361 10.64911)', 4326)),
(374, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.72912 10.64553)', 4326)),
(375, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.77677 10.6049)', 4326)),
(376, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.7342 10.59851)', 4326)),
(377, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.75965 10.63835)', 4326)),
(378, 'el ancianato hogar santa cruz', NULL, 6, 231318, ST_GeomFromText('Point (-71.7304 10.67109)', 4326)),
(379, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.74855 10.64439)', 4326)),
(380, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.73819 10.60085)', 4326)),
(381, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.77891 10.64288)', 4326)),
(382, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.73978 10.64724)', 4326)),
(383, '<NAME>', NULL, 6, 231318, ST_GeomFromText('Point (-71.76683 10.71346)', 4326)),
(384, '<NAME>', NULL, 7, 231318, ST_GeomFromText('Point (-71.73726 10.66242)', 4326)),
(385, '<NAME>', NULL, 8, 231318, ST_GeomFromText('Point (-71.72515 10.63918)', 4326)),
(386, 'anibal ospino', NULL, 6, 231301, ST_GeomFromText('Point (-71.69489 10.68474)', 4326)),
(387, '1 de agosto', '1', 6, 231309, ST_GeomFromText('Point (-71.66426 10.64718)', 4326)),
(388, '24 de septiembre', 'los planazos', 6, 231310, ST_GeomFromText('Point (-71.6557 10.69743)', 4326)),
(389, '1 de agosto', '2', 6, 231309, ST_GeomFromText('Point (-71.66512 10.65165)', 4326)),
(390, '14 de julio', NULL, 6, 231309, ST_GeomFromText('Point (-71.70455 10.66093)', 4326)),
(391, '15 de julio', NULL, 6, 231309, ST_GeomFromText('Point (-71.71069 10.65319)', 4326)),
(392, '23 de enero', '1', 6, 231306, ST_GeomFromText('Point (-71.61635 10.60994)', 4326)),
(393, '19 de abril', NULL, 6, 231309, ST_GeomFromText('Point (-71.67645 10.629)', 4326)),
(394, '7 de enero', NULL, 6, 231309, ST_GeomFromText('Point (-71.70649 10.66516)', 4326)),
(395, '14 de noviembre', NULL, 6, 231315, ST_GeomFromText('Point (-71.67006 10.67408)', 4326)),
(397, 'ajonjoli', NULL, 6, 231310, ST_GeomFromText('Point (-71.64593 10.71606)', 4326)),
(398, 'arca de noe', NULL, 6, 231318, ST_GeomFromText('Point (-71.72606 10.65445)', 4326)),
(399, 'ciudad perdida', NULL, 4, 231318, ST_GeomFromText('Point (-71.75372 10.67734)', 4326)),
(400, 'el chaparral', NULL, 6, 231318, ST_GeomFromText('Point (-71.77389 10.64277)', 4326)),
(401, 'el curarire', NULL, 6, 231318, ST_GeomFromText('Point (-71.77815 10.64805)', 4326)),
(402, 'el potente', NULL, 6, 231318, ST_GeomFromText('Point (-71.76735 10.64973)', 4326)),
(403, 'el principio', NULL, 6, 231318, ST_GeomFromText('Point (-71.76033 10.64801)', 4326)),
(404, '18 de octubre', NULL, 6, 231307, ST_GeomFromText('Point (-71.60611 10.69711)', 4326)),
(405, '18 de octubre', 'coquivacoa', 6, 231307, ST_GeomFromText('Point (-71.6087 10.69848)', 4326)),
(406, '18 de octubre', 'el valle', 6, 231307, ST_GeomFromText('Point (-71.60999 10.70437)', 4326)),
(407, '18 de octubre', 'la salina', 6, 231307, ST_GeomFromText('Point (-71.60605 10.7048)', 4326)),
(408, '18 de octubre', 'norte independiente', 6, 231307, ST_GeomFromText('Point (-71.60748 10.70241)', 4326)),
(409, 'altos de jalisco', '1', 6, 231307, ST_GeomFromText('Point (-71.60423 10.69866)', 4326)),
(410, '18 de octubre', 'las playitas', 6, 231314, ST_GeomFromText('Point (-71.61458 10.69044)', 4326)),
(411, 'canchancha', NULL, 6, 231311, ST_GeomFromText('Point (-71.62545 10.72041)', 4326)),
(412, '<NAME>', '1', 6, 231310, ST_GeomFromText('Point (-71.66389 10.71131)', 4326)),
(413, '<NAME>', '2', 6, 231310, ST_GeomFromText('Point (-71.6648 10.71574)', 4326)),
(414, 'bella esperanza', NULL, 6, 231310, ST_GeomFromText('Point (-71.66849 10.71809)', 4326)),
(415, 'blanco', NULL, 6, 231310, ST_GeomFromText('Point (-71.66533 10.70639)', 4326)),
(416, '1 de mayo', '1', 6, 231308, ST_GeomFromText('Point (-71.6288 10.65862)', 4326)),
(417, '1 de mayo', '2', 6, 231308, ST_GeomFromText('Point (-71.62845 10.65695)', 4326)),
(418, 'bajo seco', NULL, 6, 231304, ST_GeomFromText('Point (-71.66373 10.69744)', 4326)),
(419, 'ana maria campos', NULL, 6, 231315, ST_GeomFromText('Point (-71.66142 10.67038)', 4326)),
(420, 'el pedregal', NULL, 6, 231315, ST_GeomFromText('Point (-71.67717 10.6665)', 4326)),
(421, '11 de febrero', NULL, 6, 231305, ST_GeomFromText('Point (-71.63858 10.64101)', 4326)),
(422, '5 de julio', '1', 6, 231305, ST_GeomFromText('Point (-71.65249 10.63277)', 4326)),
(423, '5 de julio', '2', 6, 231305, ST_GeomFromText('Point (-71.6473 10.63138)', 4326)),
(424, '<NAME>', NULL, 6, 231305, ST_GeomFromText('Point (-71.64798 10.63339)', 4326)),
(425, '23 de enero', '2', 6, 231306, ST_GeomFromText('Point (-71.61979 10.61371)', 4326)),
(426, '23 de enero', '3', 6, 231306, ST_GeomFromText('Point (-71.62178 10.61179)', 4326)),
(427, 'altamira norte', NULL, 6, 231306, ST_GeomFromText('Point (-71.63423 10.61924)', 4326)),
(428, 'altos de jalisco', '2', 6, 231307, ST_GeomFromText('Point (-71.60013 10.69862)', 4326)),
(429, 'altos de jalisco', '3', 6, 231307, ST_GeomFromText('Point (-71.60299 10.70368)', 4326)),
(430, 'altos de milagro norte', NULL, 6, 231307, ST_GeomFromText('Point (-71.60272 10.71046)', 4326)),
(431, 'la lucha', NULL, 6, 231307, ST_GeomFromText('Point (-71.61434 10.70807)', 4326)),
(432, '<NAME>', NULL, 6, 231307, ST_GeomFromText('Point (-71.60031 10.69211)', 4326)),
(433, 'los reyes magos', NULL, 6, 231307, ST_GeomFromText('Point (-71.608 10.70972)', 4326)),
(434, 'nuevo mundo', NULL, 6, 231307, ST_GeomFromText('Point (-71.60245 10.68977)', 4326)),
(435, 'puntica de piedra', NULL, 6, 231307, ST_GeomFromText('Point (-71.59498 10.69597)', 4326)),
(436, '18 de octubre', 'granadillo', 6, 231307, ST_GeomFromText('Point (-71.60964 10.69375)', 4326)),
(437, '18 de octubre', 'los tres caminos', 6, 231307, ST_GeomFromText('Point (-71.60606 10.6947)', 4326)),
(438, '18 de octubre', 'pueblo aparte', 6, 231307, ST_GeomFromText('Point (-71.60668 10.69249)', 4326)),
(439, 'romulo gallegos', NULL, 6, 231307, ST_GeomFromText('Point (-71.61814 10.71231)', 4326)),
(440, 'santa rosa de tierra', NULL, 6, 231307, ST_GeomFromText('Point (-71.61801 10.71658)', 4326)),
(441, 'coquivacoa norte', NULL, 6, 231307, ST_GeomFromText('Point (-71.61669 10.72188)', 4326)),
(442, 'santa rosa de agua', '1', 6, 231307, ST_GeomFromText('Point (-71.59797 10.71218)', 4326)),
(443, 'santa rosa de agua', '2', 6, 231307, ST_GeomFromText('Point (-71.60126 10.70705)', 4326)),
(444, 'santa rosa de agua', 'el rincon del mangle', 6, 231307, ST_GeomFromText('Point (-71.60199 10.71562)', 4326)),
(445, 'santa rosa', 'los pescadores', 6, 231307, ST_GeomFromText('Point (-71.60974 10.71472)', 4326)),
(446, 'teotiste de gallegos', NULL, 6, 231307, ST_GeomFromText('Point (-71.61417 10.7113)', 4326)),
(447, 'teotiste de gallegos norte', NULL, 6, 231307, ST_GeomFromText('Point (-71.61694 10.71404)', 4326)),
(448, 'isla dorada', NULL, 9, 231307, ST_GeomFromText('Point (-71.6197 10.73622)', 4326)),
(449, 'la paragua', NULL, 9, 231307, ST_GeomFromText('Point (-71.62194 10.69301)', 4326)),
(450, '<NAME>', NULL, 6, 231307, ST_GeomFromText('Point (-71.6144 10.72447)', 4326)),
(451, '<NAME>', NULL, 8, 231307, ST_GeomFromText('Point (-71.61762 10.69564)', 4326)),
(452, 'el doral', NULL, 8, 231307, ST_GeomFromText('Point (-71.62211 10.69823)', 4326)),
(453, 'el doral norte', NULL, 8, 231307, ST_GeomFromText('Point (-71.62213 10.7074)', 4326)),
(454, 'el portal', NULL, 8, 231307, ST_GeomFromText('Point (-71.62249 10.69561)', 4326)),
(455, 'irama', NULL, 8, 231307, ST_GeomFromText('Point (-71.6133 10.69491)', 4326)),
(456, 'las camelias', NULL, 8, 231307, ST_GeomFromText('Point (-71.61918 10.70031)', 4326)),
(457, '<NAME>', NULL, 8, 231307, ST_GeomFromText('Point (-71.61644 10.702)', 4326)),
(458, '<NAME>', NULL, 8, 231307, ST_GeomFromText('Point (-71.62231 10.70213)', 4326)),
(459, '18 de octubre', '<NAME>', 6, 231314, ST_GeomFromText('Point (-71.60952 10.68897)', 4326)),
(460, '<NAME>', 'cañada santa alicia', 6, 231314, ST_GeomFromText('Point (-71.59759 10.66889)', 4326)),
(461, '<NAME>', '<NAME>', 6, 231314, ST_GeomFromText('Point (-71.59269 10.66798)', 4326)),
(462, '<NAME>', 'mota blanca y coto', 6, 231314, ST_GeomFromText('Point (-71.59402 10.67232)', 4326)),
(463, 'las tarabas', NULL, 6, 231314, ST_GeomFromText('Point (-71.62285 10.68403)', 4326)),
(464, '<NAME>', NULL, 6, 231314, ST_GeomFromText('Point (-71.61308 10.68519)', 4326)),
(465, 'el parque', NULL, 9, 231314, ST_GeomFromText('Point (-71.62497 10.69271)', 4326)),
(466, 'el porton', NULL, 9, 231314, ST_GeomFromText('Point (-71.61593 10.68729)', 4326)),
(467, 'el rosal', NULL, 9, 231314, ST_GeomFromText('Point (-71.6131 10.6876)', 4326)),
(468, 'la muchachera', NULL, 9, 231314, ST_GeomFromText('Point (-71.61819 10.68726)', 4326)),
(469, 'la pajarera', NULL, 9, 231314, ST_GeomFromText('Point (-71.62215 10.67936)', 4326)),
(470, 'la paraguita', NULL, 9, 231314, ST_GeomFromText('Point (-71.62315 10.69151)', 4326)),
(471, 'las naciones', NULL, 9, 231314, ST_GeomFromText('Point (-71.62282 10.68805)', 4326)),
(472, '19 de abril', NULL, 7, 231314, ST_GeomFromText('Point (-71.60057 10.68725)', 4326)),
(473, '5 de julio norte', '2', 7, 231314, ST_GeomFromText('Point (-71.61344 10.6678)', 4326)),
(474, '5 de julio norte', '3', 7, 231314, ST_GeomFromText('Point (-71.61046 10.66816)', 4326)),
(475, '5 de julio norte', '1', 7, 231314, ST_GeomFromText('Point (-71.61697 10.66718)', 4326)),
(476, 'bella vista', NULL, 7, 231314, ST_GeomFromText('Point (-71.60624 10.6692)', 4326)),
(477, 'bella vista', '<NAME>', 7, 231314, ST_GeomFromText('Point (-71.60537 10.67928)', 4326)),
(478, '<NAME>', NULL, 7, 231314, ST_GeomFromText('Point (-71.607 10.6737)', 4326)),
(479, 'cañada virginia', NULL, 6, 231314, ST_GeomFromText('Point (-71.59897 10.67785)', 4326)),
(480, 'colonia bella vista', NULL, 7, 231314, ST_GeomFromText('Point (-71.60368 10.67423)', 4326)),
(481, '<NAME>', NULL, 6, 231314, ST_GeomFromText('Point (-71.59666 10.68157)', 4326)),
(482, '<NAME>', NULL, 6, 231314, ST_GeomFromText('Point (-71.60005 10.67956)', 4326)),
(483, '<NAME>', 'hospital psiquiatrico', 6, 231314, ST_GeomFromText('Point (-71.60176 10.68438)', 4326)),
(484, 'la lago', '1', 7, 231314, ST_GeomFromText('Point (-71.60046 10.67037)', 4326)),
(485, 'la lago', '3', 7, 231314, ST_GeomFromText('Point (-71.60103 10.67412)', 4326)),
(486, 'las cuarentas', NULL, 7, 231314, ST_GeomFromText('Point (-71.61961 10.6841)', 4326)),
(487, '<NAME>', NULL, 7, 231314, ST_GeomFromText('Point (-71.6065 10.68475)', 4326)),
(488, 'santa rita', NULL, 7, 231314, ST_GeomFromText('Point (-71.6114 10.68088)', 4326)),
(489, 'tierra negra', NULL, 7, 231314, ST_GeomFromText('Point (-71.60779 10.67977)', 4326)),
(490, 'tierra negra', 'bella vista', 7, 231314, ST_GeomFromText('Point (-71.61143 10.67196)', 4326)),
(491, 'tierra negra', '<NAME>', 7, 231314, ST_GeomFromText('Point (-71.61153 10.67562)', 4326)),
(492, 'tierra negra', '<NAME>', 7, 231314, ST_GeomFromText('Point (-71.61466 10.67167)', 4326)),
(493, 'tierra negra', 'la caridad', 7, 231314, ST_GeomFromText('Point (-71.61961 10.678)', 4326)),
(494, 'tierra negra', 'la esperanza', 7, 231314, ST_GeomFromText('Point (-71.61536 10.67528)', 4326)),
(495, 'tierra negra', 'las delicias', 7, 231314, ST_GeomFromText('Point (-71.61932 10.67512)', 4326)),
(496, 'tierra negra', 'urquinaona', 7, 231314, ST_GeomFromText('Point (-71.61862 10.6713)', 4326)),
(497, 'creole gabaldon y virginia', NULL, 8, 231314, ST_GeomFromText('Point (-71.59671 10.67606)', 4326)),
(498, 'la estrella', NULL, 8, 231314, ST_GeomFromText('Point (-71.61569 10.68207)', 4326)),
(499, 'maracaibo', '1', 8, 231314, ST_GeomFromText('Point (-71.61982 10.68043)', 4326)),
(500, 'maracaibo', '2', 8, 231314, ST_GeomFromText('Point (-71.6157 10.67929)', 4326)),
(501, 'pilarcito y ricaurte', NULL, 8, 231314, ST_GeomFromText('Point (-71.62019 10.68917)', 4326)),
(502, 'san rafael', 'bella vista', 8, 231314, ST_GeomFromText('Point (-71.60307 10.67904)', 4326)),
(503, 'viento norte', NULL, 8, 231314, ST_GeomFromText('Point (-71.61629 10.68414)', 4326)),
(504, 'zapara', NULL, 8, 231314, ST_GeomFromText('Point (-71.60547 10.68728)', 4326)),
(505, '<NAME>', 'parte alta', 6, 231316, ST_GeomFromText('Point (-71.60091 10.66591)', 4326)),
(506, 'el milagro', '1', 6, 231316, ST_GeomFromText('Point (-71.59731 10.66388)', 4326)),
(507, '<NAME>', '1', 6, 231316, ST_GeomFromText('Point (-71.60243 10.66312)', 4326)),
(508, 'las thermas', NULL, 6, 231316, ST_GeomFromText('Point (-71.59616 10.66668)', 4326)),
(509, 'plaza de la republica', NULL, 7, 231316, ST_GeomFromText('Point (-71.60509 10.66389)', 4326)),
(510, '<NAME>', '3', 6, 231316, ST_GeomFromText('Point (-71.60314 10.65977)', 4326)),
(511, 'el milagro', '3', 6, 231316, ST_GeomFromText('Point (-71.59735 10.66015)', 4326)),
(512, 'la consolacion', NULL, 7, 231316, ST_GeomFromText('Point (-71.60847 10.66257)', 4326)),
(513, '<NAME>', '<NAME>', 6, 231316, ST_GeomFromText('Point (-71.6024 10.65498)', 4326)),
(514, '<NAME>', '<NAME>ro', 6, 231316, ST_GeomFromText('Point (-71.59843 10.65561)', 4326)),
(515, 'santa lucia', '1', 6, 231302, ST_GeomFromText('Point (-71.60736 10.65264)', 4326)),
(516, 'santa lucia', '5', 6, 231316, ST_GeomFromText('Point (-71.60197 10.65074)', 4326)),
(517, 'santa lucia', '6', 6, 231316, ST_GeomFromText('Point (-71.60476 10.64503)', 4326)),
(518, '5 de julio sur', NULL, 7, 231302, ST_GeomFromText('Point (-71.61439 10.6625)', 4326)),
(519, 'santa barbara', '1', 6, 231302, ST_GeomFromText('Point (-71.61483 10.6585)', 4326)),
(520, 'la consolacion', NULL, 7, 231302, ST_GeomFromText('Point (-71.61092 10.65873)', 4326)),
(521, 'santa barbara', 'belloso', 6, 231302, ST_GeomFromText('Point (-71.612 10.65118)', 4326)),
(522, '<NAME>', NULL, 7, 231302, ST_GeomFromText('Point (-71.60973 10.6538)', 4326)),
(523, '<NAME>', NULL, 7, 231302, ST_GeomFromText('Point (-71.60743 10.64863)', 4326)),
(524, '<NAME>', 'plaza rafael urdaneta', 6, 231302, ST_GeomFromText('Point (-71.6098 10.64596)', 4326)),
(525, '<NAME>', NULL, 7, 231302, ST_GeomFromText('Point (-71.60353 10.64288)', 4326)),
(526, 'bolivar', NULL, 7, 231302, ST_GeomFromText('Point (-71.60839 10.64132)', 4326)),
(527, 'canchancha', '2', 6, 231311, ST_GeomFromText('Point (-71.62493 10.71679)', 4326)),
(528, '<NAME>', NULL, 6, 231311, ST_GeomFromText('Point (-71.62676 10.68453)', 4326)),
(529, '<NAME>', NULL, 6, 231311, ST_GeomFromText('Point (-71.62614 10.68008)', 4326)),
(530, 'ziruma', NULL, 6, 231311, ST_GeomFromText('Point (-71.63092 10.68432)', 4326)),
(531, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62428 10.72269)', 4326)),
(532, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62286 10.72432)', 4326)),
(533, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.63452 10.69408)', 4326)),
(534, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62607 10.67748)', 4326)),
(535, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62746 10.7037)', 4326)),
(536, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62568 10.70329)', 4326)),
(537, 'delicias', NULL, 7, 231311, ST_GeomFromText('Point (-71.62712 10.69029)', 4326)),
(538, '<NAME>', NULL, 7, 231311, ST_GeomFromText('Point (-71.62651 10.67577)', 4326)),
(539, '<NAME>', NULL, 8, 231311, ST_GeomFromText('Point (-71.62587 10.7108)', 4326)),
(540, 'el naranjal', NULL, 8, 231311, ST_GeomFromText('Point (-71.63163 10.69604)', 4326)),
(541, 'juana de avila', NULL, 8, 231311, ST_GeomFromText('Point (-71.62388 10.67797)', 4326)),
(542, 'la guariña', NULL, 8, 231311, ST_GeomFromText('Point (-71.62984 10.70343)', 4326)),
(543, 'la picola', NULL, 8, 231311, ST_GeomFromText('Point (-71.63626 10.70223)', 4326)),
(544, 'la trinidad', NULL, 8, 231311, ST_GeomFromText('Point (-71.63139 10.68941)', 4326)),
(545, 'mara norte', NULL, 8, 231311, ST_GeomFromText('Point (-71.63868 10.71206)', 4326)),
(546, '<NAME>', NULL, 8, 231311, ST_GeomFromText('Point (-71.63518 10.69775)', 4326)),
(547, 'portal del lago', NULL, 8, 231311, ST_GeomFromText('Point (-71.62494 10.71419)', 4326)),
(548, 'canaima', NULL, 8, 231311, ST_GeomFromText('Point (-71.62834 10.7015)', 4326)),
(905, 'sierra maestra', NULL, 6, 231704, ST_GeomFromText('Point (-71.63864 10.58417)', 4326)),
(551, '<NAME>', '10', 8, 231311, ST_GeomFromText('Point (-71.63163 10.71154)', 4326)),
(552, '<NAME>', '12', 8, 231311, ST_GeomFromText('Point (-71.63627 10.71372)', 4326)),
(553, '<NAME>', '13', 8, 231311, ST_GeomFromText('Point (-71.63418 10.71349)', 4326)),
(554, '<NAME>', '14', 8, 231311, ST_GeomFromText('Point (-71.63205 10.71349)', 4326)),
(555, '<NAME>', '15', 8, 231311, ST_GeomFromText('Point (-71.62993 10.7135)', 4326)),
(556, '<NAME>', '16', 8, 231311, ST_GeomFromText('Point (-71.62783 10.71343)', 4326)),
(557, '<NAME>', '17', 8, 231311, ST_GeomFromText('Point (-71.63193 10.71584)', 4326)),
(558, '<NAME>', '18', 8, 231311, ST_GeomFromText('Point (-71.62762 10.71645)', 4326)),
(559, '<NAME>', '2', 8, 231311, ST_GeomFromText('Point (-71.63438 10.70633)', 4326)),
(560, '<NAME>', '3', 8, 231311, ST_GeomFromText('Point (-71.63225 10.70632)', 4326)),
(561, '<NAME>', '4', 8, 231311, ST_GeomFromText('Point (-71.63014 10.7062)', 4326)),
(562, '<NAME>', '5', 8, 231311, ST_GeomFromText('Point (-71.62791 10.70615)', 4326)),
(563, '<NAME>', '7', 8, 231311, ST_GeomFromText('Point (-71.63638 10.71017)', 4326)),
(564, '<NAME>', '8', 8, 231311, ST_GeomFromText('Point (-71.63153 10.70862)', 4326)),
(565, '<NAME>', '9', 8, 231311, ST_GeomFromText('Point (-71.62793 10.7103)', 4326)),
(566, '<NAME>', 'central', 8, 231311, ST_GeomFromText('Point (-71.63104 10.71028)', 4326)),
(567, 'villa arena', NULL, 8, 231311, ST_GeomFromText('Point (-71.62406 10.71191)', 4326)),
(568, 'villa campo', NULL, 8, 231311, ST_GeomFromText('Point (-71.62484 10.71059)', 4326)),
(569, 'v<NAME>', NULL, 8, 231311, ST_GeomFromText('Point (-71.62412 10.71548)', 4326)),
(570, 'blanco', 'terepaima', 6, 231310, ST_GeomFromText('Point (-71.66277 10.70292)', 4326)),
(571, 'brisas del norte', NULL, 6, 231310, ST_GeomFromText('Point (-71.64379 10.72065)', 4326)),
(572, 'cardenal norte', NULL, 6, 231310, ST_GeomFromText('Point (-71.65421 10.71004)', 4326)),
(573, 'caribe', NULL, 6, 231310, ST_GeomFromText('Point (-71.64116 10.71873)', 4326)),
(574, 'catatumbo', '3', 6, 231310, ST_GeomFromText('Point (-71.65262 10.72019)', 4326)),
(575, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.66762 10.7086)', 4326)),
(576, '12 de febrero', NULL, 6, 231317, ST_GeomFromText('Point (-71.68275 10.71203)', 4326)),
(577, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.65923 10.7227)', 4326)),
(578, 'cujicito', '1', 6, 231310, ST_GeomFromText('Point (-71.65522 10.70426)', 4326)),
(579, 'cujicito', '2', 6, 231310, ST_GeomFromText('Point (-71.66189 10.70609)', 4326)),
(580, 'curarire', NULL, 6, 231310, ST_GeomFromText('Point (-71.64362 10.72913)', 4326)),
(581, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.66073 10.71406)', 4326)),
(582, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.67798 10.72764)', 4326)),
(583, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.65318 10.7143)', 4326)),
(584, '<NAME>', '1', 6, 231310, ST_GeomFromText('Point (-71.66912 10.71209)', 4326)),
(585, '<NAME>', '2', 6, 231310, ST_GeomFromText('Point (-71.67356 10.71466)', 4326)),
(586, '<NAME>', '1', 6, 231310, ST_GeomFromText('Point (-71.66807 10.72514)', 4326)),
(587, '<NAME>', '2', 6, 231310, ST_GeomFromText('Point (-71.66652 10.72006)', 4326)),
(588, 'la resistencia', NULL, 6, 231310, ST_GeomFromText('Point (-71.65871 10.70726)', 4326)),
(589, 'las peonias', NULL, 6, 231310, ST_GeomFromText('Point (-71.64197 10.73272)', 4326)),
(590, 'los olivos', NULL, 6, 231310, ST_GeomFromText('Point (-71.64811 10.68622)', 4326)),
(591, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64144 10.70847)', 4326)),
(592, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64214 10.70444)', 4326)),
(593, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64866 10.69263)', 4326)),
(594, 'palo negro', '1', 6, 231310, ST_GeomFromText('Point (-71.66935 10.7167)', 4326)),
(595, 'palo negro', '2', 6, 231310, ST_GeomFromText('Point (-71.67053 10.71495)', 4326)),
(596, 'puerto caballo', NULL, 6, 231310, ST_GeomFromText('Point (-71.64069 10.7453)', 4326)),
(597, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64911 10.7059)', 4326)),
(598, '<NAME>', '2', 6, 231310, ST_GeomFromText('Point (-71.63781 10.69781)', 4326)),
(599, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.67336 10.72052)', 4326)),
(600, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.65081 10.68849)', 4326)),
(601, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64532 10.71105)', 4326)),
(602, 'el cuji', NULL, 9, 231310, ST_GeomFromText('Point (-71.63946 10.70325)', 4326)),
(603, 'la esparanza', NULL, 9, 231310, ST_GeomFromText('Point (-71.64645 10.70638)', 4326)),
(604, 'las vistas', NULL, 9, 231310, ST_GeomFromText('Point (-71.64068 10.70641)', 4326)),
(605, 'la montañita', NULL, 6, 231310, ST_GeomFromText('Point (-71.6959 10.76468)', 4326)),
(606, '<NAME>', NULL, 8, 231310, ST_GeomFromText('Point (-71.65461 10.69231)', 4326)),
(607, 'los compatriotas', NULL, 8, 231310, ST_GeomFromText('Point (-71.65223 10.72852)', 4326)),
(608, 'los mangos', '4', 8, 231310, ST_GeomFromText('Point (-71.66025 10.69984)', 4326)),
(609, 'el paraiso', NULL, 6, 231308, ST_GeomFromText('Point (-71.62205 10.65775)', 4326)),
(610, '<NAME>', NULL, 6, 231308, ST_GeomFromText('Point (-71.64324 10.66671)', 4326)),
(611, '<NAME>', NULL, 6, 231308, ST_GeomFromText('Point (-71.62909 10.65267)', 4326)),
(612, '<NAME>', NULL, 6, 231308, ST_GeomFromText('Point (-71.63558 10.69044)', 4326)),
(613, 'sebastopol', NULL, 6, 231308, ST_GeomFromText('Point (-71.63363 10.6555)', 4326)),
(614, '1 de mayo', 'cañada la negra', 7, 231308, ST_GeomFromText('Point (-71.62528 10.65394)', 4326)),
(615, 'baralt', NULL, 7, 231308, ST_GeomFromText('Point (-71.62629 10.66825)', 4326)),
(616, '<NAME>', NULL, 7, 231308, ST_GeomFromText('Point (-71.63057 10.6668)', 4326)),
(618, '<NAME>', NULL, 7, 231308, ST_GeomFromText('Point (-71.6236 10.64842)', 4326)),
(619, '<NAME>', NULL, 7, 231308, ST_GeomFromText('Point (-71.61689 10.65357)', 4326)),
(620, 'saladillo', NULL, 7, 231308, ST_GeomFromText('Point (-71.61628 10.64882)', 4326)),
(621, '<NAME>', NULL, 7, 231308, ST_GeomFromText('Point (-71.62193 10.66542)', 4326)),
(622, '<NAME>', NULL, 7, 231308, ST_GeomFromText('Point (-71.62084 10.6435)', 4326)),
(550, '<NAME>', NULL, 8, 231311, ST_GeomFromText('Point (-71.62958 10.6928)', 4326)),
(623, 'universitario', NULL, 7, 231308, ST_GeomFromText('Point (-71.62367 10.67261)', 4326)),
(624, '<NAME>', NULL, 8, 231308, ST_GeomFromText('Point (-71.63175 10.66246)', 4326)),
(625, 'sucre', NULL, 8, 231308, ST_GeomFromText('Point (-71.63902 10.66385)', 4326)),
(626, 'la victoria', NULL, 6, 231304, ST_GeomFromText('Point (-71.6576 10.69191)', 4326)),
(627, '<NAME>', '1', 6, 231304, ST_GeomFromText('Point (-71.6486 10.68)', 4326)),
(628, '<NAME>', '2', 6, 231304, ST_GeomFromText('Point (-71.65046 10.68381)', 4326)),
(629, '<NAME>', '3', 6, 231304, ST_GeomFromText('Point (-71.65305 10.6859)', 4326)),
(630, 'panamericano', '1', 6, 231304, ST_GeomFromText('Point (-71.6711 10.69248)', 4326)),
(631, 'panamericano', '2', 6, 231304, ST_GeomFromText('Point (-71.6626 10.68158)', 4326)),
(632, 'panamericano', '3', 6, 231304, ST_GeomFromText('Point (-71.66688 10.68527)', 4326)),
(633, 'panamericano', '4', 6, 231304, ST_GeomFromText('Point (-71.66281 10.6851)', 4326)),
(634, 'panamericano', '5', 6, 231304, ST_GeomFromText('Point (-71.65874 10.67853)', 4326)),
(635, 'panamericano', '6', 6, 231304, ST_GeomFromText('Point (-71.6569 10.68282)', 4326)),
(636, '<NAME>', NULL, 6, 231304, ST_GeomFromText('Point (-71.66312 10.69299)', 4326)),
(637, '<NAME>', NULL, 6, 231304, ST_GeomFromText('Point (-71.66046 10.68286)', 4326)),
(638, 'combinado la victoria', NULL, 9, 231304, ST_GeomFromText('Point (-71.66242 10.68853)', 4326)),
(639, 'la victoria', '1', 8, 231304, ST_GeomFromText('Point (-71.65829 10.68713)', 4326)),
(640, 'la victoria', '2', 8, 231304, ST_GeomFromText('Point (-71.66504 10.6892)', 4326)),
(641, 'la victoria', '3', 8, 231304, ST_GeomFromText('Point (-71.66819 10.69053)', 4326)),
(642, 'las amalias', NULL, 8, 231304, ST_GeomFromText('Point (-71.6609 10.69496)', 4326)),
(643, '<NAME>', NULL, 8, 231304, ST_GeomFromText('Point (-71.65267 10.6764)', 4326)),
(644, '<NAME>', NULL, 8, 231304, ST_GeomFromText('Point (-71.65355 10.68935)', 4326)),
(645, '<NAME>', '1', 6, 231317, ST_GeomFromText('Point (-71.69733 10.69495)', 4326)),
(646, '<NAME>', '2', 6, 231317, ST_GeomFromText('Point (-71.69856 10.69903)', 4326)),
(647, '<NAME>', '<NAME>', 6, 231317, ST_GeomFromText('Point (-71.69972 10.69546)', 4326)),
(648, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.68914 10.69558)', 4326)),
(649, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.67166 10.70717)', 4326)),
(650, 'bicentenario libertador', NULL, 6, 231317, ST_GeomFromText('Point (-71.68885 10.69169)', 4326)),
(651, 'blanco', '2', 6, 231317, ST_GeomFromText('Point (-71.66599 10.70184)', 4326)),
(652, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.68417 10.69978)', 4326)),
(653, 'cecilio coello', NULL, 6, 231317, ST_GeomFromText('Point (-71.68471 10.70906)', 4326)),
(654, 'chiquinquira', NULL, 6, 231317, ST_GeomFromText('Point (-71.73756 10.7156)', 4326)),
(655, 'el exito', NULL, 6, 231317, ST_GeomFromText('Point (-71.6919 10.69246)', 4326)),
(656, 'el samide', '<NAME>', 6, 231317, ST_GeomFromText('Point (-71.71738 10.70269)', 4326)),
(657, 'el sitio', NULL, 6, 231317, ST_GeomFromText('Point (-71.68991 10.70084)', 4326)),
(658, '<NAME>', '1', 6, 231317, ST_GeomFromText('Point (-71.68125 10.7181)', 4326)),
(659, 'los mangos', '2', 8, 231310, ST_GeomFromText('Point (-71.65926 10.6981)', 4326)),
(660, '<NAME>', '2', 6, 231310, ST_GeomFromText('Point (-71.67902 10.7209)', 4326)),
(661, 'los mangos', '3', 8, 231310, ST_GeomFromText('Point (-71.6581 10.70047)', 4326)),
(662, 'guaicaipuro', '1', 6, 231317, ST_GeomFromText('Point (-71.6749 10.69804)', 4326)),
(663, 'la ceiba', NULL, NULL, 231317, ST_GeomFromText('Point (-71.74622 10.75303)', 4326)),
(664, 'guaicaipuro', '2', 6, 231317, ST_GeomFromText('Point (-71.67956 10.70438)', 4326)),
(665, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.71716 10.75512)', 4326)),
(666, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.67637 10.70806)', 4326)),
(667, 'hato escondido', NULL, 6, 231317, ST_GeomFromText('Point (-71.6897 10.7079)', 4326)),
(668, 'hato las tejas', NULL, 6, 231301, ST_GeomFromText('Point (-71.76101 10.71272)', 4326)),
(669, '<NAME>', '1', 6, 231317, ST_GeomFromText('Point (-71.68814 10.70471)', 4326)),
(670, '<NAME>', '2', 6, 231317, ST_GeomFromText('Point (-71.69088 10.70563)', 4326)),
(671, '<NAME>', '4 de octubre', 6, 231317, ST_GeomFromText('Point (-71.69494 10.70639)', 4326)),
(672, 'la chinita', NULL, 6, 231317, ST_GeomFromText('Point (-71.69385 10.70996)', 4326)),
(673, 'la conquista', NULL, 6, 231317, ST_GeomFromText('Point (-71.66821 10.69972)', 4326)),
(674, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.67976 10.71058)', 4326)),
(675, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.63649 10.73389)', 4326)),
(676, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.6361 10.73211)', 4326)),
(677, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.63898 10.72984)', 4326)),
(678, '4 de febrero', NULL, 6, 231310, ST_GeomFromText('Point (-71.63848 10.72681)', 4326)),
(679, 'maisanta', NULL, 6, 231310, ST_GeomFromText('Point (-71.63496 10.72595)', 4326)),
(680, 'industrial norte', NULL, 6, 231310, ST_GeomFromText('Point (-71.63534 10.72403)', 4326)),
(681, '4 de abril', NULL, 6, 231310, ST_GeomFromText('Point (-71.63764 10.72272)', 4326)),
(682, 'brisas de nazareth', NULL, 6, 231310, ST_GeomFromText('Point (-71.64152 10.72433)', 4326)),
(683, 'mont<NAME>o alto', NULL, 6, 231310, ST_GeomFromText('Point (-71.64761 10.72931)', 4326)),
(684, 'catatumbo', '<NAME>', 6, 231310, ST_GeomFromText('Point (-71.6541 10.72475)', 4326)),
(685, 'catatumbo', '2', 6, 231310, ST_GeomFromText('Point (-71.65117 10.7236)', 4326)),
(686, 'catatumbo', 'la granja', 6, 231310, ST_GeomFromText('Point (-71.64834 10.7206)', 4326)),
(687, 'catatumbo', '5', 6, 231310, ST_GeomFromText('Point (-71.64863 10.71816)', 4326)),
(688, 'catatumbo', '6', 6, 231310, ST_GeomFromText('Point (-71.64956 10.71612)', 4326)),
(689, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64226 10.71254)', 4326)),
(690, 'las islas', NULL, 9, 231310, ST_GeomFromText('Point (-71.64099 10.70732)', 4326)),
(691, 'la plaza', NULL, 9, 231310, ST_GeomFromText('Point (-71.63869 10.70123)', 4326)),
(692, '27 de febrero', NULL, 6, 231310, ST_GeomFromText('Point (-71.65371 10.69546)', 4326)),
(693, '<NAME>', '2', 9, 231310, ST_GeomFromText('Point (-71.65216 10.69341)', 4326)),
(694, '<NAME>', NULL, 9, 231310, ST_GeomFromText('Point (-71.65089 10.69185)', 4326)),
(695, 'nueva democracia', NULL, 8, 231310, ST_GeomFromText('Point (-71.65102 10.69836)', 4326)),
(696, 'los cuchis', NULL, 6, 231310, ST_GeomFromText('Point (-71.66711 10.7067)', 4326)),
(697, 'san antonio de los caños', NULL, 6, 231310, ST_GeomFromText('Point (-71.6633 10.73161)', 4326)),
(698, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.6887 10.72563)', 4326)),
(699, '12 de octubre', NULL, 6, 231310, ST_GeomFromText('Point (-71.68883 10.73138)', 4326)),
(700, 'brisas de san jose', NULL, 6, 231317, ST_GeomFromText('Point (-71.68815 10.72246)', 4326)),
(701, '12 de septiembre', NULL, 6, 231317, ST_GeomFromText('Point (-71.68469 10.72053)', 4326)),
(702, 'ciudad lossada', '<NAME>', 6, 231310, ST_GeomFromText('Point (-71.64434 10.69307)', 4326)),
(703, 'ciudad lossada', 'fuerza indigena', 6, 231310, ST_GeomFromText('Point (-71.64216 10.69648)', 4326)),
(704, 'ciudad lossada', NULL, 6, 231310, ST_GeomFromText('Point (-71.64738 10.70149)', 4326)),
(705, 'ciudad lossada', 'ciudad bendita', 8, 231310, ST_GeomFromText('Point (-71.64238 10.7016)', 4326)),
(706, '<NAME>', NULL, 6, 231310, ST_GeomFromText('Point (-71.64909 10.68919)', 4326)),
(707, '<NAME>', NULL, 8, 231311, ST_GeomFromText('Point (-71.62548 10.72748)', 4326)),
(708, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62191 10.72565)', 4326)),
(709, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62705 10.7237)', 4326)),
(710, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62848 10.72242)', 4326)),
(711, 'orobia', NULL, 9, 231311, ST_GeomFromText('Point (-71.62685 10.72211)', 4326)),
(712, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62969 10.72122)', 4326)),
(713, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62839 10.72039)', 4326)),
(714, 'villa p<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62855 10.7214)', 4326)),
(715, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62772 10.72156)', 4326)),
(716, '<NAME>', NULL, 9, 231311, ST_GeomFromText('Point (-71.62674 10.72106)', 4326)),
(717, 'virgen del carmen', '2', 6, 231311, ST_GeomFromText('Point (-71.62419 10.71953)', 4326)),
(718, 'oasis country', NULL, 9, 231311, ST_GeomFromText('Point (-71.62464 10.71805)', 4326)),
(719, 'puertas del sol', NULL, 9, 231311, ST_GeomFromText('Point (-71.6251 10.71306)', 4326)),
(720, 'la laguna', NULL, 9, 231311, ST_GeomFromText('Point (-71.62547 10.709)', 4326)),
(721, 'villa la milagrosa', NULL, 9, 231311, ST_GeomFromText('Point (-71.62545 10.70789)', 4326)),
(722, 'palma dorada country villa', NULL, 9, 231311, ST_GeomFromText('Point (-71.62522 10.70581)', 4326)),
(723, 'la marinita', NULL, 6, 231311, ST_GeomFromText('Point (-71.62647 10.70673)', 4326)),
(724, 'ligar', NULL, 9, 231311, ST_GeomFromText('Point (-71.62942 10.68606)', 4326)),
(725, 'atahualpa', NULL, 9, 231311, ST_GeomFromText('Point (-71.62753 10.6775)', 4326)),
(726, 'riveras del lago', NULL, 6, 231307, ST_GeomFromText('Point (-71.61592 10.72495)', 4326)),
(727, 'las mansiones', NULL, 9, 231307, ST_GeomFromText('Point (-71.61629 10.72574)', 4326)),
(728, 'bahia del lago villas', NULL, 9, 231307, ST_GeomFromText('Point (-71.61734 10.72369)', 4326)),
(729, 'villas de cantabrico', NULL, 9, 231307, ST_GeomFromText('Point (-71.62029 10.72375)', 4326)),
(730, 'villa aravena', NULL, 9, 231307, ST_GeomFromText('Point (-71.6199 10.72282)', 4326)),
(731, 'lago country villa', '1', 9, 231307, ST_GeomFromText('Point (-71.62056 10.72182)', 4326)),
(732, 'agua de canto', NULL, 9, 231307, ST_GeomFromText('Point (-71.62206 10.72284)', 4326)),
(733, 'alameda country', NULL, 9, 231307, ST_GeomFromText('Point (-71.62191 10.72159)', 4326)),
(734, 'lago country villa', '2', 9, 231307, ST_GeomFromText('Point (-71.62104 10.72025)', 4326)),
(735, 'mediterraneo', NULL, 9, 231307, ST_GeomFromText('Point (-71.62248 10.72018)', 4326)),
(736, 'lago country villa', '3', 9, 231307, ST_GeomFromText('Point (-71.61882 10.71893)', 4326)),
(737, 'amazonia', NULL, 9, 231307, ST_GeomFromText('Point (-71.61869 10.7211)', 4326)),
(738, '<NAME>', NULL, 9, 231307, ST_GeomFromText('Point (-71.61776 10.72034)', 4326)),
(739, 'alta vista', NULL, 9, 231307, ST_GeomFromText('Point (-71.61681 10.71957)', 4326)),
(740, 'aitama', NULL, 9, 231307, ST_GeomFromText('Point (-71.61635 10.7189)', 4326)),
(741, 'bahia', NULL, 9, 231307, ST_GeomFromText('Point (-71.61596 10.71809)', 4326)),
(742, 'los eucaliptos', NULL, 9, 231307, ST_GeomFromText('Point (-71.61561 10.71749)', 4326)),
(743, 'nuevo amanecer', NULL, 6, 231307, ST_GeomFromText('Point (-71.61734 10.71762)', 4326)),
(744, 'bayona', '2', 9, 231307, ST_GeomFromText('Point (-71.616 10.7162)', 4326)),
(745, '<NAME>', NULL, 9, 231307, ST_GeomFromText('Point (-71.61461 10.71733)', 4326)),
(746, 'ciudad 2000', NULL, 8, 231307, ST_GeomFromText('Point (-71.61395 10.72152)', 4326)),
(747, 'oasis villa', NULL, 9, 231307, ST_GeomFromText('Point (-71.61314 10.71906)', 4326)),
(748, 'las dunas', NULL, 9, 231307, ST_GeomFromText('Point (-71.612 10.71818)', 4326)),
(749, 'moruy', NULL, 9, 231307, ST_GeomFromText('Point (-71.61002 10.7209)', 4326)),
(750, '<NAME>', NULL, 9, 231307, ST_GeomFromText('Point (-71.6081 10.71703)', 4326)),
(906, 'la alhambra', NULL, 7, 231704, ST_GeomFromText('Point (-71.64378 10.58911)', 4326)),
(752, 'teotiste de gallego', 'el doral', 6, 231307, ST_GeomFromText('Point (-71.6192 10.71033)', 4326)),
(753, 'lomas del doral', NULL, 9, 231307, ST_GeomFromText('Point (-71.61994 10.70928)', 4326)),
(754, 'oasis garden villas', NULL, 9, 231307, ST_GeomFromText('Point (-71.62174 10.71229)', 4326)),
(755, 'villas blanca aurora', NULL, 9, 231307, ST_GeomFromText('Point (-71.62005 10.7116)', 4326)),
(756, 'acuarela del sol', NULL, 8, 231307, ST_GeomFromText('Point (-71.61238 10.70392)', 4326)),
(757, 'lomas del camino', NULL, 9, 231307, ST_GeomFromText('Point (-71.61857 10.70948)', 4326)),
(758, 'campo alegre', NULL, 9, 231307, ST_GeomFromText('Point (-71.61852 10.70602)', 4326)),
(759, 'altos del doral', NULL, 9, 231307, ST_GeomFromText('Point (-71.61953 10.70768)', 4326)),
(760, 'camino real', NULL, 9, 231307, ST_GeomFromText('Point (-71.61694 10.70968)', 4326)),
(761, 'savannah', NULL, 9, 231307, ST_GeomFromText('Point (-71.61737 10.70865)', 4326)),
(762, 'la lago', '2', 7, 231314, ST_GeomFromText('Point (-71.60309 10.66973)', 4326)),
(763, 'terrezas del lago', NULL, 8, 231303, ST_GeomFromText('Point (-71.63604 10.64457)', 4326)),
(764, 'la cima', NULL, 9, 231303, ST_GeomFromText('Point (-71.63831 10.64389)', 4326)),
(765, '<NAME>', '5', 6, 231303, ST_GeomFromText('Point (-71.64414 10.65297)', 4326)),
(766, 'villas arenas del sol', NULL, 9, 231303, ST_GeomFromText('Point (-71.65347 10.65701)', 4326)),
(767, '<NAME>', NULL, 9, 231305, ST_GeomFromText('Point (-71.64601 10.63242)', 4326)),
(768, 'los claveles', 'santa ines', 6, 231305, ST_GeomFromText('Point (-71.65051 10.63341)', 4326)),
(769, 'los andes', '3', 6, 231313, ST_GeomFromText('Point (-71.64515 10.61059)', 4326)),
(770, 'santa ines del sur', NULL, 6, 231313, ST_GeomFromText('Point (-71.63824 10.59958)', 4326)),
(771, 'terrezas del lago', '2', 8, 231313, ST_GeomFromText('Point (-71.631 10.60284)', 4326)),
(772, '<NAME>', 'kennedy', 6, 231313, ST_GeomFromText('Point (-71.65571 10.609)', 4326)),
(773, '<NAME>', NULL, 6, 231313, ST_GeomFromText('Point (-71.65201 10.61613)', 4326)),
(774, 'villa del sol', NULL, 9, 231313, ST_GeomFromText('Point (-71.64978 10.62451)', 4326)),
(775, 'la mision', 'el pilar', 6, 231313, ST_GeomFromText('Point (-71.64676 10.62561)', 4326)),
(776, 'corito', '1', 6, 231306, ST_GeomFromText('Point (-71.61835 10.61616)', 4326)),
(777, '<NAME>', NULL, 6, 231306, ST_GeomFromText('Point (-71.6162 10.60316)', 4326)),
(778, 'hospital general del sur', NULL, 6, 231306, ST_GeomFromText('Point (-71.62046 10.59877)', 4326)),
(779, 'bandera sur', NULL, 6, 231306, ST_GeomFromText('Point (-71.61864 10.59753)', 4326)),
(780, 'osteicoechea', NULL, 6, 231306, ST_GeomFromText('Point (-71.6285 10.61495)', 4326)),
(781, '<NAME>', NULL, 9, 231306, ST_GeomFromText('Point (-71.6314 10.61604)', 4326)),
(782, '<NAME>', NULL, 9, 231306, ST_GeomFromText('Point (-71.63205 10.61732)', 4326)),
(783, '<NAME>', NULL, 9, 231306, ST_GeomFromText('Point (-71.63241 10.61826)', 4326)),
(784, 'altamira sur', '2 de febrero', 6, 231306, ST_GeomFromText('Point (-71.63105 10.61467)', 4326)),
(785, 'villa colina del metro', NULL, 6, 231312, ST_GeomFromText('Point (-71.66735 10.61183)', 4326)),
(786, '10 de enero', NULL, 6, 231312, ST_GeomFromText('Point (-71.64764 10.59519)', 4326)),
(787, 'villa los robles', NULL, 6, 231312, ST_GeomFromText('Point (-71.65151 10.58964)', 4326)),
(788, '<NAME>', NULL, 6, 231312, ST_GeomFromText('Point (-71.67667 10.58536)', 4326)),
(789, 'el gaitero', 'villa venecia', 6, 231312, ST_GeomFromText('Point (-71.68245 10.5865)', 4326)),
(790, 'mi esperanza', NULL, 6, 231312, ST_GeomFromText('Point (-71.68877 10.59052)', 4326)),
(791, 'el chaparral', NULL, 6, 231312, ST_GeomFromText('Point (-71.69151 10.5918)', 4326)),
(792, 'villa aeropuerto', NULL, 6, 231312, ST_GeomFromText('Point (-71.69805 10.59098)', 4326)),
(793, 'villa bonita', NULL, 6, 231309, ST_GeomFromText('Point (-71.69079 10.6615)', 4326)),
(794, 'colinas del country', NULL, 6, 231309, ST_GeomFromText('Point (-71.68944 10.66338)', 4326)),
(795, 'la lechuga', NULL, 6, 231309, ST_GeomFromText('Point (-71.68718 10.66037)', 4326)),
(796, 'cultura y deporte', NULL, 6, 231309, ST_GeomFromText('Point (-71.68508 10.66149)', 4326)),
(797, 'hogar cultura y deporte', NULL, 6, 231309, ST_GeomFromText('Point (-71.68173 10.65891)', 4326)),
(798, 'las praderas', 'tierra sagrada', 6, 231309, ST_GeomFromText('Point (-71.68988 10.65417)', 4326)),
(799, '<NAME>', '<NAME>', 6, 231309, ST_GeomFromText('Point (-71.69622 10.64437)', 4326)),
(800, '<NAME>', '2', 6, 231309, ST_GeomFromText('Point (-71.69416 10.64807)', 4326)),
(801, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.69891 10.64383)', 4326)),
(802, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.70116 10.65199)', 4326)),
(803, '29 de enero', NULL, 6, 231309, ST_GeomFromText('Point (-71.6989 10.65152)', 4326)),
(804, 'bendicion de dios', 'israel', 6, 231309, ST_GeomFromText('Point (-71.69971 10.64929)', 4326)),
(805, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.69534 10.64074)', 4326)),
(806, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.69252 10.64021)', 4326)),
(807, '<NAME>', '<NAME>', 6, 231309, ST_GeomFromText('Point (-71.71951 10.64543)', 4326)),
(808, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.71693 10.64762)', 4326)),
(809, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.71179 10.64505)', 4326)),
(810, '<NAME>', '3', 6, 231309, ST_GeomFromText('Point (-71.70332 10.64777)', 4326)),
(811, '<NAME>', '2', 6, 231309, ST_GeomFromText('Point (-71.69946 10.64657)', 4326)),
(812, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.7008 10.64451)', 4326)),
(813, '<NAME>', '1', 6, 231309, ST_GeomFromText('Point (-71.69371 10.64282)', 4326)),
(814, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.71341 10.63191)', 4326)),
(815, '<NAME>', 'obra de dios', 6, 231309, ST_GeomFromText('Point (-71.70574 10.63435)', 4326)),
(816, 'el rosario', 'villa ana', 6, 231309, ST_GeomFromText('Point (-71.70155 10.63505)', 4326)),
(817, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.6957 10.63542)', 4326)),
(818, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.6977 10.6328)', 4326)),
(819, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.69285 10.63176)', 4326)),
(820, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68963 10.63975)', 4326)),
(821, 'el progreso', 'nueva vida', 6, 231309, ST_GeomFromText('Point (-71.68741 10.63874)', 4326)),
(822, '14 de febrero', NULL, 6, 231309, ST_GeomFromText('Point (-71.68629 10.63731)', 4326)),
(823, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68476 10.63733)', 4326)),
(824, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.6824 10.63711)', 4326)),
(825, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.67759 10.63265)', 4326)),
(826, 'villa luna', NULL, 6, 231309, ST_GeomFromText('Point (-71.67383 10.62557)', 4326)),
(827, '<NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.67607 10.62433)', 4326)),
(828, 'las praderas', 'el hato', 6, 231309, ST_GeomFromText('Point (-71.68363 10.61889)', 4326)),
(829, 'el esfuerzo', NULL, 6, 231309, ST_GeomFromText('Point (-71.68041 10.61907)', 4326)),
(830, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.67939 10.61683)', 4326)),
(831, 'altos del sol amado', '4', 8, 231309, ST_GeomFromText('Point (-71.6766 10.61656)', 4326)),
(832, 'laguna del sol amado', NULL, 6, 231309, ST_GeomFromText('Point (-71.67415 10.6172)', 4326)),
(833, 'piedra de luna', NULL, 6, 231309, ST_GeomFromText('Point (-71.67511 10.61436)', 4326)),
(834, 'lomitas del zulia', 'ana maria campos', 6, 231309, ST_GeomFromText('Point (-71.66753 10.65433)', 4326)),
(835, 'nuestra independencia', NULL, 6, 231309, ST_GeomFromText('Point (-71.67335 10.66025)', 4326)),
(836, 'nueva independencia', '2', 6, 231309, ST_GeomFromText('Point (-71.67944 10.66246)', 4326)),
(837, 'jaguey de vera', '1', 6, 231309, ST_GeomFromText('Point (-71.70002 10.66317)', 4326)),
(838, 'jaguey de vera', '2', 6, 231309, ST_GeomFromText('Point (-71.70137 10.66426)', 4326)),
(839, 'brisas del morichal', NULL, 6, 231309, ST_GeomFromText('Point (-71.71483 10.66642)', 4326)),
(840, 'las tres s', NULL, 6, 231309, ST_GeomFromText('Point (-71.72012 10.65631)', 4326)),
(841, 'santa fe', '2', 8, 231315, ST_GeomFromText('Point (-71.66895 10.66264)', 4326)),
(842, 'lomas del valle', '2', 6, 231315, ST_GeomFromText('Point (-71.66307 10.66091)', 4326)),
(843, 'cumbre de amparo', NULL, 9, 231315, ST_GeomFromText('Point (-71.65909 10.66154)', 4326)),
(844, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.65851 10.6607)', 4326)),
(845, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.65848 10.6587)', 4326)),
(846, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.65784 10.65985)', 4326)),
(847, 'el amparal', NULL, 9, 231315, ST_GeomFromText('Point (-71.65742 10.66091)', 4326)),
(848, 'villa <NAME>ilia', NULL, 9, 231315, ST_GeomFromText('Point (-71.65645 10.66166)', 4326)),
(849, 'tierra del sol', '1', 8, 231315, ST_GeomFromText('Point (-71.65337 10.66709)', 4326)),
(850, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.65413 10.66489)', 4326)),
(851, 'tierra del sol', '2', 8, 231315, ST_GeomFromText('Point (-71.65325 10.66954)', 4326)),
(852, 'santa fe', '4', 8, 231315, ST_GeomFromText('Point (-71.66871 10.66603)', 4326)),
(853, '<NAME>', '<NAME>', 6, 231315, ST_GeomFromText('Point (-71.67395 10.66942)', 4326)),
(854, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.66981 10.66999)', 4326)),
(856, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.68103 10.68042)', 4326)),
(857, 'licumusa', NULL, 9, 231315, ST_GeomFromText('Point (-71.68025 10.68208)', 4326)),
(858, 'leydis', NULL, 9, 231315, ST_GeomFromText('Point (-71.67986 10.68294)', 4326)),
(859, '<NAME>', NULL, 9, 231315, ST_GeomFromText('Point (-71.66956 10.68154)', 4326)),
(860, 'las tunas', NULL, 9, 231315, ST_GeomFromText('Point (-71.66995 10.67561)', 4326)),
(861, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.69392 10.68058)', 4326)),
(862, '13 de abril', NULL, 6, 231301, ST_GeomFromText('Point (-71.69316 10.67761)', 4326)),
(863, 'estrella del lago', 'la granjita', 6, 231301, ST_GeomFromText('Point (-71.70205 10.69107)', 4326)),
(864, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.70931 10.67751)', 4326)),
(865, 'jerusalen', NULL, 6, 231301, ST_GeomFromText('Point (-71.71185 10.67546)', 4326)),
(866, 'el nispero', '<NAME>', 6, 231301, ST_GeomFromText('Point (-71.71073 10.68144)', 4326)),
(867, 'el nispero', 'carmelita', 6, 231301, ST_GeomFromText('Point (-71.70881 10.6841)', 4326)),
(868, 'santa cecilia', NULL, 6, 231301, ST_GeomFromText('Point (-71.70995 10.69353)', 4326)),
(869, 'la resistencia', NULL, 6, 231301, ST_GeomFromText('Point (-71.70891 10.6953)', 4326)),
(870, 'la paz', 'mamacira', 6, 231301, ST_GeomFromText('Point (-71.71205 10.69416)', 4326)),
(871, 'el samide', '28 de marzo', 6, 231301, ST_GeomFromText('Point (-71.71527 10.68863)', 4326)),
(872, 'el samide', '23 de enero', 6, 231301, ST_GeomFromText('Point (-71.72118 10.68869)', 4326)),
(873, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.72311 10.698)', 4326)),
(874, 'el samide', 'santa ines', 6, 231301, ST_GeomFromText('Point (-71.7369 10.7106)', 4326)),
(875, 'el candoncito', NULL, 6, 231301, ST_GeomFromText('Point (-71.73306 10.70256)', 4326)),
(876, 'la retirada', NULL, 6, 231301, ST_GeomFromText('Point (-71.7354 10.69709)', 4326)),
(877, 'la rinconada', NULL, 6, 231301, ST_GeomFromText('Point (-71.7137 10.67279)', 4326)),
(878, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.71489 10.67027)', 4326)),
(879, '<NAME>', NULL, 6, 231301, ST_GeomFromText('Point (-71.71794 10.67145)', 4326)),
(880, 'leslay', NULL, 6, 231301, ST_GeomFromText('Point (-71.72119 10.67362)', 4326)),
(881, 'country club', NULL, 6, 231318, ST_GeomFromText('Point (-71.74466 10.67553)', 4326)),
(882, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.6808 10.70686)', 4326)),
(883, '14 de mayo', NULL, 6, 231317, ST_GeomFromText('Point (-71.68855 10.70951)', 4326)),
(884, 'los filuos norte', NULL, 6, 231317, ST_GeomFromText('Point (-71.70204 10.70652)', 4326)),
(885, 'monte rey', NULL, 6, 231317, ST_GeomFromText('Point (-71.70166 10.70374)', 4326)),
(886, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.70756 10.70255)', 4326)),
(887, 'nuevo horizonte', NULL, 6, 231317, ST_GeomFromText('Point (-71.70767 10.69842)', 4326)),
(888, '<NAME>', NULL, 6, 231317, ST_GeomFromText('Point (-71.72069 10.70595)', 4326)),
(889, '5 de enero', NULL, 6, 231317, ST_GeomFromText('Point (-71.72888 10.71063)', 4326)),
(890, 'las piedras', NULL, 9, 231309, ST_GeomFromText('Point (-71.67808 10.61313)', 4326)),
(891, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68498 10.6165)', 4326)),
(892, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68752 10.6165)', 4326)),
(893, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.69036 10.61811)', 4326)),
(894, '<NAME>', NULL, 6, 231309, ST_GeomFromText('Point (-71.68712 10.60425)', 4326)),
(895, 'villa 4 de febrero', NULL, 6, 231309, ST_GeomFromText('Point (-71.68933 10.6093)', 4326)),
(896, '<NAME>', NULL, 8, 231309, ST_GeomFromText('Point (-71.6896 10.60632)', 4326)),
(897, '<NAME>', NULL, 9, 231309, ST_GeomFromText('Point (-71.694 10.6013)', 4326)),
(898, 'el palotal', NULL, 4, 231309, ST_GeomFromText('Point (-71.70626 10.5946)', 4326)),
(899, 'el caimito', 'el chichero', 6, 231309, ST_GeomFromText('Point (-71.72572 10.64556)', 4326)),
(900, 'piedras del sol', '2', 9, 231309, ST_GeomFromText('Point (-71.75907 10.63364)', 4326)),
(901, '13 de abril', '<NAME>', 6, 231318, ST_GeomFromText('Point (-71.71847 10.66655)', 4326)),
(902, 'la chamusca', NULL, 4, 231318, ST_GeomFromText('Point (-71.75902 10.68917)', 4326)),
(903, 'el carmen', NULL, 6, 231318, ST_GeomFromText('Point (-71.74468 10.6469)', 4326)),
(549, 'la california', NULL, 8, 231311, ST_GeomFromText('Point (-71.62784 10.6984)', 4326)),
(751, '<NAME>', NULL, 6, 231307, ST_GeomFromText('Point (-71.62032 10.71536)', 4326)),
(904, 'el eclipse', NULL, 6, 231309, ST_GeomFromText('Point (-71.6772 10.6403)', 4326)),
(907, 'el manzanillo', '2', 6, 231704, ST_GeomFromText('Point (-71.62602 10.5821)', 4326)),
(908, 'sierra maestra', 'guadalupe', 6, 231704, ST_GeomFromText('Point (-71.63455 10.58458)', 4326)),
(909, '<NAME>', NULL, 7, 231704, ST_GeomFromText('Point (-71.62498 10.59234)', 4326)),
(910, '<NAME>', NULL, 7, 231704, ST_GeomFromText('Point (-71.62593 10.58612)', 4326)),
(911, '<NAME>', NULL, 6, 231704, ST_GeomFromText('Point (-71.61951 10.58292)', 4326)),
(912, '<NAME>', NULL, 7, 231704, ST_GeomFromText('Point (-71.64311 10.59338)', 4326)),
(913, '<NAME>', NULL, 6, 231704, ST_GeomFromText('Point (-71.64943 10.58049)', 4326)),
(914, '<NAME>', '6', 6, 231704, ST_GeomFromText('Point (-71.63056 10.58344)', 4326)),
(915, 'manzanillo', '3', 6, 231704, ST_GeomFromText('Point (-71.61959 10.58885)', 4326)),
(916, 'la portuaria', NULL, 8, 231704, ST_GeomFromText('Point (-71.63805 10.59348)', 4326)),
(917, '<NAME>', '4', 6, 231704, ST_GeomFromText('Point (-71.62226 10.59018)', 4326)),
(918, 'las piedritas', NULL, 7, 231704, ST_GeomFromText('Point (-71.61454 10.58011)', 4326)),
(919, '22 de enero', NULL, 6, 231705, ST_GeomFromText('Point (-71.70984 10.52917)', 4326)),
(920, '22 de mayo', NULL, 6, 231705, ST_GeomFromText('Point (-71.71646 10.51271)', 4326)),
(921, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.71311 10.51966)', 4326)),
(922, 'el esfuerzo', NULL, 6, 231705, ST_GeomFromText('Point (-71.74917 10.53819)', 4326)),
(923, 'la gallera', NULL, 6, 231705, ST_GeomFromText('Point (-71.70642 10.52072)', 4326)),
(924, 'los cortijos', NULL, 6, 231705, ST_GeomFromText('Point (-71.71136 10.52501)', 4326)),
(925, 'los manantiales', '1', 6, 231705, ST_GeomFromText('Point (-71.72736 10.53713)', 4326)),
(926, 'los manantiales', '2', 6, 231705, ST_GeomFromText('Point (-71.73458 10.53341)', 4326)),
(927, 'los manantiales', '3', 6, 231705, ST_GeomFromText('Point (-71.7337 10.53721)', 4326)),
(928, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.71596 10.5232)', 4326)),
(929, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.69731 10.51781)', 4326)),
(930, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.70994 10.53296)', 4326)),
(931, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.70226 10.52769)', 4326)),
(932, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.69933 10.52598)', 4326)),
(933, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.71647 10.51546)', 4326)),
(934, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.71456 10.52827)', 4326)),
(935, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.71004 10.52074)', 4326)),
(936, '<NAME>', '2', 6, 231705, ST_GeomFromText('Point (-71.69643 10.52261)', 4326)),
(937, 'palo blanco', 'las piedras', 4, 231705, ST_GeomFromText('Point (-71.72008 10.51328)', 4326)),
(938, 'villa alicia', NULL, 6, 231705, ST_GeomFromText('Point (-71.70332 10.53857)', 4326)),
(939, 'jobo bajo', NULL, 7, 231705, ST_GeomFromText('Point (-71.72548 10.52817)', 4326)),
(940, 'los atencio', NULL, 7, 231705, ST_GeomFromText('Point (-71.71958 10.52478)', 4326)),
(941, 'los cortijos', NULL, 7, 231705, ST_GeomFromText('Point (-71.70646 10.52689)', 4326)),
(942, 'los pozos', NULL, 7, 231705, ST_GeomFromText('Point (-71.70305 10.53567)', 4326)),
(943, 'venecia', NULL, 7, 231705, ST_GeomFromText('Point (-71.71929 10.52752)', 4326)),
(944, '<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.74093 10.57969)', 4326)),
(945, 'buen vivir', NULL, 6, 231706, ST_GeomFromText('Point (-71.67961 10.56572)', 4326)),
(946, '<NAME>', NULL, 7, 231706, ST_GeomFromText('Point (-71.69464 10.57999)', 4326)),
(947, '<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.65568 10.58274)', 4326)),
(948, '<NAME>', '2', 6, 231706, ST_GeomFromText('Point (-71.68314 10.56122)', 4326)),
(949, 'villa santa monica', NULL, 8, 231706, ST_GeomFromText('Point (-71.65459 10.58414)', 4326)),
(950, '<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.66677 10.58192)', 4326)),
(951, 'la gran sabana', NULL, 6, 231706, ST_GeomFromText('Point (-71.66854 10.57303)', 4326)),
(952, '<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.66383 10.5733)', 4326)),
(953, '<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.66786 10.56969)', 4326)),
(954, 'agua viva', NULL, 7, 231706, ST_GeomFromText('Point (-71.68743 10.56608)', 4326)),
(955, 'dia de la juventud', NULL, 6, 231706, ST_GeomFromText('Point (-71.67034 10.57159)', 4326)),
(956, 'la lagunita', NULL, 6, 231706, ST_GeomFromText('Point (-71.65399 10.58227)', 4326)),
(957, 'arenales hijos de dios', NULL, 6, 231706, ST_GeomFromText('Point (-71.67918 10.56186)', 4326)),
(958, 'sabana sur', NULL, 6, 231706, ST_GeomFromText('Point (-71.66929 10.5772)', 4326)),
(959, '2 de febrero', NULL, 6, 231706, ST_GeomFromText('Point (-71.66485 10.57196)', 4326)),
(960, 'el trebe', NULL, 6, 231706, ST_GeomFromText('Point (-71.6873 10.57467)', 4326)),
(961, 'sur america', NULL, 6, 231706, ST_GeomFromText('Point (-71.66051 10.58179)', 4326)),
(962, 'carnevalli sur', NULL, 6, 231707, ST_GeomFromText('Point (-71.66554 10.53081)', 4326)),
(963, 'san valentin', NULL, 6, 231707, ST_GeomFromText('Point (-71.67882 10.5188)', 4326)),
(964, 'santa fe', '1', 6, 231707, ST_GeomFromText('Point (-71.69901 10.53206)', 4326)),
(965, '<NAME>', NULL, 7, 231707, ST_GeomFromText('Point (-71.68714 10.52051)', 4326)),
(966, 'la hacienda', NULL, 6, 231707, ST_GeomFromText('Point (-71.70199 10.53139)', 4326)),
(967, 'los bienes', NULL, 4, 231705, ST_GeomFromText('Point (-71.7083 10.51617)', 4326)),
(968, 'el caujaro', NULL, 8, 231707, ST_GeomFromText('Point (-71.69057 10.53982)', 4326)),
(969, 'el soler', NULL, 8, 231707, ST_GeomFromText('Point (-71.68442 10.52909)', 4326)),
(970, 'los samanes', NULL, 8, 231707, ST_GeomFromText('Point (-71.69412 10.53053)', 4326)),
(971, 'villa chinita', NULL, 8, 231707, ST_GeomFromText('Point (-71.68702 10.54394)', 4326)),
(972, 'villa sur', NULL, 8, 231707, ST_GeomFromText('Point (-71.69343 10.53446)', 4326)),
(973, 'aceituno sur', NULL, 6, 231701, ST_GeomFromText('Point (-71.62723 10.57537)', 4326)),
(974, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.6282 10.57501)', 4326)),
(975, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63729 10.54506)', 4326)),
(976, 'bicentenario sur', NULL, 6, 231701, ST_GeomFromText('Point (-71.62566 10.5723)', 4326)),
(977, 'brisas del sol', NULL, 6, 231701, ST_GeomFromText('Point (-71.64492 10.55343)', 4326)),
(978, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63811 10.5676)', 4326)),
(979, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63055 10.56364)', 4326)),
(980, 'el peru', NULL, 6, 231701, ST_GeomFromText('Point (-71.62048 10.56325)', 4326)),
(981, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62213 10.57382)', 4326)),
(982, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63839 10.55334)', 4326)),
(983, '<NAME>', '2', 6, 231701, ST_GeomFromText('Point (-71.64866 10.57767)', 4326)),
(984, 'la gracia de dios', NULL, 6, 231701, ST_GeomFromText('Point (-71.62781 10.55852)', 4326)),
(985, 'la sagrada familia', NULL, 6, 231701, ST_GeomFromText('Point (-71.62364 10.56328)', 4326)),
(986, 'las flores', NULL, 6, 231701, ST_GeomFromText('Point (-71.63057 10.55989)', 4326)),
(987, 'limpia norte', NULL, 6, 231701, ST_GeomFromText('Point (-71.64374 10.5694)', 4326)),
(988, 'lomas del peru', NULL, 6, 231701, ST_GeomFromText('Point (-71.62104 10.56562)', 4326)),
(989, 'ma vieja', NULL, 6, 231701, ST_GeomFromText('Point (-71.62924 10.54871)', 4326)),
(990, 'mi progreso', NULL, 6, 231701, ST_GeomFromText('Point (-71.64044 10.55155)', 4326)),
(991, 'monseñ<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63168 10.54017)', 4326)),
(992, '<NAME>', '1', 6, 231701, ST_GeomFromText('Point (-71.64928 10.57536)', 4326)),
(993, '<NAME>', '2', 6, 231701, ST_GeomFromText('Point (-71.64727 10.57509)', 4326)),
(994, '<NAME>', '3', 6, 231701, ST_GeomFromText('Point (-71.64553 10.57506)', 4326)),
(995, '<NAME>', '4', 6, 231701, ST_GeomFromText('Point (-71.64425 10.57133)', 4326)),
(996, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62955 10.57807)', 4326)),
(997, 'primavera del sol', NULL, 6, 231701, ST_GeomFromText('Point (-71.63851 10.54728)', 4326)),
(998, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62047 10.54861)', 4326)),
(999, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63005 10.55366)', 4326)),
(1000, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62858 10.55632)', 4326)),
(1001, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63273 10.55122)', 4326)),
(1002, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.64525 10.55023)', 4326)),
(1003, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62524 10.55349)', 4326)),
(1004, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.62536 10.558)', 4326)),
(1005, '<NAME>', NULL, 9, 231701, ST_GeomFromText('Point (-71.62189 10.5568)', 4326)),
(1006, 'ciudad del sol', NULL, 9, 231701, ST_GeomFromText('Point (-71.64476 10.5515)', 4326)),
(1007, 'paraiso del sol', NULL, 9, 231701, ST_GeomFromText('Point (-71.63828 10.5509)', 4326)),
(1008, 'plaza el sol', NULL, 9, 231701, ST_GeomFromText('Point (-71.63912 10.54933)', 4326)),
(1009, '<NAME>', NULL, 9, 231701, ST_GeomFromText('Point (-71.63648 10.57237)', 4326)),
(1010, '<NAME>', NULL, 9, 231701, ST_GeomFromText('Point (-71.63562 10.56874)', 4326)),
(1011, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.64199 10.57169)', 4326)),
(1012, 'inavi', NULL, 6, 231701, ST_GeomFromText('Point (-71.63987 10.56956)', 4326)),
(1013, 'la gloria', NULL, 6, 231701, ST_GeomFromText('Point (-71.64545 10.57103)', 4326)),
(1014, '<NAME>', NULL, 6, 231701, ST_GeomFromText('Point (-71.63488 10.54853)', 4326)),
(1015, '<NAME>', NULL, 7, 231701, ST_GeomFromText('Point (-71.63037 10.57281)', 4326)),
(1016, 'cecosesul', NULL, 7, 231701, ST_GeomFromText('Point (-71.62241 10.55366)', 4326)),
(1017, 'el escondite', NULL, 7, 231701, ST_GeomFromText('Point (-71.63015 10.5376)', 4326)),
(1018, 'la punta', NULL, 7, 231701, ST_GeomFromText('Point (-71.62298 10.54922)', 4326)),
(1019, '<NAME>', NULL, 7, 231701, ST_GeomFromText('Point (-71.64523 10.56634)', 4326)),
(1020, 'el paraiso', '<NAME>', 6, 231701, ST_GeomFromText('Point (-71.63395 10.53453)', 4326)),
(1021, '<NAME>', NULL, 7, 231701, ST_GeomFromText('Point (-71.62846 10.54302)', 4326)),
(1022, 'el placer', NULL, 8, 231701, ST_GeomFromText('Point (-71.62734 10.56185)', 4326)),
(1023, 'la coromoto', NULL, 8, 231701, ST_GeomFromText('Point (-71.63934 10.55657)', 4326)),
(1024, '<NAME>', NULL, 8, 231701, ST_GeomFromText('Point (-71.6489 10.56887)', 4326)),
(1025, '<NAME>', NULL, 8, 231701, ST_GeomFromText('Point (-71.63779 10.57569)', 4326)),
(1026, '<NAME>', '3', 8, 231701, ST_GeomFromText('Point (-71.64729 10.57002)', 4326)),
(1027, '<NAME>', '7', 8, 231701, ST_GeomFromText('Point (-71.64021 10.57276)', 4326)),
(1028, '<NAME>', NULL, 8, 231701, ST_GeomFromText('Point (-71.62916 10.56705)', 4326)),
(1029, 'sol de coromoto', NULL, 8, 231701, ST_GeomFromText('Point (-71.63082 10.55775)', 4326)),
(1030, 'sol del lago', NULL, 8, 231701, ST_GeomFromText('Point (-71.62409 10.54383)', 4326)),
(1031, 'villa rica', NULL, 6, 231701, ST_GeomFromText('Point (-71.64558 10.56448)', 4326)),
(1032, 'ciudad del sol', 'industrial', 6, 231701, ST_GeomFromText('Point (-71.64298 10.54997)', 4326)),
(1033, '<NAME>', 'la cruz', 6, 231702, ST_GeomFromText('Point (-71.63626 10.52454)', 4326)),
(1034, 'mucubaji', NULL, 7, 231702, ST_GeomFromText('Point (-71.63735 10.51947)', 4326)),
(1035, 'el bajo', NULL, 7, 231702, ST_GeomFromText('Point (-71.64798 10.51982)', 4326)),
(1036, 'bajo grande', NULL, 7, 231702, ST_GeomFromText('Point (-71.63884 10.51441)', 4326)),
(1037, 'isla de la fantasia', NULL, 7, 231702, ST_GeomFromText('Point (-71.64855 10.51242)', 4326)),
(1038, 'bajo grande', '1', 6, 231702, ST_GeomFromText('Point (-71.644 10.51553)', 4326)),
(1039, 'paraiso', 'el bajo', 6, 231702, ST_GeomFromText('Point (-71.64682 10.53092)', 4326)),
(1040, 'camuri', NULL, 7, 231702, ST_GeomFromText('Point (-71.64522 10.5254)', 4326)),
(1041, 'villa paraiso', NULL, 8, 231702, ST_GeomFromText('Point (-71.63495 10.52847)', 4326)),
(1042, 'brisas del lago', NULL, 6, 231702, ST_GeomFromText('Point (-71.6453 10.52842)', 4326)),
(1043, '17 de diciembre', NULL, 6, 231703, ST_GeomFromText('Point (-71.66076 10.5327)', 4326)),
(1044, '19 de julio', NULL, 6, 231703, ST_GeomFromText('Point (-71.65794 10.56566)', 4326)),
(1046, '24 de julio', NULL, 6, 231703, ST_GeomFromText('Point (-71.6618 10.55525)', 4326)),
(1047, '26 de febrero', NULL, 6, 231703, ST_GeomFromText('Point (-71.65942 10.52774)', 4326)),
(1048, '28 de diciembre', '1', 6, 231703, ST_GeomFromText('Point (-71.67426 10.54829)', 4326)),
(1049, '28 de diciembre', '2', 6, 231703, ST_GeomFromText('Point (-71.67043 10.54574)', 4326)),
(1050, '28 de diciembre', '3', 6, 231703, ST_GeomFromText('Point (-71.6702 10.54775)', 4326)),
(1051, '28 de diciembre', '4', 6, 231703, ST_GeomFromText('Point (-71.66817 10.54445)', 4326)),
(1052, 'jo<NAME>', NULL, 6, 231706, ST_GeomFromText('Point (-71.75034 10.54781)', 4326)),
(1053, '28 de diciembre', '5', 6, 231703, ST_GeomFromText('Point (-71.66666 10.55015)', 4326)),
(1054, '29 de junio', NULL, 6, 231703, ST_GeomFromText('Point (-71.67145 10.54263)', 4326)),
(1055, 'ali primera', NULL, 6, 231703, ST_GeomFromText('Point (-71.65555 10.53332)', 4326)),
(1056, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65569 10.55738)', 4326)),
(1057, 'bilicuim', NULL, 6, 231703, ST_GeomFromText('Point (-71.65202 10.53182)', 4326)),
(1058, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65391 10.55839)', 4326)),
(1059, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.64981 10.5162)', 4326)),
(1060, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65829 10.51138)', 4326)),
(1061, 'carabobo', NULL, 6, 231703, ST_GeomFromText('Point (-71.67191 10.55789)', 4326)),
(1062, 'carnevalli', NULL, 6, 231703, ST_GeomFromText('Point (-71.66532 10.53388)', 4326)),
(1063, 'democracia', NULL, 6, 231703, ST_GeomFromText('Point (-71.66836 10.53675)', 4326)),
(1064, '<NAME>', '2', 6, 231703, ST_GeomFromText('Point (-71.65632 10.55379)', 4326)),
(1065, 'el callao', NULL, 6, 231703, ST_GeomFromText('Point (-71.66781 10.56062)', 4326)),
(1066, 'el callao', 'vereda', 6, 231703, ST_GeomFromText('Point (-71.66872 10.55405)', 4326)),
(1067, 'el marquez', NULL, 6, 231703, ST_GeomFromText('Point (-71.68095 10.53643)', 4326)),
(1068, 'estrella del sur', NULL, 6, 231703, ST_GeomFromText('Point (-71.6743 10.54508)', 4326)),
(1069, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.64989 10.55401)', 4326)),
(1070, 'la lucha', NULL, 6, 231703, ST_GeomFromText('Point (-71.66499 10.56773)', 4326)),
(1071, 'la mano de dios', NULL, 6, 231703, ST_GeomFromText('Point (-71.67356 10.53691)', 4326)),
(1072, 'la milagrosa', NULL, 6, 231703, ST_GeomFromText('Point (-71.6773 10.54742)', 4326)),
(1073, 'la muchachera', NULL, 6, 231703, ST_GeomFromText('Point (-71.6682 10.53965)', 4326)),
(1074, 'la polar', '1', 6, 231703, ST_GeomFromText('Point (-71.65446 10.54721)', 4326)),
(1075, '<NAME>', NULL, 9, 231701, ST_GeomFromText('Point (-71.62019 10.56083)', 4326)),
(1076, 'limpia sur', NULL, 6, 231703, ST_GeomFromText('Point (-71.65328 10.56481)', 4326)),
(1077, '14 de noviembre', 'vista al lago', 6, 231703, ST_GeomFromText('Point (-71.67682 10.55026)', 4326)),
(1078, 'los cactus', NULL, 6, 231703, ST_GeomFromText('Point (-71.65715 10.56175)', 4326)),
(1079, 'los manantiales', '4', 6, 231705, ST_GeomFromText('Point (-71.73177 10.53199)', 4326)),
(1080, 'los vencedores', NULL, 6, 231703, ST_GeomFromText('Point (-71.65252 10.56668)', 4326)),
(1081, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65176 10.57136)', 4326)),
(1082, 'milagro sur', NULL, 6, 231703, ST_GeomFromText('Point (-71.65673 10.53533)', 4326)),
(1083, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.67096 10.5438)', 4326)),
(1084, 'polar', '3', 6, 231703, ST_GeomFromText('Point (-71.66006 10.54368)', 4326)),
(1085, 'polar', '4', 6, 231703, ST_GeomFromText('Point (-71.66469 10.54365)', 4326)),
(1086, 'praderas del sur', NULL, 6, 231703, ST_GeomFromText('Point (-71.68437 10.53664)', 4326)),
(1087, 'prados del sur', NULL, 6, 231703, ST_GeomFromText('Point (-71.67048 10.53668)', 4326)),
(1088, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.68029 10.54412)', 4326)),
(1089, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65903 10.57208)', 4326)),
(1090, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.6733 10.54056)', 4326)),
(1091, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.65023 10.56468)', 4326)),
(1092, 'santa ines', NULL, 6, 231703, ST_GeomFromText('Point (-71.68343 10.55049)', 4326)),
(1093, 'union para el progreso', NULL, 6, 231703, ST_GeomFromText('Point (-71.67747 10.53705)', 4326)),
(1094, 'universidad', NULL, 6, 231703, ST_GeomFromText('Point (-71.66524 10.53847)', 4326)),
(1095, 'villas del silencio', NULL, 8, 231703, ST_GeomFromText('Point (-71.65791 10.57377)', 4326)),
(1096, 'vista al sol', NULL, 6, 231703, ST_GeomFromText('Point (-71.64904 10.55021)', 4326)),
(1097, 'vista al sol', '2', 6, 231703, ST_GeomFromText('Point (-71.67962 10.55105)', 4326)),
(1098, 'chips', NULL, 9, 231703, ST_GeomFromText('Point (-71.64871 10.55342)', 4326)),
(1099, 'polaris', NULL, 9, 231703, ST_GeomFromText('Point (-71.64844 10.55427)', 4326)),
(1100, 'el silencio', '1', 6, 231703, ST_GeomFromText('Point (-71.65532 10.57491)', 4326)),
(1101, 'el silencio', '2', 6, 231703, ST_GeomFromText('Point (-71.65967 10.56851)', 4326)),
(1102, 'km 4', NULL, 7, 231703, ST_GeomFromText('Point (-71.654 10.57811)', 4326)),
(1103, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.67572 10.55512)', 4326)),
(1104, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.68053 10.54777)', 4326)),
(1105, 'matey', NULL, 6, 231703, ST_GeomFromText('Point (-71.67465 10.55593)', 4326)),
(1106, 'mi esperanza', NULL, 6, 231703, ST_GeomFromText('Point (-71.67383 10.55719)', 4326)),
(1107, 'natividad', NULL, 6, 231703, ST_GeomFromText('Point (-71.67559 10.55253)', 4326)),
(1108, 'portal de belen', NULL, 6, 231703, ST_GeomFromText('Point (-71.68351 10.54048)', 4326)),
(1109, '<NAME>', NULL, 6, 231703, ST_GeomFromText('Point (-71.67673 10.54429)', 4326)),
(1110, 'santa ana', NULL, 6, 231703, ST_GeomFromText('Point (-71.67772 10.54035)', 4326)),
(1111, 'santa maria', NULL, 6, 231703, ST_GeomFromText('Point (-71.68061 10.54039)', 4326)),
(1112, 'santa monica', NULL, 6, 231703, ST_GeomFromText('Point (-71.67835 10.54429)', 4326)),
(1113, 'polar', '2', 6, 231703, ST_GeomFromText('Point (-71.65344 10.54352)', 4326)),
(1114, '<NAME>', NULL, 7, 231703, ST_GeomFromText('Point (-71.65848 10.56331)', 4326)),
(1115, 'el rodeo', NULL, 7, 231703, ST_GeomFromText('Point (-71.65871 10.52612)', 4326)),
(1116, 'el rodeo', '2', 7, 231703, ST_GeomFromText('Point (-71.65622 10.51587)', 4326)),
(1117, 'la fundicion', NULL, 7, 231703, ST_GeomFromText('Point (-71.66565 10.565)', 4326)),
(1118, 'la gloria', NULL, 8, 231703, ST_GeomFromText('Point (-71.65247 10.55424)', 4326)),
(1119, 'la modelo', NULL, 8, 231703, ST_GeomFromText('Point (-71.65305 10.55116)', 4326)),
(1120, '<NAME>', NULL, 8, 231703, ST_GeomFromText('Point (-71.67186 10.55147)', 4326)),
(1121, 'popular de san francisco', NULL, 8, 231703, ST_GeomFromText('Point (-71.65027 10.55997)', 4326)),
(1122, '<NAME>', NULL, 7, 231703, ST_GeomFromText('Point (-71.68773 10.53692)', 4326)),
(1123, 'bolivariano', '1', 6, 231704, ST_GeomFromText('Point (-71.61949 10.57663)', 4326)),
(1124, '<NAME>', '2', 6, 231704, ST_GeomFromText('Point (-71.64156 10.57955)', 4326)),
(1125, 'fundacomun 5a', NULL, 7, 231704, ST_GeomFromText('Point (-71.63021 10.59022)', 4326)),
(1126, 'fundacomun 5b', NULL, 7, 231704, ST_GeomFromText('Point (-71.63286 10.58907)', 4326)),
(1127, 'bolivariano', '2', 6, 231704, ST_GeomFromText('Point (-71.62542 10.57814)', 4326)),
(1128, '<NAME>', '4', 6, 231704, ST_GeomFromText('Point (-71.63782 10.58975)', 4326)),
(1129, '<NAME>', '8', 6, 231704, ST_GeomFromText('Point (-71.64375 10.58455)', 4326)),
(1130, '<NAME>', NULL, 9, 231701, ST_GeomFromText('Point (-71.62063 10.55914)', 4326)),
(1131, '<NAME>', NULL, 6, 231705, ST_GeomFromText('Point (-71.70938 10.52392)', 4326)),
(1132, 'castilletes', NULL, NULL, 231502, ST_GeomFromText('Point (-71.32617 11.84613)', 4326)),
(1133, 'tapuri', NULL, NULL, 231502, ST_GeomFromText('Point (-71.35606 11.79465)', 4326)),
(1134, 'guincua', NULL, NULL, 231502, ST_GeomFromText('Point (-71.41571 11.77737)', 4326)),
(1135, 'aipiapa', NULL, NULL, 231502, ST_GeomFromText('Point (-71.45222 11.78153)', 4326)),
(1136, 'morchipa', NULL, NULL, 231502, ST_GeomFromText('Point (-71.64557 11.69817)', 4326)),
(1137, 'cusia', NULL, NULL, 231502, ST_GeomFromText('Point (-71.68477 11.67855)', 4326)),
(1138, 'palachuo', NULL, NULL, 231502, ST_GeomFromText('Point (-71.70539 11.67347)', 4326)),
(1139, 'cojoro', NULL, NULL, 231502, ST_GeomFromText('Point (-71.85 11.63545)', 4326)),
(1140, 'uruimana', NULL, NULL, 231502, ST_GeomFromText('Point (-71.88705 11.64399)', 4326)),
(1141, 'gualantalao', NULL, NULL, 231502, ST_GeomFromText('Point (-71.88195 11.62831)', 4326)),
(1142, 'casusain', NULL, NULL, 231502, ST_GeomFromText('Point (-71.90581 11.62954)', 4326)),
(1143, 'jasay', NULL, NULL, 231502, ST_GeomFromText('Point (-71.90788 11.65605)', 4326)),
(1144, 'jutaipanao', NULL, NULL, 231502, ST_GeomFromText('Point (-71.94001 11.60622)', 4326)),
(1145, 'iralmacira', NULL, NULL, 231502, ST_GeomFromText('Point (-71.96144 11.61735)', 4326)),
(1146, 'calinatay', NULL, NULL, 231502, ST_GeomFromText('Point (-71.99025 11.59742)', 4326)),
(1147, 'cojua', NULL, NULL, 231502, ST_GeomFromText('Point (-71.97521 11.55766)', 4326)),
(1148, 'neima', NULL, NULL, 231502, ST_GeomFromText('Point (-71.96957 11.54814)', 4326)),
(1149, 'sichipes', NULL, NULL, 231502, ST_GeomFromText('Point (-71.97569 11.50599)', 4326)),
(1150, 'guayamulisira', NULL, NULL, 231502, ST_GeomFromText('Point (-71.97155 11.46175)', 4326)),
(1151, 'guarurtain', NULL, NULL, 231502, ST_GeomFromText('Point (-71.96702 11.44324)', 4326)),
(1152, 'amunor', NULL, NULL, 231502, ST_GeomFromText('Point (-71.99127 11.43558)', 4326)),
(1153, 'alitain', NULL, NULL, 231504, ST_GeomFromText('Point (-72.03205 11.32847)', 4326)),
(1154, 'alpanate', NULL, NULL, 231504, ST_GeomFromText('Point (-72.01064 11.19338)', 4326)),
(1155, 'amuruipa', NULL, NULL, 231504, ST_GeomFromText('Point (-72.01809 11.30757)', 4326)),
(1156, 'aramachon', NULL, NULL, 231504, ST_GeomFromText('Point (-71.93429 11.24315)', 4326)),
(1157, 'arepeta', NULL, NULL, 231504, ST_GeomFromText('Point (-72.04529 11.36438)', 4326)),
(1158, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.05649 11.14422)', 4326)),
(1159, 'candelaria', NULL, NULL, 231504, ST_GeomFromText('Point (-72.06385 11.41785)', 4326)),
(1160, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.05403 11.14628)', 4326)),
(1161, 'chamalu', NULL, NULL, 231504, ST_GeomFromText('Point (-72.09526 11.28319)', 4326)),
(1162, 'chemerain', NULL, NULL, 231504, ST_GeomFromText('Point (-72.08731 11.29377)', 4326)),
(1163, 'colopontachon', NULL, NULL, 231504, ST_GeomFromText('Point (-72.10404 11.33136)', 4326)),
(1164, 'colopontay', NULL, NULL, 231504, ST_GeomFromText('Point (-72.07774 11.27853)', 4326)),
(1165, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-71.92259 11.19758)', 4326)),
(1166, 'ariguapa', NULL, NULL, 231501, ST_GeomFromText('Point (-71.89716 11.16448)', 4326)),
(1167, 'el campamento', NULL, NULL, 231504, ST_GeomFromText('Point (-71.96532 11.36416)', 4326)),
(1168, 'el carretal', NULL, NULL, 231504, ST_GeomFromText('Point (-72.19823 11.19035)', 4326)),
(1169, 'el cuervo', NULL, NULL, 231504, ST_GeomFromText('Point (-71.98803 11.30718)', 4326)),
(1170, 'botoncillo', NULL, NULL, 231501, ST_GeomFromText('Point (-71.83002 11.13882)', 4326)),
(1171, 'caraipia', NULL, NULL, 231501, ST_GeomFromText('Point (-71.84217 11.11134)', 4326)),
(1172, '<NAME>', NULL, NULL, 231501, ST_GeomFromText('Point (-71.86339 11.09999)', 4326)),
(1173, 'el guayabito', NULL, NULL, 231504, ST_GeomFromText('Point (-72.01732 11.21406)', 4326)),
(1174, 'el japon', NULL, NULL, 231504, ST_GeomFromText('Point (-72.20848 11.1558)', 4326)),
(1175, 'el prieto', NULL, NULL, 231504, ST_GeomFromText('Point (-71.97805 11.17785)', 4326)),
(1176, 'el barro', NULL, NULL, 231501, ST_GeomFromText('Point (-71.88283 11.05981)', 4326)),
(1177, 'el dividive', NULL, NULL, 231501, ST_GeomFromText('Point (-71.88327 11.13018)', 4326)),
(1178, 'el guanabano', NULL, NULL, 231501, ST_GeomFromText('Point (-71.88075 11.12502)', 4326)),
(1179, 'el uverito', NULL, NULL, 231501, ST_GeomFromText('Point (-71.9051 11.17942)', 4326)),
(1180, 'isla brasil', NULL, NULL, 231501, ST_GeomFromText('Point (-71.84153 11.00244)', 4326)),
(1181, 'la boca', NULL, NULL, 231501, ST_GeomFromText('Point (-71.87552 11.06322)', 4326)),
(1182, '24 de abril', NULL, NULL, 231204, ST_GeomFromText('Point (-71.9925 11.0075)', 4326)),
(1183, 'la boquita', NULL, NULL, 231501, ST_GeomFromText('Point (-71.87979 11.05318)', 4326)),
(1184, 'la legua', NULL, NULL, 231501, ST_GeomFromText('Point (-71.82333 11.04974)', 4326)),
(1185, 'la peña', NULL, NULL, 231501, ST_GeomFromText('Point (-71.8818 11.14287)', 4326)),
(1186, 'la perdida', NULL, NULL, 231501, ST_GeomFromText('Point (-71.76983 11.01871)', 4326)),
(1187, 'las parchitas', NULL, NULL, 231501, ST_GeomFromText('Point (-71.90835 11.18625)', 4326)),
(1188, 'paijana', NULL, NULL, 230102, ST_GeomFromText('Point (-71.7693 11.083)', 4326)),
(1189, '<NAME>', NULL, NULL, 231501, ST_GeomFromText('Point (-71.83615 11.0677)', 4326)),
(1190, 'alcanfor', NULL, NULL, 231203, ST_GeomFromText('Point (-71.81757 10.9314)', 4326)),
(1191, 'guaimpesi', NULL, NULL, 231504, ST_GeomFromText('Point (-72.06854 11.46147)', 4326)),
(1192, 'guana', NULL, NULL, 231504, ST_GeomFromText('Point (-72.22821 11.17247)', 4326)),
(1193, 'guarero', NULL, NULL, 231504, ST_GeomFromText('Point (-72.06598 11.35408)', 4326)),
(1194, 'guichepe', NULL, NULL, 231504, ST_GeomFromText('Point (-71.97839 11.37893)', 4326)),
(1195, 'hato nuevo', NULL, NULL, 231504, ST_GeomFromText('Point (-72.02026 11.16839)', 4326)),
(1196, 'jumop', NULL, NULL, 231502, ST_GeomFromText('Point (-72.00893 11.50433)', 4326)),
(1197, 'jepipa', NULL, NULL, 231504, ST_GeomFromText('Point (-72.00396 11.25488)', 4326)),
(1198, 'jotomana', NULL, NULL, 231504, ST_GeomFromText('Point (-71.93209 11.21402)', 4326)),
(1199, 'juruba', NULL, NULL, 231504, ST_GeomFromText('Point (-71.94643 11.27449)', 4326)),
(1200, 'la boca de los cacaos', NULL, NULL, 231504, ST_GeomFromText('Point (-72.0474 11.15432)', 4326)),
(1201, 'la esperanza', NULL, NULL, 231504, ST_GeomFromText('Point (-72.04988 11.24828)', 4326)),
(1202, 'la gloria', NULL, NULL, 231504, ST_GeomFromText('Point (-71.96421 11.37335)', 4326)),
(1203, 'la loma', NULL, NULL, 231504, ST_GeomFromText('Point (-72.03741 11.1455)', 4326)),
(1204, 'la punta', NULL, NULL, 231504, ST_GeomFromText('Point (-71.96263 11.32807)', 4326)),
(1205, 'las gavetas', NULL, NULL, 231504, ST_GeomFromText('Point (-71.97628 11.39813)', 4326)),
(1206, 'las guardias', NULL, NULL, 231504, ST_GeomFromText('Point (-71.91346 11.19476)', 4326)),
(1207, 'las huertas', NULL, NULL, 231504, ST_GeomFromText('Point (-71.95427 11.18056)', 4326)),
(1208, 'las jabillitas', NULL, NULL, 231504, ST_GeomFromText('Point (-72.02891 11.13554)', 4326)),
(1209, 'las pitias', NULL, NULL, 231504, ST_GeomFromText('Point (-71.92257 11.21272)', 4326)),
(1210, 'las trojas', NULL, NULL, 231504, ST_GeomFromText('Point (-72.18164 11.1483)', 4326)),
(1211, 'los aceitunos', NULL, NULL, 231504, ST_GeomFromText('Point (-71.95833 11.31178)', 4326)),
(1212, 'los manantiales', NULL, NULL, 231504, ST_GeomFromText('Point (-72.1641 11.13979)', 4326)),
(1213, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.07108 11.20009)', 4326)),
(1214, 'matuare', NULL, NULL, 231504, ST_GeomFromText('Point (-71.96227 11.17451)', 4326)),
(1215, 'moina', NULL, NULL, 231504, ST_GeomFromText('Point (-72.02493 11.36768)', 4326)),
(1216, 'murichipa', NULL, NULL, 231504, ST_GeomFromText('Point (-71.99238 11.27101)', 4326)),
(1217, 'arijuna', NULL, NULL, 231503, ST_GeomFromText('Point (-72.01555 11.09778)', 4326)),
(1218, '<NAME>', NULL, NULL, 231503, ST_GeomFromText('Point (-72.04582 11.10737)', 4326)),
(1219, 'cacao', NULL, NULL, 231503, ST_GeomFromText('Point (-72.08649 11.12617)', 4326)),
(1220, 'paraguachon', NULL, NULL, 231504, ST_GeomFromText('Point (-72.12843 11.35882)', 4326)),
(1221, 'camama', NULL, NULL, 231503, ST_GeomFromText('Point (-72.02465 11.14568)', 4326)),
(1222, 'paraguaipoa', NULL, NULL, 231504, ST_GeomFromText('Point (-71.96269 11.34966)', 4326)),
(1223, 'pararu', NULL, NULL, 231504, ST_GeomFromText('Point (-71.97002 11.41324)', 4326)),
(1224, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.17967 11.18654)', 4326)),
(1225, 'sagua', NULL, NULL, 231504, ST_GeomFromText('Point (-71.90334 11.26208)', 4326)),
(1226, '<NAME>', NULL, NULL, 231503, ST_GeomFromText('Point (-72.03553 11.12072)', 4326)),
(1227, '<NAME>', NULL, NULL, 231503, ST_GeomFromText('Point (-72.07133 11.1182)', 4326)),
(1228, 'el bejuco', NULL, NULL, 231503, ST_GeomFromText('Point (-72.05346 11.09036)', 4326)),
(1229, 'el cairo', NULL, NULL, 231503, ST_GeomFromText('Point (-72.30519 11.11368)', 4326)),
(1230, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.23132 11.16678)', 4326)),
(1231, '<NAME>', NULL, NULL, 231504, ST_GeomFromText('Point (-72.0065 11.16096)', 4326)),
(1232, 'yaguasiru', NULL, NULL, 231504, ST_GeomFromText('Point (-72.03252 11.33828)', 4326)),
(1233, 'el calabozo', NULL, NULL, 231503, ST_GeomFromText('Point (-72.02398 11.1288)', 4326)),
(1234, 'el campamento', NULL, NULL, 231503, ST_GeomFromText('Point (-72.06078 11.12668)', 4326)),
(1235, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.37451 10.99205)', 4326)),
(1236, 'el cardonal', NULL, NULL, 231503, ST_GeomFromText('Point (-72.0241 11.11885)', 4326)),
(1237, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.02623 11.01029)', 4326)),
(1238, 'el carnaval', NULL, NULL, 231503, ST_GeomFromText('Point (-72.02104 11.06452)', 4326)),
(1239, 'el cerro', NULL, NULL, 231503, ST_GeomFromText('Point (-72.06156 11.06502)', 4326)),
(1240, 'el cuervo', NULL, NULL, 231503, ST_GeomFromText('Point (-71.98402 11.11909)', 4326)),
(1241, 'el cuji', NULL, NULL, 231503, ST_GeomFromText('Point (-72.00481 11.06674)', 4326)),
(1242, 'el escondido', NULL, NULL, 231503, ST_GeomFromText('Point (-72.13223 11.09238)', 4326)),
(1243, 'amana', NULL, NULL, 231204, ST_GeomFromText('Point (-72.10391 11.04836)', 4326)),
(1244, 'el gavilan', NULL, NULL, 231503, ST_GeomFromText('Point (-71.98257 11.13876)', 4326)),
(1245, 'el horizonte', NULL, NULL, 231503, ST_GeomFromText('Point (-72.29917 11.12211)', 4326)),
(1246, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00687 11.02929)', 4326)),
(1247, 'el milagro', NULL, NULL, 231503, ST_GeomFromText('Point (-72.38718 11.11852)', 4326)),
(1248, 'el molinete', NULL, NULL, 231503, ST_GeomFromText('Point (-72.01993 11.049)', 4326)),
(1249, 'bello monte', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00962 11.02411)', 4326)),
(1250, 'bolivariana', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00883 11.03304)', 4326)),
(1251, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.18766 10.97689)', 4326)),
(1252, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-71.98112 11.0002)', 4326)),
(1253, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-71.91414 11.06265)', 4326)),
(1254, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.5328 8.71046)', 4326)),
(1255, 'albaricales', NULL, NULL, 230801, ST_GeomFromText('Point (-72.57442 8.73762)', 4326)),
(1256, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.35137 8.50371)', 4326)),
(1257, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.08094 8.58606)', 4326)),
(1258, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.05305 8.57292)', 4326)),
(1259, 'atascoso', NULL, NULL, 230504, ST_GeomFromText('Point (-72.07687 8.96382)', 4326)),
(1260, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.46361 8.50206)', 4326)),
(1261, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.27269 8.51522)', 4326)),
(1262, 'el guayabo', NULL, NULL, 230402, ST_GeomFromText('Point (-72.33924 8.62428)', 4326)),
(1263, 'bolivar', NULL, NULL, 230504, ST_GeomFromText('Point (-71.89247 8.91624)', 4326)),
(1264, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.01225 8.48852)', 4326)),
(1265, 'cucharon', NULL, NULL, 230504, ST_GeomFromText('Point (-72.08962 8.55716)', 4326)),
(1266, 'el maiz', NULL, NULL, 230402, ST_GeomFromText('Point (-72.41363 8.38484)', 4326)),
(1267, 'el monito', NULL, NULL, 230402, ST_GeomFromText('Point (-72.38284 8.42731)', 4326)),
(1268, 'el pital', NULL, NULL, 230402, ST_GeomFromText('Point (-72.40071 8.40755)', 4326)),
(1269, 'el pulpito', NULL, NULL, 230402, ST_GeomFromText('Point (-72.16724 8.47293)', 4326)),
(1270, 'el tapon', NULL, NULL, 230402, ST_GeomFromText('Point (-72.21877 8.43088)', 4326)),
(1271, 'gallinazo', NULL, NULL, 230402, ST_GeomFromText('Point (-72.35167 8.7662)', 4326)),
(1272, 'alborada', NULL, NULL, 230801, ST_GeomFromText('Point (-72.53648 8.60596)', 4326)),
(1273, 'guaramacal', NULL, NULL, 230402, ST_GeomFromText('Point (-72.22056 8.7565)', 4326)),
(1274, 'km 75', NULL, NULL, 230402, ST_GeomFromText('Point (-72.29418 8.46089)', 4326)),
(1275, 'km 79', NULL, NULL, 230402, ST_GeomFromText('Point (-72.29215 8.43365)', 4326)),
(1276, 'km 82', NULL, NULL, 230402, ST_GeomFromText('Point (-72.2901 8.41465)', 4326)),
(1277, 'km 84', NULL, NULL, 230402, ST_GeomFromText('Point (-72.29873 8.39088)', 4326)),
(1278, 'b<NAME> mara', NULL, NULL, 231203, ST_GeomFromText('Point (-71.86115 10.92066)', 4326)),
(1279, 'brisas del norte', NULL, NULL, 231203, ST_GeomFromText('Point (-71.89671 10.89089)', 4326)),
(1280, 'cañada enredada', NULL, NULL, 231203, ST_GeomFromText('Point (-71.96326 10.96237)', 4326)),
(1281, 'cotorrera', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84932 10.96223)', 4326)),
(1282, '12 de enero', NULL, NULL, 231201, ST_GeomFromText('Point (-71.76003 10.87795)', 4326)),
(1283, 'auxiliadora', '1', NULL, 231201, ST_GeomFromText('Point (-71.75974 10.8981)', 4326)),
(1284, 'auxiliadora', '2', NULL, 231201, ST_GeomFromText('Point (-71.7681 10.89548)', 4326)),
(1285, 'el hato', NULL, NULL, 230101, ST_GeomFromText('Point (-71.65411 10.95144)', 4326)),
(1286, 'el toro', NULL, NULL, 230101, ST_GeomFromText('Point (-71.64279 10.95651)', 4326)),
(1287, 'las cabeceras', NULL, NULL, 230101, ST_GeomFromText('Point (-71.62766 10.95446)', 4326)),
(1288, '<NAME>', NULL, NULL, 230102, ST_GeomFromText('Point (-71.6129 10.98583)', 4326)),
(1289, '<NAME>', NULL, NULL, 231403, ST_GeomFromText('Point (-71.20319 10.87149)', 4326)),
(1290, 'guaruguaro', NULL, NULL, 231403, ST_GeomFromText('Point (-71.23568 10.89893)', 4326)),
(1291, 'quisiro', NULL, NULL, 231403, ST_GeomFromText('Point (-71.28588 10.88082)', 4326)),
(1292, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.8328 10.89296)', 4326)),
(1293, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.77127 10.91208)', 4326)),
(1294, '1 de mayo', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87489 10.87204)', 4326)),
(1295, 'el 40', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88895 10.88975)', 4326)),
(1296, 'el cucharal', NULL, NULL, 231203, ST_GeomFromText('Point (-71.86068 10.90211)', 4326)),
(1297, '3 bocas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83131 10.81773)', 4326)),
(1298, '4 estaca', NULL, NULL, 231202, ST_GeomFromText('Point (-71.95417 10.77362)', 4326)),
(1299, '7 minas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.90466 10.78749)', 4326)),
(1300, 'ali primera', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8632 10.84969)', 4326)),
(1301, 'ana maria campos', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86824 10.82882)', 4326)),
(1302, 'buena esperanza', NULL, NULL, 231202, ST_GeomFromText('Point (-72.06799 10.78337)', 4326)),
(1303, 'buena vista', NULL, NULL, 231202, ST_GeomFromText('Point (-71.99646 10.82594)', 4326)),
(1304, '1 de mayo', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68115 10.78021)', 4326)),
(1305, '24 de julio', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84184 10.62586)', 4326)),
(1306, 'el remolino', NULL, NULL, 230703, ST_GeomFromText('Point (-71.8084 10.5687)', 4326)),
(1307, 'pueblo aparte', NULL, NULL, 230703, ST_GeomFromText('Point (-71.88021 10.5495)', 4326)),
(1308, 'la sierra', NULL, NULL, 230703, ST_GeomFromText('Point (-71.85674 10.5412)', 4326)),
(1309, 'la pringamoza', NULL, NULL, 230703, ST_GeomFromText('Point (-71.8335 10.5141)', 4326)),
(1310, 'chiquinquira', NULL, NULL, 230903, ST_GeomFromText('Point (-71.64851 10.43907)', 4326)),
(1311, 'palmarejo', NULL, NULL, 230903, ST_GeomFromText('Point (-71.63513 10.48547)', 4326)),
(1312, 'concepcion', NULL, NULL, 230901, ST_GeomFromText('Point (-71.67971 10.41986)', 4326)),
(1313, '<NAME>', NULL, NULL, 230904, ST_GeomFromText('Point (-71.75234 10.38009)', 4326)),
(1314, 'el carmelo', NULL, NULL, 230904, ST_GeomFromText('Point (-71.72956 10.38462)', 4326)),
(1315, 'potreritos', NULL, NULL, 230905, ST_GeomFromText('Point (-71.78798 10.33566)', 4326)),
(1316, '<NAME>', NULL, NULL, 230308, ST_GeomFromText('Point (-71.13071 10.41312)', 4326)),
(1317, 'cacharrales', NULL, NULL, 231404, ST_GeomFromText('Point (-71.12693 10.62998)', 4326)),
(1318, '<NAME>', NULL, NULL, 230905, ST_GeomFromText('Point (-71.96697 10.26287)', 4326)),
(1319, 'algodonal', NULL, NULL, 230308, ST_GeomFromText('Point (-71.24054 10.38263)', 4326)),
(1320, '<NAME>', NULL, NULL, 231405, ST_GeomFromText('Point (-71.57672 10.78177)', 4326)),
(1321, '<NAME>', NULL, NULL, 231405, ST_GeomFromText('Point (-71.5623 10.77503)', 4326)),
(1322, '<NAME>', NULL, NULL, 231405, ST_GeomFromText('Point (-71.51762 10.79251)', 4326)),
(1323, '<NAME>', NULL, NULL, 231405, ST_GeomFromText('Point (-71.55303 10.79363)', 4326)),
(1324, 'bella vista', NULL, NULL, 231405, ST_GeomFromText('Point (-71.46796 10.78814)', 4326)),
(1325, 'altagracia', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52617 10.7109)', 4326)),
(1326, 'el cañito', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52205 10.63127)', 4326)),
(1327, 'el cucharal', NULL, NULL, 231401, ST_GeomFromText('Point (-71.48696 10.70458)', 4326)),
(1328, 'barisiguas', NULL, NULL, 231402, ST_GeomFromText('Point (-71.4205 10.7581)', 4326)),
(1329, 'corrales', NULL, NULL, 231402, ST_GeomFromText('Point (-71.3563 10.74465)', 4326)),
(1330, '<NAME>', NULL, NULL, 231403, ST_GeomFromText('Point (-71.30911 10.82887)', 4326)),
(1331, '<NAME>', NULL, NULL, 231402, ST_GeomFromText('Point (-71.26574 10.78478)', 4326)),
(1332, 'el jajatal', NULL, NULL, 231403, ST_GeomFromText('Point (-71.28154 10.81966)', 4326)),
(1333, 'la cuadra', NULL, NULL, 231403, ST_GeomFromText('Point (-71.25774 10.80277)', 4326)),
(1334, 'el crespo', NULL, NULL, 231402, ST_GeomFromText('Point (-71.40009 10.71254)', 4326)),
(1335, 'ancon de iturre', NULL, NULL, 231405, ST_GeomFromText('Point (-71.44255 10.78755)', 4326)),
(1336, 'el papayo', NULL, NULL, 231403, ST_GeomFromText('Point (-71.23789 10.84061)', 4326)),
(1337, 'el rodeo', NULL, NULL, 231402, ST_GeomFromText('Point (-71.3589 10.71015)', 4326)),
(1338, 'cueva del tigre', NULL, NULL, 231404, ST_GeomFromText('Point (-71.08779 10.6033)', 4326)),
(1339, 'el cabimito', NULL, NULL, 231404, ST_GeomFromText('Point (-71.1719 10.53526)', 4326)),
(1340, 'el cascabel', NULL, NULL, 231404, ST_GeomFromText('Point (-71.12391 10.64891)', 4326)),
(1341, 'el consejo', NULL, NULL, 231404, ST_GeomFromText('Point (-71.14348 10.48665)', 4326)),
(1342, 'el zamuro', NULL, NULL, 231404, ST_GeomFromText('Point (-71.30047 10.56656)', 4326)),
(1343, 'guaruguaro', NULL, NULL, 231404, ST_GeomFromText('Point (-71.14759 10.49278)', 4326)),
(1344, 'las palmas', NULL, NULL, 231404, ST_GeomFromText('Point (-71.18139 10.58852)', 4326)),
(1345, 'las palmitas', NULL, NULL, 231404, ST_GeomFromText('Point (-71.1599 10.60888)', 4326)),
(1346, 'los tablazos', NULL, NULL, 231404, ST_GeomFromText('Point (-71.04662 10.48054)', 4326)),
(1347, 'palmichito', NULL, NULL, 231404, ST_GeomFromText('Point (-71.14783 10.62792)', 4326)),
(1348, 'la culebra', NULL, NULL, 231804, ST_GeomFromText('Point (-71.22893 10.51467)', 4326)),
(1349, '<NAME>', NULL, NULL, 231404, ST_GeomFromText('Point (-71.12775 10.51357)', 4326)),
(1350, 'el guanabano', NULL, NULL, 231804, ST_GeomFromText('Point (-71.25669 10.50097)', 4326)),
(1351, '<NAME>', NULL, NULL, 231404, ST_GeomFromText('Point (-71.2731 10.57886)', 4326)),
(1352, 'guadalupe', NULL, NULL, 231804, ST_GeomFromText('Point (-71.2991 10.52195)', 4326)),
(1353, 'punta iguana', NULL, NULL, 231803, ST_GeomFromText('Point (-71.52512 10.58408)', 4326)),
(1354, 'puerto escondido', NULL, NULL, 231801, ST_GeomFromText('Point (-71.49078 10.51008)', 4326)),
(1355, 'santa rita', NULL, NULL, 231801, ST_GeomFromText('Point (-71.5178 10.53425)', 4326)),
(1356, 'barrancas', NULL, NULL, 231803, ST_GeomFromText('Point (-71.52911 10.55973)', 4326)),
(1357, 'la mocha', NULL, NULL, 231801, ST_GeomFromText('Point (-71.46057 10.56062)', 4326)),
(1358, 'juncalito', NULL, NULL, 231402, ST_GeomFromText('Point (-71.37687 10.61475)', 4326)),
(1359, 'palmarejo', NULL, NULL, 231803, ST_GeomFromText('Point (-71.52241 10.59221)', 4326)),
(1360, 'quiros', NULL, NULL, 231404, ST_GeomFromText('Point (-71.0272 10.46207)', 4326)),
(1361, 'km 42', NULL, NULL, 231402, ST_GeomFromText('Point (-71.14592 10.6788)', 4326)),
(1362, 'el hornito', NULL, NULL, 231401, ST_GeomFromText('Point (-71.53211 10.74428)', 4326)),
(1363, 'el pozon', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52104 10.66243)', 4326)),
(1364, 'gutierrez', NULL, NULL, 231401, ST_GeomFromText('Point (-71.4419 10.76235)', 4326)),
(1365, 'haticos del norte', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52577 10.73412)', 4326)),
(1366, 'haticos sur', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52911 10.68031)', 4326)),
(1367, 'jagueicito', NULL, NULL, 231401, ST_GeomFromText('Point (-71.51574 10.67637)', 4326)),
(1368, '<NAME>', NULL, NULL, 231401, ST_GeomFromText('Point (-71.45919 10.76283)', 4326)),
(1369, 'las playitas', NULL, NULL, 231401, ST_GeomFromText('Point (-71.49938 10.72904)', 4326)),
(1370, 'los puertos de altagracia', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52598 10.71256)', 4326)),
(1371, 'pnta de leiva', NULL, NULL, 231401, ST_GeomFromText('Point (-71.5189 10.64648)', 4326)),
(1372, '<NAME>', NULL, NULL, 231401, ST_GeomFromText('Point (-71.52845 10.66917)', 4326)),
(1373, 'la cataneja', NULL, NULL, 231402, ST_GeomFromText('Point (-71.2608 10.68303)', 4326)),
(1374, 'la entrada', NULL, NULL, 231402, ST_GeomFromText('Point (-71.35135 10.72381)', 4326)),
(1375, 'la quebrada', NULL, NULL, 231402, ST_GeomFromText('Point (-71.31503 10.80758)', 4326)),
(1376, '<NAME>', NULL, NULL, 231402, ST_GeomFromText('Point (-71.39366 10.76478)', 4326)),
(1377, '<NAME>', NULL, NULL, 231402, ST_GeomFromText('Point (-71.34425 10.69325)', 4326)),
(1378, '<NAME>', NULL, NULL, 231402, ST_GeomFromText('Point (-71.34369 10.74421)', 4326)),
(1379, '<NAME>', NULL, NULL, 231402, ST_GeomFromText('Point (-71.35692 10.68284)', 4326)),
(1380, 'mecocal', NULL, NULL, 231402, ST_GeomFromText('Point (-71.41442 10.64341)', 4326)),
(1381, 'palmarito', NULL, NULL, 231402, ST_GeomFromText('Point (-71.24796 10.75264)', 4326)),
(1382, 'zapateral', NULL, NULL, 231402, ST_GeomFromText('Point (-71.41074 10.69542)', 4326)),
(1383, '<NAME>', NULL, NULL, 231802, ST_GeomFromText('Point (-71.45368 10.48433)', 4326)),
(1384, 'tolosa', NULL, NULL, 231804, ST_GeomFromText('Point (-71.39462 10.48679)', 4326)),
(1385, '<NAME>', NULL, NULL, 231804, ST_GeomFromText('Point (-71.38663 10.47403)', 4326)),
(1386, '<NAME>', NULL, NULL, 231802, ST_GeomFromText('Point (-71.42245 10.46413)', 4326)),
(1387, '<NAME>', NULL, NULL, 231802, ST_GeomFromText('Point (-71.45042 10.46819)', 4326)),
(1388, '<NAME>', NULL, NULL, 230309, ST_GeomFromText('Point (-71.41339 10.32194)', 4326)),
(1389, '<NAME>', NULL, NULL, 231804, ST_GeomFromText('Point (-71.3496 10.50012)', 4326)),
(1390, '<NAME>', NULL, NULL, 231404, ST_GeomFromText('Point (-71.21742 10.54496)', 4326)),
(1391, '<NAME>', NULL, NULL, 231404, ST_GeomFromText('Point (-71.23104 10.52448)', 4326)),
(1392, '<NAME>', NULL, NULL, 231404, ST_GeomFromText('Point (-71.05375 10.5082)', 4326)),
(1393, 'cienaguita', NULL, NULL, 230308, ST_GeomFromText('Point (-71.316 10.39702)', 4326)),
(1394, 'curazaito', NULL, NULL, 230308, ST_GeomFromText('Point (-71.30755 10.37739)', 4326)),
(1395, 'el balaustre', NULL, NULL, 230308, ST_GeomFromText('Point (-71.32378 10.40165)', 4326)),
(1396, 'el pensado', NULL, NULL, 230308, ST_GeomFromText('Point (-71.01778 10.41131)', 4326)),
(1397, 'la guacamaya', NULL, NULL, 230308, ST_GeomFromText('Point (-71.16542 10.39502)', 4326)),
(1398, 'la mesa', NULL, NULL, 230308, ST_GeomFromText('Point (-71.08566 10.4241)', 4326)),
(1399, 'la picapica', NULL, NULL, 230308, ST_GeomFromText('Point (-71.09162 10.39599)', 4326)),
(1400, 'la sabana', NULL, NULL, 230308, ST_GeomFromText('Point (-71.24467 10.3996)', 4326)),
(1401, 'las palmas', NULL, NULL, 230308, ST_GeomFromText('Point (-71.18731 10.41677)', 4326)),
(1402, '<NAME>', NULL, NULL, 230308, ST_GeomFromText('Point (-71.12444 10.44928)', 4326)),
(1404, 'el gamelotal', NULL, NULL, 231804, ST_GeomFromText('Point (-71.23341 10.44969)', 4326)),
(1406, '23 de enero', NULL, 6, 230307, ST_GeomFromText('Point (-71.44276 10.40431)', 4326)),
(1407, '26 de julio', NULL, 6, 230307, ST_GeomFromText('Point (-71.44101 10.4072)', 4326)),
(1408, 'bella vista', NULL, 6, 230307, ST_GeomFromText('Point (-71.43518 10.40895)', 4326)),
(1409, 'los vegotes', NULL, NULL, 230308, ST_GeomFromText('Point (-71.3004 10.39138)', 4326)),
(1410, 'palito blanco', NULL, NULL, 230308, ST_GeomFromText('Point (-71.18271 10.38115)', 4326)),
(1411, '<NAME>', NULL, NULL, 230308, ST_GeomFromText('Point (-71.08425 10.45116)', 4326)),
(1412, '<NAME>', NULL, 6, 231004, ST_GeomFromText('Point (-71.21594 10.23948)', 4326)),
(1413, '<NAME>', NULL, NULL, 231004, ST_GeomFromText('Point (-71.1177 10.27571)', 4326)),
(1414, 'el guaimaral', NULL, NULL, 231004, ST_GeomFromText('Point (-71.0931 10.37551)', 4326)),
(1415, 'el purgatorio', NULL, NULL, 231903, ST_GeomFromText('Point (-71.18912 10.33212)', 4326)),
(1416, 'el bachaco', NULL, NULL, 231903, ST_GeomFromText('Point (-71.20905 10.35983)', 4326)),
(1417, 'zamuro', NULL, NULL, 231903, ST_GeomFromText('Point (-71.22258 10.34519)', 4326)),
(1418, 'cañaveral', NULL, NULL, 231903, ST_GeomFromText('Point (-71.21788 10.33469)', 4326)),
(1419, 'el rincon', NULL, NULL, 231903, ST_GeomFromText('Point (-71.26944 10.32583)', 4326)),
(1421, 'caracaral', NULL, NULL, 231903, ST_GeomFromText('Point (-71.25929 10.34213)', 4326)),
(1422, 'santa rosa', NULL, NULL, 230309, ST_GeomFromText('Point (-71.33763 10.32459)', 4326)),
(1423, 'el porvenir', NULL, NULL, 230309, ST_GeomFromText('Point (-71.37753 10.32631)', 4326)),
(1424, 'agua clara', NULL, NULL, 230309, ST_GeomFromText('Point (-71.37029 10.33946)', 4326)),
(1425, 'la pica roja', NULL, NULL, 230309, ST_GeomFromText('Point (-71.38893 10.36003)', 4326)),
(1426, 'barlovento', NULL, 6, 230305, ST_GeomFromText('Point (-71.41915 10.37149)', 4326)),
(1427, 'la vega', NULL, NULL, 230309, ST_GeomFromText('Point (-71.34711 10.36829)', 4326)),
(1428, 'santa cruz', NULL, NULL, 230308, ST_GeomFromText('Point (-71.16725 10.43712)', 4326)),
(1429, 'el plan', NULL, NULL, 231004, ST_GeomFromText('Point (-71.02586 10.28597)', 4326)),
(1430, 'ule', NULL, NULL, 231902, ST_GeomFromText('Point (-71.39397 10.30218)', 4326)),
(1431, 'b<NAME>', NULL, NULL, 231903, ST_GeomFromText('Point (-71.20631 10.3098)', 4326)),
(1432, '<NAME>', NULL, NULL, 231004, ST_GeomFromText('Point (-71.06516 10.37402)', 4326)),
(1433, 'el cantaro', NULL, NULL, 232103, ST_GeomFromText('Point (-71.02901 10.10108)', 4326)),
(1434, '<NAME>', NULL, NULL, 231003, ST_GeomFromText('Point (-71.04612 10.22973)', 4326)),
(1435, 'km 22', NULL, NULL, 231004, ST_GeomFromText('Point (-71.17062 10.25462)', 4326)),
(1436, 'km 26', NULL, NULL, 231004, ST_GeomFromText('Point (-71.14905 10.2721)', 4326)),
(1437, 'la nobleza', NULL, NULL, 231903, ST_GeomFromText('Point (-71.22898 10.27094)', 4326)),
(1438, '12 de octubre', NULL, NULL, 231001, ST_GeomFromText('Point (-71.23801 10.22635)', 4326)),
(1439, '1 de mayo', NULL, 6, 231001, ST_GeomFromText('Point (-71.29346 10.19393)', 4326)),
(1440, '<NAME>', NULL, NULL, 231901, ST_GeomFromText('Point (-71.36592 10.25862)', 4326)),
(1441, '24 <NAME>', NULL, 6, 231005, ST_GeomFromText('Point (-71.28636 10.17911)', 4326)),
(1442, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.30664 10.22799)', 4326)),
(1443, '5 <NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.29144 10.2085)', 4326)),
(1444, 'altagracia', NULL, 6, 231005, ST_GeomFromText('Point (-71.25263 10.11255)', 4326)),
(1445, '<NAME>', NULL, NULL, 231003, ST_GeomFromText('Point (-71.07267 10.19357)', 4326)),
(1446, 'el corozo', NULL, NULL, 232103, ST_GeomFromText('Point (-71.04408 10.11498)', 4326)),
(1447, 'el remolino', NULL, NULL, 232103, ST_GeomFromText('Point (-71.02371 10.08958)', 4326)),
(1448, 'el rito', NULL, NULL, 232103, ST_GeomFromText('Point (-71.0068 10.08373)', 4326)),
(1449, '<NAME>', NULL, 6, 231005, ST_GeomFromText('Point (-71.29184 10.17309)', 4326)),
(1450, 'bolivariano', NULL, 6, 231005, ST_GeomFromText('Point (-71.29305 10.17773)', 4326)),
(1451, 'la peluda', NULL, NULL, 232101, ST_GeomFromText('Point (-71.20448 10.01492)', 4326)),
(1452, 'la curva del indio', NULL, NULL, 232101, ST_GeomFromText('Point (-71.17687 10.03002)', 4326)),
(1453, 'chipororo', NULL, NULL, 232101, ST_GeomFromText('Point (-71.05073 10.01408)', 4326)),
(1454, 'plan bonito', NULL, NULL, 232103, ST_GeomFromText('Point (-71.04683 10.15094)', 4326)),
(1455, '<NAME>', NULL, NULL, 232103, ST_GeomFromText('Point (-71.00397 10.04908)', 4326)),
(1405, '1 de mayo', NULL, 6, 230307, ST_GeomFromText('Point (-71.44261 10.39888)', 4326)),
(1420, 'sabana de la plata', NULL, NULL, 231903, ST_GeomFromText('Point (-71.27623 10.32525)', 4326)),
(1456, 'sabana libre', NULL, NULL, 232103, ST_GeomFromText('Point (-70.96978 10.28982)', 4326)),
(1457, '<NAME>', NULL, NULL, 232103, ST_GeomFromText('Point (-71.00614 10.21191)', 4326)),
(1458, '<NAME>', NULL, NULL, 232103, ST_GeomFromText('Point (-70.95661 10.12189)', 4326)),
(1459, 'sipayare', NULL, NULL, 232103, ST_GeomFromText('Point (-70.93784 10.17608)', 4326)),
(1460, 'el hoyito', NULL, NULL, 230204, ST_GeomFromText('Point (-70.89916 10.07316)', 4326)),
(1461, 'el venado', NULL, NULL, 230204, ST_GeomFromText('Point (-70.92329 10.07249)', 4326)),
(1462, 'guasimal', NULL, NULL, 230204, ST_GeomFromText('Point (-70.8785 9.95297)', 4326)),
(1463, 'la arepa', NULL, NULL, 230204, ST_GeomFromText('Point (-70.90762 10.05879)', 4326)),
(1464, 'la fria', NULL, NULL, 230204, ST_GeomFromText('Point (-70.96105 9.93128)', 4326)),
(1465, 'la sabana', NULL, NULL, 230204, ST_GeomFromText('Point (-70.91625 9.97635)', 4326)),
(1466, 'el turco', NULL, NULL, 231403, ST_GeomFromText('Point (-71.1997 10.845)', 4326)),
(1467, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-72.35483 9.70404)', 4326)),
(1468, 'el chapinero', NULL, NULL, 231102, ST_GeomFromText('Point (-72.37323 9.82632)', 4326)),
(1469, 'la majagua', NULL, NULL, 231102, ST_GeomFromText('Point (-72.12206 9.79164)', 4326)),
(1470, '<NAME>', NULL, NULL, 230401, ST_GeomFromText('Point (-72.29838 9.05109)', 4326)),
(1471, 'cabimitas', NULL, NULL, 230401, ST_GeomFromText('Point (-72.30648 9.07234)', 4326)),
(1472, '<NAME>', NULL, NULL, 230401, ST_GeomFromText('Point (-72.32667 8.85006)', 4326)),
(1473, '<NAME>', NULL, NULL, 230401, ST_GeomFromText('Point (-71.93586 9.18365)', 4326)),
(1474, 'catatumbo', NULL, NULL, 230401, ST_GeomFromText('Point (-71.735 9.36014)', 4326)),
(1475, 'cuevas', NULL, NULL, 230401, ST_GeomFromText('Point (-71.9035 9.24352)', 4326)),
(1476, 'el congo', NULL, NULL, 230401, ST_GeomFromText('Point (-71.80258 9.38436)', 4326)),
(1477, 'boca de escalante', NULL, NULL, 230501, ST_GeomFromText('Point (-71.75459 9.24141)', 4326)),
(1478, 'bobures', NULL, NULL, 230503, ST_GeomFromText('Point (-71.98149 8.96549)', 4326)),
(1479, 'el perro', NULL, NULL, 230401, ST_GeomFromText('Point (-72.04179 9.13657)', 4326)),
(1480, 'encontrados', NULL, NULL, 230401, ST_GeomFromText('Point (-72.23394 9.06001)', 4326)),
(1481, 'estrecho', NULL, NULL, 230401, ST_GeomFromText('Point (-71.88235 9.43016)', 4326)),
(1482, 'guasimalito', NULL, NULL, 230401, ST_GeomFromText('Point (-72.16018 9.12107)', 4326)),
(1483, 'la carmelita', NULL, NULL, 230401, ST_GeomFromText('Point (-71.96998 9.17069)', 4326)),
(1484, 'la ciega', NULL, NULL, 230401, ST_GeomFromText('Point (-71.85298 9.30821)', 4326)),
(1485, '<NAME>', NULL, NULL, 230501, ST_GeomFromText('Point (-71.80862 9.1382)', 4326)),
(1486, 'capitan', NULL, NULL, 230503, ST_GeomFromText('Point (-71.85816 9.10286)', 4326)),
(1487, 'guaimaral', NULL, NULL, 230503, ST_GeomFromText('Point (-71.82803 8.94873)', 4326)),
(1488, 'la soledad', NULL, NULL, 230501, ST_GeomFromText('Point (-71.9426 9.07898)', 4326)),
(1489, 'la culebra', NULL, NULL, 230501, ST_GeomFromText('Point (-71.92941 9.05783)', 4326)),
(1490, 'km 6', NULL, NULL, 230503, ST_GeomFromText('Point (-71.89734 8.96376)', 4326)),
(1491, 'km 7', NULL, NULL, 230503, ST_GeomFromText('Point (-71.89323 8.95134)', 4326)),
(1492, 'la boyera', NULL, NULL, 230503, ST_GeomFromText('Point (-71.75579 9.12911)', 4326)),
(1493, 'buena esperanza', NULL, NULL, 230505, ST_GeomFromText('Point (-71.71237 9.01305)', 4326)),
(1494, 'caño blanco', NULL, NULL, 230505, ST_GeomFromText('Point (-71.71351 8.87547)', 4326)),
(1495, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.67678 8.89071)', 4326)),
(1496, 'brasil santo domingo', NULL, NULL, 230601, ST_GeomFromText('Point (-71.61109 9.00501)', 4326)),
(1497, 'la providencia', NULL, NULL, 230601, ST_GeomFromText('Point (-71.41832 8.95298)', 4326)),
(1498, 'altamira', NULL, NULL, 232005, ST_GeomFromText('Point (-71.31169 9.01231)', 4326)),
(1499, 'barranquilla', NULL, NULL, 232005, ST_GeomFromText('Point (-71.33113 9.06509)', 4326)),
(1500, '<NAME>', NULL, NULL, 232005, ST_GeomFromText('Point (-71.32297 9.04799)', 4326)),
(1501, 'la union', NULL, NULL, 232005, ST_GeomFromText('Point (-71.31087 9.08188)', 4326)),
(1502, '<NAME>', NULL, NULL, 232005, ST_GeomFromText('Point (-71.31188 9.07112)', 4326)),
(1503, 'miguelon', NULL, NULL, 232005, ST_GeomFromText('Point (-71.37774 9.00451)', 4326)),
(1504, '<NAME>', NULL, NULL, 232005, ST_GeomFromText('Point (-71.43126 9.02749)', 4326)),
(1505, 'agua colorada', NULL, NULL, 232004, ST_GeomFromText('Point (-71.23588 9.06654)', 4326)),
(1506, 'la victoria', NULL, NULL, 232004, ST_GeomFromText('Point (-71.19917 9.03543)', 4326)),
(1507, 'playa grande', NULL, NULL, 232004, ST_GeomFromText('Point (-71.20456 9.02844)', 4326)),
(1508, '<NAME>', NULL, NULL, 232005, ST_GeomFromText('Point (-71.30663 9.10253)', 4326)),
(1509, '<NAME>', NULL, NULL, 232004, ST_GeomFromText('Point (-71.27774 9.12624)', 4326)),
(1510, '<NAME>', NULL, NULL, 232004, ST_GeomFromText('Point (-71.22561 9.12263)', 4326)),
(1511, '<NAME>', NULL, NULL, 232004, ST_GeomFromText('Point (-71.29132 9.11867)', 4326)),
(1512, '<NAME>', NULL, NULL, 232004, ST_GeomFromText('Point (-71.20004 9.12539)', 4326)),
(1513, 'bobures', NULL, NULL, 232001, ST_GeomFromText('Point (-71.17759 9.23972)', 4326)),
(1514, 'el banco', NULL, NULL, 232001, ST_GeomFromText('Point (-71.1977 9.216)', 4326)),
(1515, 'la encarnacion', NULL, NULL, 232001, ST_GeomFromText('Point (-71.1442 9.20867)', 4326)),
(1516, 'la guaira', NULL, NULL, 232001, ST_GeomFromText('Point (-71.15628 9.18121)', 4326)),
(1517, 'la trinidad', NULL, NULL, 232001, ST_GeomFromText('Point (-71.17325 9.23011)', 4326)),
(1518, 'las dolores', NULL, NULL, 232001, ST_GeomFromText('Point (-71.15703 9.22725)', 4326)),
(1519, '<NAME>', NULL, NULL, 232002, ST_GeomFromText('Point (-71.14114 9.18568)', 4326)),
(1520, '<NAME>', NULL, NULL, 232002, ST_GeomFromText('Point (-71.1199 9.15411)', 4326)),
(1521, 'ca<NAME>', NULL, NULL, 232006, ST_GeomFromText('Point (-71.08046 9.14284)', 4326)),
(1522, 'caño de agua', NULL, NULL, 232002, ST_GeomFromText('Point (-71.09431 9.17637)', 4326)),
(1523, 'santa cruz', NULL, NULL, 232006, ST_GeomFromText('Point (-71.07671 9.16578)', 4326)),
(1524, 'monte adentro', NULL, NULL, 232002, ST_GeomFromText('Point (-71.09944 9.18346)', 4326)),
(1525, 'capiu abajo', NULL, NULL, 232006, ST_GeomFromText('Point (-71.05934 9.16986)', 4326)),
(1526, 'las carmelitas', NULL, NULL, 232003, ST_GeomFromText('Point (-71.06855 9.19159)', 4326)),
(1527, 'puerto rico', NULL, NULL, 232003, ST_GeomFromText('Point (-71.04198 9.23899)', 4326)),
(1528, 'las veritas', NULL, NULL, 232003, ST_GeomFromText('Point (-71.04577 9.27616)', 4326)),
(1529, 'villa dolores', NULL, NULL, 232003, ST_GeomFromText('Point (-71.06622 9.25525)', 4326)),
(1530, 'gibraltar', NULL, NULL, 232003, ST_GeomFromText('Point (-71.13234 9.26931)', 4326)),
(1531, 'puerto las marias', NULL, NULL, 232003, ST_GeomFromText('Point (-71.15103 9.25596)', 4326)),
(1532, 'boscan', NULL, NULL, 232003, ST_GeomFromText('Point (-71.08238 9.29391)', 4326)),
(1533, 'cantalotodo', NULL, NULL, 232003, ST_GeomFromText('Point (-71.08375 9.23589)', 4326)),
(1534, '<NAME>', NULL, NULL, 232001, ST_GeomFromText('Point (-71.14459 9.1966)', 4326)),
(1535, 'santa ana', NULL, NULL, 232001, ST_GeomFromText('Point (-71.17254 9.2095)', 4326)),
(1536, 'santa clara', NULL, NULL, 232001, ST_GeomFromText('Point (-71.16842 9.17134)', 4326)),
(1537, 'la dificultad', NULL, NULL, 232003, ST_GeomFromText('Point (-71.04041 9.32959)', 4326)),
(1538, 'alto viento', NULL, NULL, 230202, ST_GeomFromText('Point (-70.96917 9.63571)', 4326)),
(1539, 'barua', NULL, NULL, 230202, ST_GeomFromText('Point (-70.92972 9.65307)', 4326)),
(1540, 'carrillo', NULL, NULL, 230202, ST_GeomFromText('Point (-70.93476 9.60687)', 4326)),
(1541, 'caujarito', NULL, NULL, 230202, ST_GeomFromText('Point (-70.99359 9.66775)', 4326)),
(1542, 'ceuta', NULL, NULL, 230202, ST_GeomFromText('Point (-71.04392 9.66505)', 4326)),
(1543, 'el muro', NULL, NULL, 230202, ST_GeomFromText('Point (-70.92037 9.72508)', 4326)),
(1544, 'el siete', NULL, NULL, 230202, ST_GeomFromText('Point (-70.91477 9.69081)', 4326)),
(1545, 'el toro', NULL, NULL, 230202, ST_GeomFromText('Point (-71.0113 9.67603)', 4326)),
(1546, 'la bombita', NULL, NULL, 230202, ST_GeomFromText('Point (-70.94995 9.65992)', 4326)),
(1547, 'la ensenada', NULL, NULL, 230202, ST_GeomFromText('Point (-71.01992 9.68711)', 4326)),
(1548, 'la raya', NULL, NULL, 230202, ST_GeomFromText('Point (-71.01319 9.66174)', 4326)),
(1549, 'el batatal', NULL, NULL, 230205, ST_GeomFromText('Point (-70.86802 9.69797)', 4326)),
(1550, 'el tigre', NULL, NULL, 230205, ST_GeomFromText('Point (-70.85051 9.67882)', 4326)),
(1551, 'santa elena', NULL, NULL, 230205, ST_GeomFromText('Point (-70.83522 9.63502)', 4326)),
(1552, 'los caños', NULL, NULL, 230202, ST_GeomFromText('Point (-70.97623 9.62137)', 4326)),
(1553, 'km 8', NULL, NULL, 230203, ST_GeomFromText('Point (-70.98894 9.80635)', 4326)),
(1554, 'km 9', NULL, NULL, 230203, ST_GeomFromText('Point (-70.97254 9.80841)', 4326)),
(1555, 'la curva', NULL, NULL, 230203, ST_GeomFromText('Point (-70.79659 9.75643)', 4326)),
(1556, 'santa rosa', NULL, NULL, 230205, ST_GeomFromText('Point (-70.83328 9.66711)', 4326)),
(1557, 'san isidro', NULL, NULL, 230202, ST_GeomFromText('Point (-71.02681 9.66573)', 4326)),
(1558, 'siete', NULL, NULL, 230205, ST_GeomFromText('Point (-70.82497 9.64456)', 4326)),
(1559, 'tomoporo', NULL, NULL, 230202, ST_GeomFromText('Point (-71.03301 9.62576)', 4326)),
(1560, 'tomoporo de agua', NULL, NULL, 230202, ST_GeomFromText('Point (-71.05549 9.62685)', 4326)),
(1561, 'la esperanza', NULL, NULL, 230203, ST_GeomFromText('Point (-70.94603 9.81298)', 4326)),
(1562, 'la leona', NULL, NULL, 230203, ST_GeomFromText('Point (-70.88547 9.8313)', 4326)),
(1564, 'agua negra', NULL, NULL, 230206, ST_GeomFromText('Point (-70.9772 9.90258)', 4326)),
(1565, 'barquis', NULL, NULL, 230206, ST_GeomFromText('Point (-70.89878 9.88773)', 4326)),
(1566, 'la tigra', NULL, NULL, 230203, ST_GeomFromText('Point (-70.8944 9.81361)', 4326)),
(1567, 'las granjas', NULL, NULL, 230203, ST_GeomFromText('Point (-70.77348 9.71148)', 4326)),
(1568, 'ca<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.96856 9.86898)', 4326)),
(1569, 'el cuarenta', NULL, NULL, 230206, ST_GeomFromText('Point (-70.8299 9.8411)', 4326)),
(1570, 'el palotal', NULL, NULL, 230206, ST_GeomFromText('Point (-70.96589 9.84437)', 4326)),
(1571, '<NAME>', NULL, NULL, 230203, ST_GeomFromText('Point (-70.80626 9.77273)', 4326)),
(1572, '<NAME>', NULL, NULL, 230203, ST_GeomFromText('Point (-70.78421 9.74407)', 4326)),
(1573, '<NAME>', NULL, NULL, 230203, ST_GeomFromText('Point (-70.85294 9.76668)', 4326)),
(1574, '<NAME>', NULL, NULL, 230201, ST_GeomFromText('Point (-71.01375 9.8035)', 4326)),
(1575, '<NAME>', NULL, NULL, 230201, ST_GeomFromText('Point (-71.06905 9.78839)', 4326)),
(1576, '<NAME>', NULL, NULL, 230203, ST_GeomFromText('Point (-70.89151 9.78262)', 4326)),
(1577, '<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.88012 9.87674)', 4326)),
(1578, '<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.90077 9.90591)', 4326)),
(1579, '<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.81588 9.91593)', 4326)),
(1580, 'machango', NULL, NULL, 230206, ST_GeomFromText('Point (-70.996 9.87595)', 4326)),
(1581, 'machanguito', NULL, NULL, 230206, ST_GeomFromText('Point (-71.01761 9.89355)', 4326)),
(1582, '<NAME>', NULL, NULL, 230203, ST_GeomFromText('Point (-70.77714 9.73538)', 4326)),
(1583, '<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.92699 9.84745)', 4326)),
(1584, 'morroco', NULL, NULL, 230206, ST_GeomFromText('Point (-70.97645 9.82537)', 4326)),
(1585, 'nuevo mundo', NULL, NULL, 230206, ST_GeomFromText('Point (-70.85085 9.88072)', 4326)),
(1586, 'las cuatro bocas', NULL, NULL, 230204, ST_GeomFromText('Point (-70.98509 9.95297)', 4326)),
(1587, '<NAME>', NULL, NULL, 230204, ST_GeomFromText('Point (-70.98419 9.96525)', 4326)),
(1588, 'bachaquero', NULL, NULL, 232102, ST_GeomFromText('Point (-71.11986 9.96312)', 4326)),
(1589, 'la curva', NULL, NULL, 232102, ST_GeomFromText('Point (-71.09378 9.92025)', 4326)),
(1590, 'la pica cinco', NULL, NULL, 232102, ST_GeomFromText('Point (-71.05267 9.96791)', 4326)),
(1591, 'machango', NULL, NULL, 232102, ST_GeomFromText('Point (-71.06519 9.92123)', 4326)),
(1592, '<NAME>', NULL, NULL, 232101, ST_GeomFromText('Point (-71.20264 9.97536)', 4326)),
(1593, '<NAME>', NULL, NULL, 232102, ST_GeomFromText('Point (-71.04691 9.90754)', 4326)),
(1594, '<NAME>', NULL, NULL, 230204, ST_GeomFromText('Point (-70.7486 10.26256)', 4326)),
(1595, '<NAME>', NULL, NULL, 230204, ST_GeomFromText('Point (-70.97979 9.94015)', 4326)),
(1596, '<NAME>', NULL, NULL, 230204, ST_GeomFromText('Point (-70.73018 10.27733)', 4326)),
(1597, '<NAME>', NULL, NULL, 230204, ST_GeomFromText('Point (-70.70745 10.21091)', 4326)),
(1598, '<NAME>', NULL, NULL, 230603, ST_GeomFromText('Point (-71.65222 8.73759)', 4326)),
(1599, 'bachaquero', NULL, NULL, 230502, ST_GeomFromText('Point (-71.80685 8.74991)', 4326)),
(1600, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.72581 8.81636)', 4326)),
(1601, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.71623 8.73791)', 4326)),
(1602, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.7674 8.87348)', 4326)),
(1603, 'caracoli', NULL, NULL, 230502, ST_GeomFromText('Point (-71.74515 8.7619)', 4326)),
(1604, 'chirimoyo', NULL, NULL, 230502, ST_GeomFromText('Point (-71.93235 8.88062)', 4326)),
(1605, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.86481 8.73404)', 4326)),
(1606, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.80549 8.89423)', 4326)),
(1607, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.97256 8.77036)', 4326)),
(1608, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.76153 8.73805)', 4326)),
(1609, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.88582 8.76374)', 4326)),
(1610, 'el laberinto', NULL, NULL, 230502, ST_GeomFromText('Point (-71.70493 8.8124)', 4326)),
(1611, 'el manguito', NULL, NULL, 230502, ST_GeomFromText('Point (-71.80252 8.91478)', 4326)),
(1612, 'el milagro', NULL, NULL, 230502, ST_GeomFromText('Point (-71.82023 8.718)', 4326)),
(1613, 'el moralito', NULL, NULL, 230502, ST_GeomFromText('Point (-71.7685 8.80074)', 4326)),
(1614, 'el tigre', NULL, NULL, 230502, ST_GeomFromText('Point (-71.90363 8.77206)', 4326)),
(1615, 'el treinta y cinco', NULL, NULL, 230502, ST_GeomFromText('Point (-71.74985 8.77391)', 4326)),
(1616, 'el uvito', NULL, NULL, 230502, ST_GeomFromText('Point (-71.82134 8.7022)', 4326)),
(1617, 'km 13', NULL, NULL, 230502, ST_GeomFromText('Point (-71.89247 8.90105)', 4326)),
(1618, 'km 15', NULL, NULL, 230502, ST_GeomFromText('Point (-71.88519 8.88596)', 4326)),
(1619, 'km 16', NULL, NULL, 230502, ST_GeomFromText('Point (-71.8792 8.87618)', 4326)),
(1620, 'km 18', NULL, NULL, 230502, ST_GeomFromText('Point (-71.86727 8.86889)', 4326)),
(1621, 'km 22', NULL, NULL, 230502, ST_GeomFromText('Point (-71.84186 8.84397)', 4326)),
(1622, 'la cordillera', NULL, NULL, 230503, ST_GeomFromText('Point (-71.96745 8.98717)', 4326)),
(1623, 'km 24', NULL, NULL, 230502, ST_GeomFromText('Point (-71.82781 8.82836)', 4326)),
(1624, 'km 26', NULL, NULL, 230502, ST_GeomFromText('Point (-71.81763 8.81511)', 4326)),
(1625, 'km 27', NULL, NULL, 230502, ST_GeomFromText('Point (-71.82857 8.80893)', 4326)),
(1626, 'km 28', NULL, NULL, 230502, ST_GeomFromText('Point (-71.80377 8.80703)', 4326)),
(1627, 'km 35', NULL, NULL, 230502, ST_GeomFromText('Point (-71.77575 8.75075)', 4326)),
(1628, 'km 41', NULL, NULL, 230502, ST_GeomFromText('Point (-71.72439 8.72705)', 4326)),
(1629, 'la caña brava', NULL, NULL, 230502, ST_GeomFromText('Point (-71.75354 8.68886)', 4326)),
(1630, 'la mensura', NULL, NULL, 230502, ST_GeomFromText('Point (-71.8875 8.85231)', 4326)),
(1631, 'la raya', NULL, NULL, 230502, ST_GeomFromText('Point (-71.84327 8.78028)', 4326)),
(1632, 'las brisas', NULL, NULL, 230502, ST_GeomFromText('Point (-71.78192 8.78266)', 4326)),
(1633, 'las talas', NULL, NULL, 230502, ST_GeomFromText('Point (-71.8381 8.7556)', 4326)),
(1634, 'la perrera', NULL, NULL, 230503, ST_GeomFromText('Point (-71.94818 8.98775)', 4326)),
(1635, 'la solita', NULL, NULL, 230503, ST_GeomFromText('Point (-71.76286 9.18615)', 4326)),
(1636, 'el caiman', NULL, NULL, 230504, ST_GeomFromText('Point (-72.04172 8.71824)', 4326)),
(1637, 'la victoria', NULL, NULL, 230503, ST_GeomFromText('Point (-71.96249 8.99947)', 4326)),
(1638, 'las casas', NULL, NULL, 230503, ST_GeomFromText('Point (-71.91666 9.06541)', 4326)),
(1639, 'las delicias', NULL, NULL, 230503, ST_GeomFromText('Point (-71.93833 8.98062)', 4326)),
(1641, 'los albaricos', NULL, NULL, 230502, ST_GeomFromText('Point (-71.97067 8.71929)', 4326)),
(1642, 'el esfuerzo', NULL, NULL, 230504, ST_GeomFromText('Point (-72.10382 8.49968)', 4326)),
(1643, 'los cañitos', NULL, NULL, 230502, ST_GeomFromText('Point (-71.70755 8.68178)', 4326)),
(1644, 'los haticos', NULL, NULL, 230502, ST_GeomFromText('Point (-71.85193 8.72253)', 4326)),
(1645, 'los pozones', NULL, NULL, 230502, ST_GeomFromText('Point (-71.89543 8.73849)', 4326)),
(1646, 'onia abajo', NULL, NULL, 230502, ST_GeomFromText('Point (-71.96395 8.78456)', 4326)),
(1647, 'palmira', NULL, NULL, 230502, ST_GeomFromText('Point (-71.80594 8.72321)', 4326)),
(1648, 'el naranjal', NULL, NULL, 230504, ST_GeomFromText('Point (-71.92741 8.90492)', 4326)),
(1649, 'el valle', NULL, NULL, 230504, ST_GeomFromText('Point (-72.13268 8.4846)', 4326)),
(1650, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.67726 8.93718)', 4326)),
(1651, 'teotiste de gallegos', NULL, NULL, 230503, ST_GeomFromText('Point (-71.90068 8.979)', 4326)),
(1563, 'la mesa', NULL, NULL, 230203, ST_GeomFromText('Point (-70.77881 9.7595)', 4326)),
(1652, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.68449 8.98085)', 4326)),
(1653, 'chamita', NULL, NULL, 230505, ST_GeomFromText('Point (-71.71457 9.0868)', 4326)),
(1654, 'tunana', NULL, NULL, 230502, ST_GeomFromText('Point (-71.98194 8.75364)', 4326)),
(1655, 'tunanita', NULL, NULL, 230502, ST_GeomFromText('Point (-71.91756 8.75519)', 4326)),
(1656, 'concha', NULL, NULL, 230505, ST_GeomFromText('Point (-71.74445 9.02476)', 4326)),
(1657, 'janeiro', NULL, NULL, 230505, ST_GeomFromText('Point (-71.77488 8.91262)', 4326)),
(1658, 'las palmeras', NULL, NULL, 230603, ST_GeomFromText('Point (-71.66353 8.77669)', 4326)),
(1659, '<NAME>', NULL, NULL, 230502, ST_GeomFromText('Point (-71.69729 8.71098)', 4326)),
(1660, 'cuatro esquinas', NULL, NULL, 230602, ST_GeomFromText('Point (-71.66105 8.83759)', 4326)),
(1661, 'la fortuna', NULL, NULL, 230505, ST_GeomFromText('Point (-71.65574 8.94761)', 4326)),
(1662, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.76981 8.983)', 4326)),
(1663, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.66851 8.85228)', 4326)),
(1664, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.75402 8.88733)', 4326)),
(1665, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.69508 8.86553)', 4326)),
(1666, '<NAME>', NULL, NULL, 230505, ST_GeomFromText('Point (-71.7691 8.90364)', 4326)),
(1667, 'taparones', NULL, NULL, 230505, ST_GeomFromText('Point (-71.7336 8.8721)', 4326)),
(1668, 'la gran parada', NULL, NULL, 230603, ST_GeomFromText('Point (-71.66362 8.80838)', 4326)),
(1669, 'la rancheria', NULL, NULL, 230601, ST_GeomFromText('Point (-71.62049 8.94392)', 4326)),
(1671, 'guayabones abajo', NULL, NULL, 230603, ST_GeomFromText('Point (-71.59423 8.77532)', 4326)),
(1672, 'caño raya', NULL, NULL, 230602, ST_GeomFromText('Point (-71.52849 8.84161)', 4326)),
(1673, 'el guamo', NULL, NULL, 230602, ST_GeomFromText('Point (-71.51043 8.86275)', 4326)),
(1674, 'gavilanes', NULL, NULL, 230602, ST_GeomFromText('Point (-71.47956 8.89541)', 4326)),
(1675, 'ca<NAME>', NULL, NULL, 230602, ST_GeomFromText('Point (-71.47557 8.86628)', 4326)),
(1676, 'santa rosa', NULL, NULL, 230601, ST_GeomFromText('Point (-71.57987 9.00665)', 4326)),
(1677, 'santo domingo', NULL, NULL, 230601, ST_GeomFromText('Point (-71.63084 8.98715)', 4326)),
(1678, 'yalauna', NULL, NULL, 231504, ST_GeomFromText('Point (-72.05173 11.3287)', 4326)),
(1679, 'aragtoba', NULL, NULL, 231101, ST_GeomFromText('Point (-72.93532 9.55812)', 4326)),
(1680, 'ayapaina', NULL, NULL, 231101, ST_GeomFromText('Point (-72.77272 10.04414)', 4326)),
(1681, 'baradancu', NULL, NULL, 231101, ST_GeomFromText('Point (-72.92156 9.6815)', 4326)),
(1682, 'candelaria', NULL, NULL, 231101, ST_GeomFromText('Point (-72.7692 9.9631)', 4326)),
(1683, 'canoguapa', NULL, NULL, 231101, ST_GeomFromText('Point (-72.87547 9.88081)', 4326)),
(1684, 'caranca', NULL, NULL, 231101, ST_GeomFromText('Point (-72.83841 9.87396)', 4326)),
(1685, 'caraquita', NULL, NULL, 231101, ST_GeomFromText('Point (-72.71426 10.04671)', 4326)),
(1686, 'chaparro', NULL, NULL, 231101, ST_GeomFromText('Point (-72.79462 9.87265)', 4326)),
(1687, 'cunana', NULL, NULL, 231101, ST_GeomFromText('Point (-72.79761 10.0475)', 4326)),
(1688, 'dacuma', NULL, NULL, 231101, ST_GeomFromText('Point (-72.9415 9.63848)', 4326)),
(1689, 'el llano', NULL, NULL, 231101, ST_GeomFromText('Point (-72.53012 10.13055)', 4326)),
(1690, 'el tucuco', NULL, NULL, 231101, ST_GeomFromText('Point (-72.81024 9.84468)', 4326)),
(1691, 'ipica', NULL, NULL, 231101, ST_GeomFromText('Point (-72.83461 9.87626)', 4326)),
(1692, 'la choza', NULL, NULL, 231101, ST_GeomFromText('Point (-72.75859 9.81057)', 4326)),
(1693, 'la cordillera', NULL, NULL, 231101, ST_GeomFromText('Point (-72.53235 10.04509)', 4326)),
(1694, 'la pastora', NULL, NULL, 231101, ST_GeomFromText('Point (-72.50717 10.05474)', 4326)),
(1695, 'machiques', NULL, NULL, 231101, ST_GeomFromText('Point (-72.5522 10.05957)', 4326)),
(1696, 'pisicacao', NULL, NULL, 231101, ST_GeomFromText('Point (-72.93039 9.90996)', 4326)),
(1697, 'saimadoyi', NULL, NULL, 231101, ST_GeomFromText('Point (-72.91304 9.59692)', 4326)),
(1698, '<NAME>', NULL, NULL, 231101, ST_GeomFromText('Point (-72.54328 10.03991)', 4326)),
(1699, 'rio de oro', NULL, NULL, 230802, ST_GeomFromText('Point (-72.87774 9.13315)', 4326)),
(1700, 'garzas', NULL, NULL, 230802, ST_GeomFromText('Point (-72.81881 9.14061)', 4326)),
(1701, 'barranquilla', NULL, NULL, 231103, ST_GeomFromText('Point (-72.45105 9.66057)', 4326)),
(1702, 'alcabala', NULL, NULL, 230801, ST_GeomFromText('Point (-72.58548 8.66869)', 4326)),
(1703, '<NAME>', NULL, NULL, 230802, ST_GeomFromText('Point (-72.68749 9.10969)', 4326)),
(1704, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.64848 8.6343)', 4326)),
(1705, 'boca de caño negro', NULL, NULL, 230801, ST_GeomFromText('Point (-72.60607 8.58695)', 4326)),
(1706, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.7328 9.09411)', 4326)),
(1707, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.61976 8.68292)', 4326)),
(1708, 'casigua', NULL, NULL, 230801, ST_GeomFromText('Point (-72.51476 8.7406)', 4326)),
(1709, 'catatumbo', NULL, NULL, 230801, ST_GeomFromText('Point (-72.58387 8.58661)', 4326)),
(1710, 'el carmelo', NULL, NULL, 230801, ST_GeomFromText('Point (-72.51454 8.69723)', 4326)),
(1711, 'el naranjal', NULL, NULL, 230801, ST_GeomFromText('Point (-72.74453 9.112)', 4326)),
(1712, 'el paso', NULL, NULL, 230801, ST_GeomFromText('Point (-72.49137 8.66131)', 4326)),
(1713, 'el pozon de lucia', NULL, NULL, 230801, ST_GeomFromText('Point (-72.60928 8.71391)', 4326)),
(1714, 'el socorro', NULL, NULL, 230801, ST_GeomFromText('Point (-72.62308 8.66721)', 4326)),
(1715, 'guacamayita', NULL, NULL, 230801, ST_GeomFromText('Point (-72.64835 8.63941)', 4326)),
(1716, 'guacamayo', NULL, NULL, 230801, ST_GeomFromText('Point (-72.6418 8.64689)', 4326)),
(1717, 'km doce y medio', NULL, NULL, 230801, ST_GeomFromText('Point (-72.61684 8.82746)', 4326)),
(1718, 'km 9', NULL, NULL, 230801, ST_GeomFromText('Point (-72.624 8.79353)', 4326)),
(1719, 'km 7', NULL, NULL, 230801, ST_GeomFromText('Point (-72.63073 8.77374)', 4326)),
(1720, 'km 1', NULL, NULL, 230801, ST_GeomFromText('Point (-72.62883 8.72295)', 4326)),
(1721, 'la concordia', NULL, NULL, 230801, ST_GeomFromText('Point (-72.46724 8.59007)', 4326)),
(1722, 'la linea', NULL, NULL, 230801, ST_GeomFromText('Point (-72.50801 8.79302)', 4326)),
(1723, 'la palma', NULL, NULL, 230801, ST_GeomFromText('Point (-72.53469 9.12413)', 4326)),
(1724, 'la paloma', NULL, NULL, 230801, ST_GeomFromText('Point (-72.52973 8.76257)', 4326)),
(1725, 'la reforma', NULL, NULL, 230801, ST_GeomFromText('Point (-72.5209 8.60262)', 4326)),
(1726, 'la trinidad', NULL, NULL, 230801, ST_GeomFromText('Point (-72.51571 8.60727)', 4326)),
(1727, 'las corubas', NULL, NULL, 230801, ST_GeomFromText('Point (-72.5127 9.01842)', 4326)),
(1728, 'los alpes', NULL, NULL, 230801, ST_GeomFromText('Point (-72.54438 8.60938)', 4326)),
(1729, 'los manueles', NULL, NULL, 230801, ST_GeomFromText('Point (-72.46265 8.82254)', 4326)),
(1730, 'monte adentro', NULL, NULL, 230801, ST_GeomFromText('Point (-72.65278 8.69599)', 4326)),
(1731, 'pata de gallina', NULL, NULL, 230801, ST_GeomFromText('Point (-72.54687 8.69232)', 4326)),
(1732, 'placita', NULL, NULL, 230801, ST_GeomFromText('Point (-72.63802 8.65821)', 4326)),
(1733, 'playa de la cienaga', NULL, NULL, 230801, ST_GeomFromText('Point (-72.59905 8.71325)', 4326)),
(1734, 'playa renegada', NULL, NULL, 230801, ST_GeomFromText('Point (-72.54106 8.95616)', 4326)),
(1735, 'carrasquero', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00635 11.03222)', 4326)),
(1736, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.4253 10.9368)', 4326)),
(1737, 'el laberinto', NULL, NULL, 230702, ST_GeomFromText('Point (-72.25536 10.51084)', 4326)),
(1738, '<NAME>ulio', NULL, NULL, 231204, ST_GeomFromText('Point (-72.34468 11.04346)', 4326)),
(1739, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.33129 10.9371)', 4326)),
(1740, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.356 11.00248)', 4326)),
(1741, 'dividir en 6', NULL, NULL, 231204, ST_GeomFromText('Point (-72.04162 11.02831)', 4326)),
(1742, 'el batacazo', NULL, NULL, 231204, ST_GeomFromText('Point (-72.06089 10.88729)', 4326)),
(1743, 'el bejuco', NULL, NULL, 231204, ST_GeomFromText('Point (-72.06216 10.98244)', 4326)),
(1744, 'el colorado', NULL, NULL, 231204, ST_GeomFromText('Point (-71.9924 11.06218)', 4326)),
(1745, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.24357 10.8305)', 4326)),
(1746, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-72.01821 10.87529)', 4326)),
(1747, 'campamento', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88646 10.86344)', 4326)),
(1748, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88792 10.86745)', 4326)),
(1749, 'acapulco', NULL, NULL, 231205, ST_GeomFromText('Point (-72.32248 10.85417)', 4326)),
(1750, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.91156 10.84441)', 4326)),
(1751, 'canaguaro', NULL, NULL, 231202, ST_GeomFromText('Point (-71.81587 10.8528)', 4326)),
(1752, 'canquis', NULL, NULL, 231202, ST_GeomFromText('Point (-71.82703 10.85277)', 4326)),
(1753, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.34803 10.86872)', 4326)),
(1754, 'cachiri', NULL, NULL, 231205, ST_GeomFromText('Point (-72.24027 10.83483)', 4326)),
(1755, 'el milagro', NULL, NULL, 230702, ST_GeomFromText('Point (-71.94439 10.75958)', 4326)),
(1756, 'el oculto', NULL, NULL, 230702, ST_GeomFromText('Point (-72.04177 10.51103)', 4326)),
(1757, 'la paz', NULL, NULL, 230702, ST_GeomFromText('Point (-71.99965 10.67985)', 4326)),
(1758, 'la vega', NULL, NULL, 230702, ST_GeomFromText('Point (-72.00377 10.72538)', 4326)),
(1759, 'los corderos', NULL, NULL, 230702, ST_GeomFromText('Point (-72.31616 10.76287)', 4326)),
(1760, 'los teques', NULL, NULL, 230702, ST_GeomFromText('Point (-72.01156 10.67998)', 4326)),
(1761, 'km 48', NULL, NULL, 230902, ST_GeomFromText('Point (-72.00714 10.47359)', 4326)),
(1762, 'km 55', NULL, NULL, 230902, ST_GeomFromText('Point (-72.07605 10.45215)', 4326)),
(1763, 'km 56', NULL, NULL, 230902, ST_GeomFromText('Point (-72.0953 10.4527)', 4326)),
(1764, 'el dieciocho (18)', NULL, NULL, 230902, ST_GeomFromText('Point (-72.08464 10.42031)', 4326)),
(1765, 'km 60', NULL, NULL, 230902, ST_GeomFromText('Point (-72.12525 10.44321)', 4326)),
(1766, '21 de marzo', NULL, NULL, 231601, ST_GeomFromText('Point (-72.33813 10.30573)', 4326)),
(1767, '26 de enero', NULL, NULL, 231601, ST_GeomFromText('Point (-72.3118 10.34415)', 4326)),
(1768, '6 de agosto', NULL, NULL, 231601, ST_GeomFromText('Point (-72.31259 10.30875)', 4326)),
(1769, 'arimpia', NULL, NULL, 231601, ST_GeomFromText('Point (-72.39406 10.30548)', 4326)),
(1770, '<NAME>', NULL, NULL, 231601, ST_GeomFromText('Point (-72.32327 10.30655)', 4326)),
(1771, 'cañada larga', NULL, 6, 231601, ST_GeomFromText('Point (-72.31593 10.31658)', 4326)),
(1772, 'guadalajara', NULL, NULL, 231603, ST_GeomFromText('Point (-72.40191 10.21931)', 4326)),
(1773, '<NAME>', NULL, NULL, 231603, ST_GeomFromText('Point (-72.38146 10.18127)', 4326)),
(1774, 'sirapta', NULL, NULL, 231101, ST_GeomFromText('Point (-72.62712 10.14857)', 4326)),
(1775, '<NAME>', NULL, NULL, 231603, ST_GeomFromText('Point (-72.36257 10.12532)', 4326)),
(1776, 'sartanejo', NULL, NULL, 231603, ST_GeomFromText('Point (-72.31349 10.10755)', 4326)),
(1777, '<NAME>', NULL, NULL, 231104, ST_GeomFromText('Point (-72.33353 10.01202)', 4326)),
(1778, '<NAME>', NULL, NULL, 231104, ST_GeomFromText('Point (-72.39339 10.01128)', 4326)),
(1779, 'la rancheria', NULL, NULL, 231102, ST_GeomFromText('Point (-72.45416 10.0419)', 4326)),
(1780, 'lagunetas', NULL, NULL, 231102, ST_GeomFromText('Point (-71.96087 9.53733)', 4326)),
(1781, 'las doncellas', NULL, NULL, 231102, ST_GeomFromText('Point (-71.97645 9.5694)', 4326)),
(1782, 'barranquitas', NULL, NULL, 231602, ST_GeomFromText('Point (-72.02818 9.97761)', 4326)),
(1783, 'quitasol', NULL, NULL, 231104, ST_GeomFromText('Point (-72.36474 9.99292)', 4326)),
(1784, 'la cochina', NULL, NULL, 231104, ST_GeomFromText('Point (-72.41348 9.99559)', 4326)),
(1785, '<NAME>', NULL, NULL, 231104, ST_GeomFromText('Point (-72.4225 9.94037)', 4326)),
(1786, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-72.42352 10.05024)', 4326)),
(1787, '<NAME>', NULL, NULL, 231104, ST_GeomFromText('Point (-72.35296 9.92662)', 4326)),
(1788, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-72.44516 10.03494)', 4326)),
(1789, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-72.1873 9.60235)', 4326)),
(1790, '<NAME>', NULL, NULL, 231104, ST_GeomFromText('Point (-72.11294 9.83859)', 4326)),
(1791, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-71.93778 9.51129)', 4326)),
(1792, '<NAME>', NULL, NULL, 231103, ST_GeomFromText('Point (-72.47072 9.59849)', 4326)),
(1793, '<NAME>', NULL, NULL, 231103, ST_GeomFromText('Point (-72.57822 9.66323)', 4326)),
(1794, '<NAME>', NULL, NULL, 231103, ST_GeomFromText('Point (-72.58921 9.48572)', 4326)),
(1795, 'cocacolo', NULL, NULL, 231103, ST_GeomFromText('Point (-72.58613 9.51181)', 4326)),
(1796, '<NAME>', NULL, NULL, 231102, ST_GeomFromText('Point (-72.4721 9.98991)', 4326)),
(1797, '<NAME>', NULL, NULL, 231101, ST_GeomFromText('Point (-72.5799 10.07169)', 4326)),
(1798, 'yabagsi', NULL, NULL, 231101, ST_GeomFromText('Point (-72.87382 9.59081)', 4326)),
(1799, 'yayi', NULL, NULL, 231101, ST_GeomFromText('Point (-72.84741 9.88301)', 4326)),
(1800, 'yusuruncu', NULL, NULL, 231101, ST_GeomFromText('Point (-72.79807 9.96237)', 4326)),
(1801, 'yera', NULL, NULL, 230802, ST_GeomFromText('Point (-72.99694 9.44016)', 4326)),
(1802, '<NAME>', NULL, NULL, 231103, ST_GeomFromText('Point (-72.90644 9.29509)', 4326)),
(1803, 'la argentina', NULL, NULL, 231103, ST_GeomFromText('Point (-72.65686 9.49961)', 4326)),
(1804, 'la frontera', NULL, NULL, 231103, ST_GeomFromText('Point (-72.56235 9.65575)', 4326)),
(1805, 'la lola', NULL, NULL, 231103, ST_GeomFromText('Point (-72.66365 9.51786)', 4326)),
(1806, '<NAME>', NULL, NULL, 231103, ST_GeomFromText('Point (-72.57913 9.4034)', 4326)),
(1807, 'santa marta', NULL, NULL, 231103, ST_GeomFromText('Point (-72.58896 9.531)', 4326)),
(1808, 'limones', NULL, NULL, 230401, ST_GeomFromText('Point (-71.9669 9.14179)', 4326)),
(1809, '<NAME>', NULL, NULL, 230802, ST_GeomFromText('Point (-72.38236 9.39509)', 4326)),
(1810, 'santa rosa', NULL, NULL, 231103, ST_GeomFromText('Point (-72.51545 9.58412)', 4326)),
(1811, 'santa teresa', NULL, NULL, 231103, ST_GeomFromText('Point (-72.47987 9.51891)', 4326)),
(1812, 'los manaties', NULL, NULL, 230401, ST_GeomFromText('Point (-71.97157 9.47742)', 4326)),
(1813, 'los siete ceibos', NULL, NULL, 230401, ST_GeomFromText('Point (-72.02349 9.56524)', 4326)),
(1814, 'tivi', NULL, NULL, 230802, ST_GeomFromText('Point (-72.55903 9.14598)', 4326)),
(1815, 'las mesitas', NULL, NULL, 230802, ST_GeomFromText('Point (-72.58044 9.15008)', 4326)),
(1816, '<NAME>', NULL, NULL, 230802, ST_GeomFromText('Point (-72.56102 9.21057)', 4326)),
(1817, 'puerto de palo', NULL, NULL, 230802, ST_GeomFromText('Point (-72.45957 9.06518)', 4326)),
(1818, 'los tres ceibos', NULL, NULL, 230401, ST_GeomFromText('Point (-72.01981 9.16876)', 4326)),
(1819, 'momposito', NULL, NULL, 230401, ST_GeomFromText('Point (-72.11944 9.25981)', 4326)),
(1820, 'ologa', NULL, NULL, 230401, ST_GeomFromText('Point (-71.83719 9.42807)', 4326)),
(1821, 'p<NAME>', NULL, NULL, 230401, ST_GeomFromText('Point (-71.87172 9.27654)', 4326)),
(1822, 'play<NAME>', NULL, NULL, 230401, ST_GeomFromText('Point (-72.2816 9.06372)', 4326)),
(1823, 'valderrama', NULL, NULL, 230401, ST_GeomFromText('Point (-72.30625 8.92722)', 4326)),
(1824, 'santa rosa', NULL, NULL, 230501, ST_GeomFromText('Point (-72.05604 8.9669)', 4326)),
(1825, 'la frontera', NULL, NULL, 230504, ST_GeomFromText('Point (-72.10276 8.9744)', 4326)),
(1826, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.09003 8.45445)', 4326)),
(1827, 'puerto nuevo', NULL, NULL, 230801, ST_GeomFromText('Point (-72.62943 8.63327)', 4326)),
(1828, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.66555 8.9617)', 4326)),
(1829, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.53858 8.87011)', 4326)),
(1830, 'venado', NULL, NULL, 230401, ST_GeomFromText('Point (-71.88831 9.25093)', 4326)),
(1831, 'verdun', NULL, NULL, 230401, ST_GeomFromText('Point (-72.25098 8.92706)', 4326)),
(1832, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.10714 8.47238)', 4326)),
(1833, 'las taparas', NULL, NULL, 230402, ST_GeomFromText('Point (-72.38181 8.44766)', 4326)),
(1834, 'villorio', NULL, NULL, 230401, ST_GeomFromText('Point (-71.91867 9.2354)', 4326)),
(1835, 'las vegas', NULL, NULL, 230402, ST_GeomFromText('Point (-72.23931 8.45309)', 4326)),
(1836, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.57026 8.56475)', 4326)),
(1837, 'sardinata', NULL, NULL, 230801, ST_GeomFromText('Point (-72.61849 8.60102)', 4326)),
(1838, 'tres bocas', NULL, NULL, 230801, ST_GeomFromText('Point (-72.65193 8.62298)', 4326)),
(1839, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.32863 8.53671)', 4326)),
(1840, 'morotuto', NULL, NULL, 230504, ST_GeomFromText('Point (-72.02486 8.76244)', 4326)),
(1841, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.47696 8.47169)', 4326)),
(1842, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.36357 8.51843)', 4326)),
(1843, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.29699 8.50777)', 4326)),
(1844, 'pu<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.09788 8.4506)', 4326)),
(1845, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-71.97147 8.94759)', 4326)),
(1846, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-71.987 8.89871)', 4326)),
(1847, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.11993 8.58461)', 4326)),
(1848, '<NAME>', NULL, NULL, 230504, ST_GeomFromText('Point (-72.05165 8.48469)', 4326)),
(1849, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.33718 8.66778)', 4326)),
(1850, '<NAME>', NULL, NULL, 230801, ST_GeomFromText('Point (-72.64456 8.6847)', 4326)),
(1851, '<NAME>', NULL, NULL, 230402, ST_GeomFromText('Point (-72.25608 8.48713)', 4326)),
(1852, 'sipu', NULL, NULL, 230402, ST_GeomFromText('Point (-72.26243 8.4562)', 4326)),
(1853, 'vuelta del mono', NULL, NULL, 230402, ST_GeomFromText('Point (-72.36483 8.43411)', 4326)),
(1854, '<NAME>', NULL, NULL, 231401, ST_GeomFromText('Point (-71.45844 10.75289)', 4326)),
(1855, 'el tablazo', NULL, NULL, 231405, ST_GeomFromText('Point (-71.52095 10.7609)', 4326)),
(1856, '<NAME>', NULL, NULL, 230101, ST_GeomFromText('Point (-71.6484 10.95768)', 4326)),
(1857, 'palmarito', NULL, NULL, 230702, ST_GeomFromText('Point (-72.19873 10.75952)', 4326)),
(1858, '<NAME>', NULL, NULL, 230702, ST_GeomFromText('Point (-72.03537 10.70886)', 4326)),
(1859, 'el matapalo', NULL, NULL, 230704, ST_GeomFromText('Point (-71.88959 10.75176)', 4326)),
(1860, 'santa rosa', NULL, NULL, 230704, ST_GeomFromText('Point (-71.84762 10.75816)', 4326)),
(1861, 'el cieneguito', NULL, NULL, 230704, ST_GeomFromText('Point (-71.83589 10.75023)', 4326)),
(1862, 'el cucharo', NULL, NULL, 230704, ST_GeomFromText('Point (-71.8346 10.75975)', 4326)),
(1863, 'el chivato', NULL, NULL, 230704, ST_GeomFromText('Point (-71.82575 10.76515)', 4326)),
(1864, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.75062 10.92315)', 4326)),
(1865, 'el ancon', NULL, NULL, 231201, ST_GeomFromText('Point (-71.78721 10.93792)', 4326)),
(1866, 'el boton', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73898 10.89553)', 4326)),
(1867, 'el brillante', NULL, NULL, 231201, ST_GeomFromText('Point (-71.75861 10.90508)', 4326)),
(1868, 'el cardonal', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73752 10.92427)', 4326)),
(1869, 'el carrizal', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74178 10.89396)', 4326)),
(1870, 'el cucharo', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7437 10.88366)', 4326)),
(1871, 'el currican', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72432 10.95098)', 4326)),
(1872, 'el guacuco', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74246 10.9696)', 4326)),
(1873, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7335 10.96529)', 4326)),
(1874, 'el jejen', NULL, NULL, 231201, ST_GeomFromText('Point (-71.79499 10.91071)', 4326)),
(1875, 'el libano', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7524 10.90145)', 4326)),
(1876, 'el piache', NULL, NULL, 231201, ST_GeomFromText('Point (-71.79147 10.92918)', 4326)),
(1877, 'el progreso', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73955 10.96172)', 4326)),
(1878, 'el progreso', '2', NULL, 231201, ST_GeomFromText('Point (-71.73378 10.95119)', 4326)),
(1879, 'el puentecito', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73362 10.93758)', 4326)),
(1880, 'el remachon', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74516 10.92401)', 4326)),
(1881, 'el renacer', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73226 10.95568)', 4326)),
(1882, 'el rodeo', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7253 10.93682)', 4326)),
(1883, 'el sajarito', NULL, NULL, 231201, ST_GeomFromText('Point (-71.80215 10.9213)', 4326)),
(1884, 'el soberano', NULL, NULL, 231201, ST_GeomFromText('Point (-71.76039 10.87028)', 4326)),
(1885, 'el tropezon', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74799 10.93109)', 4326)),
(1886, 'el uveral', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72133 10.95097)', 4326)),
(1887, 'el uveral', '2', NULL, 231201, ST_GeomFromText('Point (-71.72724 10.95507)', 4326)),
(1888, 'flor de mara', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74773 10.91692)', 4326)),
(1889, 'gallera', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7202 10.9389)', 4326)),
(1890, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72785 10.88003)', 4326)),
(1891, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7439 10.96744)', 4326)),
(1892, 'la colorada', NULL, NULL, 231201, ST_GeomFromText('Point (-71.77151 10.88619)', 4326)),
(1893, 'la frontera', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7558 10.88308)', 4326)),
(1894, 'la gallera', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74212 10.95152)', 4326)),
(1895, 'la redoma', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72063 10.94023)', 4326)),
(1896, 'la redoma', '2', NULL, 231201, ST_GeomFromText('Point (-71.72163 10.93507)', 4326)),
(1897, 'las cabimas', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72365 10.95097)', 4326)),
(1898, 'las latas', NULL, NULL, 231201, ST_GeomFromText('Point (-71.80849 10.88506)', 4326)),
(1899, 'las lomas', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73533 10.96269)', 4326)),
(1900, 'loma alta', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74253 10.96061)', 4326)),
(1901, 'los esis', NULL, NULL, 231201, ST_GeomFromText('Point (-71.80901 10.87821)', 4326)),
(1902, 'los mayales', NULL, NULL, 231201, ST_GeomFromText('Point (-71.80638 10.91433)', 4326)),
(1903, 'los medanos', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72784 10.94913)', 4326)),
(1904, 'los vilchez', NULL, NULL, 231201, ST_GeomFromText('Point (-71.76357 10.8817)', 4326)),
(1905, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7151 10.87442)', 4326)),
(1906, 'nazareth', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73806 10.96908)', 4326)),
(1907, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7403 10.96732)', 4326)),
(1908, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73013 10.94066)', 4326)),
(1909, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.74215 10.92084)', 4326)),
(1910, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.75571 10.91093)', 4326)),
(1911, 'paraiso', '2', NULL, 231201, ST_GeomFromText('Point (-71.85895 10.87909)', 4326)),
(1912, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.84223 10.88456)', 4326)),
(1913, 'rodeo', '2', NULL, 231201, ST_GeomFromText('Point (-71.72807 10.93847)', 4326)),
(1914, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.81123 10.90782)', 4326)),
(1915, 'rosita', '2', NULL, 231201, ST_GeomFromText('Point (-71.74759 10.91358)', 4326)),
(1916, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.79343 10.92345)', 4326)),
(1917, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73009 10.96063)', 4326)),
(1918, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.72639 10.95273)', 4326)),
(1919, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.7328 10.92255)', 4326)),
(1920, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73793 10.95967)', 4326)),
(1921, '<NAME>', '2', NULL, 231201, ST_GeomFromText('Point (-71.74033 10.95703)', 4326)),
(1922, 'soledad', '1', NULL, 231201, ST_GeomFromText('Point (-71.74587 10.94322)', 4326)),
(1923, 'soledad', '2', NULL, 231201, ST_GeomFromText('Point (-71.73807 10.94014)', 4326)),
(1924, 'tamaral', NULL, NULL, 231201, ST_GeomFromText('Point (-71.79345 10.87833)', 4326)),
(1925, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.75357 10.89248)', 4326)),
(1926, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.75716 10.92195)', 4326)),
(1927, '<NAME>', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73309 10.93954)', 4326)),
(1928, 'vista alegre', NULL, NULL, 231201, ST_GeomFromText('Point (-71.73701 10.94275)', 4326)),
(1929, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83952 10.7805)', 4326)),
(1930, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88914 10.79317)', 4326)),
(1931, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88053 10.7998)', 4326)),
(1932, 'chiquinquira', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86607 10.81933)', 4326)),
(1933, 'cienaga de reyes', NULL, NULL, 231202, ST_GeomFromText('Point (-71.81149 10.86218)', 4326)),
(1934, 'cieneguita', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83586 10.80855)', 4326)),
(1935, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.90839 10.81138)', 4326)),
(1936, 'cuji', '2', NULL, 231202, ST_GeomFromText('Point (-71.89249 10.79905)', 4326)),
(1937, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84173 10.85643)', 4326)),
(1938, 'el batazo', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86042 10.8147)', 4326)),
(1939, 'el cachicamo', NULL, NULL, 231202, ST_GeomFromText('Point (-71.82909 10.77131)', 4326)),
(1940, 'el cafetal', NULL, NULL, 231202, ST_GeomFromText('Point (-71.92497 10.78546)', 4326)),
(1941, 'el cafetal camino las cabrias', NULL, NULL, 231202, ST_GeomFromText('Point (-71.91821 10.79189)', 4326)),
(1942, 'el campito', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86474 10.82948)', 4326)),
(1943, 'el comejen', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87032 10.81692)', 4326)),
(1944, 'el curarire', NULL, NULL, 231202, ST_GeomFromText('Point (-72.02709 10.86578)', 4326)),
(1945, 'el ebano', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85792 10.83719)', 4326)),
(1946, 'el encaramado', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87382 10.76735)', 4326)),
(1947, 'el maluco', NULL, NULL, 231202, ST_GeomFromText('Point (-71.9522 10.7762)', 4326)),
(1948, 'el mamon', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8528 10.80969)', 4326)),
(1949, 'el negrito', NULL, NULL, 231202, ST_GeomFromText('Point (-72.03486 10.82899)', 4326)),
(1950, 'el perdido', NULL, NULL, 231202, ST_GeomFromText('Point (-71.93268 10.86603)', 4326)),
(1951, 'el picante', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87795 10.85779)', 4326)),
(1952, 'el pozo', NULL, NULL, 231202, ST_GeomFromText('Point (-71.79196 10.85307)', 4326)),
(1953, 'el quemao', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85362 10.77727)', 4326)),
(1954, 'el rayito', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83018 10.86475)', 4326)),
(1955, 'el semeruco', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84422 10.80411)', 4326)),
(1956, 'el serrucho', NULL, NULL, 231202, ST_GeomFromText('Point (-71.95811 10.80242)', 4326)),
(1957, 'el siete', NULL, NULL, 231202, ST_GeomFromText('Point (-71.90778 10.86024)', 4326)),
(1958, 'el toriao', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84021 10.81065)', 4326)),
(1959, 'el trabajado', NULL, NULL, 231202, ST_GeomFromText('Point (-72.06736 10.77077)', 4326)),
(1960, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.9293 10.78203)', 4326)),
(1961, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88361 10.87026)', 4326)),
(1962, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8197 10.82148)', 4326)),
(1963, '<NAME>', '2', NULL, 231202, ST_GeomFromText('Point (-71.82346 10.81564)', 4326)),
(1964, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85396 10.8442)', 4326)),
(1965, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87092 10.84469)', 4326)),
(1966, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85913 10.79651)', 4326)),
(1967, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86047 10.86998)', 4326)),
(1968, 'la botella', NULL, NULL, 231202, ST_GeomFromText('Point (-72.01507 10.85008)', 4326)),
(1969, 'la campana', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8365 10.86772)', 4326)),
(1970, 'la cañada fresca', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84012 10.86289)', 4326)),
(1971, 'la ceibita', NULL, NULL, 231202, ST_GeomFromText('Point (-71.80054 10.85666)', 4326)),
(1972, 'la creole', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84603 10.85192)', 4326)),
(1973, 'la fragua', NULL, NULL, 231202, ST_GeomFromText('Point (-71.91169 10.7779)', 4326)),
(1974, 'la fraguario seco', NULL, NULL, 231202, ST_GeomFromText('Point (-71.9193 10.77277)', 4326)),
(1975, 'la gaviota', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84594 10.78341)', 4326)),
(1976, 'la gran parada', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83095 10.86066)', 4326)),
(1978, 'la loma', '2', NULL, 231202, ST_GeomFromText('Point (-71.81135 10.82114)', 4326)),
(1979, 'la luna', NULL, NULL, 231202, ST_GeomFromText('Point (-71.80493 10.86622)', 4326)),
(1980, 'la montañita', NULL, NULL, 231202, ST_GeomFromText('Point (-71.82764 10.79851)', 4326)),
(1981, 'la providencia', NULL, NULL, 231202, ST_GeomFromText('Point (-72.08152 10.78735)', 4326)),
(1982, 'la quieta', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87296 10.79452)', 4326)),
(1983, 'la rivaco', NULL, NULL, 231202, ST_GeomFromText('Point (-71.90224 10.79304)', 4326)),
(1984, 'la sierrita', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86378 10.82973)', 4326)),
(1985, 'la susana', NULL, NULL, 231202, ST_GeomFromText('Point (-71.89301 10.79084)', 4326)),
(1986, 'la ye', NULL, NULL, 231202, ST_GeomFromText('Point (-71.83967 10.82228)', 4326)),
(1987, 'laberinto', NULL, NULL, 231202, ST_GeomFromText('Point (-72.10666 10.79154)', 4326)),
(1988, 'las cabimitas', NULL, NULL, 231202, ST_GeomFromText('Point (-72.09071 10.79831)', 4326)),
(1989, 'las cabrias', '1', NULL, 231202, ST_GeomFromText('Point (-71.87267 10.82109)', 4326)),
(1990, 'las cabrias', '2', NULL, 231202, ST_GeomFromText('Point (-71.92436 10.79414)', 4326)),
(1991, 'las calenturas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.99547 10.84704)', 4326)),
(1992, 'las cuatro bocas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85317 10.81943)', 4326)),
(1993, 'las malvinas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88588 10.81803)', 4326)),
(1994, 'las parcelas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.87106 10.87369)', 4326)),
(1995, 'las parcelas', '2', NULL, 231202, ST_GeomFromText('Point (-71.87046 10.86636)', 4326)),
(1996, 'las pendas', NULL, NULL, 231202, ST_GeomFromText('Point (-71.80416 10.84714)', 4326)),
(1997, 'las primaveras', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86655 10.847)', 4326)),
(1998, 'las turquias', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85287 10.78462)', 4326)),
(1999, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85938 10.82298)', 4326)),
(2000, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.94443 10.7941)', 4326)),
(2001, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.96382 10.82785)', 4326)),
(2002, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-72.03253 10.79113)', 4326)),
(2003, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85199 10.80126)', 4326)),
(2004, '<NAME>', '2', NULL, 231202, ST_GeomFromText('Point (-71.79117 10.84583)', 4326)),
(2005, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88686 10.85365)', 4326)),
(2006, 'los negritos', NULL, NULL, 231202, ST_GeomFromText('Point (-71.94049 10.84527)', 4326)),
(2007, 'los pericos', NULL, NULL, 231202, ST_GeomFromText('Point (-71.88178 10.87255)', 4326)),
(2008, 'los reyes', NULL, NULL, 231202, ST_GeomFromText('Point (-71.78016 10.86643)', 4326)),
(2009, 'los tanque negros', NULL, NULL, 231202, ST_GeomFromText('Point (-71.82968 10.87322)', 4326)),
(2010, 'los tortolitos', NULL, NULL, 231202, ST_GeomFromText('Point (-71.81496 10.81342)', 4326)),
(2011, 'maranatha', NULL, NULL, 231202, ST_GeomFromText('Point (-71.89114 10.87353)', 4326)),
(2012, 'marcelino', '2', NULL, 231202, ST_GeomFromText('Point (-71.82014 10.83559)', 4326)),
(2013, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84087 10.82779)', 4326)),
(2014, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.92551 10.76811)', 4326)),
(2015, 'mi esperanza', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86048 10.84287)', 4326)),
(2016, 'miralejos', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84518 10.84514)', 4326)),
(2017, 'mogu', NULL, NULL, 231202, ST_GeomFromText('Point (-71.92052 10.81027)', 4326)),
(2018, 'pozo', '2', NULL, 231202, ST_GeomFromText('Point (-71.78726 10.86159)', 4326)),
(2019, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.84406 10.83841)', 4326)),
(2020, 'pueblo aparte', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86567 10.83193)', 4326)),
(2021, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8923 10.84802)', 4326)),
(2022, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.97979 10.78289)', 4326)),
(2023, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8261 10.82462)', 4326)),
(2024, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.82774 10.8136)', 4326)),
(2025, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.8702 10.77416)', 4326)),
(2026, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86772 10.8389)', 4326)),
(2027, 'soltamaral', NULL, NULL, 231202, ST_GeomFromText('Point (-71.78542 10.87278)', 4326)),
(2028, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.81565 10.82036)', 4326)),
(2029, 'tamare', '2', NULL, 231202, ST_GeomFromText('Point (-71.79457 10.83801)', 4326)),
(2030, 'tawalayuu', NULL, NULL, 231202, ST_GeomFromText('Point (-71.85785 10.8291)', 4326)),
(2031, '<NAME>', NULL, NULL, 231202, ST_GeomFromText('Point (-71.86652 10.81804)', 4326)),
(2032, 'el engranzonao', NULL, NULL, 231203, ST_GeomFromText('Point (-71.91777 10.97546)', 4326)),
(2033, 'el escapulario', NULL, NULL, 231203, ST_GeomFromText('Point (-71.91444 10.87599)', 4326)),
(2034, 'el fangal', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88136 10.95947)', 4326)),
(2035, 'el guayabo', NULL, NULL, 231203, ST_GeomFromText('Point (-71.91985 10.93256)', 4326)),
(2036, 'el paraiso', NULL, NULL, 231203, ST_GeomFromText('Point (-71.86601 10.8859)', 4326)),
(2037, 'el patillar', NULL, NULL, 231203, ST_GeomFromText('Point (-71.98533 10.90476)', 4326)),
(2038, 'el rincon', NULL, NULL, 231203, ST_GeomFromText('Point (-71.92951 10.98588)', 4326)),
(2039, 'el rodadero', NULL, NULL, 231203, ST_GeomFromText('Point (-71.91169 10.90871)', 4326)),
(2040, 'el sargento', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94697 10.98904)', 4326)),
(2041, 'el suspiro', NULL, NULL, 231203, ST_GeomFromText('Point (-71.90173 10.96332)', 4326)),
(2042, 'el yaco', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88519 10.90173)', 4326)),
(2043, 'h<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.9057 10.93531)', 4326)),
(2044, 'juncalito', NULL, NULL, 231203, ST_GeomFromText('Point (-72.00665 10.92043)', 4326)),
(2045, 'la arrocera', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94786 10.96875)', 4326)),
(2046, 'la candelita', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94598 10.92881)', 4326)),
(2047, 'la cañada del indio', NULL, NULL, 231203, ST_GeomFromText('Point (-71.95131 10.94809)', 4326)),
(2048, 'la eneita', NULL, NULL, 231203, ST_GeomFromText('Point (-71.9144 10.89322)', 4326)),
(2049, 'la gran cruzada', NULL, NULL, 231203, ST_GeomFromText('Point (-71.93782 10.93205)', 4326)),
(2050, 'la jungla', NULL, NULL, 231203, ST_GeomFromText('Point (-71.89399 10.90692)', 4326)),
(2051, 'la redoma', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84959 10.91055)', 4326)),
(2052, 'la secreta', NULL, NULL, 231203, ST_GeomFromText('Point (-71.91951 10.90718)', 4326)),
(2053, 'la selva', NULL, NULL, 231203, ST_GeomFromText('Point (-71.90097 10.90097)', 4326)),
(2054, 'la tetona', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88307 10.93035)', 4326)),
(2055, 'la tigra', NULL, NULL, 231203, ST_GeomFromText('Point (-71.78135 10.98082)', 4326)),
(2056, 'la ultima', NULL, NULL, 231203, ST_GeomFromText('Point (-71.85384 10.94464)', 4326)),
(2057, 'las 4 esquinas', NULL, NULL, 231203, ST_GeomFromText('Point (-71.83663 10.9113)', 4326)),
(2058, 'las dos bocas', NULL, NULL, 231203, ST_GeomFromText('Point (-71.95525 10.985)', 4326)),
(2059, 'las palmas', NULL, NULL, 231203, ST_GeomFromText('Point (-71.89401 10.97648)', 4326)),
(2060, 'loma', '2', NULL, 231203, ST_GeomFromText('Point (-71.95918 10.96833)', 4326)),
(2061, 'los albariquito', NULL, NULL, 231203, ST_GeomFromText('Point (-71.99133 10.9416)', 4326)),
(2062, 'los becerro', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84862 10.95258)', 4326)),
(2063, 'los bejucos', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84318 10.92598)', 4326)),
(2064, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.93822 10.89424)', 4326)),
(2065, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.85375 10.97981)', 4326)),
(2066, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.898 10.92729)', 4326)),
(2067, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94109 10.94382)', 4326)),
(2068, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.83755 10.9762)', 4326)),
(2069, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88445 10.87858)', 4326)),
(2070, 'miralejos', NULL, NULL, 231203, ST_GeomFromText('Point (-71.80786 10.94243)', 4326)),
(2071, 'nisperal', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84586 10.89653)', 4326)),
(2072, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94154 10.90703)', 4326)),
(2073, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.95908 10.9881)', 4326)),
(2074, 'potrerito', NULL, NULL, 231203, ST_GeomFromText('Point (-71.95684 10.879)', 4326)),
(2075, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.78847 11.00024)', 4326)),
(2076, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.94119 10.95422)', 4326)),
(2077, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.84703 10.96147)', 4326)),
(2078, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.95932 10.97406)', 4326)),
(2079, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.87233 10.89428)', 4326)),
(2080, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.88162 10.88762)', 4326)),
(2081, '<NAME>', NULL, NULL, 231203, ST_GeomFromText('Point (-71.92514 10.91854)', 4326)),
(2082, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00796 11.00409)', 4326)),
(2083, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.07564 10.95236)', 4326)),
(2084, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.03923 11.00692)', 4326)),
(2085, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-71.98937 11.07919)', 4326)),
(2086, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.05844 10.99114)', 4326)),
(2087, 'la burra', NULL, NULL, 231204, ST_GeomFromText('Point (-72.12642 11.06528)', 4326)),
(2088, 'la cañera', NULL, NULL, 231204, ST_GeomFromText('Point (-71.96803 11.08275)', 4326)),
(2089, 'la cañera de morales', NULL, NULL, 231204, ST_GeomFromText('Point (-71.95673 11.08228)', 4326)),
(2090, 'la cazadora', NULL, NULL, 231204, ST_GeomFromText('Point (-72.10258 10.92093)', 4326)),
(2091, 'la ceiba', NULL, NULL, 231204, ST_GeomFromText('Point (-72.03655 10.99833)', 4326)),
(2092, 'la danta', NULL, NULL, 231204, ST_GeomFromText('Point (-72.38269 10.95455)', 4326)),
(2093, 'la fortuna', NULL, NULL, 231204, ST_GeomFromText('Point (-72.01799 10.99446)', 4326)),
(2094, 'la horqueta', NULL, NULL, 231204, ST_GeomFromText('Point (-71.91381 11.04472)', 4326)),
(2095, 'la madriguera', NULL, NULL, 231204, ST_GeomFromText('Point (-71.98621 11.0699)', 4326)),
(2096, 'la maravilla', NULL, NULL, 231204, ST_GeomFromText('Point (-71.9921 11.01619)', 4326)),
(2097, 'la mireya', NULL, NULL, 231204, ST_GeomFromText('Point (-72.26398 10.95407)', 4326)),
(2098, 'la porfia', NULL, NULL, 231204, ST_GeomFromText('Point (-72.19594 10.95091)', 4326)),
(2099, 'la rosa', NULL, NULL, 231204, ST_GeomFromText('Point (-71.9387 11.05562)', 4326)),
(2100, 'la sierra', NULL, NULL, 231204, ST_GeomFromText('Point (-72.32801 11.02845)', 4326)),
(2101, 'la sorpresa', NULL, NULL, 231204, ST_GeomFromText('Point (-72.0228 10.96012)', 4326)),
(2102, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00674 11.03469)', 4326)),
(2103, 'las jabillas', NULL, NULL, 231204, ST_GeomFromText('Point (-72.02964 11.04511)', 4326)),
(2104, 'las mercedes', NULL, NULL, 231204, ST_GeomFromText('Point (-72.43155 11.04388)', 4326)),
(2105, 'las palmitas', NULL, NULL, 231204, ST_GeomFromText('Point (-72.02653 11.01702)', 4326)),
(2106, 'las parcelas de manuelote', NULL, NULL, 231204, ST_GeomFromText('Point (-72.22434 10.95348)', 4326)),
(2107, 'las parchitas', NULL, NULL, 231204, ST_GeomFromText('Point (-72.07219 10.9956)', 4326)),
(2108, 'las playitas', NULL, NULL, 231204, ST_GeomFromText('Point (-71.983 10.99016)', 4326)),
(2109, 'los albaricos', NULL, NULL, 231204, ST_GeomFromText('Point (-72.04424 10.89429)', 4326)),
(2110, 'los angeles', NULL, NULL, 231204, ST_GeomFromText('Point (-72.23835 11.05606)', 4326)),
(2111, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.03145 10.95787)', 4326)),
(2112, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.16056 11.06746)', 4326)),
(2113, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.11172 11.0315)', 4326)),
(2114, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.29869 10.95451)', 4326)),
(2115, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.40707 10.94054)', 4326)),
(2116, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.15408 10.94028)', 4326)),
(2117, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.22039 11.04761)', 4326)),
(2118, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.06333 10.97537)', 4326)),
(2119, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.17541 11.08935)', 4326)),
(2120, 'los tizones', NULL, NULL, 231204, ST_GeomFromText('Point (-72.0082 11.0102)', 4326)),
(2121, 'los tizones el cerro', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00316 11.0174)', 4326)),
(2122, 'los vivitos', NULL, NULL, 231204, ST_GeomFromText('Point (-72.06613 11.03377)', 4326)),
(2123, 'manuelote', NULL, NULL, 231204, ST_GeomFromText('Point (-72.22553 10.93718)', 4326)),
(2124, 'mata grande', NULL, NULL, 231204, ST_GeomFromText('Point (-72.24591 11.04764)', 4326)),
(2125, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.18079 10.93177)', 4326)),
(2126, 'parcelamiento don antonio', NULL, NULL, 231204, ST_GeomFromText('Point (-72.21049 10.97834)', 4326)),
(2127, 'parcelamiento el paso', NULL, NULL, 231204, ST_GeomFromText('Point (-72.18022 10.98472)', 4326)),
(2128, 'playa bonita', NULL, NULL, 231204, ST_GeomFromText('Point (-72.12996 10.97472)', 4326)),
(2129, 'po<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.04314 10.93172)', 4326)),
(2130, 'pu<NAME>ajo', NULL, NULL, 231204, ST_GeomFromText('Point (-72.04099 11.02861)', 4326)),
(2131, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-71.99355 11.05693)', 4326)),
(2132, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.09319 11.06267)', 4326)),
(2133, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.44662 10.93034)', 4326)),
(2134, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-71.96864 10.98962)', 4326)),
(2135, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.02 11.02956)', 4326)),
(2136, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.04937 10.99111)', 4326)),
(2137, 'siloe', NULL, NULL, 231204, ST_GeomFromText('Point (-71.96317 10.98997)', 4326)),
(2138, 'teiruma', NULL, NULL, 231204, ST_GeomFromText('Point (-72.00414 11.02368)', 4326)),
(2139, 'villa bolivariana', '1', NULL, 231204, ST_GeomFromText('Point (-72.00223 11.02948)', 4326)),
(2140, 'villa bolivariana', '2', NULL, 231204, ST_GeomFromText('Point (-71.9973 11.02511)', 4326)),
(2141, '<NAME>', NULL, NULL, 231204, ST_GeomFromText('Point (-72.16775 10.99254)', 4326)),
(2142, 'zanzibar', NULL, NULL, 231204, ST_GeomFromText('Point (-71.93851 11.06431)', 4326)),
(2143, 'caño la arena', NULL, NULL, 231205, ST_GeomFromText('Point (-72.33574 10.86168)', 4326)),
(2144, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.33038 10.88578)', 4326)),
(2145, 'cerro el brillante', NULL, NULL, 231205, ST_GeomFromText('Point (-72.36683 10.83449)', 4326)),
(2146, 'cerro la meseta', NULL, NULL, 231205, ST_GeomFromText('Point (-72.41243 10.84507)', 4326)),
(2147, 'cerro la yolanda', NULL, NULL, 231205, ST_GeomFromText('Point (-72.48309 10.86691)', 4326)),
(2148, 'cerro negro', NULL, NULL, 231205, ST_GeomFromText('Point (-72.42802 10.88589)', 4326)),
(2149, 'el curari', NULL, NULL, 231205, ST_GeomFromText('Point (-72.07655 10.88291)', 4326)),
(2150, 'el platino', NULL, NULL, 231205, ST_GeomFromText('Point (-72.24574 10.79181)', 4326)),
(2151, 'el tamaral', NULL, NULL, 231205, ST_GeomFromText('Point (-72.20448 10.8188)', 4326)),
(2152, 'el tapon', NULL, NULL, 231205, ST_GeomFromText('Point (-72.14075 10.79637)', 4326)),
(2153, 'la cienega', NULL, NULL, 231205, ST_GeomFromText('Point (-72.16639 10.81652)', 4326)),
(2154, 'la linea', NULL, NULL, 231205, ST_GeomFromText('Point (-72.2082 10.80729)', 4326)),
(2155, 'la m del sur', NULL, NULL, 231205, ST_GeomFromText('Point (-72.17151 10.76927)', 4326)),
(2156, 'la muñeca', NULL, NULL, 231205, ST_GeomFromText('Point (-72.10158 10.89002)', 4326)),
(2157, 'la peña alta', NULL, NULL, 231205, ST_GeomFromText('Point (-72.4474 10.85199)', 4326)),
(2158, 'la veguita', NULL, NULL, 231205, ST_GeomFromText('Point (-72.23054 10.83782)', 4326)),
(2159, 'las taparitas', NULL, NULL, 231205, ST_GeomFromText('Point (-72.05992 10.87425)', 4326)),
(2160, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.15325 10.80334)', 4326)),
(2161, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.27316 10.82057)', 4326)),
(2162, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.17526 10.82153)', 4326)),
(2163, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.27545 10.82604)', 4326)),
(2164, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.31625 10.92079)', 4326)),
(2165, 'paraiso', NULL, NULL, 231205, ST_GeomFromText('Point (-72.28213 10.81887)', 4326)),
(2166, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.23695 10.83975)', 4326)),
(2167, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.22391 10.8436)', 4326)),
(2168, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.28898 10.87015)', 4326)),
(2169, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.29285 10.78292)', 4326)),
(2170, '<NAME>', NULL, NULL, 231205, ST_GeomFromText('Point (-72.22475 10.89227)', 4326)),
(2171, 'tule', NULL, NULL, 231205, ST_GeomFromText('Point (-72.10491 10.8929)', 4326)),
(2172, '15 letras', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77065 10.80236)', 4326)),
(2173, '5 de julio', NULL, NULL, 231206, ST_GeomFromText('Point (-71.73618 10.81308)', 4326)),
(2174, '8 de octubre', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7088 10.79841)', 4326)),
(2175, '9 de enero', NULL, NULL, 231206, ST_GeomFromText('Point (-71.75954 10.81962)', 4326)),
(2176, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.73505 10.77621)', 4326)),
(2177, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.75364 10.82355)', 4326)),
(2178, 'asovimara', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67351 10.78567)', 4326)),
(2179, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68446 10.7841)', 4326)),
(2180, 'bicentenario', NULL, NULL, 231206, ST_GeomFromText('Point (-71.6871 10.79202)', 4326)),
(2181, 'bolivariano', '2', NULL, 231206, ST_GeomFromText('Point (-71.67304 10.77397)', 4326)),
(2182, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.66663 10.77513)', 4326)),
(2183, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69119 10.79173)', 4326)),
(2184, 'campo', '1', NULL, 231206, ST_GeomFromText('Point (-71.67712 10.79261)', 4326)),
(2185, 'campo', '2', NULL, 231206, ST_GeomFromText('Point (-71.67778 10.79704)', 4326)),
(2186, 'catatumbo internacional', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67621 10.77676)', 4326)),
(2187, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69051 10.77465)', 4326)),
(2188, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76611 10.77441)', 4326)),
(2189, 'chorro', '1', NULL, 231206, ST_GeomFromText('Point (-71.67857 10.7816)', 4326)),
(2190, 'chorro', '2', NULL, 231206, ST_GeomFromText('Point (-71.67715 10.77955)', 4326)),
(2191, '<NAME>', '1', NULL, 231206, ST_GeomFromText('Point (-71.76183 10.80693)', 4326)),
(2192, '<NAME>', '2', NULL, 231206, ST_GeomFromText('Point (-71.75978 10.80838)', 4326)),
(2193, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69995 10.78754)', 4326)),
(2194, 'ebano', '2', NULL, 231206, ST_GeomFromText('Point (-71.75153 10.79523)', 4326)),
(2197, 'el araguaney', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70055 10.79576)', 4326)),
(2198, 'el caimito', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7687 10.8251)', 4326)),
(2199, 'el camito', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76283 10.82352)', 4326)),
(2200, 'el carmen', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67579 10.78662)', 4326)),
(2201, 'el ebano', NULL, NULL, 231206, ST_GeomFromText('Point (-71.75195 10.80088)', 4326)),
(2202, 'el guayacan', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70281 10.7761)', 4326)),
(2203, 'el manantial', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71212 10.79928)', 4326)),
(2204, 'el mecocal', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76371 10.81574)', 4326)),
(2205, 'el planetario', NULL, NULL, 231206, ST_GeomFromText('Point (-71.6723 10.77109)', 4326)),
(2206, 'el quemao', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77286 10.79686)', 4326)),
(2207, 'el rosal', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68186 10.78967)', 4326)),
(2208, 'el rosario', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7247 10.80378)', 4326)),
(2209, 'el salvador', NULL, NULL, 231206, ST_GeomFromText('Point (-71.75079 10.76838)', 4326)),
(2210, 'el sipisipi', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76423 10.83438)', 4326)),
(2212, 'general francisco de miranda', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67931 10.78279)', 4326)),
(2213, 'guareira', '1', NULL, 231206, ST_GeomFromText('Point (-71.69106 10.77936)', 4326)),
(2214, 'guareira', '2', NULL, 231206, ST_GeomFromText('Point (-71.68379 10.77691)', 4326)),
(2215, 'jagueicito', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68191 10.78295)', 4326)),
(2216, 'kasanay', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71275 10.82226)', 4326)),
(2217, 'la abuelita', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69191 10.78905)', 4326)),
(2218, 'la chinca', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77699 10.80532)', 4326)),
(2219, 'la cieneguita', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77576 10.80188)', 4326)),
(2220, 'la cimarrona', NULL, NULL, 231206, ST_GeomFromText('Point (-71.73654 10.80331)', 4326)),
(2221, 'la cocuiza', NULL, NULL, 231206, ST_GeomFromText('Point (-71.78116 10.81166)', 4326)),
(2222, 'la dulcera', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68963 10.78401)', 4326)),
(2223, 'la gran curvita', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77103 10.80783)', 4326)),
(2224, 'la mocletona', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69216 10.7873)', 4326)),
(2225, 'la morena', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70583 10.779)', 4326)),
(2226, 'la parcela', '1', NULL, 231206, ST_GeomFromText('Point (-71.70526 10.80314)', 4326)),
(2227, 'la popular', NULL, NULL, 231206, ST_GeomFromText('Point (-71.78204 10.83042)', 4326)),
(2228, 'la primavera', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71117 10.79881)', 4326)),
(2229, 'la pringamosa', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71941 10.82423)', 4326)),
(2230, 'la repelona', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77795 10.83747)', 4326)),
(2231, 'la roxana', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70265 10.82364)', 4326)),
(2196, 'km 27', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76437 10.81897)', 4326)),
(2232, 'la union', NULL, NULL, 231206, ST_GeomFromText('Point (-71.73658 10.79771)', 4326)),
(2233, 'las cruces', NULL, NULL, 231206, ST_GeomFromText('Point (-71.74329 10.80508)', 4326)),
(2234, 'las mandocas', NULL, NULL, 231206, ST_GeomFromText('Point (-71.74732 10.80448)', 4326)),
(2235, 'las nuevas mandocas', NULL, NULL, 231206, ST_GeomFromText('Point (-71.74976 10.81228)', 4326)),
(2236, 'los angeles', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77905 10.80898)', 4326)),
(2237, 'los arenales', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68467 10.78074)', 4326)),
(2238, 'los ballestero', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70788 10.79509)', 4326)),
(2239, 'los coquitos', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69196 10.82838)', 4326)),
(2240, 'los mangos', NULL, NULL, 231206, ST_GeomFromText('Point (-71.78896 10.79952)', 4326)),
(2241, 'los membrillos', NULL, NULL, 231206, ST_GeomFromText('Point (-71.78023 10.77336)', 4326)),
(2242, 'los olivitos', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7038 10.78991)', 4326)),
(2243, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68757 10.78271)', 4326)),
(2244, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.79351 10.81326)', 4326)),
(2245, 'maisanta', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70003 10.80055)', 4326)),
(2246, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68667 10.79564)', 4326)),
(2247, '<NAME>', '2', NULL, 231206, ST_GeomFromText('Point (-71.68847 10.79659)', 4326)),
(2248, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69761 10.83474)', 4326)),
(2249, 'mindur', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68976 10.78892)', 4326)),
(2250, '<NAME>', '1', NULL, 231206, ST_GeomFromText('Point (-71.77061 10.80707)', 4326)),
(2251, '<NAME>', '2', NULL, 231206, ST_GeomFromText('Point (-71.77323 10.80879)', 4326)),
(2252, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.72611 10.7933)', 4326)),
(2253, '<NAME>', '2', NULL, 231206, ST_GeomFromText('Point (-71.7113 10.79425)', 4326)),
(2254, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71522 10.77268)', 4326)),
(2255, 'olivitos', '2', NULL, 231206, ST_GeomFromText('Point (-71.70317 10.78639)', 4326)),
(2256, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.73448 10.80782)', 4326)),
(2257, 'palo', '1', NULL, 231206, ST_GeomFromText('Point (-71.70708 10.83949)', 4326)),
(2258, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67996 10.7878)', 4326)),
(2259, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76162 10.79779)', 4326)),
(2260, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.76516 10.81479)', 4326)),
(2261, 'santa cruz de mara', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68479 10.79453)', 4326)),
(2262, 'santa fe', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70409 10.80739)', 4326)),
(2263, 'santa fe el caney', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69843 10.8115)', 4326)),
(2264, 'santa fe las playas', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68742 10.81253)', 4326)),
(2265, 'santa ines', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77143 10.83505)', 4326)),
(2266, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.75741 10.8057)', 4326)),
(2267, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7579 10.81412)', 4326)),
(2268, 'sol tropical', NULL, NULL, 231206, ST_GeomFromText('Point (-71.69547 10.79436)', 4326)),
(2269, 'santa fe', '2', NULL, 231206, ST_GeomFromText('Point (-71.68893 10.81686)', 4326)),
(2270, 'tamare<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.77599 10.80825)', 4326)),
(2271, 'tu y yo', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68123 10.78529)', 4326)),
(2272, '<NAME>', NULL, NULL, 231206, ST_GeomFromText('Point (-71.70169 10.78526)', 4326)),
(2273, 'villa guajira', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67233 10.78219)', 4326)),
(2274, 'villa magistral mara', '1', NULL, 231206, ST_GeomFromText('Point (-71.75553 10.81186)', 4326)),
(2275, 'villa magistral mara', '2', NULL, 231206, ST_GeomFromText('Point (-71.75288 10.81362)', 4326)),
(2276, 'villa nueva', NULL, NULL, 231206, ST_GeomFromText('Point (-71.6942 10.77633)', 4326)),
(2277, 'villa palermo', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68329 10.79183)', 4326)),
(2278, 'villa ricaurte', NULL, NULL, 231206, ST_GeomFromText('Point (-71.67893 10.78934)', 4326)),
(2279, 'vista al lago', NULL, NULL, 231206, ST_GeomFromText('Point (-71.6719 10.77931)', 4326)),
(2280, 'viviendas rurales', NULL, NULL, 231206, ST_GeomFromText('Point (-71.68572 10.78807)', 4326)),
(2281, 'el encanto', '1', NULL, 231207, ST_GeomFromText('Point (-71.77955 10.85739)', 4326)),
(2282, 'los locos el oasis', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76788 10.87537)', 4326)),
(2283, 'tamare viviendas', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76772 10.86113)', 4326)),
(2284, 'villa tamare', NULL, NULL, 231207, ST_GeomFromText('Point (-71.77577 10.842)', 4326)),
(2285, 'las mandoquitas', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76552 10.84951)', 4326)),
(2286, 'el 30', NULL, NULL, 231207, ST_GeomFromText('Point (-71.77158 10.8516)', 4326)),
(2287, 'el oasis', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76453 10.87175)', 4326)),
(2288, 'palo', '2', NULL, 231207, ST_GeomFromText('Point (-71.71711 10.85689)', 4326)),
(2289, '<NAME>', NULL, NULL, 231207, ST_GeomFromText('Point (-71.72988 10.8481)', 4326)),
(2290, 'los lechosos', '1', NULL, 231207, ST_GeomFromText('Point (-71.7518 10.85154)', 4326)),
(2291, 'lechosos', '2', NULL, 231207, ST_GeomFromText('Point (-71.76219 10.8611)', 4326)),
(2292, 'el crucero', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76228 10.86368)', 4326)),
(2293, 'camuro', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76668 10.84635)', 4326)),
(2294, '<NAME>', NULL, NULL, 231207, ST_GeomFromText('Point (-71.76762 10.86612)', 4326)),
(2295, '<NAME>', NULL, NULL, 231501, ST_GeomFromText('Point (-71.90095 11.07135)', 4326)),
(2296, '<NAME>', NULL, NULL, 231501, ST_GeomFromText('Point (-71.91736 11.1702)', 4326)),
(2297, 'matapalo', NULL, NULL, 231501, ST_GeomFromText('Point (-71.89307 11.15625)', 4326)),
(2298, 'nuevo mundo', NULL, NULL, 231501, ST_GeomFromText('Point (-71.86455 11.05164)', 4326)),
(2299, 'puertecitos', NULL, NULL, 231501, ST_GeomFromText('Point (-71.79687 11.08582)', 4326)),
(2300, 'puerto cuevito', NULL, NULL, 231501, ST_GeomFromText('Point (-71.89062 11.06599)', 4326)),
(2301, 'puerto guerrero', NULL, NULL, 231501, ST_GeomFromText('Point (-71.79267 11.01048)', 4326)),
(2302, 'santa teresa', NULL, NULL, 231501, ST_GeomFromText('Point (-71.87979 11.16479)', 4326)),
(2303, 'sinamaica', NULL, NULL, 231501, ST_GeomFromText('Point (-71.85397 11.08123)', 4326)),
(2304, 'el tamaral', NULL, NULL, 231503, ST_GeomFromText('Point (-72.03316 11.12658)', 4326)),
(2305, 'el tastus', NULL, NULL, 231503, ST_GeomFromText('Point (-72.08308 11.09805)', 4326)),
(2306, 'el trancador', NULL, NULL, 231503, ST_GeomFromText('Point (-72.02076 11.10905)', 4326)),
(2307, 'el tribunal', NULL, NULL, 231503, ST_GeomFromText('Point (-72.01788 11.13218)', 4326)),
(2308, 'guayacanal', NULL, NULL, 231503, ST_GeomFromText('Point (-72.08923 11.11124)', 4326)),
(2309, '<NAME>', NULL, NULL, 231503, ST_GeomFromText('Point (-72.01003 11.1454)', 4326)),
(2310, 'km 7', NULL, NULL, 231503, ST_GeomFromText('Point (-72.03384 11.11147)', 4326)),
(2311, 'la cebolla', NULL, NULL, 231503, ST_GeomFromText('Point (-72.21114 11.06792)', 4326)),
(2312, 'la meseta', NULL, NULL, 231503, ST_GeomFromText('Point (-72.35805 11.13887)', 4326)),
(2313, 'la orchila', NULL, NULL, 231503, ST_GeomFromText('Point (-72.00925 11.06117)', 4326)),
(2314, 'las guasduitas', NULL, NULL, 231503, ST_GeomFromText('Point (-72.02164 11.07783)', 4326)),
(2315, 'las piedras', NULL, NULL, 231503, ST_GeomFromText('Point (-72.03189 11.05572)', 4326)),
(2316, 'las veritas', NULL, NULL, 231503, ST_GeomFromText('Point (-71.97855 11.14844)', 4326)),
(2317, 'los aceitunos', NULL, NULL, 231503, ST_GeomFromText('Point (-72.06361 11.09433)', 4326)),
(2318, 'los cojoreños', NULL, NULL, 231503, ST_GeomFromText('Point (-72.07356 11.06727)', 4326)),
(2319, 'los paraujanos', NULL, NULL, 231503, ST_GeomFromText('Point (-72.04417 11.05381)', 4326)),
(2320, 'puerto rosas', NULL, NULL, 231503, ST_GeomFromText('Point (-72.11545 11.08718)', 4326)),
(2321, 'sierra el indio', NULL, NULL, 231503, ST_GeomFromText('Point (-72.22984 11.1364)', 4326)),
(2322, 'uruamana', NULL, NULL, 231503, ST_GeomFromText('Point (-72.14351 11.12762)', 4326)),
(2323, 'yauruna', NULL, NULL, 231504, ST_GeomFromText('Point (-72.02202 11.27942)', 4326)),
(2324, 'yosipa', NULL, NULL, 231504, ST_GeomFromText('Point (-72.00685 11.32892)', 4326)),
(2325, '10 de febrero', NULL, 6, 230303, ST_GeomFromText('Point (-71.44648 10.42335)', 4326)),
(2326, '<NAME>', NULL, 6, 230304, ST_GeomFromText('Point (-71.43813 10.36377)', 4326)),
(2328, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.42418 10.38053)', 4326)),
(2329, 'punto fijo', '1', 6, 230306, ST_GeomFromText('Point (-71.42169 10.39551)', 4326)),
(2330, 'guabina', NULL, 6, 230302, ST_GeomFromText('Point (-71.45826 10.39733)', 4326)),
(2331, '<NAME>', NULL, 6, 230302, ST_GeomFromText('Point (-71.46555 10.39469)', 4326)),
(2332, 'ambrosio', NULL, 6, 230301, ST_GeomFromText('Point (-71.4728 10.40214)', 4326)),
(2333, 'concordia', NULL, 8, 230302, ST_GeomFromText('Point (-71.45186 10.39238)', 4326)),
(2334, 'miraflores', NULL, 8, 230302, ST_GeomFromText('Point (-71.45782 10.39174)', 4326)),
(2335, '<NAME>', NULL, 6, 230309, ST_GeomFromText('Point (-71.4126 10.33897)', 4326)),
(2336, 'amparito', NULL, 6, 230301, ST_GeomFromText('Point (-71.46528 10.42197)', 4326)),
(2337, 'buena vista', NULL, 8, 230302, ST_GeomFromText('Point (-71.4604 10.38747)', 4326)),
(2338, '12 de octubre', NULL, 6, 230303, ST_GeomFromText('Point (-71.45299 10.41682)', 4326)),
(2339, 'corito', NULL, 6, 230305, ST_GeomFromText('Point (-71.43363 10.36808)', 4326)),
(2340, 'democracia', NULL, 6, 230305, ST_GeomFromText('Point (-71.42862 10.38639)', 4326)),
(2341, '<NAME>', NULL, 6, 230304, ST_GeomFromText('Point (-71.43157 10.35964)', 4326)),
(2342, 'el carmen', NULL, 6, 230305, ST_GeomFromText('Point (-71.43355 10.38213)', 4326)),
(2343, 'el lucero', NULL, 6, 230305, ST_GeomFromText('Point (-71.42015 10.36427)', 4326)),
(2344, 'el porvenir', NULL, 6, 230305, ST_GeomFromText('Point (-71.41904 10.35499)', 4326)),
(2345, '<NAME>', NULL, 6, 230304, ST_GeomFromText('Point (-71.44431 10.37236)', 4326)),
(2346, 'gasplant', NULL, 6, 230304, ST_GeomFromText('Point (-71.43747 10.37348)', 4326)),
(2347, 'inos', NULL, 6, 230305, ST_GeomFromText('Point (-71.42036 10.34997)', 4326)),
(2348, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.42463 10.3581)', 4326)),
(2349, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.42084 10.3795)', 4326)),
(2350, 'churuguara', NULL, 8, 230304, ST_GeomFromText('Point (-71.43849 10.37875)', 4326)),
(2351, '<NAME>', NULL, 6, 230304, ST_GeomFromText('Point (-71.43723 10.38115)', 4326)),
(2352, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.42387 10.38354)', 4326)),
(2353, 'libertador', NULL, 6, 230305, ST_GeomFromText('Point (-71.43126 10.37677)', 4326)),
(2354, 'monte claro', NULL, 6, 230305, ST_GeomFromText('Point (-71.42604 10.37161)', 4326)),
(2355, 'negro primero', NULL, 6, 230305, ST_GeomFromText('Point (-71.41757 10.35638)', 4326)),
(2356, 'nuevo', NULL, 6, 230305, ST_GeomFromText('Point (-71.42415 10.3884)', 4326)),
(2357, 'nuevo mundo', NULL, 6, 230305, ST_GeomFromText('Point (-71.41828 10.37809)', 4326)),
(2358, 'postes negros', NULL, 6, 230305, ST_GeomFromText('Point (-71.4274 10.36839)', 4326)),
(2359, 'punto fijo', '2', 6, 230305, ST_GeomFromText('Point (-71.42085 10.39022)', 4326)),
(2360, 'r10', NULL, 6, 230305, ST_GeomFromText('Point (-71.43149 10.36299)', 4326)),
(2361, 'los nisperos', NULL, 6, 230306, ST_GeomFromText('Point (-71.42444 10.39159)', 4326)),
(2362, 'las acacias', NULL, 8, 230306, ST_GeomFromText('Point (-71.41775 10.40079)', 4326)),
(2363, 'san jose', '2', 6, 230306, ST_GeomFromText('Point (-71.41791 10.40275)', 4326)),
(2364, '<NAME>', '2', 6, 230306, ST_GeomFromText('Point (-71.42417 10.40256)', 4326)),
(2365, '<NAME>', NULL, 6, 230307, ST_GeomFromText('Point (-71.44599 10.40037)', 4326)),
(2366, 'el milagro', NULL, 6, 230307, ST_GeomFromText('Point (-71.42176 10.41869)', 4326)),
(2367, 'federacion', '2', 6, 230307, ST_GeomFromText('Point (-71.42442 10.41555)', 4326)),
(2368, 'h5', NULL, 6, 230307, ST_GeomFromText('Point (-71.41884 10.41775)', 4326)),
(2369, '<NAME>', NULL, 6, 230307, ST_GeomFromText('Point (-71.43531 10.39799)', 4326)),
(2370, '<NAME>', '1', 6, 230307, ST_GeomFromText('Point (-71.42137 10.41094)', 4326)),
(2371, '<NAME>', '1', 6, 230307, ST_GeomFromText('Point (-71.42495 10.40721)', 4326)),
(2372, '19 de abril', NULL, 6, 230303, ST_GeomFromText('Point (-71.44423 10.4118)', 4326)),
(2373, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.44777 10.40876)', 4326)),
(2374, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.45592 10.4321)', 4326)),
(2375, 'federacion', '1', 6, 230303, ST_GeomFromText('Point (-71.43024 10.42344)', 4326)),
(2376, 'getsemani', NULL, 6, 230303, ST_GeomFromText('Point (-71.42904 10.42746)', 4326)),
(2377, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.4449 10.42101)', 4326)),
(2378, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.44993 10.42144)', 4326)),
(2379, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.43803 10.41361)', 4326)),
(2380, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.46254 10.42939)', 4326)),
(2381, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.44708 10.41717)', 4326)),
(2382, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.43629 10.4325)', 4326)),
(2383, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.44636 10.41529)', 4326)),
(2384, '<NAME>', NULL, 6, 230303, ST_GeomFromText('Point (-71.43677 10.42259)', 4326)),
(2385, '<NAME>', NULL, 6, 230301, ST_GeomFromText('Point (-71.46081 10.40697)', 4326)),
(2386, 'sucre', '1', 6, 230303, ST_GeomFromText('Point (-71.4419 10.41417)', 4326)),
(2387, '<NAME>', NULL, 6, 230301, ST_GeomFromText('Point (-71.46563 10.41359)', 4326)),
(2388, '<NAME>', NULL, 6, 230301, ST_GeomFromText('Point (-71.46209 10.42642)', 4326)),
(2389, 'la estrella', NULL, 6, 230301, ST_GeomFromText('Point (-71.45975 10.4169)', 4326)),
(2390, 'la mision', NULL, 6, 230301, ST_GeomFromText('Point (-71.46648 10.42724)', 4326)),
(2391, 'las malvinas', NULL, 6, 230301, ST_GeomFromText('Point (-71.46741 10.42563)', 4326)),
(2392, 'sucre', '2', 6, 230303, ST_GeomFromText('Point (-71.44061 10.42061)', 4326)),
(2393, 'union bello monte', NULL, 6, 230303, ST_GeomFromText('Point (-71.45629 10.42219)', 4326)),
(2394, 'valle encantado', '2', 6, 230307, ST_GeomFromText('Point (-71.42487 10.40669)', 4326)),
(2395, 'cabimas', NULL, NULL, 230307, ST_GeomFromText('Point (-71.44283 10.39745)', 4326)),
(2396, 'km 22', NULL, NULL, 230307, ST_GeomFromText('Point (-71.2984 10.4506)', 4326)),
(2397, 'la candelaria', NULL, NULL, 230307, ST_GeomFromText('Point (-71.38949 10.4356)', 4326)),
(2398, 'ciudad sucre', NULL, 8, 230303, ST_GeomFromText('Point (-71.43297 10.42784)', 4326)),
(2399, 'los laureles', NULL, 8, 230303, ST_GeomFromText('Point (-71.43524 10.4176)', 4326)),
(2400, '<NAME>', NULL, 8, 230303, ST_GeomFromText('Point (-71.4322 10.42952)', 4326)),
(2401, 'la vuelta', NULL, NULL, 230307, ST_GeomFromText('Point (-71.37079 10.41855)', 4326)),
(2402, 'union h', NULL, 6, 230302, ST_GeomFromText('Point (-71.44855 10.40349)', 4326)),
(2403, 'sarria', NULL, NULL, 230307, ST_GeomFromText('Point (-71.32137 10.42007)', 4326)),
(2404, '<NAME>', NULL, 8, 230307, ST_GeomFromText('Point (-71.42619 10.40918)', 4326)),
(2405, '<NAME>', NULL, 8, 230306, ST_GeomFromText('Point (-71.43185 10.39367)', 4326)),
(2406, '<NAME>', NULL, 6, 230306, ST_GeomFromText('Point (-71.43737 10.38862)', 4326)),
(2407, 'las cabillas', NULL, 6, 230304, ST_GeomFromText('Point (-71.44366 10.38781)', 4326)),
(2408, 'holliwood', NULL, 8, 230304, ST_GeomFromText('Point (-71.44853 10.38492)', 4326)),
(2409, 'las cupulas', NULL, 8, 230304, ST_GeomFromText('Point (-71.44863 10.37876)', 4326)),
(2410, '<NAME>', NULL, 8, 230304, ST_GeomFromText('Point (-71.44978 10.3806)', 4326)),
(2411, 'la vereda', NULL, 6, 230302, ST_GeomFromText('Point (-71.45912 10.38544)', 4326)),
(2412, 'las palmas', NULL, 8, 230302, ST_GeomFromText('Point (-71.46348 10.3855)', 4326)),
(2413, 'junin', NULL, 8, 230302, ST_GeomFromText('Point (-71.45324 10.38986)', 4326)),
(2414, 'carabobo', NULL, 8, 230302, ST_GeomFromText('Point (-71.45435 10.38908)', 4326)),
(2415, 'el campito', NULL, 8, 230302, ST_GeomFromText('Point (-71.46016 10.39138)', 4326)),
(2416, 'el dividive', NULL, 6, 230302, ST_GeomFromText('Point (-71.44549 10.39469)', 4326)),
(2417, 'los medanos', NULL, 8, 230306, ST_GeomFromText('Point (-71.43789 10.3957)', 4326)),
(2418, '<NAME>', NULL, NULL, 230307, ST_GeomFromText('Point (-71.41474 10.41999)', 4326)),
(2419, 'cumarebo', NULL, 6, 230306, ST_GeomFromText('Point (-71.42947 10.39969)', 4326)),
(2420, '<NAME>', NULL, 6, 230302, ST_GeomFromText('Point (-71.45353 10.40077)', 4326)),
(2421, 'miramar', NULL, 6, 230301, ST_GeomFromText('Point (-71.46691 10.42228)', 4326)),
(2422, 'obrero', NULL, 6, 230301, ST_GeomFromText('Point (-71.46429 10.39857)', 4326)),
(2423, '<NAME>', NULL, 6, 230301, ST_GeomFromText('Point (-71.466 10.42429)', 4326)),
(2424, 'union ambrosio', NULL, 6, 230301, ST_GeomFromText('Point (-71.46969 10.40863)', 4326)),
(2425, 'amparo', NULL, 8, 230301, ST_GeomFromText('Point (-71.46586 10.41882)', 4326)),
(2426, 'el solito', NULL, 8, 230302, ST_GeomFromText('Point (-71.45906 10.39702)', 4326)),
(2427, 'la rosa', NULL, 8, 230301, ST_GeomFromText('Point (-71.47164 10.3964)', 4326)),
(2428, 'las 40', NULL, 8, 230301, ST_GeomFromText('Point (-71.4667 10.40021)', 4326)),
(2429, 'las 50', NULL, 8, 230301, ST_GeomFromText('Point (-71.4693 10.4033)', 4326)),
(2430, 'r5', NULL, 6, 230305, ST_GeomFromText('Point (-71.42734 10.35243)', 4326)),
(2431, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.42009 10.38227)', 4326)),
(2432, 'san vicente', NULL, 6, 230305, ST_GeomFromText('Point (-71.41747 10.36619)', 4326)),
(2433, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.4349 10.3734)', 4326)),
(2434, '<NAME>', NULL, 6, 230305, ST_GeomFromText('Point (-71.43482 10.37797)', 4326)),
(2435, 'pedregalito', NULL, NULL, 230305, ST_GeomFromText('Point (-71.39974 10.36442)', 4326)),
(2436, '2 de mayo', NULL, 6, 230306, ST_GeomFromText('Point (-71.42765 10.39014)', 4326)),
(2437, 'las parcelitas', NULL, 6, 230306, ST_GeomFromText('Point (-71.42145 10.39827)', 4326)),
(2438, 'punto fijo', NULL, 8, 230306, ST_GeomFromText('Point (-71.41972 10.40246)', 4326)),
(2439, 'plaza lago', NULL, 8, 230303, ST_GeomFromText('Point (-71.43089 10.42847)', 4326)),
(2440, '<NAME>', NULL, 8, 230302, ST_GeomFromText('Point (-71.45174 10.38778)', 4326)),
(2441, 'boyaca', NULL, 8, 230302, ST_GeomFromText('Point (-71.45351 10.39307)', 4326)),
(2442, 'america', NULL, 8, 230302, ST_GeomFromText('Point (-71.44862 10.39523)', 4326)),
(2444, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79523 10.60502)', 4326)),
(2445, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.80458 10.60592)', 4326)),
(2446, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.85516 10.6244)', 4326)),
(2447, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.8293 10.61291)', 4326)),
(2448, 'alegre', NULL, 6, 230701, ST_GeomFromText('Point (-71.81659 10.60939)', 4326)),
(2449, 'boscan', NULL, NULL, 230701, ST_GeomFromText('Point (-71.85321 10.61104)', 4326)),
(2450, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83922 10.62622)', 4326)),
(2451, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83099 10.62429)', 4326)),
(2452, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83373 10.6176)', 4326)),
(2453, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83619 10.62132)', 4326)),
(2454, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82761 10.61631)', 4326)),
(2455, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83735 10.61735)', 4326)),
(2456, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79991 10.62968)', 4326)),
(2457, 'corea', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84276 10.62191)', 4326)),
(2458, 'curva de telleria', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84508 10.62053)', 4326)),
(2459, 'curva matadero', NULL, NULL, 230701, ST_GeomFromText('Point (-71.85065 10.61594)', 4326)),
(2460, 'el golfito', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82255 10.61292)', 4326)),
(2461, 'el guayabo', NULL, NULL, 230701, ST_GeomFromText('Point (-71.85508 10.61783)', 4326)),
(2462, 'el molino', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79713 10.6306)', 4326)),
(2463, 'el paraiso', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81242 10.62377)', 4326)),
(2464, 'el torito', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79223 10.64119)', 4326)),
(2465, 'el totumo', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82172 10.60846)', 4326)),
(2466, 'el totumo', '2', NULL, 230701, ST_GeomFromText('Point (-71.82515 10.60542)', 4326)),
(2467, 'el valle', NULL, NULL, 230701, ST_GeomFromText('Point (-71.80148 10.63667)', 4326)),
(2468, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83072 10.6378)', 4326)),
(2469, 'jagueycito', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81147 10.63669)', 4326)),
(2470, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82807 10.61014)', 4326)),
(2471, 'la concepcion', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83954 10.62886)', 4326)),
(2472, 'la marina', NULL, NULL, 230701, ST_GeomFromText('Point (-71.80212 10.6273)', 4326)),
(2473, 'la matica', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84899 10.61354)', 4326)),
(2474, 'la planta', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83806 10.63756)', 4326)),
(2475, 'la pringamosa', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84868 10.62364)', 4326)),
(2476, 'la pringamosa', '1', NULL, 230701, ST_GeomFromText('Point (-71.8416 10.63314)', 4326)),
(2477, 'las amalias', NULL, NULL, 230701, ST_GeomFromText('Point (-71.80475 10.62613)', 4326)),
(2478, 'las cabrias', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81029 10.61464)', 4326)),
(2479, 'las negritas', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83336 10.63514)', 4326)),
(2480, 'las pollitas', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82859 10.63422)', 4326)),
(2481, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83815 10.60588)', 4326)),
(2482, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.8413 10.61207)', 4326)),
(2483, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.85866 10.62333)', 4326)),
(2484, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83192 10.6281)', 4326)),
(2485, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84101 10.61885)', 4326)),
(2486, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82712 10.62645)', 4326)),
(2487, 'maraven', NULL, NULL, 230701, ST_GeomFromText('Point (-71.83127 10.6199)', 4326)),
(2488, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79983 10.61478)', 4326)),
(2489, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84728 10.61625)', 4326)),
(2490, 'nazareno', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84517 10.6303)', 4326)),
(2491, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.8045 10.61313)', 4326)),
(2492, 'paraguachon', NULL, NULL, 230701, ST_GeomFromText('Point (-71.79315 10.62443)', 4326)),
(2493, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.8363 10.6319)', 4326)),
(2494, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.84715 10.61902)', 4326)),
(2495, '<NAME> los altos', NULL, NULL, 230701, ST_GeomFromText('Point (-71.82135 10.62904)', 4326)),
(2496, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.8059 10.63178)', 4326)),
(2497, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81973 10.61252)', 4326)),
(2498, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81535 10.61426)', 4326)),
(2499, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81775 10.60577)', 4326)),
(2500, 'zona nueva', '1', NULL, 230701, ST_GeomFromText('Point (-71.81518 10.63031)', 4326)),
(2501, 'zona nueva', '2', NULL, 230701, ST_GeomFromText('Point (-71.81022 10.63021)', 4326)),
(2502, '<NAME>', NULL, NULL, 230904, ST_GeomFromText('Point (-71.72556 10.38996)', 4326)),
(2503, 'cal<NAME>', NULL, 7, 230903, ST_GeomFromText('Point (-71.65404 10.44002)', 4326)),
(2504, 'la cruz', NULL, 7, 230903, ST_GeomFromText('Point (-71.65419 10.43724)', 4326)),
(2505, 'la ensenada', NULL, 7, 230903, ST_GeomFromText('Point (-71.6492 10.43881)', 4326)),
(2506, 'la invasion', NULL, 7, 230903, ST_GeomFromText('Point (-71.65679 10.44105)', 4326)),
(2507, 'la montañita', NULL, 7, 230903, ST_GeomFromText('Point (-71.6643 10.44432)', 4326)),
(2508, 'la silvera', NULL, 7, 230903, ST_GeomFromText('Point (-71.64347 10.44561)', 4326)),
(2509, 'las piedritas', NULL, 7, 230903, ST_GeomFromText('Point (-71.64805 10.44853)', 4326)),
(2510, 'santa lucia', NULL, 7, 230903, ST_GeomFromText('Point (-71.65595 10.44574)', 4326)),
(2511, '<NAME>', NULL, 7, 230903, ST_GeomFromText('Point (-71.65363 10.44878)', 4326)),
(2512, 'araguaney', NULL, 7, 230901, ST_GeomFromText('Point (-71.70537 10.42293)', 4326)),
(2513, 'anizacion nuevo palmarejo', NULL, 8, 230903, ST_GeomFromText('Point (-71.65068 10.44422)', 4326)),
(2514, 'bella vista', NULL, 7, 230901, ST_GeomFromText('Point (-71.69381 10.41266)', 4326)),
(2515, 'divino niño', NULL, 7, 230901, ST_GeomFromText('Point (-71.67258 10.43014)', 4326)),
(2516, 'el chaparral', NULL, 7, 230901, ST_GeomFromText('Point (-71.70221 10.40324)', 4326)),
(2517, 'el cujizal', NULL, 7, 230901, ST_GeomFromText('Point (-71.67757 10.43147)', 4326)),
(2518, 'el potrero', NULL, 7, 230901, ST_GeomFromText('Point (-71.65705 10.43553)', 4326)),
(2519, 'el rosado', NULL, 7, 230901, ST_GeomFromText('Point (-71.6891 10.41079)', 4326)),
(2520, 'el semeruco', NULL, 7, 230901, ST_GeomFromText('Point (-71.7111 10.39705)', 4326)),
(2521, 'el taparo', NULL, 7, 230901, ST_GeomFromText('Point (-71.7183 10.39514)', 4326)),
(2522, 'el topito', NULL, 7, 230901, ST_GeomFromText('Point (-71.70236 10.41571)', 4326)),
(2523, 'el venado', NULL, 7, 230901, ST_GeomFromText('Point (-71.69389 10.41627)', 4326)),
(2524, 'el zabilar', NULL, 7, 230901, ST_GeomFromText('Point (-71.70459 10.39947)', 4326)),
(2525, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.69722 10.41061)', 4326)),
(2526, 'jovito', NULL, 7, 230901, ST_GeomFromText('Point (-71.70829 10.42573)', 4326)),
(2527, 'la esperanza', NULL, 7, 230901, ST_GeomFromText('Point (-71.699 10.4123)', 4326)),
(2528, 'la fundicion', NULL, 7, 230901, ST_GeomFromText('Point (-71.70776 10.41483)', 4326)),
(2529, 'la goajira', NULL, 7, 230901, ST_GeomFromText('Point (-71.66969 10.42832)', 4326)),
(2530, 'la plaza', NULL, 7, 230901, ST_GeomFromText('Point (-71.67633 10.4259)', 4326)),
(2531, 'la victoria', NULL, 7, 230901, ST_GeomFromText('Point (-71.71673 10.39687)', 4326)),
(2532, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.68205 10.41871)', 4326)),
(2533, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.69797 10.41636)', 4326)),
(2534, 'matatigre', NULL, 7, 230901, ST_GeomFromText('Point (-71.70458 10.40811)', 4326)),
(2535, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.70774 10.40352)', 4326)),
(2536, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.70664 10.40091)', 4326)),
(2537, '<NAME>', NULL, 7, 230901, ST_GeomFromText('Point (-71.6861 10.42366)', 4326)),
(2538, 'parral del norte', NULL, 7, 230901, ST_GeomFromText('Point (-71.66469 10.43265)', 4326)),
(2539, 'parral del sur', NULL, 7, 230901, ST_GeomFromText('Point (-71.69777 10.40401)', 4326)),
(2540, 'paujilito', NULL, 7, 230901, ST_GeomFromText('Point (-71.68216 10.42573)', 4326)),
(2541, 'santa rita', NULL, 7, 230901, ST_GeomFromText('Point (-71.68686 10.41712)', 4326)),
(2542, 'santa rita de casia', NULL, 7, 230901, ST_GeomFromText('Point (-71.67495 10.43197)', 4326)),
(2543, 'villa camelia', NULL, 7, 230901, ST_GeomFromText('Point (-71.67163 10.43279)', 4326)),
(2544, '16 de julio', NULL, 7, 230904, ST_GeomFromText('Point (-71.73285 10.38335)', 4326)),
(2545, 'brisas del lago', NULL, 7, 230904, ST_GeomFromText('Point (-71.71375 10.39146)', 4326)),
(2546, '<NAME>', NULL, 7, 230904, ST_GeomFromText('Point (-71.75264 10.37876)', 4326)),
(2547, 'el centro', NULL, 7, 230904, ST_GeomFromText('Point (-71.76141 10.35678)', 4326)),
(2548, 'el estadio', NULL, 7, 230904, ST_GeomFromText('Point (-71.72612 10.3926)', 4326)),
(2549, 'el montecito', NULL, 7, 230904, ST_GeomFromText('Point (-71.73788 10.38271)', 4326)),
(2550, 'el real', NULL, 7, 230904, ST_GeomFromText('Point (-71.75115 10.36593)', 4326)),
(2551, 'la frontera', NULL, 7, 230904, ST_GeomFromText('Point (-71.72 10.38872)', 4326)),
(2552, 'la puntica', NULL, 7, 230904, ST_GeomFromText('Point (-71.74449 10.37309)', 4326)),
(2553, 'las casitas', NULL, 7, 230904, ST_GeomFromText('Point (-71.7632 10.35974)', 4326)),
(2554, 'las parchitas', NULL, 7, 230904, ST_GeomFromText('Point (-71.72943 10.39159)', 4326)),
(2555, 'los cachimbos', NULL, 7, 230904, ST_GeomFromText('Point (-71.7627 10.36292)', 4326)),
(2556, 'los cachimbos', '2', 7, 230904, ST_GeomFromText('Point (-71.7654 10.36109)', 4326)),
(2557, 'los claveles', NULL, 7, 230904, ST_GeomFromText('Point (-71.73575 10.39044)', 4326)),
(2558, 'san antonio', NULL, 7, 230904, ST_GeomFromText('Point (-71.73431 10.3884)', 4326)),
(2559, 'san benito', NULL, 7, 230904, ST_GeomFromText('Point (-71.76568 10.3582)', 4326)),
(2560, 'san ignacio de loyola', NULL, 7, 230904, ST_GeomFromText('Point (-71.7509 10.37534)', 4326)),
(2561, '<NAME>', NULL, 7, 230905, ST_GeomFromText('Point (-71.76455 10.35319)', 4326)),
(2562, 'la curva', NULL, 7, 230905, ST_GeomFromText('Point (-71.76636 10.35142)', 4326)),
(2563, 'yaguaza', NULL, 7, 230901, ST_GeomFromText('Point (-71.69012 10.4196)', 4326)),
(2564, 'anizacion la trinidad', NULL, 8, 230901, ST_GeomFromText('Point (-71.71242 10.40609)', 4326)),
(2565, '<NAME>', NULL, NULL, 231601, ST_GeomFromText('Point (-72.32618 10.33649)', 4326)),
(2566, 'hatico', NULL, NULL, 231601, ST_GeomFromText('Point (-72.35337 10.31581)', 4326)),
(2567, '<NAME>', NULL, NULL, 231601, ST_GeomFromText('Point (-72.30348 10.31903)', 4326)),
(2568, 'la curva', NULL, NULL, 231601, ST_GeomFromText('Point (-72.30523 10.34847)', 4326)),
(2569, 'la villa del rosario', NULL, NULL, 231601, ST_GeomFromText('Point (-72.31469 10.32247)', 4326)),
(2570, 'las palmitas', NULL, NULL, 231601, ST_GeomFromText('Point (-72.38372 10.27399)', 4326)),
(2571, 'los haticos', NULL, NULL, 231601, ST_GeomFromText('Point (-72.34188 10.31962)', 4326)),
(2572, 'los puentecitos', NULL, NULL, 231601, ST_GeomFromText('Point (-72.36418 10.31449)', 4326)),
(2573, '<NAME>', NULL, NULL, 231601, ST_GeomFromText('Point (-72.36347 10.2809)', 4326)),
(2574, '<NAME>', '2', NULL, 231601, ST_GeomFromText('Point (-72.34391 10.29959)', 4326)),
(2575, '2 de febrero', NULL, 7, 231601, ST_GeomFromText('Point (-72.31815 10.30833)', 4326)),
(2576, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.32059 10.32113)', 4326)),
(2577, 'amparo', NULL, 7, 231601, ST_GeomFromText('Point (-72.32782 10.32431)', 4326)),
(2578, 'aurora', NULL, 7, 231601, ST_GeomFromText('Point (-72.3097 10.33138)', 4326)),
(2579, 'corito', NULL, 7, 231601, ST_GeomFromText('Point (-72.32461 10.33193)', 4326)),
(2580, 'delicias', NULL, 7, 231601, ST_GeomFromText('Point (-72.30362 10.32319)', 4326)),
(2581, 'el carmen', NULL, 7, 231601, ST_GeomFromText('Point (-72.3455 10.30875)', 4326)),
(2582, 'el centro', NULL, 7, 231601, ST_GeomFromText('Point (-72.31954 10.3242)', 4326)),
(2583, 'el delirio', NULL, 7, 231601, ST_GeomFromText('Point (-72.3122 10.31505)', 4326)),
(2584, 'el recreo', NULL, 7, 231601, ST_GeomFromText('Point (-72.32174 10.3143)', 4326)),
(2585, 'el valle', NULL, 7, 231601, ST_GeomFromText('Point (-72.32602 10.31679)', 4326)),
(2586, 'ilapeca', NULL, 7, 231601, ST_GeomFromText('Point (-72.30788 10.31688)', 4326)),
(2587, 'jalisco', NULL, 7, 231601, ST_GeomFromText('Point (-72.33928 10.31316)', 4326)),
(2588, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.33906 10.30759)', 4326)),
(2589, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.31107 10.32157)', 4326)),
(2590, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.33074 10.31775)', 4326)),
(2591, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.29758 10.33213)', 4326)),
(2592, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.3104 10.33854)', 4326)),
(2593, 'noriega trigo', '1', 7, 231601, ST_GeomFromText('Point (-72.33847 10.32823)', 4326)),
(2594, 'noriega trigo', '2', 7, 231601, ST_GeomFromText('Point (-72.34452 10.31659)', 4326)),
(2595, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.3083 10.33737)', 4326)),
(2596, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.31722 10.32948)', 4326)),
(2597, '<NAME>', NULL, 7, 231601, ST_GeomFromText('Point (-72.31561 10.32085)', 4326)),
(2598, 'trujillo', NULL, 7, 231601, ST_GeomFromText('Point (-72.30321 10.32983)', 4326)),
(2599, 'venezuela', NULL, 7, 231601, ST_GeomFromText('Point (-72.31645 10.33465)', 4326)),
(2600, 'aurora', NULL, 8, 231601, ST_GeomFromText('Point (-72.30557 10.33422)', 4326)),
(2601, '<NAME>', NULL, 8, 231601, ST_GeomFromText('Point (-72.3165 10.3389)', 4326)),
(2602, 'el valle', NULL, 8, 231601, ST_GeomFromText('Point (-72.32355 10.32382)', 4326)),
(2603, '<NAME>', NULL, 8, 231601, ST_GeomFromText('Point (-72.31245 10.33229)', 4326)),
(2604, '<NAME>', NULL, 8, 231601, ST_GeomFromText('Point (-72.29899 10.32559)', 4326)),
(2605, '<NAME>', NULL, 8, 231601, ST_GeomFromText('Point (-72.31786 10.33426)', 4326)),
(2606, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.29992 10.20172)', 4326)),
(2607, 'boyaca', NULL, 6, 231001, ST_GeomFromText('Point (-71.3021 10.21576)', 4326)),
(2608, '<NAME>', '1', 6, 231001, ST_GeomFromText('Point (-71.31638 10.20491)', 4326)),
(2609, '<NAME>', '2', 6, 231001, ST_GeomFromText('Point (-71.31302 10.20563)', 4326)),
(2610, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.30841 10.21144)', 4326)),
(2611, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.32704 10.20148)', 4326)),
(2612, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.27237 10.18543)', 4326)),
(2613, 'el milagro', NULL, 6, 231001, ST_GeomFromText('Point (-71.29485 10.21483)', 4326)),
(2614, 'el paraute', NULL, 6, 231001, ST_GeomFromText('Point (-71.29083 10.19007)', 4326)),
(2615, 'el porvenir', NULL, 6, 231001, ST_GeomFromText('Point (-71.3063 10.20075)', 4326)),
(2616, 'el progreso', NULL, 6, 231001, ST_GeomFromText('Point (-71.30214 10.2078)', 4326)),
(2617, 'falcon', NULL, 6, 231001, ST_GeomFromText('Point (-71.29267 10.20168)', 4326)),
(2618, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.27227 10.21122)', 4326)),
(2619, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.29666 10.21392)', 4326)),
(2620, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.28852 10.1854)', 4326)),
(2621, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.29501 10.18203)', 4326)),
(2622, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.28618 10.19126)', 4326)),
(2623, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.31398 10.18903)', 4326)),
(2624, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.30545 10.2127)', 4326)),
(2625, '<NAME>', '2', 6, 231001, ST_GeomFromText('Point (-71.28243 10.18751)', 4326)),
(2626, 'monterrey', NULL, 6, 231001, ST_GeomFromText('Point (-71.29671 10.18575)', 4326)),
(2627, 'nuevo', '1', 6, 231001, ST_GeomFromText('Point (-71.31001 10.18666)', 4326)),
(2628, 'nuevo', '2', 6, 231001, ST_GeomFromText('Point (-71.30457 10.18239)', 4326)),
(2629, 'obrero', NULL, 6, 231001, ST_GeomFromText('Point (-71.30693 10.20552)', 4326)),
(2630, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.24616 10.23147)', 4326)),
(2631, 'paraiso', NULL, 6, 231001, ST_GeomFromText('Point (-71.29622 10.211)', 4326)),
(2632, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.31039 10.2026)', 4326)),
(2633, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.29956 10.19152)', 4326)),
(2634, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.23509 10.23537)', 4326)),
(2635, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.28629 10.19458)', 4326)),
(2636, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.20834 10.21377)', 4326)),
(2637, '<NAME>', NULL, 6, 231001, ST_GeomFromText('Point (-71.28541 10.19815)', 4326)),
(2638, 'sinai', NULL, 6, 231001, ST_GeomFromText('Point (-71.28404 10.2167)', 4326)),
(2640, 'casco central', NULL, NULL, 231001, ST_GeomFromText('Point (-71.30774 10.1957)', 4326)),
(2641, 'ciudad ojeda', NULL, NULL, 231001, ST_GeomFromText('Point (-71.31872 10.19448)', 4326)),
(2642, '<NAME>', NULL, NULL, 231001, ST_GeomFromText('Point (-71.20724 10.19587)', 4326)),
(2643, '<NAME>', NULL, 9, 231001, ST_GeomFromText('Point (-71.30259 10.19516)', 4326)),
(2644, 'el danto', NULL, NULL, 231001, ST_GeomFromText('Point (-71.23263 10.22958)', 4326)),
(2645, 'el menito', NULL, NULL, 231001, ST_GeomFromText('Point (-71.19501 10.18973)', 4326)),
(2646, 'la ceiba', NULL, NULL, 231001, ST_GeomFromText('Point (-71.32173 10.1978)', 4326)),
(2647, '<NAME>', NULL, NULL, 231001, ST_GeomFromText('Point (-71.26069 10.18474)', 4326)),
(2648, 'merida', NULL, 7, 231001, ST_GeomFromText('Point (-71.31612 10.19871)', 4326)),
(2649, 'tropicana', NULL, 7, 231001, ST_GeomFromText('Point (-71.31124 10.1913)', 4326)),
(2650, '<NAME>', NULL, 8, 231001, ST_GeomFromText('Point (-71.29516 10.20846)', 4326)),
(2651, '<NAME>', NULL, 8, 231001, ST_GeomFromText('Point (-71.30262 10.20024)', 4326)),
(2652, 'fontur', NULL, 8, 231001, ST_GeomFromText('Point (-71.2322 10.24314)', 4326)),
(2653, 'inamar', NULL, 8, 231001, ST_GeomFromText('Point (-71.29346 10.20619)', 4326)),
(2654, 'nuestra casa', NULL, 8, 231001, ST_GeomFromText('Point (-71.29711 10.20468)', 4326)),
(2655, 'nueva lagunillas', NULL, 8, 231001, ST_GeomFromText('Point (-71.30336 10.21043)', 4326)),
(2656, '<NAME>', NULL, 8, 231001, ST_GeomFromText('Point (-71.22532 10.23353)', 4326)),
(2657, 'urdaneta', NULL, 8, 231001, ST_GeomFromText('Point (-71.2494 10.23921)', 4326)),
(2658, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.31432 10.21306)', 4326)),
(2659, 'arturo uslar pietris', NULL, 6, 231002, ST_GeomFromText('Point (-71.32272 10.21735)', 4326)),
(2660, 'blanca valero', NULL, 6, 231002, ST_GeomFromText('Point (-71.33013 10.22471)', 4326)),
(2661, '<NAME>', '4', 6, 231002, ST_GeomFromText('Point (-71.30747 10.21995)', 4326)),
(2662, 'constitucion', NULL, 6, 231002, ST_GeomFromText('Point (-71.34005 10.20646)', 4326)),
(2663, 'guaicaipuro', NULL, 6, 231002, ST_GeomFromText('Point (-71.30504 10.21836)', 4326)),
(2664, 'l5', NULL, 6, 231002, ST_GeomFromText('Point (-71.33134 10.21176)', 4326)),
(2665, 'la osa', NULL, 6, 231002, ST_GeomFromText('Point (-71.32867 10.21068)', 4326)),
(2666, 'la victoria', NULL, 6, 231002, ST_GeomFromText('Point (-71.29604 10.22871)', 4326)),
(2667, 'las granjas', NULL, 6, 231002, ST_GeomFromText('Point (-71.33017 10.23358)', 4326)),
(2668, 'libertad', NULL, 6, 231002, ST_GeomFromText('Point (-71.33965 10.21496)', 4326)),
(2669, 'libertador', NULL, 6, 231002, ST_GeomFromText('Point (-71.34174 10.20927)', 4326)),
(2670, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.32528 10.21486)', 4326)),
(2671, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.35115 10.22178)', 4326)),
(2672, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.31173 10.22336)', 4326)),
(2673, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.32088 10.21255)', 4326)),
(2674, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.33359 10.23271)', 4326)),
(2675, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.31836 10.21926)', 4326)),
(2676, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.33399 10.22377)', 4326)),
(2677, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.32858 10.21854)', 4326)),
(2678, '<NAME>', '1', 6, 231002, ST_GeomFromText('Point (-71.31162 10.21569)', 4326)),
(2679, '<NAME>', '2', 6, 231002, ST_GeomFromText('Point (-71.31692 10.22261)', 4326)),
(2680, '<NAME>', '3', 6, 231002, ST_GeomFromText('Point (-71.31883 10.22496)', 4326)),
(2681, 'tamare', NULL, 6, 231002, ST_GeomFromText('Point (-71.33269 10.22683)', 4326)),
(2682, '<NAME>', NULL, 6, 231002, ST_GeomFromText('Point (-71.30347 10.22305)', 4326)),
(2683, 'vegas', NULL, 6, 231002, ST_GeomFromText('Point (-71.33002 10.2215)', 4326)),
(2684, '<NAME>', NULL, NULL, 231002, ST_GeomFromText('Point (-71.34445 10.22582)', 4326)),
(2685, '<NAME>', NULL, NULL, 231002, ST_GeomFromText('Point (-71.33554 10.20102)', 4326)),
(2686, 'parcelamiento el rodeo', NULL, 4, 231002, ST_GeomFromText('Point (-71.32353 10.22128)', 4326)),
(2687, 'andres bello norte', NULL, 7, 231002, ST_GeomFromText('Point (-71.33734 10.23044)', 4326)),
(2688, 'esperanza', '1', 7, 231002, ST_GeomFromText('Point (-71.28468 10.24323)', 4326)),
(2689, 'la l', NULL, 7, 231002, ST_GeomFromText('Point (-71.33477 10.20652)', 4326)),
(2690, 'tamare', NULL, 8, 231002, ST_GeomFromText('Point (-71.34091 10.22175)', 4326)),
(2691, '<NAME>', NULL, NULL, 231003, ST_GeomFromText('Point (-71.08727 10.16398)', 4326)),
(2692, '12 de octubre', NULL, 6, 231003, ST_GeomFromText('Point (-71.08601 10.15785)', 4326)),
(2693, '<NAME>', NULL, 6, 231003, ST_GeomFromText('Point (-71.08135 10.16214)', 4326)),
(2694, '<NAME>', NULL, 7, 231003, ST_GeomFromText('Point (-71.07129 10.16431)', 4326)),
(2695, 'la concepcion', NULL, NULL, 231004, ST_GeomFromText('Point (-71.10285 10.29169)', 4326)),
(2696, 'la hicotea', NULL, NULL, 231004, ST_GeomFromText('Point (-71.1298 10.28128)', 4326)),
(2697, 'la picapica', NULL, NULL, 231004, ST_GeomFromText('Point (-71.14406 10.28719)', 4326)),
(2698, 'las cruces', NULL, NULL, 231004, ST_GeomFromText('Point (-71.14582 10.34585)', 4326)),
(2699, '<NAME>', NULL, NULL, 231004, ST_GeomFromText('Point (-71.18756 10.19642)', 4326)),
(2700, '<NAME>', NULL, NULL, 231004, ST_GeomFromText('Point (-71.07018 10.37683)', 4326)),
(2701, '<NAME>', NULL, NULL, 231004, ST_GeomFromText('Point (-71.0825 10.28804)', 4326)),
(2702, '<NAME>', NULL, 6, 231005, ST_GeomFromText('Point (-71.23555 10.1264)', 4326)),
(2703, 'canaima', NULL, 6, 231005, ST_GeomFromText('Point (-71.22449 10.12262)', 4326)),
(2704, '<NAME>', NULL, 6, 231005, ST_GeomFromText('Point (-71.25865 10.15663)', 4326)),
(2705, 'venezuela', NULL, 6, 231005, ST_GeomFromText('Point (-71.29725 10.17886)', 4326)),
(2706, '<NAME>', NULL, 6, 231005, ST_GeomFromText('Point (-71.29875 10.1769)', 4326)),
(2707, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.25285 10.11634)', 4326)),
(2708, 'campo bella vista', NULL, NULL, 231005, ST_GeomFromText('Point (-71.2594 10.13319)', 4326)),
(2709, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.26289 10.1306)', 4326)),
(2710, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.2639 10.13489)', 4326)),
(2711, 'campo florida grande', NULL, NULL, 231005, ST_GeomFromText('Point (-71.25081 10.13143)', 4326)),
(2712, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.26899 10.15523)', 4326)),
(2713, 'campo puerto nuevo rancho grande', NULL, NULL, 231005, ST_GeomFromText('Point (-71.25687 10.1377)', 4326)),
(2714, 'campo zulima', NULL, NULL, 231005, ST_GeomFromText('Point (-71.2711 10.14358)', 4326)),
(2715, 'corea', NULL, NULL, 231005, ST_GeomFromText('Point (-71.23397 10.09989)', 4326)),
(2716, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.2249 10.11002)', 4326)),
(2717, 'el polin', NULL, NULL, 231005, ST_GeomFromText('Point (-71.21811 10.13982)', 4326)),
(2718, 'el rosal', NULL, NULL, 231005, ST_GeomFromText('Point (-71.27936 10.16549)', 4326)),
(2719, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.23206 10.0299)', 4326)),
(2720, 'lagunillas', NULL, NULL, 231005, ST_GeomFromText('Point (-71.27758 10.15812)', 4326)),
(2721, 'los ahorcados', NULL, NULL, 231005, ST_GeomFromText('Point (-71.23746 10.07007)', 4326)),
(2722, 'recta de los chivos', NULL, NULL, 231005, ST_GeomFromText('Point (-71.21363 10.0457)', 4326)),
(2723, 'turiacas', NULL, 7, 231005, ST_GeomFromText('Point (-71.2427 10.10969)', 4326)),
(2724, 'silencio sur', '1', NULL, 231005, ST_GeomFromText('Point (-71.27572 10.17848)', 4326)),
(2725, 'silencio sur', '2', NULL, 231005, ST_GeomFromText('Point (-71.26858 10.17317)', 4326)),
(2726, 'tasajeras', '1', NULL, 231005, ST_GeomFromText('Point (-71.27622 10.16047)', 4326)),
(2727, 'tasajeras', '2', NULL, 231005, ST_GeomFromText('Point (-71.28462 10.16559)', 4326)),
(2728, '<NAME>', NULL, NULL, 231005, ST_GeomFromText('Point (-71.23562 10.05662)', 4326)),
(2729, 'ayacucho', NULL, 8, 231005, ST_GeomFromText('Point (-71.26812 10.14527)', 4326)),
(2730, 'el silencio', NULL, 8, 231005, ST_GeomFromText('Point (-71.26019 10.14563)', 4326)),
(2731, '<NAME>', NULL, 8, 231005, ST_GeomFromText('Point (-71.24643 10.12353)', 4326)),
(1640, '<NAME>', NULL, NULL, 230503, ST_GeomFromText('Point (-71.91728 8.99698)', 4326)),
(2732, '<NAME>', NULL, NULL, 230501, ST_GeomFromText('Point (-71.92874 9.00492)', 4326)),
(2733, 'la nueva lucha', NULL, NULL, 231206, ST_GeomFromText('Point (-71.7576 10.81055)', 4326)),
(1977, 'la loma', NULL, NULL, 231206, ST_GeomFromText('Point (-71.79643 10.81915)', 4326)),
(2195, 'km 21', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71846 10.79926)', 4326)),
(7, 'nuevo horizonte', 'pinto salinas', 6, 231317, ST_GeomFromText('Point (-71.70326 10.69675)', 4326)),
(855, 'villa nueva florida', NULL, 6, 231315, ST_GeomFromText('Point (-71.67521 10.67589)', 4326)),
(396, '<NAME>', NULL, 6, 231315, ST_GeomFromText('Point (-71.6568 10.66555)', 4326)),
(307, '<NAME>', NULL, 6, 231313, ST_GeomFromText('Point (-71.64906 10.61146)', 4326)),
(1045, '1 de marzo', NULL, 6, 231703, ST_GeomFromText('Point (-71.66207 10.52979)', 4326)),
(1403, '1 de enero', NULL, 6, 230307, ST_GeomFromText('Point (-71.43003 10.40813)', 4326)),
(2734, 'torres del saladillo', NULL, NULL, 231308, ST_GeomFromText('Point (-71.61595 10.64457)', 4326)),
(617, 'las americas', NULL, 7, 231308, ST_GeomFromText('Point (-71.62216 10.65172)', 4326)),
(102, '<NAME>', '<NAME>', 6, 231309, ST_GeomFromText('Point (-71.68251 10.6439)', 4326)),
(2735, 'la lagunita', NULL, 8, 231309, ST_GeomFromText('Point (-71.69035 10.66847)', 4326)),
(2737, '<NAME>', NULL, 9, 231314, ST_GeomFromText('Point (-71.59207 10.66502)', 4326)),
(2738, 'macoa', NULL, NULL, 231102, ST_GeomFromText('Point (-72.45722 10.14042)', 4326)),
(2739, '<NAME>', NULL, 7, 230701, ST_GeomFromText('Point (-71.78207 10.60154)', 4326)),
(1670, 'pueblo nuevo', 'el chivo', NULL, 230601, ST_GeomFromText('Point (-71.60103 8.95764)', 4326)),
(2740, 'rancho grande', NULL, NULL, 230203, ST_GeomFromText('Point (-70.93165 9.81545)', 4326)),
(2741, 'el patio', NULL, NULL, 230203, ST_GeomFromText('Point (-70.91974 9.81504)', 4326)),
(2742, 'buenos aires', NULL, NULL, 230203, ST_GeomFromText('Point (-70.92478 9.80674)', 4326)),
(2743, 'el milagro', NULL, NULL, 230203, ST_GeomFromText('Point (-70.90593 9.78196)', 4326)),
(2744, 'niquitao', NULL, NULL, 230203, ST_GeomFromText('Point (-70.92097 9.82219)', 4326)),
(2745, 'siberia', NULL, NULL, 230203, ST_GeomFromText('Point (-70.91103 9.82641)', 4326)),
(2746, '<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.92941 9.84083)', 4326)),
(2747, 'el sitio', NULL, NULL, 230203, ST_GeomFromText('Point (-70.83345 9.78523)', 4326)),
(2748, 'las cuatro bocas', NULL, NULL, 230205, ST_GeomFromText('Point (-70.83872 9.60893)', 4326)),
(2749, 'el roto', NULL, NULL, 230205, ST_GeomFromText('Point (-70.84975 9.58878)', 4326)),
(2750, 'la quebradita', NULL, NULL, 230205, ST_GeomFromText('Point (-70.8575 9.59804)', 4326)),
(2751, 'ray<NAME>', NULL, NULL, 230206, ST_GeomFromText('Point (-70.86499 9.8489)', 4326)),
(2752, 'las guayabitas', NULL, NULL, 230204, ST_GeomFromText('Point (-70.88486 9.97508)', 4326)),
(2753, 'los barrosos', NULL, NULL, 230205, ST_GeomFromText('Point (-70.91722 9.85348)', 4326)),
(2327, 'casco central', NULL, NULL, 230301, ST_GeomFromText('Point (-71.47746 10.39279)', 4326)),
(2754, 'km 5', NULL, NULL, 230503, ST_GeomFromText('Point (-71.89765 8.96925)', 4326)),
(2755, 'el remolino', NULL, NULL, 230504, ST_GeomFromText('Point (-71.99356 8.895)', 4326)),
(2443, '1 de mayo', NULL, NULL, 230701, ST_GeomFromText('Point (-71.81571 10.6228)', 4326)),
(2756, '<NAME>', NULL, NULL, 230701, ST_GeomFromText('Point (-71.7903 10.60925)', 4326)),
(2211, 'el caimito', NULL, NULL, 231206, ST_GeomFromText('Point (-71.71571 10.81498)', 4326)),
(2639, 'union', NULL, 6, 231001, ST_GeomFromText('Point (-71.30172 10.18629)', 4326));
|
create view FLOW_P0001_VW
as
select dgrm.dgrm_id
, dgrm.dgrm_name
, dgrm.dgrm_content
from flow_diagrams dgrm
with read only
;
|
<gh_stars>0
CREATE TABLE [dbo].[TestBCP]([UUID] [nvarchar](10) NOT NULL,
[ColTinyint] [tinyint] NOT NULL,
[ColSmallint] [smallint] NOT NULL,
[ColInt] [int] NOT NULL,
[ColBigint] [bigint] NOT NULL,
[ColString] [nvarchar](25) NOT NULL,
[ColFloat] [float] NOT NULL,
[ColDecimal] [decimal](18,5) NOT NULL,
[ColNumeric] [numeric](18,2) NOT NULL,
[ColDate] [date] NOT NULL,
[ColDatetime] [datetime] NOT NULL,
CONSTRAINT [PK_UUID] PRIMARY KEY CLUSTERED
(
[UUID] ASC
) ON [PRIMARY]) |
<filename>laravel_ecommerce.sql
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost:3306
-- Généré le : mar. 04 août 2020 à 16:58
-- Version du serveur : 5.7.24
-- Version de 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 */;
--
-- Base de données : `laravel_ecommerce`
--
-- --------------------------------------------------------
--
-- Structure de la table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`is_active` tinyint(1) NOT NULL DEFAULT '0',
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `categories`
--
INSERT INTO `categories` (`id`, `category_name`, `description`, `is_active`, `image`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Computer', 'This is a computers', 1, '1596455970.jpg', NULL, '2020-08-03 11:53:16', '2020-08-03 11:59:30'),
(2, 'Computer', 'This is a computer', 1, '1596459452.jpg', '2020-08-03 13:27:14', '2020-08-03 12:57:32', '2020-08-03 13:27:14'),
(3, 'Phone', 'This is a phone', 1, '1596465963.jpg', '2020-08-03 15:23:34', '2020-08-03 14:46:03', '2020-08-03 15:23:34'),
(4, 'Phone', 'This is a phone', 1, '1596557897.jpg', NULL, '2020-08-04 16:18:17', '2020-08-04 16:18:17'),
(5, 'Mouse', 'This is a computer mouse', 1, '1596557993.jpg', NULL, '2020-08-04 16:19:53', '2020-08-04 16:19:53'),
(6, 'Keyboard', 'This is a Keyboard', 1, '1596558039.jpg', NULL, '2020-08-04 16:20:39', '2020-08-04 16:20:39');
-- --------------------------------------------------------
--
-- Structure de la table `colors`
--
CREATE TABLE `colors` (
`id` bigint(20) UNSIGNED NOT NULL,
`color_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `colors`
--
INSERT INTO `colors` (`id`, `color_name`, `description`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Red', 'This is a red color', NULL, '2020-08-04 09:09:03', '2020-08-04 11:52:19'),
(2, 'Blue', 'This is a blue color', '2020-08-04 11:52:14', '2020-08-04 09:18:56', '2020-08-04 11:52:14'),
(3, 'Blue', 'This is Blue', '2020-08-04 11:52:16', '2020-08-04 11:06:54', '2020-08-04 11:52:16'),
(4, 'White', 'this is white', NULL, '2020-08-04 11:07:06', '2020-08-04 11:07:06'),
(5, 'Black', 'Black', '2020-08-04 13:30:18', '2020-08-04 11:07:41', '2020-08-04 13:30:18'),
(6, 'White', 'White', NULL, '2020-08-04 13:30:32', '2020-08-04 13:30:32');
-- --------------------------------------------------------
--
-- Structure de la table `coupons`
--
CREATE TABLE `coupons` (
`id` bigint(20) UNSIGNED NOT NULL,
`promotion_id` int(11) NOT NULL,
`coupon` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`expired_date` datetime DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `customers`
--
CREATE TABLE `customers` (
`id` bigint(20) UNSIGNED NOT NULL,
`customer_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`sex` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`dob` date DEFAULT NULL,
`phone` varchar(12) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) NOT NULL,
`city` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`commune` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`village` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`district` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lat` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`lng` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `customer_product_favorites`
--
CREATE TABLE `customer_product_favorites` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la 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;
-- --------------------------------------------------------
--
-- Structure de la 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;
--
-- Déchargement des données de la table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(18, '2014_10_12_000000_create_users_table', 1),
(19, '2014_10_12_100000_create_password_resets_table', 1),
(20, '2019_08_19_000000_create_failed_jobs_table', 1),
(21, '2020_08_01_143417_create_categories_table', 1),
(22, '2020_08_01_143936_create_products_table', 1),
(23, '2020_08_01_144732_create_product_galleries_table', 1),
(24, '2020_08_01_161426_create_product_colors_table', 1),
(25, '2020_08_01_201138_create_orders_table', 1),
(26, '2020_08_01_201855_create_order_items_table', 1),
(27, '2020_08_01_202426_create_statuses_table', 1),
(28, '2020_08_01_202651_create_customer_product_favorites_table', 1),
(29, '2020_08_01_202923_create_customers_table', 1),
(30, '2020_08_01_203853_create_shipping_addresses_table', 1),
(31, '2020_08_01_210823_create_order_statuses_table', 1),
(32, '2020_08_01_211008_create_promotions_table', 1),
(33, '2020_08_01_211221_create_coupons_table', 1),
(34, '2020_08_01_211522_create_colors_table', 1);
-- --------------------------------------------------------
--
-- Structure de la table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`customer_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`deliver_id` int(11) DEFAULT NULL,
`payment_id` int(11) DEFAULT NULL,
`status_id` int(11) DEFAULT NULL,
`coupon_id` int(11) DEFAULT NULL,
`transaction_date` datetime DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `order_items`
--
CREATE TABLE `order_items` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`color_id` int(11) NOT NULL,
`qty` int(11) DEFAULT NULL,
`price` double(8,2) NOT NULL,
`amount` double(8,2) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `order_statuses`
--
CREATE TABLE `order_statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` int(11) NOT NULL,
`status_id` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la 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;
-- --------------------------------------------------------
--
-- Structure de la table `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_id` int(11) NOT NULL,
`product_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_name` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` int(11) DEFAULT NULL,
`price` double(8,2) DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '0',
`description` text COLLATE utf8mb4_unicode_ci,
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `products`
--
INSERT INTO `products` (`id`, `category_id`, `product_code`, `product_name`, `qty`, `price`, `is_active`, `description`, `image`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 'IBM', 100, 100.00, 0, 'This computer is an IBM', '1596466043.jpg', '2020-08-03 14:55:57', '2020-08-03 14:47:23', '2020-08-03 14:55:57'),
(2, 1, NULL, 'IBM', 100, 100.00, 0, 'This is an IBM', '1596466583.jpg', '2020-08-03 15:01:01', '2020-08-03 14:56:23', '2020-08-03 15:01:01'),
(3, 3, NULL, 'Iphone', 100, 10000.00, 0, 'This is an Iphoneeelk!hkghjcgfxdkmjlhjkghj', '1596467227.jpg', '2020-08-03 15:19:15', '2020-08-03 15:07:07', '2020-08-03 15:19:15'),
(4, 1, NULL, 'IBM', 100, 10000.00, 0, 'This is a computer', '1596467982.jpg', '2020-08-03 15:21:52', '2020-08-03 15:19:34', '2020-08-03 15:21:52'),
(5, 1, NULL, 'IBM', 100, 10000.00, 0, 'IBM', '1596558639.jpg', NULL, '2020-08-04 16:30:39', '2020-08-04 16:30:39'),
(6, 1, NULL, 'LENOVO', 100, 4000.00, 0, 'LENOVO', '1596560138.jpg', NULL, '2020-08-04 16:55:38', '2020-08-04 16:55:38');
-- --------------------------------------------------------
--
-- Structure de la table `product_colors`
--
CREATE TABLE `product_colors` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`color_id` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `product_galleries`
--
CREATE TABLE `product_galleries` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`gallery_image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `product_galleries`
--
INSERT INTO `product_galleries` (`id`, `product_id`, `gallery_image`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 5, '1217415019.jpg', NULL, '2020-08-04 16:30:39', '2020-08-04 16:30:39'),
(2, 5, '149547582.jpg', NULL, '2020-08-04 16:30:39', '2020-08-04 16:30:39'),
(3, 6, '313124299.jpg', NULL, '2020-08-04 16:55:38', '2020-08-04 16:55:38'),
(4, 6, '1746695407.jpg', NULL, '2020-08-04 16:55:38', '2020-08-04 16:55:38');
-- --------------------------------------------------------
--
-- Structure de la table `promotions`
--
CREATE TABLE `promotions` (
`id` bigint(20) UNSIGNED NOT NULL,
`promotion_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `shipping_addresses`
--
CREATE TABLE `shipping_addresses` (
`id` bigint(20) UNSIGNED NOT NULL,
`customer_iid` int(11) NOT NULL,
`order_id` int(11) NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(12) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`commune` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`village` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`district` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postcode` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Structure de la table `statuses`
--
CREATE TABLE `statuses` (
`id` bigint(20) UNSIGNED NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Déchargement des données de la table `statuses`
--
INSERT INTO `statuses` (`id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'active', '2020-08-04 10:41:56', '2020-08-04 10:40:58', '2020-08-04 10:41:56'),
(2, 'active', '2020-08-04 11:05:16', '2020-08-04 10:42:03', '2020-08-04 11:05:16'),
(3, 'pending', '2020-08-04 11:05:23', '2020-08-04 10:59:45', '2020-08-04 11:05:23'),
(4, 'pending', '2020-08-04 11:05:24', '2020-08-04 11:00:01', '2020-08-04 11:05:24'),
(5, 'pending', NULL, '2020-08-04 11:04:18', '2020-08-04 11:04:18'),
(6, 'confirmed', NULL, '2020-08-04 11:05:33', '2020-08-04 11:05:33'),
(7, 'shipping', NULL, '2020-08-04 11:05:43', '2020-08-04 11:05:43'),
(8, 'completed', NULL, '2020-08-04 11:06:11', '2020-08-04 11:06:11');
-- --------------------------------------------------------
--
-- Structure de la 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;
--
-- Déchargement des données de la table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Franck', '<EMAIL>', NULL, '$2y$10$jO4KPQexIJDThUUxXibFQ.H.h1PK6.rt77ewyreCM1rmzNISRYuOq', NULL, '2020-08-03 11:53:02', '2020-08-03 11:53:02'),
(2, 'emma', '<EMAIL>', NULL, '$2y$10$arPjc0/oWxwaXphkHzoOpONEKZkVQz70yK1JnScpmtP0ez2gySAR6', NULL, '2020-08-03 15:22:49', '2020-08-03 15:22:49');
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `colors`
--
ALTER TABLE `colors`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `coupons`
--
ALTER TABLE `coupons`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `customers`
--
ALTER TABLE `customers`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `customers_email_unique` (`email`),
ADD UNIQUE KEY `customers_username_unique` (`username`);
--
-- Index pour la table `customer_product_favorites`
--
ALTER TABLE `customer_product_favorites`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `order_items`
--
ALTER TABLE `order_items`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `order_statuses`
--
ALTER TABLE `order_statuses`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Index pour la table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `product_colors`
--
ALTER TABLE `product_colors`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `product_galleries`
--
ALTER TABLE `product_galleries`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `promotions`
--
ALTER TABLE `promotions`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `shipping_addresses`
--
ALTER TABLE `shipping_addresses`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `statuses`
--
ALTER TABLE `statuses`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT pour la table `colors`
--
ALTER TABLE `colors`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT pour la table `coupons`
--
ALTER TABLE `coupons`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `customers`
--
ALTER TABLE `customers`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `customer_product_favorites`
--
ALTER TABLE `customer_product_favorites`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35;
--
-- AUTO_INCREMENT pour la table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `order_items`
--
ALTER TABLE `order_items`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `order_statuses`
--
ALTER TABLE `order_statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT pour la table `product_colors`
--
ALTER TABLE `product_colors`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `product_galleries`
--
ALTER TABLE `product_galleries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `promotions`
--
ALTER TABLE `promotions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `shipping_addresses`
--
ALTER TABLE `shipping_addresses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `statuses`
--
ALTER TABLE `statuses`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT pour la table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>olyop/musicloud<gh_stars>0
CREATE TABLE IF NOT EXISTS queue_laters (
user_id uuid,
song_id uuid,
index smallint,
CONSTRAINT queue_laters_pk
PRIMARY KEY (user_id, song_id, index),
CONSTRAINT queue_laters_fk_song_id
FOREIGN KEY (song_id)
REFERENCES songs (song_id) MATCH FULL
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT queue_laters_fk_user_id
FOREIGN KEY (user_id)
REFERENCES users (user_id) MATCH FULL
ON UPDATE CASCADE
ON DELETE CASCADE,
CONSTRAINT queue_laters_check_index
CHECK (index >= 0)
); |
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 06, 2020 at 10:11 PM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.4.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: `dating_app`
--
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(191) 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 `genders`
--
CREATE TABLE `genders` (
`id` int(10) UNSIGNED NOT NULL,
`gender` varchar(191) 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 `genders`
--
INSERT INTO `genders` (`id`, `gender`, `created_at`, `updated_at`) VALUES
(1, 'Male', '2020-10-02 18:00:00', '2020-10-02 18:00:00'),
(2, 'Female', '2020-10-02 18:00:00', '2020-10-02 18:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `like_dislikes`
--
CREATE TABLE `like_dislikes` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`profile_id` int(11) NOT NULL,
`like_dislike_status` tinyint(1) 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 `like_dislikes`
--
INSERT INTO `like_dislikes` (`id`, `user_id`, `profile_id`, `like_dislike_status`, `created_at`, `updated_at`) VALUES
(10, 21, 19, 1, '2020-10-06 11:32:01', '2020-10-06 12:01:01'),
(12, 21, 17, 0, '2020-10-06 11:37:37', '2020-10-06 11:51:01'),
(15, 21, 18, 0, '2020-10-06 11:56:57', '2020-10-06 11:57:23'),
(16, 19, 21, 1, '2020-10-06 12:02:18', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `locations`
--
CREATE TABLE `locations` (
`id` bigint(20) UNSIGNED NOT NULL,
`lat` double(8,2) NOT NULL,
`lon` double(8,2) NOT NULL,
`user_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `locations`
--
INSERT INTO `locations` (`id`, `lat`, `lon`, `user_id`, `created_at`, `updated_at`) VALUES
(17, 41.31, -72.92, 17, '2020-10-06 11:24:05', NULL),
(18, 41.31, -72.92, 18, '2020-10-06 11:25:19', NULL),
(19, 41.31, -72.92, 19, '2020-10-06 11:26:51', NULL),
(20, 41.31, -72.92, 20, '2020-10-06 11:27:54', NULL),
(21, 41.31, -72.92, 21, '2020-10-06 11:31:24', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2020_10_03_034012_create_genders_table', 1),
(5, '2020_10_03_061756_create_locations_table', 1),
(6, '2020_10_05_173613_create_like_dislikes_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dob` timestamp NULL DEFAULT NULL,
`gender_id` int(11) NOT NULL,
`user_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default_user_image.jpg',
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `dob`, `gender_id`, `user_image`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(17, 'Thor', '<EMAIL>', '1988-02-01 18:00:00', 1, '17.jpg', NULL, '$2y$10$k1vhyqCA1rFSAPv0xwaOZe3mvQ.MmpSG2W0B9J1BiRwq2972JrsH6', NULL, '2020-10-06 11:24:05', '2020-10-06 11:24:05'),
(18, 'Taylorotwell', '<EMAIL>', '2000-06-05 18:00:00', 1, '18.jpg', NULL, '$2y$10$VA/dB2.Ca4Iyb9lY577zk.A5eFm9Tb3Kdgyw7gJ8pjvpg/Wgx4QFS', NULL, '2020-10-06 11:25:19', '2020-10-06 11:25:19'),
(19, 'Emma', '<EMAIL>', '1996-03-04 18:00:00', 2, '19.jpg', NULL, '$2y$10$8RPZI5x2jCJY/h3QsIG2hO8kiOxRITNgKuqokRq2cnChvYbzMiYq2', NULL, '2020-10-06 11:26:51', '2020-10-06 11:26:51'),
(20, '<NAME>', '<EMAIL>', '1987-05-03 18:00:00', 2, '20.jpg', NULL, '$2y$10$s2KOY4QC/Yi3/1qh.aEKVuOu3HsbqssEjRwqltdpKEqT68klzYX7G', NULL, '2020-10-06 11:27:54', '2020-10-06 11:27:55'),
(21, '<NAME>', '<EMAIL>', '1994-04-15 18:00:00', 1, '21.jpg', NULL, '$2y$10$AKAWEWcOdbBb29JFcsvQqOuzhLF8zfrXAHXUU.lQOzu/7KUYfW56O', NULL, '2020-10-06 11:31:24', '2020-10-06 11:31:25');
--
-- 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 `genders`
--
ALTER TABLE `genders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `like_dislikes`
--
ALTER TABLE `like_dislikes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `locations`
--
ALTER TABLE `locations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `genders`
--
ALTER TABLE `genders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `like_dislikes`
--
ALTER TABLE `like_dislikes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `locations`
--
ALTER TABLE `locations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
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 */;
|
-- **********************
-- *** Drop sequences ***
-- **********************
DECLARE
COUNT_SEQUENCES INTEGER;
BEGIN
SELECT COUNT(*) INTO COUNT_SEQUENCES
FROM USER_SEQUENCES
WHERE SEQUENCE_NAME = upper('s_dossier_releaseid');
IF COUNT_SEQUENCES > 0 THEN
EXECUTE IMMEDIATE 'DROP SEQUENCE s_dossier_releaseid';
END IF;
SELECT COUNT(*) INTO COUNT_SEQUENCES
FROM USER_SEQUENCES
WHERE SEQUENCE_NAME = upper('hibernate_sequence');
IF COUNT_SEQUENCES > 0 THEN
EXECUTE IMMEDIATE 'DROP SEQUENCE hibernate_sequence';
END IF;
END;
/
-- *******************
-- *** Drop tables ***
-- *******************
DECLARE
COUNT_TABLES INTEGER;
BEGIN
SELECT COUNT(*) INTO COUNT_TABLES
FROM USER_TABLES
WHERE TABLE_NAME = upper('aq_dossier');
IF COUNT_TABLES > 0 THEN
EXECUTE IMMEDIATE 'DROP TABLE aq_dossier CASCADE CONSTRAINTS';
END IF;
SELECT COUNT(*) INTO COUNT_TABLES
FROM USER_TABLES
WHERE TABLE_NAME = upper('dossier_releases');
IF COUNT_TABLES > 0 THEN
EXECUTE IMMEDIATE 'DROP TABLE dossier_releases CASCADE CONSTRAINTS';
END IF;
END;
/ |
CREATE TABLE IF NOT EXISTS characters(
id SERIAL NOT NULL,
name VARCHAR(250),
gender VARCHAR(250),
img TEXT
)
|
CREATE TABLE [Retail].[SalesDetail] (
[InvoiceNo] UNIQUEIDENTIFIER NOT NULL,
[Description] NVARCHAR (100) NULL,
[Qty] INT NULL,
[Price] NUMERIC (18, 2) NULL,
[TotalValue] NUMERIC (18, 2) NULL,
[Discount] NUMERIC (18, 2) NULL,
[NetDiscount] NUMERIC (18, 2) NULL,
[NetAmount] NUMERIC (18, 2) NULL,
[ActualSales] NUMERIC (18, 2) NULL,
[Gst] NUMERIC (18, 4) NULL,
[SalesManId] NVARCHAR (50) NULL,
[ProductId] INT NOT NULL,
[TopCategoryId] INT NULL,
[CategoryId] INT NULL,
[BrandId] NVARCHAR (50) NULL,
[AverageCost] NUMERIC (18, 2) NULL,
[MemberDiscount] NUMERIC (18) NULL,
[IsRegularBuy] BIT NULL,
[Profile] NVARCHAR (50) NULL,
[AgeGroupType] NVARCHAR (50) NULL,
[Gender] NVARCHAR (10) NULL,
[TimeSliceId] INT NULL,
[TimeSlice] NVARCHAR (50) NULL,
[CreateDate] DATETIME NOT NULL,
[ModifyDate] DATETIME NULL
);
|
<reponame>empiricaldataman/DB2LS<filename>SQL/IndexMaintenance/DML_IndexMaintenanceConfig.sql
USE msdb
GO
SET IDENTITY_INSERT [IndexMaintenanceConfig] ON
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (1,'RCHPWVMGMSQL01\MANAGEMENT01','DatabasesToExclude','master,msdb,distribution,tempdb,dba_backup,SQLImplementations,model,ReportServer,ReportServerTempDB,sysutility_mdw')
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (2,'RCHPWVMGMSQL01\MANAGEMENT01','DayToCollect','Friday')
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (3,'RCHPWVMGMSQL01\MANAGEMENT01','FragmentationPercentage','25.0')
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (4,'RCHPWVMGMSQL01\MANAGEMENT01','TimeToStopCollecting','08:00')
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (5,'RCHPWVMGMSQL01\MANAGEMENT01','TimeToStopRebuilding','08:00')
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (6,'RCHPWVMGMSQL01\MANAGEMENT01','LargeDBSize',20000)
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (8,'RCHPWVMGMSQL01\MANAGEMENT01','PageCount',1000)
INSERT INTO dbo.IndexMaintenanceConfig (configuration_id, [instance_name], [name], [value]) VALUES (9,'RCHPWVMGMSQL01\MANAGEMENT01','DayToRebuild','Saturday')
SET IDENTITY_INSERT [IndexMaintenanceConfig] OFF
|
<gh_stars>1-10
CREATE TABLE DST
(
id NUMBER NOT NULL,
name VARCHAR2(15) NOT NULL,
CONSTRAINT PK_DST PRIMARY KEY (id)
) |
INSERT INTO department VALUES('000001','内科','NK');
INSERT INTO department VALUES('000002','外科','WK');
INSERT INTO department VALUES('000003','妇产科','FCK');
INSERT INTO department VALUES('000004','皮肤科','PFK');
INSERT INTO department VALUES('000005','精神科','JSK');
INSERT INTO department VALUES('000006','传染科','CRK');
INSERT INTO doctor VALUES('000001','000001','扁鹊','BQ','bian001',TRUE,NULL);
INSERT INTO doctor VALUES('000002','000002','华佗','HT','hua002',TRUE,NULL);
INSERT INTO doctor VALUES('000003','000003','薛生白','XSB','xue003',FALSE,NULL);
INSERT INTO doctor VALUES('000004','000004','宋慈','SC','song004',FALSE,NULL);
INSERT INTO doctor VALUES('000005','000005','李时珍','LSZ','li005',TRUE,NULL);
INSERT INTO doctor VALUES('000006','000006','葛洪','GH','ge006',FALSE,NULL);
INSERT INTO patient VALUES('000001','刘一','111111',1100.00,NULL);
INSERT INTO patient VALUES('000002','陈二','222222',0,NULL);
INSERT INTO patient VALUES('000003','张三','333333',1300.00,NULL);
INSERT INTO patient VALUES('000004','李四','444444',0,NULL);
INSERT INTO patient VALUES('000005','王五','555555',1500.00,NULL);
INSERT INTO patient VALUES('000006','赵六','666666',0,NULL);
INSERT INTO patient VALUES('000007','孙七','777777',1700.00,NULL);
INSERT INTO patient VALUES('000008','周八','888888',0,NULL);
INSERT INTO patient VALUES('000009','吴九','999999',1900.00,NULL);
INSERT INTO patient VALUES('000010','郑十','101010',0,NULL);
INSERT INTO register_category VALUES('000001','内科普通','NKPT','000001',FALSE,30,4.50);
INSERT INTO register_category VALUES('000002','内科正高','NKZG','000001',TRUE,3,9.50);
INSERT INTO register_category VALUES('000003','外科普通','WKPT','000002',FALSE,30,4.50);
INSERT INTO register_category VALUES('000004','外科正高','WKZG','000002',TRUE,3,9.50);
INSERT INTO register_category VALUES('000005','妇产科普通','FCPT','000003',FALSE,30,4.50);
INSERT INTO register_category VALUES('000006','皮肤科普通','PFPT','000004',FALSE,30,4.50);
INSERT INTO register_category VALUES('000007','精神科普通','JSPT','000005',FALSE,30,4.50);
INSERT INTO register_category VALUES('000008','精神科正高','JSZG','000005',TRUE,3,9.50);
INSERT INTO register_category VALUES('000009','传染科普通','CRPT','000006',FALSE,30,4.50);
|
<reponame>AnaMolina22/FeriaOnline2020<filename>tools/BaseDatos/Nuestras/2020-10-22-Jorge-laliamos.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost
-- Tiempo de generación: 22-10-2020 a las 19:21:18
-- Versión del servidor: 5.7.12-log
-- Versión de PHP: 7.0.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `laliamos`
--
CREATE DATABASE IF NOT EXISTS `laliamos` DEFAULT CHARACTER SET utf8 COLLATE utf8_spanish_ci;
USE `laliamos`;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `lugar`
--
CREATE TABLE `lugar` (
`id_voluntariado` int(11) NOT NULL,
`continente_lugar` varchar(20) NOT NULL,
`pais_lugar` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Paises a realizar el voluntariado';
--
-- Volcado de datos para la tabla `lugar`
--
INSERT INTO `lugar` (`id_voluntariado`, `continente_lugar`, `pais_lugar`) VALUES
(1, 'Europa', 'España'),
(2, 'Asia', 'Asia'),
(3, 'Oceanía', 'Oceanía'),
(4, 'America del Sur', 'America del Sur'),
(5, 'Centro America', 'Centro America'),
(6, 'America del Norte', 'America del Norte'),
(7, 'Africa', 'Africa'),
(8, 'Otro', 'Otro'),
(9, 'Europa', 'Madrid'),
(10, 'Europa', 'Europa');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `ongs`
--
CREATE TABLE `ongs` (
`id_ong` int(11) NOT NULL,
`nombre_ong` varchar(100) DEFAULT NULL,
`descripcion_ong` longtext,
`voluntariado_ong` longtext,
`rs_ong` varchar(100) DEFAULT NULL,
`email_ong` varchar(100) DEFAULT NULL,
`logo_ong` text,
`fecha_inscripcion` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Descripción general de todas las ONGs que participan en Volunfair';
--
-- Volcado de datos para la tabla `ongs`
--
INSERT INTO `ongs` (`id_ong`, `nombre_ong`, `descripcion_ong`, `voluntariado_ong`, `rs_ong`, `email_ong`, `logo_ong`, `fecha_inscripcion`) VALUES
(1, '<NAME> LOS POBRES', 'Asilo de ancianos. Comunidad religiosa que junto a los colaboradores acogemos, acompañamos y cuidamos hasta el termino de sus vidas a personas mayores con pocos recursos económicos… Al ejemplo de Santa Juana Jugan.', 'Acompañar, servir, alegrar... a peronas mayores pobres y/o solas', 'https://www.hermanitasdelospobres.es', '<EMAIL>', 'hermanitas-pobres.png\n', '0000-00-00 00:00:00'),
(2, '21Kilómetros', '21Kilómetros es una organización sin ánimo de lucro, cuyo objetivo es dar a conocer entre el sector universitario y profesional las distintas formas de ayudar que hay en Madrid. Para ello colaboramos con numerosos centros, proyectos solidarios y ONGs, organizando distintas actividades y eventos. \n\n¿Algún ejemplo de lo que hacemos? Nuestra actividad se divide en tres grandes sectores: \n1. Voluntariado con gente de la calle y convictos (reparto de cenas por la calle, comedores sociales, partidos de fútbol en la cárcel...).\n2. Voluntariado con niños y enfermos (incluyendo distintos hospitales, asilos, albergues, casas de acogida...).\n3. Adoraciones y coro: organizamos una hora santa al mes para rezar por todos los voluntariados. Y nuestro coro, además de acompañar la oración en estos eventos, participa activamente en los voluntariados y organiza eventos para recaudar fondos cuando son necesarios. \n\n¿Quieres saber más? Consulta nuestra web y pásate por nuestro stand durante Volunfair ?? http://www.21kilometros.org', 'Nuestras actividades son distintas todas las semanas. Por poner algún ejemplo, las actividades que tenemos programadas para el mes de Noviembre son las siguientes:\n- Reparto de cenas por la calle (Madrid centro) y desayunos en la Cañada Real.\n- Acompañamiento a personas de la tercera edad en un centro.\n- Acompañamiento a enfermos del Cottolengo de Madrid. \n- Ayuda a las Misioneras de la Caridad en cuidados de enfermos de SIDA. \n\nUna vez completada la actividad, si los voluntarios quieren comprometerse a asistir a un voluntariado, les pondremos en contacto con las asociaciones que acudan periódicamente. \n', 'Instagram y Facebook: 21 Kilómetros', '<EMAIL>', '21_kilometros.jpg\n', '0000-00-00 00:00:00'),
(3, 'humana', 'Fomentamos el voluntariado internacional con un programa que combina 3 meses de formación en Dinamarca y 6 en terreno (Malawi, Zambia, Mozambique e India)', 'Voluntariado internacional:\n- 3 meses de formación en Dinamarca (cooperación y desarrollo)\n- 6 meses en terreno (Malawi, Zambia, Mozambique e India)\n- 1 mes de promoción en Europa', 'https://www.facebook.com/VoluntariosHUMANA/', '<EMAIL>', 'humana.jpg\n', '0000-00-00 00:00:00'),
(4, 'Jóvenes para la Misión', 'Grupo de jóvenes de la delegación de misiones de Madrid.', 'Desde su nacimiento en 2007, somos el grupo de jóvenes de la Delegación de Misiones de Madrid, dentro de las OMP de España, y estamos al servicio de toda la diócesis. Como tal, la naturaleza del grupo se apoya en tres pilares fundamentales:\n\nLa oración. Esta debe ser siempre el centro de cualquier vida cristiana, pues como dice el Papa Francisco: “la oración nos cambia el corazón”. Es por ello que todos los primeros viernes de mes nos unimos a todos los jóvenes de Madrid en la Vigilia de Oración que convoca nuestro arzobispo en la Catedral. Y no solo eso, sino que también es nuestra tarea apoyar a los misioneros que están dando su vida cada día en los territorios de misión. \nLa formación, puesto que es vital no solo recibir la llamada de Dios a la misión o a la animación misionera, sino también formarse y conocer todas las implicaciones de la misma. Para ello tenemos un contacto directo con todos los documentos misioneros de la Iglesia, conocemos la espiritualidad de diferentes congregaciones dedicadas a la misión como las misioneras de la caridad o los javerianos y recibimos formación de nuestro delegado. Y todo esto tiene lugar los segundos viernes de mes por la tarde en la Delegación de Misiones. \nLa animación misionera, que consiste en poner en práctica todo lo aprendido y apoyar a la Delegación en todas sus actividades, pues quien tiene vocación misionera es misionero tanto aquí como en tierra de misión. En estas actividades se encuentra desde el DOMUND hasta Vocaciones Nativas, pasando por Sembradores de Estrellas y muchas otras. Es nuestra misión animar la dimensión misionera de cada cristiano pues “un cristiano es misionero desde el bautismo”.\n\nEstamos enamorados de la misión y este es el sitio al que Dios nos llama ahora para ir descubriendo nuestra vocación.\nEstamos al servicio de toda la diócesis, especialmente de los cristianos que quieren conocer la misión, y siempre estás invitado a escribirnos, ponerte en contacto con nosotros o venir una tarde al grupo a conocer el grupo de jóvenes de la Delegación.', 'Facebook e Instagram: Jóvenes para la Misión', '<EMAIL>', 'jovenes-mision.jpg\n', '0000-00-00 00:00:00'),
(5, '<NAME>', 'Colegio en kalalé (Benin)', 'Voluntariado en el colegio de Kalalé, dando clases, apoyo', 'Instagram y facebook: colegiomatersalvatoriskalale o en la web http://kalale.matersalvatoris.org/', '<EMAIL>', 'mater-salvatoris.png\n', '0000-00-00 00:00:00'),
(6, 'Gentinosina Social', 'Asociación sin ánimo de lucro para la cooperación y la acción social de manera local y global. Combate la desigualdad y utiliza el periodismo como arma para sensibilizar a la sociedad sobre las injusticias en nuestro entorno.', '- Voluntariado de verano en Burkina Faso con más de 500 alumnos de escuelas rurales al sur del país. \n- Voluntariado virtual y presencial en España (Madrid y Cáceres)\n- Voluntariado en el hogar Luceros del Amanecer en Nicaragua, con 120 niños y niñas de la ciudad de Camoapa.\n- Voluntariado en la escuela Francisco González Bocanegra en el estado de Sinaloa (México). Oferta de voluntariado pendiente de definir.', '@Gentinosina', '<EMAIL>', 'gentinosina-social.png\n', '0000-00-00 00:00:00'),
(7, 'GHO VOLUNTARIADO INTERNACIONAL', 'GHO (Grow Helping Others) nace de la necesidad de muchas personas de vivir experiencias inolvidables participando en acciones de voluntariado, contando con un apoyo diario emocional y logístico, que les asegure y les informe sobre la realidad de la experiencia, con el objetivo de crecer personalmente ayudando a otros.', 'Programas de voluntariado desde 2 semanas durante todo el año en:\n\nGhana\n-Proyecto orfanato\n-Proyecto escuela\n-Proyecto salud\n-Proyecto construcción\n\nIndia\n-Proyecto orfanato\n-Proyecto salud\n\nMarruecos\n-Proyecto infantil\n-Proyecto construcción', '@ghovoluntariado', '<EMAIL>', 'gho.png\n', '0000-00-00 00:00:00'),
(8, 'ASPRODALBA', 'Asociación para la promoción de las personas con discapacidad intelectual del Levante Almeriense.', 'Proyecto de voluntariado para jovenes y de todas las edades en su tiempo de ocio para compartir y dar apoyos a personas cin discapacidad intelectual', 'Facebook: ASPRODALBA', '<EMAIL>', 'asprodalba.jpg\n', '0000-00-00 00:00:00'),
(9, 'Fundación Amoverse', 'La Fundación Amoverse nace en el año 2001 en el barrio madrileño del Pozo del Tío Raimundo (Vallecas) con el fin de acompañar a los niños/as, adolescentes, jóvenes y sus familias en su inserción social y laboral, impulsando oportunidades de aprendizaje, crecimiento e integración. Hoy contamos con diferentes centros en Vallecas y Tetuan, Madrid, desde donde llevamos a cabo programas integrales de Acompañamiento Famliar, de Intervención Socio-educativa e Intervención socio-laboral.', 'Atendiendo a las necesidades familiares compartidas y específicas de cada barrio, se quiere ofrecer un espacio donde compartir, crecer y aprender unos/as de otros/as. A través del vínculo se va construyendo la propia historia con las fortalezas y dificultades de cada uno atendiendo al área emocional, cognitiva, educativa y social. \n\nTodo esto se lleva a cabo en espacios compartidos a través de actividades, donde convivir, relacionarse e integrarse en el contexto, de manera participativa contando con personas voluntarias, para la búsqueda de la justicia y el cambio social. Sin el voluntariado este sueño no sería posible. \n\nDurante el curso escolar trabajamos con los menores por las tardes desde el espacio de aprendizaje (actividades donde poder desarrollar las competencias que permitan al menor adquirir los conocimientos requeridos a su edad y poder despertar el interés y la curiosidad por aprender) y el espacio de crecimiento (actividades que busquen tanto el autoconocimiento y crecimiento personal como la búsqueda de disfrute y crecimiento a través del juego, las actividades manuales y la relación con los compañeros/as). Durante el verano se realizan los campamentos En función de la edad las actividades se adaptan así que si estás interesado estaremos encantados de ampliarte la información. \n\nAdemas puedes ser voluntario en el área de formación y acompañamiento laboral con jóvenes y adultos y dar apoyo al equipo técnico en gestión, comunicación...', 'https://fundacionamoverse.org/', '<EMAIL>', 'amoverse.jpg\n', '0000-00-00 00:00:00'),
(10, 'Misión País España', '\nMisión País es un proyecto de jóvenes\nmisionero que quiere cambiar España, dándonos a los demás. Nuestra Misión es llevar a Dios a todo el mundo, empezando por los pequeños pueblos de España.', 'Actualmente, tenemos 10 misiones abiertas en 10 pueblos distintos de España!! La misión consiste en ir durante una semana a un pueblo español a misionar, compartir la fe, ayudar, visitar enfermos, hacer voluntariado, dar alegría al pueblo...', 'Instagram: @misionpaisesp o en la web www.misionpais.es', '<EMAIL>', 'mision_pais.jpg\n', '0000-00-00 00:00:00'),
(11, '<NAME>', 'Nuestro objetivo es proporcionar asistencia escolar, sanitaria y alimentaria a los niños huérfanos de Sierra Leona, así cómo participar y contribuir en la mejora de las condiciones de vida de sus habitantes.\n\nPor eso, promovemos desde la base y a píe de campo la educación, la salud y la seguridad alimentaria, además de la gestión de becas y el envío de suministros médicos.', 'El proyecto principal es participar directamente, in situ, en la educación y enseñanza de los niños de la escuela-orfanato de Ma-Tindi, Sierra Leona. También, desde septiembre de 2018, tenemos un centro de salud al lado de la escuela, donde los estudiantes también pueden prestar su ayuda.', 'Email: <EMAIL> www.amigosdesierraleona.com Facebook: Amigos de Sierra Leona-AD', '<EMAIL>', 'amigos-sierra-leona.png\n', '0000-00-00 00:00:00'),
(12, 'Fundación Manantial', 'Fundación Manantial es una entidad sin ánimo de lucro\nformada en 1995 por asociaciones de familiares para mejorar la atención social y sanitaria de las personas con problemas de salud mental.\nNuestro trabajo está orientado a la recuperación de las personas y pretende cubrir sus necesidades de atención social, empleo, tutela y reinserción desde el ámbito penitenciario. Impulsamos y ponemos en marcha iniciativas\nde prevención y atención temprana, sensibilización, asistenciales y psicoterapéuticas que facilitan la incorporación y participación real en la sociedad de las personas con problemas de salud mental.', 'Apoyo en ocio y tiempo Libre.\nAcompañamiento afectivo.\nApoyo en talleres específicos( música, teatro, cómic, baile, robótica ,etc...)', 'https://www.facebook.com/FundacionManantial https://twitter.com/VoluntariosFM https://www.instagram.', '<EMAIL>', 'fund-manantial.png\n', '0000-00-00 00:00:00'),
(13, 'ASOCIACION CULTURAL NORTE JOVEN', 'La MISIÓN de Norte Joven es promover el desarrollo personal y la integración sociolaboral de personas en situación de desventaja social a través de su formación, del acceso al empleo y de la sensibilización de la sociedad', 'somos una escuela de segunda oportunidad para personas que han abandonado el sistema escolar, dándoles una formación cultural básica y en un oficio. Llevamos más de 30 años cambiando proyectos de vida', 'www.nortejoven.org', '<EMAIL>', 'norte-joven.png\n', '0000-00-00 00:00:00'),
(14, 'ClaseaTe', 'Organizamos ocio solidario', 'Los universitarios, asi como cualquier otro voluntario, puede participar como profe impartiendo una clase suelta de la actividad aue elija, recaudando fondos para la ong que desee, asi como asistiendo como participante a cualquiera de nuestros talleres, con su donativo que confirmaría la inscripción al taller. También puedes participar como parte del equipo organizativo de ClaseaTe!', 'Facebook y twitter: ClaseaTe', '<EMAIL>', 'claseate.jpg\n', '0000-00-00 00:00:00'),
(15, 'KUBUKA', 'Nuestra misión es crear un desarrollo sostenible en las comunidades más vulnerables de Kenia y Zambia, centrándonos en el emprendimiento y en la educación como motores de cambio, apoyando proyectos que nazcan y perduren gracias al esfuerzo y empoderamiento de la comunidad beneficiaria.', 'Nuestros proyectos se centran en educación, emprendimiento e inclusión social; casas de acogida, colegios, proyectos deportivos, centros de tutorías, plantas de reciclaje, microcréditos, etc.', 'Instagram, facebook, twitter y youtube: KUBUKA', '<EMAIL>', 'kubuka.png\n', '0000-00-00 00:00:00'),
(16, 'Misioneros Javerianos y Franciscanas Misioneras de María', 'Misioneros Javerianos, congregación cuya única finalidad es la misión Ad Gentes. Somos Franciscanas Misioneras de María, una congregación que es de diversas naciones y culturas, en un mundo fragmentado, optamos por vivir juntas. Como misioneros y misioneras queremos manifestar el rostro de Dios siendo una presencia que humanice al lado de los que sufren y son abandonados. Nos comprometemos con otros en el cuidado de la creación y al servicio de la paz, de la justicia, allí donde sea más necesario.', 'Campo de trabajo con inmigrantes del 11 al 24 de julio. Queremos vivir la fraternidad con nuestros hermanos y hermanas inmigrantes y ensanchar nuestro corazón a otras realidades, creciendo y formándonos como grupo de fe. Abrazar con nuestras vidas, como Jesús, la fragilidad y vulnerabilidad del inmigrante que sufre la indiferencia del distanciamiento de nuestros corazones. Acercamiento a otras religiones con el deseo de crear puentes y estrechar lazos.\n\nEn Tetuán, Marruecos para los campos de Inmigrantes es dar cariño al inmigrante y así ensanchar el propio corazón. También se descubre el trabajo de la Iglesia en minoría en medio musulmán y una visión del inmigrante fuera del propio país. Se reflexiona, se reza y se comparte.\n\nTenemos otras actividades en el Sur de Marruecos para finales de julio y principios de agosto y quizás algo que se realice en Camerún o Chad que está en proyecto para agosto 2020\n', 'Facebook:Misioneros.javerianos', '<EMAIL> y <EMAIL>', 'fmm-javieranos.jpg\n', '0000-00-00 00:00:00'),
(17, 'FUTURE FOR AFRICA', 'Future for Africa is a Ghanaian NGO working at a local level to promote and create an enabling future of hope for children in economically deprived using volunteering to provide and improve access to education, health, water and sanitation in rural communities in northern Ghana.', '- Teaching: Teach in partner schools on subjects such as mathematics, English, physical education, religious and moral education, ICT and Science. Under the supervision of locally trained teachers. Volunteers need not be qualified teachers to do so basic knowledge is sufficient for training the community whilst higher heights will be achieved at due cause.\n- Childcare: working with children that are deprived as a result of bad parenting or not having parents at all, volunteers will be able to have direct contact and help in catering for their needs to enable them feel at home and loved until they are integrated into the society.\n- Sports: our sport projects include football (soccer) which is the most common game in our world, basketball and handball volunteers with such special skill will help in the personal development of young sports men and women in the society.\n- Health care & sanitation: we will coordinate with some health centre and support from the Ghana Health Service to assist in giving medical needs to deprived and sick fellows who need medical attention \n- Construction: Working to improve the local infrastructure, educational facilities and Helping build our proposed training center and shelter. As a member of the construction project. Focusing on improving existing facilities and building on our land. From painting classrooms and creating board displays and plastering.', 'Website: www.future4afrika.org Instagram: @future4africa Twitter: @future4africagh Facebook: @future', '<EMAIL>', 'future4africa.png\n', '0000-00-00 00:00:00'),
(18, 'Asociación Pitote', 'Entidad sin animo de lucro que realiza actividades de ocio, deporte, educación y cultura de forma inclusiva.', 'Proyecto de deporte y de ocio donde realizamos diferentes actividades inclusivas en estos ámbitos. Estas actividades se realizan los sábados, gracias a las mismas los participantes se desarrollan a través de la interacción con personas con diferentes capacidades.\nTambién contamos con una semana de campamento, normalmente la primera semana de septiembre, y un campamento urbano la última semana de junio.', 'Facebook: <NAME>, Twitter: @asoc_pitote, instagram: @asociacion_pitote, youtube: Asociaci', '<EMAIL>', 'pitote.png\n', '0000-00-00 00:00:00'),
(19, 'AFS Intercultura España', 'AFS Intercultura es una organización educativa, no lucrativa, sin vinculaciones religiosas o políticas, y empeñada desde hace más de sesenta años en definir, fortalecer y generar aprendizajes en el campo de la interculturalidad. Nuestros programas de inmersión cultural dirigidos a alumnado y profesorado de más de sesenta países nos avalan en cada paso dado hasta el día de hoy.\nAFS Intercultura promueve la movilidad internacional de estudiantes y profesorado en experiencias de inmersión cultural intensivas (dos a seis meses) o anuales, en países como Sudáfrica, Alemania, Japón, Estados Unidos, Nueva Zelanda, Canadá o Francia entre otros destinos. Durante ese período los jóvenes acuden a clase en su nuevo instituto como un alumno más, y el profesorado se puede acercar durante sus vacaciones de verano a otras experiencias educativas en diferentes contextos culturales. \nPor otro lado, todos los años recibimos la visita de estudiantes enviados por nuestros socios internacionales de decenas de países que como los anteriores, estarán matriculados en centros españoles, enseñando y aprendiendo en su particular experiencia de inmersión cultural. En todo caso, para jóvenes participantes de envío o recepción, la experiencia sin duda cambiará sus vidas y les hará ganar en autonomía y autoestima, descubriendo su potencial como ciudadanos y ciudadanas globales. \n\n\nAFS Intercultura forma parte de AFS Intercultural Programs, que tiene su sede en Nueva York (EEUU) y goza de status consultivo ante el Consejo Económico y Social (ECOSOC) de la ONU (Organización de Naciones Unidas). Es miembro fundador de la Federación Europea para el Aprendizaje Intercultural (EFIL por sus siglas en inglés). EFIL agrupa a todas las entidades de AFS (28) presentes en los diferentes países europeos junto con Egipto, Túnez y Turquía. Esta organización, con sede en Bruselas, colabora con la Unión Europea en programas de educación intercultural, tiene rango consultivo ante la Organización de Naciones Unidas para la Educación, la Ciencia y la Cultura (UNESCO) y el Consejo de Europa. Además es miembro del European Youth Forum, una organización internacional creada por los consejos nacionales de la juventud y organizaciones no gubernamentales juveniles internacionales para representar los intereses de los/as jóvenes de toda Europa.\nAFS Intercultura pertenece al Consejo de la Juventud de España y está reconocida por el INJUVE (Instituto de la Juventud – Ministerio de Sanidad, Consumo y Bienestar Social) como entidad prestadora de servicios a la juventud.', 'Área de atención al Estudiante y a las Familias: \n• Tutorías\n• Orientaciones\n\nÁrea de atención a los centros educativos:\n• Acompañamiento\n• Acciones de sensibilización.\n\n\n\nÁrea de sensibilización y promoción:\n• Promoción de AFS Intercultura.\n• Promoción de los programas de AFS Intercultura.\n• Campañas de familias para acogimiento.\n• Campañas de voluntarios/as.\n\n\nÁrea de selección:\n• Entrevistas a candidatos de envío.\n• Entrevistas a familias de acogida.\n• Realización de jornadas de selección.\n', 'Instagram:afsintercultura_Esp y Facebook:AfsInterculturaEspana', '<EMAIL>', 'afs-intercultura.png\n', '0000-00-00 00:00:00'),
(20, '<NAME>', 'Tumaini es una entidad sin ánimo de lucro registrada desde el año 2013 que facilita la realización de viajes solidarios y voluntariado internacional para empoderar a pequeñas ONG de África, Asia y América Latina. Trabajamos en 8 países diferentes y formamos y acompañamos a personas que quieren colaborar para construir un mundo más justo y solidario. Creemos en los viajes como herramienta de sensibilización, para abrir mentes y cambiar realidades.', 'Trabajamos con 18 proyectos de diferentes ámbitos (educativos, medio ambiente, centros de rescate de animales) en India, Nepal, Tailandia, Camboya, Indonesia, Kenia, Perú y Bolivia', 'Facebook: viajessolidariostumaini, Twitter:ViajesTumaini y Instagram:viajestumaini\n', '<EMAIL>', 'viajes-tuamini.jpg\n', '0000-00-00 00:00:00'),
(21, 'Sociedad de Misiones Africanas', 'Solidarios es una asociación de voluntarios sociales con más de 30 años de trabajo reconocido con diferentes colectivos en exclusión social: personas sin hogar, personas mayores, con diagnóstico de enfermedad mental, en prisiones y en hospitales. Está Declarada de Utilidad Pública.', 'Todo el voluntariado (Aulas de cultura en prisiones / Ocio con personas con enfermedad mental / acompañamiento a mayores / atención a personas sin hogar / visitas hospitalarias)', 'Facebook, Twitter y Instagram: @solidarios_es', '<EMAIL>', '', '0000-00-00 00:00:00'),
(22, 'Asociación BLUA', 'BLUA voluntariado, es una organización sin ánimo de lucro cuyo objetivo principal es la sensibilización hacia cuestiones ambientales impulsando la preservación de la biodiversidad de nuestro planeta por el bienestar de las generaciones futuras. Ofrece voluntariados internacionales de corta o larga estancia en proyectos de protección de fauna salvaje, conservación, educación medioambiental y desarrollo sostenible.', 'Blua conecta a voluntarios de cualquier parte del mundo con pequeñas y grandes ONG, Fundaciones, Reservas y Santuarios que trabajan en la protección de fauna salvaje, la conservación y educación medioambiental y el desarrollo sostenible seleccionados por su seriedad, ética y compromiso con el planeta. Los proyectos de voluntariado tienen una participación mínima de 1 o 2 semanas y algunos dan la oportunidad de realizar prácticas o desarrollar investigaciones o trabajos de grado.', 'Facebook e Instagram: bluavoluntariado.', '<EMAIL>', 'blua.jpg\n', '0000-00-00 00:00:00'),
(23, '<NAME>', 'Centro residencial para personas adultas con discapacidad intelectual y alto nivel de dependencia.', '<NAME>', 'Instagram:hogardonorione y Web: http://hogardonorione.org/', '<EMAIL>', 'don_orione.jpg\n', '0000-00-00 00:00:00'),
(24, 'AMAQTEDU', 'Voluntariado con personas sin hogar y en riesgo de exclusión por medio del arte. Actualmente, trabajando y desarrollando proyectos con Cáritas', 'Dos proyectos con Cáritas: Urgel y Laguna. En ambos centros, tenemos sesiones semanales: en Urgel son viernes y domingo; y en Laguna los viernes. \nPor otro lado, nos gustaría aumentar los talleres desarrollados y así, poder trabajar en más centros de Cáritas y con otras instituciones como Geranios.', 'Instagram: @amaqtedu', '<EMAIL>', 'amaqtedu.jpg\n', '0000-00-00 00:00:00'),
(25, 'Youth, Wake-Up!', 'Somos un grupo de jóvenes comprometidos, profesionales y voluntarios que trabajamos en la transformación social de colectivos desfavorecidos en zonas de conflicto, a través de la involucración de los jóvenes en proyectos de cooperación y acción social. Los jóvenes locales se convierten así en los promotores de un cambio real en sus comunidades. \n\nA través de la colaboración intercultural entre jóvenes y entidades locales llevamos a cabo múltiples proyectos que contribuyen a la reducción de las desigualdades derivadas del contexto social, político y económico. Nuestras líneas de acción se centran en: el fomento de la paz y del voluntariado local, sanidad, vivienda, educación y ocio. \n\nGracias al trabajo de nuestros voluntarios llegamos a colectivos especialmente desfavorecidos en estas zonas de conflicto: jóvenes y niños en riesgo de exclusión social o con diversidad funcional, personas mayores sin recursos sociales o financieros, familias vulnerables y personas con enfermedades mentales.', 'Desde Youth, Wake-Up! ofrecemos dos programas de voluntariado:\n- Un programa de Larga Estancia- de 3 meses de duración, durante los meses de septiembre a junio, donde desarrollamos los proyectos mencionados anteriormente.\n- Un programa de verano- de 1 mes de duración, julio o agosto completo. Durante los meses de verano desarrollamos 2 summer camps además de dar apoyo a los proyectos desarrollados a lo largo del año.', 'Instagram: @youthwup Facebook: @youtwup Web: www.youthwakeup.org', '<EMAIL>', 'youth-wake-up.png\n', '0000-00-00 00:00:00'),
(26, 'Cooperatour', 'ONGd especializada en la organización de voluntariados internacionales y viajes solidarios.', 'Proyectos educativos, medioambientales y sanitarios en Asia, Latinoamérica y África.', 'Instagram, Facebook, Youtube, Pinterest: Cooperatour', '<EMAIL>', 'cooperatour.jpeg\n', '0000-00-00 00:00:00'),
(27, 'FUNDACIÓN HOGAR SÍ (RAIS)', 'Acompañamiento a la inserción sociolaboral de personas sin hogar', 'Proyectos de voluntariado en distintos proyectos con personas sin hogar (pisos semitutelados, pisos housing first, housing led, centro de día, etc)', 'Web: https://hogarsi.org/', '<EMAIL>', '', '0000-00-00 00:00:00'),
(28, 'AFAIJ Asociación para la Formación y las Actividades Interculturales para la Juventud', 'Voluntariado internacional, programa voluntariado europeo (Servicio Voluntario Europeo y Cuerpo Europeo de Solidaridad).', 'Voluntariado de distintos proyectos sociales o culturales en el extranjero de corta o larga duración', 'Facebook:AFAIJ-Voluntariado Internacional, Instagram: afaijspain y Web: https://afaij.org/', '<EMAIL>', 'afaij.gif\n', '0000-00-00 00:00:00'),
(29, 'ASOCIACIÓN SÍNDROME 22q11', 'La Asociación Síndrome 22q11, es una entidad sin ánimo de lucro constituida en el año 2011, por un grupo de seis familias apoyadas por el Departamento de Genética del Hospital Universitario La Paz, que, ante la poca información y conocimiento sobre el Síndrome 22q11.2, se unen con el objetivo de sensibilizar y visualizar socialmente su existencia, ofrecer apoyo y acompañamiento social y luchar por los derechos e intereses de las familias y afectados.\n\nEn el desarrollo de sus actividades la figura del voluntariado social es una pieza clave en la atención a estas personas, de ahí que la Asociación siempre muestre gran interés en participar de las acciones que de ellas y para ellas derive.\n\nEn definitiva, es un grupo humano abierto y participativo, que pretende crear un futuro mejor y más solidario para todas las familias y afectados por el Síndrome 22q11.2.', 'La Asociación realiza proyectos a través de los que la figura del voluntariado es un valor añadido en las actividades, especialmente la de los más pequeños.\n- Respiro familiar: proyecto de ocio inclusivo destinado a diferentes franjas de edad. Los niños afectados por el Síndrome 22q11 tienen dificultades para relacionarse al carecer de habilidades sociales. Este espacio pretende ser un escenario idóneo para que estos niños y niñas tengan un espacio dedicado a la diversión y a la amistad. Está abierto a afectados, hermanos, primos, amigos del cole y al barrio.\n- Café para familias: actividades de ocio dirigidas mientras lo padres tienen un espacio dónde compartir experiencias y miedos. Este espacio para las familias es muy importante ya que entre ellos se ofrecen esa parte de entendimiento emocional dónde el profesional no siempre puede llegar.', 'Facebook: 22q.es, Twitter: @22q_es y Web: http://www.22q.es', '<EMAIL>', '22q.jpg\n', '0000-00-00 00:00:00'),
(30, 'Cooperación Internacional', 'Asociación que busca formar a la gente joven en una cultura de la solidaridad', 'Programa de voluntariado estable con distintos colectivos y Friday Revolution', 'twitter:@cooperacion, Instagram: cooperacion_internacional_ong y Youtube: Cooperación Internacional', '<EMAIL>', 'cooperacion-iternacional.png\n', '0000-00-00 00:00:00'),
(31, '<NAME>', 'Proyecto guatemalteco que ofrece un servicio educativo, sanitario y alimentario a 140 niñxs en situación extrema de pobreza en Santa María de Jesús.', 'Finalización del centro de Secundaria\nAmpliación del centro de educación de primaria \nApoyo educativo en las aulas', '@jardin.de.amor', '<EMAIL>', 'jardin-de-amor.png\n', '0000-00-00 00:00:00'),
(32, 'Fundación <NAME>', 'Promovemos el desarrollo humano de niñas y niños, jóvenes y principalmente mujeres en situación de vulnerabilidad socioeconómica, a través de una educación integral de calidad que actúa como motor de cambio social.', 'Proyectos de cooperación internacional Norte - Sur, Sur- Norte y Europa', 'Facebook, Instagram: Fundación <NAME>', '<EMAIL>', 'fmmv.jpg\n', '0000-00-00 00:00:00'),
(33, 'Asociación Bokatas', 'Acompañamiento a personas sin hogar', '1. Realizar ruta de calle de acompañamiento a personas sin hogar una vez a la semana. \n2. Acompañamiento en el centro Tandem de Bokatas\n3. Charlas y talleres en colegios y otras instituciones con el objetivo de sensibilizar sobre el sinhogarismo.', 'Facebook e instagram: Asociación Bokatas', '<EMAIL>', 'bokatas.png\n', '0000-00-00 00:00:00'),
(34, 'Sociedad de Misiones Africanas', 'Sacerdotes y laicos comprometidos con la Primera Evangelización y el desarrollo de los pueblos de África que aún no conocen a Jesucristo y los más abandonados.', 'Conocimiento e integración en la vida de los pueblos de África y trabajo en apoyo a niños y acompañamiento a enfermos. Compartir con ellos la fe en Jesucristo que nos mueve a ser misioneros.', 'Facebook, Instagram:Sociedad de Misiones Africanas', '<EMAIL>', '', '0000-00-00 00:00:00'),
(35, 'Fundación Soñar Despierto', 'Soñar Despierto es una Fundación con presencia en Barcelona, Madrid, Valencia y Sevilla, que desde hace más de una década colabora con los centros de acogida donde viven menores que, por diversos motivos, han tenido que ser separados de sus familias y han pasado a ser tutelados por el Estado.\n\nEl objetivo principal de Soñar Despierto radica en conseguir que todos ellos cuenten con las mismas oportunidades que el resto de niños de su edad, independientemente de las circunstancias que les han tocado vivir.\n\nNuestra misión es acompañar y apoyar a los menores residentes en centros de acogida, centros abiertos y centros residenciales procedentes de ambientes marginales y familias desestructuradas, desde el momento de su entrada el centro hasta que alcanzan la autonomía.\n\nY además, fomentar la participación social de la ciudadanía a través de acciones como el voluntariado implicado y responsable.', 'Los programas de voluntariado en Soñar Despierto son:\n\n- Educar Sonrisas, en el que un voluntario acude al centro de acogida a ayudar siempre al mismo niño/grupo de niños con los deberes del colegio o a mejorar en una asignatura en concreto.\n\nLa mayoría de los menores residentes en estos centros presentan un gran retraso en los estudios que, a medida que crecen, limita sus posibilidades a la hora de dar el salto a la vida adulta. Desde Soñar Despierto buscamos que los niños encuentren en los voluntarios un referente y una figura de apoyo que les acompañe a la hora de sacar adelante sus estudios.\n\n- Amigos Para Siempre, en el que un voluntario acude a la residencia durante el fin de semana a disfrutar de un tiempo de ocio con un grupo de niños (salir a merendar, ir a jugar al parque, dar un paseo...).\n\nPese a que los menores están perfectamente atendidos en los centros, presentan muchas veces grandes carencias afectivas y una serie de limitaciones a la hora de disfrutar del tiempo de ocio. En Soñar Despierto creemos en la importancia de que un niño juegue y se divierta, para ello, confiamos plenamente en la capacidad de nuestros voluntarios para hacerles disfrutar y sentirse especiales durante unas horas a la semana.', 'https://www.instagram.com/sdespiertomadrid/', '<EMAIL>', 'sonar-despierto.png\n', '0000-00-00 00:00:00'),
(36, 'Religiosos Camilos', 'Dedicados a la humanización de la salud, cuidamos y enseñamos a cuidar', 'Voluntariado con personas mayores, final de la vida, acompañamiento en demencia, posibilidad de campo de trabajo y voluntariado internaconal', 'https://www.camilos.es o en facebook y twiter: <NAME>', '<EMAIL>', 'religiosos-camilos.jpg\n', '0000-00-00 00:00:00'),
(37, '<NAME>', 'Proyecto de jóvenes que nace en la Parroquia de Santa María de Majadahonda. Los jóvenes que forman parte de CMT vienen a vivir una experiencia de misión junto a los misioneros de la caridad.', 'Ofrece una experiencia de misión junto a las Misioneras de la Caridad en verano en diferentes detinos, este último año estuvimos en Tánger, Barcelona, Sabadell, Lisboa y Zurich.\nDurante el año hay reuniones mensuales para formarse antes de la experiencia de verano.\nViviendo siempre tres pilares Grupo, Trabajo y Oración.', '<EMAIL>', '<EMAIL>', 'cmt.jpg\n', '0000-00-00 00:00:00'),
(38, 'Misioneras de la Caridad', 'Orden religiosa fundada por Madre Teresa de Calcuta.', 'A sus casas se puede ir como voluntarios tanto a las de Madrid como a las de el resto del mundo.', '<EMAIL>', '<EMAIL>', 'misioneras_caridad.png\n', '0000-00-00 00:00:00'),
(39, 'Fundación Síndrome de Down de Madrid (Down Madrid)', 'Desde Down Madrid trabajamos por mejorar la calidad de vida de las personas con síndrome de Down u otras discapacidades intelectuales y sus familias.', 'Voluntariado en diferentes actividades ocio, deporte, centro ocupacional, TIC, viajes y campamentos urbanos, entre otros.', 'Twiteer, Facebook. Instagram. Linkedin', '<EMAIL>', '', '0000-00-00 00:00:00'),
(40, 'MasFuturo', 'Ayuda sin límite a madres en exclusión social y a seguir adelante con su embarazo', 'Recogida de alimentos, clases particulares, clases profesionales', '@masfuturo, #ResjuanPabloII', '<EMAIL>', 'mas-futuro.jpg\n', '0000-00-00 00:00:00'),
(41, 'ASOCIACIÓN REDMADRE', 'La Asociación REDMADRE ofrece una ayuda real y concreta a todas aquellas madres que, por cualquier causa o circunstancia se encuentran solas ante un embarazo.', 'Voluntariado en nuestros almacenes y recogida de donaciones, además por supuesto de transmitir nuestro mensaje donde se encuentren.', 'Instagram y Facebook:ASOCIACIÓN REDMADRE', '<EMAIL>', 'red-madre.jpg\n', '0000-00-00 00:00:00'),
(42, 'TECHO INTERNACIONAL', 'Buscamos la superación de la pobreza extrema en Latinoamérica desde el trabajo en conjunto entre jóvenes voluntario y pobladores de los asentamientos a través de la construcción de viviendas de emergencia.', 'Desde la coordinación de ares de construcción, voluntariado, fondos y cooperación, hasta voluntario en cualquiera de nuestras areas tanto comerciales como sociales. El liderazgo facilitador es nuestro goal standard en cuanto a voluntariado se trata.', '@techo_eu', '<EMAIL>', '', '0000-00-00 00:00:00'),
(43, '<NAME>', 'Te lo cuento en persona ;)', '¿No los conoces.....?', 'https://twitter.com/CaritasDPUMad ; https://www.instagram.com/caritasmadriduniversitaria/', '<EMAIL>', 'caritas.jpg\n', '0000-00-00 00:00:00'),
(44, 'Inakuwa Asociación', 'Inakuwa es un proyecto de cooperación en el que estudiantes y profesionales de todas las disciplinas se unen para lograr el desarrollo económico y social de comunidades sin recursos a través de lo único que se necesita para cambiar el mundo: la educación. Lo hacemos a través de un modelo integral de desarrollo donde cooperan cursos educativos, formación de formadores, trabajo con autoridades locales y una importante alianza con la universidad.', 'Los universitarios podrán formar parte de nuestros proyectos de cooperación, que tienen lugar en Rau (Moshi, Tanzania) y en Madrid, como voluntarios-cooperantes que desarrollarán un curso/taller, una investigación o un trabajo de formación a formadores o a autoridades locales. También podrán colaborar de manera puntual con la asociación y con el sustento logístico de la misma.', 'Instagram y facebook: @inakuwa_official y correo: <EMAIL>', '<EMAIL>', 'inakuwa.png\n', '0000-00-00 00:00:00'),
(45, 'ASOCIACIÓN TAOUS (ASOT)', 'Asociación Taous (ASOT) es un programa de voluntariado de bajo coste\ndedicado a proporcionar a sus participantes la oportunidad de desarrollar\ndistintos proyectos en el Marruecos más auténtico.\nASOT surge a partir de la colaboración entre un miembro de la asociación\namericana Peace Corps Volunteer y los jóvenes marroquíes que residen en la\nzona donde se realiza el programa.', 'Nuestro proyecto o labor consiste entre otros valores, en:\nFacilitar el entretenimiento de los niños y jóvenes de Boudnib y alrededores, a\ntravés de actividades guiadas que promuevan un uso sano y productivo del ocio\ny tiempo libre.\nAportar conocimientos de idiomas (español, inglés, francés…), a fin de que esto\nfavorezca las oportunidades laborales y la calidad de vida de los chicos.\nElaborar proyectos educativos basados en distintos ámbitos (educación para la\nsalud, medio ambiente, sostenibilidad, convivencia, paz y\ndesarrollo…) que favorezcan el desarrollo personal de los jóvenes.\nFavorecer la educación en valores, los cuales son comunes para todos,\nindependientemente de nuestra cultura, religión o país. De este modo,\ntrabajaremos la igualdad, el respeto, el compañerismo, la tolerancia, la\nsolidaridad, la cortesía…etc.\nConcienciar al voluntario de que, el turismo responsable, la ayuda humanitaria y\nla cooperación internacional son las mejores vías para viajar y conocer el\nmundo, al mismo tiempo que permiten abordar desafíos comunes.', 'Facebook (Asociación Taous-Asot); Twitter (@asociacionTaous); Instagram (@asociacionTaous); Website ', '<EMAIL>', 'taous.jpg\n', '0000-00-00 00:00:00'),
(46, 'ONGAWA', 'ONGAWA Ingeniería para el Desarrollo Humano es una ONG (Organización No Gubernamental) de Desarrollo que tiene como misión poner la tecnología al servicio del desarrollo humano para construir una sociedad más justa y solidaria. Luchamos para acabar con la pobreza y las desigualdades, especialmente las de género, y ponemos especial atención a los colectivos más vulnerables. Nos comprometemos con procesos de desarrollo que consigan resultados sostenibles en el tiempo y trabajamos por la realización plena de los derechos humanos, especialmente los de agua y saneamiento. En España, impulsamos una ciudadanía global, formada por personas comprometidas que no toleren la pobreza, con un pie en la calle y otro en las redes y aspiramos a contribuir a una universidad comprometida con el desarrollo humano sostenible.', 'Nuestra propuesta en la Universidad se presenta bajo el programa Global Challenge: \n- QUÉ ES: programa de voluntariado universitario en el que los estudiantes son protagonistas y por el que han pasado más de 3.000 alumnos/as\n- DESDE CUÁNDO El programa lleva 5 años en la UPM, universidad pionera en impulsarlo. Durante este curso se ha extendido a diez Universidades públicas de España. \n- CUÁL ES EL OBJETIVO: fortalecer las capacidades del alumnado para contribuir a un mundo más justo y sostenible, empezando por la Universidad\n- CON QUÉ ACTIVIDADES:, a través de espacios de formación, debate y participación\n- CÓMO SE TRABAJA: Todas las actividades están diseñadas por y para estudiantes, acompañadas por la Dirección de Cooperación y profes de UPM y por ONGAWA e Inspiraction\n- QUÉ APORTA A LAS/OS VOLUNTARIAS/OS (dicho por ellas/os): Trabajo en equipo, comunicación y escucha activa, trabajo en red, gestión positiva de conflictos, optimismo en la transformación social, conocimiento de la realidad, capacidad de análisis crítico de la realidad…\n', 'https://twitter.com/OngawaUni, https://www.instagram.com/globalchallenge.ongawa/', '<EMAIL>', 'ongawa.jpg\n', '0000-00-00 00:00:00'),
(47, 'Asociación Lux Mundi', 'Asociación católica formada por laicos dedicada a la formación y a poner en contacto con experiencias de voluntariado a los interesados.', 'Formaciones, voluntariados de invierno, experiencias misioneras en verano.', 'Instagram: @a.luxmundi', '<EMAIL>', 'lux-mundi.jpg\n', '0000-00-00 00:00:00'),
(48, 'Jatari', 'Somos una asociación que colaboramos con la misión de San Ramón, en el distrito de Chanchamayo, Perú. Y como las ganas de ayudar no se nos quitan en Madrid, colaboramos con distintas órdenes religiosas y asociaciones para hacer voluntariados.', 'En verano una misión católica en Perú, en la que trabajamos con niños en su mayoría, y en Madrid tenemos apoyo escolar en parroquias de Vallecas.', '@misionjatari', '<EMAIL>', 'jatari.png\n', '0000-00-00 00:00:00'),
(49, 'Fundación Entreculturas', 'ONGD Cooperacion Internacional basada en educación.', 'Voluntariado internacional de corta y larga duración.', 'Integram, facebook y twitter:Fundación Entreculturas', '<EMAIL>', '', '0000-00-00 00:00:00'),
(50, 'ASOCIACIÓN BARRO', 'Barró es una asociación socioeducativa, sin ánimo de lucro, que se inició en 1994 en el barrio de Vallecas de Madrid. Pretende intervenir, de forma sistemática y continuada, en coordinación con diferentes grupos e instituciones del entorno. Su finalidad fundamental es crear un espacio socioeducativo, de desarrollo personal y comunitario, para población en situación de vulnerabilidad, marginación y/o exclusión social.', '.\n', '@ASOCIACIONBARRO', '<EMAIL>', 'barro.gif\n', '0000-00-00 00:00:00'),
(51, 'AMUSI', 'AMUSI es una ONG formada por jóvenes con ganas de colaborar en proyectos socioeducativos en diferentes regiones de Mozambique. Surgió de estas mismas ganas comunes de aportar lo que cada uno sabe en su campo para crear proyectos que pudieran mejorar la educación de los jóvenes.', 'A día de hoy contamos con dos proyectos entrelazados: la organización de un campamento de verano para los alumnos de la Escuela Primaria de Lumbo (Nampula) y la creación de una \'semana cultural\' con actividades lúdico-formarivas a impartir en un Jardim Infantil de la ciudad de Nampula.', 'Instagram: amusi_mozambique / www.amusi.org / <EMAIL>', '<EMAIL>', 'amusi.jpg\n', '0000-00-00 00:00:00'),
(52, 'MISION CEBU', 'Voluntariado de mision en filipinas. Organización que nace hace más de 3 años a través de la parroquia de Santo Tomás Moro, Majadahonda. Somos todo jóvenes emprendedores con la voluntad de trabajar y servir al prójimo. En este contexto, estamos involucrados más de 60 personas y sigue creciendo a medida que pasa el tiempo. Trabajamos durante el año para poder financiar la ayuda en Filipinas y nos apoyamos y colaboramos con otras asociaciones y parroquias tanto europeas como filipinas.', 'Proceso de Construcción e instalación completa en infraviviendas de paneles solares y aerogeneradores\n\nConstrucción de colectores de agua de lluvia y red de abastecimiento al barrio de pulangbato. Filipinas.\n\nTerminar cerramientos y cubierta de famrschool para la educación y formación agrícola de los filipinos\n\nTerminar cerramientos, solado e interior de capilla', 'Instagram @misioncebu y misioncebu.org', '<EMAIL>', 'mision-cebu.png\n', '0000-00-00 00:00:00'),
(53, 'SETEMMCM', 'Somos una ong que trabaja para erradicar las injusticias entre los paises del Norte y del Sur , trabajandolo mediante la sensibilización y educación , apoyando el Comercio Justo', 'Estancias de uno o dos meses en verano en Paises del Sur , para conocer en primera persona otra realidad muy distinta a la que vivimos , viajando a Bolivia, Honduras, Guatemala, India, Nepal ,', '@setem_MCM', '<EMAIL>', 'setem.jpg\n', '0000-00-00 00:00:00'),
(54, 'Por la Sonrisa de un Niño', 'PSE (Por la Sonrisa de un niño) Es ONG francesa que se encuentra en Camboya. Se encarga de proteger y escolarizar a niños desde infantil hasta formaciones profesionales, para asegurarles un trabajo y un futuro digno fuera de las calles. Actualmente también tiene proyectos destinados a la formación de madres y padres de las familias acogidas por la ONG.\n\nLa pagina web es la siguiente: https://www.psncamboya.org', 'Durante el mes de verano si eres mayor de 19 años puedes ir como voluntario (monitor) al Programa de Continuidad Escolar que se realiza para que en el mes de agosto, en el que los niños no tienen clases, no vuelvan a las calles o los vertederos. \n\nAdemás de cómo monitor de tiempo libre, se puede ir como dentista o médico, ya que existen proyectos destinados a la salud. \n\nTambién se puede participar en España dentro de distintos equipos con la finalidad de recaudar fondos y dar a conocer PSE.', 'Instagram: @pse_espana Twitter: @PSNCamboya Facebook: pse.porlasonrisadeunnino', '<EMAIL>', 'por-la-sorisa-nino.png\n', '0000-00-00 00:00:00'),
(55, 'Cruz Roja Española', 'La Cruz Roja Española es una institución humanitaria, de carácter voluntario y de interés público. Trabajamos en las áreas de conocimiento de socorros, intervención social, empleo, salud, educación, medio ambiente y en el ámbito internacional. Trabajamos cada día para estar más cerca de las personas.', 'Hay una gran variedad de proyectos disponibles desde actividades con infancia en diferentes contextos, realizando entrevistas personales para acoger y valorar las necesidades de las personas que solicitan ayuda a Cruz Roja, ayuda y seguimiento en itinerarios hacia el empleo, o realizando talleres de diferentes temáticas (salud, medio ambiente, prevención de conductas violentas etc).', 'Cruz Roja Comunidad De Madrid (Fb, Twitter, Instagram)', '<EMAIL>', 'cruz-roja.png\n', '0000-00-00 00:00:00');
INSERT INTO `ongs` (`id_ong`, `nombre_ong`, `descripcion_ong`, `voluntariado_ong`, `rs_ong`, `email_ong`, `logo_ong`, `fecha_inscripcion`) VALUES
(56, 'Fundación Siempre Adelante, ONGD', 'Es una ONGD para el Desarrollo, sin ánimo de lucro, promovida por la Superiora General de las Religiosas Concepcionistas Misioneras de la Enseñanza, inscrita en el Registro de Fundaciones Asistenciales del Ministerio de Trabajo y Asuntos Sociales con el nº 28/1.325, por Orden TAS/3982/2004, de 5 de noviembre (BOE 2 de diciembre de 2004), y provista de CIF: G-84021120.\nLos fines de interés general de la Fundación son:\na) Contribuir a la educación y formación integral de personas, grupos y pueblos de los países en vías de desarrollo y de los núcleos de población que sufren las consecuencias de la pobreza y marginación en el llamado cuarto mundo, como medio que promueva su desarrollo equilibrado e integral, y ayude a avanzar hacia la fraternidad entre los países y personas.\nb) Desarrollar actividades de asistencia social y despertar en las personas la toma de conciencia de la dignidad de todo hombre y la responsabilidad de colaborar en su desarrollo humano y cultural.\nc) Impulsar acciones de voluntariado a nivel nacional y en países en vías de desarrollo, así como organizar y vertebrar su actuación en la Fundación.', 'Proyectos Misioneros Concepcionistas, voluntariado de verano en República Dominicana (Consuelo), Guinea Ecuatorial (Evinayong) y Filipinas (Bacolod), un mes, de primeros de julio a primeros de agosto. Los proyectos se llevan a cabo en un lugar de misión Concepcionista y están tutelados por religiosas de la Congregación que viven en los lugares donde se desarrolla la experiencia misionera. Los voluntarios residen en la casa de las religiosas, y la Congregación se hace cargo de los gastos de alojamiento y manutención. La participación se realiza, ante todo, como un compromiso de fe cristiana, incluyendo otros elementos de importancia como comunicación de experiencias, integración en la cultura del país, formación... Campos de cooperación del voluntario: clases de refuerzo a niños y jóvenes de Primaria y Bachiller, actividades deportivas, trabajos manuales, talleres formativos, juegos, animación de celebraciones religiosas, formación de adultos y de profesorado, visitas y apoyo a familias necesitadas. El proyecto de Bacolod tiene lugar durante el curso escolar, por lo que los voluntarios también se integrarán en las clases regulares.\nPara los voluntarios, hay un encuentro formativo y organizativo. En un fin de semana del mes de abril se tiene el encuentro en Madrid con el grupo de voluntarios que van a participar en los proyectos misioneros que se llevan a cabo en los lugares descritos. se organizan los proyectos, las actividades y distribución de tareas de acuerdo a la realidad del lugar de destino, terminando con la celebración de la Eucaristía del envío misionero. También se tiene formación online, desde que se inicia el proceso de selección hasta la realización del proyecto en sí. Semanas después de regresar del proyecto, tiene lugar un nuevo encuentro de evaluación. \nLos voluntarios derrochan generosidad, trabajan en equipo, lo que viven en estos días lo integran en su vida y se lo cuentan a familiares, amigos, colegios, y apoyan económicamente las actividades de "Siempre Adelante".', 'Facebook, YouTube, Twitter, Instagram', '<EMAIL>', 'siempre-adelante.jpg\n', '0000-00-00 00:00:00'),
(57, 'Asociación Antares', 'Antares se dedica a ofrecer a actividades de ocio y deporte a personas con discapacidad intelectual con el fin de fomentar su inclusión en la sociedad mientras las familias cuidadoras pueden optar a oportunidades de conciliación y respiro familiar.', 'PROGRAMA DE OCIO Y DEPORTE:Nuestro programa de ocio y deporte se lleva a cabo todos los fines de semana del año excepto el mes de agosto. Realizamos una media de cuatro actividades cada sábado y tres los domingos. Todas ellas en entornos comunitarios. Entre estas actividades, por ejemplo, se programan visitas a museos, cine, teatro, restaurantes, discotecas, o se visitan espectáculos deportivos como partidos de fútbol, baloncesto, waterpolo, o se practica algún deporte como natación.\nPROGRAMA DE ESTANCIAS Y RESPIRO FAMILIAR: Dos veces al mes nos vamos de campamento con personas con discapacidad intelectual. Disfrutamos de fines de semana, puentes y dos semanas de vacaciones en agosto. Los destinos son ciudades de todo el país donde aprovechamos para realizar turismo y fomentar la normalización del colectivo.\nPROGRAMA DE CONCILIACIÓN: Se trata de la programación de actividades extraescolares de lunes a jueves de 17:30 a 19:30. Se realiza deporte adaptado, taller de música y piscina. Por otro lado en periodos no lectivos como Navidad y verano, se llevan a cabo campamentos urbanos en los cuales se ofertan actividades de ocio y deporte. \n', 'Twitter e Instagram @AntaresAsoc FAcebook; @asociacionantares', '<EMAIL>', 'antares.jpg\n', '0000-00-00 00:00:00'),
(58, 'ASOCIACIÓN HONTANAR', 'Los Franciscanos TOR fundan en 1.993 Hontanar con la finalidad de prevención de la marginación y la atención a personas con adicciones en proceso de rehabilitación y reinserción.', 'Hontanar desarrolla un programa de atención a personas con adicciones, PISO DE INSERCIÓN SOCIAL, para favorecer el tratamiento ambulatorio de las personas con mayor vulnerabilidad por falta de apoyo familiar o no ser este conveniente.', 'facebook: <NAME> y en https://asociacionhontanar.org', '<EMAIL>', 'asoc-hontanar.jpg\n', '0000-00-00 00:00:00'),
(59, 'Fundación La Semilla', 'La Fundación La Semilla es una organización sin ánimo de lucro que hace teatro solidario y dona lo que recauda a los proyectos que selecciona de distintas ONGs y asociaciones, colaborando en la consecución de sus fines sociales, ya sea en España o en el tercer mundo. Todos sus miembros son voluntarios.', 'Se puede colaborar en diversas tareas: actuación en obras de teatro, publicidad, selección de proyectos solidarios, búsqueda de teatros y ONGs, acomodar en teatros, gestión de redes sociales, e-mail y web, luces y sonido, decorados, maquillaje y peluquería, vestuario, diseño de imagen (carteles), contacto con medios de comunicación, participación en ferias, composición y dirección musical, grabación de narraciones, música y coros de canciones, gestión de reservas, coreografía, dirección y guión, etc.\n', 'www.facebook.com/fundacionlasemilla, www.twitter.com/semillateatro, www.instagram.com/semillateatro,', '<EMAIL>', 'fundacion-la-semilla.jpg\n', '0000-00-00 00:00:00'),
(60, 'REDES (Red de Entidades para el Desarrollo Solidario).', 'REDES en una agrupación de más de 50 entidades de Cooperación Internacional. Somos mayoritariamente ONGD ligadas a instituciones religiosas y otras organizaciones de inspiración cristiana que deseamos trabajar, conjuntamente, para ser más significativos y eficaces en nuestro compromiso a favor de la justicia y la transformación del mundo, desde una dimensión constitutiva del anuncio del Evangelio, es decir, de la misión de la Iglesia.', 'Proyectos de Voluntariado Internacional.', 'www.redes-ongd.org / www.instagram.com/redes_ongd / www.youtube.com/channel/UCc8MUZ6b5725tvA7QspnOvg', '<EMAIL>', 'redes.jpg\n', '0000-00-00 00:00:00'),
(61, 'Fundación Desarrollo y Asistencia', 'En Desarrollo y Asistencia llevamos a cabo programas de acompañamiento a personas que se encuentran en situación de necesidad por soledad, enfermedad, exclusión, discapacidad u otras causas.\nComenzamos nuestra actividad en diciembre de 1995. Desde entonces hemos ido creciendo apoyándonos siempre en el deseo de ayudar con nuestro acompañamiento persona a persona y nuestros valores fundamentales como son el reconocimiento de la dignidad de la persona y el respeto a su libertad, el apoyo a la familia y la constancia y el compromiso en el trabajo.', 'Apoyo a Personas Sin Hogar consiste en la realización de tareas de acompañamiento a personas sin hogar para tratar de paliar su soledad y devolverles su autoestima a través de la compañía, el afecto, los pequeños detalles, la conversación y la escucha activa.\nActividades con Personas con Discapacidad salidas de ocio y tiempo libre para personas con discapacidad intelectual que tienen este problema. Son alumnos de Centros de Educación Especial y Ocupacionales, seleccionados por los profesionales de estos centros, como las personas que más lo necesitan, ellos y sus familias.\nPrograma En Línea objetivo el impartir una serie de refuerzos educativos a niños escolarizados de 8 a 12 años con riesgos de exclusión social.\n', 'Facebook:DesarrolloyAsistencia o Web:www.desarrolloyasistencia.org ', '<EMAIL>', 'desarrollo-y-asistencia.png\n', '0000-00-00 00:00:00'),
(62, 'Cooperating Volunteers', 'Cooperating volunteers es una empresa que organiza experiencia de voluntariado e intercambio cultural.\n\nCooperating volunteers nació para ofrecer un tipo de experiencia diferente; una experiencia auténtica en contacto con la comunidad local y proyectos o instituciones sociales reales (hospitales, centros educativos, etc). \n\nCooperating Volunteers ofrece una experiencia de voluntariado. Participar en los proyectos, asistirlos, alojarse en los alojamientos con nuestros equipos locales, disfrutar y conocer cultura, son unas de las tantas actividades que hacen de ella una experiencia única. \n\nCuando nuestro equipo está en destino, lo más lindo de nuestra experiencia como coordinadores es visualizar el factor empatico que tiene este tipo de experiencia. En destino, el objetivo del voluntario es conocer su cultura, su gente y sentir como ellos. \n\nCooperating Volunteers está conformado por un equipo de profesionales con extensa experiencia en coordinación y gestión de voluntariado. Nos caracterizamos por estar estar las 24 horas los 365 días del año asistiendo a los proyectos, equipo en destino y a los voluntarios. \n\nLos esperamos para vivir más que una experiencia de voluntariado.', 'Los estudiantes tiene la opción de poder participar en más de 30 países. En cada uno de ellos, puede optar por diferentes programas dependiendo del perfil de cada uno de los interesados. Programas de educación, construcción, cuidado de niños, médicos, deportes, conservación de vida salvaje, conservación de vida Silvestre y más, son los diferentes proyectos en los cuales los voluntarios pueden participar.\n\nA nivel general todos los interesados pueden participar siempre y cuando sea mayor de edad (se aceptan voluntarios de 17 años a determinados destinos presentando autorización firmada por los padres o tutor legal) y presenten antecedentes no penales.\n\nLos proyectos como médicos, asistencia clínica en los proyectos con animales y otros, los voluntarios deberán presentar más requisitos según las tareas / responsabilidades que realice el proyecto elegido.\n\nCada año los voluntarios son cada vez más. Esto nos demuestra que más personas optar por una experiencia más responsable y auténtica. Alejándonos de lo convencional.\n\nDesde el 2014 Cooperating Volunteers ha gestionado más de 15.000 voluntarios.\n\nEste verano 2019, han viajado por los diferentes destinos más de 900 voluntarios.\n\nLos destinos más solicitados son Uganda, India, Kenia, Ghana, Tanzania, Nepal, Indonesia, Camboya, Costa Rica y Panama. \n', 'Instagram:cooperatingvolunteers', '<EMAIL>', '', '0000-00-00 00:00:00'),
(63, 'YouSocial Volunteer', 'YouSocial Volunteer es una plataforma social que te ofrece experiencias de voluntariado únicas en el extranjero, en las que vivirás una gran aventura mientras conectas, aprendes y compartes con una nueva cultura.\nNuestros proyectos, que en línea con los Objetivos de Desarrollo Sostenible, abarcan ámbitos como la Educación de calidad, la Empleabilidad, Salud y Bienestar; generan un impacto positivo en las comunidades menos favorecidas de Nepal, India, Kenia y Filipinas.\nEl equipo de YouSocial, con más de 15 años de experiencia en voluntariado internacional, te proporcionará recursos clave para preparar tu viaje, dar visibilidad a tu proyecto, asesorándote para que tu voluntariado sea una experiencia inspiradora y con impacto tanto a nivel personal como profesional.\nSumérgete en esta nueva aventura con YouSocial Volunteer solicitando tu plaza en www.yousocialvolunteer.com!" \n', 'EMPRENDIMIENTO SOCIAL\nDesarrollo de un sistema de aguas en Filipinas\nDesarrollo de una bebida orgánica en Filipinas\nDesarrollo de una panaderia local en Filipinas\nTaller de cocina y nutrición en India\n\nEDUCACION y SALUD\nEducación de calidad para niños en kenya\nEducación y clases de refuerzo en Nepal\nEducación, Nutrición, salud e higiene en Nepal\nEducación con niños en Filipinas\nClinic de futbol con niños en filipinas \nDesarrollo profesional de jóvenes en India\n\nPERIODISMO Y ARTE\nEmpoderamiento de mujeres a través de la musica en India\nDesarrollo de un canal de noticias en India\nCinematografia y medios digitales en India\n\n', 'Instagram,Facebook, Twitter y Youtube:YOUSOCIALVOLUNTEER', '<EMAIL>', 'you-social.png\n', '0000-00-00 00:00:00'),
(64, 'AMAFE', 'AMAFE, Asociación Madrileña de Amigos y Familiares de Personas con Esquizofrenia y, próximamente, Asociación Española de Apoyo en Psicosis, es una entidad sin ánimo de lucro, de ámbito provincial, inscrita en el Registro Nacional de Asociaciones, declarada de Utilidad Pública desde 1996 y certificada en Calidad según la ISO 9001.\n\nAMAFE, fue constituida en el año 1989 por familiares de personas con enfermedad mental que sintieron la necesidad de dotarse de una Entidad que pudiera dar una respuesta integral y efectiva a las cuestiones relativas a la salud mental de sus seres queridos. Desde esa fecha ha ido incrementando progresivamente su base social con la incorporación de nuevos miembros. En la actualidad, está integrada por más de 600 socios, que a su vez representan a miles de familias con algún miembro afectado de psicosis o esquizofrenia.', 'Programas anuales de voluntariado', 'Facebook;amafe.pagina.oficial oTwitter:Amafesemueve', '<EMAIL>', 'amafe.jpg\n', '0000-00-00 00:00:00'),
(65, 'UNIVERSIDAD POLITECNICA DE MADRID. DIRECCIÓN DE COOPERACION', 'La Dirección de Área para Latinoamérica y Cooperación al Desarrollo desarrolla una serie de acciones que tiene como objetivo comenzar a promover una labor en el ámbito de la Cooperación al Desarrollo fundamentalmente entre los profesores y alumnos de la UPM y a centrar la acción de la UPM en este campo en las misiones y capacidades específicas de la Universidad. La cooperación al desarrollo de la UPM está orientada en la línea que marca la nueva Agenda 2030 de Naciones Unidos con sus Objetivos de Desarrollo Sostenible (ODS), apostando por las siguientes líneas:\n• Una visión global del desarrollo, trabajando en la solución de problemas globales al desarrollo, desde la realidad local donde se ubica la UPM.\n• El acercamiento a los problemas de sostenibilidad, tal como señala la nueva Agenda 2030, englobando los aspectos de pobreza y de inequidad, que se trabajaba desde la cooperación al desarrollo. Esto implica ver la sostenibilidad desde los prismas económico, social y medioambiental.\n• Una apuesta multidisciplinar de la UPM, buscando sinergias entre distintos grupos de investigación y de cooperación que pueden aportar distintas soluciones a los retos de la Agenda.\n• Un punto focal de trabajo en red con otros actores de la cooperación, como son agencias, empresas y ONGD; aprovechando la capacidad de la universidad como dinamizadora.\nLos tipos de acciones enmarcadas en la normativa de la UPM son:\n• Acciones de sensibilización\n• Acciones de apoyo a la actividad voluntaria en cooperación\n• Acciones en el campo de la formación\n• Actividades de asistencia técnica y proyectos de desarrollo, \n• Acciones de investigación\n\n', 'Ayudas de viaje de cooperación para la realización de TFG/TFM o prácticas curriculares. Programa de Voluntariado Internacional de las Universidades Públicas de la Comunidad de Madrid.', '', '<EMAIL>', 'upm.png\n', '0000-00-00 00:00:00'),
(66, '<NAME>', 'Apoyar a las mujeres más vulnerables en Anse-á-pitres, Haití. Nuestro proyecto ha ido evolucionando con el objetivo de que las mujeres consigan mayor autonomía, desarrollo y empoderamiento. Para ello, se llevan a cabo una serie de herramientas y habilidades dirigidas a las mujeres y sus hijos para que sean autosuficientes el día de mañana.', 'En Haití tenemos los campamentos de verano, y el resto del año recibimos voluntarios según las necesidades. Por otro lado, tenemos el voluntariado en España con diferentes departamentos con el objetivo de realizar eventos y demás.', '<EMAIL>', '<EMAIL>', 'flores-kiskeya.png\n', '0000-00-00 00:00:00'),
(67, '<NAME>. Turismo Accesible.', 'Consiste en una plataforma en la que se exponen vídeos en forma de reportaje que cuentan la experiencia, en lengua de signos española, de los viajes realizados por el autor. El proyecto se materializa en vídeos publicados en el canal de YouTube: El Sordo Fisgón, y en la página web: www.elsordofisgon.com. También aparece en Facebook. El objetivo es eliminar la multitud de barreras de acceso a la información que encuentran las personas sordas en el ámbito del turismo.\n', '#¿NOMBRE?', 'Web: www.elsordofisgon.com// Canal de Youtube <NAME> // Facebook: El Sordo Fisgón', '<EMAIL>', 'el-sordo-fisgon.jpg\n', '0000-00-00 00:00:00'),
(68, 'Médicos', 'Nueva ONG', '', NULL, NULL, NULL, '2020-08-31 22:17:46'),
(69, 'Voluntas Vincit', 'adf', 'f', NULL, NULL, NULL, '2020-08-31 20:08:09');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `proyecto`
--
CREATE TABLE `proyecto` (
`id_proyecto` int(11) NOT NULL,
`tipo_proyecto` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='proyecto a realizar en el voluntariado';
--
-- Volcado de datos para la tabla `proyecto`
--
INSERT INTO `proyecto` (`id_proyecto`, `tipo_proyecto`) VALUES
(1, 'Ancianos'),
(2, 'Sin recursos'),
(3, 'Enfermos'),
(4, 'Cooperación Social'),
(5, 'Misión'),
(6, 'Niños'),
(7, 'Discapacitados'),
(8, 'Animales'),
(9, 'Proyecto Científico'),
(10, 'Otro');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `voluntariado_lugar`
--
CREATE TABLE `voluntariado_lugar` (
`id_ong` int(11) NOT NULL,
`id_voluntariado` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `voluntariado_lugar`
--
INSERT INTO `voluntariado_lugar` (`id_ong`, `id_voluntariado`) VALUES
(1, 1),
(1, 8),
(2, 9),
(3, 2),
(3, 8),
(4, 9),
(4, 1),
(4, 10),
(4, 2),
(4, 3),
(4, 4),
(4, 5),
(4, 6),
(4, 8),
(5, 8),
(6, 9),
(6, 1),
(6, 4),
(6, 5),
(6, 8),
(7, 2),
(7, 7),
(8, 8),
(9, 9),
(10, 1),
(11, 8),
(12, 9),
(12, 1),
(13, 9),
(14, 9),
(14, 1),
(15, 8),
(16, 7),
(17, 8),
(18, 9),
(19, 9),
(19, 1),
(20, 2),
(20, 4),
(20, 5),
(20, 8),
(21, 9),
(21, 8),
(22, 2),
(22, 3),
(22, 4),
(22, 5),
(22, 8),
(23, 9),
(24, 9),
(25, 2),
(26, 2),
(26, 4),
(26, 5),
(26, 8),
(27, 1),
(28, 10),
(29, 9),
(30, 9),
(30, 1),
(31, 4),
(31, 5),
(32, 1),
(32, 10),
(32, 2),
(32, 4),
(32, 5),
(33, 9),
(33, 1),
(34, 7),
(35, 9),
(35, 1),
(36, 9),
(36, 4),
(36, 5),
(37, 1),
(37, 10),
(37, 7),
(38, 9),
(38, 1),
(38, 10),
(38, 2),
(38, 3),
(38, 4),
(38, 5),
(38, 6),
(38, 7),
(39, 9),
(40, 9),
(40, 1),
(40, 10),
(41, 9),
(41, 1),
(42, 9),
(42, 4),
(42, 5),
(43, 9),
(44, 9),
(44, 7),
(45, 7),
(46, 9),
(47, 9),
(47, 7),
(48, 9),
(48, 4),
(48, 5),
(49, 1),
(49, 2),
(49, 4),
(49, 5),
(49, 7),
(50, 9),
(51, 7),
(52, 2),
(53, 2),
(53, 4),
(53, 5),
(53, 7),
(54, 2),
(54, 8),
(55, 9),
(56, 2),
(56, 4),
(56, 5),
(56, 7),
(57, 9),
(58, 9),
(59, 9),
(59, 1),
(60, 1),
(60, 2),
(60, 3),
(60, 4),
(60, 5),
(60, 6),
(60, 7),
(61, 9),
(62, 10),
(62, 2),
(62, 3),
(62, 4),
(62, 5),
(62, 6),
(62, 7),
(63, 2),
(63, 7),
(64, 9),
(65, 2),
(65, 4),
(65, 5),
(65, 7),
(66, 4),
(66, 5),
(67, 1),
(68, 1),
(68, 1),
(68, 1),
(68, 3),
(68, 4);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `voluntariado_proyecto`
--
CREATE TABLE `voluntariado_proyecto` (
`id_ong` int(11) NOT NULL,
`id_proyecto` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_spanish_ci;
--
-- Volcado de datos para la tabla `voluntariado_proyecto`
--
INSERT INTO `voluntariado_proyecto` (`id_ong`, `id_proyecto`) VALUES
(1, 1),
(1, 10),
(2, 1),
(2, 6),
(2, 7),
(2, 3),
(2, 4),
(2, 2),
(3, 6),
(3, 4),
(3, 2),
(4, 1),
(4, 6),
(4, 7),
(4, 3),
(4, 2),
(4, 5),
(5, 6),
(5, 5),
(6, 6),
(6, 4),
(7, 6),
(7, 3),
(7, 4),
(8, 7),
(9, 6),
(10, 10),
(10, 5),
(11, 6),
(12, 7),
(12, 3),
(13, 10),
(14, 4),
(14, 10),
(15, 10),
(16, 10),
(16, 5),
(17, 6),
(17, 3),
(17, 4),
(17, 2),
(18, 6),
(18, 7),
(19, 10),
(20, 1),
(20, 6),
(20, 7),
(20, 8),
(20, 3),
(20, 4),
(21, 1),
(21, 7),
(21, 3),
(21, 2),
(22, 8),
(22, 10),
(23, 7),
(24, 2),
(25, 1),
(25, 6),
(25, 7),
(25, 3),
(25, 4),
(25, 2),
(26, 1),
(26, 6),
(26, 7),
(26, 8),
(26, 3),
(26, 4),
(26, 2),
(27, 3),
(27, 4),
(27, 2),
(28, 1),
(28, 6),
(28, 7),
(28, 8),
(28, 3),
(28, 4),
(28, 2),
(29, 6),
(29, 7),
(30, 1),
(30, 6),
(30, 7),
(30, 3),
(30, 2),
(31, 6),
(31, 2),
(32, 1),
(32, 6),
(32, 2),
(32, 5),
(33, 2),
(34, 1),
(34, 6),
(34, 3),
(34, 4),
(34, 2),
(34, 5),
(35, 6),
(36, 1),
(36, 3),
(36, 4),
(36, 5),
(37, 1),
(37, 6),
(37, 7),
(37, 2),
(37, 5),
(38, 1),
(38, 6),
(38, 7),
(38, 3),
(38, 2),
(38, 5),
(39, 7),
(40, 6),
(40, 10),
(40, 5),
(41, 10),
(42, 4),
(42, 10),
(43, 1),
(43, 6),
(43, 3),
(43, 2),
(43, 5),
(44, 10),
(45, 6),
(45, 4),
(46, 10),
(47, 1),
(47, 6),
(47, 7),
(47, 3),
(47, 2),
(47, 5),
(48, 6),
(48, 3),
(48, 4),
(48, 2),
(48, 5),
(49, 6),
(49, 4),
(49, 2),
(49, 5),
(50, 6),
(50, 4),
(50, 10),
(51, 6),
(51, 4),
(51, 2),
(52, 6),
(52, 4),
(52, 2),
(52, 5),
(53, 6),
(53, 4),
(54, 6),
(54, 7),
(54, 4),
(54, 2),
(54, 10),
(55, 1),
(55, 6),
(55, 7),
(55, 3),
(55, 4),
(55, 2),
(56, 6),
(56, 4),
(56, 5),
(57, 7),
(58, 10),
(59, 10),
(60, 10),
(61, 1),
(61, 7),
(61, 3),
(62, 1),
(62, 6),
(62, 7),
(62, 8),
(62, 3),
(62, 4),
(62, 2),
(63, 6),
(63, 4),
(63, 2),
(64, 7),
(65, 9),
(66, 10),
(67, 7),
(67, 10),
(68, 10),
(68, 10);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `lugar`
--
ALTER TABLE `lugar`
ADD PRIMARY KEY (`id_voluntariado`);
--
-- Indices de la tabla `ongs`
--
ALTER TABLE `ongs`
ADD PRIMARY KEY (`id_ong`);
--
-- Indices de la tabla `proyecto`
--
ALTER TABLE `proyecto`
ADD PRIMARY KEY (`id_proyecto`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `lugar`
--
ALTER TABLE `lugar`
MODIFY `id_voluntariado` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT de la tabla `ongs`
--
ALTER TABLE `ongs`
MODIFY `id_ong` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=70;
--
-- AUTO_INCREMENT de la tabla `proyecto`
--
ALTER TABLE `proyecto`
MODIFY `id_proyecto` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
/*!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 */;
|
SELECT DISTINCT
[Server] = originating_server
FROM [monitorDB].[jobsapp].[V_JobsInfo]
ORDER BY
[Server]
|
<gh_stars>0
--
-- Drop tables
--
DROP TABLE IF EXISTS `ljsa_log_files`;
DROP TABLE IF EXISTS `ljsa_log`;
DROP TABLE IF EXISTS `ljsa_schedulazioni_notifica`;
DROP TABLE IF EXISTS `ljsa_schedulazioni_parametri`;
DROP TABLE IF EXISTS `ljsa_schedulazioni_conf`;
DROP TABLE IF EXISTS `ljsa_schedulazioni`;
DROP TABLE IF EXISTS `ljsa_attivita_notifica`;
DROP TABLE IF EXISTS `ljsa_attivita_parametri`;
DROP TABLE IF EXISTS `ljsa_attivita_conf`;
DROP TABLE IF EXISTS `ljsa_attivita`;
DROP TABLE IF EXISTS `ljsa_classi`;
DROP TABLE IF EXISTS `ljsa_log_schedulatore`;
DROP TABLE IF EXISTS `ljsa_schedulatori`;
DROP TABLE IF EXISTS `ljsa_credenziali`;
DROP TABLE IF EXISTS `ljsa_servizi`;
DROP TABLE IF EXISTS `ljsa_progressivi`;
|
<filename>clipper-cli/src/test/scripts/v_Subj3Professor.sql
DROP VIEW v_Subj3Professor CASCADE;
CREATE OR REPLACE VIEW v_Subj3Professor AS
SELECT innerRel.x1 AS att1
FROM (
SELECT ca_0.individual AS x1
FROM concept_assertion ca_0
WHERE ca_0.concept=70
) as innerRel
|
<reponame>mazhelis/redshift
{{ redshift.fetch_column_data_sql() }}
|
-- *** Dialog ***
create or replace function f_render_dialog (
p_dynamic_action in apex_plugin.t_dynamic_action,
p_plugin in apex_plugin.t_plugin )
return apex_plugin.t_dynamic_action_render_result
as
-- Application Plugin Attributes
l_background_color apex_appl_plugins.attribute_01%type := p_plugin.attribute_01;
l_background_opacitiy apex_appl_plugins.attribute_01%type := p_plugin.attribute_02;
-- DA Plugin Attributes
l_modal apex_application_page_items.attribute_01%type := p_dynamic_action.attribute_01; -- y/n
l_close_on_esc apex_application_page_items.attribute_01%type := p_dynamic_action.attribute_02; -- y/n
l_title apex_application_page_items.attribute_01%type := p_dynamic_action.attribute_03; -- text
l_hide_on_load apex_application_page_items.attribute_01%type := upper(p_dynamic_action.attribute_04); -- y/n
l_on_close_visible_state apex_application_page_items.attribute_01%type := lower(p_dynamic_action.attribute_05); -- prev, show, hide
l_action apex_application_page_items.attribute_01%type := lower(p_dynamic_action.attribute_06); -- open,close
-- Return
l_result apex_plugin.t_dynamic_action_render_result;
-- Other variables
l_html varchar2(4000);
l_affected_elements apex_application_page_da_acts.affected_elements%type;
l_affected_elements_type apex_application_page_da_acts.affected_elements_type%type;
l_affected_region_id apex_application_page_da_acts.affected_region_id%type;
l_affected_region_static_id apex_application_page_regions.static_id%type;
-- Convert Y/N to True/False (text)
-- Default to true
function f_yn_to_true_false_str(p_val in varchar2)
return varchar2
as
begin
return
case
when p_val is null or lower(p_val) != 'n' then 'true'
else 'false'
end;
end f_yn_to_true_false_str;
begin
-- Debug information (if app is being run in debug mode)
if apex_application.g_debug then
apex_plugin_util.debug_dynamic_action (
p_plugin => p_plugin,
p_dynamic_action => p_dynamic_action);
end if;
-- Cleaup values
l_modal := f_yn_to_true_false_str(p_val => l_modal);
l_close_on_esc := f_yn_to_true_false_str(p_val => l_close_on_esc);
-- If Background color is not null set the CSS
-- This will only be done once per page
if l_background_color is not null and l_action != 'close' then
l_html := q'!
body .ui-widget-overlay{
background-image: none ;
background-color: %BG_COLOR%;
opacity: %OPACITY%;
}!';
l_html := replace(l_html, '%BG_COLOR%', l_background_color);
l_html := replace(l_html, '%OPACITY%', l_background_opacitiy);
apex_css.add (
p_css => l_html,
p_key => 'ui.oosdialog.background');
end if;
-- Hide Affected Elements on Load
if l_hide_on_load = 'Y' AND l_action != 'close' then
l_html := '';
select
affected_elements,
lower(affected_elements_type),
affected_region_id,
aapr.static_id
into
l_affected_elements,
l_affected_elements_type,
l_affected_region_id,
l_affected_region_static_id
from apex_application_page_da_acts aapda, apex_application_page_regions aapr
where 1=1
and aapda.action_id = p_dynamic_action.id
and aapda.affected_region_id = aapr.region_id(+);
if l_affected_elements_type = 'jquery selector' then
l_html := 'apex.jQuery("' || l_affected_elements || '").hide();';
elsif l_affected_elements_type = 'dom object' then
l_html := 'apex.jQuery("#' || l_affected_elements || '").hide();';
elsif l_affected_elements_type = 'region' then
l_html := 'apex.jQuery("#' || nvl(l_affected_region_static_id, 'R' || l_affected_region_id) || '").hide();';
else
-- unknown/unhandled (nothing to hide)
raise_application_error(-20001, 'Unknown Affected Element Type');
end if; -- l_affected_elements_type
apex_javascript.add_onload_code (
p_code => l_html,
p_key => null); -- Leave null so always run
end if; -- l_hide_on_load
-- APEX 5.0 #1 Close all open dialogs before submitting page
apex_javascript.add_onload_code (
p_code => '$.ui.oosdialog.closeBeforeApexSubmit();',
p_key => 'ui.oosdialog.onpageload'); -- Only load once.
-- RETURN
if l_action = 'open' then
l_result.javascript_function := '$.ui.oosdialog.daDialog';
l_result.attribute_01 := l_modal;
l_result.attribute_02 := l_close_on_esc;
l_result.attribute_03 := l_title;
l_result.attribute_04 := l_on_close_visible_state;
elsif l_action = 'close' THEN
l_result.javascript_function := '$.ui.oosdialog.daClose';
else
raise_application_error(-20001, 'Unknown Action Type');
end if;
return l_result;
end f_render_dialog;
|
<reponame>bulain/boot-demo
create or replace view v_demo_blog as
select t.* from demo_blog t;
|
INSERT INTO task (Title, Description) VALUES ('My First Task', 'Take the trash out');
INSERT INTO task (Title, Description) VALUES ('My Second Task', 'Clean the bathroom'); |
<gh_stars>0
--
-- Programacion basica en SQL
-- ===========================================================================
--
-- La tabla `data` tiene la siguiente estructura:
--
-- K0 CHAR(1)
-- K1 INT
-- c12 FLOAT
-- c13 INT
-- c14 DATE
-- c15 FLOAT
-- c16 CHAR(4)
--
-- Escriba una consulta que retorne los primeros cinco
-- registros de la tabla `data` ordenados por fecha.
--
-- Rta/
-- K0 K1 c12 c13 c14 c15 c16
-- 0 A 20 938.16 300 2016-09-12 0.19 BECB
-- 1 C 15 370.58 900 2016-10-01 0.11 GCDD
-- 2 E 22 118.77 900 2016-10-29 0.32 GEFE
-- 3 B 12 999.72 800 2016-11-09 0.26 FCGD
-- 4 E 14 832.44 800 2016-11-22 0.39 EGFD
--
-- >>> Escriba su codigo a partir de este punto <<<
--
SELECT * from tbl ORDER BY c14 LIMIT 5;
|
ALTER TABLE [dbo].[Company]
ADD [Insurance] BIT DEFAULT 0 NOT NULL;
GO
ALTER TABLE [dbo].[Event]
ADD [Insurance] BIT DEFAULT 0 NOT NULL;
GO
|
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 2018-01-10 04:46:49
-- 服务器版本: 10.1.29-MariaDB
-- PHP Version: 7.1.12
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: `xphp_test`
--
-- --------------------------------------------------------
--
-- 表的结构 `log_base`
--
CREATE TABLE `log_base` (
`id` int(11) NOT NULL,
`company_id` int(11) UNSIGNED NOT NULL DEFAULT '0',
`module` varchar(20) DEFAULT NULL COMMENT '所属模块',
`obj_id` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '操作记录所关联的对象id,如现货id 订单id',
`uid` int(11) UNSIGNED NOT NULL DEFAULT '0' COMMENT '操作者id,0为系统操作',
`user_name` varchar(32) DEFAULT '' COMMENT '操作者用户名',
`real_name` varchar(255) DEFAULT NULL,
`page` varchar(100) DEFAULT '' COMMENT '页面',
`pre_status` tinyint(3) UNSIGNED DEFAULT NULL,
`cur_status` tinyint(3) UNSIGNED DEFAULT NULL,
`action` varchar(20) DEFAULT NULL COMMENT '操作动作',
`remark` varchar(100) DEFAULT '' COMMENT '动作',
`pre_data` varchar(1000) DEFAULT '{}' COMMENT '操作记录前的数据,json格式',
`cur_data` varchar(1000) DEFAULT '{}' COMMENT '操作记录前的数据,json格式',
`ip` varchar(15) DEFAULT '' COMMENT '操作者ip地址 ',
`time` int(11) UNSIGNED DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `log_runtime_error`
--
CREATE TABLE `log_runtime_error` (
`id` int(10) UNSIGNED NOT NULL,
`md5` varchar(32) NOT NULL,
`file` varchar(255) NOT NULL,
`line` smallint(6) UNSIGNED NOT NULL,
`time` int(10) UNSIGNED NOT NULL,
`date` date NOT NULL,
`err` varchar(32) NOT NULL DEFAULT '',
`errstr` varchar(255) NOT NULL DEFAULT ''
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- 表的结构 `xphp_cache_key`
--
CREATE TABLE `xphp_cache_key` (
`key` varchar(100) NOT NULL,
`module` varchar(64) DEFAULT NULL,
`datetime` datetime DEFAULT NULL,
`expire` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- 转存表中的数据 `xphp_cache_key`
--
INSERT INTO `xphp_cache_key` (`key`, `module`, `datetime`, `expire`) VALUES
('1', 'list', NULL, NULL),
('2', 'list', NULL, NULL),
('3', 'lsit', NULL, NULL);
-- --------------------------------------------------------
--
-- 表的结构 `xphp_user`
--
CREATE TABLE `xphp_user` (
`id` int(11) UNSIGNED NOT NULL,
`name` varchar(60) NOT NULL DEFAULT '',
`phone` varchar(20) NOT NULL,
`password` varchar(32) NOT NULL DEFAULT '',
`email` varchar(50) NOT NULL DEFAULT '',
`status` tinyint(2) UNSIGNED NOT NULL DEFAULT '1' COMMENT '用户状态:1正常,2禁用',
`reg_time` int(11) UNSIGNED NOT NULL DEFAULT '0',
`last_login_time` int(11) UNSIGNED NOT NULL DEFAULT '0',
`company_id` int(11) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户表';
--
-- Indexes for dumped tables
--
--
-- Indexes for table `log_base`
--
ALTER TABLE `log_base`
ADD PRIMARY KEY (`id`),
ADD KEY `uid` (`uid`) USING HASH,
ADD KEY `obj_id` (`obj_id`) USING BTREE,
ADD KEY `like_query` (`uid`,`action`,`remark`) USING BTREE COMMENT '组合模糊查询索引',
ADD KEY `time` (`time`) USING BTREE,
ADD KEY `company_id` (`company_id`) USING HASH,
ADD KEY `remark` (`remark`) USING BTREE;
--
-- Indexes for table `log_runtime_error`
--
ALTER TABLE `log_runtime_error`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `file_line_unique` (`md5`),
ADD KEY `date` (`date`);
--
-- Indexes for table `xphp_cache_key`
--
ALTER TABLE `xphp_cache_key`
ADD PRIMARY KEY (`key`),
ADD UNIQUE KEY `module_key` (`key`,`module`) USING BTREE,
ADD KEY `module` (`module`),
ADD KEY `expire` (`expire`);
--
-- Indexes for table `xphp_user`
--
ALTER TABLE `xphp_user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `phone_unique` (`phone`) USING BTREE,
ADD KEY `phone` (`phone`,`password`),
ADD KEY `email` (`email`);
--
-- 在导出的表使用AUTO_INCREMENT
--
--
-- 使用表AUTO_INCREMENT `log_base`
--
ALTER TABLE `log_base`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- 使用表AUTO_INCREMENT `log_runtime_error`
--
ALTER TABLE `log_runtime_error`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=618;
--
-- 使用表AUTO_INCREMENT `xphp_user`
--
ALTER TABLE `xphp_user`
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=161;
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 */;
|
load data local infile "result.csv" into table podcast FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.