sql stringlengths 6 1.05M |
|---|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 20, 2016 at 11:27 AM
-- Server version: 5.6.14
-- PHP Version: 5.5.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 utf8 */;
--
-- Database: `db_mytofah`
--
-- --------------------------------------------------------
--
-- Table structure for table `about_us`
--
CREATE TABLE IF NOT EXISTS `about_us` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) DEFAULT NULL,
`content` text,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `about_us`
--
INSERT INTO `about_us` (`id`, `title`, `content`, `status`) VALUES
(1, 'About Us', '<br><p>THIS IS FOR TESTING ONLY....<br></p>', 1);
-- --------------------------------------------------------
--
-- Table structure for table `blogs`
--
CREATE TABLE IF NOT EXISTS `blogs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`blog_title` varchar(100) DEFAULT NULL,
`blog_description` text,
`blog_category` varchar(100) DEFAULT NULL,
`author` varchar(50) DEFAULT NULL,
`created_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`featured_image` text,
`status` int(11) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `blogs`
--
INSERT INTO `blogs` (`id`, `blog_title`, `blog_description`, `blog_category`, `author`, `created_date`, `featured_image`, `status`) VALUES
(1, 'My blog', 'This is my first blog here..<br>', '["2","3"]', '<NAME>', '2016-04-02 10:05:39', NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `blog_category`
--
CREATE TABLE IF NOT EXISTS `blog_category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_name` varchar(50) DEFAULT NULL,
`category_slug` varchar(50) DEFAULT NULL,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `blog_category`
--
INSERT INTO `blog_category` (`id`, `category_name`, `category_slug`, `status`) VALUES
(1, 'Uncategorized', 'uncategorized', 1),
(2, 'Marketing', 'marketing', 1),
(3, 'Business', 'business', 1),
(4, 'Blogging', 'blogging', 1);
-- --------------------------------------------------------
--
-- Table structure for table `contact_table`
--
CREATE TABLE IF NOT EXISTS `contact_table` (
`pk_contact_id` int(255) NOT NULL AUTO_INCREMENT,
`contact_name` varchar(255) NOT NULL,
`contact_email` varchar(500) NOT NULL,
`contact_reference` varchar(20) NOT NULL COMMENT 'google or facebook',
`is_invitation_sent` int(1) NOT NULL DEFAULT '0',
`fk_wedding_page_id` int(255) NOT NULL,
`fk_user_id` int(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`pk_contact_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `contact_us`
--
CREATE TABLE IF NOT EXISTS `contact_us` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) DEFAULT NULL,
`address` varchar(150) DEFAULT NULL,
`phone` varchar(15) DEFAULT NULL,
`email` varchar(50) DEFAULT NULL,
`content` text,
`status` int(1) DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `contact_us`
--
INSERT INTO `contact_us` (`id`, `title`, `address`, `phone`, `email`, `content`, `status`) VALUES
(1, 'Contact Us', '411, Princes Business Skypark, Agra-Bombay Rd, L I G Colony, Indore, Madhya Pradesh 452001', '0731 409 2411', '<EMAIL>', '<p>Welcome to My Tofah<br></p><p>Feel free to contact with us.<br></p>', 1);
-- --------------------------------------------------------
--
-- Table structure for table `login`
--
CREATE TABLE IF NOT EXISTS `login` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`useremail` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`siterole_id` int(2) DEFAULT '0',
`status` int(2) DEFAULT '1',
`is_reset` bit(1) DEFAULT b'0',
`reset_email_sent_date` datetime DEFAULT NULL,
`log_in` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `login`
--
INSERT INTO `login` (`id`, `useremail`, `password`, `siterole_id`, `status`, `is_reset`, `reset_email_sent_date`, `log_in`) VALUES
(1, '<EMAIL>', '123456', 1, 1, b'0', NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `payment_table`
--
CREATE TABLE IF NOT EXISTS `payment_table` (
`pk_payment_id` int(255) NOT NULL AUTO_INCREMENT,
`amount_paid` int(255) NOT NULL,
`payment_method` varchar(255) NOT NULL,
`payment_status` varchar(255) NOT NULL,
`payment_date` datetime NOT NULL,
`fk_contact_id` int(255) NOT NULL,
`fk_wedding_item_id` int(255) NOT NULL,
`fk_wedding_page_id` int(255) NOT NULL,
`fk_user_id` int(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`pk_payment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `picture_table`
--
CREATE TABLE IF NOT EXISTS `picture_table` (
`pk_picture_id` int(255) NOT NULL AUTO_INCREMENT,
`picture_path` text NOT NULL,
`fk_user_id` int(255) NOT NULL,
`fk_wedding_page_id` int(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`pk_picture_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `usersessiontable`
--
CREATE TABLE IF NOT EXISTS `usersessiontable` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`session_id` varchar(255) DEFAULT NULL,
`ip_address` varchar(255) DEFAULT NULL,
`user_agent` varchar(255) DEFAULT NULL,
`last_activity` varchar(255) DEFAULT NULL,
`user_id` int(11) DEFAULT '0',
`siterole_id` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=33 ;
--
-- Dumping data for table `usersessiontable`
--
INSERT INTO `usersessiontable` (`id`, `session_id`, `ip_address`, `user_agent`, `last_activity`, `user_id`, `siterole_id`) VALUES
(3, '<KEY>', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0', '1458559734', 1, 1),
(4, '<KEY>', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0', '1458559734', 1, 1),
(5, '<KEY>', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0', '1458559734', 1, 1),
(6, '<KEY>', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0', '1458559734', 1, 1),
(11, '21f734ec20373d88e43dc08e1eb9437070e36237', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0) Gecko/20100101 Firefox/44.0', '1458643339', 1, 1),
(15, 'd0b0a4d775080e494a07f4000d88957534f50864', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1458729451', 1, 1),
(16, '6d0a4c0b1e23d554378da49d30f4fd27037be467', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.5.2564.88 Safari/537.36', '1458730980', 1, 1),
(19, '1d8b47281076bbc653e0e7b7d0d380b602de1fdf', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1458741053', 1, 1),
(20, '6b8799343386fdcfea754b8f8c7f9e85ee64c71b', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.5.2564.88 Safari/537.36', '1458886659', 1, 1),
(21, '2441a1e6fe328636373f3c6e8378b09a0985a124', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1458889821', 1, 1),
(22, '85b63425ecf4a8505297371caac88ac125faffaa', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1458901836', 1, 1),
(24, 'f55476dce1c7717d9e7d542708d841af0b6e7f94', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.5.2564.88 Safari/537.36', '1458996712', 1, 1),
(25, '60344094eaf8e951ac21fe17055c7e7518a73fb4', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1459419377', 1, 1),
(26, 'f9004be2d787f8058b57a8b829756d806dd07f3f', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1459508705', 1, 1),
(29, '364b40fe4ba3821c38a2e58ca3c9877199f71905', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1459769831', 1, 1),
(31, '92576defa67ec4c984fbde617958efa61524ecb5', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1459941398', 1, 1),
(32, '8c90bd6fd54a889cfdeb75eb697a75d8a1fb654c', '::1', 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0', '1460034588', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `user_registration_table`
--
CREATE TABLE IF NOT EXISTS `user_registration_table` (
`pk_user_id` int(255) NOT NULL AUTO_INCREMENT,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`email` varchar(500) NOT NULL,
`password` varchar(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
`verification_status` int(11) NOT NULL DEFAULT '0',
`no_of_times` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`pk_user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `user_registration_table`
--
INSERT INTO `user_registration_table` (`pk_user_id`, `first_name`, `last_name`, `username`, `email`, `password`, `status`, `verification_status`, `no_of_times`) VALUES
(1, 'Ranjana', 'Bhagwat', '<PASSWORD>', '<EMAIL>', '123456', 1, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `wedding_page_table`
--
CREATE TABLE IF NOT EXISTS `wedding_page_table` (
`pk_wedding_page_id` int(255) NOT NULL AUTO_INCREMENT,
`your_name` varchar(255) NOT NULL,
`spouse_name` varchar(255) NOT NULL,
`wedding_date` date NOT NULL,
`venue` text NOT NULL,
`date_to_keep_list_open` datetime NOT NULL,
`no_of_days` int(11) NOT NULL,
`email` varchar(500) NOT NULL,
`phone` varchar(255) NOT NULL,
`couple_summary` text NOT NULL,
`is_amount_withdrawl` int(1) NOT NULL DEFAULT '0',
`fk_user_id` int(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`pk_wedding_page_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `wedding_page_table`
--
INSERT INTO `wedding_page_table` (`pk_wedding_page_id`, `your_name`, `spouse_name`, `wedding_date`, `venue`, `date_to_keep_list_open`, `no_of_days`, `email`, `phone`, `couple_summary`, `is_amount_withdrawl`, `fk_user_id`, `status`) VALUES
(1, 'adsfasf', 'asfasd', '0000-00-00', 'safdasf', '0000-00-00 00:00:00', 1, '<EMAIL>', '24234234324', 'adsfasf', 0, 1, 1),
(2, 'adasf', 'afdasf', '2016-04-29', 'afas', '0000-00-00 00:00:00', 1, '<EMAIL>', '54353453454', 'dasfasf', 0, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `wishlist_item_table`
--
CREATE TABLE IF NOT EXISTS `wishlist_item_table` (
`pk_wishlist_item_id` int(255) NOT NULL AUTO_INCREMENT,
`item_name` varchar(255) NOT NULL,
`item_specification` text NOT NULL,
`approx_cost` int(10) NOT NULL,
`web_url` text NOT NULL,
`amount_paid` int(10) NOT NULL,
`is_amount_completed` int(1) NOT NULL DEFAULT '0',
`fk_wedding_page_id` int(255) NOT NULL,
`fk_user_id` int(255) NOT NULL,
`status` int(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`pk_wishlist_item_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `wishlist_item_table`
--
INSERT INTO `wishlist_item_table` (`pk_wishlist_item_id`, `item_name`, `item_specification`, `approx_cost`, `web_url`, `amount_paid`, `is_amount_completed`, `fk_wedding_page_id`, `fk_user_id`, `status`) VALUES
(1, 'Jeans', 'hllo', 500, 'http://www.w3schools.com/', 0, 0, 1, 1, 1),
(2, 'Top', '', 490, 'http://www.w3schools.com/', 0, 0, 1, 1, 1),
(3, 'asdfsa', 'adfaf', 56, 'http://www.w3schools.com/', 0, 0, 2, 1, 1),
(4, 'Jeans', 'Hi', 500, 'http://www.w3schools.com/', 0, 0, 2, 1, 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 */;
|
START TRANSACTION;
CREATE TABLE `home_footer_list` (
`id` int(11) NOT NULL,
`link` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`status` int(11) NOT NULL,
`created_by` int(11) DEFAULT NULL,
`updated_by` int(11) DEFAULT NULL,
`deleted_by` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp(),
`updated_at` datetime DEFAULT NULL ON UPDATE current_timestamp(),
`deleted_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `home_footer_list`
ADD PRIMARY KEY (`id`),
ADD KEY `created_by` (`created_by`),
ADD KEY `updated_by` (`updated_by`),
ADD KEY `deleted_by` (`deleted_by`);
ALTER TABLE `home_footer_list`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
ALTER TABLE `home_footer_list`
ADD CONSTRAINT `home_footer_list_ibfk_2` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `home_footer_list_ibfk_3` FOREIGN KEY (`updated_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE,
ADD CONSTRAINT `home_footer_list_ibfk_4` FOREIGN KEY (`deleted_by`) REFERENCES `users` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE;
COMMIT;
|
<filename>database/db.sql
CREATE DATABASE tasksdb;
CREATE TABLE task(
id SERIAL PRIMARY KEY,
title VARCHAR(255) UNIQUE,
description VARCHAR(255)
); |
IF EXISTS (
SELECT * FROM dbo.sysobjects
WHERE id = object_id(N'[dbo].[Results]')
AND OBJECTPROPERTY(id, N'IsTable') = 1)
BEGIN
PRINT N'Dropping Table dbo.Results'
DROP Table [dbo].[Results]
END
GO
CREATE TABLE Results (
ResultID INT IDENTITY,
TrainingSetSize INT,
NGramLevel INT,
NGramPercent INT,
knnLevel INT,
SVMType VARCHAR(255),
SVMKernal VARCHAR(255),
C FLOAT,
G FLOAT,
Nu FLOAT,
Degree FLOAT,
Coef0 FLOAT,
RunNumber INT,
Accuracy FLOAT,
MinAccuracy FLOAT,
MaxAccuracy FLOAT,
TrainTimeTaken INT,
TestTimeTaken INT,
CorrectPositive INT,
CorrectNegative INT,
WrongPositive INT,
WrongNegative INT
) |
BEGIN;
ALTER TABLE song_requests
ALTER COLUMN session_id DROP NOT NULL,
ALTER COLUMN song_id DROP NOT NULL;
COMMIT;
|
<filename>NoteBooks/Curso de SQL/Queries_Platzi/ranks.sql
-- Windows Function
-- Aquí wl ranking se comparte al tener n campos iguales.
-- Al saltarse RNAK() deja gaps al tener campos con el mismo valor, para eliminar eso usamos DENSE_RANK
SELECT *,
RANK() OVER(PARTITION BY carrera_id ORDER BY colegiatura DESC) AS colegiatura_rank
FROM public.alumnos
ORDER BY carrera_id, colegiatura_rank;
-- Ideal para los rankis útiles.
SELECT *,
DENSE_RANK() OVER(PARTITION BY carrera_id ORDER BY colegiatura DESC) AS colegiatura_rank
FROM public.alumnos
ORDER BY carrera_id, colegiatura_rank;
-- Percent categoriza mediante porcentajes, : (rank-1)/(total de filas -1) E slo que hace percent rank
SELECT *,
PERCENT_RANK() OVER(PARTITION BY carrera_id ORDER BY colegiatura DESC) AS colegiatura_rank
FROM public.alumnos
ORDER BY carrera_id, colegiatura_rank; |
<gh_stars>1-10
-- +migrate Up
-- +migrate StatementBegin
CREATE FUNCTION upper_md5(val text) RETURNS text AS $$
BEGIN
RETURN upper(md5(val));
END; $$
LANGUAGE PLPGSQL;
-- +migrate StatementEnd
-- +migrate Down
DROP FUNCTION upper_md5;
|
-- https://www.hackerrank.com/challenges/15-days-of-learning-sql/problem
SELECT SUBMISSION_DATE,
(SELECT COUNT(DISTINCT HACKER_ID) FROM SUBMISSIONS SUB2
WHERE SUB2.SUBMISSION_DATE = SUB1.SUBMISSION_DATE AND
(SELECT COUNT(DISTINCT SUB3.SUBMISSION_DATE) FROM SUBMISSIONS SUB3
WHERE SUB3.HACKER_ID=SUB2.HACKER_ID AND
SUB3.SUBMISSION_DATE<SUB1.SUBMISSION_DATE)=dateDIFF(SUB1.SUBMISSION_DATE,'2016-03-01')),
(SELECT HACKER_ID FROM SUBMISSIONS SUB2 WHERE SUB2.SUBMISSION_DATE=SUB1.SUBMISSION_DATE
GROUP BY HACKER_ID ORDER BY COUNT(SUBMISSION_ID) DESC, HACKER_ID LIMIT 1) AS AL,
(SELECT NAME FROM HACKERS WHERE HACKER_ID=AL) FROM
(SELECT DISTINCT SUBMISSION_DATE FROM SUBMISSIONS) SUB1
GROUP BY SUBMISSION_DATE |
<filename>sqllineage/data/tpcds/query54.sql
with my_customers as (
select distinct c_customer_sk
, c_current_addr_sk
from (select cs_sold_date_sk sold_date_sk,
cs_bill_customer_sk customer_sk,
cs_item_sk item_sk
from catalog_sales
union all
select ws_sold_date_sk sold_date_sk,
ws_bill_customer_sk customer_sk,
ws_item_sk item_sk
from web_sales
) cs_or_ws_sales,
item,
date_dim,
customer
where sold_date_sk = d_date_sk
and item_sk = i_item_sk
and i_category = 'Women'
and i_class = 'maternity'
and c_customer_sk = cs_or_ws_sales.customer_sk
and d_moy = 12
and d_year = 1998
)
, my_revenue as (
select c_customer_sk,
sum(ss_ext_sales_price) as revenue
from my_customers,
store_sales,
customer_address,
store,
date_dim
where c_current_addr_sk = ca_address_sk
and ca_county = s_county
and ca_state = s_state
and ss_sold_date_sk = d_date_sk
and c_customer_sk = ss_customer_sk
and d_month_seq between (select distinct d_month_seq + 1
from date_dim
where d_year = 1998
and d_moy = 12)
and (select distinct d_month_seq + 3
from date_dim
where d_year = 1998
and d_moy = 12)
group by c_customer_sk
)
, segments as
(select cast((revenue / 50) as int) as segment
from my_revenue
)
insert overwrite table query54
select segment, count(*) as num_customers, segment * 50 as segment_base
from segments
group by segment
order by segment, num_customers
limit 100;
|
CREATE TABLE [dbo].[DBFileSnapshot] (
[SnapshotDate] DATETIME2 (2) NOT NULL,
[FileID] INT NOT NULL,
[Size] BIGINT NOT NULL,
[space_used] BIGINT NULL,
CONSTRAINT [PK_DBFileSnapshot] PRIMARY KEY CLUSTERED ([SnapshotDate] ASC, [FileID] ASC) WITH (DATA_COMPRESSION = PAGE),
CONSTRAINT [FK_DBFileSnapshot_DBFiles] FOREIGN KEY ([FileID]) REFERENCES [dbo].[DBFiles] ([FileID])
);
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DBFileSnapshot_FileID_SnapshotDate]
ON [dbo].[DBFileSnapshot]([FileID] ASC, [SnapshotDate] ASC)
INCLUDE([Size], [space_used]) WITH (DATA_COMPRESSION = PAGE);
|
<reponame>dram/metasfresh
--
-- clean up legacy AD_Column.ColumnClass
--
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=500062
;
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Field WHERE AD_Field_ID=500062
;
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=500061
;
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Column WHERE AD_Column_ID=500061
;
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Element_Trl WHERE AD_Element_ID=500060
;
-- 07.12.2016 15:09
-- URL zum Konzept
DELETE FROM AD_Element WHERE AD_Element_ID=500060
;
COMMIT;
alter table AD_Column drop ColumnClass; |
ALTER TABLE signup_meetings ADD allow_attendance number(1,0) default '0' NULL;
ALTER TABLE signup_ts_attendees ADD attended number(1,0) default '0' NULL;
|
CREATE table some_table(id int, tstamp timestamp);
INSERT INTO some_table (id, tstamp) VALUES (1, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (2, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (3, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (4, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (5, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (6, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (7, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (8, current_timestamp);
INSERT INTO some_table (id, tstamp) VALUES (9, current_timestamp);
|
##查询
#macro($taskQuery(subjectCode,classId,calDate,classIds))
select t.* from class_statistics_report t where t.subject_code=:subjectCode
#if(classId)
AND t.class_id=:classId
#end
#if(classIds)
AND t.class_id in (:classIds)
#end
#if(calDate)
AND t.cal_date=:calDate
#end
#end
##查询知识点分析情况
#macro($getKnowpointAnalysis(clazzId,textbookCode,startTime,endTime))
select LEFT(d.section_code,10) section_code,d.knowledge_code,sum(b.wrong_count) wrong_count,sum(b.right_count) right_count from homework a
inner join homework_question b on a.id = b.homework_id
and a.homework_class_id = :clazzId AND a.STATUS = 3 and a.right_rate is not null
and a.start_time >= :startTime and a.start_time < :endTime
inner join question_knowledge c on b.question_id = c.question_id
inner join knowledge_section d on d.knowledge_code = c.knowledge_code and d.section_code like :textbookCode
group by LEFT(d.section_code,10),d.knowledge_code
order by LEFT(d.section_code,10)
#end
##查询章节分析情况
#macro($getSectionAnalysis(clazzId,textbookCode,startTime,endTime))
select d.section_code,sum(b.wrong_count) wrong_count,sum(b.right_count) right_count from homework a
inner join homework_question b on a.id = b.homework_id
and a.homework_class_id = :clazzId AND a.STATUS = 3 and a.right_rate is not null
and a.start_time >= :startTime and a.start_time < :endTime
inner join question_knowledge c on b.question_id = c.question_id
inner join knowledge_section d on d.knowledge_code = c.knowledge_code and d.section_code like :textbookCode
group by d.section_code
order by LEFT(d.section_code,12) asc
#end
|
<filename>persistence/sql/migrations/20200819163013000000_add_client_id_subject_idx_to_access_and_refresh.sqlite.up.sql
-- sqlite support added later
|
USE [bisolutions_vvcb]
GO
IF EXISTS(SELECT * FROM sys.procedures WHERE NAME = 'B_Normal_Loan_CashRepayment_Subtract_To_Account')
BEGIN
/****** Object: StoredProcedure [dbo].[B_Normal_Loan_CashRepayment_Subtract_To_Account] Script Date: 10/13/2014 9:47:58 PM ******/
DROP PROCEDURE [dbo].[B_Normal_Loan_CashRepayment_Subtract_To_Account]
END
GO
/****** Object: StoredProcedure [dbo].[B_Normal_Loan_CashRepayment_Subtract_To_Account] Script Date: 10/13/2014 9:47:58 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>
-- Create date: 10-Oct-2014
-- Description: it is used to process for payment and interest amount of Loan Contract
-- =============================================
CREATE PROCEDURE [dbo].[B_Normal_Loan_CashRepayment_Subtract_To_Account]
(
-- Add the parameters for the stored procedure here
@AccountID nvarchar(50),
@SubtractAmount decimal(18,4),
@ReferCode nvarchar(50),
@UserID int
)
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE @RemainAmount decimal(18,4)
EXEC [B_Normal_Loan_transaction_history_process] @ReferCode, @UserID, @AccountID, @SubtractAmount,2
EXEC @RemainAmount = [B_Normal_Loan_Process_Payment_Subtract_To_Account] @AccountID, @SubtractAmount
UPDATE [BNEWNORMALLOAN] SET [LoanAmountRemain] = [LoanAmountRemain] - @SubtractAmount WHERE Code = @ReferCode
SELECT 1;
END
GO
|
<reponame>Jamoladdin/chat<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1:3306
-- Время создания: Дек 17 2020 г., 10:04
-- Версия сервера: 5.6.37
-- Версия PHP: 7.0.21
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `chat`
--
-- --------------------------------------------------------
--
-- Структура таблицы `auth_assignment`
--
CREATE TABLE `auth_assignment` (
`item_name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`user_id` varchar(64) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'guest',
`created_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `auth_assignment`
--
INSERT INTO `auth_assignment` (`item_name`, `user_id`, `created_at`) VALUES
('admin', '1', NULL),
('guest', '7', 1608114230),
('user', '8', 1608110206);
-- --------------------------------------------------------
--
-- Структура таблицы `auth_item`
--
CREATE TABLE `auth_item` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`type` smallint(6) NOT NULL,
`description` text COLLATE utf8_unicode_ci,
`rule_name` varchar(64) COLLATE utf8_unicode_ci DEFAULT NULL,
`data` blob,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `auth_item`
--
INSERT INTO `auth_item` (`name`, `type`, `description`, `rule_name`, `data`, `created_at`, `updated_at`) VALUES
('admin', 1, NULL, NULL, NULL, NULL, NULL),
('guest', 1, NULL, NULL, NULL, NULL, NULL),
('user', 1, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Структура таблицы `auth_item_child`
--
CREATE TABLE `auth_item_child` (
`parent` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`child` varchar(64) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Структура таблицы `auth_rule`
--
CREATE TABLE `auth_rule` (
`name` varchar(64) COLLATE utf8_unicode_ci NOT NULL,
`data` blob,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Структура таблицы `message`
--
CREATE TABLE `message` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`text` varchar(255) NOT NULL,
`datetime` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`status` int(11) DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `message`
--
INSERT INTO `message` (`id`, `user_id`, `text`, `datetime`, `status`) VALUES
(1, 1, 'Hello', '2020-12-16 13:33:37', 2),
(2, 1, 'Hello world!', '2020-12-16 13:35:14', 1),
(4, 8, 'Hello from user22', '2020-12-16 15:25:13', 1);
-- --------------------------------------------------------
--
-- Структура таблицы `migration`
--
CREATE TABLE `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1607754522),
('m130524_201442_init', 1607754532),
('m140506_102106_rbac_init', 1607755021),
('m170907_052038_rbac_add_index_on_auth_assignment_user_id', 1607755021);
-- --------------------------------------------------------
--
-- Структура таблицы `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Дамп данных таблицы `user`
--
INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES
(1, 'admin1', '-MorOjG1OG8v4MB8-gA5hy9372KVUzo6', <PASSWORD>', NULL, '<EMAIL>', 10, 1607942869, 1607942869),
(7, 'user11', 'PFNRi3s_jQQ64KVcl7b6Rbl5ZqCmOS97', '$2y$13$Rt5.MilaZNZkazXtiNg3FuIhFUL7068xc3r7kEqpSNanYHU8K9ZF.', NULL, '<EMAIL>', 10, 1608109491, 1608109491),
(8, 'user22', 'CbDMSpnmfZOnKo8lV0h7blZrOiP6IZ39', '$2y$13$GiU8uQJAbj1MeHcg/5o2e.UQkf/l/wspSt7bBNLu5BrVzrPrjhrEm', NULL, '<EMAIL>', 10, 1608114230, 1608114230);
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `auth_assignment`
--
ALTER TABLE `auth_assignment`
ADD PRIMARY KEY (`item_name`,`user_id`),
ADD KEY `auth_assignment_user_id_idx` (`user_id`);
--
-- Индексы таблицы `auth_item`
--
ALTER TABLE `auth_item`
ADD PRIMARY KEY (`name`),
ADD KEY `rule_name` (`rule_name`),
ADD KEY `idx-auth_item-type` (`type`);
--
-- Индексы таблицы `auth_item_child`
--
ALTER TABLE `auth_item_child`
ADD PRIMARY KEY (`parent`,`child`),
ADD KEY `child` (`child`);
--
-- Индексы таблицы `auth_rule`
--
ALTER TABLE `auth_rule`
ADD PRIMARY KEY (`name`);
--
-- Индексы таблицы `message`
--
ALTER TABLE `message`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Индексы таблицы `migration`
--
ALTER TABLE `migration`
ADD PRIMARY KEY (`version`);
--
-- Индексы таблицы `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `username` (`username`),
ADD UNIQUE KEY `email` (`email`),
ADD UNIQUE KEY `password_reset_token` (`<PASSWORD>`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `message`
--
ALTER TABLE `message`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT для таблицы `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- Ограничения внешнего ключа сохраненных таблиц
--
--
-- Ограничения внешнего ключа таблицы `auth_assignment`
--
ALTER TABLE `auth_assignment`
ADD CONSTRAINT `auth_assignment_ibfk_1` FOREIGN KEY (`item_name`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ограничения внешнего ключа таблицы `auth_item`
--
ALTER TABLE `auth_item`
ADD CONSTRAINT `auth_item_ibfk_1` FOREIGN KEY (`rule_name`) REFERENCES `auth_rule` (`name`) ON DELETE SET NULL ON UPDATE CASCADE;
--
-- Ограничения внешнего ключа таблицы `auth_item_child`
--
ALTER TABLE `auth_item_child`
ADD CONSTRAINT `auth_item_child_ibfk_1` FOREIGN KEY (`parent`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `auth_item_child_ibfk_2` FOREIGN KEY (`child`) REFERENCES `auth_item` (`name`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Ограничения внешнего ключа таблицы `message`
--
ALTER TABLE `message`
ADD CONSTRAINT `message_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: May 23, 2017 at 03:02 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `gotouniv_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `task_category`
--
CREATE TABLE `task_category` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`created_at` datetime DEFAULT NULL,
`created_by` varchar(50) DEFAULT NULL,
`updated_by` varchar(50) DEFAULT NULL,
`updated_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `task_category`
--
INSERT INTO `task_category` (`id`, `name`, `created_at`, `created_by`, `updated_by`, `updated_at`) VALUES
(1, 'General', '2017-05-23 11:44:41', 'admin-employee_login', 'admin-employee_login', '2017-05-23 11:44:41'),
(2, 'Advanced', '2017-05-23 11:45:02', 'admin-employee_login', 'admin-employee_login', '2017-05-23 11:45:02');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `task_category`
--
ALTER TABLE `task_category`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `name` (`name`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `task_category`
--
ALTER TABLE `task_category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
/*!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 */;
|
-- MySQL dump 10.13 Distrib 5.7.36, for Linux (x86_64)
--
-- Host: localhost Database: recommendation_spark
-- ------------------------------------------------------
-- Server version 5.7.36-google-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 */;
--
-- Current Database: `recommendation_spark`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `recommendation_spark` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `recommendation_spark`;
--
-- Table structure for table `Accommodation`
--
DROP TABLE IF EXISTS `Accommodation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Accommodation` (
`id` varchar(255) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`location` varchar(255) DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`rooms` int(11) DEFAULT NULL,
`rating` float DEFAULT NULL,
`type` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Accommodation`
--
LOCK TABLES `Accommodation` WRITE;
/*!40000 ALTER TABLE `Accommodation` DISABLE KEYS */;
INSERT INTO `Accommodation` VALUES ('1','Comfy Quiet Chalet','Vancouver',50,3,3.1,'cottage'),('10','Sizable Calm Country House','Auckland',650,9,4.9,'mansion'),('11','Homy Quiet Shanty','Melbourne',50,1,2.8,'cottage'),('12','Beautiful Peaceful Villa','Seattle',90,2,2.1,'house'),('13','Enormous Peaceful Fortress','Melbourne',3300,12,2.3,'castle'),('14','Colossal Peaceful Palace','Melbourne',1200,21,1.5,'castle'),('15','Vast Private Fort','London',1300,18,2.6,'castle'),('16','Large Calm House','Melbourne',45,3,4.1,'house'),('17','Large Calm Sately House','NYC',850,9,1.2,'mansion'),('18','Big Peaceful Hut','Melbourne',60,2,2.4,'cottage'),('19','Giant Quiet Castle','Paris',4500,18,1.6,'castle'),('2','Cozy Calm Hut','London',65,2,4.1,'cottage'),('20','Big Private Hall','Buenos Aires',650,12,1.2,'mansion'),('21','Big Peaceful Cabin','Seattle',80,2,4.9,'cottage'),('22','Pleasant Peaceful House','Auckland',50,5,3.5,'house'),('23','Homy Calm House','Paris',70,2,2,'cottage'),('24','Nice Private Cottage','San Francisco',40,2,1.1,'cottage'),('25','Nice Calm Chalet','Seattle',55,2,4.5,'cottage'),('26','Enormous Peaceful Palace','Paris',1300,18,1.1,'castle'),('27','Enormous Calm Castle','Berlin',1500,12,2.3,'castle'),('28','Beautiful Calm Villa','Tokyo',110,2,4.2,'house'),('29','Big Quiet Manor','San Francisco',650,12,4.3,'mansion'),('3','Agreable Calm Place','London',65,4,4.8,'house'),('30','Large Peaceful House','Berlin',110,5,2.3,'house'),('31','Colossal Private Castle','Buenos Aires',1400,15,3.3,'castle'),('32','Immense Private Hall','Seattle',850,12,1,'mansion'),('33','Pleasant Calm Place','Tokyo',30,2,4.8,'house'),('34','Vast Private Fort','NYC',4400,21,1.7,'castle'),('35','Colossal Quiet Chateau','NYC',2300,14,4.6,'castle'),('36','Comfy Private Shanty','NYC',80,1,3.7,'cottage'),('37','Enormous Quiet Chateau','Berlin',2000,20,2.7,'castle'),('38','Big Private House','San Francisco',70,4,2.9,'house'),('39','Beautiful Calm Villa','Vancouver',50,3,3.5,'house'),('4','Colossal Quiet Chateau','Paris',3400,16,2.7,'castle'),('40','Colossal Private Castle','Seattle',2900,24,1.5,'castle'),('41','Big Calm Manor','Seattle',800,11,2.7,'mansion'),('42','Large Calm Residence','London',900,12,2.4,'mansion'),('43','Nice Private Hut','Melbourne',60,3,2.8,'cottage'),('44','Big Peaceful Chateau','Melbourne',3400,21,3.2,'castle'),('45','Vast Quiet Chateau','Tokyo',1100,19,2.3,'castle'),('46','Colossal Private Castle','San Francisco',1900,15,3.7,'castle'),('47','Sizable Calm Sately House','Seattle',900,10,1.5,'mansion'),('48','Big Calm Fort','Vancouver',4500,22,4,'castle'),('49','Big Private Villa','NYC',90,2,4.8,'house'),('5','Homy Quiet Shack','Paris',50,1,1.1,'cottage'),('50','Enormous Calm Fort','Seattle',2300,22,4.5,'castle'),('51','Nice Quiet Hut','Auckland',70,3,1.4,'cottage'),('52','Giant Private Palace','Melbourne',1800,23,2.7,'castle'),('53','Comfy Private Shanty','Buenos Aires',40,2,4.6,'cottage'),('54','Enormous Quiet Chateau','Melbourne',4400,20,1.7,'castle'),('55','Cozy Peaceful Hut','London',75,2,1.7,'cottage'),('56','Sizable Private Residence','London',800,11,3.5,'mansion'),('57','Immense Quiet Residence','Auckland',800,11,3.5,'mansion'),('58','Nice Calm Cottage','Berlin',40,3,3.9,'cottage'),('59','Large Peaceful Place','Tokyo',55,5,1.2,'house'),('6','Pleasant Quiet Place','Dublin',35,5,4.3,'house'),('60','Vast Peaceful Palace','Seattle',1600,19,1.1,'castle'),('61','Large Calm Place','NYC',60,2,1.3,'house'),('62','Comfy Calm Cabin','Buenos Aires',65,2,4.3,'cottage'),('63','Big Private Chateau','Buenos Aires',2400,23,4.5,'castle'),('64','Enormous Peaceful Fort','Berlin',3500,13,1.8,'castle'),('65','Comfy Private Chalet','NYC',45,2,1,'cottage'),('66','Beautiful Private Villa','London',80,2,2.4,'house'),('67','Giant Calm Chateau','Vancouver',2300,13,3.2,'castle'),('68','Giant Peaceful Fort','Paris',1800,21,1.1,'castle'),('69','Homy Quiet House','NYC',65,1,3.1,'cottage'),('7','Vast Peaceful Fortress','Seattle',3200,24,1.9,'castle'),('70','Great Calm Sately House','Paris',1050,10,2.2,'mansion'),('71','Cozy Calm Hut','San Francisco',55,2,3.8,'cottage'),('72','Beautiful Calm Place','Paris',80,4,2.1,'house'),('73','Nice Peaceful Cabin','London',60,1,3.4,'cottage'),('74','Giant Calm Fort','Melbourne',2400,12,2.3,'castle'),('75','Large Private Place','Berlin',50,4,3.6,'house'),('76','Pleasant Calm Villa','Berlin',30,2,2.4,'house'),('77','Great Private Country House','Dublin',1150,10,2.4,'mansion'),('78','Giant Private Fortress','Tokyo',2100,17,2.5,'castle'),('79','Large Private Manor','Vancouver',1050,10,4.8,'mansion'),('8','Giant Quiet Fortress','San Francisco',3400,12,4.1,'castle'),('80','Big Quiet Cabin','San Francisco',40,3,4.3,'cottage'),('81','Homy Quiet Shack','Seattle',70,3,2.2,'cottage'),('82','Cozy Peaceful Cabin','San Francisco',75,1,1.6,'cottage'),('83','Comfy Calm Shack','San Francisco',40,3,3.4,'cottage'),('84','Great Peaceful Sately House','Melbourne',700,8,3.2,'mansion'),('85','Nice Private Shack','Auckland',55,1,4.9,'cottage'),('86','Large Quiet House','London',100,4,4,'house'),('87','Immense Peaceful Hall','San Francisco',850,12,4.4,'mansion'),('88','Colossal Quiet Palace','Seattle',4100,16,3.6,'castle'),('89','Nice Private House','Seattle',45,2,3.2,'cottage'),('9','Giant Peaceful Palace','London',1500,20,3.5,'castle'),('90','Big Quiet House','Seattle',35,5,3.2,'house'),('91','Large Peaceful Hall','Melbourne',650,10,1.9,'mansion'),('92','Cozy Quiet Bungalow','San Francisco',85,3,3.5,'cottage'),('93','Giant Quiet Chateau','Vancouver',1800,16,3.9,'castle'),('94','Giant Peaceful Castle','Auckland',2900,25,3.3,'castle'),('95','Great Calm Hall','San Francisco',800,11,3.8,'mansion'),('96','Immense Private Country House','Tokyo',800,9,3.8,'mansion'),('97','Cozy Quiet Chalet','Auckland',75,1,2.3,'cottage'),('98','Big Private Castle','Paris',2000,23,4.6,'castle'),('99','Pleasant Quiet Place','NYC',80,4,3.2,'house');
/*!40000 ALTER TABLE `Accommodation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Rating`
--
DROP TABLE IF EXISTS `Rating`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Rating` (
`userId` varchar(255) NOT NULL,
`accoId` varchar(255) NOT NULL,
`rating` int(11) DEFAULT NULL,
PRIMARY KEY (`accoId`,`userId`),
CONSTRAINT `Rating_ibfk_1` FOREIGN KEY (`accoId`) REFERENCES `Accommodation` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Rating`
--
LOCK TABLES `Rating` WRITE;
/*!40000 ALTER TABLE `Rating` DISABLE KEYS */;
INSERT INTO `Rating` VALUES ('10','1',1),('13','1',1),('18','1',2),('12','10',3),('18','10',1),('21','10',2),('4','10',1),('1','11',1),('10','11',1),('11','11',1),('12','11',2),('13','11',3),('14','11',3),('15','11',1),('16','11',2),('17','11',4),('19','11',2),('20','11',1),('21','11',1),('22','11',1),('23','11',1),('24','11',4),('3','11',3),('4','11',2),('5','11',1),('6','11',3),('7','11',1),('0','12',5),('10','12',5),('16','12',4),('21','12',4),('23','12',4),('4','12',5),('7','12',5),('8','12',4),('11','13',2),('14','13',1),('16','13',2),('17','13',1),('18','13',1),('19','13',2),('2','13',3),('20','13',3),('3','13',2),('5','13',1),('6','13',4),('9','13',1),('1','14',2),('11','14',4),('13','14',2),('14','14',2),('15','14',1),('17','14',1),('20','14',2),('22','14',3),('3','14',1),('4','14',2),('5','14',4),('8','14',1),('9','14',1),('10','15',1),('11','15',1),('16','15',1),('19','15',4),('2','15',1),('20','15',1),('21','15',2),('23','15',2),('3','15',3),('4','15',1),('7','15',1),('8','15',2),('0','16',4),('10','16',4),('16','16',5),('21','16',5),('23','16',4),('4','16',4),('7','16',5),('8','16',4),('10','17',1),('12','17',1),('16','17',2),('19','17',4),('21','17',1),('23','17',2),('4','17',2),('7','17',1),('8','17',2),('10','18',1),('11','18',3),('13','18',4),('14','18',4),('15','18',3),('17','18',4),('18','18',2),('19','18',2),('2','18',4),('20','18',2),('22','18',3),('24','18',1),('5','18',4),('6','18',3),('7','18',1),('8','18',2),('9','18',2),('1','19',1),('10','19',2),('12','19',3),('14','19',3),('15','19',1),('18','19',1),('19','19',1),('20','19',3),('21','19',2),('22','19',1),('23','19',1),('4','19',1),('6','19',1),('8','19',1),('1','2',2),('11','2',1),('12','2',1),('13','2',3),('19','2',2),('2','2',4),('20','2',2),('3','2',1),('4','2',2),('7','2',2),('10','20',1),('16','20',1),('18','20',4),('19','20',3),('2','20',2),('20','20',2),('23','20',1),('4','20',1),('8','20',2),('13','21',2),('16','21',1),('19','21',3),('2','21',1),('20','21',4),('22','21',2),('23','21',1),('24','21',2),('4','21',1),('8','21',1),('9','21',1),('0','22',4),('10','22',4),('16','22',5),('21','22',4),('23','22',4),('4','22',4),('7','22',4),('8','22',5),('1','23',2),('10','23',1),('19','23',2),('2','23',4),('20','23',3),('21','23',1),('23','23',1),('4','23',1),('6','23',3),('7','23',1),('1','24',4),('10','24',1),('11','24',2),('12','24',1),('13','24',4),('14','24',4),('15','24',3),('16','24',1),('17','24',4),('18','24',1),('19','24',1),('2','24',4),('20','24',4),('21','24',1),('22','24',3),('23','24',2),('24','24',1),('3','24',1),('4','24',2),('5','24',4),('6','24',4),('7','24',2),('9','24',4),('1','25',3),('10','25',1),('13','25',3),('16','25',1),('18','25',4),('19','25',4),('21','25',1),('23','25',1),('4','25',1),('5','25',4),('7','25',2),('8','25',2),('9','25',4),('10','26',2),('13','26',4),('14','26',1),('16','26',2),('17','26',1),('18','26',3),('20','26',4),('21','26',1),('22','26',2),('23','26',1),('3','26',2),('4','26',2),('5','26',4),('7','26',2),('9','26',2),('1','27',1),('10','27',1),('11','27',1),('13','27',1),('15','27',1),('16','27',1),('18','27',2),('19','27',1),('2','27',3),('23','27',1),('24','27',3),('3','27',3),('4','27',2),('5','27',3),('7','27',2),('9','27',1),('0','28',4),('10','28',4),('16','28',4),('21','28',4),('23','28',4),('4','28',4),('7','28',5),('8','28',4),('11','29',1),('15','29',3),('17','29',2),('19','29',2),('2','29',2),('7','29',1),('0','3',4),('10','3',5),('16','3',5),('21','3',5),('23','3',5),('4','3',5),('7','3',4),('8','3',4),('0','30',5),('10','30',5),('16','30',5),('21','30',5),('23','30',5),('4','30',5),('7','30',4),('8','30',5),('13','31',3),('16','31',1),('19','31',3),('21','31',2),('23','31',1),('4','31',2),('7','31',1),('8','31',2),('11','32',1),('12','32',3),('15','32',1),('16','32',1),('19','32',1),('23','32',1),('24','32',4),('4','32',2),('7','32',1),('8','32',2),('9','32',2),('0','33',4),('10','33',5),('16','33',4),('21','33',4),('23','33',4),('4','33',5),('7','33',5),('8','33',4),('1','34',2),('10','34',2),('11','34',2),('12','34',2),('13','34',3),('14','34',4),('15','34',2),('16','34',1),('17','34',4),('18','34',4),('19','34',3),('2','34',4),('20','34',3),('21','34',2),('22','34',2),('23','34',2),('24','34',2),('3','34',2),('4','34',2),('5','34',1),('6','34',4),('8','34',1),('9','34',2),('12','35',1),('21','35',2),('3','35',2),('4','35',1),('7','35',2),('1','36',2),('16','36',1),('24','36',3),('9','36',3),('1','37',3),('10','37',2),('11','37',4),('12','37',3),('13','37',4),('14','37',2),('15','37',1),('17','37',2),('18','37',1),('19','37',2),('2','37',2),('20','37',2),('22','37',2),('24','37',2),('3','37',2),('5','37',3),('6','37',2),('9','37',1),('0','38',4),('10','38',4),('16','38',4),('21','38',5),('23','38',5),('4','38',4),('7','38',5),('8','38',5),('10','39',5),('16','39',4),('21','39',4),('23','39',4),('4','39',4),('7','39',5),('8','39',5),('1','4',4),('11','4',4),('12','4',3),('13','4',1),('14','4',1),('15','4',4),('17','4',3),('18','4',4),('19','4',3),('2','4',1),('20','4',1),('21','4',2),('22','4',3),('23','4',1),('24','4',2),('3','4',1),('4','4',1),('5','4',3),('6','4',1),('7','4',2),('9','4',1),('1','40',1),('11','40',3),('12','40',4),('13','40',3),('14','40',4),('15','40',2),('17','40',4),('18','40',1),('19','40',1),('2','40',3),('20','40',2),('22','40',3),('24','40',3),('3','40',1),('5','40',1),('6','40',2),('7','40',1),('9','40',4),('11','41',1),('13','41',3),('14','41',2),('16','41',1),('3','41',2),('4','41',2),('8','41',2),('1','42',2),('14','42',1),('17','42',1),('2','42',4),('24','42',2),('4','42',1),('11','43',4),('12','43',4),('16','43',2),('18','43',3),('19','43',4),('21','43',2),('22','43',1),('23','43',1),('24','43',2),('4','43',1),('7','43',2),('8','43',1),('1','44',2),('10','44',2),('13','44',1),('15','44',2),('16','44',1),('17','44',3),('19','44',4),('2','44',1),('23','44',2),('3','44',4),('5','44',4),('6','44',4),('1','45',3),('11','45',4),('12','45',2),('17','45',4),('18','45',3),('2','45',1),('3','45',4),('4','45',2),('5','45',4),('7','45',1),('13','46',2),('14','46',3),('16','46',1),('2','46',4),('22','46',3),('23','46',2),('3','46',2),('5','46',2),('7','46',1),('9','46',4),('11','47',1),('12','47',2),('13','47',3),('14','47',1),('15','47',4),('17','47',4),('21','47',2),('24','47',2),('5','47',4),('6','47',3),('7','47',2),('1','48',3),('11','48',4),('12','48',2),('13','48',1),('14','48',1),('15','48',4),('16','48',1),('17','48',4),('18','48',1),('19','48',4),('2','48',1),('20','48',2),('22','48',4),('23','48',2),('24','48',2),('3','48',3),('5','48',3),('6','48',3),('8','48',2),('9','48',4),('10','49',4),('16','49',4),('21','49',5),('23','49',5),('4','49',5),('7','49',5),('8','49',5),('1','5',3),('10','5',1),('11','5',3),('12','5',4),('13','5',4),('14','5',1),('15','5',1),('16','5',1),('17','5',4),('18','5',2),('19','5',3),('2','5',1),('20','5',3),('21','5',2),('23','5',2),('24','5',2),('3','5',1),('4','5',1),('5','5',3),('6','5',1),('9','5',4),('16','50',2),('2','50',4),('21','50',1),('23','50',1),('4','50',2),('8','50',2),('9','50',4),('1','51',1),('15','51',4),('16','51',2),('18','51',2),('19','51',4),('2','51',1),('20','51',3),('21','51',1),('23','51',1),('24','51',2),('5','51',1),('8','51',2),('1','52',1),('10','52',2),('12','52',1),('13','52',2),('14','52',2),('15','52',1),('16','52',1),('17','52',2),('18','52',2),('19','52',1),('2','52',3),('20','52',4),('22','52',2),('23','52',2),('24','52',2),('3','52',1),('4','52',1),('5','52',2),('6','52',4),('7','52',2),('8','52',1),('9','52',1),('1','53',4),('11','53',4),('12','53',3),('13','53',4),('14','53',1),('15','53',4),('16','53',2),('17','53',3),('18','53',2),('19','53',2),('2','53',2),('20','53',1),('21','53',1),('23','53',2),('3','53',4),('4','53',1),('5','53',2),('6','53',2),('7','53',1),('8','53',1),('9','53',4),('1','54',4),('11','54',4),('12','54',4),('15','54',3),('16','54',2),('17','54',2),('19','54',1),('2','54',4),('22','54',1),('24','54',2),('5','54',4),('1','55',2),('10','55',1),('11','55',3),('12','55',2),('13','55',3),('16','55',2),('17','55',1),('18','55',4),('19','55',3),('2','55',2),('21','55',2),('22','55',3),('23','55',1),('3','55',3),('4','55',2),('5','55',3),('6','55',1),('7','55',1),('8','55',2),('1','56',4),('13','56',1),('17','56',3),('18','56',2),('19','56',1),('2','56',1),('20','56',2),('22','56',3),('24','56',1),('5','56',3),('7','56',2),('9','56',2),('10','57',1),('12','57',3),('14','57',4),('15','57',2),('16','57',1),('21','57',2),('23','57',1),('4','57',2),('6','57',3),('7','57',2),('8','57',2),('9','57',3),('1','58',4),('10','58',2),('11','58',3),('12','58',4),('13','58',2),('14','58',1),('15','58',1),('16','58',2),('17','58',1),('18','58',2),('19','58',2),('2','58',4),('20','58',2),('21','58',2),('22','58',3),('23','58',2),('24','58',3),('3','58',3),('4','58',1),('5','58',1),('6','58',4),('8','58',2),('10','59',4),('16','59',4),('21','59',5),('23','59',5),('4','59',4),('7','59',4),('8','59',5),('0','6',5),('10','6',5),('16','6',5),('21','6',4),('23','6',5),('4','6',5),('7','6',5),('8','6',5),('1','60',1),('20','60',2),('3','60',2),('5','60',4),('6','60',1),('7','60',1),('8','60',2),('9','60',3),('10','61',5),('16','61',5),('21','61',5),('23','61',4),('4','61',4),('7','61',5),('8','61',4),('1','62',1),('15','62',2),('16','62',1),('19','62',2),('2','62',4),('20','62',1),('23','62',2),('24','62',1),('10','63',2),('16','63',2),('2','63',3),('23','63',2),('7','63',1),('11','64',4),('15','64',3),('16','64',2),('20','64',4),('21','64',2),('23','64',2),('4','64',2),('6','64',3),('7','64',1),('8','64',2),('9','64',2),('10','65',2),('13','65',1),('14','65',4),('16','65',1),('17','65',1),('22','65',1),('7','65',2),('8','65',2),('10','66',5),('16','66',5),('21','66',5),('23','66',5),('4','66',4),('7','66',5),('8','66',5),('1','67',1),('10','67',1),('11','67',2),('12','67',4),('15','67',4),('16','67',1),('17','67',1),('19','67',2),('21','67',1),('22','67',4),('23','67',2),('4','67',2),('5','67',4),('6','67',1),('7','67',1),('1','68',1),('10','68',2),('11','68',2),('12','68',1),('13','68',4),('14','68',1),('15','68',1),('16','68',2),('17','68',3),('18','68',4),('19','68',4),('2','68',4),('21','68',1),('22','68',3),('23','68',1),('24','68',2),('3','68',4),('4','68',1),('5','68',4),('6','68',3),('7','68',1),('8','68',2),('9','68',4),('10','69',2),('11','69',3),('12','69',2),('13','69',3),('14','69',1),('16','69',2),('18','69',1),('19','69',1),('2','69',2),('20','69',1),('22','69',2),('24','69',2),('3','69',3),('5','69',2),('6','69',1),('7','69',2),('8','69',2),('9','69',4),('1','7',1),('11','7',4),('12','7',1),('13','7',4),('14','7',1),('15','7',3),('16','7',1),('17','7',2),('18','7',3),('19','7',2),('2','7',1),('20','7',4),('22','7',3),('24','7',4),('3','7',2),('5','7',4),('6','7',3),('9','7',3),('11','70',3),('12','70',3),('13','70',3),('16','70',2),('20','70',2),('24','70',2),('1','71',1),('10','71',1),('13','71',2),('15','71',2),('16','71',2),('17','71',2),('18','71',2),('21','71',2),('24','71',2),('4','71',2),('6','71',1),('7','71',2),('8','71',2),('9','71',4),('10','72',4),('16','72',4),('21','72',5),('23','72',5),('4','72',4),('7','72',4),('8','72',4),('1','73',4),('10','73',1),('11','73',4),('12','73',4),('16','73',1),('17','73',1),('18','73',1),('2','73',4),('20','73',4),('22','73',3),('24','73',4),('3','73',4),('5','73',4),('6','73',3),('7','73',1),('12','74',2),('13','74',2),('14','74',2),('16','74',2),('18','74',3),('21','74',2),('23','74',1),('3','74',1),('7','74',2),('10','75',4),('16','75',5),('21','75',4),('23','75',5),('4','75',5),('7','75',4),('8','75',5),('10','76',5),('16','76',5),('21','76',5),('23','76',5),('4','76',5),('7','76',5),('8','76',4),('1','77',2),('11','77',3),('12','77',4),('13','77',3),('17','77',2),('18','77',3),('19','77',3),('2','77',4),('20','77',3),('24','77',1),('4','77',1),('5','77',3),('6','77',1),('10','78',2),('12','78',3),('13','78',1),('14','78',2),('16','78',2),('17','78',2),('20','78',1),('21','78',2),('22','78',3),('23','78',1),('24','78',3),('3','78',2),('4','78',1),('6','78',1),('8','78',2),('16','79',1),('17','79',2),('21','79',1),('23','79',2),('4','79',2),('6','79',4),('1','8',3),('10','8',2),('11','8',2),('12','8',3),('13','8',4),('14','8',3),('15','8',1),('16','8',1),('17','8',4),('18','8',4),('19','8',2),('2','8',4),('20','8',3),('21','8',1),('22','8',2),('23','8',1),('24','8',1),('3','8',2),('5','8',2),('6','8',2),('7','8',2),('8','8',1),('9','8',1),('1','80',1),('10','80',2),('11','80',4),('12','80',1),('13','80',3),('15','80',1),('24','80',4),('3','80',2),('5','80',3),('6','80',1),('7','80',1),('8','80',2),('9','80',4),('1','81',1),('10','81',2),('12','81',1),('13','81',4),('14','81',1),('15','81',1),('17','81',4),('18','81',2),('19','81',1),('2','81',4),('20','81',1),('22','81',4),('24','81',4),('3','81',1),('5','81',3),('6','81',1),('9','81',4),('1','82',1),('10','82',2),('11','82',2),('12','82',2),('13','82',2),('14','82',2),('15','82',2),('16','82',1),('17','82',1),('18','82',4),('19','82',4),('2','82',3),('20','82',2),('21','82',2),('3','82',4),('4','82',2),('5','82',2),('6','82',2),('7','82',2),('8','82',1),('9','82',3),('10','83',1),('13','83',2),('14','83',2),('16','83',2),('18','83',1),('20','83',4),('21','83',1),('23','83',2),('4','83',2),('6','83',2),('7','83',1),('11','84',2),('12','84',1),('14','84',4),('16','84',2),('19','84',3),('24','84',1),('3','84',4),('4','84',1),('10','85',1),('11','85',4),('12','85',3),('17','85',4),('18','85',3),('19','85',3),('21','85',1),('22','85',4),('3','85',4),('4','85',1),('6','85',3),('9','85',1),('10','86',5),('16','86',4),('21','86',5),('23','86',4),('4','86',5),('7','86',4),('8','86',4),('1','87',3),('10','87',1),('12','87',3),('13','87',4),('14','87',4),('18','87',4),('20','87',2),('21','87',1),('22','87',3),('3','87',2),('4','87',2),('6','87',3),('7','87',1),('9','87',4),('1','88',3),('10','88',2),('12','88',4),('13','88',2),('14','88',4),('15','88',3),('16','88',1),('17','88',3),('18','88',4),('19','88',1),('2','88',2),('20','88',4),('22','88',4),('23','88',1),('24','88',1),('3','88',3),('4','88',2),('5','88',4),('6','88',1),('8','88',1),('9','88',4),('1','89',3),('10','89',1),('12','89',3),('13','89',1),('16','89',1),('21','89',1),('23','89',2),('4','89',1),('7','89',1),('9','89',3),('10','9',1),('15','9',2),('16','9',1),('21','9',2),('23','9',1),('4','9',2),('7','9',1),('8','9',2),('10','90',4),('16','90',4),('21','90',4),('23','90',4),('4','90',4),('7','90',5),('8','90',5),('1','91',1),('10','91',2),('12','91',3),('13','91',1),('14','91',2),('16','91',1),('17','91',1),('19','91',4),('20','91',1),('21','91',1),('22','91',2),('23','91',1),('24','91',1),('3','91',3),('4','91',1),('5','91',1),('7','91',1),('8','91',2),('9','91',2),('1','92',2),('10','92',1),('11','92',4),('13','92',3),('16','92',1),('17','92',3),('20','92',4),('21','92',1),('6','92',3),('7','92',2),('10','93',1),('16','93',2),('21','93',1),('23','93',1),('3','93',3),('4','93',2),('7','93',1),('8','93',1),('1','94',2),('10','94',2),('11','94',4),('12','94',2),('13','94',1),('14','94',2),('15','94',1),('17','94',1),('18','94',1),('19','94',3),('2','94',1),('20','94',2),('21','94',2),('22','94',4),('23','94',1),('24','94',4),('3','94',3),('4','94',2),('6','94',2),('7','94',1),('8','94',2),('9','94',2),('1','95',4),('10','95',1),('11','95',3),('12','95',3),('13','95',1),('14','95',2),('16','95',1),('18','95',4),('19','95',4),('2','95',2),('20','95',1),('21','95',1),('22','95',4),('23','95',2),('24','95',3),('3','95',2),('4','95',1),('5','95',2),('6','95',1),('7','95',1),('8','95',1),('9','95',3),('10','96',2),('12','96',4),('16','96',1),('1','97',3),('10','97',1),('15','97',2),('17','97',4),('18','97',3),('19','97',3),('2','97',3),('20','97',4),('21','97',2),('23','97',1),('7','97',1),('1','98',3),('10','98',2),('11','98',1),('12','98',3),('13','98',4),('15','98',1),('16','98',1),('17','98',2),('18','98',4),('19','98',1),('2','98',2),('20','98',1),('21','98',1),('22','98',3),('23','98',2),('24','98',2),('4','98',2),('6','98',3),('7','98',2),('8','98',1),('10','99',4),('16','99',5),('21','99',5),('23','99',5),('4','99',4),('7','99',5),('8','99',5);
/*!40000 ALTER TABLE `Rating` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `Recommendation`
--
DROP TABLE IF EXISTS `Recommendation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `Recommendation` (
`userId` text,
`accoId` text,
`prediction` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `Recommendation`
--
LOCK TABLES `Recommendation` WRITE;
/*!40000 ALTER TABLE `Recommendation` DISABLE KEYS */;
INSERT INTO `Recommendation` VALUES ('12','59',2.6932127),('12','72',2.6184576),('12','61',2.615237),('13','6',3.5107472),('13','12',3.3703492),('13','33',3.083691),('13','30',2.822295),('13','45',2.7908206),('14','97',2.986665),('14','86',2.6321008),('14','23',2.323913),('14','2',2.1827655),('14','50',2.1050858),('15','45',2.8675919),('15','85',2.7837145),('15','95',2.099154),('15','87',1.930258),('15','92',1.9236904),('16','80',1.696584),('16','94',1.4279982),('16','81',1.2835418),('16','37',1.1119635),('16','60',1.0878212),('17','87',3.0334055),('17','95',2.4147265),('17','46',2.033137),('17','25',1.9880332),('17','57',1.699751),('18','12',2.4581723),('18','6',2.1714976),('18','33',2.1481254),('18','2',2.082264),('18','16',2.079033),('19','30',4.2759743),('19','6',4.1370068),('19','38',3.8426816),('19','12',3.779092),('19','22',3.501005),('20','16',2.4226825),('20','44',2.395454),('20','68',2.345792),('20','12',2.3400545),('20','61',2.330862),('21','45',1.760653),('21','69',1.737146),('21','88',1.6963214),('21','40',1.6897192),('21','77',1.5761102),('22','30',4.8313437),('22','59',4.1877866),('22','6',4.1382856),('22','38',4.0097156),('22','3',3.9873614),('23','47',1.7236563),('23','81',1.6903898),('23','71',1.5174999),('23','56',1.4176611),('23','2',1.3806455),('24','3',3.591757),('24','6',3.5397089),('24','30',3.5228164),('24','76',3.4997554),('24','12',3.417661),('0','76',3.2500274),('0','75',3.249176),('0','66',3.2043839),('0','49',3.188123),('0','39',3.1495485),('1','85',2.9420347),('1','18',2.5475268),('1','43',2.1376238),('1','38',1.6633934),('1','46',1.5937303),('2','61',2.2916915),('2','87',2.2914145),('2','76',2.2566402),('2','66',2.2223217),('2','99',2.052272),('3','30',4.2587094),('3','3',4.0023813),('3','12',3.7066052),('3','6',3.6564858),('3','16',3.392838),('4','47',2.257881),('4','18',1.906445),('4','7',1.8905344),('4','46',1.8490022),('4','65',1.6529408),('5','12',3.0885136),('5','6',2.97691),('5','30',2.4858239),('5','33',2.4737468),('5','94',2.3763387),('6','75',3.1344852),('6','49',3.0937757),('6','90',2.9691105),('6','6',2.8959367),('6','51',2.8764226),('7','34',2.0381756),('7','58',1.897187),('7','5',1.840447),('7','54',1.6596913),('7','37',1.650643),('8','44',2.0377052),('8','67',2.0127373),('8','47',1.7915355),('8','24',1.6356894),('8','40',1.5071429),('9','30',3.940154),('9','6',3.8440087),('9','38',3.5672598),('9','12',3.4083586),('9','22',3.3922527),('10','46',1.7914853),('10','40',1.6517344),('10','84',1.605596),('10','74',1.3760482),('10','41',1.3542864),('11','51',2.990662),('11','97',2.6573045),('11','81',2.0974085),('11','25',2.0411818),('11','21',2.00718),('12','66',2.8208606),('12','99',2.697176);
/*!40000 ALTER TABLE `Recommendation` 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 2021-11-26 0:53:47
|
-- MySQL dump 10.17 Distrib 10.3.23-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost Database: safty_questionnaire
-- ------------------------------------------------------
-- Server version 10.3.23-MariaDB-0+deb10u1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `countries`
--
DROP TABLE IF EXISTS `countries`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `countries` (
`countryCode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`official_name_ar` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`official_name_en` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zipcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ISO3166Alpha2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ISO3166Numeric` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ArabicFormal` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`countryCode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `countries`
--
LOCK TABLES `countries` WRITE;
/*!40000 ALTER TABLE `countries` DISABLE KEYS */;
INSERT INTO `countries` VALUES ('ABW','Aruba','أروبا','Aruba','297','AW','533','Aruba',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AFG','Afghanistan','أفغانستان','Afghanistan','93','AF','004','جمهورية أفغانستان الإسلامية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AGO','Angola','أنغولا','Angola','244','AO','024','جمهورية أنغولا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AIA','Anguilla','أنغيلا','Anguilla','1-264','AI','660','Anguilla',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ALA','Åland Islands','جزر ألاند','Åland Islands','358','AX','248','Åland Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ALB','Albania','ألبانيا','Albania','355','AL','008','جمهورية ألبانيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AND','Andorra','أندورا','Andorra','376','AD','020','إمارة أندورا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ARE','United Arab Emirates','الإمارات العربية المتحدة','United Arab Emirates','971','AE','784','الإمارات العربية المتحدة',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ARG','Argentina','الأرجنتين','Argentina','54','AR','032','جمهورية الأرجنتين',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ARM','Armenia','أرمينيا','Armenia','374','AM','051','جمهورية أرمينيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ASM','American Samoa','ساموا الأمريكية','American Samoa','1-684','AS','016','American Samoa',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ATA','Antarctica','أنتاركتيكا','Antarctica','672','AQ','010','Antarctica',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ATF','French Southern Territories','الأراضي الفرنسية الجنوبية الجنوبية','French Southern Territories','262','TF','260','French Southern Territories',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ATG','Antigua & Barbuda','أنتيغوا وبربودا','Antigua and Barbuda','1-268','AG','028','أنتيغوا وبربودا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AUS','Australia','أستراليا','Australia','61','AU','036','أستراليا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AUT','Austria','النمسا','Austria','43','AT','040','جمهورية النمسا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('AZE','Azerbaijan','أذربيجان','Azerbaijan','994','AZ','031','جمهورية أذربيجان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BDI','Burundi','بوروندي','Burundi','257','BI','108','جمهورية بوروندي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BEL','Belgium','بلجيكا','Belgium','32','BE','056','مملكة بلجيكا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BEN','Benin','بنن','Benin','229','BJ','204','جمهورية بنن',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BES','Caribbean Netherlands','بونير وسان يوستاتيوس وسابا','Bonaire, Sint Eustatius and Saba','599','BQ','535','Bonaire, Sint Eustatius and Saba',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BFA','Burkina Faso','بوركينا فاسو','Burkina Faso','226','BF','854','بوركينا فاسو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BGD','Bangladesh','بنغلاديش','Bangladesh','880','BD','050','جمهورية بنغلاديش الشعبية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BGR','Bulgaria','بلغاريا','Bulgaria','359','BG','100','جمهورية بلغاريا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BHR','Bahrain','البحرين','Bahrain','973','BH','048','مملكة البحرين',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BHS','Bahamas','جزر البهاما','Bahamas','1-242','BS','044','كمنولث جزر البهاما',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BIH','Bosnia','البوسنة والهرسك','Bosnia and Herzegovina','387','BA','070','البوسنة والهرسك',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BLM','St. Barthélemy','سان بارتليمي','Saint Barthélemy','590','BL','652','Saint Barthélemy',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('BLR','Belarus','بيلاروس','Belarus','375','BY','112','جمهورية بيلاروس',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BLZ','Belize','بليز','Belize','501','BZ','084','بليز',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BMU','Bermuda','برمودا','Bermuda','1-441','BM','060','Bermuda',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BOL','Bolivia','بوليفيا (دولة - المتعددة القوميات)','Bolivia (Plurinational State of)','591','BO','068','دولة بوليفيا المتعددة القوميات',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BRA','Brazil','البرازيل','Brazil','55','BR','076','الجمهورية الاتحادية البرازيلية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BRB','Barbados','بربادوس','Barbados','1-246','BB','052','بربادوس',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BRN','Brunei','بروني دار السلام','Brunei Darussalam','673','BN','096','بروني دار السلام',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BTN','Bhutan','بوتان','Bhutan','975','BT','064','مملكة بوتان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BVT','Bouvet Island','جزيرة بوفيت','Bouvet Island','47','BV','074','Bouvet Island',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('BWA','Botswana','بوتسوانا','Botswana','267','BW','072','جمهورية بوتسوانا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CAF','Central African Republic','جمهورية أفريقيا الوسطى','Central African Republic','236','CF','140','جمهورية أفريقيا الوسطى',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CAN','Canada','كندا','Canada','1','CA','124','كندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CCK','Cocos (Keeling) Islands','جزر كوكوس (كيلينغ)','Cocos (Keeling) Islands','61','CC','166','Cocos (Keeling) Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CHE','Switzerland','سويسرا','Switzerland','41','CH','756','الاتحاد السويسري',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('CHL','Chile','شيلي','Chile','56','CL','152','جمهورية شيلي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CHN','China','الصين','China','86','CN','156','جمهورية الصين الشعبية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CIV','Côte d’Ivoire','كوت ديفوار','Côte d\'Ivoire','225','CI','384','جمهورية كوت ديفوار',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CMR','Cameroon','الكاميرون','Cameroon','237','CM','120','جمهورية الكاميرون',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('COD','Congo - Kinshasa','جمهورية الكونغو الديمقراطية','Democratic Republic of the Congo','243','CD','180','جمهورية الكونغو الديمقراطية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('COG','Congo - Brazzaville','الكونغو','Congo','242','CG','178','جمهورية الكونغو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('COK','Cook Islands','جزر كوك','Cook Islands','682','CK','184','جزر كوك',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('COL','Colombia','كولومبيا','Colombia','57','CO','170','جمهورية كولومبيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('COM','Comoros','جزر القمر','Comoros','269','KM','174','اتحاد جزر القمر',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CPV','Cape Verde','كابو فيردي','Cabo Verde','238','CV','132','جمهورية كابو فيردي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CRI','Costa Rica','كوستاريكا','Costa Rica','506','CR','188','جمهورية كوستاريكا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CUB','Cuba','كوبا','Cuba','53','CU','192','جمهورية كوبا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CUW','Curaçao','كوراساو','Curaçao','599','CW','531','Curaçao',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CXR','Christmas Island','جزيرة كريسماس','Christmas Island','61','CX','162','Christmas Island',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CYM','Cayman Islands','جزر كايمان','Cayman Islands','1-345','KY','136','Cayman Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CYP','Cyprus','قبرص','Cyprus','357','CY','196','جمهورية قبرص',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('CZE','Czechia','تشيكيا','Czechia','420','CZ','203','الجمهورية التشيكية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DEU','Germany','ألمانيا','Germany','49','DE','276','جمهورية ألمانيا الاتحادية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DJI','Djibouti','جيبوتي','Djibouti','253','DJ','262','جمهورية جيبوتي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DMA','Dominica','دومينيكا','Dominica','1-767','DM','212','كمنولث دومينيكا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DNK','Denmark','الدانمرك','Denmark','45','DK','208','مملكة الدانمرك',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DOM','Dominican Republic','الجمهورية الدومينيكية','Dominican Republic','1-809,1-829,1-849','DO','214','الجمهورية الدومينيكية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('DZA','Algeria','الجزائر','Algeria','213','DZ','012','الجمهورية الجزائرية الديمقراطية الشعبية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ECU','Ecuador','إكوادور','Ecuador','593','EC','218','جمهورية إكوادور',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('EGY','Egypt','مصر','Egypt','20','EG','818','جمهورية مصر العربية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ERI','Eritrea','إريتريا','Eritrea','291','ER','232','دولة إريتريا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ESH','Western Sahara','الصحراء الغربية','Western Sahara','212','EH','732','Western Sahara',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ESP','Spain','إسبانيا','Spain','34','ES','724','مملكة إسبانيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('EST','Estonia','إستونيا','Estonia','372','EE','233','جمهورية إستونيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ETH','Ethiopia','إثيوبيا','Ethiopia','251','ET','231','جمهورية إثيوبيا الديمقراطية الاتحادية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FIN','Finland','فنلندا','Finland','358','FI','246','جمهورية فنلندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FJI','Fiji','فيجي','Fiji','679','FJ','242','جمهورية فيجي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FLK','Falkland Islands','جزر فوكلاند (مالفيناس)','Falkland Islands (Malvinas)','500','FK','238','Falkland Islands (Malvinas)',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FRA','France','فرنسا','France','33','FR','250','الجمهورية الفرنسية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FRO','Faroe Islands','جزر فايرو','Faroe Islands','298','FO','234','Faroe Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('FSM','Micronesia','ميكرونيزيا (ولايات - الموحدة)','Micronesia (Federated States of)','691','FM','583','ولايات ميكرونيزيا الموحدة',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GAB','Gabon','غابون','Gabon','241','GA','266','جمهورية الغابون',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GBR','UK','المملكة المتحدة لبريطانيا العظمى وآيرلندا الشمالية','United Kingdom of Great Britain and Northern Ireland','44','GB','826','المملكة المتحدة لبريطانيا العظمى وآيرلندا الشمالية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('GEO','Georgia','جورجيا','Georgia','995','GE','268','جورجيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GGY','Guernsey','غيرنزي','Guernsey','44','GG','831','Guernsey',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GHA','Ghana','غانا','Ghana','233','GH','288','جمهورية غانا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GIB','Gibraltar','جبل طارق','Gibraltar','350','GI','292','Gibraltar',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GIN','Guinea','غينيا','Guinea','224','GN','324','جمهورية غينيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GLP','Guadeloupe','غواديلوب','Guadeloupe','590','GP','312','Guadeloupe',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GMB','Gambia','غامبيا','Gambia','220','GM','270','جمهورية غامبيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GNB','Guinea-Bissau','غينيا - بيساو','Guinea-Bissau','245','GW','624','جمهورية غينيا - بيساو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GNQ','Equatorial Guinea','غينيا الاستوائية','Equatorial Guinea','240','GQ','226','جمهورية غينيا الاستوائية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GRC','Greece','اليونان','Greece','30','GR','300','الجمهورية الهيلينية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GRD','Grenada','غرينادا','Grenada','1-473','GD','308','غرينادا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GRL','Greenland','غرينلند','Greenland','299','GL','304','Greenland',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GTM','Guatemala','غواتيمالا','Guatemala','502','GT','320','جمهورية غواتيمالا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GUF','French Guiana','غيانا الفرنسية','French Guiana','594','GF','254','French Guiana',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GUM','Guam','غوام','Guam','1-671','GU','316','Guam',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('GUY','Guyana','غيانا','Guyana','592','GY','328','جمهورية غيانا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HKG','Hong Kong','منطقة هونغ كونغ الصينية الإدارية الخاصة','China, Hong Kong Special Administrative Region','852','HK','344','China, Hong Kong Special Administrative Region',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HMD','Heard & McDonald Islands','جزيرة هيرد وجزر ماكدونالد','Heard Island and McDonald Islands','672','HM','334','Heard Island and McDonald Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HND','Honduras','هندوراس','Honduras','504','HN','340','جمهورية هندوراس',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HRV','Croatia','كرواتيا','Croatia','385','HR','191','جمهورية كرواتيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HTI','Haiti','هايتي','Haiti','509','HT','332','جمهورية هايتي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('HUN','Hungary','هنغاريا','Hungary','36','HU','348','هنغاريا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IDN','Indonesia','إندونيسيا','Indonesia','62','ID','360','جمهورية إندونيسيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IMN','Isle of Man','جزيرة مان','Isle of Man','44','IM','833','Isle of Man',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IND','India','الهند','India','91','IN','356','جمهورية الهند',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IOT','British Indian Ocean Territory','المحيط الهندي الإقليم البريطاني في','British Indian Ocean Territory','246','IO','086','British Indian Ocean Territory',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IRL','Ireland','آيرلندا','Ireland','353','IE','372','آيرلندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IRN','Iran','إيران (جمهورية - الإسلامية)','Iran (Islamic Republic of)','98','IR','364','جمهورية إيران الإسلامية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('IRQ','Iraq','العراق','Iraq','964','IQ','368','جمهورية العراق',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ISL','Iceland','آيسلندا','Iceland','354','IS','352','جمهورية آيسلندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ISR','Israel','إسرائيل','Israel','972','IL','376','دولة إسرائيل',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('ITA','Italy','إيطاليا','Italy','39','IT','380','جمهورية إيطاليا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('JAM','Jamaica','جامايكا','Jamaica','1-876','JM','388','جامايكا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('JEY','Jersey','جيرزي','Jersey','44','JE','832','Jersey',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('JOR','Jordan','الأردن','Jordan','962','JO','400','المملكة الأردنية الهاشمية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('JPN','Japan','اليابان','Japan','81','JP','392','اليابان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KAZ','Kazakhstan','كازاخستان','Kazakhstan','7','KZ','398','جمهورية كازاخستان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KEN','Kenya','كينيا','Kenya','254','KE','404','جمهورية كينيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KGZ','Kyrgyzstan','قيرغيزستان','Kyrgyzstan','996','KG','417','جمهورية قيرغيزستان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KHM','Cambodia','كمبوديا','Cambodia','855','KH','116','مملكة كمبوديا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KIR','Kiribati','كيريباس','Kiribati','686','KI','296','جمهورية كيريباس',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KNA','St. Kitts & Nevis','سانت كيتس ونيفس','Saint Kitts and Nevis','1-869','KN','659','سانت كيتس ونيفس',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('KOR','South Korea','جمهورية كوريا','Republic of Korea','82','KR','410','جمهورية كوريا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('KWT','Kuwait','الكويت','Kuwait','965','KW','414','دولة الكويت',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LAO','Laos','جمهورية لاو الديمقراطية الشعبية','Lao People\'s Democratic Republic','856','LA','418','جمهورية لاو الديمقراطية الشعبية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LBN','Lebanon','لبنان','Lebanon','961','LB','422','الجمهورية اللبنانية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LBR','Liberia','ليبريا','Liberia','231','LR','430','جمهورية ليبريا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LBY','Libya','ليبيا','Libya','218','LY','434','ليبيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LCA','St. Lucia','سانت لوسيا','Saint Lucia','1-758','LC','662','سانت لوسيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('LIE','Liechtenstein','ليختنشتاين','Liechtenstein','423','LI','438','إمارة ليختنشتاين',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LKA','Sri Lanka','سري لانكا','Sri Lanka','94','LK','144','جمهورية سري لانكا الاشتراكية الديمقراطية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('LSO','Lesotho','ليسوتو','Lesotho','266','LS','426','مملكة ليسوتو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LTU','Lithuania','ليتوانيا','Lithuania','370','LT','440','جمهورية ليتوانيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LUX','Luxembourg','لكسمبرغ','Luxembourg','352','LU','442','دوقية لكسمبرغ الكبرى',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('LVA','Latvia','لاتفيا','Latvia','371','LV','428','جمهورية لاتفيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MAC','Macau','منطقة ماكاو الإدارية الخاصة التابعة للصين','China, Macao Special Administrative Region','853','MO','446','China, Macao Special Administrative Region',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MAF','St. Martin','سان مارتن','Saint Martin (French Part)','590','MF','663','Saint Martin (French Part)',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('MAR','Morocco','المغرب','Morocco','212','MA','504','المملكة المغربية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MCO','Monaco','موناكو','Monaco','377','MC','492','إمارة موناكو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MDA','Moldova','جمهورية مولدوفا','Republic of Moldova','373','MD','498','جمهورية مولدوفا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('MDG','Madagascar','مدغشقر','Madagascar','261','MG','450','جمهورية مدغشقر',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MDV','Maldives','ملديف','Maldives','960','MV','462','جمهورية ملديف',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MEX','Mexico','المكسيك','Mexico','52','MX','484','الولايات المتحدة المكسيكية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MHL','Marshall Islands','جزر مارشال','Marshall Islands','692','MH','584','جمهورية جزر مارشال',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MKD','Macedonia','جمهورية مقدونيا اليوغوسلافية سابقاً','The former Yugoslav Republic of Macedonia','389','MK','807','جمهورية مقدونيا اليوغوسلافية سابقاً',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('MLI','Mali','مالي','Mali','223','ML','466','جمهورية مالي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MLT','Malta','مالطة','Malta','356','MT','470','جمهورية مالطة',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MMR','Myanmar','ميانمار','Myanmar','95','MM','104','جمهورية اتحاد ميانمار',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MNE','Montenegro','الجبل الأسود','Montenegro','382','ME','499','الجبل الأسود',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MNG','Mongolia','منغوليا','Mongolia','976','MN','496','منغوليا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MNP','Northern Mariana Islands','جزر ماريانا الشمالية','Northern Mariana Islands','1-670','MP','580','Northern Mariana Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MOZ','Mozambique','موزامبيق','Mozambique','258','MZ','508','جمهورية موزامبيق',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MRT','Mauritania','موريتانيا','Mauritania','222','MR','478','الجمهورية الإسلامية الموريتانية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MSR','Montserrat','مونتسيرات','Montserrat','1-664','MS','500','Montserrat',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MTQ','Martinique','مارتينيك','Martinique','596','MQ','474','Martinique',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MUS','Mauritius','موريشيوس','Mauritius','230','MU','480','جمهورية موريشيوس',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MWI','Malawi','ملاوي','Malawi','265','MW','454','جمهورية ملاوي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MYS','Malaysia','ماليزيا','Malaysia','60','MY','458','ماليزيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('MYT','Mayotte','جزيرة مايوت','Mayotte','262','YT','175','Mayotte',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NAM','Namibia','ناميبيا','Namibia','264','NA','516','جمهورية ناميبيا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NCL','New Caledonia','كاليدونيا الجديدة','New Caledonia','687','NC','540','New Caledonia',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NER','Niger','النيجر','Niger','227','NE','562','جمهورية النيجر',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NFK','Norfolk Island','جزيرة نورفلك','Norfolk Island','672','NF','574','Norfolk Island',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NGA','Nigeria','نيجيريا','Nigeria','234','NG','566','جمهورية نيجيريا الاتحادية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NIC','Nicaragua','نيكاراغوا','Nicaragua','505','NI','558','جمهورية نيكاراغوا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NIU','Niue','نيوي','Niue','683','NU','570','نيوي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NLD','Netherlands','هولندا','Netherlands','31','NL','528','مملكة هولندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NOR','Norway','النرويج','Norway','47','NO','578','مملكة النرويج',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NPL','Nepal','نيبال','Nepal','977','NP','524','جمهورية نيبال الديمقراطية الاتحادية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NRU','Nauru','ناورو','Nauru','674','NR','520','جمهورية ناورو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('NZL','New Zealand','نيوزيلندا','New Zealand','64','NZ','554','نيوزيلندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('OMN','Oman','عمان','Oman','968','OM','512','سلطنة عمان',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PAK','Pakistan','باكستان','Pakistan','92','PK','586','جمهورية باكستان الإسلامية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PAN','Panama','بنما','Panama','507','PA','591','جمهورية بنما',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PCN','Pitcairn Islands','بيتكيرن','Pitcairn','870','PN','612','Pitcairn',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PER','Peru','بيرو','Peru','51','PE','604','جمهورية بيرو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PHL','Philippines','الفلبين','Philippines','63','PH','608','جمهورية الفلبين',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PLW','Palau','بالاو','Palau','680','PW','585','جمهورية بالاو',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PNG','Papua New Guinea','بابوا غينيا الجديدة','Papua New Guinea','675','PG','598','دولة بابوا غينيا الجديدة المستقلة',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('POL','Poland','بولندا','Poland','48','PL','616','جمهورية بولندا',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PRI','Puerto Rico','بورتوريكو','Puerto Rico','1','PR','630','Puerto Rico',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PRK','North Korea','جمهورية كوريا الشعبية الديمقراطية','Democratic People\'s Republic of Korea','850','KP','408','جمهورية كوريا الشعبية الديمقراطية',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PRT','Portugal','البرتغال','Portugal','351','PT','620','جمهورية البرتغال',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PRY','Paraguay','باراغواي','Paraguay','595','PY','600','جمهورية باراغواي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('PSE','Palestine','دولة فلسطين','State of Palestine','970','PS','275','دولة فلسطين',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('PYF','French Polynesia','بولينيزيا الفرنسية','French Polynesia','689','PF','258','French Polynesia',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('QAT','Qatar','قطر','Qatar','974','QA','634','دولة قطر',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('REU','Réunion','ريونيون','Réunion','262','RE','638','Réunion',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ROU','Romania','رومانيا','Romania','40','RO','642','رومانيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('RUS','Russia','الاتحاد الروسي','Russian Federation','7','RU','643','الاتحاد الروسي',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('RWA','Rwanda','رواندا','Rwanda','250','RW','646','جمهورية رواندا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('Sark','Sark','سارك','Sark',NULL,NULL,NULL,'Sark',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SAU','Saudi Arabia','المملكة العربية السعودية','Saudi Arabia','966','SA','682','المملكة العربية السعودية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SDN','Sudan','السودان','Sudan','249','SD','729','جمهورية السودان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SEN','Senegal','السنغال','Senegal','221','SN','686','جمهورية السنغال',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SGP','Singapore','سنغافورة','Singapore','65','SG','702','جمهورية سنغافورة',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SGS','South Georgia & South Sandwich Islands','جورجيا الجنوبية وجزر ساندويتش الجنوبية','South Georgia and the South Sandwich Islands','500','GS','239','South Georgia and the South Sandwich Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SHN','St. Helena','سانت هيلانة','Saint Helena','290','SH','654','Saint Helena',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SJM','Svalbard & Jan Mayen','جزر سفالبارد وجان ماين','Svalbard and Jan Mayen Islands','47','SJ','744','Svalbard and Jan Mayen Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SLB','Solomon Islands','جزر سليمان','Solomon Islands','677','SB','090','جزر سليمان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SLE','Sierra Leone','سيراليون','Sierra Leone','232','SL','694','جمهورية سيراليون',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SLV','El Salvador','السلفادور','El Salvador','503','SV','222','جمهورية السلفادور',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('SMR','San Marino','سان مارينو','San Marino','378','SM','674','جمهورية سان مارينو',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SOM','Somalia','الصومال','Somalia','252','SO','706','جمهورية الصومال الاتحادية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SPM','St. Pierre & Miquelon','سان بيار وميكلون','Saint Pierre and Miquelon','508','PM','666','Saint Pierre and Miquelon',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SRB','Serbia','صربيا','Serbia','381','RS','688','جمهورية صربيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SSD','South Sudan','جنوب السودان','South Sudan','211','SS','728','جمهورية جنوب السودان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('STP','São Tomé & Príncipe','سان تومي وبرينسيبي','Sao Tome and Principe','239','ST','678','جمهورية سان تومي وبرينسيبي الديمقراطية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SUR','Suriname','سورينام','Suriname','597','SR','740','جمهورية سورينام',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SVK','Slovakia','سلوفاكيا','Slovakia','421','SK','703','الجمهورية السلوفاكية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SVN','Slovenia','سلوفينيا','Slovenia','386','SI','705','جمهورية سلوفينيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SWE','Sweden','السويد','Sweden','46','SE','752','مملكة السويد',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SWZ','Swaziland','سوازيلند','Swaziland','268','SZ','748','مملكة سوازيلند',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SXM','Sint Maarten','سانت مارتن','Sint Maarten (Dutch part)','1-721','SX','534','Sint Maarten (Dutch part)',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SYC','Seychelles','سيشيل','Seychelles','248','SC','690','جمهورية سيشيل',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('SYR','Syria','الجمهورية العربية السورية','Syrian Arab Republic','963','SY','760','الجمهورية العربية السورية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TCA','Turks & Caicos Islands','جزر تركس وكايكوس','Turks and Caicos Islands','1-649','TC','796','Turks and Caicos Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TCD','Chad','تشاد','Chad','235','TD','148','جمهورية تشاد',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('TGO','Togo','توغو','Togo','228','TG','768','جمهورية توغو',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('THA','Thailand','تايلند','Thailand','66','TH','764','مملكة تايلند',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TJK','Tajikistan','طاجيكستان','Tajikistan','992','TJ','762','جمهورية طاجيكستان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TKL','Tokelau','توكيلاو','Tokelau','690','TK','772','Tokelau',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TKM','Turkmenistan','تركمانستان','Turkmenistan','993','TM','795','تركمانستان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TLS','Timor-Leste','تيمور- ليشتي','Timor-Leste','670','TL','626','جمهورية تيمور - ليشتي الديمقراطية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TON','Tonga','تونغا','Tonga','676','TO','776','مملكة تونغا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TTO','Trinidad & Tobago','ترينيداد وتوباغو','Trinidad and Tobago','1-868','TT','780','جمهورية ترينيداد وتوباغو',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TUN','Tunisia','تونس','Tunisia','216','TN','788','الجمهورية التونسية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TUR','Turkey','تركيا','Turkey','90','TR','792','جمهورية تركيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TUV','Tuvalu','توفالو','Tuvalu','688','TV','798','توفالو',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('TWN','Taiwan','تايون',NULL,'886','TW','158',NULL,NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('TZA','Tanzania','جمهورية تنزانيا المتحدة','United Republic of Tanzania','255','TZ','834','جمهورية تنزانيا المتحدة',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('UGA','Uganda','أوغندا','Uganda','256','UG','800','جمهورية أوغندا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('UKR','Ukraine','أوكرانيا','Ukraine','380','UA','804','أوكرانيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('UMI','U.S. Outlying Islands','نائية التابعة للولايات المتحدة','United States Minor Outlying Islands',NULL,'UM','581','United States Minor Outlying Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('URY','Uruguay','أوروغواي','Uruguay','598','UY','858','جمهورية أوروغواي الشرقية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('USA','US','الولايات المتحدة الأمريكية','United States of America','1','US','840','الولايات المتحدة الأمريكية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('UZB','Uzbekistan','أوزبكستان','Uzbekistan','998','UZ','860','جمهورية أوزبكستان',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('VAT','Vatican City','الكرسي الرسولي','Holy See','39-06','VA','336','الكرسي الرسولي',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('VCT','St. Vincent & Grenadines','سانت فنسنت وجزر غرينادين','Saint Vincent and the Grenadines','1-784','VC','670','سانت فنسنت وجزر غرينادين',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('VEN','Venezuela','فنزويلا (جمهورية - البوليفارية)','Venezuela (Bolivarian Republic of)','58','VE','862','جمهورية فنزويلا البوليفارية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('VGB','British Virgin Islands','جزر فرجن البريطانية','British Virgin Islands','1-284','VG','092','British Virgin Islands',NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19'),('VIR','U.S. Virgin Islands','جزر فرجن التابعة للولايات المتحدة','United States Virgin Islands','1-340','VI','850','United States Virgin Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('VNM','Vietnam','فييت نام','Viet Nam','84','VN','704','جمهورية فييت نام الاشتراكية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('VUT','Vanuatu','فانواتو','Vanuatu','678','VU','548','جمهورية فانواتو',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('WLF','Wallis & Futuna','جزر واليس وفوتونا','Wallis and Futuna Islands','681','WF','876','Wallis and Futuna Islands',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('WSM','Samoa','ساموا','Samoa','685','WS','882','دولة ساموا المستقلة',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('YEM','Yemen','اليمن','Yemen','967','YE','887','الجمهورية اليمنية',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ZAF','South Africa','جنوب أفريقيا','South Africa','27','ZA','710','جمهورية جنوب أفريقيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ZMB','Zambia','زامبيا','Zambia','260','ZM','894','جمهورية زامبيا',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20'),('ZWE','Zimbabwe','زمبابوي','Zimbabwe','263','ZW','716','جمهورية زمبابوي',NULL,'2020-10-12 09:25:20','2020-10-12 09:25:20');
/*!40000 ALTER TABLE `countries` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `failed_jobs`
--
DROP TABLE IF EXISTS `failed_jobs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`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(),
PRIMARY KEY (`id`),
UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `failed_jobs`
--
LOCK TABLES `failed_jobs` WRITE;
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `feild_type`
--
DROP TABLE IF EXISTS `feild_type`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `feild_type` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `feild_type`
--
LOCK TABLES `feild_type` WRITE;
/*!40000 ALTER TABLE `feild_type` DISABLE KEYS */;
INSERT INTO `feild_type` VALUES (1,'text',NULL,NULL),(2,'email',NULL,NULL),(3,'date',NULL,NULL),(4,'gender',NULL,NULL),(5,'country',NULL,NULL),(6,'image',NULL,NULL);
/*!40000 ALTER TABLE `feild_type` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=375 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `migrations`
--
LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (364,'2014_10_12_000000_create_users_table',1),(365,'2014_10_12_100000_create_password_resets_table',1),(366,'2014_10_12_200000_add_two_factor_columns_to_users_table',1),(367,'2019_08_19_000000_create_failed_jobs_table',1),(368,'2019_12_14_000001_create_personal_access_tokens_table',1),(369,'2020_10_10_052446_create_sessions_table',1),(370,'2020_10_10_055141_create_sections_table',1),(371,'2020_10_10_055201_create_questions_table',1),(372,'2020_10_10_055259_create_question_answers_table',1),(373,'2020_10_10_141404_create_feild_type_table',1),(374,'2020_10_10_153007_create_countries_table',1);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `password_resets`
--
DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
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,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `password_resets`
--
LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `personal_access_tokens`
--
DROP TABLE IF EXISTS `personal_access_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `personal_access_tokens` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tokenable_id` bigint(20) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
`abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_used_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `personal_access_tokens`
--
LOCK TABLES `personal_access_tokens` WRITE;
/*!40000 ALTER TABLE `personal_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `personal_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `question_answers`
--
DROP TABLE IF EXISTS `question_answers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `question_answers` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL,
`section_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `question_answers`
--
LOCK TABLES `question_answers` WRITE;
/*!40000 ALTER TABLE `question_answers` DISABLE KEYS */;
/*!40000 ALTER TABLE `question_answers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questions`
--
DROP TABLE IF EXISTS `questions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questions` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`section_id` int(11) NOT NULL,
`feild_type_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questions`
--
LOCK TABLES `questions` WRITE;
/*!40000 ALTER TABLE `questions` DISABLE KEYS */;
INSERT INTO `questions` VALUES (1,'obaida name',1,1,'2020-10-12 09:25:43','2020-10-12 09:25:43'),(2,'data of birth',1,3,'2020-10-12 09:25:56','2020-10-12 09:25:56'),(3,'images',1,6,'2020-10-12 09:26:09','2020-10-12 09:26:09');
/*!40000 ALTER TABLE `questions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sections`
--
DROP TABLE IF EXISTS `sections`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sections` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`closed_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sections`
--
LOCK TABLES `sections` WRITE;
/*!40000 ALTER TABLE `sections` DISABLE KEYS */;
INSERT INTO `sections` VALUES (1,'obaida',NULL,'2020-10-12 09:25:33','2020-10-12 09:25:33');
/*!40000 ALTER TABLE `sections` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sessions` (
`id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_agent` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`last_activity` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `sessions_user_id_index` (`user_id`),
KEY `sessions_last_activity_index` (`last_activity`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sessions`
--
LOCK TABLES `sessions` WRITE;
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
INSERT INTO `sessions` VALUES ('0o1M6YKDqKpSBvOGXKkOqPWhZujELXPFBLHGW9LL',NULL,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0','YTozOntzOjY6Il90b2tlbiI7czo0MDoiVFVqSWVFQ01ma3NGUU9MZEdJQnVnUm9FeWxDRjhXdTN6bDlJbk9MayI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6Mjc6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMC9sb2dpbiI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1602505595),('<KEY>',1,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0','<KEY>2),('<KEY>',NULL,'127.0.0.1','Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0','YTozOntzOjY6Il90b2tlbiI7czo0MDoiNWRwN2NlM0hYY3l6WXczVkl6clBEOWpyMldLc0RHd0M4M3NPU2UxYSI7czo5OiJfcHJldmlvdXMiO2E6MTp7czozOiJ1cmwiO3M6MjE6Imh0dHA6Ly8xMjcuMC4wLjE6ODAwMCI7fXM6NjoiX2ZsYXNoIjthOjI6e3M6Mzoib2xkIjthOjA6e31zOjM6Im5ldyI7YTowOnt9fX0=',1602505595);
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`two_factor_secret` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`two_factor_recovery_codes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`current_team_id` bigint(20) unsigned DEFAULT NULL,
`profile_photo_path` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'admin','<EMAIL>',NULL,'$2y$10$hDwgHkuEa4ldWbSdeOy6nOkVCx7DjREH/wp5sokuiavEelz6xOcv2',NULL,NULL,NULL,NULL,NULL,'2020-10-12 09:25:19','2020-10-12 09:25:19');
/*!40000 ALTER TABLE `users` 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 2020-10-12 16:27:05
|
-- MySQL Script generated by MySQL Workbench
-- Mon Aug 19 13:30:20 2019
-- 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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema g6Mj2lugZA
-- -----------------------------------------------------
DROP SCHEMA IF EXISTS `g6Mj2lugZA` ;
-- -----------------------------------------------------
-- Schema g6Mj2lugZA
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `g6Mj2lugZA` DEFAULT CHARACTER SET utf8 ;
USE `g6Mj2lugZA` ;
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`users`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`users` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`users` (
`user_id` INT NOT NULL,
`first_name` VARCHAR(16) NOT NULL,
`second_name` VARCHAR(45) NOT NULL,
`college_ID` INT NOT NULL,
`email` VARCHAR(255) NOT NULL,
`phone_number` VARCHAR(45) NOT NULL,
`date_created` DATETIME NOT NULL,
PRIMARY KEY (`user_id`));
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`initiatives`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`initiatives` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`initiatives` (
`initiative_id` INT NOT NULL,
`initiative_name` VARCHAR(120) NOT NULL,
`initiative_description` MEDIUMBLOB NOT NULL,
`strategy_id` INT NOT NULL,
`college_id` INT NOT NULL,
`initiative_active` VARCHAR(1) NOT NULL,
`date_created` DATETIME NOT NULL,
PRIMARY KEY (`initiative_id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`colleges`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`colleges` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`colleges` (
`college_id` INT NOT NULL,
`college_short_name` VARCHAR(45) NOT NULL,
`college_long_name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`college_id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`milestones`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`milestones` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`milestones` (
`milestone_id` INT NOT NULL,
`milestone_name` VARCHAR(120) NOT NULL,
`milestone_description` MEDIUMBLOB NOT NULL,
`user_id` INT NOT NULL,
`start_date` DATETIME NOT NULL,
`end_date` DATETIME NOT NULL,
`initiative_id` VARCHAR(45) NOT NULL,
`milestone_active` VARCHAR(45) NOT NULL,
`milestone_progress_status` VARCHAR(45) NOT NULL,
`date_created` DATETIME NOT NULL,
PRIMARY KEY (`milestone_id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`strategy`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`strategy` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`strategy` (
`strategy_id` INT NOT NULL,
`strategy_name` VARCHAR(120) NOT NULL,
`strategy_description` MEDIUMBLOB NOT NULL,
`college_id` INT NOT NULL,
`active_strategy` VARCHAR(1) NOT NULL,
`date_created` DATETIME NOT NULL,
PRIMARY KEY (`strategy_id`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `g6Mj2lugZA`.`tracking`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `g6Mj2lugZA`.`tracking` ;
CREATE TABLE IF NOT EXISTS `g6Mj2lugZA`.`tracking` (
`strategy_id` INT NOT NULL,
`initiative_id` INT NOT NULL,
`college_id` INT NOT NULL)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
CREATE DATABASE twitter_dashboard;
USE twitter_dashboard;
CREATE TABLE IF NOT EXISTS users (id VARCHAR(25) NOT NULL, created_at DATETIME, PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS user_stats (id VARCHAR(100) NOT NULL, user_id VARCHAR(25) NOT NULL, last_insert_date DATETIME, description VARCHAR(300), followers_count MEDIUMINT, friends_count MEDIUMINT, name VARCHAR(50), screen_name VARCHAR(25), statuses_count MEDIUMINT, protected BOOLEAN, PRIMARY KEY (id), UNIQUE KEY unique_id (id));
CREATE TABLE IF NOT EXISTS tweets (id VARCHAR(25) NOT NULL, created_at TIMESTAMP,
favorite_count INT, favorited BOOLEAN, in_reply_to_status_id VARCHAR(25),
in_reply_to_user_id VARCHAR(25), in_reply_to_screen_name VARCHAR(35), lang CHAR(10),
retweet_count INT, retweeted BOOLEAN, source VARCHAR(50), text VARCHAR(500), user_id VARCHAR(25), last_insert_date DATETIME,
PRIMARY KEY (id),
FOREIGN KEY (user_id) REFERENCES users(id)
);
CREATE TABLE IF NOT EXISTS media (id VARCHAR(25) NOT NULL, media_type VARCHAR(30), filename VARCHAR(30), media_url BLOB, tweet_id VARCHAR(25), last_insert_date DATETIME,
PRIMARY KEY (id),
FOREIGN KEY (tweet_id) REFERENCES tweets(id));
/* Add support for unicode columns */
ALTER DATABASE twitter_dashboard COLLATE utf8mb4_general_ci;
ALTER TABLE user_stats CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE user_stats CHANGE description description VARCHAR(300) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE user_stats CHANGE name name VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE tweets CHANGE in_reply_to_screen_name in_reply_to_screen_name VARCHAR(35) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE tweets CHANGE text text VARCHAR(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
ALTER TABLE tweets CHANGE source source VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; |
<filename>agi_mopublic_pub/agi_mopublic_pub_mopublic_grenzpunkt.sql
SELECT
grenzpunkt.geometrie,
grenzpunkt.lagegen AS lagegenauigkeit,
CASE
WHEN lagezuv_txt = 'ja'
THEN TRUE
ELSE FALSE
END AS lagezuverlaessigkeit,
grenzpunkt.punktzeichen,
grenzpunkt.punktzeichen_txt,
CASE
WHEN symbol.ori IS NULL
THEN (100 - 0) * 0.9
ELSE (100 - symbol.ori) * 0.9
END AS symbolorientierung,
grenzpunkt.gem_bfs AS bfs_nr,
grenzpunkt.lieferdatum AS importdatum,
to_date(nachfuehrung.gueltigereintrag, 'YYYYMMDD') AS nachfuehrung,
nachfuehrung.gueltigkeit_txt AS gueltigkeit
FROM
av_avdpool_ng.liegenschaften_grenzpunkt AS grenzpunkt
LEFT JOIN av_avdpool_ng.liegenschaften_grenzpunktpos AS pos
ON pos.grenzpunktpos_von = grenzpunkt.tid
LEFT JOIN av_avdpool_ng.liegenschaften_grenzpunktsymbol AS symbol
ON symbol.grenzpunktsymbol_von = grenzpunkt.tid
LEFT JOIN av_avdpool_ng.liegenschaften_lsnachfuehrung AS nachfuehrung
ON grenzpunkt.entstehung = nachfuehrung.tid
; |
### Schema
CREATE DATABASE burgers_db;
USE burgers_db;
CREATE TABLE burgers
(
id int(10) AUTO_INCREMENT NOT NULL ,
burger_name varchar(250) NOT NULL,
devoured BOOLEAN DEFAULT false,
PRIMARY KEY (id)
); |
<filename>server/db/places.sql
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Creato il: Gen 30, 2018 alle 18:29
-- Versione del server: 10.1.28-MariaDB
-- Versione PHP: 7.1.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `east-coast-trip`
--
-- --------------------------------------------------------
--
-- Struttura della tabella `places`
--
CREATE TABLE `places` (
`ID` int(11) NOT NULL,
`city_name` varchar(256) COLLATE utf8_bin NOT NULL,
`city_nick` varchar(256) COLLATE utf8_bin NOT NULL,
`city_thumb_url` varchar(256) COLLATE utf8_bin NOT NULL,
`city_bg_url` varchar(256) COLLATE utf8_bin NOT NULL,
`city_desc` varchar(1024) COLLATE utf8_bin NOT NULL,
`place1_img_url` varchar(256) COLLATE utf8_bin NOT NULL,
`place1_name` varchar(256) COLLATE utf8_bin NOT NULL,
`place1_desc` varchar(1024) COLLATE utf8_bin NOT NULL,
`place2_img_url` varchar(256) COLLATE utf8_bin NOT NULL,
`place2_name` varchar(256) COLLATE utf8_bin NOT NULL,
`place2_desc` varchar(1024) COLLATE utf8_bin NOT NULL,
`place3_img_url` varchar(256) COLLATE utf8_bin NOT NULL,
`place3_name` varchar(256) COLLATE utf8_bin NOT NULL,
`place3_desc` varchar(1024) COLLATE utf8_bin NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Dump dei dati per la tabella `places`
--
INSERT INTO `places` (`ID`, `city_name`, `city_nick`, `city_thumb_url`, `city_bg_url`, `city_desc`, `place1_img_url`, `place1_name`, `place1_desc`, `place2_img_url`, `place2_name`, `place2_desc`, `place3_img_url`, `place3_name`, `place3_desc`) VALUES
(1, 'Chicago', 'The Murder City', 'Chicago.jpg', 'Chicago-city-view.jpg', 'Chicago is the third largest city in the United States, it is sometimes called the \"Windy City\".\nChicago was incorporated as a city in 1837, near a portage between the Great Lakes and the Mississippi River watershed, it was named for the plants common along the Chicago River.\nToday The city is an international hub for finance, commerce, industry, telecommunications, and transportation. It is also known as \"The Murder Capital of the United States\"', 'St.MaryOfTheAngels.jpg', 'St. Mary Of The Angels', 'St. Mary of the Angels is an historic church located in Chicago\'s Bucktown neighborhood.\nIt has been acclaimed as one of the finest specimens of Roman Renaissance architecture in the United States.\nThe imposing brick edifice with its twin bell towers and magnificent dome was constructed at a cost of $400,000.', 'FederalReserveBank.jpg', 'Federal Reserve Bank of Chicago', 'The Federal Reserve Bank of Chicago is also known as the Chicago Fed and is one of the banks that make up the nation\'s central bank.\nIn the inside the bank\'s money museum can be found, the museum is free and open to the public year-round, all visitors must show a photo identification, walk through a metal detector and have their bags x-rayed before entering the Money Museum.', 'NavyPier.jpg', '<NAME>', '<NAME>, named to honor the naval veterans who served in the First World War, is a pier located on Chicago\'s shoreline of lake Michigan, it encompasses more than fifty acres of parks, gardens, shops, restaurants, family attractions and exhibition facilities and is the top leisure destination in the Midwestern United States.\nIt was opened to the public on July 15, 1916. \nOriginally the Navy Pier was to be a dock for freights, passenger traffic and a space for indoor and outdoor recreation for the public.'),
(2, 'Los Angeles', 'City of Angels', 'LosAngeles.jpg', 'LA-city-view.png', 'Los Angeles is the cultural, financial, and commercial center of Southern California, it is the second most populous city in the United States. The city was officially founded on September 4, 1781, by Spanish governor, it became a part of Mexico in 1821, but in 1848, at the end of the Mexican-American War, it was incorporated in the United States. \r\nNicknamed the \"City of Angels\" because of how its name translates from the Spanish is the home of Hollywood, a major center of the world entertainment industry.', 'GriffithObservatory.jpg', 'Griffith Observatory', 'Built in 1896, commands a view of the Los Angeles Basin, including Downtown Los Angeles to the southeast, Hollywood to the south, and the Pacific Ocean to the southwest. <NAME>, who donated funds to build it, wanted to make astronomy accessible to everyone.', 'WalkOfFame.jpg', 'Hollywood Walk Of Fame', 'The Hollywood Walk of Fame comprises more than 2,600 stars embedded in the sidewalks of Hollywood Boulevard, The stars are monuments to achievement in the entertainment industry.', 'SantaMonicaBay.jpg', 'Santa Monica Bay', 'Santa Monica Bay, a bight of the Pacific Ocean in Southern California, is home to some of the most famous beaches in the world and is also a very popular fishing destination.'),
(3, 'New Orleans', 'Crescent City', 'NewOrleans.jpg', 'NewOrleans-city-view.jpg', 'New Orleans is a major United States port and the largest city and metropolitan area in the state of Louisiana.\nBefore Hurricane Katrina, Orleans Parish was the most populous parish in Louisiana.\nThe city is known for its distinct French and Spanish Creole architecture, as well as its cross-cultural and multilingual heritage, it is also famous for its cuisine, for being the birthplace of jazz music and for its annual celebrations and festivals.\nNew Orleans is located in southeastern Louisiana, and occupies both sides of the Mississippi River.', 'JacksonSquare.jpg', 'Jackson Square', 'Jackson Square is a historic park in the French Quarter of New Orleans, during the first half of the 19th century it was the former military plaza, then renamed Jackson Square, for the battle s victorious General Jackson, in the center of the park there is also a statue dedicated to the general.', 'AquariumOfAmericas.jpg', 'Aquarium Of Americas', 'It is located along the banks of the Mississippi River by the edge of the historic French Quarter off Canal Street, and it was opened in 1990. The aquarium specializes in aquatic life of the Americas, the exhibits feature regions throughout North and South America, with 10,000 animals representing 530 species.', 'SaintLouisCathedral.jpg', 'Saint Louis Cathedrals', 'Saint Louis Cathedrals is the seat of the Roman Catholic Archdiocese of New Orleans and is the oldest cathedral in the United States.\nIt is located next to Jackson Square and facing the Mississippi River in the heart of the city.\nIt is made of three churches, the first one was built in 1718, while the third was built in 1789 but it was raised to cathedral rank only in 1793.'),
(4, 'New York', 'The Big Apple', 'NewYorkCity.jpg', 'newyork-city-view.jpg', 'New York, also known as \"the big apple\", is the most populous city in the United States and the cultural, financial, and media capital of the world. New York City consists of five boroughs (Brooklyn, Queens, Manhattan, The Bronx and Staten Island), each of which is a separate county. \nNew York City was settled by the dutch in 1624 but the English took over the colony in 1664 during the second Anglo-Dutch War.\nNew York was named like this to honor the Duke of York. The city also has been the capital of the United States until 1790.', 'empireStateBuilding.jpg', 'Empire State Building', 'The Empire State Building is a skyscraper located in Midtown Manhattan, it has been the tallest in the world from 1931 to 1970 with a height of 443m. \nIts name comes from \"Empire State\", the nickname of New York. Nowadays is used as an office building and as an observation deck.', 'libertyStatue.jpg', 'Statue Of Liberty', 'The Statue of Liberty, located on Liberty Island, was built by <NAME> and <NAME> and is made of copper.\r\nThe statue holds a torch above her head with her right hand, and in her left hand carries a tablet on which is inscribed a Roman number which is the date of the U.S. Declaration of Independence. \r\nThe statue is an icon of freedom and a welcoming sight to immigrants. ', 'centralPark.jpg', 'Central Park', 'Central Park is an urban park located in Manhattan and is the most visited urban park in the United States, it is also the most filmed location in the world. \nIt was opened in the 1857, Even thought it looks like a natural park it was Calvert Vaux to improve and expand the park with a plan titled the \"Greensward Plan\".\nCentral Park was designated a National Historic Landmark by the U.S. Department of the Interior in 1962, which in April 2017 placed it on the tentative list for UNESCO World Heritage sites.'),
(5, 'Philadelphia', 'The City of Brotherly Love', 'Philadelphia.jpg', 'philadelphia-city-view.jpg', 'Philadelphia is the largest city in and the sixth-most populous city in the United States, it was founded in 1682 to serve as capital of the Pennsylvania Colony. \nThe city played an important role in the American Revolution as a meeting place for the Founding Fathers of the United States, who signed the Declaration of Independence. \nNowadays it is known as a top study destination and for its arts since it is the most outdoor sculptures and murals than any other American city.', 'libertyBell.jpeg', 'Liberty Bell', 'The Liberty Bell is a symbol of American independence, it was cast with the lettering \"Proclaim LIBERTY Throughout all the Land unto all the Inhabitants Thereof\",it first cracked when rung after its arrival in Philadelphia. \nIn the past it was used to summon legislative sessions and to alert citizens about public meetings and proclamations.', 'museumOfArt.jpeg', 'Museum Of Art', 'The museum was completed in 1928 on Fairmount, a hill located at the northwest end of the <NAME> Parkway. \nIt contains over 240,000 objects that include sculpture, paintings, prints, drawings, photographs, armor, and decorative arts, this makesThe museum was completed in 1928 on Fairmount, a hill located at the northwest end of the <NAME> Parkway. \nIt contains over 240,000 objects that include sculpture, paintings, prints, drawings, photographs, armor, and decorative arts, this makes him one of the largest art museums in the world based on gallery space and one of the most visited. ', 'university.jpg', 'a university', 'The University of Pennsylvania is located in the University City section, it was chartered before the American Revolution.\nIt was one of the first academic institutions to follow a multidisciplinary model, the first school of medicine in North America and the first collegiate business school.'),
(6, 'Seattle', 'The Rattle', 'Seattle.jpg', 'Seattle-city-view.jpg', 'Seattle, a seaport city on the west coast, is the fourth-largest port in North America.\nThe Seattle area was previously inhabited by Native Americans for at least 4,000 years before the first permanent European settlers,\nThe settlement was moved to the eastern shore of Elliott Bay and named \"Seattle\" in 1852.\nLogging was the city s major industry until it had become a commercial and shipbuilding center as a gateway to Alaska, The Seattle area developed into a technology center beginning in the 1980s and Amazon was founded in Seattle in 1994.\nThe city is also know for the jazz scene and as birthplace of many rock bands. ', 'SpaceNeedle.jpg', 'Space Needle', 'The Space Needle is an observation tower and an icon of Seattle, it was built in the Seattle Center for the 1962 World s Fair, it is 184m high and 42m wide, near the top an observation deck and a restaurant can be found.', 'OlympicSculpturePark.jpg', 'Olympic Sculpture Park', 'The Olympic Sculpture Park, situated at the northern end of the Seattle seawall, is a park, free and open to the public, opened in 2007. \nThe park consists of outdoor sculpture museum and beach.', 'MuseumOfFlight.jpg', 'Museum Of Flight', 'The Museum of Flight is a private space museum, It was established in 1965 and is the largest private air and space museum in the world.'),
(10, 'Washington', 'The District', 'Washington.jpg', 'washington-city-view.jpg', 'Washington, D.C., formally the District of Columbia, was founded in 1791 and is the capital of the United States.\nThe signing of the Residence Act on July 16, 1790, approved the creation of a capital district, which means that even thought the land was donated from the states of Maryland and Virginia, the district isn\'t part of any state.\nWashington is home to many national monuments and museums, which are primarily situated on or around the National Mall, \nit is also home of the federal government of the United States (Congress, President, and Supreme Court).', 'WhiteHouse.jpg', 'White House', 'The White House is the official residence and workplace of the President of the United States and has been the residence of every U.S. president since John Adams in 1800. \nThe Construction took place between 1792 and 1800 using Aquia Creek sandstone painted white. \nIn 1814, during the War of 1812 it was set ablaze by the British Army, destroying the interior and charring much of the exterior.\nReconstruction began almost immediately.', 'NationalMall.jpeg', 'National Mall', 'The National Mall is a landscaped park.\nIt contains museums of the Smithsonian Institution, art galleries, cultural institutions and various memorials, sculptures and statues. \nThe name is often taken to refer to the entire area between the Lincoln Memorial on the west, and east to the United States Capitol grounds, with the Washington Monument dividing the area slightly west of its midpoint.', 'LincolnMemorial.jpg', 'Lincoln Memorial', 'The Lincoln Memorial is a national monument built to honor the 16th President of the United States, Abraham Lincoln.\nThe building is in the form of a Greek Doric temple and contains a large seated sculpture of Abraham Lincoln and inscriptions of two speeches of the president, the memorial has been the site of many famous speeches, including <NAME> King Jr.\'s \"I Have a Dream\". ');
--
-- Indici per le tabelle scaricate
--
--
-- Indici per le tabelle `places`
--
ALTER TABLE `places`
ADD PRIMARY KEY (`ID`);
--
-- AUTO_INCREMENT per le tabelle scaricate
--
--
-- AUTO_INCREMENT per la tabella `places`
--
ALTER TABLE `places`
MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
CREATE TABLE IF NOT EXISTS users (
"id" uuid PRIMARY KEY,
"email" varchar(64) not null unique,
"hashed_password" text not null,
"role" varchar(64) not null,
"api_key" varchar(64) not null,
"created_at" timestamp with time zone DEFAULT now(),
"updated_at" timestamp with time zone DEFAULT now()
);
CREATE UNIQUE INDEX users_email ON users (email); |
<reponame>niraj8/norm
select * from misspelled_employees;
|
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : mar. 26 sep. 2017 à 22:18
-- Version du serveur : 10.1.21-MariaDB
-- Version de PHP : 5.6.30
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 : `PinMe`
--
-- --------------------------------------------------------
--
-- Structure de la table `Note`
--
CREATE TABLE `Note` (
`_id` int(11) NOT NULL,
`department` varchar(256) NOT NULL,
`author` varchar(256) NOT NULL,
`content` varchar(4096) NOT NULL,
`creation` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`modification` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Zone`
--
CREATE TABLE `Zone` (
`_id` int(11) NOT NULL,
`name` varchar(256) NOT NULL,
`color` varchar(128) NOT NULL DEFAULT '#000000'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Index pour les tables déchargées
--
--
-- Index pour la table `Note`
--
ALTER TABLE `Note`
ADD PRIMARY KEY (`_id`);
--
-- Index pour la table `Zone`
--
ALTER TABLE `Zone`
ADD PRIMARY KEY (`_id`);
--
-- AUTO_INCREMENT pour les tables déchargées
--
--
-- AUTO_INCREMENT pour la table `Note`
--
ALTER TABLE `Note`
MODIFY `_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT pour la table `Zone`
--
ALTER TABLE `Zone`
MODIFY `_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE TABLE [dbo].[ridePositions] (
[Id] BIGINT IDENTITY (1, 1) NOT NULL,
[RideId] INT NOT NULL,
[Latitude] NUMERIC (18, 10) NOT NULL,
[Longitude] NUMERIC (18, 10) NOT NULL,
[TS] DATETIME2 (7) NOT NULL,
CONSTRAINT [PK_ridePositions] PRIMARY KEY CLUSTERED ([Id] ASC),
CONSTRAINT [FK_ridePositions_rides] FOREIGN KEY ([RideId]) REFERENCES [dbo].[rides] ([Id])
);
GO
CREATE NONCLUSTERED INDEX [ix_RidePositions_RideId]
ON [dbo].[ridePositions]([RideId] ASC);
|
<reponame>rivannurihsan/WEBPRO
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Apr 25, 2020 at 02:38 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.1.32
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_TUBESWEBPRO`
--
-- --------------------------------------------------------
--
-- Table structure for table `Artikel`
--
CREATE TABLE `Artikel` (
`id` int(11) NOT NULL,
`Judul` varchar(256) NOT NULL,
`Isi` text NOT NULL,
`tanggal` date NOT NULL,
`Gambar` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `Artikel`
--
INSERT INTO `Artikel` (`id`, `Judul`, `Isi`, `tanggal`, `Gambar`) VALUES
(1, 'Penyakit Anemia', '<strong>Pengertian Anemia</strong><br />\r\n<br />\r\nPenyakit anemia merupakan kondisi ketika jumlah sel darah merah lebih rendah dari jumlah normal. Selain itu, anemia terjadi ketika hemoglobin di dalam sel-sel darah merah tidak cukup, seperti protein kaya zat besi yang memberikan warna merah darah. Protein ini membantu sel-sel darah merah membawa oksigen dari paru-paru ke seluruh tubuh.<br />\r\n<br />\r\nOleh karena itu, tubuh yang tidak mendapatkan cukup darah yang kaya oksigen akan mengalami anemia. Akibatnya, seseorang mungkin akan merasa lelah atau lemah. Selain itu, gejala lain mungkin muncul adalah sesak napas, pusing, atau sakit kepala.<br />\r\n<br />\r\nBerikut adalah beberapa jenis anemia yang dapat terjadi:<br />\r\n-Anemia defisiensi B12.<br />\r\n-Anemia defisiensi folat.<br />\r\n-Anemia defisiensi besi.<br />\r\n-Anemia karena penyakit kronis.<br />\r\n-Anemia hemolitik.<br />\r\n-Anemia aplastik.<br />\r\n-Anemia megaloblastik.<br />\r\n-Anemia pernisiosa.<br />\r\n-Anemia sel sabit.<br />\r\n-Talasemia.<br />\r\n<br />\r\n<strong>Penyebab Anemia</strong><br />\r\nSumsum tulang adalah jaringan lunak di tengah tulang yang membantu membentuk semua sel darah. Sel-sel darah merah yang sehat akan bertahan antara 90 hingga 120 hari. Setelah itu, sel-sel darah tua dalam tubuh akan diganti dengan yang baru. Proses ini berlangsung secara terus-menerus. Di dalam tubuh terdapat hormon yang disebut erythropoietin (EPO) yang dibuat di ginjal. Tugasnya adalah untuk memberikan sinyal kepada sumsum tulang untuk “menciptakan” lebih banyak sel darah merah bagi tubuh.<br />\r\n<br />\r\nHemoglobin adalah protein pembawa oksigen dalam sel darah merah dan protein inilah yang memberikan warna merah pada sel darah merah. Bagi pengidap anemia, mereka tidak memiliki cukup hemoglobin.', '2020-04-25', 'Anemia2.jpg'),
(2, 'Coronavirus-19', '<strong> Pengertian Coronavirus </strong>\r\n\r\nCoronavirus atau virus corona merupakan keluarga besar virus yang menyebabkan infeksi saluran pernapasan atas ringan hingga sedang, seperti penyakit flu. Banyak orang terinfeksi virus ini, setidaknya satu kali dalam hidupnya.\r\n\r\nNamun, beberapa jenis virus corona juga bisa menimbulkan penyakit yang lebih serius, seperti:\r\n-Middle East Respiratory Syndrome (MERS-CoV).\r\n-Severe Acute Respiratory Syndrome (SARS-CoV).\r\n-Pneumonia.\r\n\r\nSARS yang muncul pada November 2002 di Tiongkok, menyebar ke beberapa negara lain. Mulai dari Hongkong, Vietnam, Singapura, Indonesia, Malaysia, Inggris, Italia, Swedia, Swiss, Rusia, hingga Amerika Serikat. Epidemi SARS yang berakhir hingga pertengahan 2003 itu menjangkiti 8.098 orang di berbagai negara. Setidaknya 774 orang mesti kehilangan nyawa akibat penyakit infeksi saluran pernapasan berat tersebut. <br />\r\nSampai saat ini terdapat tujuh coronavirus (HCoVs) yang telah diidentifikasi, yaitu:<br />\r\n-HCoV-229E.\r\n-HCoV-OC43.\r\n-HCoV-NL63.\r\n-HCoV-HKU1.\r\n-SARS-COV (yang menyebabkan sindrom pernapasan akut).\r\n-MERS-COV (sindrom pernapasan Timur Tengah).\r\n-COVID-19 atau dikenal juga dengan Novel Coronavirus (menyebabkan wabah pneumonia di kota Wuhan, Tiongkok pada Desember 2019, dan menyebar ke negara lainnya mulai Januari 2020. Indonesia sendiri mengumumkan adanya kasus covid 19 dari Maret 2020', '2020-04-25', 'Corona2.jpg'),
(4, 'Selamat Datang', 'Selamat Datang di Website kami silahkan Membaca Artikel Yang tersedia di sebelah kanan anda', '2020-04-25', 'logooo_(1).png');
-- --------------------------------------------------------
--
-- Table structure for table `Product`
--
CREATE TABLE `Product` (
`Obatid` int(11) NOT NULL,
`Nama_Obat` varchar(255) NOT NULL,
`Harga` float DEFAULT NULL,
`Description` varchar(255) DEFAULT NULL,
`Pict` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `Product`
--
INSERT INTO `Product` (`Obatid`, `Nama_Obat`, `Harga`, `Description`, `Pict`) VALUES
(4, 'Obat', 77, '\\', 'WhatsApp_Image_2020-04-22_at_18_16_133.jpeg'),
(5, 'Product 2', 2, 'Product 2', 'NewGraph.png'),
(13, 'a', 123, 'aasdadadas\r\nasdasdasd', 'Screen_Shot_2020-04-20_at_21_59_17.png'),
(15, 'asdasd', 1, 'asasasasdasd', 'Screen_Shot_2020-04-20_at_22_48_102.png'),
(17, 'asda', 0, 'a', 'WhatsApp_Image_2020-04-22_at_18_16_13.jpeg'),
(18, '1', 1, 'Coba EDIT', 'WhatsApp_Image_2020-04-22_at_18_16_131.jpeg'),
(19, '7', 7, '7', '3.png'),
(20, '.', 23, '3', 'DAA.png'),
(21, '8', 8, '8', 'WhatsApp_Image_2020-04-22_at_18_24_11.jpeg'),
(22, '123', 123, '123231231<br />\r\n312', '4r1.jpg'),
(24, 'zcx', 32132, 'zx21czx321', 'EPRT1.png'),
(25, 'coba', 22, 'Lorem Ipsum is simply ', 'EPRT2.png'),
(26, ' industry.', 5, 'Lorem Ipsum is simply dummy', '4r2.jpg'),
(27, 'qweqwe', 555, 'asdasd', 'EPRT3.png'),
(28, 'lorem', 7, 'aaa', '4r3.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `Profile`
--
CREATE TABLE `Profile` (
`Personid` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`TTL` date NOT NULL,
`alamat` varchar(255) NOT NULL,
`gender` varchar(255) NOT NULL,
`status` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `Profile`
--
INSERT INTO `Profile` (`Personid`, `email`, `username`, `password`, `TTL`, `alamat`, `gender`, `status`) VALUES
(1, '<EMAIL>', '<PASSWORD>', '<PASSWORD>', '2020-04-04', 'Subang', 'Pria', 0),
(3, '<EMAIL>', 'rivan', '<PASSWORD>', '2000-09-11', 'a', 'Pria', 1),
(16, 'asdasd', 'aaa', 'aaa', '2020-04-02', 'a', 'Wanita', 0);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `Artikel`
--
ALTER TABLE `Artikel`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `Product`
--
ALTER TABLE `Product`
ADD PRIMARY KEY (`Obatid`);
--
-- Indexes for table `Profile`
--
ALTER TABLE `Profile`
ADD PRIMARY KEY (`Personid`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `Artikel`
--
ALTER TABLE `Artikel`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `Product`
--
ALTER TABLE `Product`
MODIFY `Obatid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `Profile`
--
ALTER TABLE `Profile`
MODIFY `Personid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>1-10
-- ****************** SqlDBM: MySQL ******************;
-- ***************************************************;
-- DROP DATABASE IF EXISTS g6xs2llrd7gfjp1t;
-- CREATE DATABASE g6xs2llrd7gfjp1t;
-- USE g6xs2llrd7gfjp1t;
-- ****************** SqlDBM: MySQL ******************;
-- ***************************************************;
DROP DATABASE IF EXISTS `cuiscene_db`;
CREATE DATABASE `cuiscene_db`;
USE `cuiscene_db`;
-- ************************************** `users`
CREATE TABLE `users`
(
`username_pk` varchar(45) NOT NULL ,
`date_created` datetime NOT NULL ,
`last_login` datetime ,
PRIMARY KEY (`username_pk`)
) ENGINE=INNODB;
-- ************************************** `restaurants`
CREATE TABLE `restaurants`
(
`id` int NOT NULL AUTO_INCREMENT ,
`restaurant_name_pk` varchar(45) NOT NULL ,
`cuisine` varchar(45) NOT NULL ,
`location` varchar(45) ,
`rating` decimal(1,1) ,
PRIMARY KEY (`id`, `restaurant_name_pk`)
) ENGINE=INNODB;
-- ************************************** `user_entries`
CREATE TABLE `user_entries`
(
`id` int NOT NULL AUTO_INCREMENT ,
`restaurant_name` varchar(45) NOT NULL ,
`date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ,
`meal_time` varchar(45) NOT NULL ,
`menu_item` varchar(45) NOT NULL ,
`notes` varchar(255) ,
`rating` int(1) NOT NULL ,
`price` decimal(3,2) NOT NULL ,
`username_fk` varchar(45) NOT NULL ,
PRIMARY KEY (`id`),
KEY `fkIdx_27` (`username_fk`),
CONSTRAINT `FK_27` FOREIGN KEY `fkIdx_27` (`username_fk`) REFERENCES `users` (`username_pk`) ON UPDATE CASCADE
) ENGINE=INNODB;
-- ************************************** `recipes`
CREATE TABLE `recipes`
(
`id` int NOT NULL AUTO_INCREMENT ,
`recipe_name_pk` varchar(45) NOT NULL ,
`username_fk` varchar(45) NOT NULL ,
`restaurant_id_fk` int NOT NULL ,
`restaurant_name_fk` varchar(45) NOT NULL ,
`recipe_cuisine` varchar(45) NOT NULL ,
`recipe_tags` varchar(45) ,
`restaurant_menu_item` varchar(45) NOT NULL ,
`recipe_rating` decimal(1,1) ,
`recipe_date` date NOT NULL ,
PRIMARY KEY (`id`, `recipe_name_pk`),
KEY `fkIdx_110` (`username_fk`),
CONSTRAINT `FK_110` FOREIGN KEY `fkIdx_110` (`username_fk`) REFERENCES `users` (`username_pk`),
KEY `fkIdx_116` (`restaurant_id_fk`, `restaurant_name_fk`),
CONSTRAINT `FK_116` FOREIGN KEY `fkIdx_116` (`restaurant_id_fk`, `restaurant_name_fk`) REFERENCES `restaurants` (`id`, `restaurant_name_pk`) ON UPDATE CASCADE
) ENGINE=INNODB;
-- ************************************** `recipe_ratings`
CREATE TABLE `recipe_ratings`
(
`recipe_id_fk` int NOT NULL ,
`recipe_name_fk` varchar(45) NOT NULL ,
`recipe_rating` int(1) NOT NULL ,
`recipe_notes` varchar(255) ,
`date_submitted` datetime NOT NULL ,
PRIMARY KEY (`recipe_id_fk`, `recipe_name_fk`),
KEY `fkIdx_97` (`recipe_id_fk`, `recipe_name_fk`),
CONSTRAINT `FK_97` FOREIGN KEY `fkIdx_97` (`recipe_id_fk`, `recipe_name_fk`) REFERENCES `recipes` (`id`, `recipe_name_pk`) ON UPDATE CASCADE
) ENGINE=INNODB;
-- ************************************** `recipe_details`
CREATE TABLE `recipe_details`
(
`recipe_id_pk_fk` int NOT NULL ,
`recipe_name_pk_fk` varchar(45) NOT NULL ,
`servings` varchar(45) ,
`serving_size` varchar(45) ,
`preptime` varchar(45) ,
`cooktime` varchar(45) ,
PRIMARY KEY (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
KEY `fkIdx_55` (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
CONSTRAINT `FK_55` FOREIGN KEY `fkIdx_55` (`recipe_id_pk_fk`, `recipe_name_pk_fk`) REFERENCES `recipes` (`id`, `recipe_name_pk`) ON UPDATE CASCADE
) ENGINE=INNODB;
-- ************************************** `recipe_instructions`
CREATE TABLE `recipe_instructions`
(
`recipe_id_pk_fk` int NOT NULL ,
`recipe_name_pk_fk` varchar(45) NOT NULL ,
`step_one` varchar(255) NOT NULL ,
PRIMARY KEY (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
KEY `fkIdx_152` (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
CONSTRAINT `FK_152` FOREIGN KEY `fkIdx_152` (`recipe_id_pk_fk`, `recipe_name_pk_fk`) REFERENCES `recipe_details` (`recipe_id_pk_fk`, `recipe_name_pk_fk`) ON UPDATE CASCADE
) ENGINE=INNODB;
-- ************************************** `recipe_ingredients`
CREATE TABLE `recipe_ingredients`
(
`recipe_id_pk_fk` int NOT NULL ,
`recipe_name_pk_fk` varchar(45) NOT NULL ,
`ingredient1_name` varchar(45) NOT NULL ,
`ingredient1_amount` varchar(45) NOT NULL ,
PRIMARY KEY (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
KEY `fkIdx_143` (`recipe_id_pk_fk`, `recipe_name_pk_fk`),
CONSTRAINT `FK_143` FOREIGN KEY `fkIdx_143` (`recipe_id_pk_fk`, `recipe_name_pk_fk`) REFERENCES `recipe_details` (`recipe_id_pk_fk`, `recipe_name_pk_fk`) ON UPDATE CASCADE
) ENGINE=INNODB;
|
-- file:json.sql ln:449 expect:true
SELECT ia2 FROM json_populate_record(NULL::jsrec, '{"ia2": [1, "2", null, 4]}') q
|
<gh_stars>0
-- create table departments (
-- dep_no varchar(10) primary key,
-- dept_name varchar(20)
-- );
-- Create table dept_emp (
-- emp_no varchar(10),
-- dept_no varchar(10),
-- from_date date,
-- to_from date
-- );
-- Create table dept_managers (
-- dept_no varchar(10),
-- emp_no varchar(10),
-- from_date date,
-- to_date date
-- );
-- create table employees (
-- emp_no varchar(10) primary key,
-- birth_date date,
-- first_name varchar(30),
-- last_name varchar(30),
-- gender varchar (5),
-- hire_date date
-- );
-- create table salaries (
-- emp_no varchar(10),
-- salary varchar(15),
-- from_date date,
-- to_date date
-- );
-- create table titles (
-- emp_no varchar(10),
-- title varchar(30),
-- from_date date,
-- to_date date
-- );
|
<reponame>antonyjim/open-service-management<filename>packages/install/packages/core/sql/triggers/ins_sys_user.sql
/*
Ensure each user has at the minimum the global app scope.
*/
CREATE TRIGGER ins_sys_user BEFORE INSERT ON sys_user FOR EACH ROW
IF NEW.app_scope IS NULL THEN
SET NEW.app_scope = 'SYS';
END IF; |
<reponame>gianadda/ZenPRM
IF EXISTS (select * from dbo.sysobjects where id = object_id(N'uspEditEntityNPIByIdent') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
DROP PROCEDURE uspEditEntityNPIByIdent
GO
/*
*
* uspEditEntityNPIByIdent
*
*
*/
CREATE PROCEDURE uspEditEntityNPIByIdent
@intIdent BIGINT,
@vcrNPI VARCHAR(MAX),
@bntEditASUserIdent BIGINT
AS
SET NOCOUNT ON
UPDATE Entity
SET
NPI = @vcrNPI,
EditDateTime = dbo.ufnGetMyDate(),
EditASUserIdent = @bntEditASUserIdent
WHERE
Ident = @intIdent
AND NPI = '' -- dont allow a user to edit an NPI if the resource already has one
SELECT
[Ident]
FROM
Entity WITH (NOLOCK)
WHERE
Ident = @intIdent
AND NPI = @vcrNPI
GO |
-- Usage: prompt>sqlite3 test.db < test.sql
-- Example: C:\myfolder>sqlite3 test.db < test.sql
-- Set output to a text file if too much is displayed in the standard output
-- remember, no semicolon after SQLite dot commands
--.output out.txt
-- Turn on column headings in SQLite
.header ON
-- SELECT name, city, country FROM airports WHERE city = "Darwin";
-- SELECT name, city, country FROM airports WHERE country = "Australia";
-- SELECT name, city, timezone FROM airports WHERE country = 'Australia';
-- SELECT name, city, country FROM airports WHERE city LIKE "New%" AND country = "United States";
-- SELECT name, city, country FROM airports WHERE city LIKE "New York%" AND country = "United States";
-- SELECT name, city, country, latitude, longitude FROM airports WHERE longitude > 130 AND longitude <132 AND latitude < 0;
UPDATE players SET updated_at=NOW()
WHERE fname LIKE '%Jon%' and sname LIKE '%Smith%'; |
<reponame>pedroxavier96/DBII-3rdSemester<filename>grants-classroom.sql
CREATE ROLE dysf LOGIN
PASSWORD '<PASSWORD>'
SUPERUSER CREATEDB CREATEROLE
CREATE ROLE bd2 LOGIN PASSWORD '<PASSWORD>'
valid until '28-08-2018'
Create schema locais
authorization dysf
ALTER TABLE public.cidade SET SCHEMA
locais
select * from locais.cidade
create table locais.estado(sigla char(2), nome
varchar(20), constraint pkest primary key(sigla))
select * from locais.estado
alter table locais.cidade add uf char(2);
alter table locais.cidade add constraint fkest foreign key(uf) references
locais.Estado
insert into locais.estado values('PB','Paraíba')
insert into locais.estado values('PE','Pernambuco')
update locais.cidade
set uf = 'PB'
where nome = 'João Pessoa' or nome = 'Campina Grande';
insert into locais.cidade values(3,'Recife','PE')
/* Permitindo acesso ao esquema locais para o outro usuário (bd2)*/
Grant usage on schema locais to bd2
CREATE or replace VIEW locais.CidadeeUF AS
SELECT c.nome, e.nome as "UF"
FROM locais.cidade c join locais.estado e
on c.uf = e.sigla
select * from locais.CidadeeUF
grant select on locais.cidadeeUF to bd2
SELECT * FROM locais.cidadeeUF
|
<reponame>doyoulovemycat/Postgres-useful-queues-for-LT
SELECT
cast(total_time / 1000 as numeric(20,4)) as "TOTAL TIME (s)"
, cast((total_time / (nullif(calls, 0) * 1000)) as numeric(20,4)) as "AVG TIME (s)"
, cast((max_time / 1000) as numeric(20,4)) as "QUERY MAX TIME (s)"
, cast((mean_time / 1000) as numeric(20,4)) as "QUERY MEAN TIME (s)"
, cast((stddev_time / 1000) as numeric(20,4)) as "QUERY STDDEV TIME (s)"
, calls as "CALLS"
, cast(100.0 * shared_blks_hit / nullif(shared_blks_hit + shared_blks_read, 0) as numeric(20,4)) AS "CACHE HITS (%)"
, query as "QUERY"
, rows as "TOTAL AFFECTED ROWS"
, cast(rows / nullif(calls, 0) as numeric(20,4)) as "AVG ROWS PER EXEC"
, cast(blk_read_time / 1000 as numeric(20,4)) as "TOTAL BLK READ TIME (s)"
, cast(blk_read_time / (nullif(calls, 0) * 1000) as numeric(20,4)) as "AVG BLK READ TIME (s)"
, cast(blk_write_time / 1000 as numeric(20,4)) as "TOTAL BLK WRITE TIME (s)"
, cast(blk_write_time / (nullif(calls, 0) * 1000) as numeric(20,4)) as "AVG BLK WRITE TIME (s)"
, shared_blks_hit
, shared_blks_read
, shared_blks_dirtied
, shared_blks_written
, local_blks_hit
, local_blks_read
, local_blks_dirtied
, local_blks_written
, temp_blks_read
, temp_blks_written
, userid
, dbid
, queryid
FROM public.pg_stat_statements
WHERE dbid = (select oid from pg_database where datname = 'databasename')
ORDER BY "QUERY MAX TIME (s)" DESC, "AVG TIME (s)" DESC;
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 10.6 (Ubuntu 10.6-1.pgdg14.04+1)
-- Dumped by pg_dump version 10.3
--
-- 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';
SET default_with_oids = false;
--
-- Name: cache_data; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE cache_data (
_id bigint NOT NULL,
type text NOT NULL,
value text
);
--
-- Name: cache_data__id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE cache_data__id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: cache_data__id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE cache_data__id_seq OWNED BY cache_data._id;
--
-- Name: server_backgrounds; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE server_backgrounds (
_id bigint NOT NULL,
server_id text NOT NULL,
background_url text,
background_type text
);
--
-- Name: server_backgrounds__id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE server_backgrounds__id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: server_backgrounds__id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE server_backgrounds__id_seq OWNED BY server_backgrounds._id;
--
-- Name: server_channels; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE server_channels (
_id bigint NOT NULL,
server_id text NOT NULL,
channel_type text NOT NULL,
channel_id text
);
--
-- Name: server_channels__id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE server_channels__id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: server_channels__id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE server_channels__id_seq OWNED BY server_channels._id;
--
-- Name: server_data; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE server_data (
_id bigint NOT NULL,
server_id text NOT NULL,
server_name text,
last_help_msg text,
last_help_channel text,
next_shop integer,
latest_shop text,
prefix text DEFAULT '.rb '::text,
last_status_msg text,
last_status_channel text,
priority smallint,
premium boolean DEFAULT false,
locale text DEFAULT 'en'::text,
last_seen integer
);
--
-- Name: server_data__id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
CREATE SEQUENCE server_data__id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
--
-- Name: server_data__id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
--
ALTER SEQUENCE server_data__id_seq OWNED BY server_data._id;
--
-- Name: user_links; Type: TABLE; Schema: public; Owner: -
--
CREATE TABLE user_links (
_id integer NOT NULL,
user_id text,
user_nickname text,
user_platform text
);
--
-- Name: user_links__id_seq; Type: SEQUENCE; Schema: public; Owner: -
--
ALTER TABLE user_links ALTER COLUMN _id ADD GENERATED BY DEFAULT AS IDENTITY (
SEQUENCE NAME user_links__id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1
);
--
-- Name: cache_data _id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY cache_data ALTER COLUMN _id SET DEFAULT nextval('cache_data__id_seq'::regclass);
--
-- Name: server_backgrounds _id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_backgrounds ALTER COLUMN _id SET DEFAULT nextval('server_backgrounds__id_seq'::regclass);
--
-- Name: server_channels _id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_channels ALTER COLUMN _id SET DEFAULT nextval('server_channels__id_seq'::regclass);
--
-- Name: server_data _id; Type: DEFAULT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_data ALTER COLUMN _id SET DEFAULT nextval('server_data__id_seq'::regclass);
--
-- Name: cache_data cache_data_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY cache_data
ADD CONSTRAINT cache_data_pkey PRIMARY KEY (_id);
--
-- Name: server_backgrounds server_backgrounds_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_backgrounds
ADD CONSTRAINT server_backgrounds_pkey PRIMARY KEY (_id);
--
-- Name: server_channels server_channels_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_channels
ADD CONSTRAINT server_channels_pkey PRIMARY KEY (_id);
--
-- Name: server_data server_data_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_data
ADD CONSTRAINT server_data_pkey PRIMARY KEY (_id);
--
-- Name: server_data server_data_server_id_key; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY server_data
ADD CONSTRAINT server_data_server_id_key UNIQUE (server_id);
--
-- Name: user_links user_links_pkey; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_links
ADD CONSTRAINT user_links_pkey PRIMARY KEY (_id);
--
-- Name: user_links user_links_user_id_unique; Type: CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY user_links
ADD CONSTRAINT user_links_user_id_unique UNIQUE (user_id);
--
-- PostgreSQL database dump complete
--
|
INSERT INTO t1 values(20)
|
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = off;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET escape_string_warning = off;
--
-- Name: oldtulp; Type: SCHEMA; Schema: -; Owner: tulp
--
CREATE SCHEMA oldtulp;
ALTER SCHEMA oldtulp OWNER TO tulp;
--
-- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: postgres
--
CREATE OR REPLACE PROCEDURAL LANGUAGE plpgsql;
ALTER PROCEDURAL LANGUAGE plpgsql OWNER TO postgres;
SET search_path = public, pg_catalog;
--
-- Name: crc32(text); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION crc32(word text) RETURNS bigint
LANGUAGE plpgsql IMMUTABLE
AS $$
DECLARE tmp bigint;
DECLARE i int;
DECLARE j int;
DECLARE byte_length int;
DECLARE word_array bytea;
BEGIN
IF COALESCE(word, '') = '' THEN
return 0;
END IF;
i = 0;
tmp = 4294967295;
byte_length = bit_length(word) / 8;
word_array = decode(replace(word, E'\\', E'\\\\'), 'escape');
LOOP
tmp = (tmp # get_byte(word_array, i))::bigint;
i = i + 1;
j = 0;
LOOP
tmp = ((tmp >> 1) # (3988292384 * (tmp & 1)))::bigint;
j = j + 1;
IF j >= 8 THEN
EXIT;
END IF;
END LOOP;
IF i >= byte_length THEN
EXIT;
END IF;
END LOOP;
return (tmp # 4294967295);
END
$$;
ALTER FUNCTION public.crc32(word text) OWNER TO tulp;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: category_assignments; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE category_assignments (
id integer NOT NULL,
category_id integer,
business_id integer
);
ALTER TABLE public.category_assignments OWNER TO tulp;
--
-- Name: delete_from_business_ratings(category_assignments); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION delete_from_business_ratings(r category_assignments) RETURNS void
LANGUAGE plpgsql
AS $$
begin
delete
from business_ratings br
where br.business_id = r.business_id
and br.rating_id not in (
-- выбираем рейтинги, которые остались у заведения
select cr.rating_id
from categories_ratings cr
join category_assignments ca on ca.category_id = cr.category_id
where ca.business_id = r.business_id
);
end;
$$;
ALTER FUNCTION public.delete_from_business_ratings(r category_assignments) OWNER TO tulp;
--
-- Name: insert_into_business_ratings(category_assignments); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION insert_into_business_ratings(r category_assignments) RETURNS void
LANGUAGE plpgsql
AS $$
begin
insert into business_ratings (business_id, rating_id, title)
-- выбираем все рейтинги для данной категории за исключением уже существующих
select r.business_id, cr.rating_id, rat.title
from categories_ratings cr
join ratings rat on rat.id = cr.rating_id
where cr.category_id = r.category_id
and cr.rating_id not in (select rating_id from business_ratings where business_id = r.business_id);
end;
$$;
ALTER FUNCTION public.insert_into_business_ratings(r category_assignments) OWNER TO tulp;
--
-- Name: load_business_owners(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_business_owners() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
a_deleted_at DATE;
an_approved BOOLEAN;
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN
SELECT u.id, u.login, u.hashed_password, u.salt, u.email, u.created_at, u.updated_at,
u.deleted, u.approved, t.firstname, t.lastname
FROM oldtulp.users u LEFT JOIN oldtulp.tulpers t ON u.id = t.user_id
WHERE u.status = 'N' AND u.role = 1 LOOP
BEGIN
IF rec.deleted = 0 THEN a_deleted_at := NULL; ELSE a_deleted_at := current_date; END IF;
IF rec.approved = 0 THEN an_approved := FALSE; ELSE an_approved := TRUE; END IF;
INSERT INTO business_owners (id, email, encrypted_password, password_salt, login, created_at, updated_at,
deleted_at, approved, first_name, last_name)
VALUES
(rec.id, COALESCE(rec.email, '(none)'), rec.hashed_password, rec.salt, rec.login, rec.created_at, rec.updated_at,
a_deleted_at, an_approved, rec.firstname, rec.lastname);
UPDATE oldtulp.users SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.users SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_business_owners() OWNER TO tulp;
--
-- Name: load_businesses(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_businesses() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
a_deleted BOOLEAN;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.businesses WHERE status = 'N' LOOP
BEGIN
IF rec.deleted = 0 THEN a_deleted := FALSE; ELSE a_deleted := TRUE; END IF;
INSERT INTO businesses (id, business_owner_id, name, info, address, created_at, updated_at, deleted, creator_id, city_id, general_category_id,
oldtulp_contact, rating) VALUES
(rec.id, rec.user_id, rec.name, rec.info, rec.address, rec.created_at, rec.updated_at, a_deleted, rec.creator_id, rec.city_id, rec.category1_id,
rec.contact, COALESCE(rec.rate_avg,0));
UPDATE oldtulp.businesses SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.businesses SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_businesses() OWNER TO tulp;
--
-- Name: load_categories(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_categories() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.categories WHERE status = 'N' LOOP
BEGIN
INSERT INTO categories (id, name, translit, parent_id, prepositional_singular, prepositional_plural, created_at, updated_at)
VALUES (rec.id, rec.name, rec.nickname, rec.supcat_id, rec.pp_name, rec.pp1_name, rec.created_at, rec.updated_at);
UPDATE oldtulp.categories SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.categories SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_categories() OWNER TO tulp;
--
-- Name: load_categories_for_business(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_categories_for_business() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.businesses WHERE status = 'Y' AND status_category = 'N' LOOP
BEGIN
IF rec.category1_id IS NOT NULL THEN
INSERT INTO category_assignments (category_id, business_id) VALUES
(rec.category1_id, rec.id);
END IF;
IF rec.category2_id IS NOT NULL THEN
INSERT INTO category_assignments (category_id, business_id) VALUES
(rec.category2_id, rec.id);
END IF;
IF rec.category3_id IS NOT NULL THEN
INSERT INTO category_assignments (category_id, business_id) VALUES
(rec.category3_id, rec.id);
END IF;
UPDATE oldtulp.businesses SET status_category = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.businesses SET status_category = 'E', diagnostics_category = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_categories_for_business() OWNER TO tulp;
--
-- Name: load_cities(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_cities() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.cities WHERE status = 'N' LOOP
BEGIN
INSERT INTO cities (id, name, translit, parent_case, created_at, updated_at) VALUES
(rec.id, rec.name, rec.nickname, rec.rp_name, rec.created_at, rec.updated_at);
UPDATE oldtulp.cities SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.cities SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_cities() OWNER TO tulp;
--
-- Name: load_cities2(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_cities2() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
next_id INTEGER;
this_id INTEGER;
error VARCHAR(255);
BEGIN
SELECT MAX(id) + 1 INTO this_id FROM cities;
IF next_id IS NULL THEN
next_id := 1;
END IF;
FOR rec IN SELECT * FROM oldtulp.cities2 WHERE status = 'N' LOOP
BEGIN
SELECT MAX(id) INTO this_id FROM cities WHERE name = rec.name;
IF this_id IS NULL THEN
this_id = next_id;
next_id := next_id + 1;
INSERT INTO cities (id, name, translit, parent_case, created_at, updated_at) VALUES
(this_id, rec.name, rec.translit, rec.padeg, current_date, current_date);
ELSE
UPDATE cities SET translit = rec.translit WHERE id = this_id;
END IF;
UPDATE oldtulp.cities2 SET status = 'Y', new_id = this_id WHERE name = rec.name;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.cities2 SET status = 'E', diagnostics = error WHERE name = rec.name;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_cities2() OWNER TO tulp;
--
-- Name: load_comments(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_comments() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
a_deleted BOOLEAN;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.comments WHERE status = 'N' AND root_type = 'Review' LOOP
BEGIN
IF rec.deleted = 0 THEN a_deleted := FALSE; ELSE a_deleted := TRUE; END IF;
INSERT INTO comments (id, text, parent_id, commentable_id, commentable_type, created_at, updated_at, deleted, user_id) VALUES
(rec.id, rec.text, rec.target_id, rec.root_id, rec.root_type, rec.created_at, rec.updated_at, a_deleted, rec.author_id);
UPDATE oldtulp.comments SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.comments SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_comments() OWNER TO tulp;
--
-- Name: load_compliment_types(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_compliment_types() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.compliment_types WHERE status = 'N' LOOP
BEGIN
INSERT INTO compliment_types (id, text, created_at, updated_at) VALUES
(rec.id, rec.name, rec.created_at, rec.updated_at);
UPDATE oldtulp.compliment_types SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.compliment_types SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_compliment_types() OWNER TO tulp;
--
-- Name: load_compliments(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_compliments() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.compliments WHERE status = 'N' LOOP
BEGIN
INSERT INTO compliments (id, custom_text, created_at, updated_at, user_id, compliment_type_id) VALUES
(rec.id, rec.text, rec.created_at, rec.updated_at, rec.target_user_id, rec.compliment_type_id);
UPDATE oldtulp.compliments SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.compliments SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_compliments() OWNER TO tulp;
--
-- Name: load_fan_favs(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_fan_favs() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.fan_favs WHERE status = 'N' LOOP
BEGIN
INSERT INTO favouriteships (id, admirer_id, favourite_id, created_at, updated_at) VALUES
(rec.id, rec.fan_id, rec.fav_id, rec.created_at, rec.updated_at);
UPDATE oldtulp.fan_favs SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.fan_favs SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_fan_favs() OWNER TO tulp;
--
-- Name: load_feedbacks(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_feedbacks() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
a_status VARCHAR(50);
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.feedbacks WHERE status = 'N' LOOP
BEGIN
a_status := NULL;
IF rec.viewed = 1 THEN a_status = 'Просмотрено'; ELSE a_status = 'Новое'; END IF;
INSERT INTO feedbacks (id, title, body, user_id, oldtulp_ip, email, oldtulp_page, created_at, updated_at, oldtulp_options, status, feedback_type) VALUES
(rec.id, substr(rec.text, 1, 50), rec.text, rec.user_id, rec.ip, rec.email, rec.page, rec.created_at, rec.updated_at, rec.options, a_status,
'Предложение');
UPDATE oldtulp.feedbacks SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.feedbacks SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_feedbacks() OWNER TO tulp;
--
-- Name: load_moderator_users(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_moderator_users() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
a_deleted_at DATE;
an_approved BOOLEAN;
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN
SELECT u.id, u.login, u.hashed_password, u.salt, u.email, u.created_at, u.updated_at,
u.city_id, u.deleted, u.approved, m.id m_id, m.name lastname, c.timezone
FROM oldtulp.users u LEFT JOIN oldtulp.moderators m ON u.id = m.user_id
LEFT JOIN oldtulp.cities c ON u.city_id = c.id
WHERE u.status = 'N' AND u.role = 2 LOOP
BEGIN
IF rec.m_id IS NOT NULL THEN
IF rec.deleted = 0 THEN a_deleted_at := NULL; ELSE a_deleted_at := current_date; END IF;
IF rec.approved = 0 THEN an_approved := FALSE; ELSE an_approved := TRUE; END IF;
INSERT INTO users (id, email, encrypted_password, password_salt, login, created_at, updated_at, city_id,
deleted_at, approved, last_name, time_zone, roles_mask)
VALUES
(rec.id, COALESCE(rec.email, '(none)'), rec.hashed_password, rec.salt, rec.login, rec.created_at, rec.updated_at, rec.city_id,
a_deleted_at, an_approved, rec.lastname, rec.timezone, 2);
UPDATE oldtulp.users SET status = 'Y' WHERE id = rec.id;
ELSE
UPDATE oldtulp.users SET status = 'E', diagnostics = 'Нет записи в moderators' WHERE id = rec.id;
END IF;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.users SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_moderator_users() OWNER TO tulp;
--
-- Name: load_private_messages(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_private_messages() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
a_deleted_at DATE;
a_read_at DATE;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.private_messages WHERE status = 'N' AND canceled = 0 LOOP
BEGIN
IF rec.deleted = 1 THEN a_deleted_at := current_date; ELSE a_deleted_at := NULL; END IF;
IF rec.viewed = 1 THEN a_read_at := current_date; ELSE a_read_at := NULL; END IF;
INSERT INTO messages (id, sender_id, recipient_id, body, created_at, updated_at, read_at, deleted_at, subject) VALUES
(rec.id, rec.author_id, rec.target_id, rec.text, rec.created_at, rec.updated_at, a_read_at, a_deleted_at, SUBSTR(rec.text, 1, 50));
UPDATE oldtulp.private_messages SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.private_messages SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_private_messages() OWNER TO tulp;
--
-- Name: load_regular_users(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_regular_users() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
a_birthday DATE;
a_gender VARCHAR(1);
a_deleted_at DATE;
an_approved BOOLEAN;
rec RECORD;
error VARCHAR(255);
BEGIN
FOR rec IN
SELECT u.id, u.login, u.hashed_password, u.salt, u.email, u.created_at, u.updated_at,
u.city_id, u.deleted, u.approved,
t.firstname, t.lastname, t.birthday, t.birthmonth, t.birthyear, t.info, t.created_at,
t.updated_at, t.sex, t.id t_id, t.contact, t.interests, c.timezone
FROM oldtulp.users u LEFT JOIN oldtulp.tulpers t ON u.id = t.user_id
LEFT JOIN oldtulp.cities c ON u.city_id = c.id
WHERE u.status = 'N' AND u.role = 0 LOOP
BEGIN
IF rec.t_id IS NOT NULL THEN
a_birthday := NULL;
IF rec.birthday IS NOT NULL AND rec.birthmonth IS NOT NULL AND rec.birthyear IS NOT NULL THEN
BEGIN
SELECT DATE (rec.birthyear || '-' || rec.birthmonth || '-' || rec.birthday) INTO a_birthday;
EXCEPTION WHEN OTHERS THEN NULL;
END;
END IF;
a_gender := NULL;
IF rec.sex = 0 THEN a_gender := 'f'; ELSE a_gender := 'm'; END IF;
IF rec.deleted = 0 THEN a_deleted_at := NULL; ELSE a_deleted_at := current_date; END IF;
IF rec.approved = 0 THEN an_approved := FALSE; ELSE an_approved := TRUE; END IF;
INSERT INTO users (id, email, encrypted_password, password_<PASSWORD>, login, created_at, updated_at, city_id,
deleted_at, approved, first_name, last_name, birthday, description, gender, time_zone, oldtulp_contact, oldtulp_interests)
VALUES
(rec.id, COALESCE(rec.email, '(none)'), rec.hashed_password, rec.salt, rec.login, rec.created_at, rec.updated_at, rec.city_id,
a_deleted_at, an_approved, rec.firstname, rec.lastname, a_birthday, rec.info, a_gender, rec.timezone, rec.contact, rec.interests);
UPDATE oldtulp.users SET status = 'Y' WHERE id = rec.id;
ELSE
UPDATE oldtulp.users SET status = 'E', diagnostics = 'Нет записи в tulpers' WHERE id = rec.id;
END IF;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.users SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_regular_users() OWNER TO tulp;
--
-- Name: load_reviews(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION load_reviews() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
rec RECORD;
a_deleted_at DATE;
an_approved BOOLEAN;
error VARCHAR(255);
BEGIN
FOR rec IN SELECT * FROM oldtulp.reviews WHERE status = 'N' LOOP
BEGIN
IF rec.deleted = 0 THEN a_deleted_at := NULL; ELSE a_deleted_at := current_date; END IF;
IF rec.approved = 0 THEN an_approved := FALSE; ELSE an_approved := TRUE; END IF;
INSERT INTO reviews (id, user_id, business_id, text, created_at, updated_at, deleted_at, title, approved, business_rating) VALUES
(rec.id, rec.author_id, rec.business_id, rec.text, rec.created_at, rec.updated_at, a_deleted_at, rec.name, an_approved, rec.rate);
UPDATE oldtulp.reviews SET status = 'Y' WHERE id = rec.id;
-- COMMIT;
EXCEPTION
WHEN OTHERS THEN
error = sqlerrm;
UPDATE oldtulp.reviews SET status = 'E', diagnostics = error WHERE id = rec.id;
-- COMMIT;
END;
END LOOP;
END;
$$;
ALTER FUNCTION public.load_reviews() OWNER TO tulp;
--
-- Name: recalculate_business_ratings(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION recalculate_business_ratings() RETURNS void
LANGUAGE plpgsql
AS $$
begin
update business_ratings br set total = ar.total, number = ar.number from average_rates ar where ar.business_id = br.business_id and ar.rating_id = br.rating_id;
update businesses set rating = ar.rating from average_ratings ar where id = ar.business_id;
end;
$$;
ALTER FUNCTION public.recalculate_business_ratings() OWNER TO tulp;
--
-- Name: recalculate_business_ratings_for_one_business(integer); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION recalculate_business_ratings_for_one_business(b_id integer) RETURNS numeric
LANGUAGE plpgsql
AS $$
declare
rat "businesses"."rating"%TYPE;
begin
update business_ratings br set total = ar.total, number = ar.number from average_rates ar where ar.rating_id = br.rating_id and ar.business_id = br.business_id and br.business_id = b_id;
select into rat ar.rating from average_ratings ar where b_id = ar.business_id;
update businesses set rating = rat where id = b_id;
return rat;
end;
$$;
ALTER FUNCTION public.recalculate_business_ratings_for_one_business(b_id integer) OWNER TO tulp;
--
-- Name: recreate_review_visits(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION recreate_review_visits() RETURNS void
LANGUAGE sql
AS $$
drop table if exists review_visits;
create table "review_visits" as
select review_id, count(*) as number from (
select impressionable_id as review_id
from impressions
where impressionable_type = 'Review'
group by review_id, ip_address, session_hash
) _ group by review_id;
create unique index on "review_visits" (review_id);
$$;
ALTER FUNCTION public.recreate_review_visits() OWNER TO tulp;
--
-- Name: sequences_prepare(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION sequences_prepare() RETURNS void
LANGUAGE plpgsql
AS $$
DECLARE
an_id INTEGER;
BEGIN
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM businesses;
EXECUTE 'ALTER SEQUENCE businesses_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM business_owners;
EXECUTE 'ALTER SEQUENCE business_owners_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM users;
EXECUTE 'ALTER SEQUENCE users_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM category_assignments;
EXECUTE 'ALTER SEQUENCE category_assignments_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM categories;
EXECUTE 'ALTER SEQUENCE categories_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM cities;
EXECUTE 'ALTER SEQUENCE cities_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM comments;
EXECUTE 'ALTER SEQUENCE comments_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM compliments;
EXECUTE 'ALTER SEQUENCE compliments_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM compliment_types;
EXECUTE 'ALTER SEQUENCE compliment_types_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM feedbacks;
EXECUTE 'ALTER SEQUENCE feedbacks_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM messages;
EXECUTE 'ALTER SEQUENCE messages_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM reviews;
EXECUTE 'ALTER SEQUENCE reviews_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM favouriteships;
EXECUTE 'ALTER SEQUENCE favouriteships_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM assets;
EXECUTE 'ALTER SEQUENCE assets_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM questions;
EXECUTE 'ALTER SEQUENCE questions_id_seq RESTART WITH ' || an_id;
SELECT COALESCE (MAX(id), 0) + 1 INTO an_id FROM answers;
EXECUTE 'ALTER SEQUENCE answers_id_seq RESTART WITH ' || an_id;
END;
$$;
ALTER FUNCTION public.sequences_prepare() OWNER TO tulp;
--
-- Name: update_business_ratings(); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION update_business_ratings() RETURNS trigger
LANGUAGE plpgsql
AS $$
begin
if (tg_op = 'INSERT') then
perform insert_into_business_ratings(new);
elsif (tg_op = 'DELETE') then
perform delete_from_business_ratings(old);
end if;
return null;
exception when unique_violation then
return null;
end;
$$;
ALTER FUNCTION public.update_business_ratings() OWNER TO tulp;
--
-- Name: update_review_visits(integer); Type: FUNCTION; Schema: public; Owner: tulp
--
CREATE FUNCTION update_review_visits(integer) RETURNS void
LANGUAGE plpgsql
AS $_$
declare
counter record;
begin
for counter in select review_id, count(*) as number from (select impressionable_id as review_id from impressions where impressionable_type = 'Review' and id > $1 group by review_id, ip_address, session_hash) _ group by review_id loop
update review_visits set number = number + counter.number where review_id = counter.review_id;
if not found then
insert into review_visits values (counter.review_id, counter.number);
end if;
end loop;
end;
$_$;
ALTER FUNCTION public.update_review_visits(integer) OWNER TO tulp;
--
-- Name: array_accum(anyelement); Type: AGGREGATE; Schema: public; Owner: tulp
--
CREATE AGGREGATE array_accum(anyelement) (
SFUNC = array_append,
STYPE = anyarray,
INITCOND = '{}'
);
ALTER AGGREGATE public.array_accum(anyelement) OWNER TO tulp;
SET search_path = oldtulp, pg_catalog;
--
-- Name: attribute_types; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE attribute_types (
id integer NOT NULL,
name character varying(255) DEFAULT NULL::character varying,
nickname character varying(255) DEFAULT NULL::character varying,
metatype integer,
choices text,
setter character varying(255) DEFAULT NULL::character varying,
categories text,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.attribute_types OWNER TO tulp;
--
-- Name: business_votes; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE business_votes (
id integer NOT NULL,
tulper_id integer,
business_id integer,
month character varying(255) DEFAULT NULL::character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.business_votes OWNER TO tulp;
--
-- Name: businesses; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE businesses (
id integer NOT NULL,
user_id integer,
name character varying(255),
contact text,
info text,
photo character varying(255),
address character varying(255),
rate_num integer,
rate_sum integer DEFAULT 0 NOT NULL,
rate_avg integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted integer DEFAULT 0 NOT NULL,
votes integer DEFAULT 0 NOT NULL,
login character varying(255),
creator_id integer,
closed integer DEFAULT 0,
city_id integer,
category1_id integer,
category2_id integer,
category3_id integer,
topcategory1_id integer,
topcategory2_id integer,
topcategory3_id integer,
coordinates character varying(255),
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255),
status_category character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics_category character varying(255)
);
ALTER TABLE oldtulp.businesses OWNER TO tulp;
--
-- Name: categories; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE categories (
id integer NOT NULL,
name character varying(255),
nickname character varying(255),
supcat_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
count integer DEFAULT 0,
pp_name character varying(255),
pp1_name character varying(255),
paramz text,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.categories OWNER TO tulp;
--
-- Name: cities; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE cities (
id integer NOT NULL,
name character varying(255),
nickname character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
timezone character varying(255),
rp_name character varying(255),
rank integer,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.cities OWNER TO tulp;
--
-- Name: cities2; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE cities2 (
name character varying(255) NOT NULL,
translit character varying(255),
padeg character varying(255),
new_id integer,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.cities2 OWNER TO tulp;
--
-- Name: comments; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE comments (
id integer NOT NULL,
text text,
target_id integer,
root_id integer,
root_type character varying(255),
level integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
author_id integer,
deleted integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.comments OWNER TO tulp;
--
-- Name: compliment_types; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE compliment_types (
id integer NOT NULL,
name character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.compliment_types OWNER TO tulp;
--
-- Name: compliments; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE compliments (
id integer NOT NULL,
text text,
target_id integer,
target_type character varying(255),
author_id integer,
compliment_type_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
target_user_id integer,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.compliments OWNER TO tulp;
--
-- Name: event_categories; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE event_categories (
id integer NOT NULL,
name character varying(255) DEFAULT NULL::character varying,
nickname character varying(255) DEFAULT NULL::character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.event_categories OWNER TO tulp;
--
-- Name: events; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE events (
id integer NOT NULL,
name character varying(255) DEFAULT NULL::character varying,
event_category_id integer,
min_price integer,
max_price integer,
where_id integer,
where_text text,
start timestamp without time zone,
finish timestamp without time zone,
author_id integer,
description text,
count integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
nickname character varying(255) DEFAULT NULL::character varying,
photo character varying(255) DEFAULT NULL::character varying,
deleted integer DEFAULT 0,
city_id integer,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.events OWNER TO tulp;
--
-- Name: fan_favs; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE fan_favs (
id integer NOT NULL,
fan_id integer,
fav_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.fan_favs OWNER TO tulp;
--
-- Name: feedbacks; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE feedbacks (
id integer NOT NULL,
text text,
user_id integer,
ip character varying(255),
email character varying(255),
page character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
options text,
viewed integer DEFAULT 0,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.feedbacks OWNER TO tulp;
--
-- Name: memberships; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE memberships (
id integer NOT NULL,
user_id integer,
event_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.memberships OWNER TO tulp;
--
-- Name: moderation_events; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE moderation_events (
id integer NOT NULL,
moderator_id integer,
action character varying(255) DEFAULT NULL::character varying,
target_id integer,
target_type character varying(255) DEFAULT NULL::character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.moderation_events OWNER TO tulp;
--
-- Name: moderators; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE moderators (
id integer NOT NULL,
user_id integer,
name character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted integer DEFAULT 0,
rank integer DEFAULT 1
);
ALTER TABLE oldtulp.moderators OWNER TO tulp;
--
-- Name: photos; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE photos (
id integer NOT NULL,
target_id integer,
target_type character varying(255) DEFAULT NULL::character varying,
author_id integer,
description text,
data_file_name character varying(255) DEFAULT NULL::character varying,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted integer DEFAULT 0 NOT NULL,
approved integer DEFAULT 1,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.photos OWNER TO tulp;
--
-- Name: private_messages; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE private_messages (
id integer NOT NULL,
author_id integer,
target_id integer,
text text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
viewed integer DEFAULT 0,
deleted integer DEFAULT 0 NOT NULL,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.private_messages OWNER TO tulp;
--
-- Name: review_questions; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE review_questions (
id integer NOT NULL,
review_id integer,
business_id integer,
attribute_type_id integer,
value text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.review_questions OWNER TO tulp;
--
-- Name: review_votes; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE review_votes (
id integer NOT NULL,
review_id integer,
user_id integer,
vote integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
canceled integer DEFAULT 0 NOT NULL,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.review_votes OWNER TO tulp;
--
-- Name: reviews; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE reviews (
id integer NOT NULL,
author_id integer,
business_id integer,
rate integer,
text text,
vote_num integer DEFAULT 0 NOT NULL,
vote_sum integer DEFAULT 0 NOT NULL,
vote_avg integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted integer DEFAULT 0 NOT NULL,
rating integer DEFAULT 0 NOT NULL,
name character varying(255),
approved integer DEFAULT 0,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.reviews OWNER TO tulp;
--
-- Name: tulpers; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE tulpers (
id integer NOT NULL,
user_id integer,
firstname character varying(255),
lastname character varying(255),
birthday integer,
birthmonth integer,
birthyear integer,
contact text,
interests text,
info text,
security text,
photo character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
deleted integer DEFAULT 0 NOT NULL,
rating integer DEFAULT 0 NOT NULL,
login character varying(255),
sex integer,
want_newsletter integer DEFAULT 1,
status_avatar character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics_avatar character varying(255)
);
ALTER TABLE oldtulp.tulpers OWNER TO tulp;
--
-- Name: users; Type: TABLE; Schema: oldtulp; Owner: tulp; Tablespace:
--
CREATE TABLE users (
id integer NOT NULL,
login character varying(255),
hashed_password character varying(255),
salt character varying(255),
email character varying(255),
role integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
city_id integer,
deleted integer,
approved integer,
status character varying(1) DEFAULT 'N'::character varying NOT NULL,
diagnostics character varying(255)
);
ALTER TABLE oldtulp.users OWNER TO tulp;
SET search_path = public, pg_catalog;
--
-- Name: answers; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE answers (
id integer NOT NULL,
question_id integer,
choice_id integer,
answerable_type character varying(255),
answerable_id integer,
text character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
user_id integer
);
ALTER TABLE public.answers OWNER TO tulp;
--
-- Name: answers_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE answers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.answers_id_seq OWNER TO tulp;
--
-- Name: answers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE answers_id_seq OWNED BY answers.id;
--
-- Name: assets; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE assets (
id integer NOT NULL,
data_file_name character varying(255),
data_content_type character varying(255),
data_file_size integer,
created_at timestamp without time zone,
data_updated_at timestamp without time zone,
"primary" boolean DEFAULT false,
note text,
attachable_type character varying(255),
attachable_id integer,
approved boolean DEFAULT false NOT NULL,
creator_id integer,
type character varying(255) NOT NULL,
review_id integer,
delete_at timestamp without time zone
);
ALTER TABLE public.assets OWNER TO tulp;
--
-- Name: assets_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE assets_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.assets_id_seq OWNER TO tulp;
--
-- Name: assets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE assets_id_seq OWNED BY assets.id;
--
-- Name: attachings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE attachings (
id integer NOT NULL,
attachable_id integer,
asset_id integer,
attachable_type character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.attachings OWNER TO tulp;
--
-- Name: attachings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE attachings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.attachings_id_seq OWNER TO tulp;
--
-- Name: attachings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE attachings_id_seq OWNED BY attachings.id;
--
-- Name: authentications; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE authentications (
id integer NOT NULL,
user_id integer,
provider character varying(255),
uid character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
link character varying(255),
friends_cache text,
profile_cache text
);
ALTER TABLE public.authentications OWNER TO tulp;
--
-- Name: authentications_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE authentications_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.authentications_id_seq OWNER TO tulp;
--
-- Name: authentications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE authentications_id_seq OWNED BY authentications.id;
--
-- Name: business_ratings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE business_ratings (
id integer NOT NULL,
business_id integer,
rating_id integer,
total integer DEFAULT 0 NOT NULL,
number integer DEFAULT 0 NOT NULL,
title character varying(255)
);
ALTER TABLE public.business_ratings OWNER TO tulp;
--
-- Name: rates; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE rates (
id integer NOT NULL,
business_id integer,
user_id integer,
rating_id integer,
review_id integer,
rate integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
title character varying(255)
);
ALTER TABLE public.rates OWNER TO tulp;
--
-- Name: latest_rates; Type: VIEW; Schema: public; Owner: tulp
--
CREATE VIEW latest_rates AS
SELECT DISTINCT ON (r.user_id, r.business_id, r.rating_id) r.id, r.business_id, r.user_id, r.rating_id, r.review_id, r.rate, r.created_at, r.updated_at, r.title FROM (rates r JOIN business_ratings br USING (business_id, rating_id)) ORDER BY r.user_id, r.business_id, r.rating_id, r.updated_at DESC;
ALTER TABLE public.latest_rates OWNER TO tulp;
--
-- Name: average_rates; Type: VIEW; Schema: public; Owner: tulp
--
CREATE VIEW average_rates AS
SELECT latest_rates.business_id, latest_rates.rating_id, sum(latest_rates.rate) AS total, count(latest_rates.id) AS number FROM latest_rates GROUP BY latest_rates.business_id, latest_rates.rating_id;
ALTER TABLE public.average_rates OWNER TO tulp;
--
-- Name: average_ratings; Type: VIEW; Schema: public; Owner: tulp
--
CREATE VIEW average_ratings AS
SELECT average_rates.business_id, CASE WHEN (sum(average_rates.number) = (0)::numeric) THEN (0)::numeric ELSE (sum(average_rates.total) / sum(average_rates.number)) END AS rating FROM average_rates GROUP BY average_rates.business_id;
ALTER TABLE public.average_ratings OWNER TO tulp;
--
-- Name: banners; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE banners (
id integer NOT NULL,
user_id integer NOT NULL,
business_id integer,
url character varying(255),
clicked_count integer DEFAULT 0 NOT NULL,
"position" character varying(255) NOT NULL,
city_id integer NOT NULL,
note character varying(255),
image_file_name character varying(255),
image_content_type character varying(255),
image_file_size integer,
image_updated_at timestamp without time zone,
token character varying(40),
created_at timestamp without time zone,
updated_at timestamp without time zone,
page character varying(255),
show_until date,
viewed_at timestamp without time zone
);
ALTER TABLE public.banners OWNER TO tulp;
--
-- Name: banners_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE banners_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.banners_id_seq OWNER TO tulp;
--
-- Name: banners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE banners_id_seq OWNED BY banners.id;
--
-- Name: battle_requests; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE battle_requests (
id integer NOT NULL,
battle_id integer,
requester_uid integer,
receiver_uid integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.battle_requests OWNER TO tulp;
--
-- Name: battle_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE battle_requests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.battle_requests_id_seq OWNER TO tulp;
--
-- Name: battle_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE battle_requests_id_seq OWNED BY battle_requests.id;
--
-- Name: battle_users; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE battle_users (
id integer NOT NULL,
uid integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
rank integer DEFAULT 0,
posted_rank integer
);
ALTER TABLE public.battle_users OWNER TO tulp;
--
-- Name: battle_users_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE battle_users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.battle_users_id_seq OWNER TO tulp;
--
-- Name: battle_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE battle_users_id_seq OWNED BY battle_users.id;
--
-- Name: battle_votes; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE battle_votes (
id integer NOT NULL,
user_uid integer,
business_id integer,
battle_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.battle_votes OWNER TO tulp;
--
-- Name: battle_votes_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE battle_votes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.battle_votes_id_seq OWNER TO tulp;
--
-- Name: battle_votes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE battle_votes_id_seq OWNED BY battle_votes.id;
--
-- Name: battles; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE battles (
id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
end_at timestamp without time zone,
callback_after_end_completed boolean DEFAULT false
);
ALTER TABLE public.battles OWNER TO tulp;
--
-- Name: battles_businesses; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE battles_businesses (
battle_id integer,
business_id integer
);
ALTER TABLE public.battles_businesses OWNER TO tulp;
--
-- Name: battles_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE battles_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.battles_id_seq OWNER TO tulp;
--
-- Name: battles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE battles_id_seq OWNED BY battles.id;
--
-- Name: business_categories; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE business_categories (
id integer NOT NULL,
business_id integer,
category_id integer,
general boolean
);
ALTER TABLE public.business_categories OWNER TO tulp;
--
-- Name: business_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE business_categories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.business_categories_id_seq OWNER TO tulp;
--
-- Name: business_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE business_categories_id_seq OWNED BY business_categories.id;
--
-- Name: business_owners; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE business_owners (
id integer NOT NULL,
email character varying(255) DEFAULT ''::character varying NOT NULL,
encrypted_password character varying(128) DEFAULT ''::character varying NOT NULL,
password_salt character varying(255) DEFAULT ''::character varying NOT NULL,
reset_password_token character varying(255),
remember_token character varying(255),
remember_created_at timestamp without time zone,
sign_in_count integer DEFAULT 0,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip character varying(255),
last_sign_in_ip character varying(255),
first_name character varying(255),
last_name character varying(255),
login character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
approved boolean DEFAULT false NOT NULL,
deleted_at timestamp without time zone,
assets_count integer DEFAULT 0,
"position" character varying(255)
);
ALTER TABLE public.business_owners OWNER TO tulp;
--
-- Name: business_owners_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE business_owners_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.business_owners_id_seq OWNER TO tulp;
--
-- Name: business_owners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE business_owners_id_seq OWNED BY business_owners.id;
--
-- Name: business_ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE business_ratings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.business_ratings_id_seq OWNER TO tulp;
--
-- Name: business_ratings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE business_ratings_id_seq OWNED BY business_ratings.id;
--
-- Name: businesses; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE businesses (
id integer NOT NULL,
name character varying(255) NOT NULL,
business_owner_id integer,
creator_id integer,
contact text,
info text,
address character varying(255),
deleted boolean DEFAULT false NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
city_id integer,
rating numeric(3,2) DEFAULT NULL::numeric,
assets_count integer DEFAULT 0,
translit character varying(255),
general_category_id integer,
lat double precision,
long double precision,
oldtulp_contact text,
delta boolean DEFAULT true NOT NULL,
approved boolean DEFAULT false NOT NULL,
reviews_count integer DEFAULT 0,
office_hours character varying(1000),
base_service character varying(1000),
device character varying(1000),
history text,
discounts character varying(1000),
business_owner_info text,
email character varying(255),
highlight boolean DEFAULT false NOT NULL,
address_street character varying(255),
address_house character varying(255),
address_part character varying(255),
address_building character varying(255),
address_room character varying(255),
address_metro_stations character varying(255),
address_other character varying(255),
contacts_phone text,
contacts_fax character varying(255),
contacts_email character varying(255),
contacts_site character varying(255),
other_categories text,
category_translit character varying(255),
last_review_date timestamp without time zone,
working_time character varying(255),
from_yandex boolean DEFAULT false NOT NULL,
info_approved boolean DEFAULT false NOT NULL
);
ALTER TABLE public.businesses OWNER TO tulp;
--
-- Name: businesses_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE businesses_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.businesses_id_seq OWNER TO tulp;
--
-- Name: businesses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE businesses_id_seq OWNED BY businesses.id;
--
-- Name: categories; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE categories (
id integer NOT NULL,
name character varying(255) NOT NULL,
prepositional_singular character varying(255),
prepositional_plural character varying(255),
translit character varying(255),
parent_id integer,
lft integer,
rgt integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.categories OWNER TO tulp;
--
-- Name: category_questions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE category_questions (
category_id integer NOT NULL,
question_id integer NOT NULL,
number integer
);
ALTER TABLE public.category_questions OWNER TO tulp;
--
-- Name: questions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE questions (
id integer NOT NULL,
title character varying(255),
note character varying(255),
question_type character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
main boolean DEFAULT true NOT NULL,
"group" character varying(255),
negative character varying(255)
);
ALTER TABLE public.questions OWNER TO tulp;
--
-- Name: businesses_questions; Type: VIEW; Schema: public; Owner: tulp
--
CREATE VIEW businesses_questions AS
SELECT DISTINCT ON (b.id, q.id) b.id AS business_id, q.id AS question_id FROM ((((businesses b JOIN category_assignments ca ON ((ca.business_id = b.id))) JOIN categories c ON ((c.id = ca.category_id))) JOIN category_questions cq ON ((cq.category_id = c.id))) JOIN questions q ON ((q.id = cq.question_id)));
ALTER TABLE public.businesses_questions OWNER TO tulp;
--
-- Name: categories_ratings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE categories_ratings (
category_id integer NOT NULL,
rating_id integer
);
ALTER TABLE public.categories_ratings OWNER TO tulp;
--
-- Name: ratings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE ratings (
id integer NOT NULL,
title character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.ratings OWNER TO tulp;
--
-- Name: businesses_ratings; Type: VIEW; Schema: public; Owner: tulp
--
CREATE VIEW businesses_ratings AS
SELECT DISTINCT ON (b.id, r.id, r.title) b.id AS business_id, r.id AS rating_id, r.title FROM ((((businesses b JOIN category_assignments ca ON ((ca.business_id = b.id))) JOIN categories c ON ((c.id = ca.category_id))) JOIN categories_ratings cr ON ((cr.category_id = c.id))) JOIN ratings r ON ((r.id = cr.rating_id)));
ALTER TABLE public.businesses_ratings OWNER TO tulp;
--
-- Name: businesses_users; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE businesses_users (
business_id integer,
user_id integer
);
ALTER TABLE public.businesses_users OWNER TO tulp;
--
-- Name: categories_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE categories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.categories_id_seq OWNER TO tulp;
--
-- Name: categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE categories_id_seq OWNED BY categories.id;
--
-- Name: category_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE category_assignments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.category_assignments_id_seq OWNER TO tulp;
--
-- Name: category_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE category_assignments_id_seq OWNED BY category_assignments.id;
--
-- Name: category_ranks; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE category_ranks (
id integer NOT NULL,
category_id integer NOT NULL,
city_id integer NOT NULL,
rank double precision DEFAULT 0 NOT NULL,
business_count integer DEFAULT 0 NOT NULL,
root boolean NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.category_ranks OWNER TO tulp;
--
-- Name: category_ranks_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE category_ranks_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.category_ranks_id_seq OWNER TO tulp;
--
-- Name: category_ranks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE category_ranks_id_seq OWNED BY category_ranks.id;
--
-- Name: choices; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE choices (
id integer NOT NULL,
title character varying(255),
question_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.choices OWNER TO tulp;
--
-- Name: choices_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE choices_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.choices_id_seq OWNER TO tulp;
--
-- Name: choices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE choices_id_seq OWNED BY choices.id;
--
-- Name: cities; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE cities (
id integer NOT NULL,
name character varying(255),
translit character varying(255),
parent_case character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
example_addresses text,
example_businesses text,
example_terms text,
region_id integer,
town boolean DEFAULT false NOT NULL,
reviews_count integer,
preposition_case character varying(255),
blank boolean DEFAULT true NOT NULL
);
ALTER TABLE public.cities OWNER TO tulp;
--
-- Name: cities_coupons; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE cities_coupons (
city_id integer NOT NULL,
coupon_id integer NOT NULL
);
ALTER TABLE public.cities_coupons OWNER TO tulp;
--
-- Name: cities_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE cities_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.cities_id_seq OWNER TO tulp;
--
-- Name: cities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE cities_id_seq OWNED BY cities.id;
--
-- Name: cities_users; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE cities_users (
user_id integer NOT NULL,
city_id integer NOT NULL
);
ALTER TABLE public.cities_users OWNER TO tulp;
--
-- Name: comments; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE comments (
id integer NOT NULL,
creator_id integer,
text text NOT NULL,
parent_id integer,
lft integer,
rgt integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
commentable_type character varying(255),
commentable_id integer,
deleted boolean DEFAULT false NOT NULL,
deleted_at timestamp without time zone,
deleted_by integer,
creator_type character varying(255)
);
ALTER TABLE public.comments OWNER TO tulp;
--
-- Name: comments_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE comments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.comments_id_seq OWNER TO tulp;
--
-- Name: comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE comments_id_seq OWNED BY comments.id;
--
-- Name: contacts; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE contacts (
id integer NOT NULL,
user_id integer,
provider character varying(255),
login character varying(255),
privacy integer DEFAULT 0,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.contacts OWNER TO tulp;
--
-- Name: contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE contacts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.contacts_id_seq OWNER TO tulp;
--
-- Name: contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE contacts_id_seq OWNED BY contacts.id;
--
-- Name: countries; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE countries (
id integer NOT NULL,
name character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
reviews_count integer
);
ALTER TABLE public.countries OWNER TO tulp;
--
-- Name: countries_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE countries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.countries_id_seq OWNER TO tulp;
--
-- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
--
-- Name: double_users; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE double_users (
id integer,
email character varying(255)
);
ALTER TABLE public.double_users OWNER TO tulp;
--
-- Name: emails; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE emails (
id integer NOT NULL,
"from" character varying(255),
"to" character varying(255),
last_send_attempt integer DEFAULT 0,
mail text,
created_on timestamp without time zone
);
ALTER TABLE public.emails OWNER TO tulp;
--
-- Name: emails_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE emails_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.emails_id_seq OWNER TO tulp;
--
-- Name: emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE emails_id_seq OWNED BY emails.id;
--
-- Name: entries; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE entries (
id integer NOT NULL,
user_id integer,
document_id integer,
document_type character varying(255),
cents integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.entries OWNER TO tulp;
--
-- Name: entries_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE entries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.entries_id_seq OWNER TO tulp;
--
-- Name: entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE entries_id_seq OWNED BY entries.id;
--
-- Name: exports; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE exports (
id integer NOT NULL,
business_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.exports OWNER TO tulp;
--
-- Name: exports_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE exports_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.exports_id_seq OWNER TO tulp;
--
-- Name: exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE exports_id_seq OWNED BY exports.id;
--
-- Name: facts; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE facts (
business_id integer,
answer_id integer NOT NULL,
question_id integer,
title character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.facts OWNER TO tulp;
--
-- Name: favorites; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE favorites (
id integer NOT NULL,
user_id integer NOT NULL,
favorable_id integer NOT NULL,
favorable_type character varying(255) NOT NULL,
kind character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.favorites OWNER TO tulp;
--
-- Name: favorites_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE favorites_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.favorites_id_seq OWNER TO tulp;
--
-- Name: favorites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE favorites_id_seq OWNED BY favorites.id;
--
-- Name: favouriteships; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE favouriteships (
id integer NOT NULL,
favourite_id integer,
admirer_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.favouriteships OWNER TO tulp;
--
-- Name: favouriteships_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE favouriteships_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.favouriteships_id_seq OWNER TO tulp;
--
-- Name: favouriteships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE favouriteships_id_seq OWNED BY favouriteships.id;
--
-- Name: feedbacks; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE feedbacks (
id integer NOT NULL,
feedback_type character varying(255),
body text,
user_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
reportable_id integer,
reportable_type character varying(255),
email character varying(255),
title character varying(255),
deleted boolean DEFAULT false NOT NULL,
status character varying(255) NOT NULL,
details text,
oldtulp_options text,
oldtulp_ip character varying(255),
oldtulp_page character varying(255)
);
ALTER TABLE public.feedbacks OWNER TO tulp;
--
-- Name: feedbacks_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE feedbacks_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.feedbacks_id_seq OWNER TO tulp;
--
-- Name: feedbacks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE feedbacks_id_seq OWNED BY feedbacks.id;
--
-- Name: friendship_requests; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE friendship_requests (
id integer NOT NULL,
sender_id integer,
recipient_id integer,
state character varying(255) NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.friendship_requests OWNER TO tulp;
--
-- Name: friendship_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE friendship_requests_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.friendship_requests_id_seq OWNER TO tulp;
--
-- Name: friendship_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE friendship_requests_id_seq OWNED BY friendship_requests.id;
--
-- Name: friendships; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE friendships (
id integer NOT NULL,
user_id integer,
friend_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.friendships OWNER TO tulp;
--
-- Name: friendships_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE friendships_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.friendships_id_seq OWNER TO tulp;
--
-- Name: friendships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE friendships_id_seq OWNED BY friendships.id;
--
-- Name: gas; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE gas (
id integer NOT NULL,
page_path character varying(255),
pageviews integer DEFAULT 0,
male integer DEFAULT 0,
female integer DEFAULT 0,
tulper integer DEFAULT 0,
date date,
type character varying(255),
business_id integer,
redirects integer DEFAULT 0
);
ALTER TABLE public.gas OWNER TO tulp;
--
-- Name: gas_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE gas_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.gas_id_seq OWNER TO tulp;
--
-- Name: gas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE gas_id_seq OWNED BY gas.id;
--
-- Name: impressions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE impressions (
id integer NOT NULL,
impressionable_type character varying(255),
impressionable_id integer,
user_id integer,
controller_name character varying(255),
action_name character varying(255),
view_name character varying(255),
request_hash character varying(255),
session_hash character varying(255),
ip_address character varying(255),
message character varying(255),
referrer text,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.impressions OWNER TO tulp;
--
-- Name: impressions_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE impressions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.impressions_id_seq OWNER TO tulp;
--
-- Name: impressions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE impressions_id_seq OWNED BY impressions.id;
--
-- Name: intentions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE intentions (
id integer NOT NULL,
business_id integer NOT NULL,
user_id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.intentions OWNER TO tulp;
--
-- Name: intentions_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE intentions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.intentions_id_seq OWNER TO tulp;
--
-- Name: intentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE intentions_id_seq OWNED BY intentions.id;
--
-- Name: letters; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE letters (
id integer NOT NULL,
subject character varying(255),
audience character varying(255),
text text,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.letters OWNER TO tulp;
--
-- Name: letters_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE letters_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.letters_id_seq OWNER TO tulp;
--
-- Name: letters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE letters_id_seq OWNED BY letters.id;
--
-- Name: locations; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE locations (
id integer NOT NULL,
user_id integer,
address_street character varying(255),
address_house character varying(255),
address_part character varying(255),
address_building character varying(255),
location_type character varying(255),
lat double precision,
long double precision,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.locations OWNER TO tulp;
--
-- Name: locations_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE locations_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.locations_id_seq OWNER TO tulp;
--
-- Name: locations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE locations_id_seq OWNED BY locations.id;
--
-- Name: logs; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE logs (
id integer NOT NULL,
log_type character varying(255) NOT NULL,
data text NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.logs OWNER TO tulp;
--
-- Name: logs_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE logs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.logs_id_seq OWNER TO tulp;
--
-- Name: logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE logs_id_seq OWNED BY logs.id;
--
-- Name: mailings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE mailings (
id integer NOT NULL,
user_id integer,
city_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
user_type character varying(255)
);
ALTER TABLE public.mailings OWNER TO tulp;
--
-- Name: mailings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE mailings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.mailings_id_seq OWNER TO tulp;
--
-- Name: mailings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE mailings_id_seq OWNED BY mailings.id;
--
-- Name: messages; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE messages (
id integer NOT NULL,
sender_id integer,
recipient_id integer,
subject character varying(255),
body text,
parent_id character varying(255),
read_at timestamp without time zone,
deleted_at timestamp without time zone,
type character varying(255),
message_type character varying(255),
sent_copy boolean DEFAULT false,
created_at timestamp without time zone,
updated_at timestamp without time zone,
sender_type character varying(255),
recipient_type character varying(255)
);
ALTER TABLE public.messages OWNER TO tulp;
--
-- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.messages_id_seq OWNER TO tulp;
--
-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE messages_id_seq OWNED BY messages.id;
--
-- Name: new_categories; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE new_categories (
id integer DEFAULT nextval('categories_id_seq'::regclass) NOT NULL,
name character varying(255),
prepositional_singular character varying(255),
prepositional_plural character varying(255),
translit character varying(255),
parent_id integer,
lft integer,
rgt integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.new_categories OWNER TO tulp;
--
-- Name: newsletters; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE newsletters (
id integer NOT NULL,
subject character varying(255),
body text,
recipients_type character varying(255),
recipients text,
city_id integer,
state character varying(255),
user_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
text text,
date_on date,
transmitted_at timestamp without time zone
);
ALTER TABLE public.newsletters OWNER TO tulp;
--
-- Name: newsletters_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE newsletters_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.newsletters_id_seq OWNER TO tulp;
--
-- Name: newsletters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE newsletters_id_seq OWNED BY newsletters.id;
--
-- Name: notification_settings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE notification_settings (
id integer NOT NULL,
user_id integer,
wall_message character varying(255),
private_message character varying(255),
review_of_favorite_business character varying(255),
review_from_friend character varying(255),
review_from_favorite character varying(255),
comment_on_favorite_review character varying(255),
comment_on_my_review character varying(255),
compliment character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
wall_message_sent_at timestamp without time zone,
private_message_sent_at timestamp without time zone,
review_of_favorite_business_sent_at timestamp without time zone,
review_from_friend_sent_at timestamp without time zone,
review_from_favorite_sent_at timestamp without time zone,
comment_on_favorite_review_sent_at timestamp without time zone,
comment_on_my_review_sent_at timestamp without time zone,
compliment_sent_at timestamp without time zone,
comment_on_my_comment character varying(255),
comment_on_my_comment_sent_at timestamp without time zone
);
ALTER TABLE public.notification_settings OWNER TO tulp;
--
-- Name: notification_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE notification_settings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.notification_settings_id_seq OWNER TO tulp;
--
-- Name: notification_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE notification_settings_id_seq OWNED BY notification_settings.id;
--
-- Name: payments; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE payments (
id integer NOT NULL,
user_id integer NOT NULL,
cents integer DEFAULT 0 NOT NULL,
type character varying(255),
transactionid character varying(255),
note character varying(255),
status integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
payment_type character varying(255),
service_type character varying(255),
service_id integer
);
ALTER TABLE public.payments OWNER TO tulp;
--
-- Name: payments_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE payments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.payments_id_seq OWNER TO tulp;
--
-- Name: payments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE payments_id_seq OWNED BY payments.id;
--
-- Name: posts; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE posts (
id integer NOT NULL,
title character varying(255),
text text,
parent_type character varying(255),
parent_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.posts OWNER TO tulp;
--
-- Name: posts_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE posts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.posts_id_seq OWNER TO tulp;
--
-- Name: posts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE posts_id_seq OWNED BY posts.id;
--
-- Name: questions_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE questions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.questions_id_seq OWNER TO tulp;
--
-- Name: questions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE questions_id_seq OWNED BY questions.id;
--
-- Name: rates_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE rates_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.rates_id_seq OWNER TO tulp;
--
-- Name: rates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE rates_id_seq OWNED BY rates.id;
--
-- Name: ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE ratings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ratings_id_seq OWNER TO tulp;
--
-- Name: ratings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE ratings_id_seq OWNED BY ratings.id;
--
-- Name: regions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE regions (
id integer NOT NULL,
name character varying(255),
country_id integer
);
ALTER TABLE public.regions OWNER TO tulp;
--
-- Name: regions_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE regions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.regions_id_seq OWNER TO tulp;
--
-- Name: regions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE regions_id_seq OWNED BY regions.id;
--
-- Name: review_visits; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE review_visits (
review_id integer,
number bigint
);
ALTER TABLE public.review_visits OWNER TO tulp;
--
-- Name: reviews; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE reviews (
id integer NOT NULL,
user_id integer,
business_id integer,
text text,
business_rating integer,
created_at timestamp without time zone,
updated_at timestamp without time zone,
delta boolean DEFAULT true NOT NULL,
approved boolean DEFAULT false,
assets_count integer DEFAULT 0,
first_create boolean DEFAULT false,
deleted_at timestamp without time zone,
press_signature integer DEFAULT 0,
has_image boolean DEFAULT false NOT NULL,
thanks_count integer DEFAULT 0 NOT NULL,
comments_count integer DEFAULT 0 NOT NULL,
last_edit_at timestamp without time zone,
popularity integer DEFAULT 0 NOT NULL,
popular boolean DEFAULT false NOT NULL,
city_id integer
);
ALTER TABLE public.reviews OWNER TO tulp;
--
-- Name: reviews_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE reviews_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.reviews_id_seq OWNER TO tulp;
--
-- Name: reviews_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE reviews_id_seq OWNED BY reviews.id;
--
-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE schema_migrations (
version character varying(255) NOT NULL
);
ALTER TABLE public.schema_migrations OWNER TO tulp;
--
-- Name: search_queries; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE search_queries (
id integer NOT NULL,
query text,
"where" text,
city_id integer
);
ALTER TABLE public.search_queries OWNER TO tulp;
--
-- Name: search_queries_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE search_queries_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.search_queries_id_seq OWNER TO tulp;
--
-- Name: search_queries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE search_queries_id_seq OWNED BY search_queries.id;
--
-- Name: searched_contacts; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE searched_contacts (
id integer NOT NULL,
provider character varying(255),
user_id integer,
uid character varying(255)
);
ALTER TABLE public.searched_contacts OWNER TO tulp;
--
-- Name: searched_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE searched_contacts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.searched_contacts_id_seq OWNER TO tulp;
--
-- Name: searched_contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE searched_contacts_id_seq OWNED BY searched_contacts.id;
--
-- Name: sent_notifications; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE sent_notifications (
id integer NOT NULL,
user_id integer NOT NULL,
notificable_id integer,
notificable_type character varying(255),
activator_id integer,
verb character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.sent_notifications OWNER TO tulp;
--
-- Name: sent_notifications_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE sent_notifications_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.sent_notifications_id_seq OWNER TO tulp;
--
-- Name: sent_notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE sent_notifications_id_seq OWNED BY sent_notifications.id;
--
-- Name: settings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE settings (
id integer NOT NULL,
key character varying(255) NOT NULL,
value text
);
ALTER TABLE public.settings OWNER TO tulp;
--
-- Name: settings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE settings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.settings_id_seq OWNER TO tulp;
--
-- Name: settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE settings_id_seq OWNED BY settings.id;
--
-- Name: similarities; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE similarities (
id integer NOT NULL,
user_id integer NOT NULL,
similar_user_id integer NOT NULL,
thanks_count integer DEFAULT 0 NOT NULL,
reviews_count integer DEFAULT 0 NOT NULL,
rates_count integer DEFAULT 0 NOT NULL,
description_presence boolean DEFAULT false NOT NULL
);
ALTER TABLE public.similarities OWNER TO tulp;
--
-- Name: similarities_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE similarities_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.similarities_id_seq OWNER TO tulp;
--
-- Name: similarities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE similarities_id_seq OWNED BY similarities.id;
--
-- Name: simple_pictures; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE simple_pictures (
id integer NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
image_file_name character varying(255),
image_content_type character varying(255),
image_file_size integer,
image_updated_at timestamp without time zone
);
ALTER TABLE public.simple_pictures OWNER TO tulp;
--
-- Name: simple_pictures_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE simple_pictures_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.simple_pictures_id_seq OWNER TO tulp;
--
-- Name: simple_pictures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE simple_pictures_id_seq OWNED BY simple_pictures.id;
--
-- Name: slugs; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE slugs (
id integer NOT NULL,
name character varying(255),
sluggable_id integer,
sequence integer DEFAULT 1 NOT NULL,
sluggable_type character varying(40),
scope character varying(255),
created_at timestamp without time zone
);
ALTER TABLE public.slugs OWNER TO tulp;
--
-- Name: slugs_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE slugs_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.slugs_id_seq OWNER TO tulp;
--
-- Name: slugs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE slugs_id_seq OWNED BY slugs.id;
--
-- Name: social_links; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE social_links (
id integer NOT NULL,
user_id integer,
provider character varying(255),
uid character varying(255),
city_name character varying(255),
email character varying(255),
gender character varying(255),
birthday character varying(255),
name character varying(255),
avatar_path character varying(255),
tulp_uid character varying(255)
);
ALTER TABLE public.social_links OWNER TO tulp;
--
-- Name: social_links_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE social_links_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.social_links_id_seq OWNER TO tulp;
--
-- Name: social_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE social_links_id_seq OWNED BY social_links.id;
--
-- Name: subscribers; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE subscribers (
id integer NOT NULL,
name character varying(255),
email character varying(255) NOT NULL,
confirmation_token character varying(255),
confirmed boolean DEFAULT false NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.subscribers OWNER TO tulp;
--
-- Name: subscribers_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE subscribers_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.subscribers_id_seq OWNER TO tulp;
--
-- Name: subscribers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE subscribers_id_seq OWNED BY subscribers.id;
--
-- Name: subscriptions; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE subscriptions (
id integer NOT NULL,
user_id integer,
subscribable_id integer,
subscribable_type character varying(255),
created_at timestamp without time zone,
deleted_at timestamp without time zone
);
ALTER TABLE public.subscriptions OWNER TO tulp;
--
-- Name: subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE subscriptions_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.subscriptions_id_seq OWNER TO tulp;
--
-- Name: subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE subscriptions_id_seq OWNED BY subscriptions.id;
--
-- Name: temp_business_categories; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE temp_business_categories (
id integer NOT NULL,
business_id integer,
category_id integer,
number integer DEFAULT 0 NOT NULL,
state character varying(255) DEFAULT 'dirty'::character varying NOT NULL,
"group" character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.temp_business_categories OWNER TO tulp;
--
-- Name: temp_business_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE temp_business_categories_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.temp_business_categories_id_seq OWNER TO tulp;
--
-- Name: temp_business_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE temp_business_categories_id_seq OWNED BY temp_business_categories.id;
--
-- Name: thanks; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE thanks (
id integer NOT NULL,
review_id integer NOT NULL,
user_id integer,
created_at timestamp without time zone NOT NULL
);
ALTER TABLE public.thanks OWNER TO tulp;
--
-- Name: user_activities; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_activities (
id integer NOT NULL,
user_id integer,
object_item_id integer,
object_item_type character varying(255),
verb character varying(255) NOT NULL,
info character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
score integer DEFAULT 0
);
ALTER TABLE public.user_activities OWNER TO tulp;
--
-- Name: user_activities_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE user_activities_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_activities_id_seq OWNER TO tulp;
--
-- Name: user_activities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE user_activities_id_seq OWNED BY user_activities.id;
--
-- Name: user_alerts; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_alerts (
id integer NOT NULL,
user_id integer,
alertable_id integer,
alertable_type character varying(255),
item_owner_id integer,
alert_type character varying(255),
cache text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
status character varying(255) DEFAULT 'new'::character varying NOT NULL
);
ALTER TABLE public.user_alerts OWNER TO tulp;
--
-- Name: user_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE user_alerts_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_alerts_id_seq OWNER TO tulp;
--
-- Name: user_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE user_alerts_id_seq OWNED BY user_alerts.id;
--
-- Name: user_compliments; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_compliments (
id integer NOT NULL,
creator_id integer NOT NULL,
user_id integer NOT NULL,
complimentable_id integer NOT NULL,
complimentable_type character varying(255) NOT NULL,
compliment_type character varying(255) NOT NULL,
message text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
state character varying(255) DEFAULT 'new'::character varying NOT NULL
);
ALTER TABLE public.user_compliments OWNER TO tulp;
--
-- Name: user_compliments_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE user_compliments_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_compliments_id_seq OWNER TO tulp;
--
-- Name: user_compliments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE user_compliments_id_seq OWNED BY user_compliments.id;
--
-- Name: user_messages; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_messages (
id integer NOT NULL,
sender_id integer NOT NULL,
recipient_id integer NOT NULL,
state character varying(255) NOT NULL,
body text NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.user_messages OWNER TO tulp;
--
-- Name: user_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE user_messages_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_messages_id_seq OWNER TO tulp;
--
-- Name: user_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE user_messages_id_seq OWNED BY user_messages.id;
--
-- Name: user_notification_settings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_notification_settings (
user_id integer NOT NULL,
settings text
);
ALTER TABLE public.user_notification_settings OWNER TO tulp;
--
-- Name: user_ratings; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_ratings (
id integer NOT NULL,
rating_id integer,
user_id integer,
score integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.user_ratings OWNER TO tulp;
--
-- Name: user_ratings_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE user_ratings_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.user_ratings_id_seq OWNER TO tulp;
--
-- Name: user_ratings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE user_ratings_id_seq OWNED BY user_ratings.id;
--
-- Name: user_statistics; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE user_statistics (
user_id integer NOT NULL,
visitors integer DEFAULT 0 NOT NULL,
visitors_last_month integer DEFAULT 0 NOT NULL,
reviews integer DEFAULT 0 NOT NULL,
reviews_last_month integer DEFAULT 0 NOT NULL,
thanks integer DEFAULT 0 NOT NULL,
thanks_last_month integer DEFAULT 0 NOT NULL,
comments integer DEFAULT 0 NOT NULL,
comments_last_month integer DEFAULT 0 NOT NULL,
given_comments integer DEFAULT 0 NOT NULL,
given_comments_last_month integer DEFAULT 0 NOT NULL,
subscribers integer DEFAULT 0 NOT NULL,
subscribers_last_month integer DEFAULT 0 NOT NULL,
created_at timestamp without time zone,
updated_at timestamp without time zone,
rate1 integer DEFAULT 0 NOT NULL,
rate2 integer DEFAULT 0 NOT NULL,
rate3 integer DEFAULT 0 NOT NULL,
rate4 integer DEFAULT 0 NOT NULL,
rate5 integer DEFAULT 0 NOT NULL
);
ALTER TABLE public.user_statistics OWNER TO tulp;
--
-- Name: users; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE users (
id integer NOT NULL,
email character varying(255) DEFAULT ''::character varying NOT NULL,
encrypted_password character varying(128) DEFAULT ''::character varying NOT NULL,
password_salt character varying(255) DEFAULT ''::character varying NOT NULL,
confirmation_token character varying(255),
confirmed_at timestamp without time zone,
confirmation_sent_at timestamp without time zone,
reset_password_token character varying(255),
sign_in_count integer DEFAULT 0,
current_sign_in_at timestamp without time zone,
last_sign_in_at timestamp without time zone,
current_sign_in_ip character varying(255),
last_sign_in_ip character varying(255),
login character varying(255),
first_name character varying(255),
last_name character varying(255),
gender character varying(1),
birthday date,
city_id integer,
public_email character varying(255),
description text,
created_at timestamp without time zone,
updated_at timestamp without time zone,
delta boolean DEFAULT true NOT NULL,
roles_mask integer DEFAULT 0,
allowed_viewers character varying(255) DEFAULT 'all'::character varying,
assets_count integer DEFAULT 0,
rating integer DEFAULT 0,
time_zone character varying(255),
approved boolean DEFAULT false NOT NULL,
deleted_at timestamp without time zone,
expert boolean DEFAULT false,
twitter_token character varying(255),
twitter_secret character varying(255),
balance_cents integer DEFAULT 0 NOT NULL,
pressmanager_id integer,
yandex_wallet_id character varying(255),
is_proper boolean DEFAULT true,
twitter character varying(255),
reset_login_token character varying(255),
reviews_count integer DEFAULT 0 NOT NULL,
thanks_count integer DEFAULT 0 NOT NULL,
name character varying(255),
comments_count integer DEFAULT 0 NOT NULL,
birthday_visible character varying(255) DEFAULT 'all'::character varying NOT NULL,
show_warning_page boolean DEFAULT false NOT NULL,
last_updates_view_at timestamp without time zone,
referer_code character varying(255),
referer_id integer,
remember_token character varying(255),
remember_created_at timestamp without time zone
);
ALTER TABLE public.users OWNER TO tulp;
--
-- Name: users_businesses; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE users_businesses (
business_id integer,
user_id integer
);
ALTER TABLE public.users_businesses OWNER TO tulp;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE users_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO tulp;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE users_id_seq OWNED BY users.id;
--
-- Name: visits; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE visits (
id integer NOT NULL,
owner_id integer,
visitor_id integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE public.visits OWNER TO tulp;
--
-- Name: visits_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE visits_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.visits_id_seq OWNER TO tulp;
--
-- Name: visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE visits_id_seq OWNED BY visits.id;
--
-- Name: votes_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE votes_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.votes_id_seq OWNER TO tulp;
--
-- Name: votes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE votes_id_seq OWNED BY thanks.id;
--
-- Name: working_days; Type: TABLE; Schema: public; Owner: tulp; Tablespace:
--
CREATE TABLE working_days (
id integer NOT NULL,
business_id integer NOT NULL,
day integer NOT NULL,
"from" time without time zone NOT NULL,
"to" time without time zone NOT NULL
);
ALTER TABLE public.working_days OWNER TO tulp;
--
-- Name: working_days_id_seq; Type: SEQUENCE; Schema: public; Owner: tulp
--
CREATE SEQUENCE working_days_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.working_days_id_seq OWNER TO tulp;
--
-- Name: working_days_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: tulp
--
ALTER SEQUENCE working_days_id_seq OWNED BY working_days.id;
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE answers ALTER COLUMN id SET DEFAULT nextval('answers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE assets ALTER COLUMN id SET DEFAULT nextval('assets_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE attachings ALTER COLUMN id SET DEFAULT nextval('attachings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE authentications ALTER COLUMN id SET DEFAULT nextval('authentications_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE banners ALTER COLUMN id SET DEFAULT nextval('banners_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE battle_requests ALTER COLUMN id SET DEFAULT nextval('battle_requests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE battle_users ALTER COLUMN id SET DEFAULT nextval('battle_users_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE battle_votes ALTER COLUMN id SET DEFAULT nextval('battle_votes_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE battles ALTER COLUMN id SET DEFAULT nextval('battles_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE business_categories ALTER COLUMN id SET DEFAULT nextval('business_categories_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE business_owners ALTER COLUMN id SET DEFAULT nextval('business_owners_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE business_ratings ALTER COLUMN id SET DEFAULT nextval('business_ratings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE businesses ALTER COLUMN id SET DEFAULT nextval('businesses_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE categories ALTER COLUMN id SET DEFAULT nextval('categories_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE category_assignments ALTER COLUMN id SET DEFAULT nextval('category_assignments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE category_ranks ALTER COLUMN id SET DEFAULT nextval('category_ranks_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE choices ALTER COLUMN id SET DEFAULT nextval('choices_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE cities ALTER COLUMN id SET DEFAULT nextval('cities_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE comments ALTER COLUMN id SET DEFAULT nextval('comments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE contacts ALTER COLUMN id SET DEFAULT nextval('contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE countries ALTER COLUMN id SET DEFAULT nextval('countries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE emails ALTER COLUMN id SET DEFAULT nextval('emails_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE entries ALTER COLUMN id SET DEFAULT nextval('entries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE exports ALTER COLUMN id SET DEFAULT nextval('exports_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE favorites ALTER COLUMN id SET DEFAULT nextval('favorites_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE favouriteships ALTER COLUMN id SET DEFAULT nextval('favouriteships_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE feedbacks ALTER COLUMN id SET DEFAULT nextval('feedbacks_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE friendship_requests ALTER COLUMN id SET DEFAULT nextval('friendship_requests_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE friendships ALTER COLUMN id SET DEFAULT nextval('friendships_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE gas ALTER COLUMN id SET DEFAULT nextval('gas_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE impressions ALTER COLUMN id SET DEFAULT nextval('impressions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE intentions ALTER COLUMN id SET DEFAULT nextval('intentions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE letters ALTER COLUMN id SET DEFAULT nextval('letters_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE locations ALTER COLUMN id SET DEFAULT nextval('locations_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE logs ALTER COLUMN id SET DEFAULT nextval('logs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE mailings ALTER COLUMN id SET DEFAULT nextval('mailings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE newsletters ALTER COLUMN id SET DEFAULT nextval('newsletters_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE notification_settings ALTER COLUMN id SET DEFAULT nextval('notification_settings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE payments ALTER COLUMN id SET DEFAULT nextval('payments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE posts ALTER COLUMN id SET DEFAULT nextval('posts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE questions ALTER COLUMN id SET DEFAULT nextval('questions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE rates ALTER COLUMN id SET DEFAULT nextval('rates_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE ratings ALTER COLUMN id SET DEFAULT nextval('ratings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE regions ALTER COLUMN id SET DEFAULT nextval('regions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE reviews ALTER COLUMN id SET DEFAULT nextval('reviews_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE search_queries ALTER COLUMN id SET DEFAULT nextval('search_queries_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE searched_contacts ALTER COLUMN id SET DEFAULT nextval('searched_contacts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE sent_notifications ALTER COLUMN id SET DEFAULT nextval('sent_notifications_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE settings ALTER COLUMN id SET DEFAULT nextval('settings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE similarities ALTER COLUMN id SET DEFAULT nextval('similarities_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE simple_pictures ALTER COLUMN id SET DEFAULT nextval('simple_pictures_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE slugs ALTER COLUMN id SET DEFAULT nextval('slugs_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE social_links ALTER COLUMN id SET DEFAULT nextval('social_links_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE subscribers ALTER COLUMN id SET DEFAULT nextval('subscribers_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE subscriptions ALTER COLUMN id SET DEFAULT nextval('subscriptions_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE temp_business_categories ALTER COLUMN id SET DEFAULT nextval('temp_business_categories_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE thanks ALTER COLUMN id SET DEFAULT nextval('votes_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE user_activities ALTER COLUMN id SET DEFAULT nextval('user_activities_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE user_alerts ALTER COLUMN id SET DEFAULT nextval('user_alerts_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE user_compliments ALTER COLUMN id SET DEFAULT nextval('user_compliments_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE user_messages ALTER COLUMN id SET DEFAULT nextval('user_messages_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE user_ratings ALTER COLUMN id SET DEFAULT nextval('user_ratings_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE visits ALTER COLUMN id SET DEFAULT nextval('visits_id_seq'::regclass);
--
-- Name: id; Type: DEFAULT; Schema: public; Owner: tulp
--
ALTER TABLE working_days ALTER COLUMN id SET DEFAULT nextval('working_days_id_seq'::regclass);
SET search_path = oldtulp, pg_catalog;
--
-- Name: attribute_types_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY attribute_types
ADD CONSTRAINT attribute_types_pkey PRIMARY KEY (id);
--
-- Name: business_votes_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY business_votes
ADD CONSTRAINT business_votes_pkey PRIMARY KEY (id);
--
-- Name: businesses_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY businesses
ADD CONSTRAINT businesses_pkey PRIMARY KEY (id);
--
-- Name: categories_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY categories
ADD CONSTRAINT categories_pkey PRIMARY KEY (id);
--
-- Name: cities2_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY cities2
ADD CONSTRAINT cities2_pkey PRIMARY KEY (name);
--
-- Name: cities_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY cities
ADD CONSTRAINT cities_pkey PRIMARY KEY (id);
--
-- Name: comments_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_pkey PRIMARY KEY (id);
--
-- Name: compliment_types_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY compliment_types
ADD CONSTRAINT compliment_types_pkey PRIMARY KEY (id);
--
-- Name: compliments_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY compliments
ADD CONSTRAINT compliments_pkey PRIMARY KEY (id);
--
-- Name: event_categories_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY event_categories
ADD CONSTRAINT event_categories_pkey PRIMARY KEY (id);
--
-- Name: events_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY events
ADD CONSTRAINT events_pkey PRIMARY KEY (id);
--
-- Name: fan_favs_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY fan_favs
ADD CONSTRAINT fan_favs_pkey PRIMARY KEY (id);
--
-- Name: feedbacks_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY feedbacks
ADD CONSTRAINT feedbacks_pkey PRIMARY KEY (id);
--
-- Name: memberships_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY memberships
ADD CONSTRAINT memberships_pkey PRIMARY KEY (id);
--
-- Name: moderation_events_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY moderation_events
ADD CONSTRAINT moderation_events_pkey PRIMARY KEY (id);
--
-- Name: moderators_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY moderators
ADD CONSTRAINT moderators_pkey PRIMARY KEY (id);
--
-- Name: photos_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY photos
ADD CONSTRAINT photos_pkey PRIMARY KEY (id);
--
-- Name: private_messages_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY private_messages
ADD CONSTRAINT private_messages_pkey PRIMARY KEY (id);
--
-- Name: review_questions_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY review_questions
ADD CONSTRAINT review_questions_pkey PRIMARY KEY (id);
--
-- Name: review_votes_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY review_votes
ADD CONSTRAINT review_votes_pkey PRIMARY KEY (id);
--
-- Name: reviews_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY reviews
ADD CONSTRAINT reviews_pkey PRIMARY KEY (id);
--
-- Name: tulpers_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY tulpers
ADD CONSTRAINT tulpers_pkey PRIMARY KEY (id);
--
-- Name: users_pkey; Type: CONSTRAINT; Schema: oldtulp; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
SET search_path = public, pg_catalog;
--
-- Name: answers_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY answers
ADD CONSTRAINT answers_pkey PRIMARY KEY (id);
--
-- Name: assets_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY assets
ADD CONSTRAINT assets_pkey PRIMARY KEY (id);
--
-- Name: attachings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY attachings
ADD CONSTRAINT attachings_pkey PRIMARY KEY (id);
--
-- Name: authentications_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY authentications
ADD CONSTRAINT authentications_pkey PRIMARY KEY (id);
--
-- Name: banners_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY banners
ADD CONSTRAINT banners_pkey PRIMARY KEY (id);
--
-- Name: battle_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY battle_requests
ADD CONSTRAINT battle_requests_pkey PRIMARY KEY (id);
--
-- Name: battle_users_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY battle_users
ADD CONSTRAINT battle_users_pkey PRIMARY KEY (id);
--
-- Name: battle_votes_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY battle_votes
ADD CONSTRAINT battle_votes_pkey PRIMARY KEY (id);
--
-- Name: battles_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY battles
ADD CONSTRAINT battles_pkey PRIMARY KEY (id);
--
-- Name: business_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY business_categories
ADD CONSTRAINT business_categories_pkey PRIMARY KEY (id);
--
-- Name: business_owners_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY business_owners
ADD CONSTRAINT business_owners_pkey PRIMARY KEY (id);
--
-- Name: business_ratings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY business_ratings
ADD CONSTRAINT business_ratings_pkey PRIMARY KEY (id);
--
-- Name: businesses_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY businesses
ADD CONSTRAINT businesses_pkey PRIMARY KEY (id);
--
-- Name: categories_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY categories
ADD CONSTRAINT categories_pkey PRIMARY KEY (id);
--
-- Name: category_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY category_assignments
ADD CONSTRAINT category_assignments_pkey PRIMARY KEY (id);
--
-- Name: category_ranks_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY category_ranks
ADD CONSTRAINT category_ranks_pkey PRIMARY KEY (id);
--
-- Name: choices_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY choices
ADD CONSTRAINT choices_pkey PRIMARY KEY (id);
--
-- Name: cities_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY cities
ADD CONSTRAINT cities_pkey PRIMARY KEY (id);
--
-- Name: comments_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY comments
ADD CONSTRAINT comments_pkey PRIMARY KEY (id);
--
-- Name: contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY contacts
ADD CONSTRAINT contacts_pkey PRIMARY KEY (id);
--
-- Name: countries_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY countries
ADD CONSTRAINT countries_pkey PRIMARY KEY (id);
--
-- Name: emails_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY emails
ADD CONSTRAINT emails_pkey PRIMARY KEY (id);
--
-- Name: entries_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY entries
ADD CONSTRAINT entries_pkey PRIMARY KEY (id);
--
-- Name: exports_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY exports
ADD CONSTRAINT exports_pkey PRIMARY KEY (id);
--
-- Name: facts_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY facts
ADD CONSTRAINT facts_pkey PRIMARY KEY (answer_id);
--
-- Name: favorites_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY favorites
ADD CONSTRAINT favorites_pkey PRIMARY KEY (id);
--
-- Name: favouriteships_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY favouriteships
ADD CONSTRAINT favouriteships_pkey PRIMARY KEY (id);
--
-- Name: feedbacks_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY feedbacks
ADD CONSTRAINT feedbacks_pkey PRIMARY KEY (id);
--
-- Name: friendship_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY friendship_requests
ADD CONSTRAINT friendship_requests_pkey PRIMARY KEY (id);
--
-- Name: friendships_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY friendships
ADD CONSTRAINT friendships_pkey PRIMARY KEY (id);
--
-- Name: gas_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY gas
ADD CONSTRAINT gas_pkey PRIMARY KEY (id);
--
-- Name: impressions_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY impressions
ADD CONSTRAINT impressions_pkey PRIMARY KEY (id);
--
-- Name: intentions_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY intentions
ADD CONSTRAINT intentions_pkey PRIMARY KEY (id);
--
-- Name: letters_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY letters
ADD CONSTRAINT letters_pkey PRIMARY KEY (id);
--
-- Name: locations_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY locations
ADD CONSTRAINT locations_pkey PRIMARY KEY (id);
--
-- Name: logs_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY logs
ADD CONSTRAINT logs_pkey PRIMARY KEY (id);
--
-- Name: mailings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY mailings
ADD CONSTRAINT mailings_pkey PRIMARY KEY (id);
--
-- Name: messages_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY messages
ADD CONSTRAINT messages_pkey PRIMARY KEY (id);
--
-- Name: new_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY new_categories
ADD CONSTRAINT new_categories_pkey PRIMARY KEY (id);
--
-- Name: newsletters_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY newsletters
ADD CONSTRAINT newsletters_pkey PRIMARY KEY (id);
--
-- Name: notification_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY notification_settings
ADD CONSTRAINT notification_settings_pkey PRIMARY KEY (id);
--
-- Name: payments_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY payments
ADD CONSTRAINT payments_pkey PRIMARY KEY (id);
--
-- Name: posts_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY posts
ADD CONSTRAINT posts_pkey PRIMARY KEY (id);
--
-- Name: questions_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY questions
ADD CONSTRAINT questions_pkey PRIMARY KEY (id);
--
-- Name: rates_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY rates
ADD CONSTRAINT rates_pkey PRIMARY KEY (id);
--
-- Name: ratings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY ratings
ADD CONSTRAINT ratings_pkey PRIMARY KEY (id);
--
-- Name: regions_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY regions
ADD CONSTRAINT regions_pkey PRIMARY KEY (id);
--
-- Name: reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY reviews
ADD CONSTRAINT reviews_pkey PRIMARY KEY (id);
--
-- Name: search_queries_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY search_queries
ADD CONSTRAINT search_queries_pkey PRIMARY KEY (id);
--
-- Name: searched_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY searched_contacts
ADD CONSTRAINT searched_contacts_pkey PRIMARY KEY (id);
--
-- Name: sent_notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY sent_notifications
ADD CONSTRAINT sent_notifications_pkey PRIMARY KEY (id);
--
-- Name: settings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY settings
ADD CONSTRAINT settings_pkey PRIMARY KEY (id);
--
-- Name: similarities_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY similarities
ADD CONSTRAINT similarities_pkey PRIMARY KEY (id);
--
-- Name: simple_pictures_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY simple_pictures
ADD CONSTRAINT simple_pictures_pkey PRIMARY KEY (id);
--
-- Name: slugs_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY slugs
ADD CONSTRAINT slugs_pkey PRIMARY KEY (id);
--
-- Name: social_links_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY social_links
ADD CONSTRAINT social_links_pkey PRIMARY KEY (id);
--
-- Name: subscribers_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY subscribers
ADD CONSTRAINT subscribers_pkey PRIMARY KEY (id);
--
-- Name: subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY subscriptions
ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id);
--
-- Name: temp_business_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY temp_business_categories
ADD CONSTRAINT temp_business_categories_pkey PRIMARY KEY (id);
--
-- Name: user_activities_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_activities
ADD CONSTRAINT user_activities_pkey PRIMARY KEY (id);
--
-- Name: user_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_alerts
ADD CONSTRAINT user_alerts_pkey PRIMARY KEY (id);
--
-- Name: user_compliments_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_compliments
ADD CONSTRAINT user_compliments_pkey PRIMARY KEY (id);
--
-- Name: user_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_messages
ADD CONSTRAINT user_messages_pkey PRIMARY KEY (id);
--
-- Name: user_notification_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_notification_settings
ADD CONSTRAINT user_notification_settings_pkey PRIMARY KEY (user_id);
--
-- Name: user_ratings_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_ratings
ADD CONSTRAINT user_ratings_pkey PRIMARY KEY (id);
--
-- Name: user_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY user_statistics
ADD CONSTRAINT user_statistics_pkey PRIMARY KEY (user_id);
--
-- Name: users_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: visits_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY visits
ADD CONSTRAINT visits_pkey PRIMARY KEY (id);
--
-- Name: votes_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY thanks
ADD CONSTRAINT votes_pkey PRIMARY KEY (id);
--
-- Name: working_days_pkey; Type: CONSTRAINT; Schema: public; Owner: tulp; Tablespace:
--
ALTER TABLE ONLY working_days
ADD CONSTRAINT working_days_pkey PRIMARY KEY (id);
--
-- Name: answers_answerable_id_idx; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX answers_answerable_id_idx ON answers USING btree (answerable_id);
--
-- Name: controlleraction_ip_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX controlleraction_ip_index ON impressions USING btree (controller_name, action_name, ip_address);
--
-- Name: controlleraction_request_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX controlleraction_request_index ON impressions USING btree (controller_name, action_name, request_hash);
--
-- Name: controlleraction_session_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX controlleraction_session_index ON impressions USING btree (controller_name, action_name, session_hash);
--
-- Name: index_assets_on_attachable_id_and_attachable_type; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_assets_on_attachable_id_and_attachable_type ON assets USING btree (attachable_id, attachable_type);
--
-- Name: index_assets_on_review_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_assets_on_review_id ON assets USING btree (review_id) WHERE (review_id IS NOT NULL);
--
-- Name: index_attachings_on_asset_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_attachings_on_asset_id ON attachings USING btree (asset_id);
--
-- Name: index_attachings_on_attachable_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_attachings_on_attachable_id ON attachings USING btree (attachable_id);
--
-- Name: index_battle_requests_on_receiver_uid; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_battle_requests_on_receiver_uid ON battle_requests USING btree (receiver_uid);
--
-- Name: index_battle_requests_on_requester_uid; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_battle_requests_on_requester_uid ON battle_requests USING btree (requester_uid);
--
-- Name: index_battle_users_on_uid; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_battle_users_on_uid ON battle_users USING btree (uid);
--
-- Name: index_battle_votes_on_battle_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_battle_votes_on_battle_id ON battle_votes USING btree (battle_id);
--
-- Name: index_battle_votes_on_user_uid; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_battle_votes_on_user_uid ON battle_votes USING btree (user_uid);
--
-- Name: index_business_ratings_on_business_id_and_rating_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_business_ratings_on_business_id_and_rating_id ON business_ratings USING btree (business_id, rating_id);
--
-- Name: index_businesses_on_city_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_businesses_on_city_id ON businesses USING btree (city_id);
--
-- Name: index_categories_on_parent_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_categories_on_parent_id ON categories USING btree (parent_id);
--
-- Name: index_categories_ratings_on_category_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_categories_ratings_on_category_id ON categories_ratings USING btree (category_id);
--
-- Name: index_category_assignments_on_business_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_category_assignments_on_business_id ON category_assignments USING btree (business_id);
--
-- Name: index_category_assignments_on_category_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_category_assignments_on_category_id ON category_assignments USING btree (category_id);
--
-- Name: index_cities_coupons_on_city_id_and_coupon_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_cities_coupons_on_city_id_and_coupon_id ON cities_coupons USING btree (city_id, coupon_id);
--
-- Name: index_cities_users_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_cities_users_on_user_id ON cities_users USING btree (user_id);
--
-- Name: index_contacts_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_contacts_on_user_id ON contacts USING btree (user_id);
--
-- Name: index_exports_on_business_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_exports_on_business_id ON exports USING btree (business_id);
--
-- Name: index_facts_on_business_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_facts_on_business_id ON facts USING btree (business_id);
--
-- Name: index_friendship_requests_on_sender_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_friendship_requests_on_sender_id ON friendship_requests USING btree (sender_id);
--
-- Name: index_friendships_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_friendships_on_user_id ON friendships USING btree (user_id);
--
-- Name: index_impressions_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_impressions_on_user_id ON impressions USING btree (user_id);
--
-- Name: index_intentions_on_business_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_intentions_on_business_id ON intentions USING btree (business_id);
--
-- Name: index_intentions_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_intentions_on_user_id ON intentions USING btree (user_id);
--
-- Name: index_reviews_on_business_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_reviews_on_business_id ON reviews USING btree (business_id);
--
-- Name: index_reviews_on_city_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_reviews_on_city_id ON reviews USING btree (city_id);
--
-- Name: index_reviews_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_reviews_on_user_id ON reviews USING btree (user_id);
--
-- Name: index_search_queries_on_query_and_where; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_search_queries_on_query_and_where ON search_queries USING btree (query, "where");
--
-- Name: index_settings_on_key; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_settings_on_key ON settings USING btree (key);
--
-- Name: index_similarities_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_similarities_on_user_id ON similarities USING btree (user_id);
--
-- Name: index_slugs_on_n_s_s_and_s; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_slugs_on_n_s_s_and_s ON slugs USING btree (name, sluggable_type, sequence, scope);
--
-- Name: index_slugs_on_sluggable_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_slugs_on_sluggable_id ON slugs USING btree (sluggable_id);
--
-- Name: index_social_links_on_user_id_and_uid_and_provider; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_social_links_on_user_id_and_uid_and_provider ON social_links USING btree (user_id, uid, provider);
--
-- Name: index_subscribers_on_confirmation_token; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_subscribers_on_confirmation_token ON subscribers USING btree (confirmation_token);
--
-- Name: index_subscribers_on_email; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_subscribers_on_email ON subscribers USING btree (email);
--
-- Name: index_subscriptions_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_subscriptions_on_user_id ON subscriptions USING btree (user_id);
--
-- Name: index_user_activities_on_created_at; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_activities_on_created_at ON user_activities USING btree (created_at);
--
-- Name: index_user_activities_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_activities_on_user_id ON user_activities USING btree (user_id);
--
-- Name: index_user_alerts_on_item_owner_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_alerts_on_item_owner_id ON user_alerts USING btree (item_owner_id);
--
-- Name: index_user_compliments_on_complimentable; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_compliments_on_complimentable ON user_compliments USING btree (complimentable_id, complimentable_type);
--
-- Name: index_user_compliments_on_creator_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_compliments_on_creator_id ON user_compliments USING btree (creator_id);
--
-- Name: index_user_compliments_on_user_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_compliments_on_user_id ON user_compliments USING btree (user_id);
--
-- Name: index_user_ratings_on_user_id_and_rating_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_user_ratings_on_user_id_and_rating_id ON user_ratings USING btree (user_id, rating_id);
--
-- Name: index_users_on_city_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_users_on_city_id ON users USING btree (city_id);
--
-- Name: index_users_on_confirmation_token; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_users_on_confirmation_token ON users USING btree (confirmation_token);
--
-- Name: index_users_on_login; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_users_on_login ON users USING btree (login);
--
-- Name: index_users_on_reset_login_token; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_users_on_reset_login_token ON users USING btree (reset_login_token);
--
-- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX index_users_on_reset_password_token ON users USING btree (reset_password_token);
--
-- Name: index_votes_on_review_id; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX index_votes_on_review_id ON thanks USING btree (review_id);
--
-- Name: poly_ip_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX poly_ip_index ON impressions USING btree (impressionable_type, impressionable_id, ip_address);
--
-- Name: poly_request_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX poly_request_index ON impressions USING btree (impressionable_type, impressionable_id, request_hash);
--
-- Name: poly_session_index; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX poly_session_index ON impressions USING btree (impressionable_type, impressionable_id, session_hash);
--
-- Name: rates_review_id_idx; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE INDEX rates_review_id_idx ON rates USING btree (review_id);
--
-- Name: review_visits_review_id_idx; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX review_visits_review_id_idx ON review_visits USING btree (review_id);
--
-- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: tulp; Tablespace:
--
CREATE UNIQUE INDEX unique_schema_migrations ON schema_migrations USING btree (version);
--
-- Name: update_business_ratings; Type: TRIGGER; Schema: public; Owner: tulp
--
CREATE TRIGGER update_business_ratings AFTER INSERT OR DELETE ON category_assignments FOR EACH ROW EXECUTE PROCEDURE update_business_ratings();
--
-- 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>EternallyNocturnal/enwebstore_beta1
-- phpMyAdmin SQL Dump
-- version 4.0.9
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 04, 2015 at 09:44 PM
-- Server version: 5.6.14
-- PHP Version: 5.5.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 utf8 */;
--
-- Database: `enwebstore_beta1`
--
-- --------------------------------------------------------
--
-- Table structure for table `apis`
--
CREATE TABLE IF NOT EXISTS `apis` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `bands`
--
CREATE TABLE IF NOT EXISTS `bands` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `carts`
--
CREATE TABLE IF NOT EXISTS `carts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `contacts`
--
CREATE TABLE IF NOT EXISTS `contacts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `ensyslogs`
--
CREATE TABLE IF NOT EXISTS `ensyslogs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `images`
--
CREATE TABLE IF NOT EXISTS `images` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`location` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`thumblocation` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=29 ;
--
-- Dumping data for table `images`
--
INSERT INTO `images` (`id`, `product_id`, `name`, `location`, `thumblocation`, `created_at`, `updated_at`) VALUES
(1, 3, '3_rd8l9.jpg', '3_rd8l9.jpg', '', '2015-02-16 08:30:56', '2015-02-16 08:30:56'),
(2, 1, '1_jo5lo.jpg', '1_jo5lo.jpg', '', '2015-02-16 09:01:17', '2015-02-16 09:01:17'),
(3, 1, '1_3179s.jpg', '1_3179s.jpg', '', '2015-02-16 09:01:50', '2015-02-16 09:01:50'),
(4, 2, '2_aXhQt.jpg', '2_aXhQt.jpg', '', '2015-02-16 09:03:45', '2015-02-16 09:03:45'),
(5, 2, '2_j7gG3.jpg', '2_j7gG3.jpg', '', '2015-02-16 09:04:25', '2015-02-16 09:04:25'),
(6, 2, '2_bqbiJ.jpg', '2_bqbiJ.jpg', '', '2015-02-16 09:05:19', '2015-02-16 09:05:19'),
(7, 2, '2_B1AAt.jpg', '2_B1AAt.jpg', '', '2015-02-16 09:08:49', '2015-02-16 09:08:49'),
(8, 3, '3_0gErj.JPG', '3_0gErj.JPG', '', '2015-02-16 09:10:24', '2015-02-16 09:10:24'),
(9, 3, '3_FiWIj.jpg', '3_FiWIj.jpg', '', '2015-02-16 09:11:18', '2015-02-16 09:11:18'),
(10, 3, '3_gmmaX.jpg', '3_gmmaX.jpg', '', '2015-02-16 09:12:00', '2015-02-16 09:12:00'),
(11, 4, '4_chxM5.jpg', '4_chxM5.jpg', '', '2015-02-16 09:14:22', '2015-02-16 09:14:22'),
(12, 4, '4_W7E9M.jpg', '4_W7E9M.jpg', '', '2015-02-16 09:14:44', '2015-02-16 09:14:44'),
(13, 5, '5_n2N4W.jpg', '5_n2N4W.jpg', '', '2015-02-16 09:17:31', '2015-02-16 09:17:31'),
(14, 5, '5_lKAAR.jpg', '5_lKAAR.jpg', '', '2015-02-16 09:17:58', '2015-02-16 09:17:58'),
(15, 6, '6_roN45.jpg', '6_roN45.jpg', '', '2015-02-16 09:19:36', '2015-02-16 09:19:36'),
(16, 6, '6_jHrYp.jpg', '6_jHrYp.jpg', '', '2015-02-16 09:20:29', '2015-02-16 09:20:29'),
(17, 7, '7_WN5jf.jpg', '7_WN5jf.jpg', '', '2015-02-16 09:21:26', '2015-02-16 09:21:26'),
(18, 7, '7_5Ka3u.jpg', '7_5Ka3u.jpg', '', '2015-02-16 09:21:42', '2015-02-16 09:21:42'),
(19, 7, '7_7754c.jpg', '7_7754c.jpg', '', '2015-02-16 09:22:11', '2015-02-16 09:22:11'),
(20, 7, '7_lUQ2t.jpg', '7_lUQ2t.jpg', '', '2015-02-16 09:22:40', '2015-02-16 09:22:40'),
(21, 7, '7_qIP4E.jpg', '7_qIP4E.jpg', '', '2015-02-16 09:23:35', '2015-02-16 09:23:35'),
(22, 8, '8_BGKSK.jpg', '8_BGKSK.jpg', '', '2015-02-16 09:24:47', '2015-02-16 09:24:47'),
(23, 8, '8_aIzkt.jpg', '8_aIzkt.jpg', '', '2015-02-16 09:25:43', '2015-02-16 09:25:43'),
(24, 8, '8_1F90u.jpg', '8_1F90u.jpg', '', '2015-02-16 09:26:07', '2015-02-16 09:26:07'),
(25, 11, '11_IMXAE.jpg', '11_IMXAE.jpg', '', '2015-02-16 09:26:54', '2015-02-16 09:26:54'),
(26, 13, '13_4Q1HX.jpg', '13_4Q1HX.jpg', '', '2015-02-16 09:30:18', '2015-02-16 09:30:18'),
(27, 13, '13_3njJI.jpg', '13_3njJI.jpg', '', '2015-02-16 09:30:43', '2015-02-16 09:30:43'),
(28, 13, '13_s62TB.jpg', '13_s62TB.jpg', '', '2015-02-16 09:31:34', '2015-02-16 09:31:34');
-- --------------------------------------------------------
--
-- Table structure for table `inventories`
--
CREATE TABLE IF NOT EXISTS `inventories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) DEFAULT NULL,
`xsmall` int(11) DEFAULT NULL,
`small` int(11) DEFAULT NULL,
`medium` int(11) DEFAULT NULL,
`large` int(11) DEFAULT NULL,
`xlarge` int(11) DEFAULT NULL,
`xxlarge` int(11) DEFAULT NULL,
`xxxlarge` int(11) DEFAULT NULL,
`onesize` int(11) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ;
--
-- Dumping data for table `inventories`
--
INSERT INTO `inventories` (`id`, `product_id`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `xxxlarge`, `onesize`, `created_at`, `updated_at`) VALUES
(1, 1, 123, 0, 0, 0, 0, 0, 0, 12, '0000-00-00 00:00:00', '2015-04-04 22:10:12'),
(2, 2, 0, 0, 0, 0, 0, 0, 0, 23, '0000-00-00 00:00:00', '2015-04-04 22:11:39'),
(3, 3, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 4, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 5, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 6, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 7, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(8, 8, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 9, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(10, 10, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(11, 11, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 12, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(13, 13, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(14, 14, 0, 0, 0, 0, 0, 0, 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`migration`, `batch`) VALUES
('2015_03_29_155453_create_products_table', 1),
('2015_03_29_155522_create_inventories_table', 1),
('2015_03_29_155820_create_images_table', 1),
('2015_03_29_160026_create_bands_table', 1),
('2015_03_29_160121_create_shows_table', 1),
('2015_03_29_160418_create_sales_table', 1),
('2015_03_29_160445_create_carts_table', 1),
('2015_03_29_160543_create_apis_table', 1),
('2015_03_29_161150_create_ensyslogs_table', 1),
('2015_03_29_161234_create_revenues_table', 1),
('2015_03_29_182632_create_sizes_table', 1),
('2015_03_29_182759_create_product_categ', 1),
('2015_04_02_000242_create_urls_table', 1),
('2015_04_02_000727_create_users', 1),
('2015_04_04_142656_create_contacts_table', 1),
('2015_04_04_184147_create_productsadmins_table', 1),
('2015_03_29_155453_create_products_table', 1),
('2015_03_29_155522_create_inventories_table', 1),
('2015_03_29_155820_create_images_table', 1),
('2015_03_29_160026_create_bands_table', 1),
('2015_03_29_160121_create_shows_table', 1),
('2015_03_29_160418_create_sales_table', 1),
('2015_03_29_160445_create_carts_table', 1),
('2015_03_29_160543_create_apis_table', 1),
('2015_03_29_161150_create_ensyslogs_table', 1),
('2015_03_29_161234_create_revenues_table', 1),
('2015_03_29_182632_create_sizes_table', 1),
('2015_03_29_182759_create_product_categ', 1),
('2015_04_02_000242_create_urls_table', 1),
('2015_04_02_000727_create_users', 1),
('2015_04_04_142656_create_contacts_table', 1),
('2015_03_29_155453_create_products_table', 1),
('2015_03_29_155522_create_inventories_table', 1),
('2015_03_29_155820_create_images_table', 1),
('2015_03_29_160026_create_bands_table', 1),
('2015_03_29_160121_create_shows_table', 1),
('2015_03_29_160418_create_sales_table', 1),
('2015_03_29_160445_create_carts_table', 1),
('2015_03_29_160543_create_apis_table', 1),
('2015_03_29_161150_create_ensyslogs_table', 1),
('2015_03_29_161234_create_revenues_table', 1),
('2015_03_29_182632_create_sizes_table', 1),
('2015_03_29_182759_create_product_categ', 1),
('2015_04_04_184147_create_productsadmins_table', 2);
-- --------------------------------------------------------
--
-- Table structure for table `producers`
--
CREATE TABLE IF NOT EXISTS `producers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`paypal` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`active` int(11) NOT NULL,
`onsale` int(11) NOT NULL,
`upcomming` int(11) NOT NULL,
`preorder` int(11) NOT NULL,
`xsmall` int(11) NOT NULL,
`small` int(11) NOT NULL,
`medium` int(11) NOT NULL,
`large` int(11) NOT NULL,
`xlarge` int(11) NOT NULL,
`xxlarge` int(11) NOT NULL,
`xxxlarge` int(11) NOT NULL,
`onesize` int(11) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ;
--
-- Dumping data for table `producers`
--
INSERT INTO `producers` (`id`, `name`, `description`, `category`, `price`, `paypal`, `active`, `onsale`, `upcomming`, `preorder`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `xxxlarge`, `onesize`, `created_at`, `updated_at`) VALUES
(1, '<NAME> 14 Tee', '', 'Tees', '12.99', 'CW2VPMRBTPLCJ', 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, '2015-02-16 07:07:40', '2015-02-16 07:07:40'),
(2, 'Dapper Bat Zip Up', '', 'Hoodies', '29.99', 'TT65B8LYJP38S', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, '2015-02-16 07:16:37', '2015-02-16 07:16:37'),
(3, 'Never Sleep Hockey Mask', '', '¾ Tees', '24.99', '6WATDDRKGNFK4', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, '2015-02-16 07:19:32', '2015-02-16 07:19:32'),
(4, 'Aspire to Inspire Dapper Bat Tank', '', 'Tanks', '19.99', '9B5MS753D9TE6', 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, '2015-02-16 07:22:05', '2015-02-16 07:22:05'),
(5, 'Poe Tank', '', 'Tanks', '19.99', '9MQJMLBGPXYZS', 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, '2015-02-16 07:25:11', '2015-02-16 07:25:11'),
(6, 'Stay Awake to Create Baseball Tee', '', 'Tees', '19.99', 'RSKAYBF68JQKJ', 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, '2015-02-16 07:27:20', '2015-02-16 07:27:20'),
(7, 'Zombie Invasion Tee', '', 'Tees', '19.99 - $21.99', 'TVZWRJYKLXL46', 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, '2015-02-16 07:29:19', '2015-02-16 07:29:19'),
(8, 'Eternally Detroit Hoodie', '', 'Hoodies', '34.99 - $37.99', 'HAKJUSQFNHBXS', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, '2015-02-16 07:30:49', '2015-02-16 07:30:49'),
(9, 'Side Logo (Mens)', '', 'Tees', '17.99', 'DTA8K6BVW8WNY', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, '2015-02-16 07:32:03', '2015-02-16 07:32:03'),
(10, 'Side Logo (Womens)', '', 'Tees', '17.99', 'SHCDEPJJWRGMA', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, '2015-02-16 07:33:33', '2015-02-16 07:33:33'),
(11, 'Eternally Nocturnal Slouch Beanie', '', 'Accessories', '15.99', 'BN2QHMU92VZ4C', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, '2015-02-16 07:38:09', '2015-02-16 07:38:09'),
(12, 'Embroidered Logo Beanie - Red', '', 'Accessories', '15.99', '8DZVC5QLKKXZ4', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, '2015-02-16 07:42:49', '2015-02-16 07:42:49'),
(13, 'Embroidered Logo Beanie - White', '', 'Accessories', '15.99', '5EMBAPASHMSR2', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, '2015-02-16 07:45:47', '2015-02-16 07:45:47'),
(14, 'Eternally Nocturnal Panties', '', 'Accessories', '11.99', '96GF35M3SYD94', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, '2015-02-16 07:47:27', '2015-02-16 07:47:27');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE IF NOT EXISTS `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`price` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`paypal` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`active` int(11) DEFAULT NULL,
`onsale` int(11) DEFAULT NULL,
`upcomming` int(11) DEFAULT NULL,
`preorder` int(11) DEFAULT NULL,
`xsmall` int(11) DEFAULT NULL,
`small` int(11) DEFAULT NULL,
`medium` int(11) DEFAULT NULL,
`large` int(11) DEFAULT NULL,
`xlarge` int(11) DEFAULT NULL,
`xxlarge` int(11) DEFAULT NULL,
`xxxlarge` int(11) DEFAULT NULL,
`onesize` int(11) DEFAULT NULL,
`main_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `description`, `category`, `price`, `paypal`, `active`, `onsale`, `upcomming`, `preorder`, `xsmall`, `small`, `medium`, `large`, `xlarge`, `xxlarge`, `xxxlarge`, `onesize`, `main_image`, `created_at`, `updated_at`) VALUES
(1, 'Putnams Halloween 14 Tee', '', 'Tees', '12.99', 'CW2VPMRBTPLCJ', 1, 1, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 'Putnams Halloween 14 Tee.jpg', '2015-02-16 07:07:40', '2015-04-04 22:01:03'),
(2, 'Dapper Bat Zip Up', '', 'Hoodies', '29.99', 'TT65B8LYJP38S', 0, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 'Dapper Bat Zip Up.jpg', '2015-02-16 07:16:37', '2015-04-04 22:00:53'),
(3, 'Never Sleep Hockey Mask', '', '¾ Tees', '24.99', '6WATDDRKGNFK4', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 'Never Sleep Hockey Mask.jpg', '2015-02-16 07:19:32', '2015-02-16 07:19:32'),
(4, 'Aspire to Inspire Dapper Bat Tank', '', 'Tanks', '19.99', '9B5MS753D9TE6', 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 'Aspire to Inspire Dapper Bat Tank.jpg', '2015-02-16 07:22:05', '2015-02-16 07:22:05'),
(5, 'Poe Tank', '', 'Tanks', '19.99', '9MQJMLBGPXYZS', 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 'Poe Tank.jpg', '2015-02-16 07:25:11', '2015-02-16 07:25:11'),
(6, 'Stay Awake to Create Baseball Tee', '', 'Tees', '19.99', 'RSKAYBF68JQKJ', 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 'Stay Awake to Create Baseball Tee.jpg', '2015-02-16 07:27:20', '2015-02-16 07:27:20'),
(7, 'Zombie Invasion Tee', '', 'Tees', '19.99 - $21.99', 'TVZWRJYKLXL46', 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 'Zombie Invasion Tee.jpg', '2015-02-16 07:29:19', '2015-02-16 07:29:19'),
(8, 'Eternally Detroit Hoodie', '', 'Hoodies', '34.99 - $37.99', 'HAKJUSQFNHBXS', 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 'Eternally Detroit Hoodie.jpg', '2015-02-16 07:30:49', '2015-02-16 07:30:49'),
(9, 'Side Logo (Mens)', '', 'Tees', '17.99', 'DTA8K6BVW8WNY', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 'Side Logo (Mens).jpg', '2015-02-16 07:32:03', '2015-02-16 07:32:03'),
(10, 'Side Logo (Womens)', '', 'Tees', '17.99', 'SHCDEPJJWRGMA', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 'Side Logo (Womens).jpg', '2015-02-16 07:33:33', '2015-02-16 07:33:33'),
(11, 'Eternally Nocturnal Slouch Beanie', '', 'Accessories', '15.99', 'BN2QHMU92VZ4C', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Eternally Nocturnal Slouch Beanie.jpg', '2015-02-16 07:38:09', '2015-02-16 07:38:09'),
(12, 'Embroidered Logo Beanie - Red', '', 'Accessories', '15.99', '8DZVC5QLKKXZ4', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Embroidered Logo Beanie - Red.jpg', '2015-02-16 07:42:49', '2015-02-16 07:42:49'),
(13, 'Embroidered Logo Beanie - White', '', 'Accessories', '15.99', '5EMBAPASHMSR2', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 'Embroidered Logo Beanie - White.jpg', '2015-02-16 07:45:47', '2015-02-16 07:45:47'),
(14, 'Eternally Nocturnal Panties', '', 'Accessories', '11.99', '96GF35M3SYD94', 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 'Eternally Nocturnal Panties.jpg', '2015-02-16 07:47:27', '2015-02-16 07:47:27');
-- --------------------------------------------------------
--
-- Table structure for table `productsadmins`
--
CREATE TABLE IF NOT EXISTS `productsadmins` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `product_categ`
--
CREATE TABLE IF NOT EXISTS `product_categ` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ;
--
-- Dumping data for table `product_categ`
--
INSERT INTO `product_categ` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Tanks', '2015-02-16 07:00:53', '2015-02-16 07:00:53'),
(2, 'Tees', '2015-02-16 07:00:59', '2015-02-16 07:00:59'),
(3, 'Accessories', '2015-02-16 07:01:08', '2015-02-16 07:01:08'),
(4, '¾ Tees', '2015-02-16 07:01:16', '2015-02-16 07:01:16'),
(5, 'Hoodies', '2015-02-16 07:01:21', '2015-02-16 07:01:21');
-- --------------------------------------------------------
--
-- Table structure for table `revenues`
--
CREATE TABLE IF NOT EXISTS `revenues` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE IF NOT EXISTS `sales` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `shows`
--
CREATE TABLE IF NOT EXISTS `shows` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `sizes`
--
CREATE TABLE IF NOT EXISTS `sizes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`size` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ;
--
-- Dumping data for table `sizes`
--
INSERT INTO `sizes` (`id`, `size`, `created_at`, `updated_at`) VALUES
(1, 'xsmall', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'small', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(3, 'medium', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 'large', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(5, 'xlarge', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(6, 'xxlarge', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(7, 'xxxlarge', '0000-00-00 00:00:00', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `urls`
--
CREATE TABLE IF NOT EXISTS `urls` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `users_username_unique` (`username`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `email`, `created_at`, `updated_at`) VALUES
(1, 'zdkama', <PASSWORD>', '', '0000-00-00 00:00:00', '0000-00-00 00:00:00');
/*!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>geophile/sql-layer
SELECT SUM(price * quan) FROM items WHERE oid = ?
|
REM ******************************************************************
REM Fecha : 08/05/2018
REM Realizado por : Master Zen
REM Base de Datos : FS_AUWEB_US
REM Script : Tipos
REM ******************************************************************
PROMPT AUW_TO_MO_USMO.sql...
@@AUW_TO_MO_USMO.sql
PROMPT AUW_TT_MO_USMO.sql...
@@AUW_TT_MO_USMO.sql |
-- Run with:
-- mysql -u root < sql_scripts/init.sql
CREATE DATABASE sbd2;
USE sbd2;
CREATE TABLE USER_ROW_1 (
id INT NOT NULL AUTO_INCREMENT,
username VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
sex VARCHAR(1) NOT NULL,
birthday DATE NOT NULL,
address VARCHAR(255) NOT NULL,
job VARCHAR(50) NOT NULL,
blood_group VARCHAR(3) NOT NULL,
CONSTRAINT PERSON_PK PRIMARY KEY (id)
) ENGINE=InnoDB;
CREATE TABLE USER_COLUMN_1 (
id INT NOT NULL COMMENT 'autoincrement=1',
username VARCHAR(50) NOT NULL,
password VARCHAR(255) NOT NULL,
name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
sex VARCHAR(1) NOT NULL,
birthday DATE NOT NULL,
address VARCHAR(255) NOT NULL,
job VARCHAR(50) NOT NULL,
blood_group VARCHAR(3) NOT NULL
) ENGINE=ColumnStore;
CREATE TABLE RANDOM_ROW_1 (
id INT NOT NULL AUTO_INCREMENT,
field01 VARCHAR(255) NOT NULL,
field02 VARCHAR(255) NOT NULL,
field03 VARCHAR(255) NOT NULL,
field04 VARCHAR(255) NOT NULL,
field05 VARCHAR(255) NOT NULL,
field06 VARCHAR(255) NOT NULL,
field07 VARCHAR(255) NOT NULL,
field08 VARCHAR(255) NOT NULL,
field09 VARCHAR(255) NOT NULL,
field10 VARCHAR(255) NOT NULL,
field11 VARCHAR(255) NOT NULL,
field12 VARCHAR(255) NOT NULL,
field13 VARCHAR(255) NOT NULL,
field14 VARCHAR(255) NOT NULL,
field15 VARCHAR(255) NOT NULL,
field16 VARCHAR(255) NOT NULL,
field17 VARCHAR(255) NOT NULL,
field18 VARCHAR(255) NOT NULL,
field19 VARCHAR(255) NOT NULL,
field20 VARCHAR(255) NOT NULL,
field21 VARCHAR(255) NOT NULL,
field22 VARCHAR(255) NOT NULL,
field23 VARCHAR(255) NOT NULL,
field24 VARCHAR(255) NOT NULL,
field25 VARCHAR(255) NOT NULL,
field26 VARCHAR(255) NOT NULL,
field27 VARCHAR(255) NOT NULL,
field28 VARCHAR(255) NOT NULL,
field29 VARCHAR(255) NOT NULL,
field30 VARCHAR(255) NOT NULL,
field31 VARCHAR(255) NOT NULL,
field32 VARCHAR(255) NOT NULL,
field33 VARCHAR(255) NOT NULL,
field34 VARCHAR(255) NOT NULL,
field35 VARCHAR(255) NOT NULL,
field36 VARCHAR(255) NOT NULL,
field37 VARCHAR(255) NOT NULL,
field38 VARCHAR(255) NOT NULL,
field39 VARCHAR(255) NOT NULL,
field40 VARCHAR(255) NOT NULL,
field41 VARCHAR(255) NOT NULL,
field42 VARCHAR(255) NOT NULL,
field43 VARCHAR(255) NOT NULL,
field44 VARCHAR(255) NOT NULL,
field45 VARCHAR(255) NOT NULL,
field46 VARCHAR(255) NOT NULL,
field47 VARCHAR(255) NOT NULL,
field48 VARCHAR(255) NOT NULL,
field49 VARCHAR(255) NOT NULL,
field50 VARCHAR(255) NOT NULL,
CONSTRAINT RANDOM_PK PRIMARY KEY (id)
) ENGINE=InnoDB;
CREATE TABLE RANDOM_COLUMN_1 (
id INT NOT NULL COMMENT 'autoincrement=1',
field01 VARCHAR(255) NOT NULL,
field02 VARCHAR(255) NOT NULL,
field03 VARCHAR(255) NOT NULL,
field04 VARCHAR(255) NOT NULL,
field05 VARCHAR(255) NOT NULL,
field06 VARCHAR(255) NOT NULL,
field07 VARCHAR(255) NOT NULL,
field08 VARCHAR(255) NOT NULL,
field09 VARCHAR(255) NOT NULL,
field10 VARCHAR(255) NOT NULL,
field11 VARCHAR(255) NOT NULL,
field12 VARCHAR(255) NOT NULL,
field13 VARCHAR(255) NOT NULL,
field14 VARCHAR(255) NOT NULL,
field15 VARCHAR(255) NOT NULL,
field16 VARCHAR(255) NOT NULL,
field17 VARCHAR(255) NOT NULL,
field18 VARCHAR(255) NOT NULL,
field19 VARCHAR(255) NOT NULL,
field20 VARCHAR(255) NOT NULL,
field21 VARCHAR(255) NOT NULL,
field22 VARCHAR(255) NOT NULL,
field23 VARCHAR(255) NOT NULL,
field24 VARCHAR(255) NOT NULL,
field25 VARCHAR(255) NOT NULL,
field26 VARCHAR(255) NOT NULL,
field27 VARCHAR(255) NOT NULL,
field28 VARCHAR(255) NOT NULL,
field29 VARCHAR(255) NOT NULL,
field30 VARCHAR(255) NOT NULL,
field31 VARCHAR(255) NOT NULL,
field32 VARCHAR(255) NOT NULL,
field33 VARCHAR(255) NOT NULL,
field34 VARCHAR(255) NOT NULL,
field35 VARCHAR(255) NOT NULL,
field36 VARCHAR(255) NOT NULL,
field37 VARCHAR(255) NOT NULL,
field38 VARCHAR(255) NOT NULL,
field39 VARCHAR(255) NOT NULL,
field40 VARCHAR(255) NOT NULL,
field41 VARCHAR(255) NOT NULL,
field42 VARCHAR(255) NOT NULL,
field43 VARCHAR(255) NOT NULL,
field44 VARCHAR(255) NOT NULL,
field45 VARCHAR(255) NOT NULL,
field46 VARCHAR(255) NOT NULL,
field47 VARCHAR(255) NOT NULL,
field48 VARCHAR(255) NOT NULL,
field49 VARCHAR(255) NOT NULL,
field50 VARCHAR(255) NOT NULL
) ENGINE=ColumnStore;
|
<filename>asr.sql
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 21, 2020 at 02:04 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `asr`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(10) NOT NULL,
`fname` varchar(50) NOT NULL,
`mname` varchar(50) NOT NULL,
`lname` varchar(100) NOT NULL,
`contact` int(11) NOT NULL,
`email` varchar(100) NOT NULL,
`usertype` varchar(200) NOT NULL,
`status` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `purchase`
--
CREATE TABLE `purchase` (
`invoice` int(100) NOT NULL,
`dop` date NOT NULL,
`dor` date NOT NULL,
`qty` int(100) NOT NULL,
`dis` bigint(99) NOT NULL,
`unit_price` int(100) NOT NULL,
`lot` int(100) NOT NULL,
`total_amount` float NOT NULL,
`hns` text NOT NULL,
`igst` bigint(100) NOT NULL,
`cgst` bigint(100) NOT NULL,
`sgst` bigint(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `purchase`
--
INSERT INTO `purchase` (`invoice`, `dop`, `dor`, `qty`, `dis`, `unit_price`, `lot`, `total_amount`, `hns`, `igst`, `cgst`, `sgst`) VALUES
(6, '2020-10-19', '2020-10-19', 2, 0, 100, 12, 196, 'SDAC', 21, 1212121212, 121212121112),
(7, '2020-10-19', '2020-10-19', 133, 0, 41, 3, 5289.41, '23', 12, 21, 121212121112),
(8, '2020-10-19', '2020-10-19', 133, 3, 41, 3, 5289.41, '23', 12, 21, 121212121112),
(9, '2020-10-19', '2020-10-19', 55, 2, 36, 2, 1940.4, '212', 321, 321, 321),
(10, '2020-10-19', '2020-10-19', 0, 0, 0, 2, 2, '2', 2, 21, 3);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(70) NOT NULL,
`user_name` varchar(120) NOT NULL,
`fname` varchar(70) NOT NULL,
`mname` varchar(90) NOT NULL,
`lname` varchar(20) NOT NULL,
`contact` int(11) NOT NULL,
`email` varchar(53) NOT NULL,
`password` varchar(123) NOT NULL,
`status` varchar(115) NOT NULL,
`type` varchar(120) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `user_name`, `fname`, `mname`, `lname`, `contact`, `email`, `password`, `status`, `type`) VALUES
(87, 'nayan01', 'nayan', '', 'das', 1234, '<EMAIL>', '<PASSWORD>', 'Y', 'accountant'),
(94, 'nayan01', 'sd', '', 'sd', 0, '', '7815696ecbf1c96e6894b779456d330e', '', 'One'),
(95, 'sda', 'sad', '', 'asd', 0, '', 'f970e2767d0cfe75876ea857f92e319b', 'N', 'accountant'),
(96, 'nayan01', 'nayan', '', 'das', 75567576, '<EMAIL>', '<PASSWORD>', 'N', 'accountant'),
(98, 'Admin01', 'Admin', '', 'Admin', 1234, '<EMAIL>', '<PASSWORD>', 'Y', 'admin');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `purchase`
--
ALTER TABLE `purchase`
ADD PRIMARY KEY (`invoice`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `purchase`
--
ALTER TABLE `purchase`
MODIFY `invoice` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(70) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=99;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 07, 2022 at 10:47 PM
-- Server version: 10.4.19-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: `hsgc`
--
-- --------------------------------------------------------
--
-- Table structure for table `about_company`
--
CREATE TABLE `about_company` (
`id` bigint(20) UNSIGNED NOT NULL,
`about_company_summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`left_first_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`left_second_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`our_vision_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`our_vision_summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`behind_hsgc_summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`work_with_us_summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `about_company`
--
INSERT INTO `about_company` (`id`, `about_company_summary`, `left_first_image`, `left_second_image`, `our_vision_image`, `our_vision_summary`, `behind_hsgc_summary`, `work_with_us_summary`, `status`, `user_id`, `created_at`, `updated_at`) VALUES
(43, '{\"en\":\"Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using \'Content here, content here\', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for \'lorem ipsum\' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).\",\"ar\":\"كياسي أرشيتيكتو بيتاي فيتاي ديكاتا سيونت أكسبليكابو. نيمو أنيم أبسام فوليوباتاتيم كيواي فوليوبتاس سايت أسبيرناتشر أيوت أودايت أيوت فيوجايت, سيد كيواي كونسيكيونتشر ماجناي دولارس أيوس كيواي راتاشن فوليوبتاتيم سيكيواي نيسكايونت. نيكيو بوررو كيوايسكيوم ايست,كيواي دولوريم ايبسيوم كيوا دولار سايت أميت, كونسيكتيتيور,أديبايسكاي فيلايت, سيد كيواي نون نيومكيوام ايايوس موداي تيمبورا انكايديونت يوت لابوري أيت دولار ماجنام ألايكيوام كيوايرات فوليوبتاتيم. يوت اينايم أد مينيما فينيام, كيواس نوستريوم أكسيركايتاشيم\"}', '16466811761.jpg', '16466812192.jpg', '16466166643.jpg', '{\"en\":\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using \'Content here, content here\', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for \'lorem ipsum\' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).\",\"ar\":\"كياسي أرشيتيكتو بيتاي فيتاي ديكاتا سيونت أكسبليكابو. نيمو أنيم أبسام فوليوباتاتيم كيواي فوليوبتاس سايت أسبيرناتشر أيوت أودايت أيوت فيوجايت, سيد كيواي كونسيكيونتشر ماجناي دولارس أيوس كيواي راتاشن فوليوبتاتيم سيكيواي نيسكايونت. نيكيو بوررو كيوايسكيوم ايست,كيواي دولوريم ايبسيوم كيوا دولار سايت أميت, كونسيكتيتيور,أديبايسكاي فيلايت, سيد كيواي نون نيومكيوام ايايوس موداي تيمبورا انكايديونت يوت لابوري أيت دولار ماجنام ألايكيوام كيوايرات فوليوبتاتيم. يوت اينايم أد مينيما فينيام, كيواس نوستريوم أكسيركايتاشيم\"}', '{\"en\":\"orem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha\",\"ar\":\"كياسي أرشيتيكتو بيتاي فيتاي ديكاتا سيونت أكسبليكابو. نيمو أنيم أبسام فوليوباتاتيم كيواي فوليوبتاس سايت أسبيرناتشر أيوت أودايت أيوت فيوجايت, سيد كيواي كونسيكيونتشر ماجناي دولارس أيوس كيواي راتاشن فوليوبتاتيم سيكيواي نيسكايونت. نيكيو بوررو كيوايسكيوم ايست,كيواي دولوريم ايبسيوم كيوا دولار سايت أميت, كونسيكتيتيور,أديبايسكاي فيلايت, سيد كيواي نون نيومكيوام ايايوس موداي تيمبورا انكايديونت يوت لابوري أيت دولار ماجنام ألايكيوام كيوايرات فوليوبتاتيم. يوت اينايم أد مينيما فينيام, كيواس نوستريوم أكسيركايتاشيم\"}', '{\"en\":\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using \'Content here, content here\', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for \'lorem ipsum\' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).\",\"ar\":\"كياسي أرشيتيكتو بيتاي فيتاي ديكاتا سيونت أكسبليكابو. نيمو أنيم أبسام فوليوباتاتيم كيواي فوليوبتاس سايت أسبيرناتشر أيوت أودايت أيوت فيوجايت, سيد كيواي كونسيكيونتشر ماجناي دولارس أيوس كيواي راتاشن فوليوبتاتيم سيكيواي نيسكايونت. نيكيو بوررو كيوايسكيوم ايست,كيواي دولوريم ايبسيوم كيوا دولار سايت أميت, كونسيكتيتيور,أديبايسكاي فيلايت, سيد كيواي نون نيومكيوام ايايوس موداي تيمبورا انكايديونت يوت لابوري أيت دولار ماجنام ألايكيوام كيوايرات فوليوبتاتيم. يوت اينايم أد مينيما فينيام, كيواس نوستريوم أكسيركايتاشيم\"}', 1, 1, '2022-03-06 23:31:04', '2022-03-07 17:26:59');
-- --------------------------------------------------------
--
-- Table structure for table `carousels`
--
CREATE TABLE `carousels` (
`id` bigint(20) UNSIGNED NOT NULL,
`carousel_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `carousels`
--
INSERT INTO `carousels` (`id`, `carousel_name`, `user_id`, `created_at`, `updated_at`) VALUES
(1, '{\"en\":\"Slider Of Main Page\",\"ar\":\"\\u0627\\u0644\\u0635\\u0648\\u0631 \\u0627\\u0644\\u0645\\u062a\\u062d\\u0631\\u0643\\u0629 \\u0644\\u0644\\u0635\\u0641\\u062d\\u0629 \\u0627\\u0644\\u0631\\u0626\\u064a\\u0633\\u064a\\u0629\"}', 1, '2022-03-03 14:07:27', '2022-03-03 20:25:24'),
(2, '{\"en\":\"Slider Of About Company\",\"ar\":\"\\u0627\\u0644\\u0635\\u0648\\u0631 \\u0627\\u0644\\u0645\\u062a\\u062d\\u0631\\u0643\\u0629 \\u0644\\u0635\\u0641\\u062d\\u0629 \\u0639\\u0646 \\u0627\\u0644\\u0634\\u0631\\u0643\\u0629\"}', 1, '2022-03-03 20:27:28', '2022-03-03 20:27:28'),
(3, '{\"en\":\"Slider Of News Page\",\"ar\":\"\\u0627\\u0644\\u0635\\u0648\\u0631 \\u0627\\u0644\\u0645\\u062a\\u062d\\u0631\\u0643\\u0629 \\u0644\\u0635\\u0641\\u062d\\u0629 \\u0627\\u0644\\u0627\\u062e\\u0628\\u0627\\u0631\"}', 1, '2022-03-03 20:35:58', '2022-03-03 20:35:58');
-- --------------------------------------------------------
--
-- Table structure for table `carousel_attributes`
--
CREATE TABLE `carousel_attributes` (
`id` bigint(20) UNSIGNED NOT NULL,
`carousel_id` bigint(20) UNSIGNED NOT NULL,
`carousel_title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`carousel_image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`carousel_image2` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`carousel_summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`text1` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`text2` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`text3` varchar(400) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `carousel_attributes`
--
INSERT INTO `carousel_attributes` (`id`, `carousel_id`, `carousel_title`, `carousel_image`, `carousel_image2`, `carousel_summary`, `text1`, `text2`, `text3`, `user_id`, `created_at`, `updated_at`) VALUES
(22, 1, '{\"en\":\".\"}', '1646447148.mp4', NULL, NULL, NULL, NULL, NULL, 1, '2022-03-05 00:25:48', '2022-03-05 00:25:48'),
(30, 2, '{\"en\":\"First Slide Label\",\"ar\":\"الشاشة النتحركة الاولي\"}', '16466169601.jpg', NULL, '{\"en\":\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut, eum modi. Aperiam esse magnam reprehenderit perferendis. Atque autem neque nostrum?\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', NULL, NULL, NULL, 1, '2022-03-06 23:36:00', '2022-03-06 23:36:00'),
(31, 2, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"الشاشة المتحركة الثانية\"}', '16466171421.jpg', NULL, '{\"en\":\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut, eum modi. Aperiam esse magnam reprehenderit perferendis. Atque autem neque nostrum?\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', NULL, NULL, NULL, 1, '2022-03-06 23:39:02', '2022-03-06 23:39:02'),
(32, 2, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"الشاشة المتحركة الثالثة\"}', '16466172201.jpg', NULL, '{\"en\":\"Lorem ipsum dolor sit amet consectetur adipisicing elit. Aut, eum modi. Aperiam esse magnam reprehenderit perferendis. Atque autem neque nostrum?\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', NULL, NULL, NULL, 1, '2022-03-06 23:40:20', '2022-03-06 23:40:20'),
(33, 2, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"الشاشة المتحركة الرابعة\"}', '16466173491.jpg', NULL, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', NULL, NULL, NULL, 1, '2022-03-06 23:42:29', '2022-03-06 23:42:29'),
(36, 1, '{\"en\":\".\"}', '0', '1646648617.jpg', NULL, NULL, NULL, NULL, 1, '2022-03-07 08:23:37', '2022-03-07 08:23:37'),
(37, 1, '{\"en\":\".\"}', '0', '1646648692.jpg', NULL, NULL, NULL, NULL, 1, '2022-03-07 08:24:52', '2022-03-07 08:24:52'),
(38, 1, '{\"en\":\".\"}', '0', '1646648959.jpg', NULL, NULL, NULL, NULL, 1, '2022-03-07 08:29:19', '2022-03-07 08:29:19'),
(39, 3, '{\"en\":\"Some represe\",\"ar\":\"نتقن ثنب\"}', '16466535101.jpg', '16466535102.jpg', '{\"en\":\"laceholder content for the third slide Lorem, ipsum dolor sit amet consectetur adipisicing elit. Sint incidunt, voluptate delectus maxime tenetur aspernatur molestiae modi explicabo optio, hic quo elige\",\"ar\":\"ش مثنثم مثنمن ثمثم ثوزوثز ثزو\"}', '{\"ar\":null}', '{\"ar\":null}', '{\"ar\":null}', 1, '2022-03-07 09:45:10', '2022-03-07 09:46:42'),
(40, 3, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ةةة\"}', '16466537181.jpg', '16466537182.jpg', '{\"en\":\"orem Ipsum is simply dorem Ipsum is simply dummy text of the printing and typeummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوعضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', 1, '2022-03-07 09:48:38', '2022-03-07 15:45:41');
-- --------------------------------------------------------
--
-- Table structure for table `clients`
--
CREATE TABLE `clients` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`summary` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`trusted_client` tinyint(4) DEFAULT 0,
`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 `clients`
--
INSERT INTO `clients` (`id`, `title`, `image`, `summary`, `user_id`, `trusted_client`, `created_at`, `updated_at`) VALUES
(1, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"ب\"}', '1646659344.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj\",\"ar\":\"ب\"}', 1, 1, NULL, '2022-03-07 11:40:00'),
(6, '{\"en\":\"basma\",\"ar\":\"بسمة\"}', '1646659368.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj orem Ipsum is simply dummy text of the printing and type orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"تاتاتل بنبنبن مببم\"}', 1, 1, '2022-03-06 02:24:35', '2022-03-07 11:34:25'),
(10, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"ال بل يقب اغ\"}', '1646660128.jpg', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إل\"}', 1, 0, '2022-03-07 11:35:28', '2022-03-07 11:35:28'),
(11, '{\"en\":\"kkkkkkkkkkkry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unkkkkkkk\",\"ar\":\"ةةلل تتry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown print\"}', '1646660170.jpg', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ضع في التنت تصاميم مطبوع\"}', 1, 1, '2022-03-07 11:36:10', '2022-03-07 15:11:46'),
(12, '{\"en\":\"ry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took\",\"ar\":\"ry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took\"}', '1646660386.jpg', '{\"en\":\"trusted_client ry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unkno\",\"ar\":\"فقفف\"}', 1, 1, '2022-03-07 11:39:46', '2022-03-07 14:50:32');
-- --------------------------------------------------------
--
-- Table structure for table `constructions`
--
CREATE TABLE `constructions` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1,
`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 `constructions`
--
INSERT INTO `constructions` (`id`, `title`, `image`, `summary`, `user_id`, `client_id`, `status`, `created_at`, `updated_at`) VALUES
(4, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"\\u0649\\u0649\\u0649\\u0649\"}', '1646618760.jpg', '{\"en\":\"jj\",\"ar\":\"\\u0649\\u0649\\u0649\\u0649\"}', 1, 1, 1, '2022-02-27 23:34:38', '2022-03-07 00:06:00'),
(6, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\\u062a\"}', '1646618750.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj\",\"ar\":\"\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\\u0627\"}', 1, 1, 1, '2022-03-01 15:33:10', '2022-03-07 00:05:51'),
(7, '{\"en\":\"jjjjjjjjjjjjjjjjjj\",\"ar\":\"\\u0627\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\\u0644\"}', '1646618740.jpg', '{\"en\":\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum\",\"ar\":\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum\"}', 1, 1, 1, '2022-03-01 15:33:44', '2022-03-07 00:05:40'),
(8, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\\u0633\"}', '1646618730.jpg', '{\"en\":\"jj\",\"ar\":\"\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\\u062b\"}', 1, 1, 1, '2022-03-01 15:34:28', '2022-03-07 00:07:07'),
(9, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"ةةةةةةةةةةةةةةةةةةةة\"}', '1646618720.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', 1, 1, 1, '2022-03-04 01:29:21', '2022-03-07 00:05:20');
-- --------------------------------------------------------
--
-- Table structure for table `electrics`
--
CREATE TABLE `electrics` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1,
`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 `electrics`
--
INSERT INTO `electrics` (`id`, `title`, `image`, `summary`, `user_id`, `client_id`, `status`, `created_at`, `updated_at`) VALUES
(1, '{\"en\":\"electric1\",\"ar\":\"\\u0627\\u0644\\u064a\\u0643\\u062a\\u0631\\u064a\\u0643 1m\"}', '1646652277.jpg', '{\"en\":\"electric summary 1\",\"ar\":\"\\u0633\\u0627\\u0645\\u0627\\u0624\\u0633 \\u0627\\u064a\\u0643\\u062a\\u0631\\u064a\\u0643\"}', 1, 1, 1, '2022-03-01 03:20:12', '2022-03-07 09:24:37'),
(8, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"التلتنبن\"}', '1646652316.jpg', '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"بنبنبب صمثنمصنم مثصم مثنمضم\"}', 1, 6, 1, '2022-03-07 09:25:16', '2022-03-07 09:25:16');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`phone_number` varchar(11) NOT NULL,
`address` varchar(500) NOT NULL,
`image` varchar(255) NOT NULL,
`summary` text NOT NULL,
`resume` varchar(255) NOT NULL,
`user_id` bigint(20) UNSIGNED DEFAULT NULL,
`status` tinyint(4) DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`id`, `user_name`, `email`, `title`, `phone_number`, `address`, `image`, `summary`, `resume`, `user_id`, `status`, `created_at`, `updated_at`) VALUES
(3, 'basma employee', '<EMAIL>', 'n', '01777777777', 'hjkk kkkkk', '1646439964.jpg', 'mm', '1646439152.jpg\r\n', NULL, 0, '2022-03-04 22:26:04', '2022-03-04 22:26:04'),
(4, 'basmannn nnnnnnnnnnnnn', '<EMAIL>', 'n', '01777777777', 'n', '1646441285.jpg', 'm', '1646441285.docx', 1, 1, '2022-03-04 22:48:05', '2022-03-04 23:05:10');
-- --------------------------------------------------------
--
-- 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 `footer`
--
CREATE TABLE `footer` (
`id` bigint(20) UNSIGNED NOT NULL,
`summary` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_address` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`facebook_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`instagram_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`twitter_link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `footer`
--
INSERT INTO `footer` (`id`, `summary`, `company_email`, `company_phone`, `company_address`, `facebook_link`, `instagram_link`, `twitter_link`, `user_id`, `created_at`, `updated_at`) VALUES
(3, '{\"en\":\"d it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 19\",\"ar\":\"بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22\"}', '<EMAIL>', '404004', '{\"en\":\"d it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 19\",\"ar\":\"بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه ال\"}', 'https://ar-ar.facebook.com/', 'https://ar-ar.facebook.com/', 'https://ar-ar.facebook.com/', 1, '2022-03-07 16:20:35', '2022-03-07 16:28:16');
-- --------------------------------------------------------
--
-- Table structure for table `group_of_news`
--
CREATE TABLE `group_of_news` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `group_of_news`
--
INSERT INTO `group_of_news` (`id`, `title`, `user_id`, `created_at`, `updated_at`) VALUES
(1, '{\"en\":\"first group\",\"ar\":\"الجروب الاول\"}', 1, '2022-03-05 11:13:55', '2022-03-05 11:13:55'),
(4, '{\"en\":\"updated group\",\"ar\":\"الجروب الاول المعدل\"}', 1, '2022-03-05 11:33:41', '2022-03-07 11:05:51');
-- --------------------------------------------------------
--
-- Table structure for table `landscapes`
--
CREATE TABLE `landscapes` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1,
`at_front_page` tinyint(4) NOT NULL DEFAULT 0,
`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 `landscapes`
--
INSERT INTO `landscapes` (`id`, `title`, `image`, `summary`, `user_id`, `client_id`, `status`, `at_front_page`, `created_at`, `updated_at`) VALUES
(8, '{\"en\":\"Lorem ipsum dolor sit amet consectetur.\",\"ar\":\"ل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت\"}', '1646618512.jpg', '{\"en\":\"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta, aliquam quos nobis blanditiis ipsam ullam harum praesentium accusantium? Suscipit, molestiae! Officia incidunt inventore blanditiis quibusdam consequatur dicta alias fugiat ut.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, 6, 1, 1, '2022-03-07 00:01:52', '2022-03-07 00:01:52'),
(9, '{\"en\":\"Lorem ipsum dolor sit amet consectetur.\",\"ar\":\"ل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت\"}', '1646618565.jpg', '{\"en\":\"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta, aliquam quos nobis blanditiis ipsam ullam harum praesentium accusantium? Suscipit, molestiae! Officia incidunt inventore blanditiis quibusdam consequatur dicta alias fugiat ut.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, 6, 1, 0, '2022-03-07 00:02:45', '2022-03-07 00:02:45'),
(10, '{\"en\":\"Lorem ipsum dolor sit amet consectetur.\",\"ar\":\"، فعل. الا مع قِبل أمدها جديداً. بوابة الضغوط أن\"}', '1646618645.jpg', '{\"en\":\"Lorem ipsum dolor sit amet consectetur, adipisicing elit. Soluta, aliquam quos nobis blanditiis ipsam ullam harum praesentium accusantium? Suscipit, molestiae! Officia incidunt inventore blanditiis quibusdam consequatur dicta alias fugiat ut.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, 6, 1, 0, '2022-03-07 00:04:06', '2022-03-07 00:04:06');
-- --------------------------------------------------------
--
-- Table structure for table `managers`
--
CREATE TABLE `managers` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`summary` varchar(500) NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `managers`
--
INSERT INTO `managers` (`id`, `name`, `title`, `summary`, `user_id`, `created_at`, `updated_at`) VALUES
(2, '{\"en\":\"basma\",\"ar\":\"بسمة\"}', '{\"en\":\"manager\",\"ar\":\"مدير\"}', '{\"en\":\"summarry 1\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', 1, '2022-03-05 15:47:13', '2022-03-05 15:47:13'),
(5, '{\"en\":\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s\",\"ar\":\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s\"}', '{\"en\":\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s\",\"ar\":\"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s\"}', '{\"en\":\"Lorem vLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s\",\"ar\":\"vLorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'\"}', 1, '2022-03-07 14:04:35', '2022-03-07 14:10:12');
-- --------------------------------------------------------
--
-- 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, '2022_02_22_011039_create_employees_table', 2),
(5, '2022_02_22_020336_create_clients_table', 3),
(6, '2022_02_22_013332_create_landscapes_table', 4),
(7, '2022_02_22_014431_create_constructions_table', 4),
(8, '2022_02_22_014855_create_roads_table', 4),
(9, '2022_02_22_015323_create_electrics_table', 4),
(10, '2022_02_22_015553_create_projects_table', 4),
(11, '2022_02_22_021725_create_news_table', 4),
(12, '2022_02_22_022519_create_footers_table', 4),
(13, '2022_02_22_023606_create_carousels_table', 4),
(14, '2022_02_22_024249_create_carousel_attributes_table', 4),
(15, '2022_02_22_024943_create_about_companies_table', 4);
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE `news` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` varchar(700) COLLATE utf8mb4_unicode_ci NOT NULL,
`group_of_news_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `title`, `image`, `summary`, `group_of_news_id`, `user_id`, `created_at`, `updated_at`) VALUES
(3, '{\"en\":\"cccccccccccccc\",\"ar\":\"الالالا\"}', '1646653869.jpg', '{\"en\":\"ccccccccccccccc\",\"ar\":\"لالالالا\"}', 1, 1, '2022-03-05 14:06:20', '2022-03-07 09:51:09'),
(4, '{\"en\":\"wwwwwwwwwwwww\",\"ar\":\"ببببببببببب\"}', '1646653856.jpg', '{\"en\":\"wwwwwwwwww\",\"ar\":\"بببببببببببب\"}', 1, 1, '2022-03-05 14:06:48', '2022-03-07 09:50:56'),
(5, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"اااااااااااااااااااااااااا\"}', '1646653844.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj\",\"ar\":\"ثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثثث\"}', 1, 1, '2022-03-05 14:07:13', '2022-03-07 09:50:44'),
(7, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ىى\"}', '1646653816.jpg', '{\"en\":\"bn\",\"ar\":\"بن\"}', 1, 1, '2022-03-05 14:08:45', '2022-03-07 09:50:16'),
(9, '{\"en\":\"f\",\"ar\":\"ب\"}', '1646653784.jpg', '{\"en\":\"has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it\",\"ar\":\"ب\"}', 1, 1, '2022-03-06 12:25:12', '2022-03-07 10:02:20'),
(10, '{\"en\":\"orem ry. Lorem Ipsum has been the industry\'s standard dummy text ever sinceis simply dummy text of the printing and type\",\"ar\":\"تصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل\"}', '1646654469.jpg', '{\"en\":\"orem ry. Lorem Ipsum horem ry. Lorem Ipsum has been the industry\'s standard dummy text ever sinceis simply dummy text of the printing and typorem ry. Lorem Ipsum has been the industry\'s standard dummy text ever sinceis sieas been the industry\'s standard dummy text ever sinceis simply dummy text of the printing and type\",\"ar\":\"ضع في التصاميم لتعرضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سوضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص اء كانت تصاميم مطبوعواء كانت تصاميم مطبوعض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', 1, 1, '2022-03-07 09:55:08', '2022-03-07 17:49:55'),
(11, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"بببببببببببببببببب\"}', '1646658543.jpg', '{\"en\":\"jjjjjjjjjjjjjjjjjjjjjj\",\"ar\":\"بببببببببببببببب\"}', 4, 1, '2022-03-07 11:09:03', '2022-03-07 11:09:03'),
(12, '{\"en\":\"kkkkkkkkkkkkkkkkkk\",\"ar\":\"بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22\"}', '1646658568.jpg', '{\"ar\":\"بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22 بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22 بالتصاميم سواء كانت تصاميم مطبوعه ... بروشور او فلاير على سبيل المثال .. لقد زرت هذه الصفحة مرات عديدة. آخر زيارة: 07\\/03\\/22\",\"en\":\"It is a long established fact that a reader will be distracted by the readable content of a page when lookin', 4, 1, '2022-03-07 11:09:28', '2022-03-07 16:05:11');
-- --------------------------------------------------------
--
-- 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 `projects`
--
CREATE TABLE `projects` (
`id` bigint(20) UNSIGNED NOT NULL,
`landscape_id` bigint(20) UNSIGNED NOT NULL,
`construction_id` bigint(20) UNSIGNED NOT NULL,
`road_id` bigint(20) UNSIGNED NOT NULL,
`electric_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_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 `roads`
--
CREATE TABLE `roads` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`client_id` bigint(20) UNSIGNED DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT 1,
`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 `roads`
--
INSERT INTO `roads` (`id`, `title`, `image`, `summary`, `user_id`, `client_id`, `status`, `created_at`, `updated_at`) VALUES
(4, '{\"en\":\"rem ipsum dolor sit am\",\"ar\":\"ل أمدها جديداً. بوابة الضغوط أ\"}', '1646618966.jpg', '{\"en\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, 1, 1, '2022-03-02 13:02:51', '2022-03-07 00:09:26'),
(6, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"المجتمع, هجوم وبغطاء ذلك\"}', '1646619027.jpg', '{\"en\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, NULL, 1, '2022-03-07 00:10:27', '2022-03-07 00:10:27'),
(7, '{\"en\":\"mod tempor incidid\",\"ar\":\"حق نهاية تكاليف بريطان\"}', '1646619077.jpg', '{\"en\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, 6, 1, '2022-03-07 00:11:17', '2022-03-07 00:11:17'),
(8, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"ق نهاية تكاليف بريطانيا، م\"}', '1646619133.jpg', '{\"en\":\"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.\",\"ar\":\"بحق نهاية تكاليف بريطانيا، ما, إلى أن النزاع الألماني. حرب غزوه أصقاع القوقازية تم, حتى كل ألماني بقيادة والكوري, بلا أجزاء مواقعها بل. عدد عقبت بالسيطرة عل. دول معقل لهذه أسابيع. أن وقد وباءت المجتمع, هجوم وبغطاء ذلك هو. تعديل فهرست.\\\"\"}', 1, NULL, 1, '2022-03-07 00:12:13', '2022-03-07 00:12:13'),
(9, '{\"en\":\"orem Ipsum is simply dummy text of the printing and type\",\"ar\":\"في التصاميم لتعرض على الع\"}', '1646619408.jpg', '{\"en\":\"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using \'Content here, content here\', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for \'lorem ipsum\' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).\",\"ar\":\"ضع في التصاميم لتعرض على العميل ليتصور طريقه وضع النصوص بالتصاميم سواء كانت تصاميم مطبوع\"}', 1, 6, 0, '2022-03-07 00:16:48', '2022-03-07 00:17:04');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`summary` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `title`, `summary`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'bas<PASSWORD>', '<EMAIL>', NULL, '$2y$10$XwIIwYA3R29CmymCNbaV7eRfbeSZe2fh/Mrn3Dox8BFtLMO3Kgvkm', 'manager', 'orem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha\r\n\r\n', NULL, '2022-02-22 22:46:31', '2022-02-22 22:46:31'),
(2, 'basma2 basma2', '<EMAIL>', NULL, '$2y$10$sKSoUHhNNchlhdSHvTJXUe5H0CXOjU1KtwjdQHpaSlrrIHH9ylds2', 'any title', 'orem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha\r\n\r\n', NULL, '2022-02-23 20:40:57', '2022-02-23 20:40:57'),
(3, '<NAME>', '<EMAIL>', NULL, '$2y$10$vyepIBsEPWhs9PAJtGByluL51K.5u1.7c8nfk6FHUw1sDsldmqxIe', 'Manager', 'orem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha', NULL, '2022-03-01 22:42:53', '2022-03-01 22:42:53'),
(4, '<NAME>', '<EMAIL>', NULL, '$2y$10$N1KMa8JCkiF3EvAwpG1Q7u9gh/jJv5aS2G.u6hS26De1OnU/4VzZG', 'sales manager', 'orem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It ha', NULL, '2022-03-01 22:44:49', '2022-03-01 22:44:49');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `about_company`
--
ALTER TABLE `about_company`
ADD PRIMARY KEY (`id`),
ADD KEY `about_company_user_id_foreign` (`user_id`);
--
-- Indexes for table `carousels`
--
ALTER TABLE `carousels`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `carousel_attributes`
--
ALTER TABLE `carousel_attributes`
ADD PRIMARY KEY (`id`),
ADD KEY `carousel_attributes_carousel_id_foreign` (`carousel_id`),
ADD KEY `carousel_attributes_user_id_foreign` (`user_id`);
--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
ADD PRIMARY KEY (`id`),
ADD KEY `clients_user_id_foreign` (`user_id`);
--
-- Indexes for table `constructions`
--
ALTER TABLE `constructions`
ADD PRIMARY KEY (`id`),
ADD KEY `constructions_ibfk_1` (`client_id`),
ADD KEY `constructions_user_id_foreign` (`user_id`);
--
-- Indexes for table `electrics`
--
ALTER TABLE `electrics`
ADD PRIMARY KEY (`id`),
ADD KEY `electrics_user_id_foreign` (`user_id`),
ADD KEY `electrics_client_id_foreign` (`client_id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `footer`
--
ALTER TABLE `footer`
ADD PRIMARY KEY (`id`),
ADD KEY `footer_user_id_foreign` (`user_id`);
--
-- Indexes for table `group_of_news`
--
ALTER TABLE `group_of_news`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `landscapes`
--
ALTER TABLE `landscapes`
ADD PRIMARY KEY (`id`),
ADD KEY `landscapes_user_id_foreign` (`user_id`),
ADD KEY `landscapes_client_id_foreign` (`client_id`);
--
-- Indexes for table `managers`
--
ALTER TABLE `managers`
ADD PRIMARY KEY (`id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `news`
--
ALTER TABLE `news`
ADD PRIMARY KEY (`id`),
ADD KEY `news_user_id_foreign` (`user_id`),
ADD KEY `group_of_news` (`group_of_news_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `projects`
--
ALTER TABLE `projects`
ADD PRIMARY KEY (`id`),
ADD KEY `projects_landscape_id_foreign` (`landscape_id`),
ADD KEY `projects_construction_id_foreign` (`construction_id`),
ADD KEY `projects_road_id_foreign` (`road_id`),
ADD KEY `projects_electric_id_foreign` (`electric_id`),
ADD KEY `projects_user_id_foreign` (`user_id`),
ADD KEY `projects_client_id_foreign` (`client_id`);
--
-- Indexes for table `roads`
--
ALTER TABLE `roads`
ADD PRIMARY KEY (`id`),
ADD KEY `roads_user_id_foreign` (`user_id`),
ADD KEY `roads_client_id_foreign` (`client_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 `about_company`
--
ALTER TABLE `about_company`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;
--
-- AUTO_INCREMENT for table `carousels`
--
ALTER TABLE `carousels`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `carousel_attributes`
--
ALTER TABLE `carousel_attributes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `constructions`
--
ALTER TABLE `constructions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `electrics`
--
ALTER TABLE `electrics`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `footer`
--
ALTER TABLE `footer`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `group_of_news`
--
ALTER TABLE `group_of_news`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `landscapes`
--
ALTER TABLE `landscapes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `managers`
--
ALTER TABLE `managers`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `projects`
--
ALTER TABLE `projects`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roads`
--
ALTER TABLE `roads`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `about_company`
--
ALTER TABLE `about_company`
ADD CONSTRAINT `about_company_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `carousels`
--
ALTER TABLE `carousels`
ADD CONSTRAINT `carousels_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `carousel_attributes`
--
ALTER TABLE `carousel_attributes`
ADD CONSTRAINT `carousel_attributes_carousel_id_foreign` FOREIGN KEY (`carousel_id`) REFERENCES `carousels` (`id`),
ADD CONSTRAINT `carousel_attributes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `clients`
--
ALTER TABLE `clients`
ADD CONSTRAINT `clients_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `constructions`
--
ALTER TABLE `constructions`
ADD CONSTRAINT `constructions_ibfk_1` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
ADD CONSTRAINT `constructions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `electrics`
--
ALTER TABLE `electrics`
ADD CONSTRAINT `electrics_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
ADD CONSTRAINT `electrics_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `employees`
--
ALTER TABLE `employees`
ADD CONSTRAINT `employees_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `footer`
--
ALTER TABLE `footer`
ADD CONSTRAINT `footer_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `group_of_news`
--
ALTER TABLE `group_of_news`
ADD CONSTRAINT `group_of_news_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `landscapes`
--
ALTER TABLE `landscapes`
ADD CONSTRAINT `landscapes_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
ADD CONSTRAINT `landscapes_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `managers`
--
ALTER TABLE `managers`
ADD CONSTRAINT `managers_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `news`
--
ALTER TABLE `news`
ADD CONSTRAINT `news_ibfk_1` FOREIGN KEY (`group_of_news_id`) REFERENCES `group_of_news` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `news_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `projects`
--
ALTER TABLE `projects`
ADD CONSTRAINT `projects_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`),
ADD CONSTRAINT `projects_construction_id_foreign` FOREIGN KEY (`construction_id`) REFERENCES `constructions` (`id`),
ADD CONSTRAINT `projects_electric_id_foreign` FOREIGN KEY (`electric_id`) REFERENCES `electrics` (`id`),
ADD CONSTRAINT `projects_landscape_id_foreign` FOREIGN KEY (`landscape_id`) REFERENCES `landscapes` (`id`),
ADD CONSTRAINT `projects_road_id_foreign` FOREIGN KEY (`road_id`) REFERENCES `roads` (`id`),
ADD CONSTRAINT `projects_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `roads`
--
ALTER TABLE `roads`
ADD CONSTRAINT `roads_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`) ON DELETE SET NULL ON UPDATE SET NULL,
ADD CONSTRAINT `roads_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
|
-- Creating the bookshelves table in database
CREATE TABLE BOOKSHELVES (id SERIAL PRIMARY KEY, name VARCHAR(255));
-- Retrieving unique values from books table and insert into the bookshelves table
INSERT INTO bookshelves(name) SELECT DISTINCT bookshelf FROM books;
-- Adding a column to the books table containing the bookshelf_id for each book in the books table
ALTER TABLE books ADD COLUMN bookshelf_id INT;
-- Connecting the bookshelves and books tables
UPDATE books SET bookshelf_id=shelf.id FROM (SELECT * FROM bookshelves) AS shelf WHERE books.bookshelf = shelf.name;
-- Take out the bookshelf column from the books table
ALTER TABLE books DROP COLUMN bookshelf;
-- Modifying the data type of the bookshelf_id to be a foreign key
ALTER TABLE books ADD CONSTRAINT fk_bookshelves FOREIGN KEY (bookshelf_id) REFERENCES bookshelves(id); |
DEF title = 'PCT_FREE \<\> 10 (dba_tables)';
DEF filename = 'PctFree.html';
DEF nextpage = 'Indexes.html';
DEF prevpage = 'TableDOP.html';
@@00_begin.sql
@@sql/sub/PctFree.sql
SET MARK HTML OFF;
PRO <h2>Comments</h2>
PRO <p>PCT_FREE is the minimum percentage of free space in a block.</p>
PRO <p>Windchill uses PCT_FREE = 10</p>
PRO <p>Generally this is ignorable. Useful to understand if non-default pct_free is causing issues.</p>
@@00_end.sql
|
<gh_stars>0
CREATE DATABASE T_Gufos;
USE T_Gufos
CREATE TABLE Categoria
(
IdCategoria int primary key identity not null
,Nome varchar (250) not null unique
);
create table Eventos
(
IdEvento int identity primary key not null
,Titulo varchar (250)
,Descricao text
,DataEvento datetime
,Ativo bit not null default (1)
,Localizacao varchar (250) null
,IdCategoria int foreign key references Categoria (IdCategoria)
);
create table Usuarios
(
IdUsuario int identity primary key not null
,Nome varchar (250) not null
,Email varchar (250) not null unique
,Senha varchar (250) not null
,Permissao varchar (250)not null
);
create table Presencas
(
IdUsuario int foreign key references Usuarios (IdUsuario)
,IdEvento int foreign key references Eventos (IdEvento)
);
|
<reponame>tech-team/sentiment
select ttext from sentiment; |
CREATE TABLE [dbo].[SubscribedSKUs_History] (
[CorrelationId] UNIQUEIDENTIFIER NOT NULL,
[Id] NVARCHAR (255) NOT NULL,
[CustomerId] UNIQUEIDENTIFIER NOT NULL,
[SkuBusinessId] UNIQUEIDENTIFIER NOT NULL,
[PartNumber] NVARCHAR (255) NOT NULL,
[OfferName] NVARCHAR (255) NULL,
[CapabilityStatus] NCHAR (10) NOT NULL,
[ActiveSeats] INT NOT NULL,
[InGracePeriodSeats] INT NOT NULL,
[DisabledSeats] INT NOT NULL,
[AssignedSeats] INT NOT NULL,
CONSTRAINT [PK_SubscribedSKUs_History] PRIMARY KEY CLUSTERED ([CorrelationId] ASC, [Id] ASC),
CONSTRAINT [FK_SubscribedSKUs_History_CorrelationIds] FOREIGN KEY ([CorrelationId]) REFERENCES [dbo].[CorrelationIds] ([Id]),
CONSTRAINT [FK_SubscribedSKUs_History_Customers_History] FOREIGN KEY ([CorrelationId], [CustomerId]) REFERENCES [dbo].[Customers_History] ([CorrelationId], [Id])
);
GO
CREATE NONCLUSTERED INDEX [IX_SubscribedSKUs_History_CustomerId]
ON [dbo].[SubscribedSKUs_History]([CustomerId] ASC);
|
CREATE TABLE rolemapping (
id SERIAL NOT NULL,
principaltype varchar,
principalid integer,
roleid integer,
CONSTRAINT rolemapping_pk PRIMARY KEY (id)
);
|
CREATE TABLE phone(
member_id SMALLINT UNSIGNED NOT NULL,
phone VARCHAR(10) NOT NULL,
FOREIGN KEY(member_id) REFERENCES members
); |
CREATE TABLE `gw1_missions` (
`mission_id` smallint(4) UNSIGNED NOT NULL,
`missiontype_id` tinyint(2) UNSIGNED NOT NULL,
`region_id` smallint(4) UNSIGNED NOT NULL,
`rect` tinytext NOT NULL,
`name_en` tinytext NOT NULL,
`name_de` tinytext NOT NULL,
PRIMARY KEY (`mission_id`)
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_bin;
INSERT INTO `gw1_missions` (`mission_id`, `missiontype_id`, `region_id`, `rect`, `name_en`, `name_de`) VALUES
(10, 4, 5, '[[1136,17924],[3240,18992]]', 'Bloodstone Fen', 'Blutsteinsumpf'),
(11, 4, 5, '[[3520,16760],[5816,18100]]', 'The Wilds', 'Die Wildnis'),
(12, 4, 5, '[[5400,19624],[6844,20912]]', 'Aurora Glade', 'Auroralichtung'),
(14, 4, 4, '[[16044,18652],[17364,20776]]', 'Gates of Kryta', 'Tore von Kryta'),
(15, 4, 4, '[[13048,19120],[15140,20376]]', 'D\'Alessio Seaboard', 'D\'Alessio-Küste'),
(16, 4, 4, '[[9700,15868],[11584,17136]]', 'Divinity Coast', 'Küste der Göttlichkeit'),
(19, 4, 4, '[[11356,20900],[13020,22120]]', '<NAME>', '<NAME>'),
(21, 4, 3, '[[19324,15164],[20412,17932]]', 'The Frost Gate', 'Das Frosttor'),
(22, 4, 7, '[[21420,24876],[23368,26040]]', 'Ice Caves of Sorrow', 'Eishöhlen der Betrübnis'),
(23, 4, 7, '[[25096,22664],[26424,24668]]', 'Thunderhead Keep', '<NAME>'),
(24, 4, 7, '[[23552,20484],[24632,23532]]', 'Iron Mines of Moladune', 'Eisenminen von Moladune'),
(25, 4, 3, '[[20272,14232],[22284,15396]]', '<NAME>', 'Borlispass'),
(28, 4, 2, '[[27684,16088],[29088,17620]]', 'The Great Northern Wall', 'Der Große Nordwall'),
(29, 4, 2, '[[28940,17396],[29512,19488]]', '<NAME>', '<NAME>'),
(30, 4, 2, '[[28696,14848],[29760,16908]]', 'Ruins of Surmia', 'Ruinen von Surmia'),
(32, 4, 2, '[[23260,17528],[24560,19148]]', 'Nolani Academy', 'Nolani-Akademie'),
(37, 2, 21, '[[0,0],[0,0]]', 'Glint\'s Challenge', 'Glints Herausforderung'),
(65, 1, 22, '[[0,0],[0,0]]', 'D\'Alessio Arena', 'D\'Alessio-Arena'),
(73, 4, 4, '[[8584,21264],[11252,22692]]', 'Riverside Province', 'Flussuferprovinz'),
(75, 1, 23, '[[0,0],[0,0]]', 'The Hall of Heroes', 'Die Halle der Helden'),
(76, 1, 23, '[[0,0],[0,0]]', 'Broken Tower', 'Zerfallener Turm'),
(78, 1, 23, '[[0,0],[0,0]]', 'The Courtyard', 'Der Hof'),
(79, 1, 23, '[[0,0],[0,0]]', 'Unholy Temples', 'Unheilige Tempel'),
(80, 1, 23, '[[0,0],[0,0]]', 'Burial Mounds', 'Grabhügel'),
(82, 1, 23, '[[0,0],[0,0]]', 'Tomb of the Primeval Kings', 'Grab der altehrwürdigen Könige'),
(83, 1, 23, '[[0,0],[0,0]]', 'The Vault', 'Die Gruft'),
(84, 1, 23, '[[0,0],[0,0]]', 'The Underworld', 'Die Unterwelt'),
(85, 1, 22, '[[0,0],[0,0]]', 'Ascalon Arena', 'Ascalon-Arena'),
(86, 1, 23, '[[0,0],[0,0]]', 'Sacred Temples', 'Geheiligte Tempel'),
(116, 4, 6, '[[24740,34052],[26500,35724]]', 'Dunes of Despair', 'Dünen der Verzweiflung'),
(117, 4, 6, '[[28756,33496],[29916,34636]]', 'Thirsty River', 'Durstiger Fluss'),
(118, 4, 6, '[[26416,30536],[27820,31216]]', 'Elona Reach', 'Elonaspitze'),
(119, 4, 6, '[[27080,32200],[27976,32564]]', 'Augury Rock', 'Fels der Weissagung'),
(120, 4, 24, '[[0,0],[0,0]]', 'The Dragon\'s Lair', 'Die Drachenhöhle'),
(122, 4, 8, '[[5888,28868],[7792,30040]]', 'Ring of Fire', 'Feuerring'),
(123, 4, 8, '[[4392,29588],[6352,30852]]', 'Abaddon\'s Mouth', 'Abaddons Maul'),
(124, 4, 8, '[[5420,30324],[6800,32092]]', 'Hell\'s Precipice', 'Vorhof der Hölle'),
(126, 1, 23, '[[0,0],[0,0]]', 'Golden Gates', 'Goldene Tore'),
(150, 1, 1, '[[0,0],[0,0]]', 'Ascalon Academy', 'Ascalon-Akademie'),
(167, 1, 22, '[[0,0],[0,0]]', 'Burning Isle', 'Brennende Insel'),
(168, 1, 22, '[[0,0],[0,0]]', 'Druid\'s Isle', 'Druideninsel'),
(170, 1, 22, '[[0,0],[0,0]]', 'Frozen Isle', 'Vereiste Insel'),
(171, 1, 22, '[[0,0],[0,0]]', 'Warrior\'s Isle', 'Insel des Kriegers'),
(172, 1, 22, '[[0,0],[0,0]]', 'Hunter\'s Isle', 'Insel des Jägers'),
(173, 1, 22, '[[0,0],[0,0]]', 'Wizard\'s Isle', 'Insel des Zauberers'),
(174, 1, 22, '[[0,0],[0,0]]', 'Nomad\'s Isle', 'Nomadeninsel'),
(175, 1, 22, '[[0,0],[0,0]]', 'Isle of the Dead', 'Insel der Toten'),
(180, 1, 22, '[[0,0],[0,0]]', 'Fort Koga', 'Fort Koga'),
(181, 1, 22, '[[0,0],[0,0]]', 'Shiverpeak Arena', 'Zittergipfel-Arena'),
(182, 1, 22, '[[0,0],[0,0]]', 'Amnoon Arena', 'Amnoon-Arena'),
(183, 1, 22, '[[0,0],[0,0]]', 'Deldrimor Arena', 'Deldrimor-Arena'),
(184, 1, 22, '[[0,0],[0,0]]', 'The Crag', 'Die Felsspitze'),
(204, 4, 11, '[[0,0],[0,0]]', 'Unwaking Waters', 'Verschlafene Gewässer'),
(208, 1, 22, '[[0,0],[0,0]]', 'Heroes\' Crypt', 'Gruft der Helden'),
(213, 4, 9, '[[7444,10324],[9088,11324]]', '<NAME>', '<NAME>'),
(214, 4, 9, '[[4118,8650],[5272,9418]]', 'Minister Cho\'s Estate', 'Minister Chos Anwesen'),
(215, 4, 10, '[[0,0],[0,0]]', 'Vizunah Square', 'Vizunahplatz'),
(216, 4, 10, '[[0,0],[0,0]]', 'Nahpui Quarter', 'Nahpuiviertel'),
(217, 4, 10, '[[0,0],[0,0]]', 'Tahnnakai Temple', 'Tahnnakai-Tempel'),
(218, 4, 12, '[[0,0],[0,0]]', 'Arborstone', 'Arborstein'),
(219, 4, 11, '[[0,0],[0,0]]', 'Boreas Seabed', 'Boreas-Meeresgrund'),
(220, 4, 10, '[[0,0],[0,0]]', 'Sunjiang District', 'Sunjiang-Bezirk'),
(221, 3, 12, '[[0,0],[0,0]]', '<NAME>', 'Fort Espenwald'),
(222, 4, 12, '[[0,0],[0,0]]', 'The Eternal Grove', 'Der Ewige Hain'),
(223, 3, 11, '[[0,0],[0,0]]', 'The Jade Quarry', 'Der Jadesteinbruch'),
(224, 4, 11, '[[0,0],[0,0]]', '<NAME>', 'Gyala-Brutstätte'),
(225, 4, 10, '[[0,0],[0,0]]', 'Raisu Palace', 'Raisu-Palast'),
(226, 4, 10, '[[0,0],[0,0]]', 'Imperial Sanctum', 'Kaiserliches Refugium'),
(228, 1, 12, '[[0,0],[0,0]]', 'Grenz Frontier', 'Grenzland'),
(230, 2, 12, '[[0,0],[0,0]]', '<NAME>', 'Amatzbecken'),
(234, 2, 11, '[[0,0],[0,0]]', 'The Aurios Mines', 'Die Auriosminen'),
(243, 1, 22, '[[0,0],[0,0]]', 'Shing Jea Arena', 'Shing Jea-Arena'),
(253, 1, 23, '[[0,0],[0,0]]', 'Dwayna Vs Grenth', '<NAME>. Grenth'),
(266, 6, 12, '[[0,0],[0,0]]', 'Urgoz\'s Warren', 'Urgoz\' Bau'),
(272, 2, 12, '[[0,0],[0,0]]', 'Altrumm Ruins', 'Altrumm-Ruinen'),
(273, 2, 11, '[[0,0],[0,0]]', 'Zos Shivros Channel', 'Zos Shivros-Kanal'),
(274, 2, 10, '[[0,0],[0,0]]', 'Dragon\'s Throat', 'Drachenhals'),
(300, 1, 11, '[[0,0],[0,0]]', 'Etnaran Keys', 'Etnaran-Inseln'),
(307, 6, 11, '[[0,0],[0,0]]', 'The Deep', 'Die Tiefe'),
(308, 1, 22, '[[0,0],[0,0]]', 'Ascalon Arena', 'Ascalon-Arena'),
(309, 1, 22, '[[0,0],[0,0]]', 'Annihilation', 'Vernichtungstraining'),
(310, 1, 22, '[[0,0],[0,0]]', 'Kill Count Training', 'Kill-Count-Training'),
(311, 1, 22, '[[0,0],[0,0]]', 'Annihilation', 'Priestervernichtungstraining'),
(312, 1, 22, '[[0,0],[0,0]]', 'Obelisk Annihilation Training', 'Obeliskenvernichtungstraining'),
(314, 1, 22, '[[0,0],[0,0]]', 'Shiverpeak Arena', 'Zittergipfel-Arena'),
(318, 1, 22, '[[0,0],[0,0]]', 'D\'Alessio Arena', 'D\'Alessio-Arena'),
(319, 1, 22, '[[0,0],[0,0]]', 'Amnoon Arena', 'Amnoon-Arena'),
(320, 1, 22, '[[0,0],[0,0]]', 'Fort Koga', 'Fort Koga'),
(321, 1, 22, '[[0,0],[0,0]]', 'Heroes\' Crypt', 'Gruft der Helden'),
(322, 1, 22, '[[0,0],[0,0]]', 'Shiverpeak Arena', 'Zittergipfel-Arena'),
(330, 1, 22, '[[0,0],[0,0]]', 'The Elite Zaishen Battle', 'Aufstieg der Helden'),
(339, 1, 22, '[[0,0],[0,0]]', 'D\'Alessio Arena', 'D\'Alessio-Arena'),
(340, 1, 22, '[[0,0],[0,0]]', 'Amnoon Arena', 'Amnoon-Arena'),
(341, 1, 22, '[[0,0],[0,0]]', 'Fort Koga', 'Fort Koga'),
(342, 1, 22, '[[0,0],[0,0]]', 'Heroes\' Crypt', 'Gruft der Helden'),
(343, 1, 22, '[[0,0],[0,0]]', 'Shiverpeak Arena', 'Zittergipfel-Arena'),
(352, 1, 22, '[[0,0],[0,0]]', 'Brawler\'s Pit', 'Schlägergrube'),
(353, 1, 22, '[[0,0],[0,0]]', 'Petrified Arena', 'Versteinerte Arena'),
(354, 1, 22, '[[0,0],[0,0]]', 'Seabed Arena', 'Meeresboden-Arena'),
(355, 1, 22, '[[0,0],[0,0]]', 'Isle of Weeping Stone', 'Insel des trauernden Steins'),
(356, 1, 22, '[[0,0],[0,0]]', 'Isle of Jade', 'Jadeinsel'),
(357, 1, 22, '[[0,0],[0,0]]', 'Imperial Isle', 'Kaiserinsel'),
(358, 1, 22, '[[0,0],[0,0]]', 'Isle of Meditation', 'Insel der Meditation'),
(366, 1, 22, '[[0,0],[0,0]]', 'Shing Jea Arena', 'Shing Jea-Arena'),
(368, 1, 22, '[[0,0],[0,0]]', 'Dragon Arena', 'Drachenarena'),
(421, 4, 14, '[[0,0],[0,0]]', 'Venta Cemetery', 'Totenanger von Venta'),
(424, 4, 14, '[[0,0],[0,0]]', 'Kodonur Crossroads', 'Kodonur-Kreuzung'),
(425, 4, 14, '[[0,0],[0,0]]', 'Rilohn Refuge', 'Rilohn-Refugium'),
(426, 4, 14, '[[0,0],[0,0]]', 'Pogahn Passage', 'Passage von Pogahn'),
(427, 4, 14, '[[0,0],[0,0]]', 'Moddok Crevice', 'Moddok-Spalte'),
(428, 4, 15, '[[0,0],[0,0]]', 'Tihark Orchard', 'Obstgarten von Tihark'),
(433, 4, 15, '[[0,0],[0,0]]', '<NAME>', 'Bastion von Dzagonur'),
(434, 4, 15, '[[0,0],[0,0]]', 'Dasha Vestibule', 'Vorhof von Dasha'),
(435, 4, 15, '[[0,0],[0,0]]', 'Grand Court of Sebelkeh', '<NAME>'),
(445, 6, 17, '[[0,0],[0,0]]', 'The Ebony Citadel of Mallyx', 'Die Ebenholz-Zitadelle des Mallyx'),
(467, 1, 22, '[[0,0],[0,0]]', 'Rollerbeetle Racing', 'Rollkäfer-Rennen'),
(474, 6, 17, '[[0,0],[0,0]]', 'Domain of Anguish', '<NAME>'),
(476, 4, 15, '[[0,0],[0,0]]', '<NAME>', '<NAME>'),
(477, 4, 14, '[[0,0],[0,0]]', 'Nundu Bay', 'Nundu-Bucht'),
(478, 4, 16, '[[0,0],[0,0]]', 'Gate of Desolation', 'Ödland-Tor'),
(480, 4, 16, '[[0,0],[0,0]]', 'Ruins of Morah', 'Ruinen von Morah'),
(491, 4, 13, '[[0,0],[0,0]]', '<NAME>', 'Ausgrabungsstätte von Jokanur'),
(492, 4, 13, '[[0,0],[0,0]]', 'Blacktide Den', 'Schwarzwasserloch'),
(493, 4, 13, '[[0,0],[0,0]]', 'Consulate Docks', 'Konsulatshafen'),
(494, 4, 17, '[[0,0],[0,0]]', 'Gate of Pain', 'Tor des Schmerzes'),
(495, 4, 17, '[[0,0],[0,0]]', 'Gate of Madness', 'Tor des Wahnsinns'),
(496, 4, 17, '[[0,0],[0,0]]', 'Abaddon\'s Gate', 'Abaddons Tor'),
(497, 1, 22, '[[0,0],[0,0]]', 'Sunspear Arena', 'Sonnenspeer-Arena'),
(504, 1, 22, '[[0,0],[0,0]]', 'Churranu Island Arena', 'Churranu-Insel-Arena'),
(533, 1, 22, '[[0,0],[0,0]]', 'Uncharted Isle', 'Unbekannte Insel'),
(534, 1, 22, '[[0,0],[0,0]]', 'Isle of Wurms', 'Insel der Würmer'),
(536, 1, 13, '[[0,0],[0,0]]', 'Sunspear Arena', 'Sonnenspeer-Arena'),
(541, 1, 22, '[[0,0],[0,0]]', 'Corrupted Isle', 'Verdorbene Insel'),
(542, 1, 22, '[[0,0],[0,0]]', 'Isle of Solitude', 'Insel der Einsamkeit'),
(544, 4, 13, '[[0,0],[0,0]]', 'Chahbek Village', 'Chahbek'),
(545, 2, 16, '[[0,0],[0,0]]', 'Remains of Sahlahja', 'Überreste Sahlahjars'),
(547, 1, 22, '[[0,0],[0,0]]', 'Bombardment', 'Bombadierung'),
(550, 1, 22, '[[0,0],[0,0]]', 'Hero Battles', 'Heldenkämpfe'),
(551, 1, 23, '[[0,0],[0,0]]', 'The Crossing', 'Die Vierung'),
(552, 1, 22, '[[0,0],[0,0]]', 'Desert Sands', 'Wüstensand'),
(554, 2, 14, '[[0,0],[0,0]]', 'Dajkah Inlet', 'Dajkah-Zulauf'),
(555, 2, 17, '[[0,0],[0,0]]', 'The Shadow Nexus', 'Der Nexus der Schatten'),
(560, 5, 21, '[[0,0],[0,0]]', 'Cathedral of Flames', 'Kathedrale der Flammen'),
(567, 5, 21, '[[0,0],[0,0]]', 'Cathedral of Flames', 'Kathedrale der Flammen'),
(568, 5, 21, '[[0,0],[0,0]]', 'Cathedral of Flames', 'Kathedrale der Flammen'),
(570, 5, 21, '[[0,0],[0,0]]', 'Catacombs of Kathandrax', 'Katakomben von Kathandrax'),
(571, 5, 21, '[[0,0],[0,0]]', 'Catacombs of Kathandrax', 'Katakomben von Kathandrax'),
(573, 5, 21, '[[0,0],[0,0]]', 'Rragar\'s_Menagerie', 'Rragars Menagerie'),
(574, 5, 21, '[[0,0],[0,0]]', 'Rragar\'s Menagerie', 'Rragars Menagerie'),
(575, 5, 21, '[[0,0],[0,0]]', 'Rragar\'s Menagerie', 'Rragars Menagerie'),
(576, 5, 21, '[[0,0],[0,0]]', 'Ooze Pit', 'Schleimgrube'),
(577, 6, 21, '[[0,0],[0,0]]', 'Slavers\' Exile', 'Das Exil des Sklavenhändlers'),
(578, 5, 21, '[[0,0],[0,0]]', 'Oola\'s Lab', 'Oolas Labor'),
(579, 5, 21, '[[0,0],[0,0]]', 'Oola\'s Lab', 'Oolas Labor'),
(580, 5, 21, '[[0,0],[0,0]]', 'Oola\'s Lab', 'Oolas Labor'),
(581, 5, 21, '[[0,0],[0,0]]', 'Shards of Orr', 'Scherben von Orr'),
(582, 5, 21, '[[0,0],[0,0]]', 'Shards of Orr', 'Scherben von Orr'),
(583, 5, 21, '[[0,0],[0,0]]', 'Shards of Orr', 'Scherben von Orr'),
(584, 5, 21, '[[0,0],[0,0]]', 'Arachni\'s Haunt', 'Arachnis Schlupfwinkel'),
(585, 5, 21, '[[0,0],[0,0]]', 'Arachni\'s Haunt', 'Arachnis Schlupfwinkel'),
(593, 1, 23, '[[0,0],[0,0]]', 'Fetid River', 'Stinkender Fluss'),
(596, 1, 23, '[[0,0],[0,0]]', 'Forgotten Shrines', 'Vergessene Schreine'),
(598, 1, 23, '[[0,0],[0,0]]', 'Antechamber', 'Die Vorkammer'),
(604, 5, 21, '[[0,0],[0,0]]', 'Vloxen Excavations', 'Vlox-Ausgrabungen'),
(605, 5, 21, '[[0,0],[0,0]]', 'Vloxen Excavations', 'Vlox-Ausgrabungen'),
(606, 5, 21, '[[0,0],[0,0]]', 'Vloxen Excavations', 'Vlox-Ausgrabungen'),
(607, 5, 21, '[[0,0],[0,0]]', 'Heart of the Shiverpeaks', '<NAME>'),
(608, 5, 21, '[[0,0],[0,0]]', 'Heart of the Shiverpeaks', 'Herz der Zittergipfel'),
(609, 5, 21, '[[0,0],[0,0]]', 'Heart of the Shiverpeaks', '<NAME>'),
(612, 5, 21, '[[0,0],[0,0]]', 'Bloodstone Caves', 'Blutstein-Höhlen'),
(613, 5, 21, '[[0,0],[0,0]]', 'Bloodstone Caves', 'Blutstein-Höhlen'),
(614, 5, 21, '[[0,0],[0,0]]', 'Bloodstone Caves', 'Blutstein-Höhlen'),
(615, 5, 21, '[[0,0],[0,0]]', 'Bogroot Growths', 'Sumpfwurzel-Gewirr'),
(616, 5, 21, '[[0,0],[0,0]]', 'Bogroot Growths', 'Sumpfwurzel-Gewirr'),
(617, 5, 21, '[[0,0],[0,0]]', 'Raven\'s Point', 'Rabenthron'),
(618, 5, 21, '[[0,0],[0,0]]', 'Raven\'s Point', 'Rabenthron'),
(619, 5, 21, '[[0,0],[0,0]]', 'Raven\'s Point', 'Rabenthron'),
(620, 6, 21, '[[0,0],[0,0]]', 'Slavers\' Exile', 'Das Exil des Sklavenhändlers'),
(621, 6, 21, '[[0,0],[0,0]]', 'Slavers\' Exile', 'Das Exil des Sklavenhändlers'),
(622, 6, 21, '[[0,0],[0,0]]', 'Slavers\' Exile', 'Das Exil des Sklavenhändlers'),
(623, 6, 21, '[[0,0],[0,0]]', 'Slavers\' Exile', 'Das Exil des Sklavenhändlers'),
(628, 5, 21, '[[0,0],[0,0]]', 'Sepulchre of Dragrimmar', 'Grabkammer des Dragrimmar'),
(629, 5, 21, '[[0,0],[0,0]]', 'Sepulchre of Dragrimmar', 'Grabkammer des Dragrimmar'),
(630, 5, 21, '[[0,0],[0,0]]', 'Frostmaw\'s Burrows', 'Frostrachens Hort'),
(631, 5, 21, '[[0,0],[0,0]]', 'Frostmaw\'s Burrows', 'Frostrachens Hort'),
(632, 5, 21, '[[0,0],[0,0]]', 'Frostmaw\'s Burrows', 'Frostrachens Hort'),
(633, 5, 21, '[[0,0],[0,0]]', 'Frostmaw\'s Burrows', 'Frostrachens Hort'),
(634, 5, 21, '[[0,0],[0,0]]', 'Frostmaw\'s Burrows', 'Frostrachens Hort'),
(635, 5, 21, '[[0,0],[0,0]]', 'Darkrime Delves', 'Düsterfels-Höhlen'),
(636, 5, 21, '[[0,0],[0,0]]', 'Darkrime Delves', 'Düsterfels-Höhlen'),
(637, 5, 21, '[[0,0],[0,0]]', 'Darkrime Delves', 'Düsterfels-Höhlen'),
(655, 4, 21, '[[0,0],[0,0]]', 'A Gate Too Far', 'Ein Portal zu weit'),
(656, 4, 21, '[[0,0],[0,0]]', 'A Gate Too Far', 'Ein Portal zu weit'),
(657, 4, 21, '[[0,0],[0,0]]', 'A Gate Too Far', 'Ein Portal zu weit'),
(658, 4, 21, '[[0,0],[0,0]]', 'The Elusive Golemancer', 'Die scheue Golemantin'),
(659, 4, 21, '[[0,0],[0,0]]', 'The Elusive Golemancer', 'Die scheue Golemantin'),
(660, 4, 21, '[[0,0],[0,0]]', 'The Elusive Golemancer', 'Die scheue Golemantin'),
(661, 4, 21, '[[0,0],[0,0]]', 'Finding the Bloodstone', 'Auf der Suche nach dem Blutstein'),
(662, 4, 21, '[[0,0],[0,0]]', 'Finding the Bloodstone', 'Auf der Suche nach dem Blutstein'),
(663, 4, 21, '[[0,0],[0,0]]', 'Finding the Bloodstone', 'Auf der Suche nach dem Blutstein'),
(666, 4, 21, '[[0,0],[0,0]]', 'Warband of Brothers', 'Brudertrupp'),
(667, 4, 21, '[[0,0],[0,0]]', 'Warband of Brothers', 'Brudertrupp'),
(668, 4, 21, '[[0,0],[0,0]]', 'Warband of Brothers', 'Brudertrupp'),
(670, 4, 21, '[[0,0],[0,0]]', 'Destruction\'s Depths', 'Tiefen der Zerstörung'),
(671, 4, 21, '[[0,0],[0,0]]', 'Destruction\'s Depths', 'Tiefen der Zerstörung'),
(672, 4, 21, '[[0,0],[0,0]]', 'Destruction\'s Depths', 'Tiefen der Zerstörung'),
(676, 5, 21, '[[0,0],[0,0]]', 'Catacombs of Kathandrax', 'Katakomben von Kathandrax'),
(701, 5, 21, '[[0,0],[0,0]]', 'Secret Lair of the Snowmen', 'Der geheime Unterschlupf der Schneemänner'),
(704, 5, 21, '[[0,0],[0,0]]', 'Fronis Irontoe\'s Lair', 'Fronis Eisenzehes Lager'),
(722, 1, 22, '[[0,0],[0,0]]', 'Whitefury Rapids', 'Wildwasser-Stromschnellen'),
(723, 1, 22, '[[0,0],[0,0]]', 'Kysten Shore', 'Kysten-Küste'),
(724, 1, 22, '[[0,0],[0,0]]', 'Deepway Ruins', 'Tiefenbach-Ruinen'),
(725, 1, 22, '[[0,0],[0,0]]', 'Plikkup Works', 'Plikkup-Werke'),
(784, 1, 22, '[[0,0],[0,0]]', 'Isle of the Nameless', 'Insel der Namenlosen'),
(868, 1, 23, '[[0,0],[0,0]]', 'Scarred Psyche', 'Verletzte Psyche'),
(997, 1, 12, '[[0,0],[0,0]]', 'Kaanai Canyon', 'Kaanai-Schlucht'),
(998, 1, 11, '[[0,0],[0,0]]', 'Saltspray Beach', 'Salzgischtstrand'),
(999, 1, 11, '[[0,0],[0,0]]', 'The Ancestral Lands', 'Das Land der Ahnen');
|
-- \i /home/globi/sex_for_many/sql/video.sql
-- \i /root/sex_for_many/sql/video.sql
drop table if exists video;
create table video(
r_id int not null, -- model id
nick varchar(16) unique not null references buser(bname),
src text, -- video src
poster text, -- video poster src
crat TIMESTAMP NOT NULL default now()::timestamp, -- created at
v int not null default 0 -- how much users views the video
);
|
-- Postgres style WITHIN GROUP window functions
SELECT ARRAY_AGG(o_orderkey) WITHIN GROUP (ORDER BY o_orderkey ASC)
FROM orders
|
-- Check views for upstream tables/materialized views before changing/using!
--DROP VIEW models.ras_project_summary;
CREATE OR REPLACE VIEW models.ras_project_summary AS
SELECT squery.col_1 AS "1. Project Title",
squery.col_2 AS "2. Description",
squery.col_3 AS "3. Units",
squery.col_4 AS "4. Data Collection",
squery.col_5 AS "5. Source",
squery.s3_key AS s3_key
FROM
(SELECT
t.title AS col_1,
t.description AS col_2,
t.units AS col_3,
i.title AS col_4,
i."source" AS col_5,
r.s3_key AS s3_key
FROM ras_project_metadata t
JOIN models.model r ON r.model_inventory_id = t.model_inventory_id
JOIN inventory.collections i ON i.collection_id = t.collection
) squery;
-- DROP VIEW models.ras_plan_files;
CREATE OR REPLACE VIEW models.ras_plan_files AS
SELECT squery.col_1 AS "1. Plan Title",
squery.col_2 AS "2. Plan File",
squery.col_3 AS "3. Simulation Files (geometry | flow)",
squery.col_4 AS "4. Description",
squery.col_5 AS "5. Flow Regime",
squery.col_6 AS "6. RAS Version",
squery.s3_key AS s3_key
FROM
(SELECT
t.plan_title AS col_1,
t.file_ext AS col_2,
CASE
WHEN t.flow_file IS NOT NULL THEN rgm.geom_title ||' | ' || rfm.flow_title
WHEN t.unsteady_file IS NOT NULL THEN rgm.geom_title ||' | ' || rfm.flow_title
WHEN t.quasi_steady_file IS NOT NULL THEN rgm.geom_title ||' | ' || rfm.flow_title
END col_3,
t.description AS col_4,
t.flow_regime AS col_5,
t."version" AS col_6,
r.s3_key AS s3_key
FROM ras_plan_metadata t
JOIN models.model r ON r.model_inventory_id = t.model_inventory_id
LEFT JOIN models.ras_geometry_metadata rgm
ON rgm.model_inventory_id = t.model_inventory_id
AND t.geom_file = LTRIM(rgm.file_ext,'.')
LEFT JOIN models.ras_flow_metadata rfm
ON rfm.model_inventory_id = t.model_inventory_id
AND t.flow_file = LTRIM(rfm.file_ext,'.')
) squery;
-- DROP VIEW models.ras_flow_files;
CREATE OR REPLACE VIEW models.ras_flow_files AS
SELECT squery.col_1 AS "1. Flow Title",
squery.col_2 AS "2. Simulation File",
squery.col_3 AS "3. Type",
squery.col_4 AS "4. Profiles",
squery.col_5 AS "5. Profile Names",
squery.col_6 AS "6. RAS Version",
squery.s3_key AS s3_key
FROM
(SELECT
t.flow_title AS col_1,
t.file_ext AS col_2,
CASE
-- update tjios!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WHEN t.file_ext IS NOT NULL THEN 'Steady'
WHEN t.file_ext IS NOT NULL THEN 'Unsteady'
WHEN t.file_ext IS NOT NULL THEN 'Quasi-Steady'
END col_3,
t.num_profiles AS col_4,
t.profile_names AS col_5,
t."version" AS col_6,
r.s3_key AS s3_key
FROM ras_flow_metadata t
JOIN models.model r ON r.model_inventory_id = t.model_inventory_id
) squery;
-- TODO: SPlit this into 2 queries: for files and river-reaches
-- DROP VIEW models.ras_geometry_file_view;
CREATE VIEW models.ras_geometry_file_view AS
SELECT geometry.geom_title AS "1. Geometry Title",
geometry.file_ext AS "2. Simulation File",
geometry.river_name || ' - ' || geometry.reach_name AS "3. River - Reach",
geometry.geom_description AS "4. Description",
geometry.n_cross_sections AS "5. Cross Sections",
geometry.n_culverts AS "6. Culverts",
geometry.num_bridges AS "7. Bridges",
geometry.num_inline_wiers AS "8. Inline Wiers",
geometry.geometry_model_version AS "9. Version",
plan.s3_key AS "s3_key"
FROM ( SELECT c.title,
m.name AS model_name,
m.model_inventory_id,
m.s3_key AS "s3_key"
FROM models.model m
JOIN inventory.collections c USING (collection_id)
WHERE m.type = 'RAS'::text AND (m.model_metadata ->> 'PlanFiles'::text) <> 'null'::text
AND (m.model_metadata ->> 'ProjFileContents'::text) <> 'null'::text) plan
JOIN ( WITH query_1 AS (
SELECT m.model_inventory_id,
m.model_metadata ->> 'GeomFiles'::text AS geom_files
FROM models.model m
ORDER BY m.model_inventory_id
), query_2 AS (
SELECT query_1.model_inventory_id,
json_array_elements(query_1.geom_files::json) ->> 'Program Version'::text AS geometry_model_version,
json_array_elements(query_1.geom_files::json) ->> 'Geom Title'::text AS geom_title,
json_array_elements(query_1.geom_files::json) ->> 'File Extension'::text AS file_ext,
json_array_elements(query_1.geom_files::json) ->> 'Description'::text AS geom_description,
json_array_elements(query_1.geom_files::json) ->> 'Hydraulic Structures'::text AS structs
FROM query_1
WHERE query_1.geom_files IS NOT NULL
ORDER BY query_1.model_inventory_id
)
SELECT query_2.model_inventory_id,
query_2.geometry_model_version,
query_2.geom_title,
query_2.file_ext,
query_2.geom_description,
(json_array_elements(query_2.structs::json) -> 'Inline Weir Data'::text) ->> 'Num Inline Weirs'::text AS num_inline_wiers,
(json_array_elements(query_2.structs::json) -> 'Culvert Data'::text) ->> 'Num Culverts'::text AS n_culverts,
(json_array_elements(query_2.structs::json) -> 'Bridge Data'::text) ->> 'Num Bridges'::text AS num_bridges,
json_array_elements(query_2.structs::json) ->> 'Num CrossSections'::text AS n_cross_sections,
json_array_elements(query_2.structs::json) ->> 'Reach Name'::text AS reach_name,
json_array_elements(query_2.structs::json) ->> 'River Name'::text AS river_name
FROM query_2
WHERE query_2.structs IS NOT NULL
ORDER BY query_2.geom_title) geometry USING (model_inventory_id)
ORDER BY "1. Geometry Title"; |
<reponame>algorythmist/fluid-spring-batch
create table client (
id bigint not null,
gender char(10),
birth_date date,
district varchar(100)
);
create table account (
id bigint not null,
statement_frequency char(10),
date_opened date,
district varchar(100)
);
create table client_account(
id bigint not null,
client_id bigint not null,
account_id bigint not null,
owner_type varchar(255)
);
create table account_transaction (
id bigint not null,
account_id bigint not null,
transaction_date date not null,
transaction_type varchar(255),
operation varchar(255),
category varchar(255),
transaction_amount decimal(32,6),
balance_amount decimal(32,6),
bank char(10)
);
|
<gh_stars>1-10
DROP FUNCTION IF EXISTS dbo.[RegexMatches]
GO
CREATE FUNCTION [dbo].RegexMatches
(
@StringToParse [nvarchar](MAX)
, @Pattern nvarchar(max)
)
RETURNS TABLE (RegexMatch nvarchar(max))
AS EXTERNAL NAME CLR.RegexFunctions.RegexMatches;
|
<filename>batch/sql/fix-provisioning-bug.sql<gh_stars>100-1000
DELIMITER $$
DROP TRIGGER IF EXISTS attempts_before_update;
CREATE TRIGGER attempts_before_update BEFORE UPDATE ON attempts
FOR EACH ROW
BEGIN
IF OLD.start_time IS NOT NULL AND (NEW.start_time IS NULL OR OLD.start_time < NEW.start_time) THEN
SET NEW.start_time = OLD.start_time;
END IF;
# for job private instances that do not finish creating
IF NEW.reason = 'activation_timeout' THEN
SET NEW.start_time = NULL;
END IF;
IF OLD.reason IS NOT NULL AND (OLD.end_time IS NULL OR NEW.end_time IS NULL OR NEW.end_time >= OLD.end_time) THEN
SET NEW.end_time = OLD.end_time;
SET NEW.reason = OLD.reason;
END IF;
END $$
DELIMITER ;
|
--
-- initial table design
-- before normalization
--
CREATE TABLE employee (
employee_id SERIAL,
first_name VARCHAR(50),
last_name VARCHAR(50),
hire_date DATE,
salary NUMERIC(9,2),
manager INTEGER,
dept_id INTEGER,
dept_name VARCHAR(50),
office_1 VARCHAR(50),
phone_number_1 VARCHAR(50),
office_2 VARCHAR(50),
phone_number_2 VARCHAR(50),
office_3 VARCHAR(50),
phone_number_3 VARCHAR(50),
PRIMARY KEY (employee_id)
);
|
<gh_stars>0
CREATE TABLE TRAINING_STIPEND_RATES (
TRAINING_STIPEND_RATES_ID DECIMAL(12,0) NOT NULL,
CAREER_LEVEL VARCHAR(50) NOT NULL,
EXPERIENCE_LEVEL DECIMAL(3,0) NOT NULL,
STIPEND_RATE DECIMAL(12,2),
EFFECTIVE_DATE DATE,
DESCRIPTION VARCHAR(200),
UPDATE_TIMESTAMP DATE NOT NULL,
UPDATE_USER VARCHAR(8) NOT NULL,
VER_NBR DECIMAL(8,0) DEFAULT 1 NOT NULL,
OBJ_ID VARCHAR(36) DEFAULT '' NOT NULL
) ENGINE InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
ALTER TABLE TRAINING_STIPEND_RATES
ADD CONSTRAINT PK_TRAINING_STIPEND_RATES
PRIMARY KEY (TRAINING_STIPEND_RATES_ID); |
-- SPDX-License-Identifier: Apache-2.0
-- Licensed to the Ed-Fi Alliance under one or more agreements.
-- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0.
-- See the LICENSE and NOTICES files in the project root for more information.
PRINT N'Adding foreign keys to [edfi].[PostSecondaryEvent]'
GO
ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [FK_PostSecondaryEvent_PostSecondaryEventCategoryDescriptor] FOREIGN KEY ([PostSecondaryEventCategoryDescriptorId]) REFERENCES [edfi].[PostSecondaryEventCategoryDescriptor] ([PostSecondaryEventCategoryDescriptorId])
GO
ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [FK_PostSecondaryEvent_PostSecondaryInstitution] FOREIGN KEY ([PostSecondaryInstitutionId]) REFERENCES [edfi].[PostSecondaryInstitution] ([PostSecondaryInstitutionId])
GO
ALTER TABLE [edfi].[PostSecondaryEvent] ADD CONSTRAINT [FK_PostSecondaryEvent_Student] FOREIGN KEY ([StudentUSI]) REFERENCES [edfi].[Student] ([StudentUSI])
GO
|
#macro($listRulesByActivity(activityCode))
SELECT * FROM lottery_activity_rule WHERE activity_code=:activityCode
#end
|
create table tab_new
(
id number(15)
);
comment on column tab_new.id is 'id2';
|
<reponame>Steague/GZMobile<gh_stars>0
ALTER TABLE `gzdata`.`players`
ADD COLUMN `archetype` VARCHAR(45) NULL AFTER `name`;
|
psql -U postgres -p 35432 -c "CREATE ROLE blog_owner LOGIN ENCRYPTED PASSWORD '<PASSWORD>' NOSUPERUSER;"
createdb -U postgres -p 35432 -O blog_owner blog
psql -U postgres -p 35432 -c "CREATE ROLE blogdemo_owner LOGIN ENCRYPTED PASSWORD '<PASSWORD>' NOSUPERUSER;"
createdb -U postgres -p 35432 -O blogdemo_owner blogdemo
|
# --- !Ups
CREATE TYPE state AS ENUM ('IN_PROGRESS', 'ON_HOLD', 'CANCELLED', 'COMPLETED');
CREATE TYPE completable_by_type AS ENUM ('EMAIL', 'GROUP');
CREATE TABLE request (
slug TEXT PRIMARY KEY,
name TEXT NOT NULL,
create_date TIMESTAMP WITH TIME ZONE NOT NULL,
creator_email TEXT NOT NULL,
state state NOT NULL,
completed_date TIMESTAMP WITH TIME ZONE
);
CREATE TABLE task (
id SERIAL PRIMARY KEY,
completable_by_type completable_by_type NOT NULL,
completable_by_value TEXT NOT NULL,
completed_by_email TEXT,
completed_date TIMESTAMP WITH TIME ZONE,
state state NOT NULL,
prototype jsonb,
data jsonb,
request_slug TEXT REFERENCES request(slug)
);
CREATE TABLE comment (
id SERIAL PRIMARY KEY,
creator_email TEXT NOT NULL,
create_date TIMESTAMP WITH TIME ZONE NOT NULL,
contents TEXT NOT NULL,
task_id INTEGER REFERENCES task(id)
)
# --- !Downs
DROP TABLE comment;
DROP TABLE task;
DROP TABLE request;
DROP TYPE completable_by_type;
DROP TYPE state;
|
-- @testpoint:停用词测试
--停用词影响tsvector中的位置
SELECT to_tsvector('english','in the list of stop words');
SELECT to_tsvector('english','list stop words');
--包含和不包含停用词的文档计算出的排序是完全不同的
SELECT ts_rank_cd (to_tsvector('english','in the list of stop words'), to_tsquery('list & stop'));
SELECT ts_rank_cd (to_tsvector('english','list stop words'), to_tsquery('list & stop')); |
<reponame>fairhopeweb/web2project
-- Updated the database fields because we really only care about the start and end *dates* not also the times.
ALTER TABLE `projects` CHANGE `project_start_date` `project_start_date` DATE NULL DEFAULT NULL;
ALTER TABLE `projects` CHANGE `project_end_date` `project_end_date` DATE NULL DEFAULT NULL; |
<reponame>ehabarman/Leetcode
SELECT a.Name AS 'Employee'
FROM Employee a, Employee b
WHERE a.ManagerId = b.Id AND a.Salary > b.Salary; |
<filename>bp2/predavanja/31.right.sql
SELECT RIGHT('Headset Ball Bearings', 8) |
<reponame>xiaomantou88/laravel-blog
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 2015-05-20 17:47:04
-- 服务器版本: 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `blog`
--
-- --------------------------------------------------------
--
-- 表的结构 `articles`
--
CREATE TABLE IF NOT EXISTS `articles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL,
`body` text NOT NULL,
`author` int(11) NOT NULL,
`category_id` int(11) NOT NULL COMMENT '分类',
`click` int(11) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- 表的结构 `article_tags`
--
CREATE TABLE IF NOT EXISTS `article_tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`article_id` int(11) NOT NULL,
`tag_id` int(11) NOT NULL,
`status` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章与tag关系表' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `categorys`
--
CREATE TABLE IF NOT EXISTS `categorys` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`status` tinyint(4) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='文章分类表' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `migrations`
--
CREATE TABLE IF NOT EXISTS `migrations` (
`migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- 表的结构 `password_resets`
--
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
KEY `password_resets_email_index` (`email`),
KEY `password_resets_token_index` (`token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- 表的结构 `tags`
--
CREATE TABLE IF NOT EXISTS `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(20) NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='tag ' AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- 表的结构 `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(60) COLLATE utf8_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci 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 */;
|
-- MySQL dump 10.13 Distrib 8.0.16, for Win64 (x86_64)
--
-- Host: localhost Database: jcarstore
-- ------------------------------------------------------
-- Server version 8.0.16
/*!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 */;
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 `administrador`
--
DROP TABLE IF EXISTS `administrador`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `administrador` (
`id_administrador` int(11) NOT NULL AUTO_INCREMENT,
`nome_administrador` varchar(255) DEFAULT NULL,
`email_administrador` varchar(255) DEFAULT NULL,
`senha_administrador` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_administrador`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `administrador`
--
LOCK TABLES `administrador` WRITE;
/*!40000 ALTER TABLE `administrador` DISABLE KEYS */;
INSERT INTO `administrador` VALUES (1,'Mateus','<EMAIL>','mateus'),(2,'Fábio','<EMAIL>','fabio'),(4,'mateus','1','luiz');
/*!40000 ALTER TABLE `administrador` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cliente`
--
DROP TABLE IF EXISTS `cliente`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `cliente` (
`id_cliente` int(11) NOT NULL AUTO_INCREMENT,
`cpf_cliente` varchar(20) DEFAULT NULL,
`nome_cliente` varchar(255) NOT NULL,
`nascimento_cliente` varchar(255) DEFAULT NULL,
`foto_cliente` varchar(255) DEFAULT NULL,
`endereco_cliente` varchar(1000) DEFAULT NULL,
`email_cliente` varchar(255) NOT NULL,
`senha_cliente` varchar(255) NOT NULL,
PRIMARY KEY (`id_cliente`)
) ENGINE=InnoDB AUTO_INCREMENT=265 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cliente`
--
LOCK TABLES `cliente` WRITE;
/*!40000 ALTER TABLE `cliente` DISABLE KEYS */;
INSERT INTO `cliente` VALUES (259,'123.456.789.10','<NAME>','13/01/1950',NULL,'R<NAME>','<EMAIL>','raul'),(260,'987.166.815-36','<NAME>','09/01/1943',NULL,'Avenida Olegário Maciel 2','<EMAIL>','enrico'),(261,'654.258.951-69','<NAME>','25/09/1980',NULL,'<NAME>','<EMAIL>','carol'),(262,'147.963.954-28','<NAME>','20/02/1999',NULL,'<NAME>','<EMAIL>','brenda'),(263,'684.963.785-11','<NAME>','18/03/1980',NULL,'\"<NAME>','<EMAIL>','luciana');
/*!40000 ALTER TABLE `cliente` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `veiculo`
--
DROP TABLE IF EXISTS `veiculo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `veiculo` (
`id_veiculo` int(11) NOT NULL AUTO_INCREMENT,
`modelo_veiculo` varchar(255) NOT NULL,
`marca_veiculo` varchar(255) DEFAULT NULL,
`ano_veiculo` int(11) DEFAULT NULL,
`foto_veiculo` varchar(255) DEFAULT NULL,
`descricao_veiculo` varchar(1000) DEFAULT NULL,
`preco_custo` double NOT NULL,
`preco_venda` double NOT NULL,
PRIMARY KEY (`id_veiculo`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `veiculo`
--
LOCK TABLES `veiculo` WRITE;
/*!40000 ALTER TABLE `veiculo` DISABLE KEYS */;
INSERT INTO `veiculo` VALUES (8,'Cruze','Chevrolet',2018,NULL,'Carro confortável',50000,80000),(9,'Uno','Fiat',2009,NULL,'Carro barato',15000,22000),(10,'S10','Chevrolet',2015,NULL,'À diesel',110000,160000),(11,'Fusca','Voks',1980,NULL,'Velho e bonito',10000,20000),(12,'Carrera GT','Porsche',2005,NULL,'Rápido',600000,1000000);
/*!40000 ALTER TABLE `veiculo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `venda`
--
DROP TABLE IF EXISTS `venda`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `venda` (
`id_venda` int(11) NOT NULL AUTO_INCREMENT,
`id_cliente` int(11) NOT NULL,
`id_veiculo` int(11) NOT NULL,
`quantidade_comprada` int(11) DEFAULT NULL,
`lucro_venda` double DEFAULT NULL,
`data_venda` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_venda`),
KEY `venda_fk_cliente_idx` (`id_cliente`),
KEY `venda_fk_veiculo_idx` (`id_veiculo`),
CONSTRAINT `venda_fk_cliente` FOREIGN KEY (`id_cliente`) REFERENCES `cliente` (`id_cliente`) ON DELETE RESTRICT ON UPDATE RESTRICT,
CONSTRAINT `venda_fk_veiculo` FOREIGN KEY (`id_veiculo`) REFERENCES `veiculo` (`id_veiculo`) ON DELETE RESTRICT ON UPDATE RESTRICT
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `venda`
--
LOCK TABLES `venda` WRITE;
/*!40000 ALTER TABLE `venda` DISABLE KEYS */;
/*!40000 ALTER TABLE `venda` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping events for database 'jcarstore'
--
--
-- Dumping routines for database 'jcarstore'
--
/*!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 2019-06-29 21:12:07
|
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Počítač: 127.0.0.1
-- Vytvořeno: Stř 01. dub 2015, 08:38
-- Verze serveru: 5.6.21
-- Verze PHP: 5.6.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Databáze: `litkeep`
--
-- --------------------------------------------------------
--
-- Struktura tabulky `article`
--
CREATE TABLE IF NOT EXISTS `article` (
`id` int(10) unsigned NOT NULL,
`editable` tinyint(1) unsigned NOT NULL,
`user_id` int(11) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `comment`
--
CREATE TABLE IF NOT EXISTS `comment` (
`id` int(11) NOT NULL,
`guid` varchar(255) NOT NULL,
`user_id` int(11) NOT NULL,
`content` text NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `community`
--
CREATE TABLE IF NOT EXISTS `community` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`description` text NOT NULL,
`url` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `disc_forum`
--
CREATE TABLE IF NOT EXISTS `disc_forum` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`url` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `disc_thread`
--
CREATE TABLE IF NOT EXISTS `disc_thread` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`forum_id` int(11) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`title` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `like`
--
CREATE TABLE IF NOT EXISTS `like` (
`id` int(11) NOT NULL,
`comment_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `member`
--
CREATE TABLE IF NOT EXISTS `member` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`community_id` int(11) NOT NULL,
`role` varchar(255) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `score`
--
CREATE TABLE IF NOT EXISTS `score` (
`id` int(11) NOT NULL,
`article_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`value` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(10) unsigned NOT NULL,
`admin` tinyint(1) NOT NULL,
`name` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`description` text NOT NULL,
`cv` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Struktura tabulky `version`
--
CREATE TABLE IF NOT EXISTS `version` (
`id` int(10) unsigned NOT NULL,
`article_id` int(10) unsigned NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`author_id` int(10) unsigned NOT NULL,
`parent` int(10) unsigned NOT NULL,
`url` varchar(255) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
--
-- Klíče pro exportované tabulky
--
--
-- Klíče pro tabulku `article`
--
ALTER TABLE `article`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
--
-- Klíče pro tabulku `comment`
--
ALTER TABLE `comment`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `community`
--
ALTER TABLE `community`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `disc_forum`
--
ALTER TABLE `disc_forum`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `disc_thread`
--
ALTER TABLE `disc_thread`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `like`
--
ALTER TABLE `like`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `member`
--
ALTER TABLE `member`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `score`
--
ALTER TABLE `score`
ADD PRIMARY KEY (`id`);
--
-- Klíče pro tabulku `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`);
--
-- Klíče pro tabulku `version`
--
ALTER TABLE `version`
ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `id` (`id`,`article_id`), ADD KEY `article_id` (`article_id`), ADD KEY `author_id` (`author_id`);
--
-- AUTO_INCREMENT pro tabulky
--
--
-- AUTO_INCREMENT pro tabulku `article`
--
ALTER TABLE `article`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT pro tabulku `comment`
--
ALTER TABLE `comment`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `community`
--
ALTER TABLE `community`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pro tabulku `disc_forum`
--
ALTER TABLE `disc_forum`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pro tabulku `disc_thread`
--
ALTER TABLE `disc_thread`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `like`
--
ALTER TABLE `like`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pro tabulku `member`
--
ALTER TABLE `member`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pro tabulku `score`
--
ALTER TABLE `score`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT pro tabulku `user`
--
ALTER TABLE `user`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT pro tabulku `version`
--
ALTER TABLE `version`
MODIFY `id` int(10) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=18;
--
-- Omezení pro exportované tabulky
--
--
-- Omezení pro tabulku `version`
--
ALTER TABLE `version`
ADD CONSTRAINT `version_ibfk_1` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`),
ADD CONSTRAINT `version_ibfk_2` FOREIGN KEY (`author_id`) REFERENCES `user` (`id`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
select * from user where pseudo like "fre%";
select * from user;
select * from photo;
select * from photo_type;
select * from annonce;
select * from commentaire;
update user set wp = "259f22ddc4876510cf309100b93d84df13a9bb279c75b89a3acadf3b63049081" where id = 2;
SELECT * FROM user left join user_type on user_type.id = user.type_id ORDER BY pseudo;
update annonce set statut_id = 1 where id =4;
delete from photo where id = 4;
SELECT annonce_id FROM reservation GROUP BY annonce_id;
SELECT annonce_id
FROM reservation
WHERE
(date_debut <= '2017-09-01' AND date_fin > '2017-10-01' AND date_fin < '2017-09-01') OR
(date_debut > '2017-10-01' AND date_debut < '2017-09-01' AND date_fin >= '2017-09-01') OR
(date_debut >= '2017-10-01' AND date_fin <= '2017-09-01') OR (date_debut < '2017-10-01' AND date_fin > '2017-09-01') GROUP BY annonce_id;
SELECT annonce_id, count(annonce_id) from favoris group by annonce_id order by annonce_id;
SELECT a.id, a.titre, a.tarif, a.capacite , p.type_id, p.photo_path
FROM annonce as a
inner join photo as p on a.id = p.annonce_id
WHERE statut_id = 1 order by id asc;
SET @id = 0;
SELECT a.* , @id := a.id,
(select count(annonce_id)
from favoris
where annonce_id = @id ) as nombre
FROM annonce as a
WHERE statut_id = 1 order by nombre desc;
SELECT annonce_id, count(annonce_id) from favoris group by annonce_id order by annonce_id;
select * from favoris;
select annonce_id, count(annonce_id) from favoris group by annonce_id;
select count(annonce_id) from favoris group by annonce_id; |
INSERT INTO department
(name)
VALUES
('HR'),
('Accounting'),
('Sales'),
('IT');
INSERT INTO role
(title, salary, department_id)
VALUES
('HR Generalist', 50000, 1),
('HR Director', 80000, 1),
('Accountant', 75000, 2),
('Junior Accountant', 50000, 2),
('Sales Manager', 100000, 3),
('Sales Representative', 65000, 3),
('IT Manager', 100000, 4),
('IT Tech', 70000, 4);
INSERT INTO employee
(first_name, last_name, role_id, manager_id)
VALUES
("Dasher", "Snow", 1, NULL),
("Prancer", "Golden", 2, 1),
("Comet", "Cringle", 3, NULL),
("Donner", "Wood", 4, 3),
("Dancer", "Brown", 5, NULL),
("Vixen", "White", 6, 5),
("Blitzen", "Green", 7, NULL),
("Rudolph", "Bell", 8, 7); |
<reponame>ScottzMC/blog<filename>blog_db(2).sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 20, 2020 at 12:31 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `blog_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_banner`
--
CREATE TABLE `tbl_banner` (
`id` int(11) NOT NULL,
`title` varchar(70) NOT NULL,
`type` varchar(70) NOT NULL,
`image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_banner`
--
INSERT INTO `tbl_banner` (`id`, `title`, `type`, `image`) VALUES
(1, 'Get the best articles here', 'Home', 'blog11.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_contact`
--
CREATE TABLE `tbl_contact` (
`id` int(11) NOT NULL,
`fullname` varchar(70) NOT NULL,
`email` varchar(100) NOT NULL,
`body` text NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_gallery`
--
CREATE TABLE `tbl_gallery` (
`id` int(11) NOT NULL,
`category` varchar(50) NOT NULL,
`image` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_gallery`
--
INSERT INTO `tbl_gallery` (`id`, `category`, `image`) VALUES
(1, '', 'blog1.jpg'),
(2, '', 'blog11.jpg'),
(5, 'Cyberspace', 'real_estate3.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_menu`
--
CREATE TABLE `tbl_menu` (
`id` int(11) NOT NULL,
`category` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_menu`
--
INSERT INTO `tbl_menu` (`id`, `category`) VALUES
(1, 'Health-&-Fitness'),
(2, 'Technology'),
(4, 'Cyberspace');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_post`
--
CREATE TABLE `tbl_post` (
`id` int(11) NOT NULL,
`code` varchar(20) NOT NULL,
`title` varchar(70) NOT NULL,
`body` text NOT NULL,
`category` varchar(70) NOT NULL,
`viewed` int(100) NOT NULL,
`affliate` int(10) NOT NULL,
`image` varchar(100) NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_post`
--
INSERT INTO `tbl_post` (`id`, `code`, `title`, `body`, `category`, `viewed`, `affliate`, `image`, `created_date`) VALUES
(1, 'HE12KI33I', 'Hair-You’ve-Always-Dreamed-Of', 'Ex si esse deserunt, et dolore occaecat, singulis tamen e possumus voluptatibus, varias cernantur si aute quid. Noster vidisse iis exquisitaque, deserunt te irure. Ubi illum nostrud fidelissimae id occaecat duis probant. Occaecat hic quorum aliquip se…', 'Health-&-Fitness', 1, 0, 'blog1.jpg', '2020-08-12 17:55:17'),
(2, 'JKO342KK', '15-Of-The-World’s-Best-Carnivals', 'Aliquip e duis. Se labore ullamco excepteur iis ullamco sint duis laboris amet sed ita occaecat de cernantur quo fore coniunctione voluptate enim senserit. Si ut nulla laboris, an eiusmod e incididunt. Non varias enim duis singulis, a quorum cupidatat. Voluptate summis…', 'Health-&-Fitness', 0, 0, 'blog11.jpg', '2020-08-12 17:56:04');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_post_comment`
--
CREATE TABLE `tbl_post_comment` (
`id` int(11) NOT NULL,
`post_id` int(10) NOT NULL,
`fullname` varchar(70) NOT NULL,
`body` text NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `tbl_post_notification`
--
CREATE TABLE `tbl_post_notification` (
`id` int(11) NOT NULL,
`email` varchar(100) NOT NULL,
`subscribed` varchar(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_post_notification`
--
INSERT INTO `tbl_post_notification` (`id`, `email`, `subscribed`) VALUES
(1, '<EMAIL>', 'Yes'),
(2, '<EMAIL>', 'Yes');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_user`
--
CREATE TABLE `tbl_user` (
`id` int(11) NOT NULL,
`firstname` varchar(50) NOT NULL,
`lastname` varchar(70) NOT NULL,
`email` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
`status` varchar(50) NOT NULL,
`created_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_user`
--
INSERT INTO `tbl_user` (`id`, `firstname`, `lastname`, `email`, `password`, `status`, `created_date`) VALUES
(1, 'Rising', 'Phoenix', '<EMAIL>', '$2a$08$h/vMcRXZYFn0hM.5H.QC/emMpMhs4gdS5dn6dvD2QKllctjLStURa', 'Admin', '2020-08-15 22:39:38');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_banner`
--
ALTER TABLE `tbl_banner`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_contact`
--
ALTER TABLE `tbl_contact`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_gallery`
--
ALTER TABLE `tbl_gallery`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_menu`
--
ALTER TABLE `tbl_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_post`
--
ALTER TABLE `tbl_post`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_post_comment`
--
ALTER TABLE `tbl_post_comment`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_post_notification`
--
ALTER TABLE `tbl_post_notification`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_user`
--
ALTER TABLE `tbl_user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_banner`
--
ALTER TABLE `tbl_banner`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_contact`
--
ALTER TABLE `tbl_contact`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tbl_gallery`
--
ALTER TABLE `tbl_gallery`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tbl_menu`
--
ALTER TABLE `tbl_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `tbl_post`
--
ALTER TABLE `tbl_post`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tbl_post_comment`
--
ALTER TABLE `tbl_post_comment`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_post_notification`
--
ALTER TABLE `tbl_post_notification`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tbl_user`
--
ALTER TABLE `tbl_user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 26-10-2015 a las 03:45:24
-- Versión del servidor: 5.6.26
-- Versión de PHP: 5.6.12
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: `sicadb`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `correos`
--
CREATE TABLE IF NOT EXISTS `correos` (
`id_persona` int(11) NOT NULL,
`id_correo` int(11) NOT NULL,
`correo` varchar(50) DEFAULT NULL,
`predeterminado` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `documentos`
--
CREATE TABLE IF NOT EXISTS `documentos` (
`id_persona` int(11) NOT NULL,
`id_tipo_documento` int(11) DEFAULT NULL,
`documento` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `domicilios`
--
CREATE TABLE IF NOT EXISTS `domicilios` (
`id_persona` int(11) NOT NULL,
`id_pais` int(11) NOT NULL,
`id_departamento` int(11) NOT NULL,
`id_ciudad` int(11) NOT NULL,
`id_domicilio` int(11) NOT NULL,
`direccion` varchar(50) DEFAULT NULL,
`telefono_fijo` varchar(15) DEFAULT NULL,
`predeterminado` tinyint(1) DEFAULT NULL,
`fecha` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `nacionalidades`
--
CREATE TABLE IF NOT EXISTS `nacionalidades` (
`id_nacionalidad` int(11) NOT NULL,
`nacionalidad` varchar(20) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `personas`
--
CREATE TABLE IF NOT EXISTS `personas` (
`id_persona` int(11) NOT NULL COMMENT 'Hace referencia al alumno',
`nombre` varchar(25) DEFAULT NULL,
`apellido` varchar(25) DEFAULT NULL,
`alias` varchar(60) NOT NULL,
`id_nacionalidad` int(11) DEFAULT NULL,
`lugar_nacimiento` varchar(45) DEFAULT NULL,
`fecha_nacimiento` date DEFAULT NULL,
`grupo_sanguineo` varchar(5) DEFAULT NULL,
`genero` varchar(15) DEFAULT NULL,
`estado_civil` varchar(15) DEFAULT NULL,
`clave` tinyblob
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `roles`
--
CREATE TABLE IF NOT EXISTS `roles` (
`id_rol` int(11) NOT NULL,
`rol` varchar(60) DEFAULT NULL,
`orden` int(11) DEFAULT NULL,
`estado` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `telefonos`
--
CREATE TABLE IF NOT EXISTS `telefonos` (
`id_persona` int(11) NOT NULL,
`id_telefono` int(11) NOT NULL,
`telefono` varchar(15) DEFAULT NULL,
`predeterminado` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `tipos_documento`
--
CREATE TABLE IF NOT EXISTS `tipos_documento` (
`id_tipo_documento` int(11) NOT NULL,
`tipo_documento` varchar(45) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
CREATE TABLE IF NOT EXISTS `usuarios` (
`id_facultad` int(11) NOT NULL,
`id_sede` int(11) NOT NULL,
`id_persona` int(11) NOT NULL,
`id_rol` int(11) NOT NULL,
`predeterminado` tinyint(1) DEFAULT NULL,
`usuario_estado` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `correos`
--
ALTER TABLE `correos`
ADD PRIMARY KEY (`id_persona`,`id_correo`),
ADD KEY `fk_correos_2` (`id_persona`);
--
-- Indices de la tabla `documentos`
--
ALTER TABLE `documentos`
ADD PRIMARY KEY (`id_persona`),
ADD KEY `fk_documentos_1` (`id_tipo_documento`),
ADD KEY `fk_documentos_2` (`id_persona`);
--
-- Indices de la tabla `domicilios`
--
ALTER TABLE `domicilios`
ADD PRIMARY KEY (`id_persona`,`id_pais`,`id_departamento`,`id_ciudad`,`id_domicilio`),
ADD KEY `fk_domicilios_1_idx` (`id_persona`),
ADD KEY `fk_domicilios_ciudades1_idx` (`id_pais`,`id_departamento`,`id_ciudad`);
--
-- Indices de la tabla `nacionalidades`
--
ALTER TABLE `nacionalidades`
ADD PRIMARY KEY (`id_nacionalidad`);
--
-- Indices de la tabla `personas`
--
ALTER TABLE `personas`
ADD PRIMARY KEY (`id_persona`),
ADD KEY `fk_personas_1` (`id_nacionalidad`);
--
-- Indices de la tabla `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id_rol`);
--
-- Indices de la tabla `telefonos`
--
ALTER TABLE `telefonos`
ADD PRIMARY KEY (`id_persona`,`id_telefono`),
ADD KEY `fk_telefonos_2` (`id_persona`);
--
-- Indices de la tabla `tipos_documento`
--
ALTER TABLE `tipos_documento`
ADD PRIMARY KEY (`id_tipo_documento`);
--
-- Indices de la tabla `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`id_facultad`,`id_sede`,`id_persona`,`id_rol`),
ADD KEY `fk_usuarios_1` (`id_persona`),
ADD KEY `fk_usuarios_2_idx` (`id_rol`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `roles`
--
ALTER TABLE `roles`
MODIFY `id_rol` int(11) NOT NULL AUTO_INCREMENT;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `correos`
--
ALTER TABLE `correos`
ADD CONSTRAINT `fk_correos_2` FOREIGN KEY (`id_persona`) REFERENCES `personas` (`id_persona`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `documentos`
--
ALTER TABLE `documentos`
ADD CONSTRAINT `fk_documentos_1` FOREIGN KEY (`id_tipo_documento`) REFERENCES `tipos_documento` (`id_tipo_documento`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_documentos_2` FOREIGN KEY (`id_persona`) REFERENCES `personas` (`id_persona`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `domicilios`
--
ALTER TABLE `domicilios`
ADD CONSTRAINT `fk_domicilios_1` FOREIGN KEY (`id_persona`) REFERENCES `personas` (`id_persona`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_domicilios_ciudades1` FOREIGN KEY (`id_pais`, `id_departamento`, `id_ciudad`) REFERENCES `ciudades` (`id_pais`, `id_departamento`, `id_ciudad`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `personas`
--
ALTER TABLE `personas`
ADD CONSTRAINT `fk_personas_1` FOREIGN KEY (`id_nacionalidad`) REFERENCES `nacionalidades` (`id_nacionalidad`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `telefonos`
--
ALTER TABLE `telefonos`
ADD CONSTRAINT `fk_telefonos_2` FOREIGN KEY (`id_persona`) REFERENCES `personas` (`id_persona`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Filtros para la tabla `usuarios`
--
ALTER TABLE `usuarios`
ADD CONSTRAINT `fk_usuarios_1` FOREIGN KEY (`id_persona`) REFERENCES `personas` (`id_persona`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_usuarios_2` FOREIGN KEY (`id_rol`) REFERENCES `roles` (`id_rol`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_usuarios_3` FOREIGN KEY (`id_facultad`, `id_sede`) REFERENCES `relacion_sede_carrera` (`id_facultad`, `id_sede`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!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 TABLE IF EXISTS aux.kid_wic_addresses;
CREATE TABLE aux.kid_wic_addresses AS (
-- keys to link cornerstone addresses to aux.addresses
WITH wic_addresses AS (select geocode_address as address, unnest(ogc_fids) as ogc_fid FROM cornerstone.addresses),
-- collect linked addresses
addresses AS (
SELECT pa.ogc_fid, part_id_i, address_id, pa.last_upd_d, register_d
FROM cornerstone.partaddr pa
JOIN wic_addresses USING (ogc_fid)
JOIN aux.addresses a USING (address)
JOIN cornerstone.partenrl ON addr_id_i = part_id_i
),
-- find first address for each participant id
first_address AS (
SELECT part_id_i, min(last_upd_d) last_upd_d
FROM addresses
GROUP BY part_id_i
),
-- replace last_upd_d with register_d for first address
addresses2 AS (
SELECT ogc_fid, part_id_i, address_id, a.register_d
FROM addresses a JOIN first_address d using (part_id_i, last_upd_d)
),
-- take unique rows from addresses and addresses2
all_addresses AS (
SELECT ogc_fid, part_id_i, address_id, last_upd_d as date
FROM addresses
UNION
SELECT ogc_fid, part_id_i, address_id, register_d as date
FROM addresses2
),
-- get addresses through mother
mother_addresses AS (
SELECT ogc_fid, k.part_id_i, a.address_id,
greatest(a.date, min_visit_date) as date, k.mothr_id_i
FROM aux.kid_mothers k
JOIN all_addresses a
ON mothr_id_i = a.part_id_i
)
SELECT kid_id, a.*
FROM (SELECT *, null as mothr_id_i FROM all_addresses i
UNION SELECT * FROM mother_addresses) a
JOIN aux.kid_wics USING (part_id_i)
JOIN aux.kids using (kid_id)
WHERE date_of_birth - a.date < 365 -- can't be enrolled before -1 years old
);
create index on aux.kid_wic_addresses (kid_id, address_id);
|
<filename>002.sql
create or replace procedure upd_job(
v_job_id jobs.job_id%type, v_job_title jobs.job_title%type) is
begin
update jobs
set job_title =v_job_title
where job_id = v_job_id;
if sql%notfound then
raise_application_error(-20202,'No jobs updated.');
end if;
dbms_output.put_line('Added jobs: '||v_job_id);
end;
/
|
<reponame>btk-jpp/xgimi
/*
Navicat MySQL Data Transfer
Source Server : 数据库
Source Server Version : 50721
Source Host : localhost:3306
Source Database : xgimi
Target Server Type : MYSQL
Target Server Version : 50721
File Encoding : 65001
Date: 2020-06-09 10:20:21
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `registry`
-- ----------------------------
DROP TABLE IF EXISTS `registry`;
CREATE TABLE `registry` (
`sid` tinyint(4) NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`password` varchar(40) DEFAULT NULL,
`date` datetime DEFAULT NULL,
PRIMARY KEY (`sid`)
) ENGINE=MyISAM AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of registry
-- ----------------------------
INSERT INTO `registry` VALUES ('1', 'asd1', '<PASSWORD>', '2020-05-30 11:43:56');
INSERT INTO `registry` VALUES ('2', 'a112', '601f1889667efaebb33b8c12572835da3f027f78', '2020-05-30 15:41:57');
INSERT INTO `registry` VALUES ('3', 'aq12', '601f1889667efaebb33b8c12572835da3f027f78', '2020-06-04 16:13:43');
INSERT INTO `registry` VALUES ('4', 'acv1', '601f1889667efaebb33b8c12572835da3f027f78', '2020-06-04 16:16:11');
INSERT INTO `registry` VALUES ('5', 'acv2', '601f1889667efaebb33b8c12572835da3f027f78', '2020-06-05 14:07:34');
INSERT INTO `registry` VALUES ('6', 'acv3', '601f1889667efaebb33b8c12572835da3f027f78', '2020-06-06 16:21:14');
|
<reponame>MIa-Elsa/dms-smm695
create table people.person (
id BIGSERIAL,
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
email VARCHAR(50) UNIQUE,
gender VARCHAR(50),
dob DATE NOT NULL,
PRIMARY KEY (id),
CHECK(gender='Female' OR gender='Male')
);
insert into people.person (first_name, last_name, email, gender, dob) values ('Herta', 'Kingdon', null, 'Female', '1997-12-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Philis', 'Vickers', '<EMAIL>', 'Female', '1983-08-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carlynne', 'Mossbee', '<EMAIL>', 'Female', '1990-01-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Johannes', 'Rouse', '<EMAIL>', 'Male', '1973-10-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mignon', 'Blaschek', '<EMAIL>', 'Female', '1996-04-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alejandra', 'Meese', '<EMAIL>', 'Female', '1984-06-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dierdre', 'Kilvington', null, 'Female', '1967-08-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tabbie', 'Titmarsh', '<EMAIL>', 'Male', '1992-04-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zsazsa', 'Beetlestone', null, 'Female', '1983-10-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saxe', 'Gratrix', '<EMAIL>', 'Male', '1996-11-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rebe', 'Stoyles', '<EMAIL>', 'Female', '1966-09-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Natalya', 'Stiles', null, 'Female', '1986-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Reyna', 'Brandassi', null, 'Female', '1964-12-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Reinald', 'Colmer', '<EMAIL>', 'Male', '1964-11-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tybi', 'Horney', '<EMAIL>', 'Female', '1988-09-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Conchita', 'Hartburn', null, 'Female', '1979-08-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tymothy', 'Sykes', '<EMAIL>', 'Male', '1979-08-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vic', 'Bradbeer', '<EMAIL>', 'Male', '1967-06-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tremaine', 'Ingram', '<EMAIL>', 'Male', '1965-06-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pinchas', 'Tackett', '<EMAIL>', 'Male', '1982-12-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marni', 'Pinnocke', '<EMAIL>', 'Female', '1990-12-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Michale', 'Escalante', null, 'Male', '1991-09-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bobbie', 'Rigard', '<EMAIL>', 'Female', '1992-02-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Urban', 'O''Sculley', null, 'Male', '1976-08-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tatiana', 'Desaur', '<EMAIL>', 'Female', '1971-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Trey', 'Minton', null, 'Male', '1997-01-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Quinta', 'Bickmore', '<EMAIL>', 'Female', '1972-12-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benji', 'Ledur', '<EMAIL>', 'Male', '1977-06-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Herbert', 'Seywood', '<EMAIL>', 'Male', '1986-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salaidh', 'Renshall', '<EMAIL>', 'Female', '1995-10-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ameline', 'Sainsbury', null, 'Female', '1987-11-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Johnette', 'Kinny', '<EMAIL>', 'Female', '1998-11-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Teddie', 'Barge', '<EMAIL>', 'Female', '1961-05-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Meggi', 'Duchan', '<EMAIL>', 'Female', '1978-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nilson', 'Dearnly', null, 'Male', '1986-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fraze', 'By', '<EMAIL>', 'Male', '1985-09-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kristen', 'Stothard', null, 'Female', '1981-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bethena', 'Juniper', '<EMAIL>', 'Female', '1984-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cart', 'Wemes', '<EMAIL>', 'Male', '1980-07-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stuart', 'MacAlister', '<EMAIL>', 'Male', '1979-09-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Caren', 'Logan', '<EMAIL>', 'Female', '1969-08-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Raimundo', 'Jefford', '<EMAIL>', 'Male', '1998-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corny', 'Hake', null, 'Female', '1981-08-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clifford', 'MacCarrane', null, 'Male', '1975-07-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brion', 'Wagen', '<EMAIL>', 'Male', '1977-02-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alexina', 'Chafney', '<EMAIL>', 'Female', '1964-09-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Viviana', 'Somersett', '<EMAIL>', 'Female', '1972-07-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gloriane', 'MacDuffie', '<EMAIL>', 'Female', '1994-03-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roxanne', 'Hardy', '<EMAIL>', 'Female', '1996-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Guendolen', 'Dorkin', '<EMAIL>', 'Female', '1962-12-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dion', 'Tunstall', '<EMAIL>', 'Female', '1973-09-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lonny', 'Dunsmore', null, 'Male', '1999-02-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gerladina', 'Kingsford', null, 'Female', '1987-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Crichton', 'Chappelow', '<EMAIL>', 'Male', '1997-03-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Andy', 'Rizzolo', null, 'Female', '1988-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Windham', 'Dell''Abbate', null, 'Male', '1962-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barbey', 'Gopsill', '<EMAIL>', 'Female', '1960-10-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Allx', 'Gosz', null, 'Female', '1976-01-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nanete', 'Swinden', '<EMAIL>', 'Female', '1987-11-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barret', 'Lorrain', '<EMAIL>', 'Male', '1969-04-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Minna', 'Chestle', '<EMAIL>', 'Female', '1971-05-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cassandra', 'Howerd', null, 'Female', '1985-01-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brier', 'Harget', '<EMAIL>', 'Female', '1971-10-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marmaduke', 'Drane', '<EMAIL>', 'Male', '1982-07-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Atlanta', 'Monksfield', '<EMAIL>', 'Female', '1991-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angelina', 'Forbear', '<EMAIL>', 'Female', '1977-08-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mildrid', 'McLean', '<EMAIL>', 'Female', '1992-07-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Antonin', 'Penburton', null, 'Male', '1960-09-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lauretta', 'Moles', '<EMAIL>', 'Female', '1995-10-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ivette', 'Edlington', '<EMAIL>', 'Female', '1993-10-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emmye', 'Edgell', null, 'Female', '1978-02-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shelly', 'Shedd', '<EMAIL>', 'Female', '1982-07-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gene', 'Saxby', '<EMAIL>', 'Female', '1979-10-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Davine', 'Dunniom', '<EMAIL>', 'Female', '1973-11-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nick', 'MacEntee', null, 'Male', '1981-10-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leigha', 'Gilbertson', '<EMAIL>', 'Female', '1997-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rodolph', 'Taylder', null, 'Male', '1986-07-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marissa', 'Lewsley', '<EMAIL>', 'Female', '1969-09-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Veronika', 'Leban', null, 'Female', '1977-02-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gates', 'Tremain', null, 'Female', '1982-08-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Augustine', 'Yakunkin', '<EMAIL>', 'Male', '1982-10-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Doy', 'Snoddy', '<EMAIL>', 'Male', '1996-07-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saunders', 'Ewins', '<EMAIL>', 'Male', '1960-06-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Evelyn', 'Ruggiero', null, 'Male', '1996-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Annelise', 'Renish', '<EMAIL>', 'Female', '1991-06-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corby', 'Lowseley', null, 'Male', '1985-09-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kriste', 'Tuckerman', '<EMAIL>', 'Female', '1969-11-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Putnem', 'Champken', '<EMAIL>', 'Male', '1965-11-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Deana', 'Marion', '<EMAIL>', 'Female', '1968-07-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Austine', 'Carnson', '<EMAIL>', 'Female', '1985-12-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Teena', 'Hardisty', '<EMAIL>', 'Female', '1972-05-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clerissa', 'January', null, 'Female', '1974-10-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Diann', 'Crowdace', null, 'Female', '1989-03-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Libbi', 'Skipp', null, 'Female', '1990-08-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Edan', 'Aldwinckle', null, 'Male', '1967-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jackquelin', 'Haine', '<EMAIL>', 'Female', '1995-03-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Anallese', 'Pullar', '<EMAIL>', 'Female', '1994-09-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fredrick', 'Cundey', '<EMAIL>', 'Male', '1965-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ynes', 'Selbach', '<EMAIL>', 'Female', '1973-11-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Delainey', 'Atger', null, 'Male', '1997-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gian', 'Campelli', '<EMAIL>', 'Male', '1984-05-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Craggy', 'Fisbey', '<EMAIL>', 'Male', '1996-01-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rogerio', 'Lydiate', '<EMAIL>', 'Male', '1988-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Faun', 'Pocknell', '<EMAIL>', 'Female', '1994-08-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lorne', 'Melchior', '<EMAIL>', 'Male', '1988-07-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ketti', 'Liven', '<EMAIL>', 'Female', '1965-09-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tailor', 'Golledge', null, 'Male', '1990-11-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ugo', 'Tabard', null, 'Male', '1991-10-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Crystal', 'Coppo', null, 'Female', '1977-08-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marget', 'Matevosian', '<EMAIL>', 'Female', '1971-07-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Buiron', 'Ferrieres', null, 'Male', '1977-11-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ophelia', 'Triggle', '<EMAIL>', 'Female', '1974-02-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ingra', 'Dignon', null, 'Male', '1975-06-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dud', 'Pucknell', '<EMAIL>', 'Male', '1991-12-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Beck', '<NAME>', null, 'Male', '1999-07-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thomasa', 'Viles', null, 'Female', '1970-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Renate', 'Bewley', null, 'Female', '1977-06-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Domini', 'Dollen', '<EMAIL>', 'Female', '1993-03-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rhetta', 'Jeggo', null, 'Female', '1974-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nicolais', 'Rodge', null, 'Male', '1961-06-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wallace', 'Knock', '<EMAIL>', 'Male', '1972-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Candace', 'Stockwell', '<EMAIL>', 'Female', '1976-11-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benita', 'Ragbourn', null, 'Female', '1962-07-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Berget', 'Koppeck', null, 'Female', '1966-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kelly', 'Shepherdson', '<EMAIL>', 'Male', '1980-09-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joyan', 'Condy', '<EMAIL>', 'Female', '1969-11-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Curr', 'Limpertz', '<EMAIL>', 'Male', '1983-12-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stillman', 'Simoes', '<EMAIL>', 'Male', '1998-12-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jean', 'Cotton', null, 'Male', '1965-09-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Andy', 'Heyburn', null, 'Male', '1976-03-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stacie', 'Wasielewicz', '<EMAIL>', 'Female', '1998-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alphonse', 'Farnsworth', '<EMAIL>', 'Male', '1994-05-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ruddy', 'Davage', '<EMAIL>', 'Male', '1994-12-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vivianna', 'Burbury', '<EMAIL>', 'Female', '1964-09-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Herby', 'Pley', '<EMAIL>', 'Male', '1974-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eldredge', 'Chanter', '<EMAIL>', 'Male', '1967-02-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cilka', 'Shellcross', '<EMAIL>', 'Female', '1961-03-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brod', 'Wardell', '<EMAIL>', 'Male', '1989-10-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jannel', 'Dwyer', '<EMAIL>', 'Female', '1972-01-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mildred', 'Bette', null, 'Female', '1982-09-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wes', 'Labbe', '<EMAIL>', 'Male', '1997-09-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thorsten', 'Shields', '<EMAIL>', 'Male', '1982-11-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Charlot', 'MacArthur', '<EMAIL>', 'Female', '1985-05-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salim', 'Dobbings', '<EMAIL>', 'Male', '1965-01-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Anastasie', 'Davison', '<EMAIL>', 'Female', '1967-06-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Putnam', 'Savidge', null, 'Male', '1979-02-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Norris', 'Trevenu', null, 'Male', '1999-12-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Starlin', 'Ryrie', '<EMAIL>', 'Female', '1973-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Addie', 'Pere', '<EMAIL>', 'Female', '1985-06-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vonnie', 'Zannolli', '<EMAIL>', 'Female', '1982-02-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Albertine', 'Rowledge', '<EMAIL>', 'Female', '1991-04-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Annora', 'Bennen', null, 'Female', '1965-06-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shepherd', '<NAME>', null, 'Male', '1998-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Otes', '<NAME>', '<EMAIL>', 'Male', '1970-12-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vera', 'Lantuffe', null, 'Female', '1978-09-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sandro', 'Hentze', null, 'Male', '1987-02-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Melinda', 'Lethcoe', null, 'Female', '1995-09-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Isidro', 'Pedgrift', '<EMAIL>', 'Male', '1966-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Odo', '<NAME>', '<EMAIL>', 'Male', '1975-02-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Coralyn', 'Goadsby', '<EMAIL>', 'Female', '1976-12-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hercule', 'Gidley', '<EMAIL>', 'Male', '1990-04-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brew', 'Fernando', '<EMAIL>', 'Male', '1994-09-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ber', 'Bischof', '<EMAIL>', 'Male', '1997-08-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Claus', 'Pengelly', '<EMAIL>', 'Male', '1966-05-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leelah', 'Gummie', '<EMAIL>', 'Female', '1964-10-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brennan', 'Provost', '<EMAIL>', 'Male', '1981-07-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leodora', 'Manus', '<EMAIL>', 'Female', '1991-07-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mahmoud', 'Boxen', '<EMAIL>', 'Male', '1981-01-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jorrie', 'Kardos-Stowe', '<EMAIL>', 'Female', '1968-07-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pierrette', 'Kirkland', '<EMAIL>', 'Female', '1979-09-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yolane', 'Jarrad', '<EMAIL>', 'Female', '1985-01-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jodi', 'Searby', null, 'Male', '1984-03-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Della', 'Hamer', '<EMAIL>', 'Female', '1998-02-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Heath', 'Compfort', null, 'Female', '1989-08-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kurt', 'Dorricott', '<EMAIL>', 'Male', '1970-06-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Care', 'Vandenhoff', '<EMAIL>', 'Male', '1965-09-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stevana', 'Dockray', '<EMAIL>', 'Female', '1977-09-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Luelle', 'Abbis', '<EMAIL>', 'Female', '1988-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mario', 'Averay', '<EMAIL>', 'Male', '1969-08-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Georgianne', 'McClune', '<EMAIL>', 'Female', '1987-02-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wandie', 'Gronow', '<EMAIL>', 'Female', '1994-04-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Erl', 'Atwill', '<EMAIL>', 'Male', '1987-04-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Andrea', 'Walas', '<EMAIL>', 'Female', '1967-01-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rudd', 'Wickersley', null, 'Male', '1961-07-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nils', 'Dalgarnowch', '<EMAIL>', 'Male', '1993-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Danie', 'Kalkhoven', '<EMAIL>', 'Male', '1961-07-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cassi', 'Egger', '<EMAIL>', 'Female', '1965-12-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Helen', 'Cescotti', '<EMAIL>', 'Female', '1963-07-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Miquela', 'Sparshett', '<EMAIL>', 'Female', '1970-05-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cindelyn', 'Pogosian', '<EMAIL>', 'Female', '1960-10-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zerk', 'Gommes', '<EMAIL>', 'Male', '1961-07-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Iver', 'Gatheral', '<EMAIL>', 'Male', '1996-04-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angelo', 'Bedberry', null, 'Male', '1992-05-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Archer', 'Zink', null, 'Male', '1987-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lauritz', 'Tolworth', '<EMAIL>', 'Male', '1977-11-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cybill', 'Sommerlie', null, 'Female', '1983-07-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Griz', 'Jeromson', '<EMAIL>', 'Male', '1981-02-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zarah', 'Monkeman', null, 'Female', '1972-10-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Isac', 'Fazzioli', '<EMAIL>', 'Male', '1993-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Farrell', 'Lerwill', '<EMAIL>', 'Male', '1980-03-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tamas', 'McKibben', null, 'Male', '1994-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wilton', 'Holyard', '<EMAIL>', 'Male', '1965-02-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angelina', 'Bairnsfather', '<EMAIL>', 'Female', '1977-12-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Philip', 'MacPhail', '<EMAIL>', 'Male', '1980-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Abbot', 'Rayworth', '<EMAIL>', 'Male', '1996-02-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rube', 'Hymers', '<EMAIL>', 'Male', '1968-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maryjane', 'McWhannel', null, 'Female', '1967-09-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arnold', 'Rawcliffe', null, 'Male', '1978-11-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cobb', '<NAME>', null, 'Male', '1973-09-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jarred', 'Meeus', '<EMAIL>', 'Male', '1986-11-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rosita', 'Gallard', '<EMAIL>', 'Female', '1960-09-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lucretia', 'Lethem', '<EMAIL>', 'Female', '1964-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Olivia', 'Scupham', '<EMAIL>', 'Female', '1988-07-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Patty', 'Gogay', '<EMAIL>', 'Female', '1998-07-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roarke', 'Kubin', null, 'Male', '1975-03-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lauraine', 'Jakubowsky', '<EMAIL>', 'Female', '1982-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ellissa', 'Gutierrez', null, 'Female', '1964-02-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emlen', 'Ramlot', '<EMAIL>', 'Male', '1973-02-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wald', 'Breens', '<EMAIL>', 'Male', '1995-05-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salvidor', 'Comber', '<EMAIL>', 'Male', '1999-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Farrand', 'Pennock', null, 'Female', '1964-10-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dixie', 'Bruyns', null, 'Female', '1972-05-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elvina', 'Scantlebury', '<EMAIL>', 'Female', '1984-05-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Archie', 'Ditt', '<EMAIL>', 'Male', '1993-05-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cornie', 'Dreghorn', '<EMAIL>', 'Male', '1977-11-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Derrik', 'Kenealy', '<EMAIL>', 'Male', '1995-10-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Michaeline', 'Wyldish', '<EMAIL>', 'Female', '1972-02-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fee', 'Schimpke', '<EMAIL>', 'Male', '1997-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cathrine', 'Feldheim', '<EMAIL>', 'Female', '1965-10-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harlene', 'Sheasby', '<EMAIL>', 'Female', '1988-10-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joachim', 'Bruni', '<EMAIL>', 'Male', '2000-03-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Odette', 'Peele', '<EMAIL>', 'Female', '1997-06-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Artus', 'O''Hogertie', '<EMAIL>', 'Male', '1965-09-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cynthia', 'Grimbaldeston', '<EMAIL>', 'Female', '1996-06-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aharon', 'Pylkynyton', null, 'Male', '1982-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nealon', 'Combes', '<EMAIL>', 'Male', '1978-11-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Freedman', 'Raccio', '<EMAIL>', 'Male', '1996-08-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Menard', 'Arkley', '<EMAIL>', 'Male', '1971-08-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Karole', 'Rix', '<EMAIL>', 'Female', '1978-05-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Laurella', 'Kerne', null, 'Female', '1970-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hammad', 'Chong', null, 'Male', '2000-01-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Belle', 'Felkin', '<EMAIL>', 'Female', '1977-06-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ernesto', 'Hammand', null, 'Male', '1998-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sissy', 'Seywood', null, 'Female', '1998-07-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kermie', 'Grinov', '<EMAIL>', 'Male', '1995-08-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saidee', 'Samme', null, 'Female', '1986-06-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eddi', 'Crate', '<EMAIL>', 'Female', '1977-07-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chalmers', 'Crosetto', null, 'Male', '1971-03-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elmer', 'Fontelles', '<EMAIL>', 'Male', '1979-07-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alma', 'Morgon', null, 'Female', '1998-11-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pascale', 'Cheltnam', '<EMAIL>', 'Male', '1973-08-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cissy', 'Woodhams', null, 'Female', '1962-09-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alfonse', 'Pantlin', null, 'Male', '1992-02-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cleopatra', 'Tipton', '<EMAIL>', 'Female', '1973-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jillayne', 'Sabatini', '<EMAIL>', 'Female', '1965-09-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mariejeanne', 'Pluthero', null, 'Female', '1999-09-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tome', 'Pine', '<EMAIL>', 'Male', '1991-09-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cristobal', 'Gwillym', '<EMAIL>', 'Male', '1967-09-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Felecia', 'Salvador', '<EMAIL>', 'Female', '1964-07-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alys', '<NAME>', '<EMAIL>', 'Female', '1993-02-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Denver', 'Clemenceau', '<EMAIL>', 'Male', '1974-03-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ynes', 'Burles', '<EMAIL>', 'Female', '1973-02-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marita', 'Agneau', '<EMAIL>', 'Female', '1975-11-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bastian', 'Westwater', '<EMAIL>', 'Male', '1985-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carmel', 'Filchakov', null, 'Female', '1960-04-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jard', 'Alten', '<EMAIL>', 'Male', '1998-09-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bernie', 'Issakov', null, 'Female', '1960-08-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Annabel', 'Klaff', '<EMAIL>', 'Female', '1968-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Britteny', 'Vesco', '<EMAIL>', 'Female', '1999-07-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jerrine', 'Paine', null, 'Female', '1992-11-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Christy', 'Eathorne', '<EMAIL>', 'Male', '1981-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gwen', 'Otteridge', '<EMAIL>', 'Female', '1974-04-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eldon', 'Giffaut', '<EMAIL>', 'Male', '1986-08-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chrissie', 'Pulley', null, 'Female', '1965-03-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rodrick', 'Hansbury', '<EMAIL>', 'Male', '1972-01-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marc', 'Molfino', '<EMAIL>', 'Male', '1979-10-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ileana', 'Gounel', '<EMAIL>', 'Female', '1972-06-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sandie', 'Sweatland', '<EMAIL>', 'Female', '1984-02-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('<NAME>', 'Duinkerk', null, 'Female', '1999-04-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hanna', 'Instrell', '<EMAIL>', 'Female', '1977-11-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tamar', 'Horsfield', '<EMAIL>', 'Female', '1974-06-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ario', 'Laidlaw', null, 'Male', '1984-11-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fabien', 'Farrall', '<EMAIL>', 'Male', '1989-05-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Guilbert', 'Dickins', null, 'Male', '1972-10-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hurlee', 'Kibbey', '<EMAIL>', 'Male', '1973-01-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shepherd', 'Corstan', '<EMAIL>', 'Male', '1963-06-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alex', 'Terrelly', '<EMAIL>', 'Male', '1994-02-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wake', 'Vanlint', '<EMAIL>', 'Male', '1967-05-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tanney', 'Hathwood', '<EMAIL>', 'Male', '1975-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Farrell', 'Ash', '<EMAIL>', 'Male', '1971-05-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carson', 'Truesdale', '<EMAIL>', 'Male', '1996-12-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shirl', 'Divver', '<EMAIL>', 'Female', '1994-10-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Beilul', 'Bilborough', null, 'Female', '1982-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arne', 'Connichie', '<EMAIL>', 'Male', '1990-11-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rosanna', 'Syfax', '<EMAIL>', 'Female', '1979-05-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Graham', 'Esgate', '<EMAIL>', 'Male', '1961-08-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Petey', 'Simondson', null, 'Male', '1975-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kale', 'Dunbobbin', '<EMAIL>', 'Male', '1993-10-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lenora', 'Martineau', '<EMAIL>', 'Female', '1982-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Calida', 'Zorzutti', '<EMAIL>', 'Female', '1971-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Taber', 'Conahy', null, 'Male', '1977-02-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Keene', 'Wearden', null, 'Male', '1976-08-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fan', 'Britee', '<EMAIL>', 'Female', '1996-07-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Charlean', 'Shallcrass', '<EMAIL>', 'Female', '1993-02-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kirby', 'Fauguel', '<EMAIL>', 'Male', '1977-06-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Niki', 'Bignell', '<EMAIL>', 'Female', '1995-11-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mervin', 'Blaby', '<EMAIL>', 'Male', '1985-02-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yorke', 'Lilie', '<EMAIL>', 'Male', '1969-03-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lenette', 'McLaverty', '<EMAIL>', 'Female', '1983-02-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chris', 'McBay', '<EMAIL>', 'Female', '1961-02-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Julius', 'Elms', '<EMAIL>', 'Male', '1989-07-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gasparo', 'Renehan', null, 'Male', '1996-03-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Daniele', 'Wanklin', '<EMAIL>', 'Female', '1970-04-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wilow', 'Jehaes', '<EMAIL>', 'Female', '1998-12-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shandeigh', 'Legging', '<EMAIL>', 'Female', '1988-06-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rozanne', 'Randals', '<EMAIL>', 'Female', '1966-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marge', 'Abell', '<EMAIL>', 'Female', '1967-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alfy', 'Adnam', '<EMAIL>', 'Male', '1998-10-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Parry', 'McKinn', '<EMAIL>', 'Male', '1994-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elsy', 'Bouchier', null, 'Female', '1980-01-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jeffie', 'Peattie', '<EMAIL>', 'Male', '2000-03-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eleen', 'Sonschein', '<EMAIL>', 'Female', '1967-07-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Madel', 'Rock', null, 'Female', '1995-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nilson', 'Tompkinson', '<EMAIL>', 'Male', '1961-12-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dania', 'Cumber', '<EMAIL>', 'Female', '1997-06-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Myrtie', 'Twinbourne', null, 'Female', '1989-07-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dallis', 'Hritzko', '<EMAIL>', 'Male', '1971-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cyril', 'Jotcham', '<EMAIL>', 'Male', '1997-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Palmer', 'MacNeice', null, 'Male', '1997-07-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Felix', 'Chippindall', '<EMAIL>', 'Male', '1992-09-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gaile', 'Smythin', null, 'Male', '1984-08-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elfrida', 'Swindell', '<EMAIL>', 'Female', '1965-12-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shena', 'Shah', null, 'Female', '1988-06-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Janeen', 'Bart', '<EMAIL>', 'Female', '1961-03-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Justus', 'Oventon', '<EMAIL>', 'Male', '1963-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barn', 'Cowan', null, 'Male', '1978-03-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ellen', 'Flear', '<EMAIL>', 'Female', '1965-01-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Susanne', 'Rosenblad', null, 'Female', '1993-06-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elvera', 'Riddock', '<EMAIL>', 'Female', '1961-02-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gabe', 'McFfaden', '<EMAIL>', 'Male', '1990-01-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nada', 'Kwiek', null, 'Female', '1969-09-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sherye', 'Stitcher', '<EMAIL>', 'Female', '1961-01-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alvan', 'Fache', null, 'Male', '1973-04-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roxane', 'Drains', '<EMAIL>', 'Female', '1996-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Edyth', 'Leverington', '<EMAIL>', 'Female', '1986-03-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Portie', 'Gwilliams', '<EMAIL>', 'Male', '1961-10-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carlynn', 'Pechell', '<EMAIL>', 'Female', '1996-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Isadora', 'Martineau', '<EMAIL>', 'Female', '1996-04-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Blanche', 'Grzelewski', '<EMAIL>', 'Female', '1995-05-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bastian', 'Madgwick', null, 'Male', '1977-07-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emelda', 'Yggo', null, 'Female', '1965-12-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Belita', 'Richardsson', '<EMAIL>', 'Female', '1974-08-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Delcina', 'Engeham', null, 'Female', '1967-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Audy', 'Bowmer', '<EMAIL>', 'Female', '1979-06-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rana', 'Alchin', '<EMAIL>', 'Female', '1991-02-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elle', 'Crotty', null, 'Female', '1986-02-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Doug', 'Hotson', '<EMAIL>', 'Male', '1993-04-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Larry', 'Gotliffe', '<EMAIL>', 'Male', '1964-03-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joanna', 'Orro', '<EMAIL>', 'Female', '1967-01-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pascal', 'Tant', '<EMAIL>', 'Male', '1970-09-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Catherina', 'Walford', '<EMAIL>', 'Female', '1974-01-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nevin', 'Chitson', '<EMAIL>', 'Male', '1966-04-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Analiese', 'Armour', '<EMAIL>', 'Female', '1994-12-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Branden', 'Leworthy', null, 'Male', '1991-10-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giustina', 'Pickerin', '<EMAIL>', 'Female', '1993-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Guss', 'Rollett', '<EMAIL>', 'Male', '1997-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Merill', 'Waison', '<EMAIL>', 'Male', '1993-09-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Blondell', 'Gilchrest', null, 'Female', '1966-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Holly-anne', 'Ivanonko', '<EMAIL>', 'Female', '1968-01-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Murielle', 'Morhall', '<EMAIL>', 'Female', '1965-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stewart', 'Evensden', '<EMAIL>', 'Male', '1981-07-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cornell', 'Morrill', '<EMAIL>', 'Male', '1987-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dorri', '<NAME>', '<EMAIL>', 'Female', '1979-03-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bordy', 'Mebius', '<EMAIL>', 'Male', '1964-10-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roma', 'Wolfinger', null, 'Male', '1988-06-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Morgana', 'Goodboddy', '<EMAIL>', 'Female', '1970-11-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sherman', 'Filipovic', null, 'Male', '1961-07-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Katusha', 'Ivanchin', null, 'Female', '1975-03-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benito', 'Tabner', null, 'Male', '1994-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Abbie', 'Tant', '<EMAIL>', 'Female', '1989-03-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ree', 'Castrillo', null, 'Female', '1970-04-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ricoriki', 'Renyard', null, 'Male', '1961-02-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hurlee', 'Peddar', '<EMAIL>', 'Male', '1988-12-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bailey', 'Ellington', '<EMAIL>', 'Male', '1968-07-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rodolph', 'Scates', null, 'Male', '1993-12-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shirline', 'Mutch', '<EMAIL>', 'Female', '1973-10-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Suzi', 'Mullett', '<EMAIL>', 'Female', '1978-01-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bowie', 'Chevins', null, 'Male', '1988-03-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Halsey', 'Tilford', '<EMAIL>', 'Male', '1969-08-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ruggiero', 'Darragon', '<EMAIL>', 'Male', '1986-01-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Julio', 'Goldup', '<EMAIL>', 'Male', '1989-07-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Margaux', 'Lashford', '<EMAIL>', 'Female', '1960-05-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yank', 'Rorke', '<EMAIL>', 'Male', '1963-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Andris', 'Finlayson', '<EMAIL>', 'Male', '1978-11-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Willem', 'Nattriss', null, 'Male', '1962-02-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Margery', 'Noden', '<EMAIL>', 'Female', '1979-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barn', 'Iacomelli', '<EMAIL>', 'Male', '1976-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emelda', 'McGrann', '<EMAIL>', 'Female', '1976-07-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marylinda', 'Woolger', null, 'Female', '1986-07-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arleyne', 'Asals', null, 'Female', '1989-04-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Geoffrey', 'Pardue', '<EMAIL>', 'Male', '1977-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gal', 'Shilladay', '<EMAIL>', 'Male', '1976-01-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Karon', 'Goulbourne', null, 'Female', '1989-09-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rod', 'Patrone', '<EMAIL>', 'Male', '1983-09-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maggie', 'Aloway', null, 'Female', '1969-03-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Addie', 'Sciusscietto', '<EMAIL>', 'Female', '1963-09-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rene', 'Owbridge', null, 'Female', '1990-10-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thomasa', 'McGaughey', '<EMAIL>', 'Female', '1969-09-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Huntington', 'Plunket', '<EMAIL>', 'Male', '1982-11-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Charlton', 'Silcox', null, 'Male', '1996-07-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chase', 'Marcum', '<EMAIL>', 'Male', '1970-02-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Quinlan', 'Furney', '<EMAIL>', 'Male', '1969-05-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lazar', 'Pasfield', '<EMAIL>', 'Male', '1967-04-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carmelle', 'Jain', '<EMAIL>', 'Female', '1982-12-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lennard', 'Hendrikse', '<EMAIL>', 'Male', '1967-11-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jedd', 'Foulis', '<EMAIL>', 'Male', '1983-03-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hedy', 'Puddephatt', null, 'Female', '1979-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sabra', 'Mollnar', '<EMAIL>', 'Female', '1974-10-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mehetabel', 'Corfield', null, 'Female', '1968-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eduino', 'Jendrach', '<EMAIL>', 'Male', '1976-05-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cash', 'McEwen', null, 'Male', '1991-10-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jonathan', 'Raraty', '<EMAIL>', 'Male', '1986-09-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Averill', 'Saunderson', '<EMAIL>', 'Male', '1977-02-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Monti', 'Slowan', '<EMAIL>', 'Male', '1973-08-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bebe', 'Arnaut', '<EMAIL>', 'Female', '1964-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Meaghan', 'Deackes', null, 'Female', '1996-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gerri', 'Cubbinelli', '<EMAIL>', 'Female', '1966-10-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Klaus', 'Sherrington', '<EMAIL>', 'Male', '1989-08-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Perrine', 'Coldrick', null, 'Female', '1964-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joseph', 'Hindmoor', '<EMAIL>', 'Male', '1970-05-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Laurent', 'Mattheis', null, 'Male', '1985-08-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mattheus', 'Vittet', '<EMAIL>', 'Male', '1981-12-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Grannie', 'Sore', '<EMAIL>', 'Male', '1973-03-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thornton', 'Bartholat', '<EMAIL>', 'Male', '1980-10-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Melodee', 'Bayless', '<EMAIL>', 'Female', '1999-04-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Flinn', 'Killeen', '<EMAIL>', 'Male', '1962-06-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Irene', 'Doberer', null, 'Female', '1977-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lorant', 'Phelan', '<EMAIL>', 'Male', '1978-05-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bunni', 'Hubberstey', '<EMAIL>', 'Female', '1979-08-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adelind', 'Sweeting', '<EMAIL>', 'Female', '1998-07-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kenyon', 'Boagey', null, 'Male', '1980-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jeremy', 'Kloser', null, 'Male', '1963-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cliff', 'Marin', '<EMAIL>', 'Male', '1968-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nariko', 'Aylen', '<EMAIL>', 'Female', '1978-02-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cathlene', 'Boorman', '<EMAIL>', 'Female', '1989-04-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emanuele', 'Howsden', '<EMAIL>', 'Male', '1998-12-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hubert', 'Kanzler', '<EMAIL>', 'Male', '1979-11-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Karlan', 'Norrington', '<EMAIL>', 'Male', '1966-11-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aggi', 'Hainge', '<EMAIL>', 'Female', '1979-04-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rasia', 'MacCoughen', null, 'Female', '1965-08-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Coletta', 'Fidler', null, 'Female', '1992-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Channa', '<NAME>', '<EMAIL>', 'Female', '1987-11-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jarrad', 'Glendinning', null, 'Male', '1990-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shauna', 'Burgot', '<EMAIL>', 'Female', '1966-03-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Weylin', 'Weedall', '<EMAIL>', 'Male', '1961-05-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marena', 'Petrulis', '<EMAIL>', 'Female', '1981-01-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shae', 'Kightly', '<EMAIL>', 'Male', '1985-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Abrahan', 'Hymas', null, 'Male', '1999-09-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chelsy', 'Chapellow', null, 'Female', '1975-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fraze', 'Woodnutt', '<EMAIL>', 'Male', '1970-03-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Betteanne', 'Facher', null, 'Female', '1986-03-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jeffry', 'Reuss', '<EMAIL>', 'Male', '1996-07-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kris', 'Brightey', null, 'Female', '1989-03-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Danie', 'Syder', '<EMAIL>', 'Male', '1977-06-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Oralie', 'Sandcroft', '<EMAIL>', 'Female', '1992-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Valdemar', 'Yushmanov', '<EMAIL>', 'Male', '1981-01-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nicky', '<NAME>', '<EMAIL>', 'Female', '1995-02-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Frederica', 'Leadley', '<EMAIL>', 'Female', '1988-03-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lia', 'Loade', '<EMAIL>', 'Female', '1974-06-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marion', 'Lemarie', '<EMAIL>', 'Female', '1962-03-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Courtney', 'Ahmed', '<EMAIL>', 'Male', '1993-10-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Catlaina', 'Studdert', '<EMAIL>', 'Female', '1989-10-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Woody', 'McAloren', null, 'Male', '1967-07-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ursola', 'Nenci', '<EMAIL>', 'Female', '1988-08-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Damon', 'Whitehead', null, 'Male', '1978-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Trumaine', 'Steed', null, 'Male', '1991-02-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giulio', 'Sims', null, 'Male', '1988-11-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tamar', 'Goggan', '<EMAIL>', 'Female', '1970-12-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Teodor', '<NAME>', '<EMAIL>', 'Male', '1982-12-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Felice', 'Moreing', null, 'Male', '1964-09-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ramsey', 'Roycroft', '<EMAIL>', 'Male', '1976-09-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sheff', 'Leborgne', '<EMAIL>', 'Male', '1968-08-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Violette', 'Donalson', '<EMAIL>', 'Female', '1999-09-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Boyd', 'Lightowler', null, 'Male', '1997-01-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('North', 'Cherrett', '<EMAIL>', 'Male', '1987-01-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brandy', 'Reavey', null, 'Male', '1970-06-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ingaborg', 'Baythrop', '<EMAIL>', 'Female', '1995-08-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carissa', 'Tripet', '<EMAIL>', 'Female', '1989-04-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Robinia', 'Harrinson', '<EMAIL>', 'Female', '1963-03-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emiline', 'Attkins', '<EMAIL>', 'Female', '1984-01-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ancell', 'Glennon', '<EMAIL>', 'Male', '1991-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ladonna', 'Delacroix', '<EMAIL>', 'Female', '1965-10-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harv', 'Woodberry', '<EMAIL>', 'Male', '1969-11-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amelita', 'Magnar', '<EMAIL>', 'Female', '1974-07-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wernher', 'Byfield', '<EMAIL>', 'Male', '1996-10-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thain', 'Tye', '<EMAIL>', 'Male', '1965-09-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Augy', 'Pinkstone', '<EMAIL>', 'Male', '1975-07-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Justin', 'Sigge', null, 'Male', '1966-05-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gordie', 'Mapstone', '<EMAIL>', 'Male', '1989-08-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Drusie', 'Folomin', null, 'Female', '1986-08-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Florenza', 'Rupel', '<EMAIL>', 'Female', '1980-09-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Willis', 'Benge', '<EMAIL>', 'Male', '1961-10-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Waneta', 'Divers', null, 'Female', '1999-03-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nikki', 'Speak', '<EMAIL>', 'Female', '1961-10-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Orella', 'Kennford', null, 'Female', '1984-03-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emanuele', 'Borton', '<EMAIL>', 'Male', '1994-09-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Travus', 'Borland', null, 'Male', '1986-03-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rhona', 'Sporner', '<EMAIL>', 'Female', '1964-10-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Riane', 'Kemetz', '<EMAIL>', 'Female', '1984-03-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Earl', 'Mendez', '<EMAIL>', 'Male', '1967-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Deidre', 'Cavalier', '<EMAIL>', 'Female', '1973-01-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vanya', 'Quinnette', '<EMAIL>', 'Male', '1990-11-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roze', 'Munkley', null, 'Female', '1999-06-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Margette', 'Worsley', null, 'Female', '1998-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eyde', 'Aitken', '<EMAIL>', 'Female', '1985-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kira', 'Heijnen', null, 'Female', '1983-10-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Garwood', 'Barbrook', '<EMAIL>', 'Male', '1995-12-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hugibert', 'Getsham', null, 'Male', '1995-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Margo', 'Fettis', null, 'Female', '1996-11-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elsbeth', 'Gawne', null, 'Female', '1975-10-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Madelaine', 'Pestridge', '<EMAIL>', 'Female', '1983-10-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adelbert', 'Decker', null, 'Male', '1984-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Larina', 'Lamble', '<EMAIL>', 'Female', '1962-09-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Manon', 'Wigin', '<EMAIL>', 'Female', '1970-03-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dalli', 'Pilipets', '<EMAIL>', 'Male', '1977-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ruddy', 'Jeans', '<EMAIL>', 'Male', '1973-02-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Beryle', 'Luke', '<EMAIL>', 'Female', '1987-05-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Laureen', 'Shuxsmith', '<EMAIL>', 'Female', '1988-11-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Coral', 'Maylott', null, 'Female', '1973-09-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clemence', 'Lothean', '<EMAIL>', 'Female', '1990-12-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mariska', 'Adamowicz', '<EMAIL>', 'Female', '1965-03-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Curry', 'Himsworth', '<EMAIL>', 'Male', '1996-01-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Blair', 'Slocum', null, 'Male', '1983-05-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eugenio', 'Stede', '<EMAIL>', 'Male', '1966-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Milly', 'MacAlroy', null, 'Female', '1976-03-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carlin', 'Sowle', '<EMAIL>', 'Male', '1974-10-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tillie', 'Ankers', '<EMAIL>', 'Female', '1975-07-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pennie', 'Pavett', '<EMAIL>', 'Male', '1964-12-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ginger', 'McKintosh', '<EMAIL>', 'Female', '1975-12-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Josephine', 'Fritter', '<EMAIL>', 'Female', '1963-02-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Haleigh', 'D''eye', '<EMAIL>', 'Male', '1972-01-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Colby', 'Buddington', '<EMAIL>', 'Male', '1990-02-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lutero', 'Myall', '<EMAIL>', 'Male', '1981-06-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Odele', 'Lorriman', null, 'Female', '1997-10-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gavan', 'Bane', '<EMAIL>', 'Male', '1988-03-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dael', 'Stukings', '<EMAIL>', 'Female', '1970-08-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Donnell', 'Kayes', null, 'Male', '1979-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harriet', 'Jess', null, 'Female', '1982-01-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hube', 'Cicerone', '<EMAIL>', 'Male', '1991-01-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Webb', 'Hedman', '<EMAIL>', 'Male', '1994-09-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stephanus', 'Dradey', '<EMAIL>', 'Male', '1990-02-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Louise', 'Wragg', '<EMAIL>', 'Female', '1981-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ray', 'Bramah', '<EMAIL>', 'Male', '1991-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fayth', 'McCane', '<EMAIL>', 'Female', '1962-07-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marve', 'Skip', '<EMAIL>', 'Male', '1990-11-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brett', 'Bernlin', '<EMAIL>', 'Female', '1961-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brady', 'Oaks', null, 'Male', '1977-04-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fay', 'Lazenby', null, 'Female', '1995-09-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Traver', 'McVeagh', '<EMAIL>', 'Male', '1997-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joscelin', 'Brammall', '<EMAIL>', 'Female', '1987-10-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Breanne', 'Folomkin', '<EMAIL>', 'Female', '1983-04-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dino', 'Balazin', '<EMAIL>', 'Male', '1986-02-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Orelee', 'Hallatt', null, 'Female', '1987-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amby', 'Slarke', '<EMAIL>', 'Male', '1994-07-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arnold', 'Gurko', '<EMAIL>', 'Male', '1971-02-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cati', 'Eckart', '<EMAIL>', 'Female', '1989-10-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dolley', 'Fenemore', '<EMAIL>', 'Female', '1965-04-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lira', 'Lamberti', '<EMAIL>ert<EMAIL>', 'Female', '1978-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angele', 'Scullard', '<EMAIL>', 'Female', '1968-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chane', 'Dunabie', null, 'Male', '1991-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Astra', 'Brockbank', '<EMAIL>', 'Female', '1970-03-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aindrea', 'Renner', '<EMAIL>', 'Female', '1992-09-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Todd', 'O''Feeny', '<EMAIL>', 'Male', '1985-07-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jemie', 'Over', '<EMAIL>', 'Female', '1979-01-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jacquelyn', 'Amery', '<EMAIL>', 'Female', '1983-11-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Idalia', 'Westmoreland', '<EMAIL>', 'Female', '1970-07-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Linet', 'Luckwell', '<EMAIL>', 'Female', '1997-09-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Velvet', 'Wallage', null, 'Female', '1963-05-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adrian', 'Astin', '<EMAIL>', 'Male', '1998-01-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giraldo', 'McKearnen', '<EMAIL>', 'Male', '1990-09-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rosa', 'Mullins', '<EMAIL>', 'Female', '1984-11-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Isidro', 'Nono', '<EMAIL>', 'Male', '1983-06-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mel', 'Pepper', null, 'Female', '1995-10-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lynett', 'Mattke', '<EMAIL>', 'Female', '1968-10-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arman', 'Crosston', '<EMAIL>', 'Male', '1994-03-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Caz', 'Brackley', null, 'Male', '1976-02-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fax', 'Yankin', null, 'Male', '1973-06-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Guntar', 'Broxis', '<EMAIL>', 'Male', '1963-09-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sherri', 'Myatt', '<EMAIL>', 'Female', '1987-07-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hurleigh', 'Hritzko', '<EMAIL>', 'Male', '1977-04-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brooks', 'Yokley', null, 'Male', '1965-12-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Griff', 'Clipson', null, 'Male', '1967-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Arnold', 'Hamp', '<EMAIL>', 'Male', '1986-04-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Victoir', 'Hathorn', '<EMAIL>', 'Male', '1983-09-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kaiser', 'Slatten', '<EMAIL>', 'Male', '1988-10-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ranee', 'Aucock', '<EMAIL>', 'Female', '1973-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elvyn', 'Fenge', '<EMAIL>', 'Male', '1963-08-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marlin', 'Harmer', '<EMAIL>', 'Male', '1996-07-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Loleta', 'Pittaway', '<EMAIL>', 'Female', '1975-01-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ameline', 'Scriver', '<EMAIL>', 'Female', '1973-08-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chauncey', 'Mulchrone', '<EMAIL>', 'Male', '1980-05-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Haskell', 'Campe', null, 'Male', '1963-09-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Felipe', 'Bertot', '<EMAIL>', 'Male', '1962-05-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angie', 'Rosenau', '<EMAIL>', 'Female', '1990-05-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Darrick', 'Wortt', null, 'Male', '1966-04-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Katharyn', 'Cristofolini', '<EMAIL>', 'Female', '1993-11-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pattie', 'Feavearyear', '<EMAIL>', 'Male', '1977-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nellie', 'Linscott', '<EMAIL>', 'Female', '1990-08-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marv', 'Brandsma', null, 'Male', '1967-11-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Darsie', 'Minto', '<EMAIL>', 'Female', '1978-05-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Claire', 'Stritton', '<EMAIL>', 'Male', '1972-12-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Donovan', 'Mardling', '<EMAIL>', 'Male', '1981-06-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Floria', 'Elgar', '<EMAIL>', 'Female', '1964-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zechariah', 'Matelyunas', '<EMAIL>', 'Male', '1982-02-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Efrem', 'Bromont', '<EMAIL>', 'Male', '1997-06-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ernestus', 'Ashurst', null, 'Male', '1991-11-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clyve', 'Anyene', null, 'Male', '1985-11-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roseanna', 'Phython', null, 'Female', '1987-03-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salomone', 'Lucy', '<EMAIL>', 'Male', '1971-12-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Karie', 'Bolton', '<EMAIL>', 'Female', '1961-08-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kellby', 'Piesing', '<EMAIL>', 'Male', '1969-08-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Almira', 'Murrey', 'amurreyh<EMAIL>', 'Female', '1999-04-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sargent', 'Ovenell', '<EMAIL>', 'Male', '1972-12-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saundra', 'Hynson', '<EMAIL>', 'Female', '1989-05-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Grier', 'Radsdale', null, 'Female', '1995-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zeke', 'McAughtrie', '<EMAIL>', 'Male', '1969-11-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mallory', 'Coombes', null, 'Male', '1983-08-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giraldo', 'Crebo', '<EMAIL>', 'Male', '1985-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Franky', 'Kann', '<EMAIL>', 'Male', '1964-01-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amaleta', 'Gribble', '<EMAIL>', 'Female', '1985-11-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tomlin', 'Marfield', null, 'Male', '1976-06-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leonanie', 'Beavington', '<EMAIL>', 'Female', '1997-04-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Woodman', 'Avrahamian', '<EMAIL>', 'Male', '1987-10-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('My', 'Sturney', '<EMAIL>', 'Male', '1978-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carrie', 'Pikhno', '<EMAIL>', 'Female', '1994-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barbi', 'Banyard', '<EMAIL>', 'Female', '1992-07-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Free', 'Goldney', null, 'Male', '1964-12-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yvette', 'Kilmaster', '<EMAIL>', 'Female', '1989-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tabby', 'Gude', null, 'Male', '1979-08-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hurleigh', 'Nendick', '<EMAIL>', 'Male', '1964-09-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Laurens', 'Merner', '<EMAIL>', 'Male', '1970-10-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Merissa', 'Charlick', '<EMAIL>', 'Female', '1968-08-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marshal', 'Tankus', '<EMAIL>', 'Male', '1970-03-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tamara', 'Gooday', '<EMAIL>', 'Female', '1966-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corey', 'Duckett', '<EMAIL>', 'Female', '1976-11-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clarita', 'Overnell', null, 'Female', '1993-10-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ethelin', 'Mearns', '<EMAIL>', 'Female', '1980-04-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Reggis', 'Gabriel', null, 'Male', '1993-09-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Neille', 'Presidey', '<EMAIL>', 'Female', '1965-08-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Warren', 'Ancliffe', null, 'Male', '1973-05-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corrie', 'Orred', '<EMAIL>', 'Male', '1979-09-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cassi', 'Lawey', null, 'Female', '1998-08-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Davina', 'Raw', '<EMAIL>', 'Female', '1981-10-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kermie', 'Baudinet', null, 'Male', '1967-07-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adina', 'McWard', '<EMAIL>', 'Female', '1976-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Regan', 'Speeks', '<EMAIL>', 'Male', '1999-02-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saudra', 'Key', '<EMAIL>', 'Female', '1961-05-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Huntley', 'Ternouth', '<EMAIL>', 'Male', '1980-08-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Niki', 'Rackstraw', null, 'Male', '1961-01-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Evelyn', 'Gellion', '<EMAIL>', 'Female', '1995-08-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wells', 'Brisley', '<EMAIL>', 'Male', '1981-12-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cecil', 'Brotherheed', '<EMAIL>', 'Male', '1986-11-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Laverna', 'Posthill', '<EMAIL>', 'Female', '1984-05-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Miltie', 'Argue', null, 'Male', '1981-11-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aggy', 'Woodington', null, 'Female', '1962-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Idalina', 'Scotts', '<EMAIL>', 'Female', '1992-04-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Anatola', 'Burwin', null, 'Female', '1983-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yardley', 'Fawdery', '<EMAIL>', 'Male', '1963-11-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amalia', 'Brunone', '<EMAIL>', 'Female', '1996-05-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Boy', 'Castletine', '<EMAIL>', 'Male', '1989-12-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maggie', 'Measham', '<EMAIL>', 'Female', '1990-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ellswerth', 'Kinset', '<EMAIL>', 'Male', '1989-12-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Torie', 'Ounsworth', '<EMAIL>', 'Female', '1964-10-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gan', 'McCoy', null, 'Male', '1964-10-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ynes', 'Capenor', '<EMAIL>', 'Female', '1972-02-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ave', 'Mordacai', '<EMAIL>', 'Male', '1984-06-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Seumas', 'Hallibone', '<EMAIL>', 'Male', '1997-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elmira', 'Shorthouse', '<EMAIL>', 'Female', '1982-01-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carly', 'Stidever', '<EMAIL>', 'Male', '1988-01-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Franchot', 'MacFie', '<EMAIL>', 'Male', '1975-06-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Graeme', 'Bassam', null, 'Male', '1971-06-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nils', 'Mepham', '<EMAIL>', 'Male', '1972-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Enos', 'Axtonne', '<EMAIL>', 'Male', '1987-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lurette', 'Dubock', '<EMAIL>', 'Female', '1975-04-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Crystie', 'Wollers', null, 'Female', '1977-04-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harlene', 'Blackburn', null, 'Female', '1961-06-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Welsh', 'Scoggin', null, 'Male', '1967-06-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Royall', 'Orchart', '<EMAIL>', 'Male', '1989-03-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marilee', 'Marrow', null, 'Female', '1998-12-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Joleen', 'Horder', '<EMAIL>', 'Female', '1981-09-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carr', 'Scola', null, 'Male', '2000-01-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aileen', 'Scrowton', null, 'Female', '1962-02-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Roseanne', 'Mannooch', null, 'Female', '1991-05-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tomlin', 'Grove', null, 'Male', '1973-02-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Vito', 'Linggood', null, 'Male', '1989-04-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Modestine', 'Agronski', '<EMAIL>', 'Female', '1979-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Christiana', 'Hariot', null, 'Female', '1962-06-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ingmar', 'Scouller', '<EMAIL>', 'Male', '1966-07-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jessie', 'Palfreman', null, 'Male', '1978-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Erroll', 'Jacks', '<EMAIL>', 'Male', '1977-03-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dav', '<NAME>', '<EMAIL>', 'Male', '1964-05-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tiffi', 'Slimming', '<EMAIL>', 'Female', '1980-03-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ulla', 'Bannard', '<EMAIL>', 'Female', '1969-05-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salli', 'Heber', '<EMAIL>', 'Female', '1964-11-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Theodosia', 'McGinney', '<EMAIL>', 'Female', '1993-08-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hakim', 'Stanworth', null, 'Male', '1988-07-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hanny', 'Pyle', null, 'Female', '1979-01-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hieronymus', 'Lintill', '<EMAIL>', 'Male', '1970-07-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Godard', 'Han', '<EMAIL>', 'Male', '1979-06-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elston', 'Leet', '<EMAIL>', 'Male', '1999-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tiphany', 'Chaffey', null, 'Female', '1979-03-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Audra', 'Barz', '<EMAIL>', 'Female', '1985-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Honoria', 'Jakoubec', null, 'Female', '1985-06-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sheridan', 'Cockrill', '<EMAIL>', 'Male', '1989-10-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elene', 'L''Hommeau', '<EMAIL>', 'Female', '1998-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maximilian', 'Dahle', '<EMAIL>', 'Male', '1992-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Archaimbaud', 'Dawson', '<EMAIL>', 'Male', '1963-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adolph', 'Pleasance', '<EMAIL>', 'Male', '1989-01-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Grace', 'Henlon', null, 'Male', '2000-02-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shane', 'Obee', '<EMAIL>', 'Female', '1987-01-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Terrill', 'Burtonwood', null, 'Male', '1978-08-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rodrick', 'Tranter', null, 'Male', '1960-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Odella', 'Jefferson', '<EMAIL>', 'Female', '1964-05-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Buiron', 'Inston', '<EMAIL>', 'Male', '1987-05-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ozzie', 'Lesley', '<EMAIL>', 'Male', '1972-05-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Katine', 'Cordeiro', '<EMAIL>', 'Female', '1966-03-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lulu', 'Unwins', '<EMAIL>', 'Female', '1971-09-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amelina', 'Maleney', null, 'Female', '1988-09-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Donielle', 'Cozby', '<EMAIL>', 'Female', '1965-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hertha', 'Phair', null, 'Female', '1997-06-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kippie', 'Greste', '<EMAIL>', 'Male', '1972-07-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gerri', 'Sigmund', '<EMAIL>', 'Female', '1980-12-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Griswold', 'Libermore', '<EMAIL>', 'Male', '1983-11-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leela', 'Luety', null, 'Female', '1992-10-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marlin', 'Haucke', null, 'Male', '1989-01-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marielle', 'Coombes', '<EMAIL>', 'Female', '1996-06-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Charissa', 'Giffin', '<EMAIL>', 'Female', '1995-05-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harli', 'Danelut', '<EMAIL>', 'Female', '1972-05-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Margarita', 'Acedo', '<EMAIL>', 'Female', '1987-01-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alexandros', 'Hedgecock', '<EMAIL>', 'Male', '1974-02-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Farr', 'Rodolf', '<EMAIL>', 'Male', '1998-01-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Artemis', 'Vlasyev', '<EMAIL>', 'Male', '1965-07-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gusta', 'Gwinnell', '<EMAIL>', 'Female', '1999-05-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tiffy', 'Dinsey', '<EMAIL>', 'Female', '1976-01-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fran', 'Shepley', null, 'Male', '1989-04-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rikki', 'Monday', '<EMAIL>', 'Male', '1976-11-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amalia', 'Caughte', '<EMAIL>', 'Female', '1973-08-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adelheid', 'Morson', null, 'Female', '1975-01-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Edithe', 'Bruggeman', '<EMAIL>', 'Female', '1992-02-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Urban', 'Gonsalvo', null, 'Male', '1982-10-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Torr', 'Rodder', '<EMAIL>', 'Male', '1978-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Holly', 'Carhart', null, 'Female', '1977-10-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mateo', 'Lunnon', '<EMAIL>', 'Male', '1997-02-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Herschel', 'Rowett', null, 'Male', '1972-12-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lionello', 'Dmitrienko', '<EMAIL>', 'Male', '1987-04-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cosmo', 'Zukerman', '<EMAIL>', 'Male', '1995-02-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Teodoor', 'Castiglio', '<EMAIL>', 'Male', '1968-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brandtr', 'Clinnick', '<EMAIL>', 'Male', '1991-08-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nickie', 'Caitlin', null, 'Female', '1969-01-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hyacinthia', 'Minnis', null, 'Female', '1999-05-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bride', 'Franchyonok', null, 'Female', '1961-07-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rick', 'A''Barrow', '<EMAIL>', 'Male', '1965-05-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Eadmund', 'Hazelhurst', '<EMAIL>', 'Male', '1997-12-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kevyn', 'Tessyman', null, 'Female', '1973-04-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ed', 'Strauss', '<EMAIL>', 'Male', '1960-10-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tris', 'O''Shirine', '<EMAIL>', 'Male', '1996-12-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Delmer', 'Ridding', '<EMAIL>', 'Male', '1979-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Blane', 'Dressel', 'bd<EMAIL>', 'Male', '1979-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maire', 'Howerd', '<EMAIL>', 'Female', '1963-08-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Baillie', 'Wrathmell', '<EMAIL>', 'Male', '1979-01-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ashil', 'Sygrove', null, 'Female', '1971-02-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marisa', 'Orthmann', null, 'Female', '1969-11-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zsazsa', 'Poland', '<EMAIL>', 'Female', '1983-11-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Simona', 'Skippen', '<EMAIL>', 'Female', '1993-03-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jaclin', 'Beddoes', '<EMAIL>', 'Female', '1967-12-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Philipa', 'Sollowaye', '<EMAIL>', 'Female', '1964-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marty', 'Rubanenko', null, 'Female', '1970-08-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Reece', 'Spon', '<EMAIL>', 'Male', '1967-05-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Matthiew', 'Lamputt', null, 'Male', '1989-04-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ambrosio', 'Redferne', '<EMAIL>', 'Male', '1998-11-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nickey', 'Rosenfarb', '<EMAIL>', 'Male', '1987-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Louise', 'Ivashev', '<EMAIL>', 'Female', '1982-05-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sheridan', 'd'' Eye', '<EMAIL>', 'Male', '1982-09-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Friederike', 'Stolberg', null, 'Female', '1991-04-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ethe', 'Bliven', '<EMAIL>', 'Male', '1966-07-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Salomo', 'Stonestreet', '<EMAIL>', 'Male', '1993-06-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Federica', 'Klempke', null, 'Female', '1988-11-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benedicta', 'Buxey', '<EMAIL>', 'Female', '2000-01-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bertie', 'Dinjes', '<EMAIL>', 'Female', '1997-06-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Clarie', 'Goadbie', '<EMAIL>', 'Female', '1983-02-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fawnia', 'Powling', '<EMAIL>', 'Female', '1977-05-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jarid', 'Vasin', null, 'Male', '1974-04-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stacee', 'Tunna', '<EMAIL>', 'Female', '1979-03-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Burnard', 'Bampkin', '<EMAIL>', 'Male', '1994-10-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elsinore', 'Meadows', null, 'Female', '1969-05-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tobe', 'Lovart', '<EMAIL>', 'Male', '1992-08-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amalie', 'Royds', '<EMAIL>', 'Female', '1990-02-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Walt', 'Blood', '<EMAIL>', 'Male', '1998-03-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Janelle', 'Balderston', '<EMAIL>', 'Female', '1966-08-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mahmoud', 'Dallander', '<EMAIL>', 'Male', '1995-08-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fowler', 'Beininck', '<EMAIL>', 'Male', '1988-10-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Raleigh', 'Dommersen', null, 'Male', '1976-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jerrie', 'Hubert', '<EMAIL>', 'Male', '1963-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tabor', 'MacWilliam', null, 'Male', '1978-04-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Frederigo', 'Gabe', '<EMAIL>', 'Male', '1988-03-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corine', 'Jaggar', null, 'Female', '1966-07-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tawsha', 'Delgardillo', '<EMAIL>', 'Female', '1986-11-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rubin', 'Luparto', '<EMAIL>', 'Male', '1984-10-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Caryl', 'Dumbare', null, 'Female', '1963-05-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Virginie', 'Logue', '<EMAIL>', 'Female', '1968-07-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nelli', 'Sirmond', null, 'Female', '1965-08-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wilt', 'Mattiessen', null, 'Male', '1989-02-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Matthieu', 'Summons', '<EMAIL>', 'Male', '1985-01-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brooke', 'Whiston', null, 'Female', '1975-12-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aili', 'Gollin', null, 'Female', '1976-01-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Onida', 'Lerwill', '<EMAIL>', 'Female', '1969-01-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Carmina', 'Curner', '<EMAIL>', 'Female', '1986-04-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hilary', 'McGrann', null, 'Male', '1961-12-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Keefe', 'Haseman', '<EMAIL>', 'Male', '1981-05-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kenn', 'Langsbury', null, 'Male', '1990-01-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Yolande', 'Snelle', '<EMAIL>', 'Female', '1999-10-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marve', 'Fardell', '<EMAIL>', 'Male', '1996-03-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fredra', 'Gages', '<EMAIL>', 'Female', '1996-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Danie', 'Girardi', '<EMAIL>', 'Male', '1992-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jordana', 'Newborn', null, 'Female', '1973-05-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Neville', 'Jent', '<EMAIL>', 'Male', '1993-05-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kare', 'Gammie', null, 'Female', '1997-06-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rockwell', 'Dorkin', null, 'Male', '1986-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amelia', 'Brownsey', null, 'Female', '1966-06-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sky', 'Konmann', '<EMAIL>', 'Male', '1976-12-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shellie', 'Dunleavy', null, 'Female', '1975-02-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Orsola', 'Dozdill', '<EMAIL>', 'Female', '1971-05-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Amalle', 'Tydd', null, 'Female', '1988-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Templeton', 'Stubbe', '<EMAIL>', 'Male', '1986-06-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Matty', 'Anthonsen', '<EMAIL>', 'Female', '1981-02-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Boone', 'Vittery', '<EMAIL>', 'Male', '1982-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Abby', 'Allsop', '<EMAIL>', 'Male', '1989-03-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Shermy', 'Lindenboim', '<EMAIL>', 'Male', '1981-02-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Thorpe', 'Colloff', '<EMAIL>', 'Male', '1988-04-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leopold', 'Stollwerk', '<EMAIL>', 'Male', '1982-06-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Minnnie', 'Alfuso', '<EMAIL>', 'Female', '1982-02-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Judi', 'Burchfield', '<EMAIL>', 'Female', '1960-08-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Perrine', 'Scawton', null, 'Female', '1992-01-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bernadette', 'Palke', '<EMAIL>', 'Female', '1960-07-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Angelico', 'Simeons', '<EMAIL>', 'Male', '1995-10-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Julietta', 'Antonov', '<EMAIL>', 'Female', '1977-07-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lil', 'Abrashkin', '<EMAIL>', 'Female', '1979-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Robbie', 'Khristoforov', null, 'Male', '1996-09-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lawry', 'Poag', null, 'Male', '1986-11-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Everard', 'Brockherst', '<EMAIL>', 'Male', '1972-07-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cristionna', 'Egarr', null, 'Female', '1970-03-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Titus', 'Lovick', '<EMAIL>', 'Male', '1991-03-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Robby', 'Auld', '<EMAIL>', 'Female', '1988-10-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jackquelin', 'Pizer', '<EMAIL>', 'Female', '1967-09-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aretha', 'Hansberry', '<EMAIL>', 'Female', '1966-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Godard', 'Ascough', null, 'Male', '1985-08-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Faye', 'Boissier', '<EMAIL>', 'Female', '1988-09-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Barbaraanne', 'Ettles', '<EMAIL>', 'Female', '1972-07-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aurilia', 'Mayman', '<EMAIL>', 'Female', '1976-07-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benny', 'Riditch', null, 'Male', '1980-06-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Morgan', 'Staunton', '<EMAIL>', 'Male', '1987-11-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tann', 'Crake', '<EMAIL>', 'Male', '1977-07-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Darn', 'Gallager', '<EMAIL>', 'Male', '1971-11-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Garth', 'Godly', null, 'Male', '1980-02-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giulietta', 'Heersema', null, 'Female', '1967-12-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ulric', 'Hawkswood', '<EMAIL>', 'Male', '1998-07-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lorenzo', 'Shimmin', '<EMAIL>', 'Male', '1975-06-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Saree', 'Detoc', null, 'Female', '1993-05-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tye', 'Talloe', '<EMAIL>', 'Male', '1991-03-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ange', 'Shaxby', '<EMAIL>', 'Female', '1977-07-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jacquette', 'Kenwright', '<EMAIL>', 'Female', '1988-02-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('<NAME>', 'Eacott', '<EMAIL>', 'Female', '1966-12-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Neale', 'Comolli', '<EMAIL>', 'Male', '1980-08-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mattie', 'Goudman', '<EMAIL>', 'Female', '1982-06-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Christoper', 'Papachristophorou', '<EMAIL>', 'Male', '1963-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Letty', 'Adamowitz', '<EMAIL>', 'Female', '1978-05-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Erminie', 'Aspinwall', '<EMAIL>', 'Female', '1960-06-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Galvan', 'Jurek', '<EMAIL>', 'Male', '1980-08-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Maryellen', 'Delia', '<EMAIL>', 'Female', '1972-07-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elle', 'Braybrooks', '<EMAIL>', 'Female', '1967-04-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Marc', 'Brattan', '<EMAIL>', 'Male', '1969-06-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stanislaus', 'Boerderman', null, 'Male', '1994-05-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jake', 'Thirst', '<EMAIL>', 'Male', '1996-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Elizabeth', 'Drissell', '<EMAIL>', 'Female', '1995-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Ollie', 'Lynch', '<EMAIL>', 'Male', '1981-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Neda', 'Baskwell', '<EMAIL>', 'Female', '1973-06-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Charisse', 'Daniele', null, 'Female', '1993-05-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Grange', 'Reedman', '<EMAIL>', 'Male', '1985-04-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Konstanze', 'Snape', '<EMAIL>', 'Female', '1986-12-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Domini', 'Harnell', '<EMAIL>', 'Female', '1987-02-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Leesa', 'Folkes', '<EMAIL>', 'Female', '1991-03-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hall', 'Elies', '<EMAIL>', 'Male', '1960-09-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Syman', 'Dunderdale', null, 'Male', '1996-12-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Harriette', 'Storks', '<EMAIL>', 'Female', '1967-08-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sharron', 'McKitterick', '<EMAIL>', 'Female', '1963-06-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cathrin', 'Shottin', '<EMAIL>', 'Female', '1967-04-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bobbye', 'Delgua', null, 'Female', '1979-03-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rachele', 'Bruhnsen', '<EMAIL>', 'Female', '1973-11-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Malvin', 'Whitloe', '<EMAIL>', 'Male', '1996-04-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lane', 'Carlisi', '<EMAIL>', 'Male', '1962-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Asa', 'Rosendall', null, 'Male', '1969-11-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mike', 'Longbone', null, 'Male', '1985-08-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Albertina', 'Rissen', null, 'Female', '1976-01-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bebe', 'Brabben', '<EMAIL>', 'Female', '1980-07-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bevvy', 'Bentick', '<EMAIL>', 'Female', '1969-12-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Emyle', 'Sawley', null, 'Female', '1978-04-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Keely', 'Cansdell', '<EMAIL>', 'Female', '1962-09-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rolf', 'Jamme', '<EMAIL>', 'Male', '1975-11-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Raquela', 'Edinburough', null, 'Female', '1964-11-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mozes', 'Pree', '<EMAIL>', 'Male', '1984-09-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Catharine', 'Ravenshear', null, 'Female', '1981-02-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Donall', 'MacConnechie', '<EMAIL>', 'Male', '1987-04-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Viola', 'Stredder', '<EMAIL>', 'Female', '1989-04-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kiri', 'Paulisch', '<EMAIL>', 'Female', '1998-10-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lula', 'Feechan', null, 'Female', '1975-01-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Alfred', 'Baudains', '<EMAIL>', 'Male', '1967-11-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jeremiah', 'Antyukhin', '<EMAIL>', 'Male', '1989-04-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Donella', 'Tibbits', '<EMAIL>', 'Female', '1961-08-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nessie', 'Nurdin', null, 'Female', '1992-02-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Boot', 'Twigley', '<EMAIL>', 'Male', '1994-09-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Agnola', 'Bridywater', '<EMAIL>', 'Female', '1989-11-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Giustino', 'Linney', null, 'Male', '1989-06-28');
insert into people.person (first_name, last_name, email, gender, dob) values ('Huntington', 'Stares', '<EMAIL>', 'Male', '1988-08-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tedi', 'Brou', null, 'Female', '1980-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Luciano', 'Brandone', '<EMAIL>', 'Male', '1972-09-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cull', 'Keeton', null, 'Male', '1988-10-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Stesha', 'Siburn', '<EMAIL>', 'Female', '1975-03-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Caritta', 'Guarin', '<EMAIL>', 'Female', '1960-07-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pepito', 'Covert', '<EMAIL>', 'Male', '1963-11-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Catina', '<NAME>', '<EMAIL>', 'Female', '1971-09-22');
insert into people.person (first_name, last_name, email, gender, dob) values ('Verne', 'Cossey', '<EMAIL>', 'Male', '1970-01-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Corrie', 'McKibbin', '<EMAIL>', 'Male', '1969-10-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Sammy', 'Lambart', null, 'Male', '1978-07-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Zaneta', 'Gilyatt', null, 'Female', '1979-10-03');
insert into people.person (first_name, last_name, email, gender, dob) values ('Riobard', 'Dubose', '<EMAIL>', 'Male', '1968-12-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wheeler', 'Shattock', '<EMAIL>', 'Male', '1996-03-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Pierrette', 'Gumey', '<EMAIL>', 'Female', '1970-02-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Florida', 'Morgans', null, 'Female', '1993-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Troy', 'Percifer', '<EMAIL>', 'Male', '1972-01-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Prinz', 'Nangle', '<EMAIL>', 'Male', '1969-01-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Aviva', 'Brandsma', '<EMAIL>', 'Female', '1966-11-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kacie', 'Prenty', '<EMAIL>', 'Female', '1975-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rossy', 'Gilsthorpe', null, 'Male', '1991-10-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kira', 'Brouwer', null, 'Female', '1983-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bartie', 'Rappoport', '<EMAIL>', 'Male', '1995-06-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Nonie', 'Ohlsen', null, 'Female', '1973-04-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Estrellita', 'McIlvoray', '<EMAIL>', 'Female', '1968-11-07');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dian', 'Streat', '<EMAIL>', 'Female', '1990-06-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rhett', 'Hannant', '<EMAIL>', 'Male', '1989-08-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Haskell', 'Hartless', '<EMAIL>', 'Male', '1993-02-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dunc', 'Warsap', '<EMAIL>', 'Male', '1989-08-23');
insert into people.person (first_name, last_name, email, gender, dob) values ('Bradford', 'Roath', '<EMAIL>', 'Male', '1981-04-29');
insert into people.person (first_name, last_name, email, gender, dob) values ('Daisy', 'Drowsfield', '<EMAIL>', 'Female', '1995-01-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Gaile', 'Minghetti', '<EMAIL>', 'Male', '1995-02-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lia', 'Cambell', '<EMAIL>', 'Female', '1965-02-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Olav', 'Franciottoi', '<EMAIL>', 'Male', '1969-03-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('William', 'Simmers', null, 'Male', '1966-06-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jarid', 'Goodhew', '<EMAIL>', 'Male', '1971-08-04');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jessy', 'Belbin', null, 'Female', '1964-08-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chuck', 'Franscioni', null, 'Male', '1978-04-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Archibald', 'Lunge', null, 'Male', '1989-12-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Findley', 'Cordie', null, 'Male', '1995-04-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Otis', 'Rebbeck', '<EMAIL>', 'Male', '1970-04-25');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wyatan', 'Spendlove', '<EMAIL>', 'Male', '1969-01-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('Melli', 'Parkisson', '<EMAIL>', 'Female', '1999-02-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Astrid', 'Bullen', '<EMAIL>', 'Female', '1975-10-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Madlen', 'Antunez', '<EMAIL>', 'Female', '1983-02-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Adaline', '<NAME>', '<EMAIL>', 'Female', '1993-02-21');
insert into people.person (first_name, last_name, email, gender, dob) values ('Wilhelm', 'Rochewell', '<EMAIL>', 'Male', '1969-12-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Becka', 'Pfeiffer', '<EMAIL>', 'Female', '2000-01-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Beck', 'Bathurst', '<EMAIL>', 'Male', '1974-05-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hillery', 'Hoble', '<EMAIL>', 'Male', '1980-03-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Guthrie', 'Summerly', '<EMAIL>', 'Male', '1964-04-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Neille', 'Scase', null, 'Female', '1979-07-13');
insert into people.person (first_name, last_name, email, gender, dob) values ('Val', 'Stradling', '<EMAIL>', 'Male', '1987-02-24');
insert into people.person (first_name, last_name, email, gender, dob) values ('Breanne', 'Birt', '<EMAIL>', 'Female', '1978-07-08');
insert into people.person (first_name, last_name, email, gender, dob) values ('Fabiano', 'Pratchett', '<EMAIL>', 'Male', '1962-05-05');
insert into people.person (first_name, last_name, email, gender, dob) values ('Kalila', 'Lerner', '<EMAIL>', 'Female', '1988-08-12');
insert into people.person (first_name, last_name, email, gender, dob) values ('Brynna', 'Beidebeke', '<EMAIL>', 'Female', '1976-10-27');
insert into people.person (first_name, last_name, email, gender, dob) values ('Therese', 'Stileman', '<EMAIL>', 'Female', '1981-06-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Tan', 'Dillamore', '<EMAIL>', 'Male', '1966-07-16');
insert into people.person (first_name, last_name, email, gender, dob) values ('Chilton', 'Theriot', null, 'Male', '1983-12-15');
insert into people.person (first_name, last_name, email, gender, dob) values ('<NAME>', 'Wyldbore', '<EMAIL>', 'Female', '1992-01-09');
insert into people.person (first_name, last_name, email, gender, dob) values ('Iolanthe', 'Savatier', '<EMAIL>', 'Female', '1981-09-30');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lenard', 'Edens', '<EMAIL>', 'Male', '1997-02-10');
insert into people.person (first_name, last_name, email, gender, dob) values ('Rice', 'Alflat', '<EMAIL>', 'Male', '1963-03-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Billy', 'Stairmond', '<EMAIL>', 'Male', '1964-07-14');
insert into people.person (first_name, last_name, email, gender, dob) values ('Debby', 'Redgate', '<EMAIL>', 'Female', '1963-01-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Magdalene', 'Obal', '<EMAIL>', 'Female', '1964-08-26');
insert into people.person (first_name, last_name, email, gender, dob) values ('Perice', 'Kremer', '<EMAIL>', 'Male', '1996-03-06');
insert into people.person (first_name, last_name, email, gender, dob) values ('Weylin', 'Yacobsohn', '<EMAIL>', 'Male', '1961-11-02');
insert into people.person (first_name, last_name, email, gender, dob) values ('Mar', 'Kuban', null, 'Male', '1997-08-17');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lilia', 'Iacobucci', null, 'Female', '1985-05-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Benjy', 'Lerego', '<EMAIL>', 'Male', '1992-10-31');
insert into people.person (first_name, last_name, email, gender, dob) values ('Decca', 'Kobiela', '<EMAIL>', 'Male', '1972-12-20');
insert into people.person (first_name, last_name, email, gender, dob) values ('Dosi', 'Bilbey', null, 'Female', '1975-02-11');
insert into people.person (first_name, last_name, email, gender, dob) values ('Jolynn', 'Wigin', '<EMAIL>', 'Female', '1991-03-18');
insert into people.person (first_name, last_name, email, gender, dob) values ('Lonee', 'Knoton', '<EMAIL>', 'Female', '1990-07-19');
insert into people.person (first_name, last_name, email, gender, dob) values ('Cobby', 'Chadwen', '<EMAIL>', 'Male', '1982-10-01');
insert into people.person (first_name, last_name, email, gender, dob) values ('Hermine', 'Ciccarelli', '<EMAIL>', 'Female', '1962-07-17');
|
CREATE INDEX ix_facilities_published_delivery_radius ON facilities(published, delivery_radius);
|
CREATE TABLE analytics
(
title VARCHAR(255),
value INT(11)
);
INSERT INTO analytics VALUES ('visits', 0);
CREATE TABLE classes
(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255)
);
CREATE TABLE class_grps
(
id INT PRIMARY KEY AUTO_INCREMENT,
class_id INT(3),
name VARCHAR(255)
);
CREATE TABLE subjects
(
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(255)
);
CREATE TABLE classes_subjects
(
grp_id INT(10),
subjects TEXT
);
CREATE TABLE variables
(
title VARCHAR(255),
value TEXT
);
CREATE TABLE staff
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
password TEXT,
rank INT(3)
);
INSERT INTO staff VALUES ('admin', <PASSWORD>', 9);
/*admin:prolearn2020*/
CREATE TABLE teachers
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
gender VARCHAR(10),
birthdate VARCHAR(100),
subject INT(11),
last_seen VARCHAR(20),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
);
CREATE TABLE deleted_teachers
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
gender VARCHAR(10),
birthdate VARCHAR(100),
subject INT(11),
last_seen VARCHAR(20),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
);
CREATE TABLE students
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
gender VARCHAR(10),
class VARCHAR(100),
class_grp VARCHAR(100),
birthdate VARCHAR(100),
last_seen VARCHAR(100),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
);
CREATE TABLE deleted_students
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
gender VARCHAR(10),
class VARCHAR(100),
class_grp VARCHAR(100),
birthdate VARCHAR(100),
last_seen VARCHAR(100),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
);
CREATE TABLE parents
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
student_id INT(11),
last_seen VARCHAR(20),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
);
CREATE TABLE deleted_parents
(
id INT PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(255),
firstname VARCHAR(255),
lastname VARCHAR(255),
student_id INT(11),
last_seen VARCHAR(20),
last_ip VARCHAR(100),
last_device VARCHAR(255),
password TEXT
); |
<reponame>Arbupa/DAS_Sistemas
create database BreakBad;
use BreakBad;
CREATE TABLE IF NOT EXISTS characters (
id INT(10) PRIMARY KEY,
name VARCHAR (50),
birthday VARCHAR (50),
occupation VARCHAR (50),
img VARCHAR (200),
status VARCHAR (50),
nickname VARCHAR (50),
portrayed VARCHAR (50),
category VARCHAR (50)
); |
<gh_stars>100-1000
insert into balance (id, created_at, status, updated_at, account_id, amount)
values (1, now(), 1, null, 1001, 99.91); |
CREATE OR REPLACE FUNCTION utils.get_object_image_count(objcsid VARCHAR)
RETURNS INTEGER
AS
$$
DECLARE
imagecount INTEGER;
BEGIN
select count(*)
into imagecount
from collectionobjects_common co
JOIN hierarchy hrel on (co.id = hrel.id)
JOIN relations_common rimg on (
hrel.name = rimg.objectcsid and rimg.subjectdocumenttype = 'Media')
JOIN hierarchy hmc on (rimg.subjectcsid = hmc.name)
JOIN media_common mc on (mc.id = hmc.id)
JOIN misc m on (mc.id = m.id and m.lifecyclestate <> 'deleted')
where hrel.name = $1;
RETURN imagecount;
END;
$$
LANGUAGE 'plpgsql'
IMMUTABLE
RETURNS NULL ON NULL INPUT;
GRANT EXECUTE ON FUNCTION utils.get_object_image_count(objcsid VARCHAR) TO reader_bampfa;
GRANT EXECUTE ON FUNCTION utils.get_object_image_count(objcsid VARCHAR) TO GROUP reporters_bampfa;
/* test queries for dev and prod:
select utils.get_object_image_count('f7fe16a5-0ec8-4749-b32f-89d6e219991e');
select utils.get_object_image_count('5f555913-aad3-4386-b743-06480cbbcee2');
*/
|
<gh_stars>0
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for budget
-- ----------------------------
DROP TABLE IF EXISTS `budget`;
CREATE TABLE `budget` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`dtInclusion` datetime DEFAULT NULL,
`total` decimal(19,2) DEFAULT NULL,
`fk_cliente` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_foreign_cli` (`fk_cliente`),
CONSTRAINT `fk_foreign_cli` FOREIGN KEY (`fk_cliente`) REFERENCES `cliente` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of budget
-- ----------------------------
-- ----------------------------
-- Table structure for category
-- ----------------------------
DROP TABLE IF EXISTS `category`;
CREATE TABLE `category` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`active` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of category
-- ----------------------------
INSERT INTO `category` VALUES ('1', 'eletronico', '1');
-- ----------------------------
-- Table structure for cliente
-- ----------------------------
DROP TABLE IF EXISTS `cliente`;
CREATE TABLE `cliente` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`document` varchar(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of cliente
-- ----------------------------
-- ----------------------------
-- Table structure for items
-- ----------------------------
DROP TABLE IF EXISTS `items`;
CREATE TABLE `items` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`quantity` int(11) DEFAULT NULL,
`fk_budget` int(11) DEFAULT NULL,
`fk_product` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_foreign_pro` (`fk_product`),
KEY `fk_foreign_bud` (`fk_budget`),
CONSTRAINT `fk_foreign_bud` FOREIGN KEY (`fk_budget`) REFERENCES `budget` (`id`),
CONSTRAINT `fk_foreign_pro` FOREIGN KEY (`fk_product`) REFERENCES `product` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of items
-- ----------------------------
-- ----------------------------
-- Table structure for permission
-- ----------------------------
DROP TABLE IF EXISTS `permission`;
CREATE TABLE `permission` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of permission
-- ----------------------------
INSERT INTO `permission` VALUES ('1', 'USER');
-- ----------------------------
-- Table structure for product
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,
`description` varchar(100) DEFAULT NULL,
`price` double DEFAULT NULL,
`fk_category` int(11) NOT NULL,
`active` tinyint(4) DEFAULT NULL,
`storeId` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_category` (`fk_category`),
CONSTRAINT `product_ibfk_1` FOREIGN KEY (`fk_category`) REFERENCES `category` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of product
-- ----------------------------
-- ----------------------------
-- Table structure for profile
-- ----------------------------
DROP TABLE IF EXISTS `profile`;
CREATE TABLE `profile` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of profile
-- ----------------------------
INSERT INTO `profile` VALUES ('1', 'ADM');
-- ----------------------------
-- Table structure for profile_permission
-- ----------------------------
DROP TABLE IF EXISTS `profile_permission`;
CREATE TABLE `profile_permission` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`fk_permission` bigint(20) DEFAULT NULL,
`fk_profile` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_foreign_perm_1` (`fk_permission`),
KEY `fk_foreign_prof_1` (`fk_profile`),
CONSTRAINT `fk_foreign_perm_1` FOREIGN KEY (`fk_permission`) REFERENCES `permission` (`id`),
CONSTRAINT `fk_foreign_prof_1` FOREIGN KEY (`fk_profile`) REFERENCES `profile` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- ----------------------------
-- Records of profile_permission
-- ----------------------------
INSERT INTO `profile_permission` VALUES ('1', '1', '1');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`fk_profile` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `fk_prof_2` (`fk_profile`),
CONSTRAINT `fk_prof_2` FOREIGN KEY (`fk_profile`) REFERENCES `profile` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
<reponame>ProjectKaiser/pk-qderby
connect 'jdbc:derby:K:/Products/triniforce/bin/dbs/derby;create=false;upgrade=true';
select count(*) from t_tfile;
|
CREATE database test;
CREATE TABLE `user`(
id INT(11) NOT NULL AUTO_INCREMENT COMMENT '主键id',
NAME VARCHAR(18) NOT NULL COMMENT '姓名',
age INT(11) DEFAULT '0' COMMENT '年龄',
PRIMARY KEY (`id`)
) ENGINE=INNODB DEFAULT CHARSET=utf8; |
<filename>db/create_db.sql<gh_stars>0
create database ourroots;
create user ourroots with encrypted password 'password';
create user ourroots_schema with encrypted password 'password';
grant all privileges on database ourroots to ourroots_schema;
-- grant all privileges on database ourroots to ourroots;
|
----------------------------------------------------------------------------
-- Trivadis AG, Infrastructure Managed Services
-- Saegereistrasse 29, 8152 Glattbrugg, Switzerland
----------------------------------------------------------------------------
-- Name......: 03_create_scott_pdb1.sql.sql
-- Author....: <NAME> (oes) <EMAIL>
-- Editor....: <NAME>
-- Date......: 2021.01.11
-- Revision..:
-- Purpose...: Script to create the SCOTT schema in PDB1
-- Notes.....:
-- Reference.: SYS (or grant manually to a DBA)
-- License...: Apache License Version 2.0, January 2004 as shown
-- at http://www.apache.org/licenses/
----------------------------------------------------------------------------
-- set the current
alter session set container=pdb1;
-- cleanup section
DECLARE
vcount INTEGER :=0;
BEGIN
SELECT count(1) INTO vcount FROM dba_users WHERE username = 'SCOTT';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP USER scott CASCADE');
END IF;
SELECT count(1) INTO vcount FROM dba_users WHERE username = 'ADAMS';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP USER adams CASCADE');
END IF;
SELECT count(1) INTO vcount FROM dba_users WHERE username = 'JONES';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP USER jones CASCADE');
END IF;
SELECT count(1) INTO vcount FROM dba_users WHERE username = 'CLARK';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP USER clark CASCADE');
END IF;
SELECT count(1) INTO vcount FROM dba_users WHERE username = 'BLAKE';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP USER blake CASCADE');
END IF;
SELECT count(1) INTO vcount FROM dba_synonyms WHERE owner = 'PUBLIC' AND synonym_name = 'PARTS';
IF vcount != 0 THEN
EXECUTE IMMEDIATE ('DROP PUBLIC SYNONYM parts');
END IF;
END;
/
GRANT CONNECT,RESOURCE,UNLIMITED TABLESPACE TO SCOTT IDENTIFIED BY tiger;
ALTER SESSION SET CURRENT_SCHEMA=SCOTT;
CREATE TABLE DEPT
(DEPTNO NUMBER(2) CONSTRAINT PK_DEPT PRIMARY KEY,
DNAME VARCHAR2(14) ,
LOC VARCHAR2(13) ) ;
CREATE TABLE EMP
(EMPNO NUMBER(4) CONSTRAINT PK_EMP PRIMARY KEY,
ENAME VARCHAR2(10),
JOB VARCHAR2(9),
MGR NUMBER(4),
HIREDATE DATE,
SAL NUMBER(7,2),
COMM NUMBER(7,2),
DEPTNO NUMBER(2) CONSTRAINT FK_DEPTNO REFERENCES DEPT);
INSERT INTO DEPT VALUES
(10,'ACCOUNTING','NEW YORK');
INSERT INTO DEPT VALUES (20,'RESEARCH','DALLAS');
INSERT INTO DEPT VALUES
(30,'SALES','CHICAGO');
INSERT INTO DEPT VALUES
(40,'OPERATIONS','BOSTON');
INSERT INTO EMP VALUES
(7369,'SMITH','CLERK',7902,to_date('17-12-1980','dd-mm-yyyy'),800,NULL,20);
INSERT INTO EMP VALUES
(7499,'ALLEN','SALESMAN',7698,to_date('20-2-1981','dd-mm-yyyy'),1600,300,30);
INSERT INTO EMP VALUES
(7521,'WARD','SALESMAN',7698,to_date('22-2-1981','dd-mm-yyyy'),1250,500,30);
INSERT INTO EMP VALUES
(7566,'JONES','MANAGER',7839,to_date('2-4-1981','dd-mm-yyyy'),2975,NULL,20);
INSERT INTO EMP VALUES
(7654,'MARTIN','SALESMAN',7698,to_date('28-9-1981','dd-mm-yyyy'),1250,1400,30);
INSERT INTO EMP VALUES
(7698,'BLAKE','MANAGER',7839,to_date('1-5-1981','dd-mm-yyyy'),2850,NULL,30);
INSERT INTO EMP VALUES
(7782,'CLARK','MANAGER',7839,to_date('9-6-1981','dd-mm-yyyy'),2450,NULL,10);
INSERT INTO EMP VALUES
(7788,'SCOTT','ANALYST',7566,to_date('13-JUL-87','dd-mm-rr')-85,3000,NULL,20);
INSERT INTO EMP VALUES
(7839,'KING','PRESIDENT',NULL,to_date('17-11-1981','dd-mm-yyyy'),5000,NULL,10);
INSERT INTO EMP VALUES
(7844,'TURNER','SALESMAN',7698,to_date('8-9-1981','dd-mm-yyyy'),1500,0,30);
INSERT INTO EMP VALUES
(7876,'ADAMS','CLERK',7788,to_date('13-JUL-87', 'dd-mm-rr')-51,1100,NULL,20);
INSERT INTO EMP VALUES
(7900,'JAMES','CLERK',7698,to_date('3-12-1981','dd-mm-yyyy'),950,NULL,30);
INSERT INTO EMP VALUES
(7902,'FORD','ANALYST',7566,to_date('3-12-1981','dd-mm-yyyy'),3000,NULL,20);
INSERT INTO EMP VALUES
(7934,'MILLER','CLERK',7782,to_date('23-1-1982','dd-mm-yyyy'),1300,NULL,10);
CREATE TABLE BONUS
(
ENAME VARCHAR2(10) ,
JOB VARCHAR2(9) ,
SAL NUMBER,
COMM NUMBER
) ;
CREATE TABLE SALGRADE
( GRADE NUMBER,
LOSAL NUMBER,
HISAL NUMBER );
INSERT INTO SALGRADE VALUES (1,700,1200);
INSERT INTO SALGRADE VALUES (2,1201,1400);
INSERT INTO SALGRADE VALUES (3,1401,2000);
INSERT INTO SALGRADE VALUES (4,2001,3000);
INSERT INTO SALGRADE VALUES (5,3001,9999);
COMMIT;
-- EOF --------------------------------------------------------------------- |
create or replace package body owa_util_pkg
as
/*
Purpose: Package contains utilities related to PL/SQL Web Toolkit (OWA)
Remarks:
Who Date Description
------ ---------- --------------------------------
MBR 12.06.2008 Created
*/
procedure htp_print_clob (p_clob in clob,
p_add_newline in boolean := true)
as
l_buffer varchar2(32767);
l_max_size constant integer := 8000;
l_start integer := 1;
l_cloblen integer;
begin
/*
Purpose: print clob to HTTP buffer
Remarks: from http://francis.blog-city.com/ora20103_null_input_is_not_allowed.htm
Who Date Description
------ ---------- -------------------------------------
MBR 19.01.2009 Created
*/
if p_clob is not null then
l_cloblen := dbms_lob.getlength (p_clob );
loop
l_buffer := dbms_lob.substr (p_clob, l_max_size, l_start);
htp.prn (l_buffer);
l_start := l_start + l_max_size;
exit when l_start > l_cloblen;
end loop ;
if p_add_newline then
htp.p;
end if;
end if;
end htp_print_clob;
procedure htp_printf (p_str in varchar2,
p_value1 in varchar2 := null,
p_value2 in varchar2 := null,
p_value3 in varchar2 := null,
p_value4 in varchar2 := null,
p_value5 in varchar2 := null,
p_value6 in varchar2 := null,
p_value7 in varchar2 := null,
p_value8 in varchar2 := null)
as
begin
/*
Purpose: print string with substitution values to HTTP buffer
Remarks:
Who Date Description
------ ---------- -------------------------------------
MBR 06.02.2011 Created
*/
htp.p(string_util_pkg.get_str(p_str, p_value1, p_value2, p_value3, p_value4, p_value5, p_value6, p_value7, p_value8));
end htp_printf;
procedure init_owa (p_names in owa.vc_arr := g_empty_vc_arr,
p_values in owa.vc_arr := g_empty_vc_arr)
as
l_version pls_integer;
l_names owa.vc_arr := p_names;
l_values owa.vc_arr := p_values;
begin
/*
Purpose: initialize OWA environment
Remarks: all gateways (mod_plsql, DBMS_EPG, Apex Listener, Thoth Gateway, etc.)
will do this automatically before a procedure is invoked via a web server
but this is useful (and required) for calling web procedures via sqlplus or other (non-gateway) tools
see http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:347617533333
Who Date Description
------ ---------- -------------------------------------
MBR 22.01.2011 Created
*/
l_version := owa.initialize;
if l_names.count = 0 then
l_names(1) := 'PLSQL_GATEWAY';
l_values(1) := 'Dummy Gateway';
l_names(2) := 'GATEWAY_IVERSION';
l_values(2) := '2';
l_names(3) := 'HTTP_USER_AGENT';
l_values(3) := 'Mozilla/5.0 (compatible); SQL*Plus';
l_names(4) := 'REQUEST_CHARSET';
l_values(4) := 'AL32UTF8';
l_names(5) := 'REQUEST_IANA_CHARSET';
l_values(5) := 'UTF-8';
end if;
owa.init_cgi_env(l_names.count, l_names, l_values);
htp.init;
htp.htbuf_len := 63;
end init_owa;
function get_page (p_include_headers in boolean := true) return clob
as
l_page htp.htbuf_arr;
l_lines pls_integer := 99999999;
l_returnvalue clob;
begin
/*
Purpose: get page from HTTP buffer
Remarks: see http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:347617533333
Who Date Description
------ ---------- -------------------------------------
MBR 22.01.2011 Created
MBR 20.03.2011 Added option to exclude headers
*/
owa.get_page (l_page, l_lines);
for i in 1 .. l_lines loop
l_returnvalue := l_returnvalue || l_page(i);
end loop;
if (not p_include_headers) then
l_returnvalue := substr(l_returnvalue, instr(l_returnvalue, owa.nl_char || owa.nl_char));
end if;
return l_returnvalue;
end get_page;
function is_user_agent_ie return boolean
as
l_returnvalue boolean;
begin
/*
Purpose: is user agent Internet Explorer ?
Remarks:
Who Date Description
------ ---------- -------------------------------------
MBR 27.02.2012 Created
*/
l_returnvalue := instr(owa_util.get_cgi_env('HTTP_USER_AGENT'), ' MSIE ') > 0;
return l_returnvalue;
end is_user_agent_ie;
procedure download_file (p_file in blob,
p_mime_type in varchar2,
p_file_name in varchar2,
p_expires in date := null)
as
l_file blob := p_file; -- need a local copy as wpg_docload.download_file uses an IN OUT parameter
begin
/*
Purpose: download file
Remarks:
Who Date Description
------ ---------- -------------------------------------
MBR 23.09.2012 Created
*/
owa_util.mime_header(nvl(p_mime_type, 'application/octet'), false);
htp.p('Content-length: ' || dbms_lob.getlength(p_file));
if p_expires is not null then
htp.p('Expires:' || to_char(p_expires, 'FMDy, DD Month YYYY HH24:MI:SS') || 'GMT');
end if;
htp.p('Content-Disposition: attachment; filename="' || nvl(p_file_name, 'untitled') || '"');
owa_util.http_header_close;
wpg_docload.download_file (l_file);
end download_file;
end owa_util_pkg;
/
|
UPDATE district SET name = 'Palomar' WHERE ccc_id ='60';
|
alter system set optimizer_capture_sql_plan_baselines=TRUE scope=memory;
|
--
-- Copyright 2020 The Android Open Source Project
--
-- Licensed under the Apache License, Version 2.0 (the 'License');
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an 'AS IS' BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
-- While handling a InputLatency::GestureScrollUpdate event a sequence of Flows
-- define the critical path from Beginning to End. This metric breaks down the
-- flows for the same InputLatency::GestureScrollUpdate event.
--
-- WARNING: This metric should not be used as a source of truth. It is under
-- active development and the values & meaning might change without
-- notice.
-- Provides the scroll_jank table which gives us all the GestureScrollUpdate
-- events we care about and labels them janky or not.
SELECT RUN_METRIC(
'chrome/gesture_flow_event.sql',
'prefix', 'scroll',
'gesture_update', 'GestureScrollUpdate',
'id_field', 'gesture_scroll_id'
);
|
drop extension pg_graphql;
create extension pg_graphql;
select graphql.resolve($${ heartbeat }$$) -> 'data' ->> 'heartbeat' like '2%';
|
-- @author prabhd
-- @created 2014-04-01 12:00:00
-- @modified 2012-04-01 12:00:00
-- @tags dml MPP-21090 ORCA
-- @product_version gpdb: [4.3-]
-- @optimizer_mode on
-- @description Tests for MPP-21090
\echo --start_ignore
set gp_enable_column_oriented_table=on;
\echo --end_ignore
DROP TABLE IF EXISTS colalias_dml_float;
CREATE TABLE colalias_dml_float
(
col1 float DEFAULT 1.00,
col2 float,
col3 char,
col4 float,
col5 float
)
DISTRIBUTED by (col1)
PARTITION BY LIST(col2)
(
default partition def
);
DROP TABLE IF EXISTS colalias_dml_float_candidate;
CREATE TABLE colalias_dml_float_candidate
(
col1 float DEFAULT 1.00,
col2 float,
col3 char,
col4 float,
col5 float
) DISTRIBUTED by (col2);
INSERT INTO colalias_dml_float_candidate VALUES(2.00,1.00,'a',2.00,1.00);
INSERT INTO colalias_dml_float(col2,col1,col3,col5,col4) SELECT col1,col2,col3,col5,col4 FROM (SELECT col1,col1 as col2,col3,col5 as col4,col5 FROM colalias_dml_float_candidate)foo;
SELECT * FROM colalias_dml_float ORDER BY 1,2,3,4;
UPDATE colalias_dml_float SET col1 = (select col2 as col1 FROM colalias_dml_float_candidate);
SELECT * FROM colalias_dml_float ORDER BY 1,2,3,4;
UPDATE colalias_dml_float SET col1 =colalias_dml_float_candidate.col2 FROM colalias_dml_float_candidate;
SELECT * FROM colalias_dml_float ORDER BY 1,2,3,4;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.