sql stringlengths 6 1.05M |
|---|
<filename>assets/database/ezpet.sql
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 19, 2020 at 07:59 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
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: `ezpet`
--
-- --------------------------------------------------------
--
--
-- --------------------------------------------------------
--
-- Table structure for table `dogplayground`
--
CREATE TABLE `dogplayground` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`pet_age` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`area` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dogplayground`
--
INSERT INTO `dogplayground` (`id`, `first_name`, `phone`, `email`, `pet_age`, `pet_name`, `pet_breed`, `area`) VALUES
(1, 'john', '9974563210', '<EMAIL>', '9', 'scooby', 'dol', 'star');
-- --------------------------------------------------------
--
-- Table structure for table `dogwalker`
--
CREATE TABLE `dogwalker` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`pet_age` varchar(15) NOT NULL,
`color` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `dogwalker`
--
INSERT INTO `dogwalker` (`id`, `first_name`, `phone`, `email`, `ephone`, `pet_name`, `pet_breed`, `pet_age`, `color`) VALUES
(1, 'dynamo', '9947856456', '<EMAIL>', '9986457852', 'tom', 'cat', '9', 'brown');
-- --------------------------------------------------------
--
-- Table structure for table `funeral`
--
CREATE TABLE `funeral` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`birth` date NOT NULL DEFAULT current_timestamp(),
`death` date NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `funeral`
--
INSERT INTO `funeral` (`id`, `first_name`, `phone`, `email`, `pet_name`, `pet_breed`, `birth`, `death`) VALUES
(1, 'josh', '9874561232', '<EMAIL>', 'asf', 'saf', '2017-01-04', '2020-03-19');
-- --------------------------------------------------------
--
-- Table structure for table `globalpet`
--
CREATE TABLE `globalpet` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`passport` varchar(50) NOT NULL,
`location` varchar(50) NOT NULL,
`dest` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `globalpet`
--
INSERT INTO `globalpet` (`id`, `first_name`, `phone`, `email`, `ephone`, `pet_name`, `pet_breed`, `passport`, `location`, `dest`) VALUES
(1, 'john', '9874563210', '<EMAIL>', '', 'scooby', 'dol', '321456987', 'uk', 'usa');
-- --------------------------------------------------------
--
-- Table structure for table `petbedding`
--
CREATE TABLE `petbedding` (
`id` int(10) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`bed_size` varchar(15) NOT NULL,
`color` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `petclub`
--
CREATE TABLE `petclub` (
`id` int(10) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`food` varchar(50) NOT NULL,
`pet_food_quantity` varchar(50) NOT NULL,
`gender` enum('Male','Female') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `petclub`
--
INSERT INTO `petclub` (`id`, `pet_name`, `pet_breed`, `food`, `pet_food_quantity`, `gender`) VALUES
(1, 'scooby', 'dol', 'drols', '2kg', 'Male');
-- --------------------------------------------------------
--
-- Table structure for table `petfashion`
--
CREATE TABLE `petfashion` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` int(15) NOT NULL,
`email` varchar(50) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`pet_size` int(15) NOT NULL,
`costume_type` varchar(50) NOT NULL,
`costume_name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `pethostel`
--
CREATE TABLE `pethostel` (
`id` int(11) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`gender` enum('Male','Female') NOT NULL,
`first_name` varchar(255) NOT NULL,
`email` varchar(50) NOT NULL,
`phone` varchar(15) NOT NULL,
`date_j` date NOT NULL DEFAULT current_timestamp(),
`date_l` date NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `pethostel`
--
INSERT INTO `pethostel` (`id`, `pet_name`, `pet_breed`, `gender`, `first_name`, `email`, `phone`, `date_j`, `date_l`) VALUES
(1, 'scooby', 'dol', 'Male', 'john', '<EMAIL>', '9874563210', '2020-01-01', '2020-05-01');
-- --------------------------------------------------------
--
-- Table structure for table `petsitter`
--
CREATE TABLE `petsitter` (
`id` int(11) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`address` varchar(255) NOT NULL,
`alarm_de_code` varchar(15) NOT NULL,
`alarm_ac_code` varchar(15) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `petsitter`
--
INSERT INTO `petsitter` (`id`, `first_name`, `phone`, `email`, `ephone`, `pet_name`, `pet_breed`, `address`, `alarm_de_code`, `alarm_ac_code`) VALUES
(1, 'skak', '9845678956', 'sifglash', '8234665658', 'kjbkjf', 'kjabdkj', 'kjqbsfkb ', 'kbkqbfk', 'qkjbvk'),
(2, 'kishor', '9989381745', '<EMAIL>', '9848022338', 'scooby', 'dol', 'ark ', '12136456', '12345');
-- --------------------------------------------------------
--
-- Table structure for table `pettaxi`
--
CREATE TABLE `pettaxi` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`paddress` varchar(50) NOT NULL,
`daddress` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `pettaxi`
--
INSERT INTO `pettaxi` (`id`, `first_name`, `phone`, `email`, `ephone`, `pet_name`, `paddress`, `daddress`) VALUES
(1, 'john', '9874563210', '<EMAIL>', '9123456789', 'asdf', 'uk', 'usa');
-- --------------------------------------------------------
--
-- Table structure for table `pet_day_care`
--
CREATE TABLE `pet_day_care` (
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`address` varchar(255) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`gender` enum('Male','Female') NOT NULL,
`pet_food_type` varchar(50) NOT NULL,
`pet_food_quantity` varchar(50) NOT NULL,
`id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `pet_day_care`
--
INSERT INTO `pet_day_care` (`first_name`, `phone`, `email`, `ephone`, `address`, `pet_name`, `pet_breed`, `gender`, `pet_food_type`, `pet_food_quantity`, `id`) VALUES
('kiran', '9884984544', '<EMAIL>', '', 'arj', 'scooby', 'dol', 'Male', 'drools', '2kg', 1),
('john', '9874561236', '<EMAIL>', '9874556556', 'asf', 'jeff', 'dassd', 'Male', 'drools', '5kg', 2),
('john', '9874563210', '<EMAIL>', '9123456789', 'sadfs', 'scooby', 'dal', 'Male', 'drools', '2kg', 3);
-- --------------------------------------------------------
--
-- Table structure for table `pet_training`
--
CREATE TABLE `pet_training` (
`id` int(10) NOT NULL,
`first_name` varchar(255) NOT NULL,
`phone` varchar(15) NOT NULL,
`email` varchar(50) NOT NULL,
`ephone` varchar(15) NOT NULL,
`pet_name` varchar(255) NOT NULL,
`pet_breed` varchar(255) NOT NULL,
`level` enum('beginner','intermediate','advance') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `pet_training`
--
INSERT INTO `pet_training` (`id`, `first_name`, `phone`, `email`, `ephone`, `pet_name`, `pet_breed`, `level`) VALUES
(1, 'john', '9874563210', '<EMAIL>', '', 'scooby', 'dol', 'beginner');
--
-- Indexes for dumped tables
--
--
--
--
-- Indexes for table `dogplayground`
--
ALTER TABLE `dogplayground`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dogwalker`
--
ALTER TABLE `dogwalker`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `funeral`
--
ALTER TABLE `funeral`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `globalpet`
--
ALTER TABLE `globalpet`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `petbedding`
--
ALTER TABLE `petbedding`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `petclub`
--
ALTER TABLE `petclub`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `petfashion`
--
ALTER TABLE `petfashion`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pethostel`
--
ALTER TABLE `pethostel`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `petsitter`
--
ALTER TABLE `petsitter`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pettaxi`
--
ALTER TABLE `pettaxi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pet_day_care`
--
ALTER TABLE `pet_day_care`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pet_training`
--
ALTER TABLE `pet_training`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `dia`
--
ALTER TABLE `dia`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dogplayground`
--
ALTER TABLE `dogplayground`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `dogwalker`
--
ALTER TABLE `dogwalker`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `funeral`
--
ALTER TABLE `funeral`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `globalpet`
--
ALTER TABLE `globalpet`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `petbedding`
--
ALTER TABLE `petbedding`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `petclub`
--
ALTER TABLE `petclub`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `petfashion`
--
ALTER TABLE `petfashion`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pethostel`
--
ALTER TABLE `pethostel`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `petsitter`
--
ALTER TABLE `petsitter`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `pettaxi`
--
ALTER TABLE `pettaxi`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `pet_day_care`
--
ALTER TABLE `pet_day_care`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `pet_training`
--
ALTER TABLE `pet_training`
MODIFY `id` int(10) 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.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 18 Jul 2021 pada 15.44
-- Versi server: 10.1.34-MariaDB
-- Versi PHP: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `univ`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `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;
-- --------------------------------------------------------
--
-- Struktur dari tabel `mahasiswa`
--
CREATE TABLE `mahasiswa` (
`id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`npm` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`tempat_lahir` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`tgl_lahir` date NOT NULL,
`gender` enum('L','P','','') COLLATE utf8mb4_unicode_ci NOT NULL,
`telepon` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`alamat` text COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `mahasiswa`
--
INSERT INTO `mahasiswa` (`id`, `user_id`, `npm`, `tempat_lahir`, `tgl_lahir`, `gender`, `telepon`, `alamat`) VALUES
(1, 2, '19630714', 'Banjarmasin', '1997-07-18', 'L', '085249062488', 'Martapura');
-- --------------------------------------------------------
--
-- Struktur dari tabel `makul`
--
CREATE TABLE `makul` (
`id` int(11) NOT NULL,
`kd_makul` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama_makul` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`sks` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `makul`
--
INSERT INTO `makul` (`id`, `kd_makul`, `nama_makul`, `sks`) VALUES
(3, 'MKL001', 'MATEMATIKA DISKRIT', 3),
(4, 'MKL002', 'KALKULUS', 2),
(7, 'MKL004', 'VISUAL', 3);
-- --------------------------------------------------------
--
-- Struktur dari tabel `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;
-- --------------------------------------------------------
--
-- Struktur dari tabel `nilai`
--
CREATE TABLE `nilai` (
`id` int(11) NOT NULL,
`makul_id` int(11) NOT NULL,
`mahasiswa_id` int(11) NOT NULL,
`nilai` double NOT NULL,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `nilai`
--
INSERT INTO `nilai` (`id`, `makul_id`, `mahasiswa_id`, `nilai`, `updated_at`, `created_at`) VALUES
(1, 3, 1, 100, '2021-07-18 06:17:55', '2021-07-18 06:12:47');
-- --------------------------------------------------------
--
-- Struktur dari tabel `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data untuk tabel `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(2, '<NAME>', '<PASSWORD> <EMAIL>', NULL, '$2y$10$kRZODOVnbeCktTCAKeX4Lupm5Db4tx0GK6hYzVr4OZJ/EwcRb0aN6', NULL, '2021-07-17 15:14:40', '2021-07-17 15:14:40'),
(3, 'ALEXANDER', '<EMAIL>', NULL, '$2y$10$Sc7QJfmDANvsL5M2T9STEunkumrBow40eL603BOQK9SZm0G.0pekC', NULL, '2021-07-18 06:27:50', '2021-07-18 06:27:50');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `makul`
--
ALTER TABLE `makul`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `nilai`
--
ALTER TABLE `nilai`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `mahasiswa`
--
ALTER TABLE `mahasiswa`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `makul`
--
ALTER TABLE `makul`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT untuk tabel `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `nilai`
--
ALTER TABLE `nilai`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT untuk tabel `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>FireCARES/data
-- Materialized View: nist.ems_table_500
CREATE MATERIALIZED VIEW nist.ems_table_500
AS
WITH f AS (
SELECT date_part('year'::text, coded_ems.inc_date) AS year,
coded_ems.tr10_fid,
count(*) AS calls
FROM nist.coded_ems
WHERE date_part('year'::text, coded_ems.inc_date) > 2006::double precision
GROUP BY (date_part('year'::text, coded_ems.inc_date)), coded_ems.tr10_fid
), d AS (
SELECT i.year,
d_1.id AS fd_id,
'size_'::text || d_1.population_class AS fd_size,
sum(i.incidents) AS incidents,
sum(i.incidents_loc) AS located,
sum(i.ems_calls) AS calls,
sum(i.ems_calls_loc) AS calls_loc
FROM nist.dept_incidents i
JOIN firestation_firedepartment d_1 USING (state, fdid)
WHERE i.year > 2006::double precision
GROUP BY i.year, d_1.id, d_1.population_class
), h AS (
SELECT '14000US'::text || "substring"(cities_500."UniqueID", 9, 11) AS geoid,
sum(
CASE
WHEN cities_500."MeasureId" = 'ARTHRITIS'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS arthritis,
sum(
CASE
WHEN cities_500."MeasureId" = 'BPHIGH'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS bphigh,
sum(
CASE
WHEN cities_500."MeasureId" = 'CANCER'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS cancer,
sum(
CASE
WHEN cities_500."MeasureId" = 'CASTHMA'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS casthma,
sum(
CASE
WHEN cities_500."MeasureId" = 'CHD'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS chd,
sum(
CASE
WHEN cities_500."MeasureId" = 'COPD'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS copd,
sum(
CASE
WHEN cities_500."MeasureId" = 'DIABETES'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS diabetes,
sum(
CASE
WHEN cities_500."MeasureId" = 'HIGHCHOL'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS highchol,
sum(
CASE
WHEN cities_500."MeasureId" = 'KIDNEY'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS kidney,
sum(
CASE
WHEN cities_500."MeasureId" = 'MHLTH'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS mhlth,
sum(
CASE
WHEN cities_500."MeasureId" = 'PHLTH'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS phlth,
sum(
CASE
WHEN cities_500."MeasureId" = 'STROKE'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS stroke,
sum(
CASE
WHEN cities_500."MeasureId" = 'TEETHLOST'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS teethlost,
sum(
CASE
WHEN cities_500."MeasureId" = 'ACCESS2'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS access2,
sum(
CASE
WHEN cities_500."MeasureId" = 'BPMED'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS bpmed,
sum(
CASE
WHEN cities_500."MeasureId" = 'CHECKUP'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS checkup,
sum(
CASE
WHEN cities_500."MeasureId" = 'CHOLSCREEN'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS cholscreen,
sum(
CASE
WHEN cities_500."MeasureId" = 'COLON_SCREEN'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS colon_screen,
sum(
CASE
WHEN cities_500."MeasureId" = 'COREM'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS corem,
sum(
CASE
WHEN cities_500."MeasureId" = 'COREW'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS corew,
sum(
CASE
WHEN cities_500."MeasureId" = 'DENTAL'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS dental,
sum(
CASE
WHEN cities_500."MeasureId" = 'MAMMOUSE'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS mammouse,
sum(
CASE
WHEN cities_500."MeasureId" = 'PAPTEST'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS paptest,
sum(
CASE
WHEN cities_500."MeasureId" = 'BINGE'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS binge,
sum(
CASE
WHEN cities_500."MeasureId" = 'CSMOKING'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS csmoking,
sum(
CASE
WHEN cities_500."MeasureId" = 'LPA'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS lpa,
sum(
CASE
WHEN cities_500."MeasureId" = 'OBESITY'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS obesity,
sum(
CASE
WHEN cities_500."MeasureId" = 'SLEEP'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text THEN cities_500."Data_Value"
ELSE 0::double precision
END) AS sleep
FROM nist.cities_500
WHERE cities_500."GeographicLevel" = 'Census Tract'::text AND cities_500."DataValueTypeID" = 'CrdPrv'::text
GROUP BY ('14000US'::text || "substring"(cities_500."UniqueID", 9, 11))
)
SELECT tr.year,
tr.tr10_fid AS geoid,
tr.region,
tr.state,
tr.fdid,
tr.fc_dept_id,
d.fd_size,
cc.clusters AS cluster,
d.calls AS dept_calls,
CASE
WHEN d.calls > 0::numeric THEN d.calls_loc::double precision / d.calls::double precision
WHEN d.calls = 0::numeric AND d.calls_loc > 0::numeric THEN 'Infinity'::double precision
ELSE 'NaN'::double precision
END AS c_located,
f.calls AS ems,
CASE
WHEN acs."B25002_002" > 0 THEN acs."B01001_001"::double precision / acs."B25002_002"::double precision
WHEN acs."B25002_002" = 0 AND acs."B01001_001" > 0 THEN 'Infinity'::double precision
ELSE 'NaN'::double precision
END AS ave_hh_sz,
acs."B01001_001" AS pop,
acs."B02001_003" AS black,
acs."B02001_004" AS amer_es,
acs."B02001_005" + acs."B02001_006" + acs."B02001_007" + acs."B02001_008" AS other,
acs."B03003_003" AS hispanic,
acs."B01001_002" AS males,
acs."B01001_003" + acs."B01001_027" AS age_under5,
acs."B01001_004" + acs."B01001_028" AS age_5_9,
acs."B01001_005" + acs."B01001_029" AS age_10_14,
acs."B01001_006" + acs."B01001_007" + acs."B01001_030" + acs."B01001_031" AS age_15_19,
acs."B01001_008" + acs."B01001_009" + acs."B01001_010" + acs."B01001_032" + acs."B01001_033" + acs."B01001_034" AS age_20_24,
acs."B01001_011" + acs."B01001_012" + acs."B01001_035" + acs."B01001_036" AS age_25_34,
acs."B01001_013" + acs."B01001_014" + acs."B01001_037" + acs."B01001_038" AS age_35_44,
acs."B01001_015" + acs."B01001_016" + acs."B01001_039" + acs."B01001_040" AS age_45_54,
acs."B01001_017" + acs."B01001_018" + acs."B01001_019" + acs."B01001_041" + acs."B01001_042" + acs."B01001_043" AS age_55_64,
acs."B01001_020" + acs."B01001_021" + acs."B01001_022" + acs."B01001_044" + acs."B01001_045" + acs."B01001_046" AS age_65_74,
acs."B01001_023" + acs."B01001_024" + acs."B01001_047" + acs."B01001_048" AS age_75_84,
acs."B01001_025" + acs."B01001_049" AS age_85_up,
acs."B25002_001" AS hse_units,
acs."B25002_003" AS vacant,
acs."B25014_008" AS renter_occ,
acs."B25014_005" + acs."B25014_006" + acs."B25014_007" + acs."B25014_011" + acs."B25014_012" + acs."B25014_013" AS crowded,
acs."B25024_002" + acs."B25024_003" + acs."B25024_004" AS sfr,
acs."B25024_007" + acs."B25024_008" + acs."B25024_009" AS units_10,
acs."B25024_010" AS mh,
acs."B25034_006" + acs."B25034_007" + acs."B25034_008" + acs."B25034_009" + acs."B25034_010" AS older,
acs."B19013_001" AS inc_hh,
svi.r_pl_themes AS svi,
acs."B12001_001" - (acs."B12001_003" + acs."B12001_012") AS married,
acs."B23025_005" AS unemployed,
acs."B12001_007" AS nilf,
acs."B25040_002" AS fuel_gas,
acs."B25040_003" AS fuel_tank,
acs."B25040_005" AS fuel_oil,
acs."B25040_006" AS fuel_coal,
acs."B25040_007" AS fuel_wood,
acs."B25040_008" AS fuel_solar,
acs."B25040_009" AS fuel_other,
acs."B25040_010" AS fuel_none,
h.arthritis,
h.bphigh,
h.cancer,
h.casthma,
h.chd,
h.copd,
h.diabetes,
h.highchol,
h.kidney,
h.mhlth,
h.phlth,
h.stroke,
h.teethlost,
h.access2,
h.bpmed,
h.checkup,
h.cholscreen,
h.colon_screen,
h.corem,
h.corew,
h.dental,
h.mammouse,
h.paptest,
h.binge,
h.csmoking,
h.lpa,
h.obesity,
h.sleep
FROM nist.tract_years tr
LEFT JOIN f ON tr.tr10_fid = f.tr10_fid AND tr.year::double precision = f.year
LEFT JOIN d ON tr.fc_dept_id = d.fd_id AND tr.year::double precision = d.year
LEFT JOIN nist.svi2010 svi ON tr.tr10_fid = ('14000US'::text || lpad(svi.fips::text, 11, '0'::text))
LEFT JOIN nist.acs_est_new acs ON tr.tr10_fid = acs.geoid AND
CASE
WHEN tr.year < 2008 THEN 2008::double precision
WHEN tr.year::double precision > ((( SELECT max(acs_est_new.year) AS max
FROM nist.acs_est_new)) - 2::double precision) THEN (( SELECT max(acs_est_new.year) AS max
FROM nist.acs_est_new)) - 2::double precision
ELSE tr.year::double precision
END = (acs.year - 2::double precision)
LEFT JOIN h ON tr.tr10_fid = h.geoid
LEFT JOIN nist.county_clusters cc ON "substring"(tr.tr10_fid, 8, 5) = cc.geoid
WHERE tr.year > 2006
WITH DATA;
ALTER TABLE nist.ems_table_500
OWNER TO sgilbert;
COMMENT ON MATERIALIZED VIEW nist.ems_table_500
IS 'This summarizes the information for ems calls by tract and year.
It also includes data that will be used to estimate the model. Data is from
NFIRS (indirectly through dept_incidents), the ACS, CoreLogic, the BRFSS, and
several other sources.
There are two versions of this table. In this version, the BFRSS data is expressed
in the 500-Cities data set from the CDC. The 500-Cities data covers only the 500 largest
cities in the county, but is at the census tract level.
The "h" temporary table collects the 500-Cities data in a form that is easily usable for
this table. The tables sums over two years of data. I can do that because the two years
are disjoint in the questions they return data for. Since I have only a single year of data
for the health data, the same results are attached to every year.';
GRANT ALL ON TABLE nist.ems_table_500 TO firecares;
GRANT ALL ON TABLE nist.ems_table_500 TO sgilbert; |
-- Create a new stored procedure called 'SP_SelectAllAuthors' in schema 'dbo'
-- Drop the stored procedure if it already exists
IF EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'dbo'
AND SPECIFIC_NAME = N'SP_SelectAllAuthors'
)
DROP PROCEDURE dbo.SP_SelectAllAuthors
GO
-- Create the stored procedure in the specified schema
CREATE PROCEDURE dbo.SP_SelectAllAuthors
@orderType INT = 2
AS
-- body of the stored procedure
SELECT *
FROM [VW_AuthorsJoinedAll]
ORDER BY
(CASE @orderType WHEN 1 THEN [fullName] END) ASC,
(CASE @orderType WHEN 2 THEN CAST([bookCount] AS NVARCHAR) END) DESC,
(CASE @orderType WHEN 3 THEN CAST([translatedCount] AS NVARCHAR) END) DESC,
(CASE @orderType WHEN 4 THEN [countryName] END) ASC, [fullName] ASC
GO
-- example to execute the stored procedure we just created
EXECUTE dbo.SP_SelectAllAuthors 3
GO |
<filename>CurioExchange/CurioExchangeService/Sql/Data.sql
INSERT INTO dbo.Sets VALUES ('Red Heart', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Red Heart Heart-shaped Box', 1, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Scarlet Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Bright Blue Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Pastel Yellow Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Gold Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Pitch Black Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Burnt Orange Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Rainbow Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Hot Pink Candy', 0, 120)
INSERT INTO dbo.Pieces VALUES ('Red Heart Seafoam Green Candy', 0, 120)
GO
INSERT INTO dbo.Collections VALUES ('Redgenies')
INSERT INTO dbo.Collections VALUES ('Bluegenies')
INSERT INTO dbo.Collections VALUES ('Yellowgenies')
GO
INSERT INTO dbo.Sets VALUES ('Vermillion Bottle', 48)
INSERT INTO dbo.Sets VALUES ('Crimson Bottle', 48)
INSERT INTO dbo.Sets VALUES ('Scarlet Bottle', 48)
INSERT INTO dbo.Sets VALUES ('Ruby Bottle', 48)
GO
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Spout', 1, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle First Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Second Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Third Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Fourth Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Fifth Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Sixth Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Seventh Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Eighth Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bottle Ninth Vermillion Bottle Shard', 0, 121)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Spout', 1, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle First Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Second Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Third Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Fourth Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Fifth Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Sixth Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Seventh Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Eighth Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Crimson Bottle Ninth Crimson Bottle Shard', 0, 122)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Spout', 1, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle First Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Second Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Third Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Fourth Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Fifth Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Sixth Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Seventh Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Eighth Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bottle Ninth Scarlet Bottle Shard', 0, 123)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Spout', 1, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle First Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Second Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Third Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Fourth Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Fifth Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Sixth Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Seventh Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Eighth Ruby Bottle Shard', 0, 124)
INSERT INTO dbo.Pieces VALUES ('Ruby Bottle Ninth Ruby Bottle Shard', 0, 124)
GO
INSERT INTO dbo.Sets VALUES ('Cerulean Bottle', 49)
INSERT INTO dbo.Sets VALUES ('Sapphire Bottle', 49)
INSERT INTO dbo.Sets VALUES ('Lavender Bottle', 49)
INSERT INTO dbo.Sets VALUES ('Azure Bottle', 49)
INSERT INTO dbo.Sets VALUES ('Gold Bottle', 50)
INSERT INTO dbo.Sets VALUES ('Saffron Bottle', 50)
INSERT INTO dbo.Sets VALUES ('Citrine Bottle', 50)
INSERT INTO dbo.Sets VALUES ('Amber Bottle', 50)
GO
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Spout', 1, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle First Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Second Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Third Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Fourth Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Fifth Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Sixth Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Seventh Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Eighth Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Cerulean Bottle Ninth Cerulean Bottle Shard', 0, 125)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Spout', 1, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle First Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Second Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Third Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Fourth Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Fifth Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Sixth Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Seventh Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Eighth Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bottle Ninth Sapphire Bottle Shard', 0, 126)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Spout', 1, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle First Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Second Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Third Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Fourth Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Fifth Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Sixth Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Seventh Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Eighth Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Lavender Bottle Ninth Lavender Bottle Shard', 0, 127)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Spout', 1, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle First Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Second Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Third Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Fourth Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Fifth Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Sixth Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Seventh Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Eighth Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Azure Bottle Ninth Azure Bottle Shard', 0, 128)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Spout', 1, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle First Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Second Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Third Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Fourth Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Fifth Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Sixth Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Seventh Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Eighth Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Gold Bottle Ninth Gold Bottle Shard', 0, 129)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Spout', 1, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle First Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Second Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Third Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Fourth Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Fifth Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Sixth Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Seventh Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Eighth Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Saffron Bottle Ninth Saffron Bottle Shard', 0, 130)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Spout', 1, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle First Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Second Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Third Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Fourth Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Fifth Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Sixth Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Seventh Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Eighth Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Citrine Bottle Ninth Citrine Bottle Shard', 0, 131)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Spout', 1, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle First Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Second Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Third Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Fourth Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Fifth Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Sixth Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Seventh Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Eighth Amber Bottle Shard', 0, 132)
INSERT INTO dbo.Pieces VALUES ('Amber Bottle Ninth Amber Bottle Shard', 0, 132)
GO
INSERT INTO dbo.Collections VALUES ('Fried')
INSERT INTO dbo.Collections VALUES ('Chocolate')
GO
INSERT INTO dbo.Sets VALUES ('Allspice Bottle', 51)
INSERT INTO dbo.Sets VALUES ('Powdered Sugar Bottle', 52)
INSERT INTO dbo.Sets VALUES ('Love Bottle', 52)
INSERT INTO dbo.Sets VALUES ('White Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Purple Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Grey Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Black bubble', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Empty Allspice Bottle', 1, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle First Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Second Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Third Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Fourth Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Fifth Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Sixth Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Seventh Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Eighth Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Allspice Bottle Ninth Pinch Of Allspice', 0, 133)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Spout', 1, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle First Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Second Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Third Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Fourth Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Fifth Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Sixth Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Seventh Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Eighth Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Powdered Sugar Bottle Ninth Pinch Of Powdered Sugar', 0, 134)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Spout', 1, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle First Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Second Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Third Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Fourth Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Fifth Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Sixth Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Seventh Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Eighth Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('Love Bottle Ninth Dollop Of Love', 0, 135)
INSERT INTO dbo.Pieces VALUES ('White Bubble White Bubble Shell', 1, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Chaos', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Death', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Knowledge', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Beauty', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Life', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Justice', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Nature', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of Harmony', 0, 136)
INSERT INTO dbo.Pieces VALUES ('White Bubble Essence Of War', 0, 136)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Purple Bubble Shell', 1, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Butterfly Wings', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Perfume Bottle', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Mrriak Fur', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Aerial Feather', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Essence Of Snootiness', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Gardener''s Hat', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Flower Petals', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Maid''s Feather Duster', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Purple Bubble Trill Feather', 0, 137)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Grey Bubble Shell', 1, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Wolf Hair', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Hunter''s Knife', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Lupine Ectoplasm', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Green Grass', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Tidepool Water', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Standing Stone Chip', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Splinter Of A Wood Hut', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Fire Pit Ember', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Grey Bubble Creek Stone', 0, 138)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Black Bubble Shell', 1, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Fox Tail', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Badger Tooth', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Buck Horn', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Cup Of Slime', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Zombie Hand', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Tendril Skin', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Jar Of Tar', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Petrified Tree Bark', 0, 139)
INSERT INTO dbo.Pieces VALUES ('Black Bubble Puddle Of Muck', 0, 139)
GO
INSERT INTO dbo.Sets VALUES ('Poteen Pot', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Poteen Pot', 1, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Barrel Of Barley', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Handful Of Oats', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Fistful Of Rye', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Yummy Taters', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Malty Malt', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Treacle', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Sour Mash', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Washed Sand', 0, 140)
INSERT INTO dbo.Pieces VALUES ('Poteen Pot Bit O Magic', 0, 140)
GO
INSERT INTO dbo.Pieces VALUES ('straight razor straight razor rust', 0, 73)
GO
INSERT INTO dbo.Sets VALUES ('Mouldy Cheese', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Cheese Rind', 1, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Green Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Blue Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Purple Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Red Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Yellow Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Grey Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Black Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese White Mould', 0, 141)
INSERT INTO dbo.Pieces VALUES ('Mouldy Cheese Orange Mould', 0, 141)
GO
INSERT INTO dbo.Sets VALUES ('Jester Mask', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Right Eye', 0, 142)
GO
INSERT INTO dbo.Collections VALUES ('Pasta')
INSERT INTO dbo.Collections VALUES ('Cupcake')
INSERT INTO dbo.Collections VALUES ('Spice')
GO
INSERT INTO dbo.Sets VALUES ('Leprechaun Pot', 47)
INSERT INTO dbo.Sets VALUES ('Parsley Bottle', 53)
INSERT INTO dbo.Sets VALUES ('Kelpie Mask', 47)
INSERT INTO dbo.Sets VALUES ('Swan Mask', 47)
INSERT INTO dbo.Sets VALUES ('Chicken Mask', 47)
INSERT INTO dbo.Sets VALUES ('Maiden Mask', 47)
INSERT INTO dbo.Sets VALUES ('Yellow Bottle', 54)
INSERT INTO dbo.Sets VALUES ('Butterfly Mask', 47)
INSERT INTO dbo.Sets VALUES ('Rosemary Bottle', 53)
INSERT INTO dbo.Sets VALUES ('Clove Bottle', 55)
INSERT INTO dbo.Sets VALUES ('Sand Bubble', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Laughter', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle First Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Second Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Third Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Fourth Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Fifth Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Sixth Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Seventh Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Eighth Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Ninth Pinch Of Parsley', 0, 144)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Upper Mouth', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Chin', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Left Cheek', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Mask Strap', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Empty Yellow Sprinkles Bottle', 1, 149)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Mask Head', 1, 150)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle First Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Second Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Third Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Fourth Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Fifth Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Sixth Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Seventh Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Eighth Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Ninth Pinch Of Rosemary', 0, 151)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle First Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Second Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Third Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Fourth Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Fifth Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Sixth Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Seventh Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Eighth Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Ninth Pinch Of Cloves', 0, 152)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Sandworm Tooth', 0, 153)
GO
INSERT INTO dbo.Sets VALUES ('Conflict Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Scarlet Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Green Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Silk Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Gas Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Ice Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Lava Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Sable Bubble', 47)
INSERT INTO dbo.Sets VALUES ('Smoke Bubble', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Pot', 1, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Jade Shamrock', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Onyx Shamrock', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Peppermint Shamrock', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Rainbows', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Hugs', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Silliness', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Lucky Charms', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Leprechaun Pot Smiles', 0, 143)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Conflict Bubble Shell', 1, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Stoat Fur', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Kestrel Feather', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Cougar Tooth', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Dingo Tooth', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Manticore Stinger', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Fox Tail', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Bear Talon', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Aslaran Knife', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Conflict Bubble Krokani Spear', 0, 154)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Scarlet Bubble Shell', 1, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Drop Of Black Oil', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Brains', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Nighthawk Feather', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Lich Tongue', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Aphid Juice', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Touch Of Horror', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Essence Of The Undead', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Demon Toenail', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Scarlet Bubble Bloody Blossoms', 0, 156)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Green Bubble Shell', 1, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Roc Feather', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Raccoon Tail', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Owl Beak', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Roan Tail', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Platypus Bill', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Lamb Wool', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Dog Spittle', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Valley Flowers', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Green Bubble Green Grass', 0, 157)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Silk Bubble Shell', 1, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Frog''s Leg', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Silkworm Shell', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Caterpillar Legs', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Eye Of Newt', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Moth Wings', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Rabbit''s Foot', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Tae''dae''s Glove', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Furrikin''s Hat', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Silk Bubble Drop Of Bee Honey', 0, 158)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Gas Bubble Shell', 1, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Alligator Skin', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Turtle Shell', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Eye Of Frog', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Python Skin', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Swamp Water', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Mosquitos', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Rotting Plants', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Essence Of Decay', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Gas Bubble Mugwump Spittle', 0, 159)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Ice Bubble Shell', 1, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Snow Essence', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Mammoth Tusk', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Eagle Feather', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Igasho Hair', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Sabretooth Fang', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Hare Ear', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Cave Dirt', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Taurian Horn', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Ice Bubble Chunk Of Ice', 0, 160)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Lava Bubble Shell', 1, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Cup Of Lava', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Volcanic Rock', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Wyvern Feather', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Coeurl Whiskers', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Kanzakage Claw', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Desert Crab Shell', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Okorushi Stone', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Beastmaster Cap', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Lava Bubble Dracnari Ceremonial Robe', 0, 161)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Sable Bubble Shell', 1, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Pinch Of Taint', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Jackal Jaw', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Ram Horn', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Scorpion Stinger', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Gravedigger Dust', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Groundhog Paw', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Bobcat Tail', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Mutt''s Tongue', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sable Bubble Viscanti Hair', 0, 162)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Sand Bubble Shell', 1, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Mound Of Sand', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Gila Lizard Tail', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Wakabi Feather', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Coyote Fur', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Sandojin Talon', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Roadrunner Beak', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Cobra Skin', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Sand Bubble Dashro Tongue', 0, 153)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Smoke Bubble Shell', 1, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Rattlesnake Skin', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Grouse Beak', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Goat Horn', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Spawn Claw', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Gopher Teeth', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Essence Of Song', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Hag''s Cauldron', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Centaur''s Spear', 0, 163)
INSERT INTO dbo.Pieces VALUES ('Smoke Bubble Violet Flower', 0, 163)
GO
INSERT INTO dbo.Collections VALUES ('Exotic')
INSERT INTO dbo.Collections VALUES ('Burger')
GO
INSERT INTO dbo.Sets VALUES ('Dill Bottle', 56)
INSERT INTO dbo.Sets VALUES ('Coriander Bottle', 56)
INSERT INTO dbo.Sets VALUES ('Mayonnaise Bottle', 57)
INSERT INTO dbo.Sets VALUES ('Mustard Bottle', 57)
INSERT INTO dbo.Sets VALUES ('Sage Bottle', 53)
INSERT INTO dbo.Sets VALUES ('Ginger Bottle', 55)
INSERT INTO dbo.Sets VALUES ('Paprika Bottle', 51)
GO
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Empty Dill Bottle', 1, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle First Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Second Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Third Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Fourth Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Fifth Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Sixth Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Seventh Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Eighth Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Dill Bottle Ninth Pinch Of Dill', 0, 164)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle First Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Second Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Third Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Fourth Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Fifth Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Sixth Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Seventh Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Eighth Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Ninth Pinch Of Coriander', 0, 165)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle First Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Second Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Third Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Fourth Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Fifth Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Sixth Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Seventh Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Eighth Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mayonnaise Bottle Ninth Squirt Of Mayonnaise', 0, 166)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle First Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Second Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Third Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Fourth Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Fifth Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Sixth Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Seventh Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Eighth Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Ninth Squirt Of Mustard', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle First Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Second Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Third Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Fourth Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Fifth Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Sixth Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Seventh Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Eighth Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Ninth Pinch Of Sage', 0, 168)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle First Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Second Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Third Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Fourth Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Fifth Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Sixth Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Seventh Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Eighth Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Ninth Pinch Of Ginger', 0, 169)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle First Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Second Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Third Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Fourth Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Fifth Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Sixth Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Seventh Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Eighth Pinch Of Paprika', 0, 170)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Ninth Pinch Of Paprika', 0, 170)
GO
INSERT INTO dbo.Collections VALUES ('Curry')
GO
INSERT INTO dbo.Sets VALUES ('Garlic Bottle', 58)
GO
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Empty Garlic Bottle', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle First Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Second Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Third Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Fourth Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Fifth Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Sixth Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Seventh Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Eighth Pinch Of Garlic', 0, 171)
INSERT INTO dbo.Pieces VALUES ('Garlic Bottle Ninth Pinch Of Garlic', 0, 171)
GO
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Mask Head', 1, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Right Eye', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Left Eye', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Right Cheek', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Left Cheek', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Upper Beak', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Lower Beak', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Forehead', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Swan Mask Swan Mask Strap', 0, 146)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Right Cheek', 0, 147)
GO
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Mask Head', 1, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Right Eye', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Left Eye', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Right Cheek', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Upper Mouth', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Lower Mouth', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Nose', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Chin', 0, 148)
INSERT INTO dbo.Pieces VALUES ('Maiden Mask Maiden Left Cheeck', 0, 148)
GO
INSERT INTO dbo.Sets VALUES ('Blue Bottle', 54)
INSERT INTO dbo.Sets VALUES ('Treasure Map', 47)
INSERT INTO dbo.Sets VALUES ('Red Bottle', 54)
INSERT INTO dbo.Sets VALUES ('Salt Bottle', 51)
GO
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Empty Blue Sprinkles Bottle', 1, 172)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Mask Head', 1, 145)
INSERT INTO dbo.Pieces VALUES ('Treasure Map Legend', 1, 173)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Empty Red Sprinkles Bottle', 1, 174)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle First Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Second Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Third Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Fourth Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Fifth Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Sixth Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Seventh Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Eight Pinch Of Salt', 0, 175)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Ninth Pinch Of Salt', 0, 175)
GO
INSERT INTO dbo.Sets VALUES ('Brittle White Hair', 47)
INSERT INTO dbo.Sets VALUES ('Curled Blonde Hair', 47)
INSERT INTO dbo.Sets VALUES ('Electric-Blue Hair', 47)
INSERT INTO dbo.Sets VALUES ('Wild Pink Hair', 47)
INSERT INTO dbo.Sets VALUES ('Spiked Blonde Hair', 47)
INSERT INTO dbo.Sets VALUES ('Fiery Red Curls', 47)
INSERT INTO dbo.Sets VALUES ('Powder-Blue Pigtails', 47)
INSERT INTO dbo.Sets VALUES ('Blond Pigtails', 47)
INSERT INTO dbo.Sets VALUES ('Wavy Red Hair', 47)
INSERT INTO dbo.Sets VALUES ('Auburn Ringlets', 47)
INSERT INTO dbo.Sets VALUES ('Neat Green Hair', 47)
INSERT INTO dbo.Sets VALUES ('Short Brown Hair', 47)
INSERT INTO dbo.Sets VALUES ('Long White Hair', 47)
INSERT INTO dbo.Sets VALUES ('Crimson Soft Mane', 47)
INSERT INTO dbo.Sets VALUES ('Greasy Black Hair', 47)
INSERT INTO dbo.Sets VALUES ('Emerald Silvery Hair', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Base Of Brittle White Hair', 1, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair First Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Second Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Third Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Fourth Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Fifth Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Sixth Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Seventh Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Eight Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Brittle White Hair Ninth Lock Of Brittle White Hair', 0, 176)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Base Of Curled Blonde Hair', 1, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair First Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Second Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Third Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Fourth Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Fifth Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Sixth Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Seventh Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Eight Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Curled Blonde Hair Ninth Lock Of Curled Blonde Hair', 0, 177)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Base Of Electric-Blue Hair', 1, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair First Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Second Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Third Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Fourth Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Fifth Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Sixth Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Seventh Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Eight Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Electric-Blue Hair Ninth Lock Of Electric-Blue Hair', 0, 178)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Base Of Wild Pink Hair', 1, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair First Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Second Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Third Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Fourth Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Fifth Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Sixth Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Seventh Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Eight Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Wild Pink Hair Ninth Lock Of Wild Pink Hair', 0, 179)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Base Of Spiked Blonde Hair', 1, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair First Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Second Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Third Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Fourth Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Fifth Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Sixth Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Seventh Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Eight Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Spiked Blonde Hair Ninth Lock Of Spiked Blonde Hair', 0, 180)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Base Of Fiery Red Curls', 1, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls First Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Second Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Third Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Fourth Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Fifth Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Sixth Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Seventh Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Eight Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Fiery Red Curls Ninth Lock Of Fiery Red Curls', 0, 181)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Base Of Powder-Blue Pigtails', 1, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails First Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Second Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Third Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Fourth Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Fifth Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Sixth Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Seventh Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Eight Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Powder-Blue Pigtails Ninth Lock Of Powder-Blue Pigtails', 0, 182)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Base Of Blond Pigtails', 1, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails First Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Second Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Third Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Fourth Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Fifth Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Sixth Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Seventh Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Eight Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Blond Pigtails Ninth Lock Of Blond Pigtails', 0, 183)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Base Of Wavy Red Hair', 1, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair First Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Second Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Third Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Fourth Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Fifth Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Sixth Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Seventh Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Eight Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Wavy Red Hair Ninth Lock Of Wavy Red Hair', 0, 184)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Base Of Auburn Ringlets', 1, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets First Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Second Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Third Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Fourth Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Fifth Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Sixth Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Seventh Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Eight Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Auburn Ringlets Ninth Lock Of Auburn Ringlets', 0, 185)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Base Of Neat Green Hair', 1, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair First Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Second Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Third Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Fourth Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Fifth Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Sixth Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Seventh Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Eight Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Neat Green Hair Ninth Lock Of Neat Green Hair', 0, 186)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Base Of Short Brown Hair', 1, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair First Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Second Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Third Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Fourth Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Fifth Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Sixth Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Seventh Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Eight Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Short Brown Hair Ninth Lock Of Short Brown Hair', 0, 187)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Base Of Long White Hair', 1, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair First Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Second Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Third Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Fourth Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Fifth Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Sixth Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Seventh Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Eight Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Long White Hair Ninth Lock Of Long White Hair', 0, 188)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Base Of Crimson Soft Mane', 1, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane First Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Second Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Third Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Fourth Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Fifth Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Sixth Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Seventh Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Eight Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Crimson Soft Mane Ninth Lock Of Crimson Soft Mane', 0, 189)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Base Of Greasy Black Hair', 1, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair First Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Second Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Third Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Fourth Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Fifth Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Sixth Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Seventh Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Eight Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Greasy Black Hair Ninth Lock Of Greasy Black Hair', 0, 190)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Base Of Emerald Silvery Hair', 1, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair First Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Second Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Third Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Fourth Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Fifth Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Sixth Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Seventh Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Eight Lock Of Emerald Silvery Hair', 0, 191)
INSERT INTO dbo.Pieces VALUES ('Emerald Silvery Hair Ninth Lock Of Emerald Silvery Hair', 0, 191)
GO
INSERT INTO dbo.Sets VALUES ('Rainbow Plumes', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Base Of Rainbow Plumes', 1, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes First Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Second Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Third Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Fourth Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Fifth Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Sixth Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Seventh Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Eight Lock Of Rainbow Plumes', 0, 192)
INSERT INTO dbo.Pieces VALUES ('Rainbow Plumes Ninth Lock Of Rainbow Plumes', 0, 192)
GO
INSERT INTO dbo.Sets VALUES ('Short Black Hair', 47)
INSERT INTO dbo.Sets VALUES ('Dark Feral Mane', 47)
INSERT INTO dbo.Sets VALUES ('Dove-Grey Feathers', 47)
INSERT INTO dbo.Sets VALUES ('Decorated Dreadlocks', 47)
INSERT INTO dbo.Sets VALUES ('Silky Sable Hair', 47)
INSERT INTO dbo.Sets VALUES ('Rough Crimson Hair', 47)
INSERT INTO dbo.Sets VALUES ('Purple Mohawk', 47)
INSERT INTO dbo.Sets VALUES ('Cropped Blonde Hair', 47)
INSERT INTO dbo.Sets VALUES ('Black Hair Pulled Into Tail', 47)
INSERT INTO dbo.Sets VALUES ('Frizzy Brown Hair', 47)
INSERT INTO dbo.Sets VALUES ('Blonde Hair In Chignon', 47)
INSERT INTO dbo.Sets VALUES ('Slicked Black Hair', 47)
INSERT INTO dbo.Sets VALUES ('Black Hair Dyed Purple', 47)
INSERT INTO dbo.Sets VALUES ('Rainbow Hair', 47)
INSERT INTO dbo.Sets VALUES ('Spiky Black Hair', 47)
INSERT INTO dbo.Sets VALUES ('Violet Hair With Bangs', 47)
INSERT INTO dbo.Sets VALUES ('Azure Fins', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Base Of Short Black Hair', 1, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair First Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Second Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Third Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Fourth Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Fifth Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Sixth Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Seventh Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Eight Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Short Black Hair Ninth Lock Of Short Black Hair', 0, 193)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Base Of Dark Feral Mane', 1, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane First Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Second Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Third Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Fourth Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Fifth Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Sixth Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Seventh Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Eight Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dark Feral Mane Ninth Lock Of Dark Feral Mane', 0, 194)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Base Of Dove-Grey Feathers', 1, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers First Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Second Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Third Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Fourth Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Fifth Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Sixth Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Seventh Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Eight Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Dove-Grey Feathers Ninth Lock Of Dove-Grey Feathers', 0, 195)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Base Of Decorated Dreadlocks', 1, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks First Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Second Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Third Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Fourth Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Fifth Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Sixth Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Seventh Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Eight Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Decorated Dreadlocks Ninth Lock Of Decorated Dreadlocks', 0, 196)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Base Of Silky Sable Hair', 1, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair First Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Second Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Third Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Fourth Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Fifth Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Sixth Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Seventh Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Eight Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Ninth Lock Of Silky Sable Hair', 0, 197)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Base Of Rough Crimson Hair', 1, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair First Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Second Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Third Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Fourth Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Fifth Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Sixth Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Seventh Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Eight Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Rough Crimson Hair Ninth Lock Of Rough Crimson Hair', 0, 198)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Base Of Purple Mohawk', 1, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk First Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Second Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Third Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Fourth Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Fifth Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Sixth Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Seventh Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Eight Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Purple Mohawk Ninth Lock Of Purple Mohawk', 0, 199)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Base Of Cropped Blonde Hair', 1, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair First Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Second Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Third Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Fourth Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Fifth Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Sixth Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Seventh Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Eight Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Cropped Blonde Hair Ninth Lock Of Cropped Blonde Hair', 0, 200)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Base Of Black Hair Pulled Into Tail', 1, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail First Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Second Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Third Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Fourth Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Fifth Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Sixth Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Seventh Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Eight Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Black Hair Pulled Into Tail Ninth Lock Of Black Hair Pulled Into Tail', 0, 201)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Base Of Frizzy Brown Hair', 1, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair First Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Second Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Third Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Fourth Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Fifth Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Sixth Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Seventh Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Eight Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Frizzy Brown Hair Ninth Lock Of Frizzy Brown Hair', 0, 202)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Base Of Blonde Hair In Chignon', 1, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon First Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Second Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Third Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Fourth Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Fifth Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Sixth Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Seventh Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Eight Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Blonde Hair In Chignon Ninth Lock Of Blonde Hair In Chignon', 0, 203)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Base Of Slicked Black Hair', 1, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair First Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Second Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Third Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Fourth Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Fifth Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Sixth Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Seventh Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Eight Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Slicked Black Hair Ninth Lock Of Slicked Black Hair', 0, 204)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Base Of Black Hair Dyed Purple', 1, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple First Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Second Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Third Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Fourth Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Fifth Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Sixth Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Seventh Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Eight Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Black Hair Dyed Purple Ninth Lock Of Black Hair Dyed Purple', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Base Of Rainbow Hair', 1, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair First Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Second Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Third Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Fourth Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Fifth Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Sixth Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Seventh Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Eight Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Rainbow Hair Ninth Lock Of Rainbow Hair', 0, 205)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Base Of Spiky Black Hair', 1, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair First Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Second Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Third Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Fourth Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Fifth Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Sixth Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Seventh Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Eight Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Spiky Black Hair Ninth Lock Of Spiky Black Hair', 0, 206)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Base Of Violet Hair With Bangs', 1, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs First Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Second Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Third Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Fourth Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Fifth Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Sixth Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Seventh Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Eight Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Violet Hair With Bangs Ninth Lock Of Violet Hair With Bangs', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Base Of Azure Fins', 1, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins First Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Second Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Third Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Fourth Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Fifth Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Sixth Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Seventh Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Eight Lock Of Azure Fins', 0, 207)
INSERT INTO dbo.Pieces VALUES ('Azure Fins Ninth Lock Of Azure Fins', 0, 207)
GO
INSERT INTO dbo.Sets VALUES ('Three-Braid Goatee', 47)
INSERT INTO dbo.Sets VALUES ('Chestnut Goatee', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Treasure Map Center Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map North Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map East Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map South Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map West Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map Northeast Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map Northwest Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map Southeast Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Treasure Map Southwest Map Piece', 0, 173)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Base Of Three-Braid Goatee', 1, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee First Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Second Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Third Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Fourth Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Fifth Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Sixth Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Seventh Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Eight Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Three-Braid Goatee Ninth Lock Of Three-Braid Goatee', 0, 210)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Base Of Chestnut Goatee', 1, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee First Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Second Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Third Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Fourth Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Fifth Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Sixth Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Seventh Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Eight Lock Of Chestnut Goatee', 0, 211)
INSERT INTO dbo.Pieces VALUES ('Chestnut Goatee Ninth Lock Of Chestnut Goatee', 0, 211)
GO
INSERT INTO dbo.Sets VALUES ('Brown Beard', 47)
INSERT INTO dbo.Sets VALUES ('Brunette Beard', 47)
INSERT INTO dbo.Sets VALUES ('Bushy Mutton Chops', 47)
INSERT INTO dbo.Sets VALUES ('Copper Beard', 47)
INSERT INTO dbo.Sets VALUES ('Frosty Goatee', 47)
INSERT INTO dbo.Sets VALUES ('Horseshoe Moustache', 47)
INSERT INTO dbo.Sets VALUES ('Jagged Beard', 47)
INSERT INTO dbo.Sets VALUES ('Regent Moustache', 47)
INSERT INTO dbo.Sets VALUES ('Salt And Pepper Bear', 47)
INSERT INTO dbo.Sets VALUES ('Sinister Moustache', 47)
INSERT INTO dbo.Sets VALUES ('Tangled Beard', 47)
INSERT INTO dbo.Sets VALUES ('Venerable Beard', 47)
INSERT INTO dbo.Sets VALUES ('Pirate Beard', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Brown Beard Base Of Brown Beard', 1, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard First Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Second Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Third Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Fourth Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Fifth Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Sixth Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Seventh Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Eight Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brown Beard Ninth Lock Of Brown Beard', 0, 212)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Base Of Brunette Beard', 1, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard First Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Second Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Third Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Fourth Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Fifth Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Sixth Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Seventh Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Eight Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Brunette Beard Ninth Lock Of Brunette Beard', 0, 213)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Base Of Bushy Mutton Chops', 1, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops First Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Second Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Third Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Fourth Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Fifth Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Sixth Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Seventh Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Eight Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Bushy Mutton Chops Ninth Lock Of Bushy Mutton Chops', 0, 214)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Base Of Copper Beard', 1, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard First Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Second Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Third Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Fourth Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Fifth Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Sixth Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Seventh Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Eight Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Copper Beard Ninth Lock Of Copper Beard', 0, 215)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Base Of Frosty Goatee', 1, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee First Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Second Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Third Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Fourth Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Fifth Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Sixth Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Seventh Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Eight Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Frosty Goatee Ninth Lock Of Frosty Goatee', 0, 216)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Base Of Horseshoe Moustache', 1, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache First Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Second Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Third Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Fourth Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Fifth Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Sixth Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Seventh Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Eight Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Horseshoe Moustache Ninth Lock Of Horseshoe Moustache', 0, 217)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Base Of Jagged Beard', 1, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard First Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Second Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Third Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Fourth Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Fifth Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Sixth Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Seventh Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Eight Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Jagged Beard Ninth Lock Of Jagged Beard', 0, 218)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Base Of Regent Moustache', 1, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache First Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Second Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Third Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Fourth Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Fifth Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Sixth Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Seventh Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Eight Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Regent Moustache Ninth Lock Of Regent Moustache', 0, 219)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Base Of Salt And Pepper Beard', 1, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard First Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Second Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Third Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Fourth Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Fifth Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Sixth Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Seventh Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Eight Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Salt And Pepper Beard Ninth Lock Of Salt And Pepper Beard', 0, 220)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Base Of Sinister Moustache', 1, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache First Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Second Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Third Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Fourth Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Fifth Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Sixth Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Seventh Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Eight Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Sinister Moustache Ninth Lock Of Sinister Moustache', 0, 221)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Base Of Tangled Beard', 1, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard First Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Second Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Third Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Fourth Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Fifth Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Sixth Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Seventh Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Eight Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Tangled Beard Ninth Lock Of Tangled Beard', 0, 222)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Base Of Venerable Beard', 1, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard First Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Second Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Third Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Fourth Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Fifth Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Sixth Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Seventh Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Eight Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Venerable Beard Ninth Lock Of Venerable Beard', 0, 223)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Base Of Pirate Beard', 1, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard First Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Second Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Third Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Fourth Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Fifth Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Sixth Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Seventh Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Eight Lock Of Pirate Beard', 0, 224)
INSERT INTO dbo.Pieces VALUES ('Pirate Beard Ninth Lock Of Pirate Beard', 0, 224)
GO
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Right Cheek', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Left Cheek', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Right Eye', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Left Eye', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Upper Mouth', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Lower Mouth', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Mask Strap', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Nose', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Butterfly Mask Butterfly Chin', 0, 150)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Head', 1, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Right Eye', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Left Eye', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Upper Mouth', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Lower Mouth', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Mask Strap', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Nose', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Chicken Mask Chicken Chin', 0, 147)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Head', 1, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Right Cheek', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Left Cheek', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Left Eye', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Upper Mouth', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Lower Mouth', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Mask Strap', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Nose', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Jester Mask Jester Chin', 0, 142)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Right Cheek', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Left Cheek', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Right Eye', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Left Eye', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Lower Mouth', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Mask Strap', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Nose', 0, 145)
INSERT INTO dbo.Pieces VALUES ('Kelpie Mask Kelpie Chin', 0, 145)
GO
INSERT INTO dbo.Sets VALUES ('Cherub Mask', 47)
INSERT INTO dbo.Sets VALUES ('Imp Mask', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Mask Head', 1, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Right Cheek', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Left Cheek', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Right Eye', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Left Eye', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Upper Mouth', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Lower Mouth', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Mask Strap', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Nose', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Cherub Mask Cherub Chin', 0, 225)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Mask Head', 1, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Right Cheek', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Left Cheek', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Right Eye', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Left Eye', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Upper Mouth', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Lower Mouth', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Mask Strap', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Nose', 0, 226)
INSERT INTO dbo.Pieces VALUES ('Imp Mask Imp Chin', 0, 226)
GO
INSERT INTO dbo.Pieces VALUES ('Blue Bottle First Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Second Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Third Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Fourth Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Fifth Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Sixth Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Seventh Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Eight Cup Of Blue Sprinkles', 0, 172)
INSERT INTO dbo.Pieces VALUES ('Blue Bottle Ninth Cup Of Blue Sprinkles', 0, 172)
GO
INSERT INTO dbo.Sets VALUES ('Shadowy Mane', 47)
INSERT INTO dbo.Sets VALUES ('Sassy Bob', 47)
INSERT INTO dbo.Sets VALUES ('Rainbow Mohawk', 47)
INSERT INTO dbo.Sets VALUES ('Emerald Horns', 47)
INSERT INTO dbo.Sets VALUES ('Luminous Feathers', 47)
INSERT INTO dbo.Sets VALUES ('Pixie Cut', 47)
INSERT INTO dbo.Sets VALUES ('Crystal Strands', 47)
INSERT INTO dbo.Sets VALUES ('Chestnut Hair', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Base Of Shadowy Mane', 1, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane First Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Second Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Third Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Fourth Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Fifth Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Sixth Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Seventh Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Eight Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Shadowy Mane Ninth Lock Of Shadowy Mane', 0, 227)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Base Of Sassy Bob', 1, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob First Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Second Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Third Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Fourth Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Fifth Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Sixth Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Seventh Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Eight Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Sassy Bob Ninth Lock Of Sassy Bob', 0, 228)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Base Of Rainbow Mohawk', 1, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk First Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Second Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Third Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Fourth Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Fifth Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Sixth Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Seventh Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Eight Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Rainbow Mohawk Ninth Lock Of Rainbow Mohawk', 0, 229)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Base Of Emerald Horns', 1, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns First Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Second Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Third Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Fourth Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Fifth Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Sixth Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Seventh Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Eight Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Emerald Horns Ninth Lock Of Emerald Horns', 0, 230)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Base Of Luminous Feathers', 1, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers First Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Second Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Third Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Fourth Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Fifth Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Sixth Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Seventh Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Eight Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Luminous Feathers Ninth Lock Of Luminous Feathers', 0, 231)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Base Of Pixie Cut', 1, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut First Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Second Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Third Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Fourth Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Fifth Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Sixth Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Seventh Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Eight Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Pixie Cut Ninth Lock Of Pixie Cut', 0, 232)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Base Of Crystal Strands', 1, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands First Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Second Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Third Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Fourth Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Fifth Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Sixth Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Seventh Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Eight Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Crystal Strands Ninth Lock Of Crystal Strands', 0, 233)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Base Of Chestnut Hair', 1, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair First Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Second Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Third Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Fourth Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Fifth Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Sixth Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Seventh Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Eight Lock Of Chestnut Hair', 0, 234)
INSERT INTO dbo.Pieces VALUES ('Chestnut Hair Ninth Lock Of Chestnut Hair', 0, 234)
GO
INSERT INTO dbo.Sets VALUES ('Marionette Mask', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Mask Head', 1, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Right Cheek', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Left Cheek', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Right Eye', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Left Eye', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Upper Mouth', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Lower Mouth', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Mask Strap', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Nose', 0, 238)
INSERT INTO dbo.Pieces VALUES ('Marionette Mask Marionette Chin', 0, 238)
GO
INSERT INTO dbo.Sets VALUES ('Jester Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Farmer Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Prince Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Queen Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Milkmaid Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Soldier Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Frog Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Dragon Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Pixie Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Zombie Marionette', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Head Of A Jester Marionette', 1, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Upper Torso Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Lower Torso Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Left Arm Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Right Arm Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Left Leg Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Right Leg Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Strings Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Head Of A Farmer Marionette', 1, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Upper Torso Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Lower Torso Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Left Arm Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Right Arm Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Left Leg Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Right Leg Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Strings Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Head Of A Prince Marionette', 1, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Upper Torso Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Lower Torso Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Left Arm Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Right Arm Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Left Leg Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Right Leg Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Strings Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Head Of A Queen Marionette', 1, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Upper Torso Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Lower Torso Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Left Arm Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Right Arm Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Left Leg Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Right Leg Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Strings Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Head Of A Milkmaid Marionette', 1, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Upper Torso Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Lower Torso Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Left Arm Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Right Arm Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Left Leg Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Right Leg Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Milkmaid Marionette Strings Of A Milkmaid Marionette', 0, 243)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Head Of A Soldier Marionette', 1, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Upper Torso Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Lower Torso Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Left Arm Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Right Arm Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Left Leg Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Right Leg Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Soldier Marionette Strings Of A Soldier Marionette', 0, 244)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Head Of A Frog Marionette', 1, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Upper Torso Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Lower Torso Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Left Arm Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Right Arm Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Left Leg Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Right Leg Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Strings Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Head Of A Dragon Marionette', 1, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Upper Torso Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Lower Torso Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Left Arm Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Right Arm Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Left Leg Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Right Leg Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Strings Of A Dragon Marionette', 0, 246)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Head Of A Pixie Marionette', 1, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Upper Torso Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Lower Torso Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Left Arm Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Right Arm Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Left Leg Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Right Leg Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Pixie Marionette Strings Of A Pixie Marionette', 0, 247)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Head Of A Zombie Marionette', 1, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Upper Torso Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Lower Torso Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Left Arm Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Right Arm Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Left Leg Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Right Leg Of A Zombie Marionette', 0, 248)
INSERT INTO dbo.Pieces VALUES ('Zombie Marionette Strings Of A Zombie Marionette', 0, 248)
GO
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Cap Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Jester Marionette Bells Of A Jester Marionette', 0, 239)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Hat Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Farmer Marionette Shovel Of A Farmer Marionette', 0, 240)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Buttons Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Prince Marionette Sword Of A Prince Marionette', 0, 241)
INSERT INTO dbo.Pieces VALUES ('Queen Marionette Crown Of A Queen Marionette', 0, 242)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Tongue Of A Frog Marionette', 0, 245)
INSERT INTO dbo.Pieces VALUES ('Frog Marionette Eyes Of A Frog Marionette', 0, 245)
GO
INSERT INTO dbo.Sets VALUES ('Squonk Mask', 47)
INSERT INTO dbo.Sets VALUES ('Harlequin Mask', 47)
INSERT INTO dbo.Sets VALUES ('Fae Knight Mask', 47)
INSERT INTO dbo.Sets VALUES ('Dove Mask', 47)
INSERT INTO dbo.Sets VALUES ('Moth Mask', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Mask Head', 1, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Right Cheek', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Left Cheek', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Right Eye', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Left Eye', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Upper Mouth', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Lower Mouth', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Mask Strap', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Nose', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Squonk Mask Squonk Chin', 0, 249)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Mask Head', 1, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Right Cheek', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Left Cheek', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Right Eye', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Left Eye', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Upper Mouth', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Lower Mouth', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Mask Strap', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Nose', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Harlequin Mask Harlequin Chin', 0, 250)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Mask Head', 1, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Right Cheek', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Left Cheek', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Right Eye', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Left Eye', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Upper Mouth', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Lower Mouth', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Mask Strap', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Nose', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Fae Knight Mask Fae Knight Chin', 0, 251)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Mask Head', 1, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Right Cheek', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Left Cheek', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Right Eye', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Left Eye', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Upper Mouth', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Lower Mouth', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Mask Strap', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Nose', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Dove Mask Dove Chin', 0, 252)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Mask Head', 1, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Right Cheek', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Left Cheek', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Right Eye', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Left Eye', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Upper Mouth', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Lower Mouth', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Mask Strap', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Nose', 0, 253)
INSERT INTO dbo.Pieces VALUES ('Moth Mask Moth Chin', 0, 253)
GO
INSERT INTO dbo.Sets VALUES ('Wispy Feathers', 47)
INSERT INTO dbo.Sets VALUES ('Onyx Spires', 47)
INSERT INTO dbo.Sets VALUES ('Silky Sable Hair', 47)
INSERT INTO dbo.Sets VALUES ('Ombre Updo', 47)
INSERT INTO dbo.Sets VALUES ('White Horns', 47)
INSERT INTO dbo.Sets VALUES ('Bloody Horns', 47)
INSERT INTO dbo.Sets VALUES ('Gold Antennae', 47)
INSERT INTO dbo.Sets VALUES ('Tousled Brown Hair', 47)
INSERT INTO dbo.Sets VALUES ('Refined Updo', 47)
INSERT INTO dbo.Sets VALUES ('Copper Chignon', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Base Of Wispy Feathers', 1, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers First Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Second Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Third Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Fourth Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Fifth Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Sixth Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Seventh Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Eight Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Wispy Feathers Ninth Lock Of Wispy Feathers', 0, 254)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Base Of Onyx Spires', 1, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires First Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Second Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Third Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Fourth Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Fifth Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Sixth Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Seventh Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Eight Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Onyx Spires Ninth Lock Of Onyx Spires', 0, 255)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Base Of Silky Sable Hair', 1, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair First Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Second Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Third Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Fourth Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Fifth Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Sixth Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Seventh Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Eight Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Silky Sable Hair Ninth Lock Of Silky Sable Hair', 0, 256)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Base Of Ombre Updo', 1, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo First Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Second Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Third Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Fourth Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Fifth Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Sixth Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Seventh Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Eight Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('Ombre Updo Ninth Lock Of Ombre Updo', 0, 257)
INSERT INTO dbo.Pieces VALUES ('White Horns Base Of White Horns', 1, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns First Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Second Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Third Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Fourth Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Fifth Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Sixth Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Seventh Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Eight Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('White Horns Ninth Lock Of White Horns', 0, 258)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Base Of Bloody Horns', 1, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns First Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Second Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Third Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Fourth Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Fifth Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Sixth Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Seventh Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Eight Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Bloody Horns Ninth Lock Of Bloody Horns', 0, 259)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Base Of Gold Antennae', 1, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae First Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Second Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Third Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Fourth Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Fifth Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Sixth Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Seventh Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Eight Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Gold Antennae Ninth Lock Of Gold Antennae', 0, 260)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Base Of Tousled Brown Hair', 1, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair First Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Second Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Third Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Fourth Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Fifth Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Sixth Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Seventh Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Eight Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Tousled Brown Hair Ninth Lock Of Tousled Brown Hair', 0, 261)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Base Of Refined Updo', 1, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo First Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Second Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Third Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Fourth Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Fifth Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Sixth Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Seventh Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Eight Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Refined Updo Ninth Lock Of Refined Updo', 0, 262)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Base Of Copper Chignon', 1, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon First Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Second Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Third Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Fourth Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Fifth Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Sixth Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Seventh Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Eight Lock Of Copper Chignon', 0, 263)
INSERT INTO dbo.Pieces VALUES ('Copper Chignon Ninth Lock Of Copper Chignon', 0, 263)
GO
update dbo.Pieces set Name = REPLACE(Name, 'Eight', 'Eighth')
GO
update dbo.Pieces set Name = REPLACE(Name, 'Eighthh', 'Eighth')
GO
INSERT INTO dbo.Sets VALUES ('Feathered Plumes', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Base Of Feathered Plumes', 1, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes First Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Second Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Third Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Fourth Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Fifth Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Sixth Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Seventh Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Eighth Lock Of Feathered Plumes', 0, 264)
INSERT INTO dbo.Pieces VALUES ('Feathered Plumes Ninth Lock Of Feathered Plumes', 0, 264)
GO
INSERT INTO dbo.Sets VALUES ('Powdered Wig', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Base Of Powdered Wig', 1, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig First Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Second Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Third Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Fourth Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Fifth Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Sixth Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Seventh Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Eighth Lock Of Powdered Wig', 0, 265)
INSERT INTO dbo.Pieces VALUES ('Powdered Wig Ninth Lock Of Powdered Wig', 0, 265)
GO
INSERT INTO dbo.Sets VALUES ('Sunset Fins', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Base Of Sunset Fins', 1, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins First Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Second Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Third Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Fourth Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Fifth Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Sixth Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Seventh Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Eighth Lock Of Sunset Fins', 0, 266)
INSERT INTO dbo.Pieces VALUES ('Sunset Fins Ninth Lock Of Sunset Fins', 0, 266)
GO
INSERT INTO dbo.Collections VALUES ('Fiery')
INSERT INTO dbo.Collections VALUES ('Cinnamon')
GO
INSERT INTO dbo.Sets VALUES ('Peppers Bottle', 59)
INSERT INTO dbo.Sets VALUES ('Salsa Bottle', 59)
INSERT INTO dbo.Sets VALUES ('Chocolate Bottle', 52)
INSERT INTO dbo.Sets VALUES ('Guacamole Bottle', 59)
INSERT INTO dbo.Sets VALUES ('Ketchup Bottle', 57)
INSERT INTO dbo.Sets VALUES ('Cream Bottle', 52)
INSERT INTO dbo.Sets VALUES ('Butter Bottle', 60)
INSERT INTO dbo.Sets VALUES ('Cinnamon Bottle', 60)
INSERT INTO dbo.Sets VALUES ('Raw Sugar Bottle', 60)
INSERT INTO dbo.Sets VALUES ('Honey Bottle', 60)
INSERT INTO dbo.Sets VALUES ('Green Bottle', 54)
INSERT INTO dbo.Sets VALUES ('Coconut Milk Bottle', 58)
INSERT INTO dbo.Sets VALUES ('Cardamon Bottle', 56)
INSERT INTO dbo.Sets VALUES ('Coriandor Bottle', 56)
INSERT INTO dbo.Sets VALUES ('Turmeric Bottle', 56)
INSERT INTO dbo.Sets VALUES ('Pepper Bottle', 51)
INSERT INTO dbo.Sets VALUES ('Anise Bottle', 55)
INSERT INTO dbo.Sets VALUES ('Nutmeg Bottle', 55)
GO
INSERT INTO dbo.Pieces VALUES ('Red Bottle First Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Second Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Third Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Fourth Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Fifth Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Sixth Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Seventh Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Eighth Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Red Bottle Ninth Cup Of Red Sprinkles', 0, 174)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle First Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Second Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Third Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Fourth Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Fifth Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Sixth Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Seventh Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Eighth Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Yellow Bottle Ninth Cup Of Yellow Sprinkles', 0, 149)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Empty Coriander Bottle', 1, 165)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Empty Paprika Bottle', 1, 170)
INSERT INTO dbo.Pieces VALUES ('Ginger Bottle Empty Ginger Bottle', 1, 169)
INSERT INTO dbo.Pieces VALUES ('Clove Bottle Empty Clove Bottle', 1, 152)
INSERT INTO dbo.Pieces VALUES ('Sage Bottle Empty Sage Bottle', 1, 168)
INSERT INTO dbo.Pieces VALUES ('Rosemary Bottle Empty Rosemary Bottle', 1, 151)
INSERT INTO dbo.Pieces VALUES ('Parsley Bottle Empty Parsley Bottle', 1, 144)
INSERT INTO dbo.Pieces VALUES ('Paprika Bottle Empty Paprika Bottle', 1, 170)
GO
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Empty Peppers Bottle', 1, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle First Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Second Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Third Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Fourth Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Fifth Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Sixth Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Seventh Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Eighth Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Peppers Bottle Ninth Bunch of Hot Peppers', 0, 267)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Empty Salsa Bottle', 1, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle First Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Second Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Third Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Fourth Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Fifth Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Sixth Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Seventh Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Eighth Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Salsa Bottle Ninth Cup of Salsa', 0, 268)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Empty Powdered Chocolate Bottle', 1, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle First Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Second Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Third Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Fourth Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Fifth Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Sixth Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Seventh Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Eighth Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Chocolate Bottle Ninth Pinch of Powdered Chocolate', 0, 269)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Empty Guacamole Bottle', 1, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle First Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Second Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Third Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Fourth Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Fifth Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Sixth Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Seventh Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Eighth Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Guacamole Bottle Ninth Cup of Guacamole', 0, 270)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Empty Ketchup Bottle', 1, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle First Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Second Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Third Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Fourth Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Fifth Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Sixth Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Seventh Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Eighth Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Ketchup Bottle Ninth Squirt Of Ketchup', 0, 271)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Empty Cream Bottle', 1, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle First Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Second Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Third Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Fourth Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Fifth Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Sixth Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Seventh Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Eighth Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Cream Bottle Ninth Cup of Cream', 0, 272)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Empty Butter Bottle', 1, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle First Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Second Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Third Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Fourth Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Fifth Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Sixth Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Seventh Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Eighth Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Butter Bottle Ninth Dollop of Butter', 0, 273)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Empty Cinnamon Bottle', 1, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle First Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Second Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Third Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Fourth Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Fifth Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Sixth Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Seventh Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Eighth Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Bottle Ninth Pinch of Cinnamon', 0, 274)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Empty Raw Sugar Bottle', 1, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle First Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Second Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Third Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Fourth Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Fifth Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Sixth Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Seventh Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Eighth Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Raw Sugar Bottle Ninth Pinch of Raw Sugar', 0, 275)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Empty Honey Bottle', 1, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle First Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Second Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Third Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Fourth Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Fifth Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Sixth Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Seventh Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Eighth Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Honey Bottle Ninth Dollop of Honey', 0, 276)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Empty Green Sprinkles Bottle', 1, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle First Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Second Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Third Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Fourth Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Fifth Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Sixth Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Seventh Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Eighth Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Green Bottle Ninth Cup Of Green Sprinkles', 0, 277)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Empty Coconut Milk Bottle', 1, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle First Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Second Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Third Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Fourth Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Fifth Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Sixth Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Seventh Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Eighth Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Coconut Milk Bottle Ninth Cup of Coconut Milk', 0, 278)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Empty Cardamom Bottle', 1, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle First Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Second Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Third Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Fourth Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Fifth Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Sixth Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Seventh Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Eighth Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Cardamom Bottle Ninth Pinch of Cardamom', 0, 279)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Empty Coriander Bottle', 1, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle First Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Second Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Third Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Fourth Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Fifth Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Sixth Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Seventh Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Eighth Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Coriander Bottle Ninth Pinch of Coriander', 0, 280)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Empty Turmeric Bottle', 1, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle First Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Second Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Third Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Fourth Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Fifth Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Sixth Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Seventh Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Eighth Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Turmeric Bottle Ninth Pinch of Turmeric', 0, 281)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Empty Pepper Bottle', 1, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle First Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Second Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Third Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Fourth Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Fifth Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Sixth Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Seventh Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Eighth Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Pepper Bottle Ninth Pinch of Pepper', 0, 282)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Empty Anise Bottle', 1, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle First Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Second Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Third Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Fourth Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Fifth Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Sixth Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Seventh Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Eighth Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Anise Bottle Ninth Pinch of Anise', 0, 283)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Empty Nutmeg Bottle', 1, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle First Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Second Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Third Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Fourth Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Fifth Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Sixth Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Seventh Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Eighth Pinch of Nutmeg', 0, 284)
INSERT INTO dbo.Pieces VALUES ('Nutmeg Bottle Ninth Pinch of Nutmeg', 0, 284)
GO
INSERT INTO dbo.Sets VALUES ('Viridian Antennae', 47)
INSERT INTO dbo.Sets VALUES ('Tomatillo Bottle', 59)
GO
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Base Of Viridian Antennae', 1, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae First Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Second Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Third Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Fourth Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Fifth Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Sixth Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Seventh Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Eighth Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Viridian Antennae Ninth Lock Of Viridian Antennae', 0, 285)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Empty Tomatillo Bottle', 1, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle First Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Second Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Third Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Fourth Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Fifth Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Sixth Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Seventh Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Eighth Cup of Tomatillo', 0, 286)
INSERT INTO dbo.Pieces VALUES ('Tomatillo Bottle Ninth Cup of Tomatillo', 0, 286)
GO
INSERT INTO dbo.Sets VALUES ('Basil Bottle', 58)
INSERT INTO dbo.Sets VALUES ('Thyme Bottle', 53)
GO
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Empty Basil Bottle', 1, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle First Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Second Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Third Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Fourth Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Fifth Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Sixth Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Seventh Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Eighth Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Basil Bottle Ninth Cup of Basil', 0, 287)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Empty Thyme Bottle', 1, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle First Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Second Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Third Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Fourth Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Fifth Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Sixth Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Seventh Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Eighth Cup of Thyme', 0, 288)
INSERT INTO dbo.Pieces VALUES ('Thyme Bottle Ninth Cup of Thyme', 0, 288)
GO
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Tail Of A Dragon Marionette', 0, 246)
GO
INSERT INTO dbo.Sets VALUES ('Blonde Ponytail', 47)
INSERT INTO dbo.Sets VALUES ('Green Horns', 47)
INSERT INTO dbo.Sets VALUES ('Warrior''s Plait', 47)
INSERT INTO dbo.Sets VALUES ('Blue Fins', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Mustard Bottle Empty Mustard Bottle', 0, 167)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Base Of Blonde Ponytail', 1, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail First Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Second Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Third Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Fourth Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Fifth Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Sixth Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Seventh Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Eighth Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Blonde Ponytail Ninth Lock Of Blonde Ponytail', 0, 289)
INSERT INTO dbo.Pieces VALUES ('Green Horns Base Of Green Horns', 1, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns First Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Second Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Third Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Fourth Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Fifth Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Sixth Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Seventh Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Eighth Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Green Horns Ninth Lock Of Green Horns', 0, 290)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Base Of Warrior''s Plait', 1, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait First Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Second Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Third Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Fourth Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Fifth Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Sixth Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Seventh Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Eighth Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Warrior''s Plait Ninth Lock Of Warrior''s Plait', 0, 291)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Base Of Blue Fins', 1, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins First Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Second Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Third Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Fourth Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Fifth Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Sixth Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Seventh Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Eighth Lock Of Blue Fins', 0, 292)
INSERT INTO dbo.Pieces VALUES ('Blue Fins Ninth Lock Of Blue Fins', 0, 292)
GO
INSERT INTO dbo.Sets VALUES ('Frosty Mane', 47)
INSERT INTO dbo.Sets VALUES ('Relish Bottle', 57)
GO
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Base Of Frosty Mane', 1, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane First Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Second Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Third Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Fourth Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Fifth Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Sixth Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Seventh Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Eighth Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Frosty Mane Ninth Lock Of Frosty Mane', 0, 293)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Empty Relish Bottle', 1, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle First Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Second Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Third Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Fourth Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Fifth Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Sixth Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Seventh Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Eighth Cup of Relish', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Relish Bottle Ninth Cup of Relish', 0, 294)
GO
INSERT INTO dbo.Sets VALUES ('Curry Bottle', 58)
GO
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Empty Curry Bottle', 1, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle First Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Second Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Third Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Fourth Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Fifth Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Sixth Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Seventh Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Eighth Pinch of Curry', 0, 294)
INSERT INTO dbo.Pieces VALUES ('Curry Bottle Ninth Pinch of Curry', 0, 294)
GO
INSERT INTO dbo.Sets VALUES ('Candy Pink Curls', 47)
INSERT INTO dbo.Sets VALUES ('King Marionette', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Base Of Candy Pink Curls', 1, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls First Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Second Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Third Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Fourth Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Fifth Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Sixth Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Seventh Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Eighth Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('Candy Pink Curls Ninth Lock Of Candy Pink Curls', 0, 295)
INSERT INTO dbo.Pieces VALUES ('King Marionette Head Of A King Marionette', 1, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Upper Torso Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Lower Torso Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Left Arm Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Right Arm Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Left Leg Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Right Leg Of A King Marionette', 0, 296)
INSERT INTO dbo.Pieces VALUES ('King Marionette Strings Of A King Marionette', 0, 296)
GO
INSERT INTO dbo.Pieces VALUES ('Dragon Marionette Teeth Of A Dragon Marionette', 0, 246)
GO
INSERT INTO dbo.Sets VALUES ('Delportian Moustache', 47)
INSERT INTO dbo.Sets VALUES ('Pearl Crest', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Base Of Delportian Moustache', 1, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache First Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Second Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Third Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Fourth Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Fifth Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Sixth Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Seventh Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Eighth Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Delportian Moustache Ninth Lock Of Delportian Moustache', 0, 1296)
INSERT INTO dbo.Pieces VALUES ('Salt Bottle Empty Salt Bottle', 1, 175)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Base Of Pearl Crest', 1, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest First Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Second Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Third Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Fourth Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Fifth Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Sixth Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Seventh Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Eighth Lock Of Pearl Crest', 0, 1297)
INSERT INTO dbo.Pieces VALUES ('Pearl Crest Ninth Lock Of Pearl Crest', 0, 1297)
GO
INSERT INTO dbo.Sets VALUES ('Princess Marionette', 47)
INSERT INTO dbo.Sets VALUES ('Bronzed-Brown Finger', 47)
GO
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Head Of A Princess Marionette', 1, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Upper Torso Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Lower Torso Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Left Arm Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Right Arm Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Left Leg Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Right Leg Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Princess Marionette Strings Of A Princess Marionette', 0, 1298)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Base Of Bronzed-Brown Finger', 1, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger First Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Second Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Third Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Fourth Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Fifth Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Sixth Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Seventh Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Eighth Lock Of Bronzed-Brown Finger', 0, 1299)
INSERT INTO dbo.Pieces VALUES ('Bronzed-Brown Finger Ninth Lock Of Bronzed-Brown Finger', 0, 1299)
GO
INSERT INTO dbo.Sets VALUES ('Iron Horns', 47)
INSERT INTO dbo.Sets VALUES ('Crystal Spires', 47)
INSERT INTO dbo.Sets VALUES ('Striped Antennae', 47)
INSERT INTO dbo.Sets VALUES ('Plum-Hued Tresses', 47)
INSERT INTO dbo.Sets VALUES ('Fiery Mane', 47)
INSERT INTO dbo.Sets VALUES ('Rose Of Gems And Gold', 47)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Base Of Iron Horns', 1, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns First Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Second Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Third Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Fourth Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Fifth Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Sixth Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Seventh Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Eighth Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Iron Horns Ninth Lock Of Iron Horns', 0, 1300)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Base Of Crystal Spires', 1, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires First Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Second Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Third Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Fourth Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Fifth Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Sixth Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Seventh Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Eighth Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Crystal Spires Ninth Lock Of Crystal Spires', 0, 1301)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Base Of Striped Antennae', 1, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae First Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Second Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Third Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Fourth Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Fifth Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Sixth Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Seventh Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Eighth Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Striped Antennae Ninth Lock Of Striped Antennae', 0, 1302)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Base Of Plum-Hued Tresses', 1, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses First Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Second Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Third Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Fourth Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Fifth Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Sixth Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Seventh Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Eighth Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Plum-Hued Tresses Ninth Lock Of Plum-Hued Tresses', 0, 1303)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Base Of Fiery Mane', 1, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane First Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Second Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Third Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Fourth Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Fifth Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Sixth Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Seventh Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Eighth Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Fiery Mane Ninth Lock Of Fiery Mane', 0, 1304)
INSERT INTO dbo.Pieces VALUES ('Rose Of Gems And Gold Second Gem Petal', 0, 1305)
INSERT INTO dbo.Sets VALUES ('Blue-black Dreadlocks', 47)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Base Of Blue-black Dreadlocks', 1, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks First Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Second Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Third Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Fourth Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Fifth Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Sixth Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Seventh Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Eighth Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Pieces VALUES ('Blue-black Dreadlocks Ninth Lock Of Blue-black Dreadlocks', 0, 1306)
INSERT INTO dbo.Sets VALUES ('Cinnamon Tangles', 47)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Base Of Cinnamon Tangles', 1, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles First Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Second Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Third Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Fourth Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Fifth Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Sixth Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Seventh Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Eighth Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Pieces VALUES ('Cinnamon Tangles Ninth Lock Of Cinnamon Tangles', 0, 1307)
INSERT INTO dbo.Sets VALUES ('Black Scruff', 47)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Base Of Black Scruff', 1, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff First Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Second Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Third Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Fourth Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Fifth Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Sixth Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Seventh Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Eighth Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Pieces VALUES ('Black Scruff Ninth Lock Of Black Scruff', 0, 1308)
INSERT INTO dbo.Collections VALUES ('Red Bows')
INSERT INTO dbo.Collections VALUES ('Orange Bows')
INSERT INTO dbo.Collections VALUES ('Yellow Bows')
INSERT INTO dbo.Collections VALUES ('Green Bows')
INSERT INTO dbo.Collections VALUES ('Blue Bows')
INSERT INTO dbo.Collections VALUES ('Indigo Bows')
INSERT INTO dbo.Collections VALUES ('Violet Bows')
INSERT INTO dbo.Sets VALUES ('Crimson Bow', 62)
INSERT INTO dbo.Sets VALUES ('Maroon Bow', 62)
INSERT INTO dbo.Sets VALUES ('Pink Bow', 62)
INSERT INTO dbo.Sets VALUES ('Jazberry Bow', 62)
INSERT INTO dbo.Sets VALUES ('Vermillion Bow', 63)
INSERT INTO dbo.Sets VALUES ('Tangerine Bow', 63)
INSERT INTO dbo.Sets VALUES ('Burnt Orange Bow', 63)
INSERT INTO dbo.Sets VALUES ('Sienna Bow', 63)
INSERT INTO dbo.Sets VALUES ('Lemon Yellow Bow', 64)
INSERT INTO dbo.Sets VALUES ('Sunny Bow', 64)
INSERT INTO dbo.Sets VALUES ('Golden Bow', 64)
INSERT INTO dbo.Sets VALUES ('Amber Bow', 64)
INSERT INTO dbo.Sets VALUES ('Emerald Bow', 65)
INSERT INTO dbo.Sets VALUES ('Lime Green Bow', 65)
INSERT INTO dbo.Sets VALUES ('Forest Green Bow', 65)
INSERT INTO dbo.Sets VALUES ('Seafoam Bow', 65)
INSERT INTO dbo.Sets VALUES ('Peacock Bow', 66)
INSERT INTO dbo.Sets VALUES ('Aquamarine Bow', 66)
INSERT INTO dbo.Sets VALUES ('Sapphire Bow', 66)
INSERT INTO dbo.Sets VALUES ('Teal Bow', 66)
INSERT INTO dbo.Sets VALUES ('Midnight Bow', 67)
INSERT INTO dbo.Sets VALUES ('Dark Imperial Bow', 67)
INSERT INTO dbo.Sets VALUES ('Cobolt Bow', 67)
INSERT INTO dbo.Sets VALUES ('Azure Bow', 67)
INSERT INTO dbo.Sets VALUES ('Purple Bow', 68)
INSERT INTO dbo.Sets VALUES ('Lavender Bow', 68)
INSERT INTO dbo.Sets VALUES ('Mauve Bow', 68)
INSERT INTO dbo.Sets VALUES ('Cerise Bow', 68)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Crimson Knot', 1, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow First Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Second Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Third Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Fourth Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Fifth Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Sixth Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Seventh Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Eighth Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Crimson Bow Ninth Crimson Thread', 0, 1309)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Maroon Knot', 1, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow First Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Second Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Third Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Fourth Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Fifth Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Sixth Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Seventh Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Eighth Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Maroon Bow Ninth Maroon Thread', 0, 1310)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Pink Knot', 1, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow First Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Second Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Third Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Fourth Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Fifth Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Sixth Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Seventh Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Eighth Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Pink Bow Ninth Pink Thread', 0, 1311)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Jazberry Knot', 1, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow First Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Second Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Third Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Fourth Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Fifth Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Sixth Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Seventh Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Eighth Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Jazberry Bow Ninth Jazberry Thread', 0, 1312)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Vermillion Knot', 1, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow First Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Second Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Third Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Fourth Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Fifth Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Sixth Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Seventh Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Eighth Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Vermillion Bow Ninth Vermillion Thread', 0, 1313)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Tangerine Knot', 1, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow First Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Second Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Third Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Fourth Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Fifth Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Sixth Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Seventh Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Eighth Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Tangerine Bow Ninth Tangerine Thread', 0, 1314)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Burnt Orange Knot', 1, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow First Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Second Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Third Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Fourth Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Fifth Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Sixth Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Seventh Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Eighth Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Burnt Orange Bow Ninth Burnt Orange Thread', 0, 1315)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Sienna Knot', 1, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow First Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Second Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Third Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Fourth Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Fifth Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Sixth Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Seventh Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Eighth Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Sienna Bow Ninth Sienna Thread', 0, 1316)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Lemon Yellow Knot', 1, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow First Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Second Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Third Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Fourth Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Fifth Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Sixth Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Seventh Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Eighth Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Lemon Yellow Bow Ninth Lemon Yellow Thread', 0, 1317)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Sunny Knot', 1, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow First Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Second Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Third Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Fourth Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Fifth Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Sixth Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Seventh Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Eighth Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Sunny Bow Ninth Sunny Thread', 0, 1318)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Golden Knot', 1, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow First Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Second Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Third Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Fourth Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Fifth Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Sixth Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Seventh Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Eighth Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Golden Bow Ninth Golden Thread', 0, 1319)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Amber Knot', 1, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow First Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Second Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Third Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Fourth Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Fifth Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Sixth Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Seventh Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Eighth Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Amber Bow Ninth Amber Thread', 0, 1320)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Emerald Knot', 1, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow First Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Second Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Third Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Fourth Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Fifth Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Sixth Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Seventh Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Eighth Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Emerald Bow Ninth Emerald Thread', 0, 1321)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Lime Green Knot', 1, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow First Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Second Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Third Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Fourth Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Fifth Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Sixth Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Seventh Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Eighth Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Lime Green Bow Ninth Lime Green Thread', 0, 1322)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Forest Green Knot', 1, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow First Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Second Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Third Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Fourth Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Fifth Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Sixth Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Seventh Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Eighth Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Forest Green Bow Ninth Forest Green Thread', 0, 1323)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Seafoam Knot', 1, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow First Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Second Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Third Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Fourth Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Fifth Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Sixth Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Seventh Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Eighth Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Seafoam Bow Ninth Seafoam Thread', 0, 1324)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Peacock Knot', 1, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow First Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Second Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Third Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Fourth Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Fifth Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Sixth Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Seventh Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Eighth Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Peacock Bow Ninth Peacock Thread', 0, 1325)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Aquamarine Knot', 1, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow First Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Second Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Third Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Fourth Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Fifth Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Sixth Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Seventh Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Eighth Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Aquamarine Bow Ninth Aquamarine Thread', 0, 1326)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Sapphire Knot', 1, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow First Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Second Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Third Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Fourth Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Fifth Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Sixth Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Seventh Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Eighth Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Sapphire Bow Ninth Sapphire Thread', 0, 1327)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Teal Knot', 1, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow First Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Second Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Third Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Fourth Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Fifth Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Sixth Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Seventh Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Eighth Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Teal Bow Ninth Teal Thread', 0, 1328)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Midnight Knot', 1, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow First Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Second Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Third Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Fourth Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Fifth Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Sixth Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Seventh Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Eighth Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Midnight Bow Ninth Midnight Thread', 0, 1329)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Dark Imperial Knot', 1, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow First Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Second Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Third Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Fourth Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Fifth Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Sixth Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Seventh Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Eighth Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Dark Imperial Bow Ninth Dark Imperial Thread', 0, 1330)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Cobolt Knot', 1, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow First Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Second Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Third Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Fourth Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Fifth Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Sixth Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Seventh Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Eighth Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Cobolt Bow Ninth Cobolt Thread', 0, 1331)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Azure Knot', 1, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow First Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Second Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Third Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Fourth Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Fifth Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Sixth Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Seventh Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Eighth Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Azure Bow Ninth Azure Thread', 0, 1332)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Purple Knot', 1, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow First Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Second Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Third Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Fourth Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Fifth Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Sixth Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Seventh Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Eighth Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Purple Bow Ninth Purple Thread', 0, 1333)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Lavender Knot', 1, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow First Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Second Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Third Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Fourth Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Fifth Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Sixth Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Seventh Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Eighth Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Lavender Bow Ninth Lavender Thread', 0, 1334)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Mauve Knot', 1, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow First Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Second Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Third Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Fourth Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Fifth Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Sixth Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Seventh Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Eighth Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Mauve Bow Ninth Mauve Thread', 0, 1335)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Cerise Knot', 1, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow First Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Second Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Third Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Fourth Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Fifth Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Sixth Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Seventh Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Eighth Cerise Thread', 0, 1336)
INSERT INTO dbo.Pieces VALUES ('Cerise Bow Ninth Cerise Thread', 0, 1336) |
<reponame>longtime55/5on6.pl
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64)
--
-- Host: localhost Database: laraclassified
-- ------------------------------------------------------
-- Server version 5.6.35
/*!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 */;
--
-- Dumping data for table `<<prefix>>subadmin1`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin1` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin1` VALUES (3882,'XK.10096138','XK','Ferizaj','Ferizaj',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3883,'XK.10096859','XK','Gjakova','Gjakova',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3884,'XK.10097357','XK','Gjilan','Gjilan',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3885,'XK.10097358','XK','Mitrovica','Mitrovica',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3886,'XK.10097359','XK','Pec','Pec',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3887,'XK.10097360','XK','Pristina','Pristina',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (3888,'XK.10097361','XK','Prizren','Prizren',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin1` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>subadmin2`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin2` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin2` VALUES (43889,'XK.10097358.28','XK','XK.10097358','Vushtrri','Vushtrri',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43890,'XK.10097357.27','XK','XK.10097357','Komuna e Vitisë','Komuna e Vitise',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43891,'XK.10096138.03','XK','XK.10096138','Komuna e Ferizajt','Komuna e Ferizajt',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43892,'XK.10097358.15','XK','XK.10097358','Komuna e Mitrovicës','Komuna e Mitrovices',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43893,'XK.10097361.26','XK','XK.10097361','Komuna e Thërandës','Komuna e Therandes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43894,'XK.10097358.25','XK','XK.10097358','Komuna e Skenderajt','Komuna e Skenderajt',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43895,'XK.10097361.21','XK','XK.10097361','Prizren','Prizren',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43896,'XK.10097360.20','XK','XK.10097360','Komuna e Prishtinës','Komuna e Prishtines',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43897,'XK.10097360.19','XK','XK.10097360','Podujevo','Podujevo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43898,'XK.10097359.18','XK','XK.10097359','Komuna e Pejës','Komuna e Pejes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43899,'XK.10096859.22','XK','XK.10096859','Orahovac','Orahovac',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43900,'XK.10097360.13','XK','XK.10097360','Lipjan','Lipjan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43901,'XK.10097358.12','XK','XK.10097358','Komuna e Leposaviqit','Komuna e Leposaviqit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43902,'XK.10097357.10','XK','XK.10097357','Kamenica','Kamenica',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43903,'XK.10097359.11','XK','XK.10097359','Komuna e Klines','Komuna e Klines',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43904,'XK.10096138.09','XK','XK.10096138','Komuna e Kaçanikut','Komuna e Kacanikut',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43905,'XK.10097359.08','XK','XK.10097359','Komuna e Istogut','Komuna e Istogut',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43906,'XK.10097357.06','XK','XK.10097357','Komuna e Gjilanit','Komuna e Gjilanit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43907,'XK.10097360.07','XK','XK.10097360','Komuna e Drenasit','Komuna e Drenasit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43908,'XK.10097361.02','XK','XK.10097361','Komuna e Dragashit','Komuna e Dragashit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43909,'XK.10096859.01','XK','XK.10096859','Komuna e Deçanit','Komuna e Decanit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43910,'XK.10096859.05','XK','XK.10096859','Komuna e Gjakovës','Komuna e Gjakoves',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43911,'XK.10097360.04','XK','XK.10097360','Kosovo Polje','Kosovo Polje',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43912,'XK.10096138.23','XK','XK.10096138','Opština Štrpce','Opstina Strpce',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43913,'XK.10096138.24','XK','XK.10096138','Komuna e Shtimes','Komuna e Shtimes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43914,'XK.10097360.16','XK','XK.10097360','Novo Brdo','Novo Brdo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43915,'XK.10097360.17','XK','XK.10097360','Komuna e Obiliqit','Komuna e Obiliqit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43916,'XK.10097361.14','XK','XK.10097361','Komuna e Malisheves','Komuna e Malisheves',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43917,'XK.10097358.29','XK','XK.10097358','Komuna e Zubin Potokut','Komuna e Zubin Potokut',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43918,'XK.10097358.30','XK','XK.10097358','Opština Zvečan','Opstina Zvecan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43919,'XK.10097360.31','XK','XK.10097360','Komuna e Graçanicës','Komuna e Gracanices',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43920,'XK.10096138.32','XK','XK.10096138','H<NAME> Elezit','Hani i Elezit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43921,'XK.10096859.33','XK','XK.10096859','Komuna e Junikut','Komuna e Junikut',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43922,'XK.10097357.34','XK','XK.10097357','Komuna e Kllokotit','Komuna e Kllokotit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43923,'XK.10097361.35','XK','XK.10097361','Komuna e Mamushës','Komuna e Mamushes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43924,'XK.10097357.36','XK','XK.10097357','Komuna e Parteshit','Komuna e Parteshit',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43925,'XK.10097357.37','XK','XK.10097357','Komuna e Ranillugut','Komuna e Ranillugut',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (43926,'XK.10097358.38','XK','XK.10097358','Mitrovica Veriore','Mitrovica Veriore',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin2` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>cities`
--
/*!40000 ALTER TABLE `<<prefix>>cities` DISABLE KEYS */;
INSERT INTO `<<prefix>>cities` VALUES (783770,'XK','Zvečan','Zvecan',42.9075,20.8403,'P','PPLA2','XK.10097358','XK.10097358.30',17000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (783802,'XK','Zubin Potok','Zubin Potok',42.9144,20.6897,'P','PPLA2','XK.10097358','XK.10097358.29',14900,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (784097,'XK','Vushtrri','Vushtrri',42.8231,20.9675,'P','PPLA2','XK.10097358','XK.10097358.28',30651,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (784372,'XK','Vitina','Vitina',42.3214,21.3583,'P','PPLA2','XK.10097357','XK.10097357.27',46959,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (784759,'XK','Ferizaj','Ferizaj',42.3706,21.1553,'P','PPLA','XK.10096138','XK.10096138.03',59504,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (785238,'XK','Suva Reka','Suva Reka',42.3586,20.825,'P','PPLA2','XK.10097361','XK.10097361.26',72229,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (785388,'XK','Štrpce','Strpce',42.2394,21.0272,'P','PPLA2','XK.10096138','XK.10096138.23',6913,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (785485,'XK','Shtime','Shtime',42.4331,21.0397,'P','PPLA2','XK.10096138','XK.10096138.24',35000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (785642,'XK','Srbica','Srbica',42.7467,20.7886,'P','PPLA2','XK.10097358','XK.10097358.25',5089,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (786712,'XK','Prizren','Prizren',42.2139,20.7397,'P','PPLA','XK.10097361','XK.10097361.21',171464,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (786714,'XK','Pristina','Pristina',42.6727,21.1669,'P','PPLC','XK.10097360','XK.10097360.20',550000,'Europe/Belgrade',1,'2015-02-24 23:00:00','2015-02-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (786950,'XK','Podujeva','Podujeva',42.9106,21.1931,'P','PPLA2','XK.10097360','XK.10097360.19',35000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (787157,'XK','Peć','Pec',42.6591,20.2883,'P','PPLA','XK.10097359','XK.10097359.18',48962,'Europe/Belgrade',1,'2017-09-25 23:00:00','2017-09-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (787456,'XK','Orahovac','Orahovac',42.3994,20.6547,'P','PPLA2','XK.10096859','XK.10096859.22',22049,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (787534,'XK','Obiliq','Obiliq',42.6869,21.0703,'P','PPLA2','XK.10097360','XK.10097360.17',11612,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (787589,'XK','Novo Brdo','Novo Brdo',42.6159,21.434,'P','PPLA2','XK.10097360','XK.10097360.16',6720,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (788187,'XK','Mamuša','Mamusa',42.3308,20.7269,'P','PPLA2','XK.10097361','XK.10097361.35',5507,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (788470,'XK','Llazicë','Llazice',42.5553,20.7633,'P','PPL','XK.10097361','XK.10097361.14',19863,'Europe/Belgrade',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (788652,'XK','Lipljan','Lipljan',42.5217,21.1258,'P','PPLA2','XK.10097360','XK.10097360.13',9047,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (788731,'XK','Leposaviq','Leposaviq',43.1039,20.8028,'P','PPLA2','XK.10097358','XK.10097358.12',19000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789225,'XK','Mitrovicë','Mitrovice',42.8833,20.8667,'P','PPLA','XK.10097358','XK.10097358.15',107045,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789227,'XK','Kamenica','Kamenica',42.5781,21.5803,'P','PPLA2','XK.10097357','XK.10097357.10',9312,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789228,'XK','Kosovo Polje','Kosovo Polje',42.6639,21.0961,'P','PPLA2','XK.10097360','XK.10097360.04',16154,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789455,'XK','Klina','Klina',42.6217,20.5778,'P','PPLA2','XK.10097359','XK.10097359.11',8050,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789721,'XK','Kačanik','Kacanik',42.2319,21.2594,'P','PPLA2','XK.10096138','XK.10096138.09',9800,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (789996,'XK','Istok','Istok',42.7808,20.4875,'P','PPLA2','XK.10097359','XK.10097359.08',40000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (790002,'XK','Isniq','Isniq',42.5575,20.3028,'P','PPL','XK.10096859','XK.10096859.01',5500,'Europe/Belgrade',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (790354,'XK','Strellc i Epërm','Strellc i Eperm',42.5784,20.294,'P','PPL','XK.10096859','XK.10096859.01',6100,'Europe/Belgrade',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (790674,'XK','Gjilan','Gjilan',42.4604,21.4699,'P','PPLA','XK.10097357','XK.10097357.06',51912,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (790701,'XK','Glogovac','Glogovac',42.6283,20.8939,'P','PPLA2','XK.10097360','XK.10097360.07',58579,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (791122,'XK','Dragash','Dragash',42.0265,20.6533,'P','PPLA2','XK.10097361','XK.10097361.02',35000,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (791539,'XK','Hani i Elezit','Hani i Elezit',42.15,21.2967,'P','PPLA2','XK.10096138','XK.10096138.32',9389,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (791580,'XK','Deçan','Decan',42.5402,20.2879,'P','PPLA2','XK.10096859','XK.10096859.01',50500,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (791646,'XK','Gjakovë','Gjakove',42.3803,20.4308,'P','PPLA','XK.10096859','XK.10096859.05',94158,'Europe/Belgrade',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
/*!40000 ALTER TABLE `<<prefix>>cities` ENABLE KEYS */;
/*!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
|
<filename>enter_leaveTrigger.sql<gh_stars>0
--trigger for Monthly_ticket_record
drop trigger if exists enter_leave_point
create trigger enter_leave_point
on materialdb_Monthly_ticket_record
after insert, update
for each row
begin
declare enter char(7) -- inserted enter point ID
set enter = (select enter_point_id from inserted)
declare leave char(7) -- inserted leave point ID
set leave = (select leave_point_id from inserted)
declare id char(15) --ticket ID
set id = (select ticket_id from inserted)
declare en char(7) -- enter point ID from Monthly_ticket table
set en = (select enter_point_id from materialdb_Monthly_ticket
where ticket_id = id)
declare lea char(7) -- leave point ID from Monthly_ticket table
set lea = (select leave_point_id from materialdb_Monthly_ticket
where ticket_id = id)
if enter != en or leave != lea
begin
print ('invalid enter point')
rollback
end
end |
<filename>triage.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1:3306
-- Tiempo de generación: 03-11-2020 a las 22:35:00
-- Versión del servidor: 8.0.18
-- Versión de PHP: 7.4.0
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 datos: `triage`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `areas`
--
DROP TABLE IF EXISTS `areas`;
CREATE TABLE IF NOT EXISTS `areas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`tipo_dato` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `areas`
--
INSERT INTO `areas` (`id`, `created_at`, `updated_at`, `tipo_dato`) VALUES
(5, NULL, NULL, 'Consultorio Externo'),
(6, NULL, NULL, 'Consultorio ambulatorio'),
(7, '2020-06-22 22:16:35', '2020-06-22 22:16:35', 'Internacion'),
(8, '2020-06-22 23:45:48', '2020-06-22 23:45:48', 'Quirofano'),
(9, '2020-10-20 16:16:49', '2020-10-20 16:16:49', 'borrar');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `atencion`
--
DROP TABLE IF EXISTS `atencion`;
CREATE TABLE IF NOT EXISTS `atencion` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_protocolo` bigint(20) UNSIGNED DEFAULT NULL,
`Paciente_id` bigint(20) UNSIGNED NOT NULL,
`usuario_id` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `atencion_id_procotocolo_foreign` (`id_protocolo`),
KEY `atencion_paciente_id_foreign` (`Paciente_id`),
KEY `atencion_usuario_id_foreign` (`usuario_id`)
) ENGINE=InnoDB AUTO_INCREMENT=152 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `atencion`
--
INSERT INTO `atencion` (`id`, `created_at`, `updated_at`, `id_protocolo`, `Paciente_id`, `usuario_id`) VALUES
(130, '2020-08-04 03:50:18', '2020-08-04 03:50:18', 31, 22, 18),
(131, '2020-08-04 04:45:16', '2020-08-04 04:45:17', 27, 22, 18),
(132, '2020-08-04 18:51:08', '2020-08-04 18:51:08', 31, 4, 23),
(133, '2020-08-04 19:18:45', '2020-08-04 19:18:46', 27, 5, 23),
(134, '2020-08-05 00:26:40', '2020-08-05 00:26:41', 27, 1, 18),
(135, '2020-08-05 00:35:23', '2020-08-05 00:35:52', NULL, 1, 1),
(136, '2020-08-18 22:26:54', '2020-08-18 22:26:54', 24, 22, 1),
(137, '2020-08-18 19:41:37', '2020-08-18 19:41:37', NULL, 1, 1),
(138, '2020-09-18 12:47:49', '2020-09-18 12:47:49', NULL, 1, 1),
(139, '2020-09-18 12:58:54', '2020-09-18 12:58:55', 24, 1, 1),
(140, '2020-09-18 12:59:43', '2020-09-18 12:59:43', 24, 22, 1),
(141, '2020-09-18 13:01:28', '2020-09-18 13:01:28', 25, 5, 1),
(142, '2020-09-18 14:07:50', '2020-09-18 14:07:50', NULL, 1, 1),
(143, '2020-10-21 01:43:22', '2020-10-21 01:43:22', NULL, 32, 1),
(144, '2020-10-21 01:44:17', '2020-10-21 01:44:17', NULL, 33, 1),
(145, '2020-10-21 01:46:46', '2020-10-22 15:43:45', NULL, 31, 1),
(146, '2020-10-21 22:26:11', '2020-10-21 22:26:11', NULL, 22, 1),
(147, '2020-10-27 23:18:51', '2020-10-27 23:18:51', NULL, 1, 1),
(148, '2020-10-27 23:40:42', '2020-10-27 23:41:35', NULL, 1, 1),
(149, '2020-11-02 20:25:17', '2020-11-02 20:25:17', NULL, 3, 1),
(150, '2020-11-02 20:29:15', '2020-11-02 20:29:15', NULL, 3, 1),
(151, '2020-11-03 19:05:57', '2020-11-03 19:05:57', NULL, 7, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `cie`
--
DROP TABLE IF EXISTS `cie`;
CREATE TABLE IF NOT EXISTS `cie` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`descripcion` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`codigo` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `cie_codigo_unique` (`codigo`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `cie`
--
INSERT INTO `cie` (`id`, `descripcion`, `codigo`, `created_at`, `updated_at`) VALUES
(1, 'Colera', 'A00', NULL, '2020-07-15 03:28:09'),
(2, 'Fiebre del dengue', 'A90', NULL, NULL),
(3, 'Angina de pecho', 'I20', NULL, NULL),
(4, 'Fiebres tifoidea y paratifoidea', 'A01', '2020-06-26 06:51:08', '2020-06-29 03:54:52'),
(5, 'Otras infecciones debidas a Salmonella', 'A02', '2020-06-26 06:51:08', '2020-06-26 06:51:08'),
(6, 'Apendicitis aguda', 'k35', '2020-07-13 00:32:14', '2020-07-13 00:32:14'),
(7, 'otras', 'k361', '2020-07-15 22:24:51', '2020-07-15 22:24:51'),
(8, 'cualquier cosa', 'a21', '2020-10-27 23:15:29', '2020-10-27 23:15:29'),
(11, 'asdf', 'a33', '2020-10-28 02:46:51', '2020-10-30 18:46:01'),
(12, 'asdsd', 'A91', '2020-10-29 19:31:48', '2020-10-30 14:11:40');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `codigostriage`
--
DROP TABLE IF EXISTS `codigostriage`;
CREATE TABLE IF NOT EXISTS `codigostriage` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`color` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`tiempo_espera` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `codigostriage`
--
INSERT INTO `codigostriage` (`id`, `created_at`, `updated_at`, `color`, `tiempo_espera`) VALUES
(1, NULL, NULL, 'verde', '120 min'),
(2, NULL, NULL, 'amarillo', '30 min'),
(3, NULL, NULL, 'rojo', '10 min');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `detalles_sintomas_protocolos`
--
DROP TABLE IF EXISTS `detalles_sintomas_protocolos`;
CREATE TABLE IF NOT EXISTS `detalles_sintomas_protocolos` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_protocolo` bigint(20) UNSIGNED NOT NULL,
`id_sintoma` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `detalles_sintomas_protocolos_id_protocolo_foreign` (`id_protocolo`),
KEY `detalles_sintomas_protocolos_id_sintoma_foreign` (`id_sintoma`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `detalles_sintomas_protocolos`
--
INSERT INTO `detalles_sintomas_protocolos` (`id`, `created_at`, `updated_at`, `id_protocolo`, `id_sintoma`) VALUES
(1, '2020-06-21 02:38:00', '2020-06-21 02:38:00', 24, 1),
(2, '2020-06-21 02:38:00', '2020-06-21 02:38:00', 24, 2),
(3, '2020-06-21 06:41:26', '2020-06-21 06:41:26', 25, 3),
(4, '2020-06-21 06:41:27', '2020-06-21 06:41:27', 25, 4),
(5, '2020-06-21 10:35:29', '2020-06-21 10:35:29', 26, 5),
(6, '2020-06-22 07:38:06', '2020-06-22 07:38:06', 27, 6),
(7, '2020-06-23 04:26:32', '2020-06-23 04:26:32', 28, 5),
(8, '2020-06-23 04:26:32', '2020-06-23 04:26:32', 28, 7),
(9, '2020-07-13 00:28:24', '2020-07-13 00:28:24', 29, 7),
(10, '2020-07-13 00:28:24', '2020-07-13 00:28:24', 29, 9),
(11, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 30, 1),
(12, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 30, 2),
(13, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 30, 3),
(14, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 30, 4),
(15, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 30, 5);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `detalle_atencion`
--
DROP TABLE IF EXISTS `detalle_atencion`;
CREATE TABLE IF NOT EXISTS `detalle_atencion` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_atencion` bigint(20) UNSIGNED NOT NULL,
`id_det_profesional_sala` bigint(20) UNSIGNED DEFAULT NULL,
`fecha` date NOT NULL,
`hora` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`id_especialidad` bigint(20) UNSIGNED NOT NULL,
`atendido` tinyint(1) NOT NULL,
`estado` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id_codigo_triage` bigint(20) UNSIGNED DEFAULT NULL,
`sala` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`operar` tinyint(1) NOT NULL DEFAULT '0',
`respuestas` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `detalle_atencion_id_atencion_foreign` (`id_atencion`),
KEY `detalle_atencion_id_det_profesional_sala_foreign` (`id_det_profesional_sala`),
KEY `detalle_atencion_id_especialidad_foreign` (`id_especialidad`)
) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `detalle_atencion`
--
INSERT INTO `detalle_atencion` (`id`, `created_at`, `updated_at`, `id_atencion`, `id_det_profesional_sala`, `fecha`, `hora`, `id_especialidad`, `atendido`, `estado`, `id_codigo_triage`, `sala`, `operar`, `respuestas`) VALUES
(132, '2020-08-04 03:50:19', '2020-08-04 20:46:57', 130, NULL, '2020-08-04', '17:46', 6, 1, 'Internado', 3, 'Box de varones', 0, NULL),
(133, '2020-08-04 04:45:17', '2020-08-04 04:46:18', 131, NULL, '2020-08-04', '01:46', 7, 1, 'Internar', 2, NULL, 0, NULL),
(134, '2020-08-04 18:51:09', '2020-08-04 18:51:09', 132, NULL, '2020-08-04', '15:51', 6, 0, 'consulta', 2, NULL, 0, NULL),
(135, '2020-08-04 19:18:46', '2020-08-04 21:15:50', 133, NULL, '2020-08-04', '18:15', 7, 1, 'alta', 1, NULL, 0, NULL),
(136, '2020-08-05 00:26:41', '2020-08-05 00:26:41', 134, NULL, '2020-08-04', '21:26', 7, 0, 'consulta', 3, NULL, 0, NULL),
(137, '2020-08-05 00:35:23', '2020-08-05 00:35:37', 135, NULL, '2020-08-04', '21:35', 5, 0, 'Operado', 3, '1', 0, NULL),
(138, '2020-08-18 22:26:54', '2020-08-18 22:26:54', 136, NULL, '2020-08-18', '22:26', 5, 0, 'consulta', 1, NULL, 0, NULL),
(139, '2020-08-18 19:41:51', '2020-08-18 19:41:51', 137, NULL, '2020-08-18', '19:41', 5, 0, 'consulta', 1, NULL, 0, NULL),
(141, '2020-09-18 12:59:43', '2020-09-18 12:59:43', 140, NULL, '2020-09-18', '12:59', 5, 0, 'consulta', 1, NULL, 0, NULL),
(142, '2020-09-18 13:01:29', '2020-09-18 13:01:29', 141, NULL, '2020-09-18', '13:01', 6, 0, 'consulta', 2, NULL, 0, NULL),
(143, '2020-10-21 01:43:22', '2020-11-03 19:59:26', 143, NULL, '2020-11-03', '16:59', 5, 0, 'Operado', 1, '3', 0, NULL),
(144, '2020-10-21 01:44:17', '2020-10-21 01:44:17', 144, NULL, '2020-10-20', '22:44', 5, 0, 'Operar', 1, NULL, 0, NULL),
(145, '2020-10-21 01:46:46', '2020-10-21 01:46:46', 145, NULL, '2020-10-20', '22:46', 5, 0, 'Operar', 1, NULL, 0, NULL),
(146, '2020-10-27 23:40:42', '2020-10-27 23:40:42', 148, NULL, '2020-10-27', '20:40', 5, 0, 'Operar', 1, NULL, 0, NULL),
(147, '2020-11-02 20:25:51', '2020-11-02 20:25:51', 149, NULL, '2020-11-02', '17:25', 6, 0, 'consulta', 2, NULL, 0, NULL),
(148, '2020-11-02 20:31:14', '2020-11-02 20:31:14', 150, NULL, '2020-11-02', '17:31', 7, 0, 'consulta', 2, NULL, 0, NULL),
(149, '2020-11-03 19:06:07', '2020-11-03 19:06:07', 151, NULL, '2020-11-03', '16:06', 7, 0, 'consulta', 2, NULL, 0, NULL);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `det_especialidad_area`
--
DROP TABLE IF EXISTS `det_especialidad_area`;
CREATE TABLE IF NOT EXISTS `det_especialidad_area` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_especialidad` bigint(20) UNSIGNED NOT NULL,
`id_area` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `det_especialidad_area_id_especialidad_foreign` (`id_especialidad`),
KEY `det_especialidad_area_id_area_foreign` (`id_area`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `det_especialidad_area`
--
INSERT INTO `det_especialidad_area` (`id`, `created_at`, `updated_at`, `id_especialidad`, `id_area`) VALUES
(16, '2020-11-01 03:00:00', '2020-11-01 03:00:00', 5, 5),
(17, '2020-11-01 03:00:00', '2020-11-01 03:00:00', 6, 6),
(18, '2020-11-01 03:00:00', '2020-11-01 03:00:00', 7, 7),
(19, '2020-11-01 03:00:00', '2020-11-01 03:00:00', 8, 8),
(20, '2020-11-01 03:00:00', '2020-11-01 03:00:00', 9, 7),
(21, '2020-11-03 20:33:29', '2020-11-03 20:33:29', 26, 7);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `det_profesionales`
--
DROP TABLE IF EXISTS `det_profesionales`;
CREATE TABLE IF NOT EXISTS `det_profesionales` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_profesional` bigint(20) UNSIGNED NOT NULL,
`id_especialidad` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `det_profesionales_id_profesional_foreign` (`id_profesional`),
KEY `det_profesionales_id_especialidad_foreign` (`id_especialidad`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `det_profesionales`
--
INSERT INTO `det_profesionales` (`id`, `created_at`, `updated_at`, `id_profesional`, `id_especialidad`) VALUES
(25, '2020-07-30 21:27:03', '2020-07-30 21:27:03', 18, 6),
(26, '2020-08-03 02:20:30', '2020-08-03 02:20:30', 19, 7);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `det_profesionales_salas`
--
DROP TABLE IF EXISTS `det_profesionales_salas`;
CREATE TABLE IF NOT EXISTS `det_profesionales_salas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_profesional` bigint(20) UNSIGNED NOT NULL,
`id_sala` bigint(20) UNSIGNED NOT NULL,
`disponibilidad` tinyint(1) NOT NULL,
PRIMARY KEY (`id`),
KEY `det_profesionales_salas_id_profesional_foreign` (`id_profesional`),
KEY `det_profesionales_salas_id_sala_foreign` (`id_sala`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `det_profesionales_salas`
--
INSERT INTO `det_profesionales_salas` (`id`, `created_at`, `updated_at`, `id_profesional`, `id_sala`, `disponibilidad`) VALUES
(16, '2020-08-03 02:07:43', '2020-08-05 00:31:51', 18, 8, 1),
(17, '2020-08-03 02:21:40', '2020-08-04 20:05:16', 19, 7, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `det_protocolos`
--
DROP TABLE IF EXISTS `det_protocolos`;
CREATE TABLE IF NOT EXISTS `det_protocolos` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_especialidad` bigint(20) UNSIGNED NOT NULL,
`id_protocolo` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `det_protocolos_id_especialidad_foreign` (`id_especialidad`),
KEY `det_protocolos_id_protocolo_foreign` (`id_protocolo`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `det_protocolos`
--
INSERT INTO `det_protocolos` (`id`, `created_at`, `updated_at`, `id_especialidad`, `id_protocolo`) VALUES
(1, NULL, NULL, 5, 24),
(2, NULL, NULL, 6, 25),
(3, NULL, NULL, 7, 27),
(4, '2020-07-15 02:51:33', '2020-07-15 02:51:33', 6, 30),
(5, '2020-07-15 03:00:17', '2020-07-15 03:00:17', 6, 31);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `especialidades`
--
DROP TABLE IF EXISTS `especialidades`;
CREATE TABLE IF NOT EXISTS `especialidades` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`nombre` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`descripcion` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `especialidades`
--
INSERT INTO `especialidades` (`id`, `created_at`, `updated_at`, `nombre`, `descripcion`) VALUES
(5, NULL, '2020-07-15 04:00:26', 'Oftalmologia', 'Problemas de ojos'),
(6, NULL, '2020-11-02 02:21:59', 'Clinico', 'a'),
(7, NULL, NULL, 'Cardiologia', 'asda'),
(8, '2020-07-15 03:44:45', '2020-07-15 03:44:45', 'Traumatologia', 'Dolores de espalda, huesos,etc'),
(9, '2020-07-15 04:10:30', '2020-07-15 04:10:30', 'Cirugia General', 'Se encarga de tal....'),
(26, '2020-11-03 20:33:29', '2020-11-03 20:33:29', 'borrar', 'sdfsd');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `failed_jobs`
--
DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE IF NOT EXISTS `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `historial`
--
DROP TABLE IF EXISTS `historial`;
CREATE TABLE IF NOT EXISTS `historial` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_cie` bigint(20) UNSIGNED DEFAULT NULL,
`descripcion` varchar(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`fecha` date NOT NULL,
`hora` time NOT NULL,
`id_detalle_atencion` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `historial_id_cie_foreign` (`id_cie`),
KEY `historial_id_detalle_atencion_foreign` (`id_detalle_atencion`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `historial`
--
INSERT INTO `historial` (`id`, `created_at`, `updated_at`, `id_cie`, `descripcion`, `fecha`, `hora`, `id_detalle_atencion`) VALUES
(70, '2020-08-04 04:44:15', '2020-08-04 04:44:15', 1, 'Colera', '2020-08-04', '01:44:00', 132),
(71, '2020-08-04 04:46:19', '2020-08-04 04:46:19', 3, 'nada grave', '2020-08-04', '01:46:00', 133),
(72, '2020-08-04 21:15:50', '2020-08-04 21:15:50', 6, 'nnn', '2020-08-04', '18:15:00', 135),
(73, '2020-08-05 00:35:23', '2020-08-05 00:35:23', 1, 'traumatismo', '2020-08-04', '21:35:00', 137),
(74, '2020-10-21 01:46:46', '2020-10-21 01:46:46', 1, 'asfd', '2020-10-20', '22:46:00', 145),
(75, '2020-10-27 23:40:43', '2020-10-27 23:40:43', 1, 'añlskdfsj', '2020-10-27', '20:40:00', 146);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `migrations`
--
DROP TABLE IF EXISTS `migrations`;
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2020_05_08_181340_create_cie_table', 1),
(2, '2020_05_13_220822_create_profesionales_table', 1),
(3, '2020_05_13_223404_create_salas_table', 1),
(4, '2020_05_13_232935_create_det_profesionales_salas_table', 1),
(5, '2020_05_14_034510_create_detalle_atencion_table', 1),
(6, '2020_05_19_221359_create_sintomas_table', 1),
(7, '2020_05_19_221526_create_detalles_sintomas_protocolos_table', 1),
(8, '2020_05_21_211227_create_preguntas_table', 1),
(13, '2020_06_20_224138_create_det_profesionales', 2),
(14, '2020_06_20_224337_create_table_profesionales_horarios', 2),
(15, '2020_06_20_224746_create_historial_table', 2),
(16, '2020_06_20_225234_create_table_det_protocolos', 2),
(17, '2020_06_21_021412_add_votes_to_detalle_atencion_table', 3),
(18, '2020_06_21_032838_add_votes_atendido_to_detalle_atencion_table', 4),
(19, '2020_06_21_044200_create_detalle_especialidad_area', 5),
(20, '2020_06_21_232605_add_estado_to_detalle_atencion_table', 6),
(21, '2020_06_21_234446_add_color_to_detalle_atencion_table', 7),
(22, '2020_06_22_031207_add_detalle_to_historial_table', 8),
(23, '2020_06_22_032013_add_detalle_to_historial_table', 9),
(24, '2020_06_22_032614_drop_ids_to_historial_table', 9),
(25, '2020_06_22_185513_add_sala_to_detalle_atencion_table', 10),
(26, '2020_06_22_185916_add_sala_to_detalle_atencion_table', 11),
(27, '2020_06_22_203043_del_sala_to_detalle_atencion_table', 12),
(28, '2020_06_22_203135_add_sala_to_detalle_atencion_table', 13),
(29, '2020_06_21_213946_create_failed_jobs_table', 14),
(30, '2020_06_21_213946_create_password_resets_table', 14),
(31, '2020_06_21_213946_create_roles_table', 14),
(32, '2020_06_21_213946_create_users_table', 14),
(33, '2020_06_24_024309_add_vote_id_profesional_to_table', 15),
(34, '2020_06_21_173808_add_votes_to_salas_table', 16),
(35, '2020_06_22_004740_add_color_to_detalle_atencion_table', 17),
(36, '2020_07_12_224914_add_operar_to_detalleatencion_table', 17),
(37, '2020_07_18_212532_add_preguntas_to_detalle_atencion_table', 18),
(38, '2020_07_28_141420_edit_foreign_key_from_det_profesionales', 19),
(39, '2020_07_29_113329_add_vote_estado_to_users', 20),
(40, '2020_07_30_163553_edit_foreign_key_from_det_profesionales_salas', 21),
(41, '2020_08_04_004410_drop_user_to_atencion_table', 22),
(42, '2020_08_04_004913_add_user_to_atencion_table', 23),
(43, '2020_08_08_194021_create_prueba_table', 24),
(44, '2020_10_16_233426_edit_foreign_key_from_det_protocolos', 25),
(45, '2020_10_22_172823_add_vote_fecha_nac_to_table_pacientes', 26),
(46, '2020_11_01_183508_change_vote_foreign_key_to_det_especialidad_area', 27);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pacientes`
--
DROP TABLE IF EXISTS `pacientes`;
CREATE TABLE IF NOT EXISTS `pacientes` (
`Paciente_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`dni` int(11) NOT NULL,
`nombre` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`apellido` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`telefono` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`fechaNac` date NOT NULL,
`sexo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`domicilio` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`Paciente_id`)
) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `pacientes`
--
INSERT INTO `pacientes` (`Paciente_id`, `dni`, `nombre`, `apellido`, `telefono`, `fechaNac`, `sexo`, `created_at`, `updated_at`, `domicilio`) VALUES
(1, 37190827, 'Alejandro', 'Gonzales', '1', '2020-10-01', 'Masculino', '2020-06-08 19:08:45', '2020-10-23 00:47:33', 'Acevedo 368'),
(3, 45678900, 'Cristian', 'Zalazar', '5678', '2020-07-20', 'Masculino', '2020-06-18 21:58:57', '2020-06-18 21:58:57', NULL),
(4, 39590140, 'Juan', 'Perez', '12341234', '2020-07-20', 'Masculino', '2020-06-19 02:18:17', '2020-06-19 02:18:17', NULL),
(5, 25063824, 'Elena', 'Zalazar', '3875154444', '2020-07-20', 'Femenino', '2020-06-21 02:24:55', '2020-06-21 02:24:55', 'Coronel vidt 2250'),
(6, 39590141, 'Cristian', 'Ven', '3875154444', '2020-07-20', 'Masculino', '2020-06-21 02:26:56', '2020-06-21 02:26:56', 'Coronel vidt 2250'),
(7, 39590143, 'test', 'test', '3875154444', '2020-07-20', 'Masculino', '2020-06-21 02:51:21', '2020-06-21 02:51:21', 'Coronel vidt 2250'),
(8, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-18 23:00:51', '2020-07-18 23:00:51', 'nn'),
(9, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:02:28', '2020-07-18 23:02:28', 'nn'),
(10, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:02:49', '2020-07-18 23:02:49', 'nn'),
(11, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:03:08', '2020-07-18 23:03:08', 'nn'),
(12, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:03:59', '2020-07-18 23:03:59', 'nn'),
(13, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:04:42', '2020-07-18 23:04:42', 'nn'),
(14, 0, 'nn', 'nn', '1', '2020-07-18', 'Masculino', '2020-07-18 23:07:31', '2020-07-18 23:07:31', 'nn'),
(15, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:26:51', '2020-07-20 08:26:51', 'nn'),
(16, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:30:36', '2020-07-20 08:30:36', 'nn'),
(17, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:38:31', '2020-07-20 08:38:31', 'nn'),
(18, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:40:17', '2020-07-20 08:40:17', 'nn'),
(19, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:41:45', '2020-07-20 08:41:45', 'nn'),
(20, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:42:55', '2020-07-20 08:42:55', 'nn'),
(21, 0, 'nn', 'nn', '1', '2020-07-20', 'Masculino', '2020-07-20 08:55:57', '2020-07-20 08:55:57', 'nn'),
(22, 42815935, 'Candela', 'Cardozo', '112312312', '2020-07-20', 'Femenino', '2020-07-23 00:08:58', '2020-07-23 00:08:58', 'limache'),
(23, 0, 'nn', 'nn', '1', '2020-07-22', 'Masculino', '2020-07-22 21:14:56', '2020-07-22 21:14:56', 'nn'),
(24, 0, 'nn', 'nn', '1', '2020-07-25', 'Masculino', '2020-07-25 21:25:57', '2020-07-25 21:25:57', 'nn'),
(25, 0, 'nn', 'nn', '1', '2020-07-30', 'Masculino', '2020-07-30 21:32:18', '2020-07-30 21:32:18', 'nn'),
(26, 0, 'nn', 'nn', '1', '2020-07-30', 'Masculino', '2020-07-30 21:35:59', '2020-07-30 21:35:59', 'nn'),
(27, 0, 'nn', 'nn', '1', '2020-07-31', 'Masculino', '2020-07-31 21:52:08', '2020-07-31 21:52:08', 'nn'),
(28, 0, 'nn', 'nn', '1', '2020-08-02', 'Masculino', '2020-08-03 02:27:46', '2020-08-03 02:27:46', 'nn'),
(29, 0, 'nn', 'nn', '1', '2020-08-04', 'Masculino', '2020-08-05 00:35:22', '2020-08-05 00:35:22', 'nn'),
(31, 39590142, 'prueba', 'prueba', '140', '2020-10-07', 'Masculino', '2020-10-21 01:24:37', '2020-10-21 01:24:37', 'Acevedo 368'),
(32, 0, 'nn', 'nn', '1', '2020-10-20', 'Masculino', '2020-10-21 01:43:22', '2020-10-21 01:43:22', 'nn'),
(33, 0, 'nn', 'nn', '1', '2020-10-20', 'Masculino', '2020-10-21 01:44:17', '2020-10-21 01:44:17', 'nn'),
(34, 0, 'nn', 'nn', '1', '2020-10-20', 'Masculino', '2020-10-21 01:46:46', '2020-10-21 01:46:46', 'nn'),
(35, 0, 'nn', 'nn', '1', '2020-10-27', 'Masculino', '2020-10-27 23:40:42', '2020-10-27 23:40:42', 'nn');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `password_resets`
--
DROP TABLE IF EXISTS `password_resets`;
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) CHARACTER SET utf8mb4 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;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `preguntas`
--
DROP TABLE IF EXISTS `preguntas`;
CREATE TABLE IF NOT EXISTS `preguntas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_atencion` bigint(20) UNSIGNED NOT NULL,
`id_sintoma` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `preguntas_id_atencion_foreign` (`id_atencion`),
KEY `preguntas_id_sintoma_foreign` (`id_sintoma`)
) ENGINE=InnoDB AUTO_INCREMENT=167 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `preguntas`
--
INSERT INTO `preguntas` (`id`, `created_at`, `updated_at`, `id_atencion`, `id_sintoma`) VALUES
(139, '2020-08-04 03:50:18', '2020-08-04 03:50:18', 130, 3),
(140, '2020-08-04 04:45:17', '2020-08-04 04:45:17', 131, 6),
(141, '2020-08-04 18:51:08', '2020-08-04 18:51:08', 132, 3),
(142, '2020-08-04 19:18:45', '2020-08-04 19:18:45', 133, 6),
(143, '2020-08-05 00:26:40', '2020-08-05 00:26:40', 134, 6),
(144, '2020-08-18 22:26:54', '2020-08-18 22:26:54', 136, 1),
(145, '2020-08-18 22:26:54', '2020-08-18 22:26:54', 136, 2),
(146, '2020-08-18 19:41:37', '2020-08-18 19:41:37', 137, 1),
(147, '2020-08-18 19:41:37', '2020-08-18 19:41:37', 137, 4),
(148, '2020-09-18 12:47:49', '2020-09-18 12:47:49', 138, 1),
(149, '2020-09-18 12:58:54', '2020-09-18 12:58:54', 139, 1),
(150, '2020-09-18 12:58:54', '2020-09-18 12:58:54', 139, 2),
(151, '2020-09-18 12:59:43', '2020-09-18 12:59:43', 140, 1),
(152, '2020-09-18 12:59:43', '2020-09-18 12:59:43', 140, 2),
(153, '2020-09-18 13:01:28', '2020-09-18 13:01:28', 141, 3),
(154, '2020-09-18 13:01:28', '2020-09-18 13:01:28', 141, 4),
(155, '2020-09-18 14:07:50', '2020-09-18 14:07:50', 142, 1),
(156, '2020-10-21 22:26:12', '2020-10-21 22:26:12', 146, 6),
(157, '2020-10-21 22:26:12', '2020-10-21 22:26:12', 146, 2),
(158, '2020-10-21 22:26:12', '2020-10-21 22:26:12', 146, 10),
(159, '2020-10-27 23:18:51', '2020-10-27 23:18:51', 147, 7),
(160, '2020-10-27 23:18:51', '2020-10-27 23:18:51', 147, 6),
(161, '2020-11-02 20:25:17', '2020-11-02 20:25:17', 149, 4),
(162, '2020-11-02 20:25:17', '2020-11-02 20:25:17', 149, 3),
(163, '2020-11-02 20:29:15', '2020-11-02 20:29:15', 150, 3),
(164, '2020-11-02 20:29:15', '2020-11-02 20:29:15', 150, 4),
(165, '2020-11-02 20:29:15', '2020-11-02 20:29:15', 150, 2),
(166, '2020-11-03 19:05:57', '2020-11-03 19:05:57', 151, 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `profesionales`
--
DROP TABLE IF EXISTS `profesionales`;
CREATE TABLE IF NOT EXISTS `profesionales` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`matricula` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`nombre` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`apellido` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`domicilio` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`disponibilidad` tinyint(1) NOT NULL,
`id_user` bigint(20) UNSIGNED NOT NULL,
PRIMARY KEY (`id`),
KEY `profesionales_id_user_foreign` (`id_user`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `profesionales`
--
INSERT INTO `profesionales` (`id`, `created_at`, `updated_at`, `matricula`, `nombre`, `apellido`, `domicilio`, `disponibilidad`, `id_user`) VALUES
(18, '2020-07-30 21:27:03', '2020-08-04 02:33:53', '1', 'juan', 'mendez', '<NAME>', 1, 18),
(19, '2020-08-03 02:20:30', '2020-08-04 21:37:51', '123', 'candela', 'cardozo', 'limache', 0, 23);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `profesionales_horarios`
--
DROP TABLE IF EXISTS `profesionales_horarios`;
CREATE TABLE IF NOT EXISTS `profesionales_horarios` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_profesional` bigint(20) UNSIGNED NOT NULL,
`hr_ini` time NOT NULL,
`hr_fin` time NOT NULL,
`dia` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `profesionales_horarios_id_profesional_foreign` (`id_profesional`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `protocolos`
--
DROP TABLE IF EXISTS `protocolos`;
CREATE TABLE IF NOT EXISTS `protocolos` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_codigo_triage` bigint(20) UNSIGNED NOT NULL,
`descripcion` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `protocolos_id_codigo_triage_foreign` (`id_codigo_triage`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `protocolos`
--
INSERT INTO `protocolos` (`id`, `created_at`, `updated_at`, `id_codigo_triage`, `descripcion`) VALUES
(24, '2020-06-21 02:38:00', '2020-06-21 02:38:00', 1, 'Primer protocolo'),
(25, '2020-06-21 06:41:26', '2020-06-21 06:41:26', 2, 'Segundo protocolo'),
(26, '2020-06-21 10:35:29', '2020-06-21 10:35:29', 1, 'Segundo protocolo'),
(27, '2020-06-22 07:38:06', '2020-06-22 07:38:06', 3, 'Cuarto protocolo'),
(28, '2020-06-23 04:26:32', '2020-06-23 04:26:32', 2, 'Dolores abdominales'),
(29, '2020-07-13 00:28:24', '2020-07-13 00:28:24', 3, 'Apendisiti'),
(30, '2020-07-15 02:51:32', '2020-07-15 02:51:32', 2, 'probando'),
(31, '2020-07-15 03:00:17', '2020-07-15 03:00:17', 2, 'probando2');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `pruebas`
--
DROP TABLE IF EXISTS `pruebas`;
CREATE TABLE IF NOT EXISTS `pruebas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`atributo` varchar(255) CHARACTER SET utf8mb4 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=9 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `pruebas`
--
INSERT INTO `pruebas` (`id`, `atributo`, `created_at`, `updated_at`) VALUES
(1, 'hola', NULL, NULL),
(2, 'khe', NULL, NULL),
(3, 'prr', NULL, NULL),
(4, 'nuevo', '2020-08-14 02:43:29', '2020-08-14 02:43:29'),
(5, 'nuevo', '2020-08-14 02:43:55', '2020-08-14 02:43:55'),
(6, 'nuevo', '2020-08-14 00:11:00', '2020-08-14 00:11:00'),
(7, 'nuevo', '2020-08-14 00:12:31', '2020-08-14 00:12:31'),
(8, 'nuevo', '2020-08-14 00:13:58', '2020-08-14 00:13:58');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `roles`
--
DROP TABLE IF EXISTS `roles`;
CREATE TABLE IF NOT EXISTS `roles` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`nombre` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `roles`
--
INSERT INTO `roles` (`id`, `created_at`, `updated_at`, `nombre`) VALUES
(1, '2020-07-27 01:01:42', '2020-07-27 01:01:48', 'Administrador'),
(2, '2020-07-27 01:01:15', '2020-07-27 01:01:15', 'Profesional');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `salas`
--
DROP TABLE IF EXISTS `salas`;
CREATE TABLE IF NOT EXISTS `salas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`id_area` bigint(20) UNSIGNED NOT NULL,
`disponibilidad` tinyint(1) NOT NULL,
`camas` int(11) NOT NULL,
`nombre` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`),
KEY `salas_id_area_foreign` (`id_area`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `salas`
--
INSERT INTO `salas` (`id`, `created_at`, `updated_at`, `id_area`, `disponibilidad`, `camas`, `nombre`) VALUES
(1, NULL, '2020-06-22 07:01:27', 5, 1, 0, '1'),
(2, NULL, '2020-10-29 21:35:26', 6, 0, 0, '1'),
(3, '2020-06-22 22:16:53', '2020-06-22 22:16:53', 7, 1, 20, 'Box de varones'),
(4, '2020-06-22 22:17:31', '2020-07-08 21:58:20', 7, 1, 20, 'Box de mujeres'),
(5, '2020-06-22 23:46:05', '2020-08-05 00:35:37', 8, 0, 0, '1'),
(6, '2020-06-22 23:46:15', '2020-08-04 05:18:59', 8, 0, 0, '2'),
(7, NULL, NULL, 6, 1, 0, '2'),
(8, NULL, NULL, 6, 1, 0, '3'),
(9, '2020-08-03 02:26:01', '2020-11-03 19:59:26', 8, 0, 1, '3');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `sintomas`
--
DROP TABLE IF EXISTS `sintomas`;
CREATE TABLE IF NOT EXISTS `sintomas` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`descripcion` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `sintomas`
--
INSERT INTO `sintomas` (`id`, `created_at`, `updated_at`, `descripcion`) VALUES
(1, '2020-06-21 02:29:17', '2020-06-21 02:29:17', 'Dolor en el ojo'),
(2, '2020-06-21 02:29:17', '2020-06-21 02:29:17', 'Picazon en el ojo'),
(3, '2020-06-21 06:41:05', '2020-06-21 06:41:05', 'Fiebre'),
(4, '2020-06-21 06:41:06', '2020-06-21 06:41:06', 'Dolor de cabeza'),
(5, '2020-06-21 10:35:14', '2020-06-21 10:35:14', 'dolor de estomago'),
(6, '2020-06-22 07:37:51', '2020-06-22 07:37:51', 'Dolor del corazon'),
(7, '2020-06-23 04:25:58', '2020-06-23 04:25:58', 'Nauseas'),
(9, '2020-07-13 00:27:59', '2020-07-13 00:27:59', 'dolor en el fosa iliaca derecha'),
(10, '2020-07-27 03:11:58', '2020-07-27 03:11:58', 'vómito');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`id_rol` bigint(20) UNSIGNED NOT NULL,
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`estado` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `users_username_unique` (`username`),
UNIQUE KEY `users_email_unique` (`email`),
KEY `users_id_rol_foreign` (`id_rol`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `email`, `email_verified_at`, `password`, `id_rol`, `remember_token`, `created_at`, `updated_at`, `estado`) VALUES
(1, 'Alejandro', 'admin', '<EMAIL>', NULL, '$2y$10$QrgZh2BXR8OEJ3YlM8bNi.ybFld2T4sSYsnHpuLDb9pYFTdd/jzLm', 1, NULL, '2020-07-30 16:45:16', '2020-07-30 16:45:16', 1),
(17, 'cristian', 'cristian', '<EMAIL>', NULL, '$2y$10$3vsMH.mR2Teiy7ppaGuCH.ANcQlEz2QBJTYsbeLd6DGKh4xdM4UoO', 1, NULL, '2020-07-30 21:20:32', '2020-07-30 21:20:32', 1),
(18, 'probando', 'probando', '<EMAIL>', NULL, '$2y$10$AS9nnU8t6cok8MRrbP2It.7c0pT860KuR4Xl6C6MOcEXB1J7kfMaS', 2, NULL, '2020-07-30 21:21:56', '2020-07-30 21:21:56', 1),
(19, 'probando2', 'probando2', '<EMAIL>', NULL, '$2y$10$QFSuflwPEpWF/XBF5iGVpO/9BdHeH7urhz2OM3nZqatDmnKcoojbO', 2, NULL, '2020-07-30 22:49:29', '2020-07-30 22:49:29', 0),
(20, 'doctor', 'doctor', '<EMAIL>', NULL, '$2y$10$nn1BAYzKaW4A8sHS74Ln1elh7zKpywgAhSvUuomVcwFZwDL/g0Oh.', 2, NULL, '2020-08-03 02:11:43', '2020-08-03 02:11:43', 0),
(21, 'doctor', 'doctor1', '<EMAIL>', NULL, '$2y$10$J72h4MM2h6Uk86K9PJg0cuAkjChsp5SraE5L7zNZnqOrqeuBYR8ea', 2, NULL, '2020-08-03 02:12:30', '2020-08-03 02:12:30', 0),
(22, 'doctor', 'doctor3', '<EMAIL>', NULL, '$2y$10$0f6sWA7BHcgPqK5YaE65tOGcCX0msbqyNqUEG8YPgxCgd/MjAVZjK', 2, NULL, '2020-08-03 02:14:39', '2020-08-03 02:14:39', 0),
(23, 'candela', 'candela', '<EMAIL>', NULL, '$2y$10$FzHAxnphNBG5u1g0V3/IZ.QAx5e8K7V0Z/lqfeMjurUjWtxEkjEDe', 2, NULL, '2020-08-03 02:18:27', '2020-08-03 02:19:03', 1);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `usuarios`
--
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE IF NOT EXISTS `usuarios` (
`usuario_id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT,
`usuario` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`usuario_id`),
UNIQUE KEY `usuarios_usuario_unique` (`usuario`),
UNIQUE KEY `usuarios_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Volcado de datos para la tabla `usuarios`
--
INSERT INTO `usuarios` (`usuario_id`, `usuario`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'borrar', '<EMAIL>', NULL, '12345678', NULL, NULL, NULL);
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `atencion`
--
ALTER TABLE `atencion`
ADD CONSTRAINT `atencion_id_procotocolo_foreign` FOREIGN KEY (`id_protocolo`) REFERENCES `protocolos` (`id`),
ADD CONSTRAINT `atencion_paciente_id_foreign` FOREIGN KEY (`Paciente_id`) REFERENCES `pacientes` (`Paciente_id`),
ADD CONSTRAINT `atencion_usuario_id_foreign` FOREIGN KEY (`usuario_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `detalles_sintomas_protocolos`
--
ALTER TABLE `detalles_sintomas_protocolos`
ADD CONSTRAINT `detalles_sintomas_protocolos_id_protocolo_foreign` FOREIGN KEY (`id_protocolo`) REFERENCES `protocolos` (`id`),
ADD CONSTRAINT `detalles_sintomas_protocolos_id_sintoma_foreign` FOREIGN KEY (`id_sintoma`) REFERENCES `sintomas` (`id`);
--
-- Filtros para la tabla `detalle_atencion`
--
ALTER TABLE `detalle_atencion`
ADD CONSTRAINT `detalle_atencion_id_atencion_foreign` FOREIGN KEY (`id_atencion`) REFERENCES `atencion` (`id`),
ADD CONSTRAINT `detalle_atencion_id_det_profesional_sala_foreign` FOREIGN KEY (`id_det_profesional_sala`) REFERENCES `det_profesionales_salas` (`id`),
ADD CONSTRAINT `detalle_atencion_id_especialidad_foreign` FOREIGN KEY (`id_especialidad`) REFERENCES `especialidades` (`id`);
--
-- Filtros para la tabla `det_especialidad_area`
--
ALTER TABLE `det_especialidad_area`
ADD CONSTRAINT `det_especialidad_area_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `det_especialidad_area_id_especialidad_foreign` FOREIGN KEY (`id_especialidad`) REFERENCES `especialidades` (`id`) ON DELETE CASCADE;
--
-- Filtros para la tabla `det_profesionales`
--
ALTER TABLE `det_profesionales`
ADD CONSTRAINT `det_profesionales_id_especialidad_foreign` FOREIGN KEY (`id_especialidad`) REFERENCES `especialidades` (`id`),
ADD CONSTRAINT `det_profesionales_id_profesional_foreign` FOREIGN KEY (`id_profesional`) REFERENCES `profesionales` (`id`) ON DELETE CASCADE;
--
-- Filtros para la tabla `det_profesionales_salas`
--
ALTER TABLE `det_profesionales_salas`
ADD CONSTRAINT `det_profesionales_salas_id_profesional_foreign` FOREIGN KEY (`id_profesional`) REFERENCES `profesionales` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `det_profesionales_salas_id_sala_foreign` FOREIGN KEY (`id_sala`) REFERENCES `salas` (`id`);
--
-- Filtros para la tabla `det_protocolos`
--
ALTER TABLE `det_protocolos`
ADD CONSTRAINT `det_protocolos_id_protocolo_foreign` FOREIGN KEY (`id_protocolo`) REFERENCES `protocolos` (`id`) ON DELETE CASCADE;
--
-- Filtros para la tabla `historial`
--
ALTER TABLE `historial`
ADD CONSTRAINT `historial_id_cie_foreign` FOREIGN KEY (`id_cie`) REFERENCES `cie` (`id`),
ADD CONSTRAINT `historial_id_detalle_atencion_foreign` FOREIGN KEY (`id_detalle_atencion`) REFERENCES `detalle_atencion` (`id`);
--
-- Filtros para la tabla `preguntas`
--
ALTER TABLE `preguntas`
ADD CONSTRAINT `preguntas_id_atencion_foreign` FOREIGN KEY (`id_atencion`) REFERENCES `atencion` (`id`),
ADD CONSTRAINT `preguntas_id_sintoma_foreign` FOREIGN KEY (`id_sintoma`) REFERENCES `sintomas` (`id`);
--
-- Filtros para la tabla `profesionales`
--
ALTER TABLE `profesionales`
ADD CONSTRAINT `profesionales_id_user_foreign` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Filtros para la tabla `profesionales_horarios`
--
ALTER TABLE `profesionales_horarios`
ADD CONSTRAINT `profesionales_horarios_id_profesional_foreign` FOREIGN KEY (`id_profesional`) REFERENCES `profesionales` (`id`);
--
-- Filtros para la tabla `protocolos`
--
ALTER TABLE `protocolos`
ADD CONSTRAINT `protocolos_id_codigo_triage_foreign` FOREIGN KEY (`id_codigo_triage`) REFERENCES `codigostriage` (`id`);
--
-- Filtros para la tabla `salas`
--
ALTER TABLE `salas`
ADD CONSTRAINT `salas_id_area_foreign` FOREIGN KEY (`id_area`) REFERENCES `areas` (`id`);
--
-- Filtros para la tabla `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_id_rol_foreign` FOREIGN KEY (`id_rol`) REFERENCES `roles` (`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 */;
|
-- phpMyAdmin SQL Dump
-- version 4.9.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 29-Set-2021 às 01:00
-- Versão do servidor: 10.4.10-MariaDB
-- versão do PHP: 7.3.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Banco de dados: `marketplace`
--
-- --------------------------------------------------------
--
-- Estrutura da tabela `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `categories`
--
INSERT INTO `categories` (`id`, `name`, `description`, `slug`, `created_at`, `updated_at`) VALUES
(1, 'Informática', 'Insumos para informática', 'informatica', '2021-09-22 22:43:08', '2021-09-22 22:43:08'),
(2, 'Acessórios', 'produtos e acessórios femininos', 'acessorios', '2021-09-22 22:44:25', '2021-09-22 22:44:25'),
(3, 'Games', 'Produtos e acessórios para games', 'games', '2021-09-22 22:44:37', '2021-09-22 22:45:23'),
(4, 'Fotografia', 'Produtos e acessórios para fotografia', 'fotografia', '2021-09-22 22:46:22', '2021-09-22 22:46:22');
-- --------------------------------------------------------
--
-- Estrutura da tabela `category_product`
--
CREATE TABLE `category_product` (
`product_id` bigint(20) UNSIGNED NOT NULL,
`category_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `category_product`
--
INSERT INTO `category_product` (`product_id`, `category_id`) VALUES
(41, 2),
(41, 4);
-- --------------------------------------------------------
--
-- Estrutura da tabela `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;
-- --------------------------------------------------------
--
-- Estrutura da tabela `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;
--
-- Extraindo dados da tabela `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(27, '2014_10_12_000000_create_users_table', 1),
(28, '2014_10_12_100000_create_password_resets_table', 1),
(29, '2019_08_19_000000_create_failed_jobs_table', 1),
(30, '2021_03_04_185844_create_table_store', 1),
(31, '2021_03_04_191802_create_products_table', 1),
(32, '2021_04_15_133435_create_categories_table', 1),
(33, '2021_04_15_134702_create_category_product_table', 1),
(34, '2021_07_22_183825_create_product_photos_table', 1),
(35, '2021_07_22_184003_alter_table_stores_add_column_logo', 1),
(36, '2021_08_09_235243_create_user_orders_table', 1),
(37, '2021_08_18_190703_create_order_store_table', 1),
(38, '2021_08_27_193639_create_notifications_table', 1),
(39, '2021_09_13_132853_alter_user_table', 1);
-- --------------------------------------------------------
--
-- Estrutura da tabela `notifications`
--
CREATE TABLE `notifications` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` bigint(20) UNSIGNED NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `notifications`
--
INSERT INTO `notifications` (`id`, `type`, `notifiable_type`, `notifiable_id`, `data`, `read_at`, `created_at`, `updated_at`) VALUES
('059fbfde-e1f6-40f1-a60d-31464620231b', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 39, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-23 16:57:34', '2021-09-23 16:57:34'),
('0b6f455b-a532-41d7-8a60-2f5523da75c1', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 38, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-23 16:57:34', '2021-09-23 16:57:34'),
('0cee923c-a002-4c82-bb68-997dd59b233e', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:11:50', '2021-09-15 02:11:50'),
('15accdc0-9e15-404b-b43c-8d0b0aec88af', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 41, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-23 16:20:32', '2021-09-23 16:20:32'),
('17664ade-2b2c-476a-ae88-18ff6a37e83a', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:03:11', '2021-09-20 21:03:11'),
('1f09f15e-a546-4dfb-8a48-dfe6528f46da', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:02:04', '2021-09-20 21:02:04'),
('32eb346f-4a3b-4060-a0b1-dbce95206668', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 39, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-17 16:47:00', '2021-09-17 16:47:00'),
('37db52ee-c362-4927-949d-694cec81b378', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:19:55', '2021-09-15 02:19:55'),
('3f193107-7b12-48b0-83e0-67620c945df9', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 37, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-17 18:02:31', '2021-09-17 18:02:31'),
('47836410-d0db-4dee-8f54-e64909afdfaf', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 39, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-17 16:47:33', '2021-09-17 16:47:33'),
('4d5c3619-48ee-4378-b30d-e09ca85b5f0f', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-23 16:57:34', '2021-09-23 16:57:34'),
('62fc1b55-58e9-4ca9-b750-56791a0b2495', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:01:13', '2021-09-20 21:01:13'),
('66771da5-7128-454d-8e5f-fb8d5e07513d', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 41, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-23 16:57:35', '2021-09-23 16:57:35'),
('6a8967f8-4747-4171-9178-5c98749f9710', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 39, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:10:59', '2021-09-15 02:10:59'),
('6d3684da-1f96-4b99-a213-31c37d48c07f', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 38, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 18:02:36', '2021-09-20 18:02:36'),
('82e0ef26-7714-44eb-b8c0-2c1b751f971a', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 38, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 17:42:17', '2021-09-20 17:42:17'),
('940e263a-7ff5-4cc0-86f2-39d810fe0740', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 38, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-17 16:28:03', '2021-09-17 16:28:03'),
('b56c46be-c256-4dd8-96af-1d9cbbd8cd36', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:31:27', '2021-09-20 21:31:27'),
('c7981631-e4ab-4470-b06b-d44f24ab4a20', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:19:05', '2021-09-15 02:19:05'),
('ca7ef8f8-36fd-412c-a4aa-cb86c4e8148c', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 38, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 17:55:00', '2021-09-20 17:55:00'),
('cc9ec862-b07d-4989-b4a3-20e66761269e', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:12:28', '2021-09-15 02:12:28'),
('e7cfafbf-5d3d-484b-8ad5-8f51b2533c7b', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:29:46', '2021-09-20 21:29:46'),
('eb98e3c3-ac1f-4e8b-8048-8f17be812d36', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 36, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-20 21:06:29', '2021-09-20 21:06:29'),
('ef825800-1e5a-4b6c-a6c4-7d8ec7055490', 'App\\Notifications\\StoreReceiveNewOrder', 'App\\User', 40, '{\"message\":\"Voc\\u00ea t\\u00eam um novo pedido solicitado!\"}', NULL, '2021-09-15 02:18:31', '2021-09-15 02:18:31');
-- --------------------------------------------------------
--
-- Estrutura da tabela `order_store`
--
CREATE TABLE `order_store` (
`store_id` bigint(20) UNSIGNED NOT NULL,
`order_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `order_store`
--
INSERT INTO `order_store` (`store_id`, `order_id`) VALUES
(39, 1),
(40, 1),
(40, 2),
(40, 3),
(40, 4),
(40, 5),
(40, 6),
(38, 7),
(39, 8),
(39, 9),
(37, 10),
(38, 11),
(38, 12),
(38, 13),
(36, 14),
(36, 15),
(36, 16),
(36, 17),
(36, 18),
(36, 19),
(41, 20),
(41, 21),
(40, 21),
(39, 21),
(38, 21);
-- --------------------------------------------------------
--
-- Estrutura da tabela `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;
-- --------------------------------------------------------
--
-- Estrutura da tabela `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`store_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`body` text COLLATE utf8mb4_unicode_ci NOT NULL,
`price` decimal(15,2) NOT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `products`
--
INSERT INTO `products` (`id`, `store_id`, `name`, `description`, `body`, `price`, `slug`, `created_at`, `updated_at`) VALUES
(1, 1, 'Ms. <NAME>', 'Vel architecto ut delectus quidem nobis.', 'Amet enim maxime ad non voluptas. Ab a dolores omnis. Suscipit distinctio quasi veniam aut ut rerum ipsum quia. Accusantium animi maiores labore illum sunt. Laudantium non dolore voluptas. Aliquam impedit quaerat voluptatem numquam sint.', '5.46', 'ad-quasi-perferendis-quod-nemo-cum-dolores-quidem-et', '2021-09-15 02:08:55', '2021-09-15 02:08:55'),
(2, 2, '<NAME> PhD', 'Ducimus eaque ut sit quae.', 'Delectus consequatur sed veniam enim. Est ipsa doloremque sequi cumque dignissimos quod amet. Cumque id et velit qui autem. Nulla in in suscipit voluptatem tenetur ipsa. Quos sint distinctio modi soluta sapiente et temporibus.', '9.46', 'iste-est-explicabo-eos-tempora-pariatur-exercitationem', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(3, 3, '<NAME> V', 'Cumque itaque tenetur praesentium et officiis cum dolor.', 'Aliquam nesciunt quia voluptatem nulla modi veritatis incidunt. Voluptatem reiciendis assumenda iste maiores quo. Est vel dicta fugiat harum laborum. Recusandae labore aperiam voluptatibus fugit consequatur. Consectetur mollitia architecto occaecati pariatur asperiores dolorem voluptatem doloribus. Sequi dolor nam quis rerum nihil blanditiis.', '1.11', 'maiores-aperiam-unde-neque-corporis-magni-voluptatem-expedita', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(4, 4, '<NAME>', 'Sunt laudantium est eos sit.', 'Iusto magnam hic deserunt repellendus. Non sit ipsa et sed accusantium soluta nihil. Delectus esse rerum at. Et expedita sapiente nobis non. Dolor assumenda deserunt molestiae facilis nam et est. Ducimus dolore aliquid assumenda.', '9.53', 'ea-deleniti-in-sint-reiciendis-aut-suscipit', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(5, 5, 'Mr. <NAME> III', 'Aliquam fugiat rerum doloremque rem.', 'Fuga cumque adipisci aperiam est tempore inventore. Ratione perspiciatis soluta perspiciatis. Non laboriosam et voluptatem eveniet sunt quaerat explicabo. Et hic et facere voluptatem a quisquam iste. Voluptatum quia qui eius dolore ullam necessitatibus et. Nesciunt consequatur accusamus quis in ab impedit.', '5.31', 'consectetur-dolorem-porro-ipsa-quia', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(6, 6, '<NAME>', 'Aliquam iure sunt est minima.', 'In exercitationem libero et blanditiis quia consequatur beatae. Error atque voluptatem quo voluptas. Assumenda sed molestiae rerum dolorem odio saepe. Earum rerum quia quam et eaque reprehenderit qui. Sapiente fugit quibusdam nesciunt impedit. Et sit laborum hic eum voluptatem.', '4.34', 'consequatur-quam-recusandae-sed-veritatis-ipsam-voluptatibus-consequatur', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(7, 7, '<NAME>', 'Excepturi voluptatem laborum ab sit temporibus qui labore.', 'Doloremque vitae et et. In odit quod ex qui. Sunt explicabo doloribus facere est sint odio sed. Itaque id unde qui aut. Sint molestias unde voluptas saepe excepturi dolor. Modi quibusdam omnis qui temporibus beatae assumenda cupiditate.', '5.77', 'quo-at-consectetur-et-illum-soluta-minus-maxime', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(8, 8, '<NAME>', 'Et cum pariatur vel cumque.', 'Suscipit error officia voluptatum. Dolorum esse voluptatum autem possimus rerum a. Rerum magni nostrum numquam et eum hic autem. Sequi commodi aut assumenda itaque laudantium. Molestias necessitatibus nulla sint voluptates officia. Omnis eum quas odio odio.', '8.34', 'eos-sed-iusto-facere-quaerat-itaque', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(9, 9, 'Dr. <NAME>', 'Molestiae modi ipsam sit eos impedit soluta omnis.', 'Quia quisquam sint alias ipsa iusto. Rerum nulla est amet ut. Enim sed voluptas eum veniam repudiandae amet enim. Similique asperiores culpa recusandae dolore ut praesentium pariatur.', '9.81', 'beatae-nulla-velit-expedita-est', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(10, 10, '<NAME>', 'Ipsam illum esse odit voluptas occaecati dolorem inventore totam.', 'Ea facere ut adipisci consequatur distinctio. Non fugiat blanditiis distinctio aliquid non. Et fuga soluta corporis vitae. Harum nobis ducimus quia sed voluptatum voluptas.', '3.91', 'quos-fugit-eos-ab', '2021-09-15 02:08:56', '2021-09-15 02:08:56'),
(11, 11, '<NAME>', 'Hic voluptatem doloribus eveniet.', 'Architecto quos voluptas aut quia officia est dolorem sit. Et in rerum natus quaerat suscipit. Dolorem nisi qui quam nam ea at eligendi. Facere libero accusantium quo non ut soluta. Est assumenda facilis quasi commodi quis dolorum aut.', '9.10', 'quia-quia-molestiae-vel-voluptate-veritatis-ut-id', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(12, 12, '<NAME>', 'Nihil velit enim necessitatibus nihil autem.', 'Et quia dolore fugit velit et magnam consequuntur dicta. Qui in accusamus est accusantium. Asperiores suscipit temporibus facere labore qui. Et cum voluptatem deleniti voluptatibus molestiae inventore. Et nobis sed numquam architecto error.', '9.57', 'est-repellendus-voluptatem-necessitatibus-et-eaque-voluptates', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(13, 13, '<NAME>', 'Ipsa aut molestiae voluptatem aut vero.', 'Aliquid non in est at rerum quos eum. Doloribus voluptas et excepturi aut at tenetur ducimus. Rerum enim eum quia exercitationem quam consequatur ut ea. Facilis accusamus asperiores eaque tempora. Animi qui est consequuntur et id sit.', '3.74', 'aut-non-repellat-aut-qui-unde-aut-deleniti', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(14, 14, '<NAME>', 'Velit laudantium non reiciendis doloribus minus.', 'Cumque ea nemo consequatur id quae. Dignissimos sunt voluptate et ducimus. Et qui velit odit dignissimos atque. Nostrum tempore neque necessitatibus aut. Dolores blanditiis laborum voluptatum aut ab.', '2.62', 'sint-cumque-consequatur-sed-consequatur-porro-ut-sapiente-voluptatum', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(15, 15, 'Mr. <NAME> I', 'Tempore et ab eaque ea.', 'Numquam aut ipsum ipsa est quia. Assumenda voluptas in debitis excepturi quam rem. Ipsam qui est temporibus officiis. Est perferendis consequuntur id consequatur in praesentium. Ut harum fugiat qui voluptatum libero sed.', '9.02', 'repellendus-enim-cum-ad-facere-quasi', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(16, 16, '<NAME>', 'Dolor commodi vel laborum nobis ipsum et animi.', 'Sunt occaecati officia velit dolor nostrum hic sit. Autem molestias cupiditate ut. Nihil minus placeat nesciunt dolores nesciunt. Sit nesciunt illo cum. Debitis ducimus pariatur non velit. Et qui pariatur labore itaque ad nam.', '2.26', 'reiciendis-quia-vitae-et-quaerat-id', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(17, 17, '<NAME>', 'Quas odit nesciunt sed ullam enim et.', 'Esse repellendus quibusdam et voluptatibus corporis. Qui eaque cupiditate ut et alias. Perspiciatis animi inventore blanditiis id totam autem a. Qui optio cumque culpa rem vel aperiam. Consectetur totam expedita impedit quod.', '2.75', 'non-et-iste-eveniet-et-quo-repellat-iusto', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(18, 18, '<NAME>', 'Fugiat voluptas quia in aut doloremque inventore et.', 'Vero velit voluptatibus a in esse ut dolor. Nihil et veritatis sed nobis quos ut. Illum et consequatur pariatur laboriosam ut sed nam. Non voluptas molestias quod iusto aspernatur fugit aut.', '9.45', 'voluptas-deleniti-quam-nobis-quas-nihil-commodi-qui', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(19, 19, 'Dr. <NAME>', 'Quisquam neque eius sit ad quam.', 'Consequatur repellat ipsum voluptatem nihil. Debitis doloribus voluptatem sunt. Qui voluptate quia ut eos ducimus. Sed aspernatur tempora neque ut molestiae iusto et. Doloremque magnam laudantium sunt autem eos aut.', '2.51', 'autem-nihil-eveniet-possimus', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(20, 20, '<NAME>', 'Vel a illo consectetur repellendus sit debitis.', 'Amet tempora dolores quam dolores. Unde eligendi in porro voluptatem. Est modi in quis autem rerum. Quo quidem est nisi unde aut deleniti quia.', '4.54', 'magni-quod-non-modi-voluptatem-officiis', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(21, 21, 'Mr. <NAME> DDS', 'Ut itaque mollitia similique facere magnam.', 'Nihil et fugiat at accusamus nostrum non. Rem velit et eaque. Laboriosam pariatur ipsum expedita exercitationem voluptatum. Dolores dolor reiciendis maxime excepturi. Voluptatum necessitatibus magnam molestiae enim vel. Dolores vel quam qui accusantium atque.', '7.06', 'et-deleniti-nostrum-sed-excepturi-dolor', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(22, 22, 'Dr. <NAME> MD', 'Perferendis enim doloremque cum omnis inventore ipsa.', 'Qui iusto est dolore autem qui cum. Sunt voluptas est qui quo assumenda cum. Et sunt necessitatibus omnis alias esse quisquam. Labore et veritatis nobis iste.', '5.48', 'error-quam-reiciendis-excepturi-reprehenderit-libero-ad-vel-molestiae', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(23, 23, '<NAME>', 'Dolore nihil vel fugit ipsa unde.', 'Non et ducimus distinctio ullam et. Corporis molestiae quia ex. Sed voluptatem voluptas cum inventore dolore excepturi voluptates. Ut repudiandae et doloribus quas aut ad ipsa.', '3.94', 'ducimus-incidunt-nulla-error-omnis', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(24, 24, '<NAME> MD', 'Quaerat quas laudantium sunt et quia.', 'Consequatur consectetur ut dolor. Optio nihil fuga voluptatem occaecati impedit. Beatae veniam alias doloremque iusto neque quidem aspernatur. Cupiditate consectetur voluptatem provident. Sequi enim eligendi et officia voluptatibus molestiae et.', '9.87', 'aut-at-doloremque-architecto-vel-rem', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(25, 25, '<NAME> I', 'Quam occaecati et nemo aut quo molestiae laudantium.', 'Sit voluptas molestiae vel maiores qui. Molestias consequuntur officia quia placeat officiis. Laboriosam et natus natus facilis in nihil. Sunt molestiae dignissimos quis debitis. Ut eum aspernatur ut est mollitia omnis vel.', '4.23', 'vitae-optio-numquam-aut-adipisci-iste-tempore-rerum-consequuntur', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(26, 26, 'Mrs. <NAME>', 'Accusantium iste adipisci corrupti repellendus voluptas delectus eaque.', 'Tenetur recusandae ut quod debitis nihil dolorem. Eum sed recusandae excepturi dolores eum. Quae harum fugiat tenetur quia deleniti. Unde voluptatem quibusdam mollitia. Quia fuga cumque harum.', '1.95', 'a-esse-ratione-magni-perferendis-quia-fugiat-sed-eligendi', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(27, 27, '<NAME>', 'Consequuntur distinctio ratione eum neque et.', 'Illo ut ullam ex et est et consequatur. Voluptatem minus dignissimos ut fugiat inventore minima temporibus. A et earum qui quia eos non voluptates. Et atque odio assumenda. Omnis libero corporis itaque voluptatem sit vel.', '1.35', 'tempore-delectus-in-dolorum-dolorem-ipsum', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(28, 28, 'Miss <NAME>', 'Cumque vel corporis est et dolorem suscipit recusandae dolorem.', 'Possimus laborum quidem est consectetur commodi. Officia neque quas quia. Cumque quia rerum quaerat accusantium. Temporibus et laborum distinctio voluptas aut totam.', '8.19', 'sed-repellat-temporibus-et-facilis-consectetur-dolorem-vel', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(29, 29, '<NAME> PhD', 'Iste amet eos qui.', 'Autem quis est fuga laudantium omnis consequatur. Maiores possimus possimus voluptas adipisci veritatis repellendus autem. Totam laudantium magni a assumenda explicabo. Cum amet est dolor dolorum. Minus necessitatibus ad asperiores omnis quas rerum.', '4.09', 'aliquam-aliquam-itaque-blanditiis', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(30, 30, '<NAME>', 'Deleniti repudiandae perferendis non unde ducimus voluptas.', 'Quas eum beatae atque incidunt possimus. Debitis dolorum porro voluptatem dolore. Explicabo rerum quo inventore ex. Impedit doloribus fugiat et quam. Aut vel perspiciatis sed culpa a quidem iusto. Quidem deserunt magni esse.', '5.24', 'dolores-a-iusto-rerum-assumenda-deleniti-officia', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(31, 31, '<NAME>', 'Tempore quidem odio totam ex consequuntur.', 'Distinctio ipsum perspiciatis omnis. Vitae libero dignissimos laborum asperiores. Soluta aspernatur consequatur explicabo voluptas. Fugiat odio iste qui et harum quia est maxime. Qui quis sunt recusandae qui dolorem aspernatur.', '7.39', 'rerum-neque-neque-odit-dolores', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(32, 32, '<NAME>', 'Earum deleniti rerum accusantium totam iusto sit.', 'Ut cum sint pariatur aliquam ut. Aperiam rerum provident reiciendis praesentium. Adipisci rerum optio libero qui inventore. Omnis inventore sunt voluptate quos. Nostrum similique ut laboriosam omnis. Aliquam laborum quaerat quod nemo ut.', '7.64', 'in-quia-modi-distinctio-ea', '2021-09-15 02:08:57', '2021-09-15 02:08:57'),
(33, 33, 'Prof. <NAME>', 'Ex unde atque recusandae quis qui rem commodi.', 'Sed quia qui nihil aut id nihil. Sit aut odio distinctio assumenda incidunt autem. Aspernatur error velit eveniet minima qui corporis. Enim voluptas voluptatem possimus hic repellendus et inventore. Quod aut doloremque ratione.', '1.15', 'delectus-porro-sit-qui-velit-doloribus-voluptate', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(34, 34, '<NAME>', 'Rem nihil a rerum fugiat voluptas voluptatibus ipsa.', 'Recusandae inventore possimus ea molestias iure itaque dolor ut. Voluptatem et accusantium voluptate similique quia ea. Quod dolorum eum debitis fugit qui rerum. Rem est repellat possimus eveniet fugit nam molestiae. Et officiis tempora quas laboriosam similique est eum. Assumenda ut facilis debitis esse eaque reprehenderit. Sint laborum nisi sunt iure animi ducimus itaque.', '8.78', 'quia-maxime-aut-quibusdam-sunt-eos-corporis', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(35, 35, '<NAME>', 'Maiores facere corrupti itaque sed voluptatem nemo inventore porro.', 'Eaque ipsum saepe magnam voluptates. Ut beatae quisquam dolor. Numquam optio incidunt sint eum veritatis. Sequi ab neque vitae quo et. Sed sit provident ut. Doloribus sit distinctio enim. Officiis quia possimus neque quidem qui laborum id odit.', '3.62', 'esse-modi-quibusdam-qui-facere-esse-eum', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(36, 36, 'Prof. <NAME>', 'Quia mollitia possimus quo minus sed.', 'In impedit aliquam voluptatum sed nobis consequuntur. Quasi quos consectetur quae qui repudiandae qui. Qui distinctio occaecati in laudantium expedita ex porro. Quia nihil asperiores quae sint rerum sit. Omnis accusantium corporis ut atque. Voluptatem quae eum quibusdam assumenda blanditiis molestiae.', '2.78', 'recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(37, 37, '<NAME>', 'Fuga repellat numquam soluta voluptas exercitationem ut.', 'Debitis ut qui voluptatibus. Odio nostrum sapiente soluta excepturi. Laboriosam blanditiis quia qui amet et dolorum. Et veniam voluptatem ut labore. Et rem ab ipsam quia. Nihil quia quam autem recusandae est. Corrupti tempora adipisci eum et.', '7.45', 'omnis-vitae-optio-omnis-sit-molestias-sit-quibusdam-explicabo', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(38, 38, '<NAME>', 'Ab quia est est dolores sint provident rem eligendi.', 'Vitae pariatur atque amet dolor totam cumque. Incidunt laborum necessitatibus alias accusantium perferendis. Molestias maxime quia qui aperiam in nam perspiciatis. Unde maiores labore impedit porro sit id aliquam. Ab perferendis sint consequuntur aliquam eius velit. Est animi vitae cum incidunt.', '8.41', 'dignissimos-neque-libero-ipsa-quo-animi', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(39, 39, '<NAME>', 'Consequuntur officia velit eveniet dolor.', 'Amet consequatur facilis ullam aut similique. Animi doloribus et nostrum accusantium. Enim atque occaecati debitis. Non officiis similique neque ratione quis eveniet.', '5.07', 'voluptas-sit-assumenda-ab-quod-ut-mollitia', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(40, 40, '<NAME>', 'Reiciendis aut dolores illum ipsa veniam et nam.', 'Quidem sint itaque natus eaque dolorem eius. Consequatur perspiciatis qui incidunt ducimus provident maxime. Et quo fuga et ut quia. A id non tenetur inventore est magnam. Non sed itaque facilis ducimus voluptas incidunt.', '6.75', 'vel-quia-at-eum-sunt', '2021-09-15 02:08:58', '2021-09-15 02:08:58'),
(41, 41, 'mochila Brilhosa', 'Após três testes negativos para o coronavírus, o presidente confirma a infecção. Bolsonaro afirma estar \"muito bem\", minimiza novamente a pandemia.', 'Após três testes negativos para o coronavírus, o presidente confirma a infecção.', '259.90', 'mochila-brilhosa', '2021-09-22 22:41:52', '2021-09-22 23:35:43');
-- --------------------------------------------------------
--
-- Estrutura da tabela `product_photos`
--
CREATE TABLE `product_photos` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `product_photos`
--
INSERT INTO `product_photos` (`id`, `product_id`, `image`, `created_at`, `updated_at`) VALUES
(1, 41, 'products/nk8gmLGA96zeX8SzWZMpS2s6KN4Ij7SeqTwvAUMB.jpg', '2021-09-22 23:06:27', '2021-09-22 23:06:27'),
(2, 41, 'products/ZxzhHJKoHG22nLwMrjVLfO0qime4k8GgGmnYzC6H.jpg', '2021-09-22 23:06:27', '2021-09-22 23:06:27'),
(3, 41, 'products/xHi7uJT1K0VMViL8UuYUC6lj8DAhD0rm5cXKppSb.jpg', '2021-09-22 23:06:27', '2021-09-22 23:06:27');
-- --------------------------------------------------------
--
-- Estrutura da tabela `stores`
--
CREATE TABLE `stores` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobile_phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `stores`
--
INSERT INTO `stores` (`id`, `user_id`, `name`, `description`, `phone`, `mobile_phone`, `slug`, `created_at`, `updated_at`, `logo`) VALUES
(1, 1, 'Prof. <NAME>', 'Ad qui autem consectetur minus.', '710.668.2169', '(221) 710-7458', 'quis-totam-aliquam-aut-voluptas-incidunt', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(2, 2, '<NAME>', 'Rerum iste accusantium delectus.', '1-791-648-7419', '891-256-1164', 'reiciendis-distinctio-cupiditate-ut-sunt-eum-voluptates-asperiores-est', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(3, 3, 'Prof. <NAME>', 'Quia veniam fugit veritatis qui dolores officia.', '+1 (303) 591-1358', '249.952.9903', 'est-sed-sed-dolorem-itaque-et-est-dignissimos', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(4, 4, '<NAME> DDS', 'Fuga velit animi rem architecto.', '+1.514.887.4044', '+1-940-872-0759', 'quas-ducimus-saepe-voluptate', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(5, 5, '<NAME>', 'Molestiae corrupti amet deserunt unde accusantium rerum porro.', '1-352-984-9950', '421-714-0517', 'vitae-numquam-quod-molestias-voluptas-nesciunt-animi-cum', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(6, 6, '<NAME>', 'Ut voluptates quos autem id.', '460-522-2171', '+15857699283', 'et-veniam-qui-qui', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(7, 7, '<NAME>', 'Similique fugit est tempora commodi commodi eos atque ipsum.', '+1-547-935-9278', '+1.962.665.3889', 'sit-sequi-aut-dolores-id-fugiat-repellendus-ea-reiciendis', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(8, 8, '<NAME>', 'Minus quia voluptatum aut quibusdam deleniti ut blanditiis.', '+17753138830', '576-814-8996', 'eos-nemo-ut-velit-reiciendis-sed', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(9, 9, '<NAME> DDS', 'Accusamus iusto omnis voluptas ad.', '+1-436-487-9079', '960-443-4820', 'consequatur-autem-enim-inventore-nam-iure-est', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(10, 10, 'Dr. <NAME>', 'Vel distinctio blanditiis sed iusto qui.', '+1.997.488.4069', '+1-697-648-7194', 'fugiat-quia-maiores-vitae-quia', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(11, 11, '<NAME> MD', 'Porro tempore dolores dicta eligendi.', '973-242-1349', '(730) 305-8919', 'magni-facilis-repudiandae-quam-amet-iste', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(12, 12, 'Dr. <NAME>', 'Labore rem tempore nisi adipisci et beatae quis.', '531-627-7498', '617.433.6161', 'a-quisquam-quia-aliquam-reiciendis-laboriosam-soluta-ipsum', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(13, 13, '<NAME>', 'Rerum illum provident ipsum doloremque cumque ea quos.', '+1-998-270-4048', '+1 (384) 882-3645', 'aut-aut-voluptas-culpa-hic-veritatis-nostrum-ea-quia', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(14, 14, '<NAME>', 'Nihil rerum est quia quae dolor assumenda provident.', '575.916.6702', '850.435.1165', 'mollitia-et-aut-sed-recusandae-voluptatem-qui', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(15, 15, 'Dr. <NAME>', 'Architecto dolorem voluptatem quidem delectus incidunt sit.', '(367) 221-7424', '+1 (948) 594-0185', 'ducimus-reprehenderit-maxime-ea-quia-laboriosam-qui-voluptatem', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(16, 16, 'Ms. <NAME>', 'Voluptatem architecto sapiente animi adipisci incidunt.', '+1 (756) 660-3009', '+1-630-816-1186', 'omnis-sit-quaerat-quia-hic-aut-nam-dolores', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(17, 17, '<NAME> MD', 'Libero blanditiis quo et sit.', '958.898.9380', '+15344343907', 'sed-exercitationem-eum-in-eligendi-maxime-totam', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(18, 18, '<NAME>', 'Molestiae est autem debitis earum vel veritatis quibusdam.', '515.786.8810', '774.668.1324', 'in-et-dolorem-velit-exercitationem-optio', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(19, 19, 'Miss <NAME> DVM', 'Totam cum repellendus molestias placeat id fuga qui.', '+16879949950', '928-834-2673', 'accusantium-molestiae-illum-voluptates-veniam-libero-cumque', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(20, 20, '<NAME>', 'Velit totam accusantium beatae voluptate sit tempore.', '+1 (445) 626-5275', '507-750-3464', 'commodi-officiis-alias-error-natus-amet-voluptatibus-quia', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(21, 21, '<NAME>', 'Nulla magnam et molestiae placeat voluptate.', '(327) 399-3665', '447.967.8104', 'nam-ipsum-quaerat-sint-aut', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(22, 22, 'Prof. <NAME>s', 'Beatae magni voluptas eos modi omnis.', '775-455-8574', '+1-350-593-4196', 'est-officiis-officiis-quia-veritatis-et-aut-architecto-sunt', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(23, 23, '<NAME>', 'Voluptatum quo quidem accusantium illum dolore libero.', '996.552.8707', '(823) 317-4981', 'occaecati-earum-molestias-quia-molestiae-et-qui-est', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(24, 24, '<NAME>', 'Et distinctio sit aliquid impedit non.', '558-380-9480', '(909) 881-2733', 'tenetur-voluptatum-quia-quo-quae-ut-ad-maiores-debitis', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(25, 25, 'Ms. <NAME>', 'Delectus quod pariatur voluptatibus enim nisi.', '624-633-1903', '(245) 709-7323', 'aut-et-adipisci-libero-quis-error-quia-veniam-libero', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(26, 26, '<NAME>', 'Nisi commodi nisi praesentium id consectetur.', '1-887-680-6199', '(516) 554-7122', 'perspiciatis-suscipit-earum-distinctio', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(27, 27, 'Ms. <NAME>', 'Commodi est in laudantium autem animi laboriosam.', '1-664-968-9393', '563.510.6609', 'sed-nemo-quis-neque-est-officia', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(28, 28, '<NAME>', 'Saepe laboriosam commodi ad corrupti harum porro repellendus.', '579-824-9921', '1-814-806-3785', 'ab-iusto-quo-est-ullam-consequuntur-a-alias', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(29, 29, 'Prof. <NAME>', 'Nobis odio explicabo voluptatum ex.', '+1 (635) 810-8229', '1-937-306-6047', 'maxime-dolorem-suscipit-neque-quis-earum-quo-est', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(30, 30, 'Sib<NAME>', 'Nam error possimus ipsa molestiae recusandae velit sequi qui.', '+1 (761) 788-6979', '1-308-543-3199', 'et-sapiente-non-quibusdam-ut', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(31, 31, 'Dr. <NAME> II', 'Doloribus ducimus beatae sit eum nesciunt officiis quidem.', '+1.632.969.0856', '476.772.5605', 'repellat-illo-odio-odio-voluptatem-id-non-autem', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(32, 32, '<NAME> DDS', 'Sunt facilis quos natus.', '+1-241-989-9565', '(871) 515-9352', 'voluptatem-qui-et-dolore-aut', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(33, 33, '<NAME>', 'Vel voluptatum ab voluptas ut eaque est qui enim.', '513-844-8444', '1-247-630-9331', 'autem-similique-iusto-fugiat-accusamus', '2021-09-15 02:06:47', '2021-09-15 02:06:47', NULL),
(34, 34, 'Dr. <NAME>', 'Minus dolorem sunt saepe in sint aut.', '1-295-268-6372', '1-204-913-4603', 'qui-vitae-et-atque-dolorum-quae-iusto', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(35, 35, '<NAME>', 'Vel accusamus exercitationem nihil minima quidem.', '1-497-649-7041', '1-598-257-6615', 'odio-voluptatum-quod-nisi-quidem-dolores-voluptas-suscipit', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(36, 36, '<NAME> PhD', 'Quia fugit temporibus dolor voluptate itaque iure porro.', '865-361-7275', '813.816.0698', 'dolore-modi-eos-voluptas', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(37, 37, '<NAME>', 'Vel dolor ut laboriosam qui sint impedit omnis.', '+16653497565', '+1.962.238.8228', 'sit-tempore-autem-natus-quisquam', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(38, 38, '<NAME>', 'Qui porro ipsa ipsa sunt ea iste et.', '(941) 686-7035', '+1.454.431.9476', 'iusto-iusto-asperiores-facere-animi-asperiores-et', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(39, 39, '<NAME>', 'Omnis voluptatem odit qui nobis ut.', '1-296-942-9155', '(817) 232-6192', 'maxime-aut-eligendi-enim-voluptatem-sit-sunt-perspiciatis', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(40, 40, 'Mr. <NAME>', 'Voluptatem quo aliquid ut sequi quod magni voluptatum.', '+1 (518) 704-3889', '290.600.8432', 'exercitationem-sint-velit-est-delectus-est-mollitia', '2021-09-15 02:06:48', '2021-09-15 02:06:48', NULL),
(41, 41, '<NAME>', 'Loja de acessórios femininos', '(48) 3374-2032', '(48) 99102-6248', 'lojinha-da-cris', '2021-09-22 22:33:42', '2021-09-22 22:33:42', 'logo/4s3qqRHX7qaTperiaOalATwlpmBfj17iVHLqjKHf.png');
-- --------------------------------------------------------
--
-- Estrutura da tabela `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'ROLE_USER'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `role`) VALUES
(1, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'wtpr82UJBrztM78eC81zpv0TxUNSpQAblrJvP0Wfd5ivBYOk7FiX0rTV6GBS', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(2, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'fWs1gfwuWw', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(3, 'Prof. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'tXBP7k9hAj', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(4, 'Dr. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '0cORDoWRQUfv8nQlwKptCBnSLSvbQqNkmQarTaPziX0buVkFr9GV37Xx4Ieu', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(5, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'isrMWby70g', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(6, 'Dr. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'VLfvxrPM13', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(7, 'Mrs. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'qj7QW4xzt0', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(8, 'Dr. <NAME> DDS', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'rFnp5JM0MA', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(9, 'Ms. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '4FxJFZBhAN', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(10, '<NAME> DVM', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'kDCYTLQM0Y', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(11, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'uBG0Wt9Lux', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(12, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'sTFqkWo2zp', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(13, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'I527nAorKg', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(14, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'PpKjSaiQK9', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(15, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'RQm0UsiK1D', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(16, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'BJIDSCHBdG', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(17, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'loJ1KNcLef', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(18, 'Ms. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'usS2vfGjeR', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(19, 'Dr. <NAME> DDS', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'p8FIKbOhRX', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(20, '<NAME> MD', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'mLFvLe1x8a', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(21, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'iD2CAHtdIn', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(22, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'lJW0Y2sox9', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(23, '<NAME> PhD', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'q10xZ2UU5w', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(24, 'Miss <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '8j82Ip30S5', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(25, 'Dr. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'DbGNtaY245', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(26, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'MsUawrXe5o', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(27, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'sDMS8HjxDd', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(28, 'Mr. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'ReUwCk9fFg', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(29, 'Prof. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'faznv0ST7i', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(30, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'EeA614yliL', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(31, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '0RYY1hntXx', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(32, 'Mr. <NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', '9NectB3Une', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(33, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'FXiswvWm7G', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(34, 'Dr. <NAME>', 'anissa98<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'V4cEAj8UCl', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(35, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Sm5scUJxuw', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(36, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'LVXw2UTtwq', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(37, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'Dq3k1uK47X', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(38, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'fuqZSoCtwF', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(39, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'QAZlD824Ri', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(40, '<NAME>', '<EMAIL>', '2021-09-15 02:06:47', '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', 'shtOZXCWfiyKrsFjIySKd1lseCM1atxtLafaHMifhs3Qyz8eQfLFdJu0Pg6e', '2021-09-15 02:06:47', '2021-09-15 02:06:47', 'ROLE_USER'),
(41, '<NAME>', '<EMAIL>', NULL, '$2y$10$16vcnvMaGv6vSaQeX/nGzeG.AT/GwWnGy5chudpXuDH5Z3xWH4ahq', 'AoiZ3QEwEiHI7HJJpzdfE0hPyXKJbzaZvgPvj24K3iP0xtE6BNCfH5cwIVKB', '2021-09-22 22:30:26', '2021-09-22 22:30:26', 'ROLE_OWNER');
-- --------------------------------------------------------
--
-- Estrutura da tabela `user_orders`
--
CREATE TABLE `user_orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`reference` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pagseguro_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`pagseguro_status` int(11) NOT NULL,
`items` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Extraindo dados da tabela `user_orders`
--
INSERT INTO `user_orders` (`id`, `user_id`, `reference`, `pagseguro_code`, `pagseguro_status`, `items`, `created_at`, `updated_at`) VALUES
(1, 1, 'XPTO1', 'D373066E-1AB6-4675-B7F9-0B80E6529294', 1, 'a:2:{i:0;a:5:{s:4:\"name\";s:11:\"Curtis Rice\";s:5:\"price\";s:4:\"2.09\";s:4:\"slug\";s:43:\"non-illum-eveniet-laborum-in-dolorem-dolore\";s:6:\"amount\";i:7;s:8:\"store_id\";i:39;}i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:10:58', '2021-09-15 02:10:58'),
(2, 1, 'XPTO2', 'C70E5686-A636-4DF7-B6BA-0426D2B8F8BA', 1, 'a:1:{i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:11:50', '2021-09-15 02:11:50'),
(3, 1, 'XPTO3', '2FC5379A-1AB7-4EEF-8AA9-F7980DF4C74B', 1, 'a:1:{i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:12:28', '2021-09-15 02:12:28'),
(4, 1, 'XPTO4', 'F7D019B6-8051-4BCC-A487-4D3A4ACB12F4', 1, 'a:1:{i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:18:31', '2021-09-15 02:18:31'),
(5, 1, 'XPTO5', '6BD5A7AF-5B81-4ABD-8E42-E69CAAA187A5', 1, 'a:1:{i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:19:05', '2021-09-15 02:19:05'),
(6, 1, 'XPTO6', 'C960CB7E-8664-40DA-AD0E-86CD2C00F9C4', 1, 'a:1:{i:1;a:5:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:40;}}', '2021-09-15 02:19:55', '2021-09-15 02:19:55'),
(7, 1, 'XPTO7', 'A5B065EC-0393-4E15-9B3A-581D2C3A4D85', 1, 'a:1:{i:0;a:5:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"8.41\";s:4:\"slug\";s:39:\"dignissimos-neque-libero-ipsa-quo-animi\";s:6:\"amount\";s:1:\"5\";s:8:\"store_id\";i:38;}}', '2021-09-17 16:28:01', '2021-09-17 16:28:01'),
(8, 1, 'XPTO8', '223299E2-BBB0-4EB1-AE73-D11FE2007321', 1, 'a:1:{i:0;a:5:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"5.07\";s:4:\"slug\";s:42:\"voluptas-sit-assumenda-ab-quod-ut-mollitia\";s:6:\"amount\";i:4;s:8:\"store_id\";i:39;}}', '2021-09-17 16:47:00', '2021-09-17 16:47:00'),
(9, 1, 'XPTO9', '7E575D34-29DB-4772-9B64-81EE4F50009E', 1, 'a:1:{i:0;a:5:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"5.07\";s:4:\"slug\";s:42:\"voluptas-sit-assumenda-ab-quod-ut-mollitia\";s:6:\"amount\";i:4;s:8:\"store_id\";i:39;}}', '2021-09-17 16:47:33', '2021-09-17 16:47:33'),
(10, 4, 'XPTO', '711A6411-C0CB-445E-B696-61EE65E717F5', 3, 'a:1:{i:0;a:5:{s:4:\"name\";s:15:\"<NAME>\";s:5:\"price\";s:4:\"7.45\";s:4:\"slug\";s:61:\"omnis-vitae-optio-omnis-sit-molestias-sit-quibusdam-explicabo\";s:6:\"amount\";s:1:\"4\";s:8:\"store_id\";i:37;}}', '2021-09-17 18:02:31', '2021-09-20 17:12:00'),
(11, 4, 'XPTO', '8664B439-EF8E-4131-AB6B-2C37A09FF8A5', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"8.41\";s:4:\"slug\";s:39:\"dignissimos-neque-libero-ipsa-quo-animi\";s:6:\"amount\";s:2:\"10\";s:2:\"id\";i:38;s:8:\"store_id\";i:38;}}', '2021-09-20 17:42:12', '2021-09-20 17:42:12'),
(12, 4, '9587b152-d088-47f3-9b05-c442c1262b95', '59007AEC-7894-46F0-B9AA-E5AB277A0846', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"8.41\";s:4:\"slug\";s:39:\"dignissimos-neque-libero-ipsa-quo-animi\";s:6:\"amount\";s:2:\"10\";s:2:\"id\";i:38;s:8:\"store_id\";i:38;}}', '2021-09-20 17:55:00', '2021-09-20 17:55:00'),
(13, 4, 'c8793159-ba49-4496-9b3a-7fc9619b2889', 'E830F687-DAFC-41CA-9F7D-7A90020C3CE5', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"8.41\";s:4:\"slug\";s:39:\"dignissimos-neque-libero-ipsa-quo-animi\";s:6:\"amount\";s:2:\"10\";s:2:\"id\";i:38;s:8:\"store_id\";i:38;}}', '2021-09-20 18:02:36', '2021-09-20 18:02:36'),
(14, 4, 'b33a8fd2-e8b2-446a-a0eb-ccc437deca29', '67354111-A126-4CFD-9BA2-BA2099EDC20B', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:01:13', '2021-09-20 21:01:13'),
(15, 4, '6126a600-cd48-441e-b8a2-ed8a3a04ae09', 'DD82D2F1-EDC9-4700-A3CE-A3D2565903CA', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:02:04', '2021-09-20 21:02:04'),
(16, 4, '49bf7600-6f6f-408e-a04b-dd99e43a9bbc', 'B47871C3-083B-46BF-80E6-57881F9BA86C', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:03:10', '2021-09-20 21:03:10'),
(17, 4, '5fec330c-b8cc-4b73-93f1-e5ad353ceed5', 'A90A1CB1-5345-415B-8369-47C44312F3AE', 7, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:06:29', '2021-09-20 21:17:42'),
(18, 4, 'f38b23f8-32aa-4228-b9f4-21595e293e3a', 'D13AC828-E337-4A4B-B489-DDD708B88EF7', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:29:46', '2021-09-20 21:29:46'),
(19, 4, '52a53d1e-fc8e-4f22-aa97-cd1dad7c40a0', 'BA829BEA-608D-4DC7-BF90-1FB143BCAA32', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:22:\"Prof. <NAME>\";s:5:\"price\";s:4:\"2.78\";s:4:\"slug\";s:63:\"recusandae-distinctio-deleniti-fuga-debitis-facere-consequuntur\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:36;s:8:\"store_id\";i:36;}}', '2021-09-20 21:31:27', '2021-09-20 21:31:27'),
(20, 41, '38d41326-942e-4206-ace4-4701fec17bd7', '14E2C20B-090F-4C38-B402-4660E06D426F', 1, 'a:1:{i:0;a:6:{s:4:\"name\";s:16:\"mo<NAME>\";s:5:\"price\";s:6:\"259.90\";s:4:\"slug\";s:16:\"mochila-brilhosa\";s:6:\"amount\";s:1:\"5\";s:2:\"id\";i:41;s:8:\"store_id\";i:41;}}', '2021-09-23 16:20:29', '2021-09-23 16:20:29'),
(21, 40, 'facba329-fc24-4bec-bc58-e4fa82b31b48', '316B73F3-19D2-407D-8F29-7B45FBC19D11', 1, 'a:4:{i:0;a:6:{s:4:\"name\";s:16:\"mo<NAME>\";s:5:\"price\";s:6:\"259.90\";s:4:\"slug\";s:16:\"mochila-brilhosa\";s:6:\"amount\";s:1:\"1\";s:2:\"id\";i:41;s:8:\"store_id\";i:41;}i:1;a:6:{s:4:\"name\";s:11:\"<NAME>\";s:5:\"price\";s:4:\"6.75\";s:4:\"slug\";s:20:\"vel-quia-at-eum-sunt\";s:6:\"amount\";s:1:\"1\";s:2:\"id\";i:40;s:8:\"store_id\";i:40;}i:2;a:6:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"5.07\";s:4:\"slug\";s:42:\"voluptas-sit-assumenda-ab-quod-ut-mollitia\";s:6:\"amount\";s:1:\"1\";s:2:\"id\";i:39;s:8:\"store_id\";i:39;}i:3;a:6:{s:4:\"name\";s:13:\"<NAME>\";s:5:\"price\";s:4:\"8.41\";s:4:\"slug\";s:39:\"dignissimos-neque-libero-ipsa-quo-animi\";s:6:\"amount\";s:1:\"1\";s:2:\"id\";i:38;s:8:\"store_id\";i:38;}}', '2021-09-23 16:57:33', '2021-09-23 16:57:33');
--
-- Índices para tabelas despejadas
--
--
-- Índices para tabela `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Índices para tabela `category_product`
--
ALTER TABLE `category_product`
ADD KEY `category_product_product_id_foreign` (`product_id`),
ADD KEY `category_product_category_id_foreign` (`category_id`);
--
-- Índices para tabela `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Índices para tabela `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Índices para tabela `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`),
ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);
--
-- Índices para tabela `order_store`
--
ALTER TABLE `order_store`
ADD KEY `order_store_store_id_foreign` (`store_id`),
ADD KEY `order_store_order_id_foreign` (`order_id`);
--
-- Índices para tabela `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Índices para tabela `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `products_store_id_foreign` (`store_id`);
--
-- Índices para tabela `product_photos`
--
ALTER TABLE `product_photos`
ADD PRIMARY KEY (`id`),
ADD KEY `product_photos_product_id_foreign` (`product_id`);
--
-- Índices para tabela `stores`
--
ALTER TABLE `stores`
ADD PRIMARY KEY (`id`),
ADD KEY `stores_user_id_foreign` (`user_id`);
--
-- Índices para tabela `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Índices para tabela `user_orders`
--
ALTER TABLE `user_orders`
ADD PRIMARY KEY (`id`),
ADD KEY `user_orders_user_id_foreign` (`user_id`);
--
-- AUTO_INCREMENT de tabelas despejadas
--
--
-- AUTO_INCREMENT de tabela `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT de tabela `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT de tabela `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT de tabela `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
--
-- AUTO_INCREMENT de tabela `product_photos`
--
ALTER TABLE `product_photos`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT de tabela `stores`
--
ALTER TABLE `stores`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
--
-- AUTO_INCREMENT de tabela `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=42;
--
-- AUTO_INCREMENT de tabela `user_orders`
--
ALTER TABLE `user_orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- Restrições para despejos de tabelas
--
--
-- Limitadores para a tabela `category_product`
--
ALTER TABLE `category_product`
ADD CONSTRAINT `category_product_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`),
ADD CONSTRAINT `category_product_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`);
--
-- Limitadores para a tabela `order_store`
--
ALTER TABLE `order_store`
ADD CONSTRAINT `order_store_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `user_orders` (`id`),
ADD CONSTRAINT `order_store_store_id_foreign` FOREIGN KEY (`store_id`) REFERENCES `stores` (`id`);
--
-- Limitadores para a tabela `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_store_id_foreign` FOREIGN KEY (`store_id`) REFERENCES `stores` (`id`) ON DELETE CASCADE;
--
-- Limitadores para a tabela `product_photos`
--
ALTER TABLE `product_photos`
ADD CONSTRAINT `product_photos_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`);
--
-- Limitadores para a tabela `stores`
--
ALTER TABLE `stores`
ADD CONSTRAINT `stores_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Limitadores para a tabela `user_orders`
--
ALTER TABLE `user_orders`
ADD CONSTRAINT `user_orders_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 */;
|
<filename>ncaa_pbp/mapping/rosters_compute_levenshtein_distances.sql<gh_stars>10-100
-- Requires the PostgreSQL Levenshtein functionfound in the contributed
-- fuzzystrmatch module
-- To install:
-- apt-get install postgresql-contrib
-- CREATE EXTENSION fuzzystrmatch;
begin;
drop table if exists ncaa_pbp.lev_mappings;
create table ncaa_pbp.lev_mappings (
team_id integer,
player_name text,
hashed_name text,
lev_distance integer,
matched_hash text,
matched_name text,
id integer
);
insert into ncaa_pbp.lev_mappings
(team_id,player_name,hashed_name)
(select
team_id,player_name,hashed_name
from ncaa_pbp.name_mappings
);
update ncaa_pbp.lev_mappings
set lev_distance=
(
select min(levenshtein(lev_mappings.hashed_name,r.hashed_name))
from ncaa_pbp.team_rosters r
where r.team_id=lev_mappings.team_id
);
update ncaa_pbp.lev_mappings
set matched_name=r.player_name,
matched_hash=r.hashed_name,
id=r.id
from ncaa_pbp.team_rosters r
where
lev_mappings.lev_distance=levenshtein(lev_mappings.hashed_name,r.hashed_name)
and r.team_id=lev_mappings.team_id;
commit;
|
alter table "public"."users" drop column "is_denied" cascade;
|
<gh_stars>1-10
if not exists (select * from INFORMATION_SCHEMA.TABLES where TABLE_NAME = '$tablename$_CSTM' and TABLE_TYPE = 'BASE TABLE')
begin
print 'Create Table dbo.$tablename$_CSTM';
Create Table dbo.$tablename$_CSTM
( ID_C uniqueidentifier not null constraint PK_$tablename$_CSTM primary key
)
end
GO
|
<gh_stars>10-100
-- file:updatable_views.sql ln:1240 expect:true
insert into uv_iocu_view (aa) values (1)
on conflict (aa) do update set cc = 'XXX'
|
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "list" ("id", "value") VALUES (E'ARM', E'Argentine Peso (1881–1970)');
INSERT INTO "list" ("id", "value") VALUES (E'ARL', E'Argentine Peso Ley (1970–1983)');
INSERT INTO "list" ("id", "value") VALUES (E'BOL', E'Bolivian Boliviano (1863–1963)');
INSERT INTO "list" ("id", "value") VALUES (E'BAN', E'Bosnia-Herzegovina New Dinar (1994–1997)');
INSERT INTO "list" ("id", "value") VALUES (E'BRZ', E'Brazilian Cruzeiro (1942–1967)');
INSERT INTO "list" ("id", "value") VALUES (E'BGO', E'Bulgarian Lev (1879–1952)');
INSERT INTO "list" ("id", "value") VALUES (E'BGM', E'Bulgarian Socialist Lev');
INSERT INTO "list" ("id", "value") VALUES (E'CLE', E'Chilean Escudo');
INSERT INTO "list" ("id", "value") VALUES (E'CNX', E'Chinese People’s Bank Dollar');
INSERT INTO "list" ("id", "value") VALUES (E'ISJ', E'Iceland<NAME> (1918–1981)');
INSERT INTO "list" ("id", "value") VALUES (E'ILR', E'Israeli Shekel (1980–1985)');
INSERT INTO "list" ("id", "value") VALUES (E'MKN', E'Macedonian Denar (1992–1993)');
INSERT INTO "list" ("id", "value") VALUES (E'MVP', E'Maldivian Rupee (1947–1981)');
INSERT INTO "list" ("id", "value") VALUES (E'MDC', E'<NAME>');
INSERT INTO "list" ("id", "value") VALUES (E'MCF', E'Monegasque Franc');
INSERT INTO "list" ("id", "value") VALUES (E'KRH', E'South Korean Hwan (1953–1962)');
INSERT INTO "list" ("id", "value") VALUES (E'KRO', E'South Korean Won (1945–1953)');
INSERT INTO "list" ("id", "value") VALUES (E'VNN', E'Vietnamese Dong (1978–1985)');
INSERT INTO "list" ("id", "value") VALUES (E'YUR', E'Yugoslavian Reformed Dinar (1992–1993)');
INSERT INTO "list" ("id", "value") VALUES (E'AFA', E'afghani (1927–2002)');
INSERT INTO "list" ("id", "value") VALUES (E'AFN', E'afghani afghan');
INSERT INTO "list" ("id", "value") VALUES (E'ROL', E'ancien leu roumain');
INSERT INTO "list" ("id", "value") VALUES (E'MGA', E'ariary malgache');
INSERT INTO "list" ("id", "value") VALUES (E'ARA', E'austral argentin');
INSERT INTO "list" ("id", "value") VALUES (E'THB', E'baht thaïlandais');
INSERT INTO "list" ("id", "value") VALUES (E'PAB', E'balboa panaméen');
INSERT INTO "list" ("id", "value") VALUES (E'ETB', E'birr éthiopien');
INSERT INTO "list" ("id", "value") VALUES (E'VEF', E'bolivar vénézuélien');
INSERT INTO "list" ("id", "value") VALUES (E'VEB', E'bolivar vénézuélien (1871–2008)');
INSERT INTO "list" ("id", "value") VALUES (E'BOB', E'boliviano bolivien');
INSERT INTO "list" ("id", "value") VALUES (E'CRC', E'colón costaricain');
INSERT INTO "list" ("id", "value") VALUES (E'SVC', E'colón salvadorien');
INSERT INTO "list" ("id", "value") VALUES (E'NIC', E'cordoba');
INSERT INTO "list" ("id", "value") VALUES (E'GEK', E'coupon de lari géorgien');
INSERT INTO "list" ("id", "value") VALUES (E'DKK', E'couronne danoise');
INSERT INTO "list" ("id", "value") VALUES (E'EEK', E'couronne estonienne');
INSERT INTO "list" ("id", "value") VALUES (E'CSK', E'couronne forte tchécoslovaque');
INSERT INTO "list" ("id", "value") VALUES (E'ISK', E'couronne islandaise');
INSERT INTO "list" ("id", "value") VALUES (E'NOK', E'couronne norvégienne');
INSERT INTO "list" ("id", "value") VALUES (E'SKK', E'couronne slovaque');
INSERT INTO "list" ("id", "value") VALUES (E'SEK', E'couronne suédoise');
INSERT INTO "list" ("id", "value") VALUES (E'CZK', E'couronne tchèque');
INSERT INTO "list" ("id", "value") VALUES (E'BRC', E'cruzado brésilien (1986–1989)');
INSERT INTO "list" ("id", "value") VALUES (E'BRR', E'cruzeiro');
INSERT INTO "list" ("id", "value") VALUES (E'BRE', E'cruzeiro brésilien (1990–1993)');
INSERT INTO "list" ("id", "value") VALUES (E'GHC', E'cédi');
INSERT INTO "list" ("id", "value") VALUES (E'GHS', E'cédi ghanéen');
INSERT INTO "list" ("id", "value") VALUES (E'NIO', E'córdoba oro nicaraguayen');
INSERT INTO "list" ("id", "value") VALUES (E'GMD', E'dalasi gambien');
INSERT INTO "list" ("id", "value") VALUES (E'MKD', E'denar macédonien');
INSERT INTO "list" ("id", "value") VALUES (E'DZD', E'dinar algérien');
INSERT INTO "list" ("id", "value") VALUES (E'BHD', E'dinar bahreïni');
INSERT INTO "list" ("id", "value") VALUES (E'BAD', E'dinar bosniaque');
INSERT INTO "list" ("id", "value") VALUES (E'HRD', E'dinar croate');
INSERT INTO "list" ("id", "value") VALUES (E'YDD', E'dinar du Yémen');
INSERT INTO "list" ("id", "value") VALUES (E'IQD', E'dinar irakien');
INSERT INTO "list" ("id", "value") VALUES (E'JOD', E'dinar jordanien');
INSERT INTO "list" ("id", "value") VALUES (E'KWD', E'dinar koweïtien');
INSERT INTO "list" ("id", "value") VALUES (E'LYD', E'dinar libyen');
INSERT INTO "list" ("id", "value") VALUES (E'RSD', E'dinar serbe');
INSERT INTO "list" ("id", "value") VALUES (E'CSD', E'dinar serbo-monténégrin');
INSERT INTO "list" ("id", "value") VALUES (E'SDD', E'dinar soudanais');
INSERT INTO "list" ("id", "value") VALUES (E'TND', E'dinar tunisien');
INSERT INTO "list" ("id", "value") VALUES (E'YUM', E'dinar yougoslave Noviy');
INSERT INTO "list" ("id", "value") VALUES (E'YUN', E'dinar yougoslave convertible');
INSERT INTO "list" ("id", "value") VALUES (E'AED', E'dirham des Émirats arabes unis');
INSERT INTO "list" ("id", "value") VALUES (E'MAD', E'dirham marocain');
INSERT INTO "list" ("id", "value") VALUES (E'STD', E'dobra santoméen');
INSERT INTO "list" ("id", "value") VALUES (E'AUD', E'dollar australien');
INSERT INTO "list" ("id", "value") VALUES (E'BSD', E'dollar bahaméen');
INSERT INTO "list" ("id", "value") VALUES (E'BBD', E'dollar barbadien');
INSERT INTO "list" ("id", "value") VALUES (E'BMD', E'dollar bermudien');
INSERT INTO "list" ("id", "value") VALUES (E'BND', E'dollar brunéien');
INSERT INTO "list" ("id", "value") VALUES (E'BZD', E'dollar bélizéen');
INSERT INTO "list" ("id", "value") VALUES (E'CAD', E'dollar canadien');
INSERT INTO "list" ("id", "value") VALUES (E'HKD', E'dollar de Hong Kong');
INSERT INTO "list" ("id", "value") VALUES (E'SGD', E'dollar de Singapour');
INSERT INTO "list" ("id", "value") VALUES (E'XCD', E'dollar des Caraïbes orientales');
INSERT INTO "list" ("id", "value") VALUES (E'USS', E'dollar des Etats-Unis (jour même)');
INSERT INTO "list" ("id", "value") VALUES (E'USN', E'dollar des Etats-Unis (jour suivant)');
INSERT INTO "list" ("id", "value") VALUES (E'USD', E'dollar des États-Unis');
INSERT INTO "list" ("id", "value") VALUES (E'KYD', E'dollar des îles Caïmans');
INSERT INTO "list" ("id", "value") VALUES (E'SBD', E'dollar des îles Salomon');
INSERT INTO "list" ("id", "value") VALUES (E'GYD', E'dollar du Guyana');
INSERT INTO "list" ("id", "value") VALUES (E'FJD', E'dollar fidjien');
INSERT INTO "list" ("id", "value") VALUES (E'JMD', E'dollar jamaïcain');
INSERT INTO "list" ("id", "value") VALUES (E'LRD', E'dollar libérien');
INSERT INTO "list" ("id", "value") VALUES (E'NAD', E'dollar namibien');
INSERT INTO "list" ("id", "value") VALUES (E'NZD', E'dollar néo-zélandais');
INSERT INTO "list" ("id", "value") VALUES (E'RHD', E'dollar rhodésien');
INSERT INTO "list" ("id", "value") VALUES (E'SRD', E'dollar surinamais');
INSERT INTO "list" ("id", "value") VALUES (E'TTD', E'dollar trinidadien');
INSERT INTO "list" ("id", "value") VALUES (E'ZWD', E'dollar zimbabwéen');
INSERT INTO "list" ("id", "value") VALUES (E'ZWR', E'dollar zimbabwéen (2008)');
INSERT INTO "list" ("id", "value") VALUES (E'ZWL', E'dollar zimbabwéen (2009)');
INSERT INTO "list" ("id", "value") VALUES (E'GRD', E'drachme grecque');
INSERT INTO "list" ("id", "value") VALUES (E'AMD', E'dram arménien');
INSERT INTO "list" ("id", "value") VALUES (E'VND', E'dông vietnamien');
INSERT INTO "list" ("id", "value") VALUES (E'GQE', E'ekwélé équatoguinéen');
INSERT INTO "list" ("id", "value") VALUES (E'CVE', E'escudo capverdien');
INSERT INTO "list" ("id", "value") VALUES (E'GWE', E'escudo de Guinée portugaise');
INSERT INTO "list" ("id", "value") VALUES (E'MZE', E'escudo mozambicain');
INSERT INTO "list" ("id", "value") VALUES (E'PTE', E'escudo portugais');
INSERT INTO "list" ("id", "value") VALUES (E'TPE', E'escudo timorais');
INSERT INTO "list" ("id", "value") VALUES (E'EUR', E'euro');
INSERT INTO "list" ("id", "value") VALUES (E'CHE', E'euro WIR');
INSERT INTO "list" ("id", "value") VALUES (E'ANG', E'florin antillais');
INSERT INTO "list" ("id", "value") VALUES (E'AWG', E'florin arubais');
INSERT INTO "list" ("id", "value") VALUES (E'NLG', E'florin néerlandais');
INSERT INTO "list" ("id", "value") VALUES (E'SRG', E'florin surinamais');
INSERT INTO "list" ("id", "value") VALUES (E'HUF', E'forint hongrois');
INSERT INTO "list" ("id", "value") VALUES (E'XOF', E'franc CFA (BCEAO)');
INSERT INTO "list" ("id", "value") VALUES (E'XAF', E'franc CFA (BEAC)');
INSERT INTO "list" ("id", "value") VALUES (E'XPF', E'franc CFP');
INSERT INTO "list" ("id", "value") VALUES (E'XFU', E'franc UIC');
INSERT INTO "list" ("id", "value") VALUES (E'CHW', E'franc WIR');
INSERT INTO "list" ("id", "value") VALUES (E'BEF', E'franc belge');
INSERT INTO "list" ("id", "value") VALUES (E'BEC', E'franc belge (convertible)');
INSERT INTO "list" ("id", "value") VALUES (E'BEL', E'franc belge (financier)');
INSERT INTO "list" ("id", "value") VALUES (E'BIF', E'franc burundais');
INSERT INTO "list" ("id", "value") VALUES (E'KMF', E'franc comorien');
INSERT INTO "list" ("id", "value") VALUES (E'CDF', E'franc congolais');
INSERT INTO "list" ("id", "value") VALUES (E'LUC', E'franc convertible luxembourgeois');
INSERT INTO "list" ("id", "value") VALUES (E'DJF', E'franc djiboutien');
INSERT INTO "list" ("id", "value") VALUES (E'LUL', E'franc financier luxembourgeois');
INSERT INTO "list" ("id", "value") VALUES (E'FRF', E'franc français');
INSERT INTO "list" ("id", "value") VALUES (E'GNF', E'franc guinéen');
INSERT INTO "list" ("id", "value") VALUES (E'LUF', E'franc luxembourgeois');
INSERT INTO "list" ("id", "value") VALUES (E'MGF', E'franc malgache');
INSERT INTO "list" ("id", "value") VALUES (E'MLF', E'franc malien');
INSERT INTO "list" ("id", "value") VALUES (E'MAF', E'franc marocain');
INSERT INTO "list" ("id", "value") VALUES (E'XFO', E'franc or');
INSERT INTO "list" ("id", "value") VALUES (E'RWF', E'franc rwandais');
INSERT INTO "list" ("id", "value") VALUES (E'CHF', E'franc suisse');
INSERT INTO "list" ("id", "value") VALUES (E'HTG', E'gourde haïtienne');
INSERT INTO "list" ("id", "value") VALUES (E'PYG', E'guaraní paraguayen');
INSERT INTO "list" ("id", "value") VALUES (E'UAH', E'hryvnia ukrainienne');
INSERT INTO "list" ("id", "value") VALUES (E'PEI', E'inti péruvien');
INSERT INTO "list" ("id", "value") VALUES (E'UAK', E'karbovanetz');
INSERT INTO "list" ("id", "value") VALUES (E'PGK', E'kina papouan-néo-guinéen');
INSERT INTO "list" ("id", "value") VALUES (E'LAK', E'kip loatien');
INSERT INTO "list" ("id", "value") VALUES (E'HRK', E'kuna croate');
INSERT INTO "list" ("id", "value") VALUES (E'MWK', E'kwacha malawite');
INSERT INTO "list" ("id", "value") VALUES (E'ZMW', E'kwacha zambien');
INSERT INTO "list" ("id", "value") VALUES (E'ZMK', E'kwacha zambien (1968–2012)');
INSERT INTO "list" ("id", "value") VALUES (E'AOA', E'kwanza angolais');
INSERT INTO "list" ("id", "value") VALUES (E'AOK', E'kwanza angolais (1977–1990)');
INSERT INTO "list" ("id", "value") VALUES (E'AOR', E'kwanza angolais réajusté (1995–1999)');
INSERT INTO "list" ("id", "value") VALUES (E'BUK', E'kyat birman');
INSERT INTO "list" ("id", "value") VALUES (E'MMK', E'kyat myanmarais');
INSERT INTO "list" ("id", "value") VALUES (E'GEL', E'lari géorgien');
INSERT INTO "list" ("id", "value") VALUES (E'LVL', E'lats letton');
INSERT INTO "list" ("id", "value") VALUES (E'ALL', E'lek albanais');
INSERT INTO "list" ("id", "value") VALUES (E'ALK', E'lek albanais (1947–1961)');
INSERT INTO "list" ("id", "value") VALUES (E'HNL', E'lempira hondurien');
INSERT INTO "list" ("id", "value") VALUES (E'SLL', E'leone sierra-léonais');
INSERT INTO "list" ("id", "value") VALUES (E'MDL', E'leu moldave');
INSERT INTO "list" ("id", "value") VALUES (E'RON', E'leu roumain');
INSERT INTO "list" ("id", "value") VALUES (E'BGN', E'lev bulgare');
INSERT INTO "list" ("id", "value") VALUES (E'BGL', E'lev bulgare (1962–1999)');
INSERT INTO "list" ("id", "value") VALUES (E'SZL', E'lilangeni swazi');
INSERT INTO "list" ("id", "value") VALUES (E'ITL', E'lire italienne');
INSERT INTO "list" ("id", "value") VALUES (E'MTL', E'lire maltaise');
INSERT INTO "list" ("id", "value") VALUES (E'LTL', E'litas lituanien');
INSERT INTO "list" ("id", "value") VALUES (E'CYP', E'livre chypriote');
INSERT INTO "list" ("id", "value") VALUES (E'GIP', E'livre de Gibraltar');
INSERT INTO "list" ("id", "value") VALUES (E'SHP', E'livre de Sainte-Hélène');
INSERT INTO "list" ("id", "value") VALUES (E'FKP', E'livre des îles Malouines');
INSERT INTO "list" ("id", "value") VALUES (E'IEP', E'livre irlandaise');
INSERT INTO "list" ("id", "value") VALUES (E'ILP', E'livre israélienne');
INSERT INTO "list" ("id", "value") VALUES (E'LBP', E'livre libanaise');
INSERT INTO "list" ("id", "value") VALUES (E'MTP', E'livre maltaise');
INSERT INTO "list" ("id", "value") VALUES (E'SDG', E'livre soudanaise');
INSERT INTO "list" ("id", "value") VALUES (E'SDP', E'livre soudanaise (1956–2007)');
INSERT INTO "list" ("id", "value") VALUES (E'GBP', E'livre sterling');
INSERT INTO "list" ("id", "value") VALUES (E'SSP', E'livre sud-soudanaise');
INSERT INTO "list" ("id", "value") VALUES (E'SYP', E'livre syrienne');
INSERT INTO "list" ("id", "value") VALUES (E'TRY', E'livre turque');
INSERT INTO "list" ("id", "value") VALUES (E'TRL', E'livre turque (1844–2005)');
INSERT INTO "list" ("id", "value") VALUES (E'EGP', E'livre égyptienne');
INSERT INTO "list" ("id", "value") VALUES (E'LSL', E'loti lesothan');
INSERT INTO "list" ("id", "value") VALUES (E'AZN', E'manat azéri');
INSERT INTO "list" ("id", "value") VALUES (E'AZM', E'manat azéri (1993–2006)');
INSERT INTO "list" ("id", "value") VALUES (E'TMM', E'manat turkmène');
INSERT INTO "list" ("id", "value") VALUES (E'DEM', E'mark allemand');
INSERT INTO "list" ("id", "value") VALUES (E'BAM', E'mark convertible bosniaque');
INSERT INTO "list" ("id", "value") VALUES (E'DDM', E'mark est-allemand');
INSERT INTO "list" ("id", "value") VALUES (E'FIM', E'mark finlandais');
INSERT INTO "list" ("id", "value") VALUES (E'MZN', E'metical mozambicain');
INSERT INTO "list" ("id", "value") VALUES (E'BOV', E'mvdol bolivien');
INSERT INTO "list" ("id", "value") VALUES (E'MZM', E'métical');
INSERT INTO "list" ("id", "value") VALUES (E'ERN', E'nafka érythréen');
INSERT INTO "list" ("id", "value") VALUES (E'NGN', E'naira nigérian');
INSERT INTO "list" ("id", "value") VALUES (E'BTN', E'ngultrum bouthanais');
INSERT INTO "list" ("id", "value") VALUES (E'BRN', E'nouveau cruzado');
INSERT INTO "list" ("id", "value") VALUES (E'BRB', E'nouveau cruzeiro brésilien (1967–1986)');
INSERT INTO "list" ("id", "value") VALUES (E'YUD', E'nouveau dinar yougoslave');
INSERT INTO "list" ("id", "value") VALUES (E'TWD', E'nouveau dollar taïwanais');
INSERT INTO "list" ("id", "value") VALUES (E'AON', E'nouveau kwanza angolais (1990–2000)');
INSERT INTO "list" ("id", "value") VALUES (E'TMT', E'nouveau manat turkmène');
INSERT INTO "list" ("id", "value") VALUES (E'BYB', E'nouveau rouble biélorusse (1994–1999)');
INSERT INTO "list" ("id", "value") VALUES (E'ILS', E'nouveau shekel israélien');
INSERT INTO "list" ("id", "value") VALUES (E'ZRN', E'nouveau zaïre zaïrien');
INSERT INTO "list" ("id", "value") VALUES (E'MRO', E'ouguiya mauritanien');
INSERT INTO "list" ("id", "value") VALUES (E'MOP', E'pataca macanaise');
INSERT INTO "list" ("id", "value") VALUES (E'TOP', E'pa’anga tongan');
INSERT INTO "list" ("id", "value") VALUES (E'ADP', E'peseta andorrane');
INSERT INTO "list" ("id", "value") VALUES (E'ESP', E'peseta espagnole');
INSERT INTO "list" ("id", "value") VALUES (E'ESA', E'peseta espagnole (compte A)');
INSERT INTO "list" ("id", "value") VALUES (E'ESB', E'peseta espagnole (compte convertible)');
INSERT INTO "list" ("id", "value") VALUES (E'ARS', E'peso argentin');
INSERT INTO "list" ("id", "value") VALUES (E'ARP', E'peso argentin (1983–1985)');
INSERT INTO "list" ("id", "value") VALUES (E'GWP', E'peso bissau-guinéen');
INSERT INTO "list" ("id", "value") VALUES (E'BOP', E'peso bolivien');
INSERT INTO "list" ("id", "value") VALUES (E'CLP', E'peso chilien');
INSERT INTO "list" ("id", "value") VALUES (E'COP', E'peso colombien');
INSERT INTO "list" ("id", "value") VALUES (E'CUP', E'peso cubain');
INSERT INTO "list" ("id", "value") VALUES (E'CUC', E'peso cubain convertible');
INSERT INTO "list" ("id", "value") VALUES (E'DOP', E'peso dominicain');
INSERT INTO "list" ("id", "value") VALUES (E'MXP', E'peso d’argent mexicain (1861–1992)');
INSERT INTO "list" ("id", "value") VALUES (E'MXN', E'peso mexicain');
INSERT INTO "list" ("id", "value") VALUES (E'PHP', E'peso philippin');
INSERT INTO "list" ("id", "value") VALUES (E'UYU', E'peso uruguayen');
INSERT INTO "list" ("id", "value") VALUES (E'UYP', E'peso uruguayen (1975–1993)');
INSERT INTO "list" ("id", "value") VALUES (E'UYI', E'peso uruguayen (unités indexées)');
INSERT INTO "list" ("id", "value") VALUES (E'BWP', E'pula botswanais');
INSERT INTO "list" ("id", "value") VALUES (E'GTQ', E'quetzal guatémaltèque');
INSERT INTO "list" ("id", "value") VALUES (E'ZAR', E'rand sud-africain');
INSERT INTO "list" ("id", "value") VALUES (E'ZAL', E'rand sud-africain (financier)');
INSERT INTO "list" ("id", "value") VALUES (E'IRR', E'rial iranien');
INSERT INTO "list" ("id", "value") VALUES (E'OMR', E'rial omanais');
INSERT INTO "list" ("id", "value") VALUES (E'QAR', E'rial qatari');
INSERT INTO "list" ("id", "value") VALUES (E'SAR', E'rial saoudien');
INSERT INTO "list" ("id", "value") VALUES (E'YER', E'rial yéménite');
INSERT INTO "list" ("id", "value") VALUES (E'KHR', E'riel cambodgien');
INSERT INTO "list" ("id", "value") VALUES (E'MYR', E'ringgit malais');
INSERT INTO "list" ("id", "value") VALUES (E'BYN', E'rouble biélorusse');
INSERT INTO "list" ("id", "value") VALUES (E'BYR', E'rouble biélorusse (2000–2016)');
INSERT INTO "list" ("id", "value") VALUES (E'LVR', E'rouble letton');
INSERT INTO "list" ("id", "value") VALUES (E'RUB', E'rouble russe');
INSERT INTO "list" ("id", "value") VALUES (E'RUR', E'rouble russe (1991–1998)');
INSERT INTO "list" ("id", "value") VALUES (E'SUR', E'rouble soviétique');
INSERT INTO "list" ("id", "value") VALUES (E'TJR', E'rouble tadjik');
INSERT INTO "list" ("id", "value") VALUES (E'SCR', E'roupie des Seychelles');
INSERT INTO "list" ("id", "value") VALUES (E'INR', E'roupie indienne');
INSERT INTO "list" ("id", "value") VALUES (E'IDR', E'roupie indonésienne');
INSERT INTO "list" ("id", "value") VALUES (E'MUR', E'roupie mauricienne');
INSERT INTO "list" ("id", "value") VALUES (E'NPR', E'roupie népalaise');
INSERT INTO "list" ("id", "value") VALUES (E'PKR', E'roupie pakistanaise');
INSERT INTO "list" ("id", "value") VALUES (E'LKR', E'roupie srilankaise');
INSERT INTO "list" ("id", "value") VALUES (E'MVR', E'rufiyaa maldivien');
INSERT INTO "list" ("id", "value") VALUES (E'BRL', E'réal brésilien');
INSERT INTO "list" ("id", "value") VALUES (E'ATS', E'schilling autrichien');
INSERT INTO "list" ("id", "value") VALUES (E'KES', E'shilling kényan');
INSERT INTO "list" ("id", "value") VALUES (E'UGX', E'shilling ougandais');
INSERT INTO "list" ("id", "value") VALUES (E'UGS', E'shilling ougandais (1966–1987)');
INSERT INTO "list" ("id", "value") VALUES (E'SOS', E'shilling somalien');
INSERT INTO "list" ("id", "value") VALUES (E'TZS', E'shilling tanzanien');
INSERT INTO "list" ("id", "value") VALUES (E'PEN', E'sol péruvien');
INSERT INTO "list" ("id", "value") VALUES (E'PES', E'sol péruvien (1863–1985)');
INSERT INTO "list" ("id", "value") VALUES (E'KGS', E'som kirghize');
INSERT INTO "list" ("id", "value") VALUES (E'TJS', E'somoni tadjik');
INSERT INTO "list" ("id", "value") VALUES (E'ECS', E'sucre équatorien');
INSERT INTO "list" ("id", "value") VALUES (E'UZS', E'sum ouzbek');
INSERT INTO "list" ("id", "value") VALUES (E'GNS', E'syli guinéen');
INSERT INTO "list" ("id", "value") VALUES (E'BDT', E'taka bangladeshi');
INSERT INTO "list" ("id", "value") VALUES (E'WST', E'tala samoan');
INSERT INTO "list" ("id", "value") VALUES (E'LTT', E'talonas lituanien');
INSERT INTO "list" ("id", "value") VALUES (E'KZT', E'tenge kazakh');
INSERT INTO "list" ("id", "value") VALUES (E'SIT', E'tolar slovène');
INSERT INTO "list" ("id", "value") VALUES (E'MNT', E'tugrik mongol');
INSERT INTO "list" ("id", "value") VALUES (E'XRE', E'type de fonds RINET');
INSERT INTO "list" ("id", "value") VALUES (E'XEU', E'unité de compte européenne (ECU)');
INSERT INTO "list" ("id", "value") VALUES (E'MXV', E'unité de conversion mexicaine (UDI)');
INSERT INTO "list" ("id", "value") VALUES (E'ECV', E'unité de valeur constante équatoriale (UVC)');
INSERT INTO "list" ("id", "value") VALUES (E'COU', E'unité de valeur réelle colombienne');
INSERT INTO "list" ("id", "value") VALUES (E'CLF', E'unité d’investissement chilienne');
INSERT INTO "list" ("id", "value") VALUES (E'VUV', E'vatu vanuatuan');
INSERT INTO "list" ("id", "value") VALUES (E'KPW', E'won nord-coréen');
INSERT INTO "list" ("id", "value") VALUES (E'KRW', E'won sud-coréen');
INSERT INTO "list" ("id", "value") VALUES (E'JPY', E'yen japonais');
INSERT INTO "list" ("id", "value") VALUES (E'CNY', E'yuan renminbi chinois');
INSERT INTO "list" ("id", "value") VALUES (E'ZRZ', E'zaïre zaïrois');
INSERT INTO "list" ("id", "value") VALUES (E'PLZ', E'zloty (1950–1995)');
INSERT INTO "list" ("id", "value") VALUES (E'PLN', E'zloty polonais');
|
-- Repositories.{UserId}.db
create table EditingAmounts (
Id integer primary key,
CommitId integer,
LanguageId integer, -- Languages.db Languages.Id
Insertions integer,
Deletions integer,
foreign key CommitId reference Commits(Id)
);
|
<reponame>Farizal97/gaji_tokma
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: 10 Des 2019 pada 15.29
-- Versi Server: 5.6.26
-- PHP Version: 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 */;
--
-- Database: `db_gaji`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `absensi`
--
CREATE TABLE IF NOT EXISTS `absensi` (
`absen_id` int(11) NOT NULL,
`karyawan_id` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`absen_tgl` date NOT NULL,
`absen_masuk` time NOT NULL,
`absen_pulang` time NOT NULL,
`absen_status` enum('Terlambat','Tepat Waktu') NOT NULL,
`absen_jam` double NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `absensi`
--
INSERT INTO `absensi` (`absen_id`, `karyawan_id`, `absen_tgl`, `absen_masuk`, `absen_pulang`, `absen_status`, `absen_jam`) VALUES
(11, 'IMF110895', '2019-12-08', '08:09:00', '16:00:00', 'Terlambat', 4.8),
(12, 'IMF110895', '2019-12-06', '08:09:00', '16:00:00', 'Terlambat', 5.2),
(13, 'JKL0010101', '2019-12-04', '08:00:00', '14:00:00', 'Terlambat', 6),
(14, 'ABC', '2019-12-06', '08:09:00', '16:00:00', 'Terlambat', 8);
-- --------------------------------------------------------
--
-- Struktur dari tabel `admin`
--
CREATE TABLE IF NOT EXISTS `admin` (
`id_adm` int(5) NOT NULL,
`username` varchar(50) COLLATE latin1_general_ci NOT NULL,
`password` varchar(50) COLLATE latin1_general_ci NOT NULL,
`nama_lengkap` varchar(100) COLLATE latin1_general_ci NOT NULL,
`email` varchar(100) COLLATE latin1_general_ci NOT NULL,
`no_telp` varchar(20) COLLATE latin1_general_ci NOT NULL,
`level` varchar(20) COLLATE latin1_general_ci NOT NULL DEFAULT 'user',
`blokir` enum('Y','N') COLLATE latin1_general_ci NOT NULL DEFAULT 'N',
`foto_adm` text COLLATE latin1_general_ci NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data untuk tabel `admin`
--
INSERT INTO `admin` (`id_adm`, `username`, `password`, `nama_lengkap`, `email`, `no_telp`, `level`, `blokir`, `foto_adm`) VALUES
(1, 'admin', '<PASSWORD>', 'Administrator', '<EMAIL>', '08238923848', 'admin', 'N', 'user.jpg');
-- --------------------------------------------------------
--
-- Struktur dari tabel `bonus`
--
CREATE TABLE IF NOT EXISTS `bonus` (
`bonus_id` int(11) NOT NULL,
`karyawan_id` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`bonus_tgl` date NOT NULL,
`bonus_jml` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `bonus`
--
INSERT INTO `bonus` (`bonus_id`, `karyawan_id`, `bonus_tgl`, `bonus_jml`) VALUES
(3, 'IMF110895', '2019-12-08', 240000),
(4, 'IMF110895', '2019-12-08', 10000),
(5, 'ABC', '2019-12-05', 250000),
(6, 'JKL0010101', '2019-12-04', 372000);
-- --------------------------------------------------------
--
-- Struktur dari tabel `jadwal`
--
CREATE TABLE IF NOT EXISTS `jadwal` (
`jadwal_id` int(5) NOT NULL,
`jadwal_nama` varchar(100) NOT NULL,
`jadwal_in` time NOT NULL,
`jadwal_out` time NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `jadwal`
--
INSERT INTO `jadwal` (`jadwal_id`, `jadwal_nama`, `jadwal_in`, `jadwal_out`) VALUES
(14, 'Shift 2', '13:00:00', '21:00:00'),
(13, 'Shift 1', '08:00:00', '17:00:00');
-- --------------------------------------------------------
--
-- Struktur dari tabel `karyawan`
--
CREATE TABLE IF NOT EXISTS `karyawan` (
`karyawan_id` varchar(20) COLLATE latin1_general_ci NOT NULL,
`karyawan_nama` varchar(100) COLLATE latin1_general_ci NOT NULL,
`karyawan_jk` enum('Laki-Laki','Perempuan') COLLATE latin1_general_ci NOT NULL,
`karyawan_alamat` text COLLATE latin1_general_ci NOT NULL,
`karyawan_telp` varchar(20) COLLATE latin1_general_ci NOT NULL,
`karyawan_tgllhr` date NOT NULL,
`karyawan_tptlhr` varchar(100) COLLATE latin1_general_ci NOT NULL,
`karyawan_foto` text COLLATE latin1_general_ci NOT NULL,
`karyawan_masuk` date NOT NULL,
`posisi_id` int(5) NOT NULL,
`jadwal_id` int(5) NOT NULL,
`karyawan_status` enum('Aktif','Nonaktif') COLLATE latin1_general_ci NOT NULL,
`karyawan_create` date NOT NULL,
`id_adm` int(5) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data untuk tabel `karyawan`
--
INSERT INTO `karyawan` (`karyawan_id`, `karyawan_nama`, `karyawan_jk`, `karyawan_alamat`, `karyawan_telp`, `karyawan_tgllhr`, `karyawan_tptlhr`, `karyawan_foto`, `karyawan_masuk`, `posisi_id`, `jadwal_id`, `karyawan_status`, `karyawan_create`, `id_adm`) VALUES
('IMF110895', 'TEST', 'Laki-Laki', 'ASKDJKAJ', '0819283918', '2019-12-31', 'KSDJKA', '04122019081245g.png', '2019-12-31', 9, 13, 'Aktif', '0000-00-00', 1),
('JKL0010101', 'Karyawan Cuy', 'Perempuan', 'Jakrta', '081298391', '2019-12-31', 'Jakarta', '06122019191207g.png', '2019-12-31', 8, 14, 'Aktif', '2019-12-06', 1),
('ABC', 'TESTING', 'Laki-Laki', 'askjhdka', '0909090', '2019-12-11', 'ajksdk', 'askjhdk', '2019-12-10', 9, 14, 'Aktif', '2019-12-10', 1);
-- --------------------------------------------------------
--
-- Struktur dari tabel `kasbon`
--
CREATE TABLE IF NOT EXISTS `kasbon` (
`kasbon_id` int(11) NOT NULL,
`karyawan_id` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL,
`kasbon_tgl` date NOT NULL,
`kasbon_jml` int(11) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `kasbon`
--
INSERT INTO `kasbon` (`kasbon_id`, `karyawan_id`, `kasbon_tgl`, `kasbon_jml`) VALUES
(2, 'IMF110895', '2019-12-06', 9090),
(3, 'IMF110895', '2019-12-08', 30000),
(4, 'JKL0010101', '2019-12-03', 175000);
-- --------------------------------------------------------
--
-- Struktur dari tabel `lembur`
--
CREATE TABLE IF NOT EXISTS `lembur` (
`lembur_id` int(11) NOT NULL,
`lembur_tgl` date NOT NULL,
`lembur_jam` int(2) NOT NULL,
`karyawan_id` varchar(20) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `lembur`
--
INSERT INTO `lembur` (`lembur_id`, `lembur_tgl`, `lembur_jam`, `karyawan_id`) VALUES
(1, '2019-12-08', 2, 'IMF110895'),
(2, '2019-12-07', 3, 'IMF110895'),
(3, '2019-12-04', 6, 'JKL0010101');
-- --------------------------------------------------------
--
-- Struktur dari tabel `posisi`
--
CREATE TABLE IF NOT EXISTS `posisi` (
`posisi_id` int(5) NOT NULL,
`posisi_nama` varchar(100) COLLATE latin1_general_ci NOT NULL,
`posisi_rate` int(10) NOT NULL,
`posisi_lembur` int(11) NOT NULL
) ENGINE=MyISAM AUTO_INCREMENT=12 DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
--
-- Dumping data untuk tabel `posisi`
--
INSERT INTO `posisi` (`posisi_id`, `posisi_nama`, `posisi_rate`, `posisi_lembur`) VALUES
(9, 'Junior Sales', 10000, 8000),
(8, 'IT Support', 15000, 12000);
-- --------------------------------------------------------
--
-- Struktur dari tabel `potongan`
--
CREATE TABLE IF NOT EXISTS `potongan` (
`potongan_id` int(11) NOT NULL,
`potongan_desc` varchar(50) NOT NULL,
`potongan_jml` int(11) NOT NULL,
`id_adm` int(5) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `potongan`
--
INSERT INTO `potongan` (`potongan_id`, `potongan_desc`, `potongan_jml`, `id_adm`) VALUES
(4, 'BPJSTK', 35000, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `absensi`
--
ALTER TABLE `absensi`
ADD PRIMARY KEY (`absen_id`);
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id_adm`);
--
-- Indexes for table `bonus`
--
ALTER TABLE `bonus`
ADD PRIMARY KEY (`bonus_id`);
--
-- Indexes for table `jadwal`
--
ALTER TABLE `jadwal`
ADD PRIMARY KEY (`jadwal_id`);
--
-- Indexes for table `karyawan`
--
ALTER TABLE `karyawan`
ADD PRIMARY KEY (`karyawan_id`);
--
-- Indexes for table `kasbon`
--
ALTER TABLE `kasbon`
ADD PRIMARY KEY (`kasbon_id`);
--
-- Indexes for table `lembur`
--
ALTER TABLE `lembur`
ADD PRIMARY KEY (`lembur_id`);
--
-- Indexes for table `posisi`
--
ALTER TABLE `posisi`
ADD PRIMARY KEY (`posisi_id`);
--
-- Indexes for table `potongan`
--
ALTER TABLE `potongan`
ADD PRIMARY KEY (`potongan_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `absensi`
--
ALTER TABLE `absensi`
MODIFY `absen_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id_adm` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `bonus`
--
ALTER TABLE `bonus`
MODIFY `bonus_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `jadwal`
--
ALTER TABLE `jadwal`
MODIFY `jadwal_id` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `kasbon`
--
ALTER TABLE `kasbon`
MODIFY `kasbon_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `lembur`
--
ALTER TABLE `lembur`
MODIFY `lembur_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `posisi`
--
ALTER TABLE `posisi`
MODIFY `posisi_id` int(5) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `potongan`
--
ALTER TABLE `potongan`
MODIFY `potongan_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
/*!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 */;
|
delete
from alquiler
where id = :id |
<reponame>developersatyendra/jackhammer<filename>dump.sql
-- MySQL dump 10.13 Distrib 5.7.22, for osx10.12 (x86_64)
--
-- Host: localhost Database: jchauth
-- ------------------------------------------------------
-- Server version 5.7.22
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `ActionsRoles`
--
DROP TABLE IF EXISTS `ActionsRoles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ActionsRoles` (
`actionId` int(11) DEFAULT NULL,
`roleId` int(11) DEFAULT NULL,
`createdAt` datetime DEFAULT NULL,
`updatedAt` datetime DEFAULT NULL,
KEY `actionIdIndex` (`actionId`),
KEY `roleIdIndex` (`roleId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ActionsRoles`
--
LOCK TABLES `ActionsRoles` WRITE;
/*!40000 ALTER TABLE `ActionsRoles` DISABLE KEYS */;
/*!40000 ALTER TABLE `ActionsRoles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `actions`
--
DROP TABLE IF EXISTS `actions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `actions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`iconClass` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`isScanTypeModule` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `actions`
--
LOCK TABLES `actions` WRITE;
/*!40000 ALTER TABLE `actions` DISABLE KEYS */;
INSERT INTO `actions` VALUES (1,'Dashboard','fa fa-dashboard','2018-05-17 08:19:20','2018-05-24 08:51:53',1),(2,'Scans','fa fa-search-plus','2018-05-17 08:19:20','2018-05-24 08:51:53',1),(3,'Applications','fa fa-tasks','2018-05-17 08:19:20','2018-05-24 08:51:53',1),(4,'Analytics','fa fa-line-chart','2018-05-17 08:19:20','2018-05-24 08:51:53',1),(5,'Filters','fa fa-filter','2018-05-17 08:19:20','2018-05-24 08:51:53',1),(6,'RBAC','fa fa-users','2018-05-17 08:19:20','2018-05-17 08:19:20',0),(7,'Settings','fa fa-cog','2018-05-17 08:19:20','2018-05-17 08:19:20',0);
/*!40000 ALTER TABLE `actions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `branches`
--
DROP TABLE IF EXISTS `branches`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `branches` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`repo_id` int(11) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `branches`
--
LOCK TABLES `branches` WRITE;
/*!40000 ALTER TABLE `branches` DISABLE KEYS */;
/*!40000 ALTER TABLE `branches` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `comments`
--
DROP TABLE IF EXISTS `comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`findingId` int(11) DEFAULT NULL,
`name` text,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`userId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `findingIdIndex` (`findingId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `comments`
--
LOCK TABLES `comments` WRITE;
/*!40000 ALTER TABLE `comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `defaultRole`
--
DROP TABLE IF EXISTS `defaultRole`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `defaultRole` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`roleId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `defaultRole`
--
LOCK TABLES `defaultRole` WRITE;
/*!40000 ALTER TABLE `defaultRole` DISABLE KEYS */;
INSERT INTO `defaultRole` VALUES (2,68,'2018-06-18 08:33:00','2018-08-29 11:29:34');
/*!40000 ALTER TABLE `defaultRole` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `findings`
--
DROP TABLE IF EXISTS `findings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `findings` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`repoId` int(11) DEFAULT NULL,
`branchId` int(11) DEFAULT NULL,
`current` tinyint(1) DEFAULT NULL,
`name` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`severity` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`fingerprint` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`description` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`toolName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`fileName` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`lineNumber` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`code` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`scanId` int(11) DEFAULT NULL,
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT 'New',
`isFalsePositive` tinyint(1) DEFAULT '0',
`externalLink` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`solution` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`cvssScore` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`userInput` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`scanerInstanceId` int(11) DEFAULT NULL,
`closed_by` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`issue_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`closed_date` date DEFAULT NULL,
`port` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`protocol` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`state` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`product` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`scripts` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`version` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`host` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`request` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`response` text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
`confidence` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`notExploitable` tinyint(1) DEFAULT '0',
`port_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`host_status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`groupId` int(11) DEFAULT NULL,
`userId` int(11) DEFAULT NULL,
`tag_id` int(11) DEFAULT NULL,
`advisory` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`cveCode` varchar(255) DEFAULT NULL,
`cweCode` varchar(255) DEFAULT NULL,
`scanTypeId` int(11) DEFAULT NULL,
`ownerTypeId` int(11) DEFAULT NULL,
`pushedToJira` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `repoIdIndex` (`repoId`),
KEY `scanIdIndex` (`scanId`),
KEY `isFalsePositiveIndex` (`isFalsePositive`),
KEY `notExploitableIndex` (`notExploitable`),
KEY `scanTypeIdIndex` (`scanTypeId`),
KEY `ownerTypeIdIndex` (`ownerTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=1409 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `findings`
--
LOCK TABLES `findings` WRITE;
/*!40000 ALTER TABLE `findings` DISABLE KEYS */;
/*!40000 ALTER TABLE `findings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `findingsTags`
--
DROP TABLE IF EXISTS `findingsTags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `findingsTags` (
`findingId` int(11) DEFAULT NULL,
`tagId` int(11) DEFAULT NULL,
KEY `index_findings_tags_on_finding_id_and_tag_id` (`findingId`,`tagId`),
KEY `index_findings_tags_on_tag_id_and_finding_id` (`tagId`,`findingId`),
KEY `findingIdIndex` (`findingId`),
KEY `tagIdIndex` (`tagId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `findingsTags`
--
LOCK TABLES `findingsTags` WRITE;
/*!40000 ALTER TABLE `findingsTags` DISABLE KEYS */;
/*!40000 ALTER TABLE `findingsTags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `git`
--
DROP TABLE IF EXISTS `git`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `git` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userName` varchar(255) DEFAULT NULL,
`gitEndpoint` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`gitType` varchar(255) DEFAULT NULL,
`apiAccessToken` varchar(255) DEFAULT NULL,
`organizationName` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `git`
--
LOCK TABLES `git` WRITE;
/*!40000 ALTER TABLE `git` DISABLE KEYS */;
/*!40000 ALTER TABLE `git` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groups` (
`ID` int(11) NOT NULL AUTO_INCREMENT,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`name` varchar(255) DEFAULT NULL,
`scanTypeId` int(11) DEFAULT NULL,
PRIMARY KEY (`ID`),
UNIQUE KEY `name` (`name`),
KEY `nameIndex` (`name`),
KEY `scanTypeIdIndex` (`scanTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=169 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `groups`
--
LOCK TABLES `groups` WRITE;
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `groupsRoles`
--
DROP TABLE IF EXISTS `groupsRoles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groupsRoles` (
`groupId` int(11) DEFAULT NULL,
`roleId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
KEY `groupIdIndex` (`groupId`),
KEY `roleIdIndex` (`roleId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `groupsRoles`
--
LOCK TABLES `groupsRoles` WRITE;
/*!40000 ALTER TABLE `groupsRoles` DISABLE KEYS */;
/*!40000 ALTER TABLE `groupsRoles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `groupsUsers`
--
DROP TABLE IF EXISTS `groupsUsers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groupsUsers` (
`userId` int(11) DEFAULT NULL,
`groupId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
KEY `userIdIndex` (`userId`),
KEY `groupIdIndex` (`groupId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `groupsUsers`
--
LOCK TABLES `groupsUsers` WRITE;
/*!40000 ALTER TABLE `groupsUsers` DISABLE KEYS */;
/*!40000 ALTER TABLE `groupsUsers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `hardcodeSecrets`
--
DROP TABLE IF EXISTS `hardcodeSecrets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hardcodeSecrets` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commitsDepth` int(11) DEFAULT NULL,
`commitsStartDate` date DEFAULT NULL,
`regex` text,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `hardcodeSecrets`
--
LOCK TABLES `hardcodeSecrets` WRITE;
/*!40000 ALTER TABLE `hardcodeSecrets` DISABLE KEYS */;
/*!40000 ALTER TABLE `hardcodeSecrets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `jira`
--
DROP TABLE IF EXISTS `jira`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `jira` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host` varchar(255) DEFAULT NULL,
`userName` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`defaultProject` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `jira`
--
LOCK TABLES `jira` WRITE;
/*!40000 ALTER TABLE `jira` DISABLE KEYS */;
/*!40000 ALTER TABLE `jira` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `languages`
--
DROP TABLE IF EXISTS `languages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `languages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`fileExtension` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `languages`
--
LOCK TABLES `languages` WRITE;
/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
INSERT INTO `languages` VALUES (1,'Ruby','rb','2017-12-13 13:19:29','2017-12-18 10:27:42'),(2,'JavaScript','js','2017-12-13 13:19:29','2017-12-18 10:27:50'),(3,'Java','java','2017-12-13 13:19:29','2017-12-18 10:28:08'),(4,'CoffeeScript','coffee','2017-12-13 13:19:30','2017-12-18 10:28:34');
/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notifications`
--
DROP TABLE IF EXISTS `notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notifications` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`critical_count` int(11) DEFAULT NULL,
`high_count` int(11) DEFAULT NULL,
`medium_count` int(11) DEFAULT NULL,
`low_count` int(11) DEFAULT NULL,
`info_count` int(11) DEFAULT NULL,
`critical_email` varchar(250) DEFAULT NULL,
`high_email` varchar(250) DEFAULT NULL,
`medium_email` varchar(250) DEFAULT NULL,
`low_email` varchar(250) DEFAULT NULL,
`info_email` varchar(250) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notifications`
--
LOCK TABLES `notifications` WRITE;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ownerTypes`
--
DROP TABLE IF EXISTS `ownerTypes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ownerTypes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`isDefault` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ownerTypes`
--
LOCK TABLES `ownerTypes` WRITE;
/*!40000 ALTER TABLE `ownerTypes` DISABLE KEYS */;
INSERT INTO `ownerTypes` VALUES (1,'Corporate',1),(2,'Team',0),(3,'Personal',0);
/*!40000 ALTER TABLE `ownerTypes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `permissions`
--
DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=63 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `permissions`
--
LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `permissionsRoles`
--
DROP TABLE IF EXISTS `permissionsRoles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissionsRoles` (
`roleId` int(11) DEFAULT NULL,
`permissionId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `permissionsRoles`
--
LOCK TABLES `permissionsRoles` WRITE;
/*!40000 ALTER TABLE `permissionsRoles` DISABLE KEYS */;
/*!40000 ALTER TABLE `permissionsRoles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `repos`
--
DROP TABLE IF EXISTS `repos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `repos` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`userId` int(11) DEFAULT NULL,
`groupId` int(11) DEFAULT NULL,
`target` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`ownerTypeId` int(11) DEFAULT NULL,
`scanTypeId` int(11) DEFAULT NULL,
`branchId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1188 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `repos`
--
LOCK TABLES `repos` WRITE;
/*!40000 ALTER TABLE `repos` DISABLE KEYS */;
/*!40000 ALTER TABLE `repos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `index_roles_on_name` (`name`),
KEY `index_roles_on_name_and_resource_type_and_resource_id` (`name`),
KEY `nameIndex` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roles`
--
LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` VALUES (60,'Admin','2018-05-21 11:55:50','2018-05-21 11:55:50'),(68,'Dev','2018-05-22 07:07:44','2018-05-22 07:07:44'),(70,'Security Team','2018-08-29 11:28:02','2018-08-29 11:28:02');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rolesTasks`
--
DROP TABLE IF EXISTS `rolesTasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rolesTasks` (
`roleId` int(11) NOT NULL,
`taskId` int(11) NOT NULL,
KEY `roleIdIndex` (`roleId`),
KEY `taskIdIndex` (`taskId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rolesTasks`
--
LOCK TABLES `rolesTasks` WRITE;
/*!40000 ALTER TABLE `rolesTasks` DISABLE KEYS */;
INSERT INTO `rolesTasks` VALUES (70,41),(70,42),(70,43),(70,44),(70,45),(70,46),(70,47),(70,48),(70,49),(70,50),(70,51),(70,52),(70,53),(70,55),(70,56),(70,57),(70,58),(70,59),(70,60),(70,61),(70,118),(60,41),(60,42),(60,43),(60,44),(60,45),(60,46),(60,47),(60,48),(60,49),(60,50),(60,51),(60,52),(60,53),(60,55),(60,56),(60,57),(60,58),(60,59),(60,60),(60,61),(60,62),(60,63),(60,64),(60,65),(60,66),(60,67),(60,68),(60,69),(60,70),(60,71),(60,72),(60,73),(60,74),(60,75),(60,76),(60,77),(60,78),(60,79),(60,80),(60,83),(60,84),(60,85),(60,86),(60,87),(60,88),(60,93),(60,95),(60,98),(60,99),(60,118),(60,124),(60,125),(60,126),(60,127),(60,128),(60,129),(60,130),(60,131),(60,132),(60,133),(60,134),(60,136),(60,137),(60,138),(68,42),(68,43),(68,45),(68,46),(68,48),(68,49),(68,51),(68,52),(68,55),(68,57),(68,58),(68,60),(68,61),(68,124),(68,125),(68,132);
/*!40000 ALTER TABLE `rolesTasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `rolesUsers`
--
DROP TABLE IF EXISTS `rolesUsers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `rolesUsers` (
`roleId` int(11) DEFAULT NULL,
`userId` int(11) DEFAULT NULL,
KEY `roleIdIndex` (`roleId`),
KEY `userIdIndex` (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `rolesUsers`
--
LOCK TABLES `rolesUsers` WRITE;
/*!40000 ALTER TABLE `rolesUsers` DISABLE KEYS */;
INSERT INTO `rolesUsers` VALUES (60,118);
/*!40000 ALTER TABLE `rolesUsers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `scanTools`
--
DROP TABLE IF EXISTS `scanTools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scanTools` (
`scanId` int(11) DEFAULT NULL,
`toolId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`toolInstanceId` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT 'Queued',
KEY `scanIdIndex` (`scanId`),
KEY `toolIdIndex` (`toolId`),
KEY `toolInstanceIdIndex` (`toolInstanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `scanTools`
--
LOCK TABLES `scanTools` WRITE;
/*!40000 ALTER TABLE `scanTools` DISABLE KEYS */;
/*!40000 ALTER TABLE `scanTools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `scanTypes`
--
DROP TABLE IF EXISTS `scanTypes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scanTypes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`isStatic` tinyint(1) DEFAULT '0',
`isWeb` tinyint(1) DEFAULT '0',
`isWordpress` tinyint(1) DEFAULT '0',
`isMobile` tinyint(1) DEFAULT '0',
`isNetwork` tinyint(1) DEFAULT '0',
`isHardCodeSecret` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `nameIndex` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `scanTypes`
--
LOCK TABLES `scanTypes` WRITE;
/*!40000 ALTER TABLE `scanTypes` DISABLE KEYS */;
INSERT INTO `scanTypes` VALUES (4,'Source Code','2018-06-13 09:24:57','2018-06-19 14:12:37',1,0,0,0,0,0),(5,'Web','2017-02-06 08:40:29','2018-06-01 10:38:03',0,1,0,0,0,0),(6,'Wordpress','2017-02-06 08:40:39','2018-06-01 10:37:14',0,0,1,0,0,0),(7,'Mobile','2017-02-06 08:40:48','2018-06-01 10:38:25',0,0,0,1,0,0),(8,'Network','2017-02-06 08:40:57','2018-06-01 10:38:14',0,0,0,0,1,0),(11,'Hardcoded Secret','2017-04-11 05:11:49','2018-06-01 10:38:40',0,0,0,0,0,1);
/*!40000 ALTER TABLE `scanTypes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `scans`
--
DROP TABLE IF EXISTS `scans`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scans` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) DEFAULT NULL,
`target` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`repoId` int(11) DEFAULT NULL,
`status` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`statusReason` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`groupId` int(11) DEFAULT NULL,
`scanTypeId` int(11) DEFAULT NULL,
`totalCount` int(11) DEFAULT '0',
`criticalCount` int(11) DEFAULT '0',
`highCount` int(11) DEFAULT '0',
`mediumCount` int(11) DEFAULT '0',
`lowCount` int(11) DEFAULT '0',
`infoCount` int(11) DEFAULT '0',
`ownerTypeId` int(11) DEFAULT NULL,
`isTaggedTools` tinyint(1) DEFAULT '0',
`endTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`startTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`branch` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`scheduleTypeId` int(11) DEFAULT NULL,
`supported` tinyint(1) DEFAULT '0',
`scanPlatforms` varchar(255) DEFAULT NULL,
`cloneRequired` tinyint(1) DEFAULT '0',
`apkTempFile` varchar(255) DEFAULT NULL,
`lastRunDate` date DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userIdIndex` (`userId`),
KEY `repoIdIndex` (`repoId`),
KEY `groupIdIndex` (`groupId`),
KEY `ownerTypeIdIndex` (`ownerTypeId`),
KEY `scheduleTypeIdIndex` (`scheduleTypeId`),
KEY `scanTypeIdIndex` (`scanTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `scans`
--
LOCK TABLES `scans` WRITE;
/*!40000 ALTER TABLE `scans` DISABLE KEYS */;
/*!40000 ALTER TABLE `scans` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `scheduleTypes`
--
DROP TABLE IF EXISTS `scheduleTypes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `scheduleTypes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`days` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `scheduleTypes`
--
LOCK TABLES `scheduleTypes` WRITE;
/*!40000 ALTER TABLE `scheduleTypes` DISABLE KEYS */;
INSERT INTO `scheduleTypes` VALUES (1,'MONTHLY',30),(2,'WEEKLY',7),(3,'DAILY',1);
/*!40000 ALTER TABLE `scheduleTypes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `severityLevels`
--
DROP TABLE IF EXISTS `severityLevels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `severityLevels` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(60) DEFAULT NULL,
`enabled` tinyint(1) DEFAULT '0',
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`mailIds` text,
`threshHoldCount` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `severityLevels`
--
LOCK TABLES `severityLevels` WRITE;
/*!40000 ALTER TABLE `severityLevels` DISABLE KEYS */;
INSERT INTO `severityLevels` VALUES (1,'High',1,'2018-06-14 07:56:21','2018-08-29 11:26:24',NULL,NULL),(2,'Medium',0,'2018-06-14 07:56:21','2018-08-29 11:26:24',NULL,NULL),(3,'Low',1,'2018-06-14 07:56:21','2018-08-29 11:26:24',NULL,NULL),(4,'Info',1,'2018-06-14 07:56:22','2018-08-29 11:26:24',NULL,NULL),(5,'Critical',1,'2018-06-18 10:29:35','2018-08-29 11:26:24',NULL,NULL);
/*!40000 ALTER TABLE `severityLevels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `smtp`
--
DROP TABLE IF EXISTS `smtp`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `smtp` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`applicationUrl` varchar(255) DEFAULT NULL,
`smtpHost` varchar(255) DEFAULT NULL,
`smtpUserName` varchar(255) DEFAULT NULL,
`smtpPassword` varchar(255) DEFAULT NULL,
`smtpPort` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `smtp`
--
LOCK TABLES `smtp` WRITE;
/*!40000 ALTER TABLE `smtp` DISABLE KEYS */;
/*!40000 ALTER TABLE `smtp` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tags`
--
DROP TABLE IF EXISTS `tags`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tags` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`userId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_tags_on_name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tags`
--
LOCK TABLES `tags` WRITE;
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tasks`
--
DROP TABLE IF EXISTS `tasks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tasks` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`taskRoute` varchar(255) DEFAULT NULL,
`actionId` int(11) NOT NULL,
`parentId` int(11) DEFAULT NULL,
`ownerTypeId` int(11) DEFAULT NULL,
`displayName` varchar(255) DEFAULT NULL,
`apiUrl` varchar(255) DEFAULT NULL,
`method` varchar(60) DEFAULT NULL,
`accessToAll` tinyint(1) DEFAULT '0',
`hideFromUi` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `actionIdIndex` (`actionId`),
KEY `parentIdIndex` (`parentId`),
KEY `ownerTypeIdIndex` (`ownerTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=139 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tasks`
--
LOCK TABLES `tasks` WRITE;
/*!40000 ALTER TABLE `tasks` DISABLE KEYS */;
INSERT INTO `tasks` VALUES (1,'Corporate Dashboard','/dashboard/',1,NULL,1,NULL,NULL,NULL,0,0),(2,'Team Dashboard','/dashboard/',1,NULL,2,NULL,NULL,NULL,0,0),(3,'Personal Dashboard','/dashboard/',1,NULL,3,NULL,NULL,NULL,0,0),(4,'Corporate Scans','/scans/',2,NULL,1,NULL,NULL,NULL,0,0),(5,'Team Scans','/scans/',2,NULL,2,NULL,NULL,NULL,0,0),(6,'Personal Scans','/scans/',2,NULL,3,NULL,NULL,NULL,0,0),(7,'Corporate Applications','/applications/',3,NULL,1,NULL,NULL,NULL,0,0),(9,'Personal Applications','/repos/',3,NULL,3,NULL,NULL,NULL,0,0),(10,'Corporate Analytics','/analytics/',4,NULL,1,NULL,NULL,NULL,0,0),(11,'Team Analytics','/analytics/',4,NULL,2,NULL,NULL,NULL,0,0),(12,'Personal Analytics','/analytics/',4,NULL,3,NULL,NULL,NULL,0,0),(13,'Corporate Filters','/filters/',5,NULL,1,NULL,NULL,NULL,0,0),(14,'Team Filters','/filters/',5,NULL,2,NULL,NULL,NULL,0,0),(15,'Personal Filters','/filters/',5,NULL,3,NULL,NULL,NULL,0,0),(16,'Scan Types','/scan_types',7,NULL,0,NULL,NULL,NULL,0,0),(17,'Tools Configuration','/tools',7,NULL,0,NULL,NULL,NULL,0,0),(19,'Jira Configuration','/jira',7,NULL,0,NULL,NULL,NULL,0,0),(20,'Git Configuration','/git',7,NULL,0,NULL,NULL,NULL,0,0),(21,'Configure Mails','/configure_mail',7,NULL,0,NULL,NULL,NULL,0,0),(22,'SMTP Settings','/smtp_settings',7,NULL,0,NULL,NULL,NULL,0,0),(23,'Users','/users',6,NULL,0,NULL,NULL,NULL,0,0),(24,'Groups','/groups',6,NULL,0,NULL,NULL,NULL,0,0),(25,'Roles','/roles',6,NULL,0,NULL,NULL,NULL,0,0),(41,'Read',NULL,2,4,1,NULL,'/api/v1/app/scans/list','POST',0,0),(42,'Read',NULL,2,5,2,NULL,'/api/v1/app/scans/list','POST',0,0),(43,'Read',NULL,2,6,3,NULL,'/api/v1/app/scans/list','POST',0,0),(44,'Create','/add_scan/1/4',2,4,1,NULL,'/api/v1/app/scans','POST',0,0),(45,'Create','/add_scan/2/4',2,5,2,NULL,'/api/v1/app/scans','POST',0,0),(46,'Create','/add_scan/3/4',2,6,3,NULL,'/api/v1/app/scans','POST',0,0),(47,'Delete',NULL,2,4,1,NULL,'/api/v1/app/scans/{id}','DELETE',0,0),(48,'Delete',NULL,2,5,2,NULL,'/api/v1/app/scans/{id}','DELETE',0,0),(49,'Delete',NULL,2,6,3,NULL,'/api/v1/app/scans/{id}','DELETE',0,0),(50,'Read',NULL,1,1,1,NULL,'/api/v1/app/dashboard/view','POST',0,0),(51,'Read',NULL,1,2,2,NULL,'/api/v1/app/dashboard/view','POST',0,0),(52,'Read',NULL,1,3,3,NULL,'/api/v1/app/dashboard/view','POST',0,0),(53,'Read',NULL,3,7,1,NULL,'/api/v1/app/applications/list','POST',0,0),(55,'Read',NULL,3,9,3,NULL,'/api/v1/app/applications/list','POST',0,0),(56,'Read',NULL,4,10,1,NULL,'/api/v1/app/analytics/view','POST',0,0),(57,'Read',NULL,4,11,2,NULL,'/api/v1/app/analytics/view','POST',0,0),(58,'Read',NULL,4,12,3,NULL,'/api/v1/app/analytics/view','POST',0,0),(59,'Read',NULL,5,13,1,NULL,'/api/v1/app/filters/list','POST',0,0),(60,'Read',NULL,5,14,2,NULL,'/api/v1/app/filters/list','POST',0,0),(61,'Read',NULL,5,15,3,NULL,'/api/v1/app/filters/list','POST',0,0),(62,'Read',NULL,6,23,0,NULL,'/api/v1/app/users/list','POST',0,0),(63,'Delete',NULL,6,23,0,NULL,'/api/v1/app/users/{id}','DELETE',0,0),(64,'Update','/edit_user/',6,23,0,NULL,'/api/v1/app/users/{id}','PUT',0,0),(65,'Create','add_group',6,24,0,NULL,'/api/v1/app/groups','POST',0,0),(66,'Read',NULL,6,24,0,NULL,'/api/v1/app/groups/list','POST',1,0),(67,'Delete',NULL,6,24,0,NULL,'/api/v1/app/groups/{id}','DELETE',0,0),(68,'Update','/edit_group/',6,24,0,NULL,'/api/v1/app/groups/{id}','PUT',0,0),(69,'Create','add_role',6,25,0,NULL,'/api/v1/app/roles','POST',0,0),(70,'Read',NULL,6,25,0,NULL,'/api/v1/app/roles/list','POST',0,0),(71,'Delete',NULL,6,25,0,NULL,'/api/v1/app/roles/{id}','DELETE',0,0),(72,'Update','/edit_role/',6,25,0,NULL,'/api/v1/app/roles/{id}','PUT',0,0),(73,'Create','add_scan_type',7,16,0,NULL,'/api/v1/app/scan_types','POST',0,0),(74,'Read',NULL,7,16,0,NULL,'/api/v1/app/scan_types/list','POST',1,0),(75,'Delete',NULL,7,16,0,NULL,'/api/v1/app/scan_types/{id}','DELETE',0,0),(76,'Update','/edit_scan_type/',7,16,0,NULL,'/api/v1/app/scan_types/{id}','PUT',0,0),(77,'Create','add_tool',7,17,0,NULL,'/api/v1/app/tools','POST',0,0),(78,'Read',NULL,7,17,0,NULL,'/api/v1/app/tools/list','POST',0,0),(79,'Delete',NULL,7,17,0,NULL,'/api/v1/app/tools/{id}','DELETE',0,0),(80,'Update','/edit_tool/',7,17,0,NULL,'/api/v1/app/tools/{id}','PUT',0,0),(83,'Update',NULL,7,19,0,NULL,'/api/v1/app/git/{id}','PUT',0,0),(84,'Read',NULL,7,19,0,NULL,'/api/v1/app/git/{id}','GET',0,0),(85,'Update',NULL,7,20,0,NULL,'/api/v1/app/jira/{id}','PUT',0,0),(86,'Read',NULL,7,20,0,NULL,'/api/v1/app/jira/{id}','GET',0,0),(87,'Update',NULL,7,21,0,NULL,'/api/v1/app/smtp/{id}','PUT',0,0),(88,'Create',NULL,7,21,0,NULL,'/api/v1/app/smtp','POST',0,0),(91,'Tasks List',NULL,0,NULL,0,NULL,'/api/v1/app/tasks/list','POST',1,1),(92,'Signup Role Configuration','/signup_role_configuration',7,NULL,0,NULL,NULL,NULL,0,0),(93,'Update',NULL,7,92,0,NULL,'/api/v1/app/default_role/{id}','PUT',0,0),(94,'Hardcode Secrets Configuration','/hardcode_secrets_configuration',7,NULL,0,NULL,NULL,NULL,0,0),(95,'Create',NULL,7,94,0,NULL,'/api/v1/app/hardcode_secret','POST',0,0),(98,'Create',NULL,7,92,0,NULL,'/api/v1/app/default_role','POST',0,0),(99,'Update',NULL,7,94,0,NULL,'/api/v1/app/hardcode_secret/{id}','PUT',0,0),(101,'Actions List',NULL,0,NULL,0,NULL,'/api/v1/app/actions/list','POST',1,1),(102,'Findings',NULL,2,NULL,0,NULL,NULL,NULL,0,1),(104,'Tags',NULL,2,NULL,0,NULL,NULL,NULL,0,1),(105,'Comments',NULL,2,NULL,0,NULL,NULL,NULL,0,1),(107,'Uploads',NULL,2,NULL,0,NULL,NULL,NULL,0,1),(112,'Repos List',NULL,0,NULL,0,NULL,'/api/v1/app/repos/list','POST',1,1),(113,'Languages List',NULL,0,NULL,0,NULL,'/api/v1/app/languages/list','POST',1,1),(114,'Scheduled Tyles List',NULL,0,NULL,0,NULL,'/api/v1/app/schedule_types/list','POST',1,1),(117,'Executive Dashboard','/excutive_dashboard/',1,NULL,1,NULL,NULL,NULL,0,0),(118,'Read',NULL,1,117,1,NULL,NULL,NULL,0,0),(120,'Logout',NULL,0,NULL,0,NULL,'/api/v1/app/logout','DELETE',1,1),(121,'Change Password',NULL,0,NULL,0,NULL,'/api/v1/app/users/change_password','POST',1,1),(122,'Reset Password Token',NULL,0,NULL,0,NULL,'/api/v1/app/verify_reset_password_token','GET',1,1),(123,'Reset Password',NULL,0,NULL,0,NULL,'/api/v1/app/reset_password','POST',1,1),(124,'List',NULL,2,102,0,NULL,'/api/v1/app/findings/list','POST',0,0),(125,'Update',NULL,2,102,0,NULL,'/api/v1/app/findings/{id}','PUT',0,0),(126,'Create',NULL,2,105,0,NULL,'/api/v1/app/comments','POST',0,0),(127,'Read',NULL,2,105,0,NULL,'/api/v1/app/comments/list','POST',0,0),(128,'Read',NULL,2,107,0,NULL,'/api/v1/app/uploads/list','POST',0,0),(129,'Create',NULL,2,107,0,NULL,'/api/v1/app/uploads','DELETE',0,0),(130,'Read',NULL,2,104,0,NULL,'/api/v1/app/tags/list','POST',0,0),(131,'Create',NULL,2,104,0,NULL,'/api/v1/app/tags','POST',0,0),(132,'View',NULL,2,102,0,NULL,'/api/v1/app/findings/{id}','GET',0,0),(133,'Create',NULL,7,20,0,NULL,'/api/v1/app/git','POST',0,0),(134,'Create',NULL,7,19,0,NULL,'/api/v1/app/jira','POST',0,0),(135,'Create',NULL,7,94,0,NULL,'/api/v1/app/hardcode_secret','POST',0,0),(136,'Update',NULL,2,4,1,NULL,'/api/v1/app/scans/{id}','PUT',0,0),(137,'Update',NULL,2,5,2,NULL,'/api/v1/app/scans/{id}','PUT',0,0),(138,'Update',NULL,2,6,3,NULL,'/api/v1/app/scans/{id}','PUT',0,0);
/*!40000 ALTER TABLE `tasks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `toolInstances`
--
DROP TABLE IF EXISTS `toolInstances`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `toolInstances` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` varchar(255) DEFAULT NULL,
`toolId` int(11) DEFAULT NULL,
`sessionId` varchar(255) DEFAULT NULL,
`platform` varchar(255) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`maxAllowedScans` int(11) DEFAULT '0',
`currentRunningScans` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `toolIdIndex` (`toolId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `toolInstances`
--
LOCK TABLES `toolInstances` WRITE;
/*!40000 ALTER TABLE `toolInstances` DISABLE KEYS */;
/*!40000 ALTER TABLE `toolInstances` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tools`
--
DROP TABLE IF EXISTS `tools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tools` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`languageId` int(11) DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`isEnabled` tinyint(1) DEFAULT '1',
`scanTypeId` int(11) DEFAULT NULL,
`manifestJson` text,
`instanceCount` int(11) DEFAULT NULL,
`status` varchar(65) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `languageIdIndex` (`languageId`),
KEY `scanTypeIdIndex` (`scanTypeId`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tools`
--
LOCK TABLES `tools` WRITE;
/*!40000 ALTER TABLE `tools` DISABLE KEYS */;
/*!40000 ALTER TABLE `tools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `uploads`
--
DROP TABLE IF EXISTS `uploads`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `uploads` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`findingId` int(11) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`file_content_type` varchar(255) DEFAULT NULL,
`file_file_size` int(11) DEFAULT NULL,
`file_updated_at` datetime DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`userId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `findingIdIndex` (`findingId`),
KEY `userIdIndex` (`userId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `uploads`
--
LOCK TABLES `uploads` WRITE;
/*!40000 ALTER TABLE `uploads` DISABLE KEYS */;
/*!40000 ALTER TABLE `uploads` 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` int(11) NOT NULL AUTO_INCREMENT,
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`resetPasswordToken` varchar(255) DEFAULT NULL,
`resetPasswordSentAt` datetime DEFAULT NULL,
`createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`isDeleted` tinyint(1) DEFAULT '0',
`password` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `emailIndex` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=133 DEFAULT CHARSET=utf8;
/*!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 (118,'<EMAIL>',NULL,NULL,'2018-05-22 10:13:24','2018-08-30 04:03:05','jackhammer',0,'$2a$10$ZNZBh9v4xvUGH2W3ST5qR..40OhOwVps4EeKVs50qSSepSUqfcMP6');
/*!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 */;
alter table findings add column modifiedBy varchar(255);
INSERT INTO languages (name,fileExtension) VALUES ('Python','py');
INSERT INTO languages (name,fileExtension) VALUES ('PHP','.php');
insert into groups(name,scanTypeId) values('Web',(select id from scanTypes where name='Web'));
insert into groups(name,scanTypeId) values('Wordpress',(select id from scanTypes where name='Wordpress'));
insert into groups(name,scanTypeId) values('Mobile',(select id from scanTypes where name='Mobile'));
insert into groups(name,scanTypeId) values('Network',(select id from scanTypes where name='Network'));
alter table comments add column isDeleted tinyint(1) default false;
alter table findings add column isDeleted tinyint(1) default false;
alter table scans add column isDeleted tinyint(1) default false;
alter table findingsTags add column isDeleted tinyint(1) default false;
alter table groups add column isDeleted tinyint(1) default false;
alter table groupsRoles add column isDeleted tinyint(1) default false;
alter table groupsUsers add column isDeleted tinyint(1) default false;
alter table roles add column isDeleted tinyint(1) default false;
alter table rolesTasks add column isDeleted tinyint(1) default false;
alter table rolesUsers add column isDeleted tinyint(1) default false;
alter table scanTools add column isDeleted tinyint(1) default false;
alter table tools add column isDeleted tinyint(1) default false;
alter table toolInstances add column isDeleted tinyint(1) default false;
alter table uploads add column isDeleted tinyint(1) default false;
-- Dump completed on 2018-09-19 11:35:46
|
set transaction read committed
begin
selectv * from t10 where id > 20 order by id
commit
|
-- migrate:up
alter table users drop column phone;
alter table users drop column email;
-- migrate:down
alter table users add email VARCHAR(255) after username;
alter table users add phone VARCHAR(50) after email;
|
metadata :name => "bolt_tasks",
:description => "Downloads and runs Puppet Tasks",
:author => "R.I.Pienaar <<EMAIL>>",
:license => "Apache-2.0",
:version => "0.19.0",
:url => "https://choria.io",
:timeout => 60
requires :mcollective => "2.11.0"
action "download", :description => "Downloads a Puppet Task into a local cache" do
input :task,
:prompt => "Task Name",
:description => "The name of a task, example apache or apache::reload",
:type => :string,
:validation => :bolt_task_name,
:optional => false,
:maxlength => 100
input :environment,
:prompt => "Puppet Environment",
:description => "The environment the task should be fetched from",
:type => :string,
:validation => '\A[a-z][a-z0-9_]*\z',
:optional => false,
:default => "production",
:maxlength => 100
input :files,
:prompt => "Task Files Specification",
:description => "The specification of files to download according to v3 api in JSON format",
:type => :string,
:optional => false,
:validation => '\A\[.+\]\z',
:maxlength => 4000
output :downloads,
:description => "The number of files downloaded",
:display_as => "Files Downloaded"
summarize do
aggregate summary(:downloads)
end
end
action "run_and_wait", :description => "Runs a Puppet Task that was previously downloaded, wait for it to finish" do
input :task,
:prompt => "Task Name",
:description => "The name of a task, example apache or apache::reload",
:type => :string,
:validation => :bolt_task_name,
:optional => false,
:maxlength => 100
input :input_method,
:prompt => "Input Method",
:description => "The input method to use",
:type => :list,
:list => ["powershell", "stdin", "environment", "both"],
:optional => true,
:default => nil
input :files,
:prompt => "Task Files Specification",
:description => "The specification of files to download according to v3 api in JSON format",
:type => :string,
:optional => false,
:validation => '\A\[.+\]\z',
:maxlength => 4000
input :input,
:prompt => "Task Input",
:description => "JSON String containing input variables",
:type => :string,
:validation => '^.+$',
:optional => false,
:default => "{}",
:maxlength => 102400
input :run_as,
:prompt => "Run As",
:description => "User to run the task as",
:type => :string,
:validation => ".+",
:optional => true,
:default => nil,
:maxlength => 32
output :task_id,
:description => "The ID the task was created with",
:display_as => "Task ID",
:default => nil
output :task,
:description => "Task name",
:display_as => "Task",
:default => nil
output :callerid,
:description => "User who initiated the task",
:display_as => "User",
:default => nil
output :exitcode,
:description => "Task exit code",
:display_as => "Exit Code",
:default => 127
output :stdout,
:description => "Standard Output from the command",
:display_as => "STDOUT",
:default => nil
output :stderr,
:description => "Standard Error from the command",
:display_as => "STDERR",
:default => nil
output :completed,
:description => "Did the task complete",
:display_as => "Completed",
:default => false
output :runtime,
:description => "Time taken to run the command",
:display_as => "Runtime",
:default => 0
output :start_time,
:description => "When the task was started in UTC time",
:display_as => "Start Time"
summarize do
aggregate average(:runtime)
aggregate summary(:task)
aggregate summary(:callerid)
aggregate summary(:exitcode)
aggregate summary(:completed)
aggregate summary(:task_id)
end
end
action "run_no_wait", :description => "Runs a Puppet Task that was previously downloaded do not wait for it to finish" do
input :task,
:prompt => "Task Name",
:description => "The name of a task, example apache or apache::reload",
:type => :string,
:validation => :bolt_task_name,
:optional => false,
:maxlength => 100
input :input_method,
:prompt => "Input Method",
:description => "The input method to use",
:type => :list,
:list => ["powershell", "stdin", "environment", "both"],
:optional => true,
:default => nil
input :files,
:prompt => "Task Files Specification",
:description => "The specification of files to download according to v3 api in JSON format",
:type => :string,
:optional => false,
:validation => '\A\[.+\]\z',
:maxlength => 4000
input :input,
:prompt => "Task Input",
:description => "JSON String containing input variables",
:type => :string,
:validation => '^.+$',
:optional => true,
:default => "{}",
:maxlength => 102400
input :run_as,
:prompt => "Run As",
:description => "User to run the task as",
:type => :string,
:validation => ".+",
:optional => true,
:default => nil,
:maxlength => 32
output :task_id,
:description => "The ID the task was created with",
:display_as => "Task ID",
:default => nil
summarize do
aggregate summary(:task_id)
end
end
action "task_status", :description => "Request the status of a previously ran task" do
display :always
input :task_id,
:prompt => "Task ID",
:description => "The Task ID to retrieve",
:type => :string,
:validation => '^[a-z,0-9]{32}$',
:optional => false,
:maxlength => 32
output :task,
:description => "Task name",
:display_as => "Task",
:default => nil
output :callerid,
:description => "User who initiated the task",
:display_as => "User",
:default => nil
output :exitcode,
:description => "Task exit code",
:display_as => "Exit Code",
:default => 127
output :stdout,
:description => "Standard Output from the command",
:display_as => "STDOUT",
:default => nil
output :stderr,
:description => "Standard Error from the command",
:display_as => "STDERR",
:default => nil
output :completed,
:description => "Did the task complete",
:display_as => "Completed",
:default => false
output :runtime,
:description => "Time taken to run the command",
:display_as => "Runtime",
:default => 0
output :start_time,
:description => "When the task was started in UTC time",
:display_as => "Start Time"
summarize do
aggregate average(:runtime)
aggregate summary(:task)
aggregate summary(:callerid)
aggregate summary(:exitcode)
aggregate summary(:completed)
end
end
|
<filename>server/database/init.sql
-- @file
-- @brief Database schema script.
-- database/init.sql
--
-- FadZmaq Project
-- Professional Computing. Semester 2 2019
--
-- This script builds our database schema and uploads it with dummy values.
--
-- Copyright FadZmaq © 2019 All rights reserved.
-- @author <NAME> <EMAIL>
-- @author <NAME> <EMAIL>
-- @author <NAME> <EMAIL>
DROP TABLE IF EXISTS user_hobbies;
DROP TABLE IF EXISTS matches;
DROP VIEW IF EXISTS matches_v;
DROP TABLE IF EXISTS votes;
DROP TABLE IF EXISTS hobbies;
DROP TABLE IF EXISTS rating;
DROP TABLE IF EXISTS location_data;
DROP TABLE IF EXISTS profile CASCADE;
DROP TYPE IF EXISTS HOBBY_SWAP;
DROP TRIGGER IF EXISTS make_match ON votes;
DROP FUNCTION IF EXISTS rate_user;
DROP FUNCTION IF EXISTS match;
CREATE TABLE IF NOT EXISTS profile
(
user_id VARCHAR NOT NULL UNIQUE PRIMARY KEY,
nickname VARCHAR(35) NOT NULL,
bio VARCHAR(400) DEFAULT NULL,
dob TIMESTAMP DEFAULT NULL,
email VARCHAR(255) UNIQUE NOT NULL,
phone VARCHAR UNIQUE,
photo VARCHAR DEFAULT NULL,
distance_setting INT DEFAULT 20 NOT NULL
);
CREATE TABLE IF NOT EXISTS matches
(
match_id SERIAL NOT NULL
CONSTRAINT matches_pk PRIMARY KEY,
user_a VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
user_b VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
time TIME,
unmatch BOOLEAN DEFAULT FALSE
);
CREATE TABLE IF NOT EXISTS votes
(
time TIME,
vote BOOLEAN,
user_from VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
user_to VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE
);
CREATE TABLE IF NOT EXISTS hobbies
(
hobby_id SERIAL NOT NULL PRIMARY KEY,
name VARCHAR(64) NOT NULL
);
CREATE TYPE HOBBY_SWAP AS ENUM ('share', 'discover', 'matched');
CREATE TABLE IF NOT EXISTS user_hobbies
(
user_id VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
hobby_id INTEGER NOT NULL REFERENCES hobbies (hobby_id) ON DELETE CASCADE,
swap HOBBY_SWAP NOT NULL
);
CREATE TABLE IF NOT EXISTS location_data
(
device_id VARCHAR DEFAULT NULL,
user_id VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
lat FLOAT NOT NULL,
long FLOAT NOT NULL,
ping_time TIME DEFAULT now()
);
CREATE TABLE IF NOT EXISTS rating
(
user_to VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
user_from VARCHAR NOT NULL REFERENCES profile (user_id) ON DELETE CASCADE,
rate_value INT NOT NULL
);
--------------------------------------------
-- ----------------------------------------
-- FUNCTIONS
-- ----------------------------------------
--------------------------------------------
-- @brief Trigger which matches two uses when mutual votes exist.
CREATE OR REPLACE FUNCTION match()
RETURNS TRIGGER
LANGUAGE plpgsql
AS
$make_match$
BEGIN
IF ((
SELECT v.user_from
FROM votes v
WHERE new.vote
AND v.vote
AND v.user_to = new.user_from
AND new.user_to = v.user_from
LIMIT 1
) NOTNULL
) THEN
INSERT INTO matches (user_a, user_b, time)
VALUES (new.user_from, new.user_to, now());
DELETE FROM votes WHERE user_to = new.user_from
AND user_from = new.user_to;
DELETE FROM votes WHERE user_to = new.user_to
AND user_from = new.user_from;
RETURN NULL;
END IF;
RETURN new;
END;
$make_match$;
-- @brief Activates the match() trigger.
CREATE TRIGGER make_match
BEFORE INSERT OR UPDATE
ON votes
FOR EACH ROW
EXECUTE PROCEDURE match();
-- @brief Creates a trigger that prevents duplicate and conflicting ratings on a user.
CREATE OR REPLACE FUNCTION rate_user()
RETURNS TRIGGER
LANGUAGE plpgsql AS
$rate$
BEGIN
IF (
SELECT user_a
FROM matches
WHERE user_a = new.user_from
AND user_b = new.user_to
OR user_a = new.user_to
AND user_b = new.user_from
LIMIT 1
) IS NULL
THEN
RETURN NULL;
END IF;
IF (
(SELECT rt.user_from
FROM rating rt
WHERE rt.user_from = new.user_from
AND rt.user_to = new.user_to
LIMIT 1
) IS NOT NULL
) THEN
UPDATE rating
SET rate_value=new.rate_value
WHERE user_from = new.user_from
AND user_to = new.user_to;
RETURN NULL;
END IF;
RETURN new;
END;
$rate$;
-- @brief Activates rating trigger.
CREATE TRIGGER rate
BEFORE INSERT
ON rating
FOR EACH ROW
EXECUTE PROCEDURE rate_user();
-- @brief Calculates user compatibility.
-- Using the average rating score it calculates the difference between users.
-- This simulates the elo rating system.
CREATE OR REPLACE FUNCTION compatible_rating(from_user VARCHAR)
RETURNS TABLE
(
user_id VARCHAR,
rank FLOAT
)
AS
$compatible_rating$
SELECT user_to,
their_rank -
(
SELECT AVG(rate_value :: FLOAT) my_rank
FROM rating
WHERE user_to = from_user
GROUP BY user_to
) rank
FROM (
SELECT user_to, AVG(rate_value :: FLOAT) their_rank
FROM rating
GROUP BY user_to
) not_me
ORDER BY rank DESC;
$compatible_rating$
LANGUAGE SQL;
-- -- @brief Calculates hobby compatibility between two users.
-- -- Count number of hobbies for filtering / compatibility score
-- CREATE OR REPLACE FUNCTION compatibility(from_user VARCHAR)
-- RETURNS TABLE
-- (
-- user_id VARCHAR,
-- compat BIGINT
-- )
-- AS
-- $compatability_score$
-- SELECT DISTINCT(user_id),
-- (
-- SELECT COUNT(me.hobby_id) compat
-- FROM user_hobbies me
-- INNER JOIN user_hobbies you
-- ON me.hobby_id = you.hobby_id
-- AND me.swap != you.swap
-- WHERE me.user_id = from_user
-- AND you.user_id = user_hobbies.user_id
-- ) compat
-- FROM user_hobbies
-- WHERE user_id != from_user
-- ORDER BY compat DESC;
-- $compatability_score$
-- LANGUAGE SQL;
-- @brief Calculates hobby compatibility between two users.
-- Count number of hobbies for filtering / compatibility score
CREATE OR REPLACE FUNCTION compatibility(from_user VARCHAR)
RETURNS TABLE
(
user_id VARCHAR,
compat BIGINT
)
AS
$compatability_score$
SELECT coalesce(my_share.user_id, my_discover.user_id) as user_id,
coalesce(count_share, 0) * coalesce(count_discover,0) * 2 + coalesce(count_share, 0) + coalesce(count_discover,0) + coalesce(vote_count * 4,0) AS compat
FROM (
SELECT user_id, Count(user_id) AS count_share
FROM user_hobbies
WHERE hobby_id IN (
SELECT hobby_id
FROM user_hobbies
WHERE user_id = from_user
AND swap = 'share'
)
AND swap = 'discover'
GROUP BY user_id
) my_share
FULL OUTER JOIN (
SELECT user_id, Count(user_id) AS count_discover
FROM user_hobbies
WHERE hobby_id IN (
SELECT hobby_id
FROM user_hobbies
WHERE user_id = from_user
AND swap = 'discover'
)
AND swap = 'share'
GROUP BY user_id
) my_discover
ON (my_share.user_id = my_discover.user_id)
LEFT JOIN (
SELECT user_from, count(user_to) as vote_count
FROM votes
WHERE user_to = from_user
GROUP BY user_from
)votes_for_me
ON (coalesce(my_share.user_id, my_discover.user_id) = user_from)
ORDER BY compat DESC
$compatability_score$
LANGUAGE SQL;
-- @brief Calculates the distance between two users.
-- Adapted from code by: <NAME>
-- GeoDataSource.com (C) All Rights Reserved 2019
-- https://www.geodatasource.com/developers/postgresql
CREATE OR REPLACE FUNCTION calculate_distance(lat1 DOUBLE PRECISION, lon1 DOUBLE PRECISION,
lat2 DOUBLE PRECISION, lon2 DOUBLE PRECISION)
RETURNS FLOAT AS
$dist$
DECLARE
dist FLOAT = 0;
radlat1 FLOAT;
radlat2 FLOAT;
theta FLOAT;
radtheta FLOAT;
BEGIN
radlat1 = (pi() * lat1) / 180;
radlat2 = (pi() * lat2) / 180;
theta = lon1 - lon2;
radtheta = (pi() * theta) / 180;
dist = sin(radlat1) * sin(radlat2) + cos(radlat1) * cos(radlat2) * cos(radtheta);
IF dist > 1 THEN dist = 1; END IF;
dist = acos(dist);
dist = dist * 180 / pi();
dist = dist * 60 * 1.1515;
dist = dist * 1.609344;
-- dist = ROUND((dist / 5) :: numeric, 0) * 5; -- Round to nearest 5
dist = ROUND((dist) :: numeric, 0) ; -- Round to nearest 1
RETURN dist :: DOUBLE PRECISION;
END;
$dist$ LANGUAGE plpgsql;
-- @brief Builds a table of distance values between users.
-- This uses the calculate_distance function to build up a table of approximate distance between users
-- so that this can be used by the matching algorithm.
CREATE OR REPLACE FUNCTION distance_table(from_user VARCHAR)
RETURNS TABLE
(
user_id VARCHAR,
distance DOUBLE PRECISION
)
AS
$distances$
SELECT DISTINCT(user_id), distance
FROM (
SELECT geo_tables.user_id,
calculate_distance(geo_tables.ml,
geo_tables.mlo,
geo_tables.lat,
geo_tables.long
) :: DOUBLE PRECISION AS distance
FROM (
SELECT user_id,
lat,
long,
(
SELECT lat
FROM location_data
WHERE user_id = from_user
ORDER BY ping_time DESC
LIMIT 1
) ml,
(
SELECT long
FROM location_data
WHERE user_id = from_user
ORDER BY ping_time DESC
) mlo
FROM location_data
ORDER BY ping_time DESC
) geo_tables
) distance_tables
WHERE distance_tables.distance < (
SELECT distance_setting
FROM profile
WHERE user_id = from_user
)
$distances$
LANGUAGE SQL;
-- @brief Collates compatibility, ratings and distances of users into a single function for use by the server.
CREATE OR REPLACE FUNCTION matching_algorithm(from_user VARCHAR)
RETURNS TABLE
(
user_id VARCHAR,
distance DOUBLE PRECISION,
hobbies BIGINT,
score DOUBLE PRECISION
)
AS
$matching_algorithm$
SELECT DISTINCT(dt.user_id), dt.distance, hc.compat hobbies, rc.rank score
FROM distance_table(from_user) dt
LEFT OUTER JOIN compatibility(from_user) hc
ON dt.user_id = hc.user_id
LEFT OUTER JOIN compatible_rating(from_user) rc
ON dt.user_id = rc.user_id
WHERE dt.user_id NOT IN (
SELECT user_to FROM votes WHERE user_from = from_user
UNION
SELECT user_a FROM matches WHERE user_b = from_user
UNION
SELECT user_b FROM matches WHERE user_a = from_user
UNION
SELECT user_id FROM profile where user_id = from_user
)
$matching_algorithm$
LANGUAGE SQL;
--------------------------------------------
-- ----------------------------------------
-- Dummy Data
-- ----------------------------------------
--------------------------------------------
-- DOB IN USA (month/day/year)
INSERT INTO profile (bio, nickname, email, dob, phone, user_id, photo)
VALUES ('Avid rock climber and hiking enthusiast.', 'Lachie', '<EMAIL>', '1999-09-04', '0423199199',
'b026324c6904b2a9cb4b88d6d61c81d1',
'https://upload.wikimedia.org/wikipedia/commons/c/ca/AV0A6306_Sean_Bean.jpg');
INSERT INTO profile (bio, nickname, email, dob, phone, user_id, photo)
VALUES ('Casual cyclist looking for social rides.', 'John', '<EMAIL>', '1999-10-4', '0423239199',
'26ab0db90d72e28ad0ba1e22ee510510',
'https://upload.wikimedia.org/wikipedia/commons/9/9b/Good_Omens_panel_at_NYCC_%2860841%29a.jpg');
INSERT INTO profile (bio, nickname, email, dob, phone, user_id, photo)
VALUES ('Boating admirer', 'Smith', '<EMAIL>', '1970-12-5', '0413239199', '6d7fce9fee471194aa8b5b6e47267f03',
'https://upload.wikimedia.org/wikipedia/commons/8/89/Matt_Smith_by_Gage_Skidmore_2.jpg');
INSERT INTO profile (bio, nickname, email, dob, phone, user_id, photo)
VALUES ('Boxing champion', 'Judy', '<EMAIL>', '1980-10-3', '0404239188', '48a24b70a0b376535542b996af517398',
'https://upload.wikimedia.org/wikipedia/commons/5/51/Jeffrey_Wright_by_Gage_Skidmore_3.jpg');
INSERT INTO profile (bio, nickname, email, dob, phone, user_id, photo)
VALUES ('I dont have hobbies but keen to find something new', 'Mike', '<EMAIL>', '1980-09-14', '0415239188',
'1dcca23355272056f04fe8bf20edfce0',
'https://upload.wikimedia.org/wikipedia/commons/thumb/6/61/Sam_Neill_2010.jpg/435px-Sam_Neill_2010.jpg');
-- Inserting user data for ourselves --
INSERT INTO profile (user_id, nickname, bio, dob, email, phone, photo)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'Lachie', 'Mountain biker but wanting to try out rock climbing!', '1999-09-14',
'<EMAIL>',
'04152122188',
'https://upload.wikimedia.org/wikipedia/commons/f/fd/Christopher_Plummer_2014.jpg');
INSERT INTO profile (user_id, nickname, bio, dob, email, phone, photo)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 'Jordan',
'Jordan has a background in graphic design and user experience. He ' ||
'will help with how the app looks, feels and overall use.',
'1990-05-13', '<EMAIL>',
'0400100300',
'https://www.russell-systems.cc/other/f75c35fbefffb759903f4de04fbc168eccaea0619b1f3611a2ee6f2872b397c7.jpg');
INSERT INTO profile (user_id, nickname, bio, dob, email, phone, photo)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 'Seharsh', 'Seharsh has developed a number of mobile apps and has the most' ||
' front end experience of the team. His experience puts him in ' ||
'the position to help with technical and design decisions relating ' ||
'to the mobile platform.'
, '1998-04-24', '<EMAIL>',
'0400100400',
'https://www.russell-systems.cc/other/3ef06fabbfa1be08fcd50dded3450258e357e08e8d75f0aa544ca69e7808ff3b.jpg');
INSERT INTO profile (user_id, nickname, bio, dob, email, phone, photo)
VALUES ('HJtnPGdccnbqsR1V0hWSJe9AWFx1', 'Thiren',
'Thiren is the primary contact point for the team, he will organise' ||
' our meetings keep track of a technical queries and responses on ' ||
'behalf of the team.', '1998-09-8', '<EMAIL>',
'0400100500',
'https://www.russell-systems.cc/other/ceac483c49a4b8c2c03e4eb3b7e213b8746b996bb7dd30468e0ea6044710a648.jpg');
-- INSERT INTO hobbies (name)
-- VALUES ('Boxing');
-- INSERT INTO hobbies (name)
-- VALUES ('Boating');
-- INSERT INTO hobbies (name)
-- VALUES ('Rock Climbing');
-- INSERT INTO hobbies (name)
-- VALUES ('Hiking');
-- INSERT INTO hobbies (name)
-- VALUES ('Golf');
-- INSERT INTO hobbies (name)
-- VALUES ('Surfing');
-- INSERT INTO hobbies (name)
-- VALUES ('Cycling');
INSERT INTO hobbies (name)
VALUES ('3D printing'), ('Board games'), ('Calligraphy'), ('Cooking'), ('Crocheting'), ('Cryptography'), ('Dance'), ('Drawing'), ('Embroidery'),
('Jewelry making'), ('Juggling'), ('Knitting'), ('Magic'), ('Painting'), ('Pottery'), ('Quilting'), ('Sculpting'), ('Sewing'), ('Singing'),
('Soapmaking'), ('Wood Carving'), ('Woodworking'), ('Writing'), ('Archery'), ('Astronomy'), ('Baseball'), ('Basketball'), ('Beekeeping'), ('Bird watching'),
('Cycling'), ('Fishing'),('Gardening'), ('Hiking'), ('Inline skating'), ('Jogging'), ('Kayaking'), ('Kitesurfing'), ('Mountain biking'), ('Netball'),
('Paintball'), ('Parkour'), ('Photography'), ('Rock climbing'), ('Rugby'), ('Running'), ('Sailing'), ('Scuba diving'), ('Rowing'), ('Skateboarding'), ('Skiing'),
('Snowboarding'), ('Surfing'), ('Swimming'), ('Taekwondo'), ('Tai chi');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', 3, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', 2, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', 5, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', 3, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', 4, 'discover');
-- Test data for matches (John has three, a few others have one with him)
INSERT INTO matches (user_a, user_b)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', '6d7fce9fee471194aa8b5b6e47267f03');
INSERT INTO matches (user_a, user_b)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', 'b026324c6904b2a9cb4b88d6d61c81d1');
INSERT INTO matches (user_a, user_b)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', '48a24b70a0b376535542b996af517398');
--------------------------------------------
-- ----------------------------------------
-- DUMMY USER DATA FOR THE TEAM
-- ----------------------------------------
--------------------------------------------
-- Lachie
INSERT INTO matches (user_a, user_b, time)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', '26ab0db90d72e28ad0ba1e22ee510510', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'b026324c6904b2a9cb4b88d6d61c81d1', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'OQezYUwFC2P2JOP81nicQR4qZRB3', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'C0j9nlTcBaWXmNACgwtnNds0Q3A2', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'HJtnPGdccnbqsR1V0hWSJe9AWFx1', now());
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 1, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 2, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 3, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 4, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 6, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 4, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 5, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 6, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 1, 'share');
-- Jordan
INSERT INTO matches (user_a, user_b, time)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', '26ab0db90d72e28ad0ba1e22ee510510', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 'b026324c6904b2a9cb4b88d6d61c81d1', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 'TMnFU6BmQoV8kSMoYYGLJDu8qSy1', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 'C0j9nlTcBaWXmNACgwtnNds0Q3A2', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 'HJtnPGdccnbqsR1V0hWSJe9AWFx1', now());
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 2, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 6, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 3, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 4, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 7, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 5, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 6, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3', 2, 'share');
-- Seharsh
INSERT INTO matches (user_a, user_b, time)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', '26ab0db90d72e28ad0ba1e22ee510510', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 'b026324c6904b2a9cb4b88d6d61c81d1', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 'TMnFU6BmQoV8kSMoYYGLJDu8qSy1', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 'OQezYUwFC2P2JOP81nicQR4qZRB3', now());
INSERT INTO matches (user_a, user_b, time)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 'HJtnPGdccnbqsR1V0hWSJe9AWFx1', now());
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 1, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 6, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 3, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 4, 'discover');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 1, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 5, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 6, 'share');
INSERT INTO user_hobbies (user_id, hobby_id, swap)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2', 2, 'share');
-- FAKE VOTES
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, 'b026324c6904b2a9cb4b88d6d61c81d1', '26ab0db90d72e28ad0ba1e22ee510510');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '26ab0db90d72e28ad0ba1e22ee510510', 'b026324c6904b2a9cb4b88d6d61c81d1');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '6d7fce9fee471194aa8b5b6e47267f03', '48a24b70a0b376535542b996af517398');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, 'b026324c6904b2a9cb4b88d6d61c81d1', '48a24b70a0b376535542b996af517398');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), FALSE, 'b026324c6904b2a9cb4b88d6d61c81d1', '6d7fce9fee471194aa8b5b6e47267f03');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '48a24b70a0b376535542b996af517398', 'b026324c6904b2a9cb4b88d6d61c81d1');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '6d7fce9fee471194aa8b5b6e47267f03', '26ab0db90d72e28ad0ba1e22ee510510');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '48a24b70a0b376535542b996af517398', '6d7fce9fee471194aa8b5b6e47267f03');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '6d7fce9fee471194aa8b5b6e47267f03', '48a24b70a0b376535542b996af517398');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '6d7fce9fee471194aa8b5b6e47267f03', 'b026324c6904b2a9cb4b88d6d61c81d1');
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, 'b026324c6904b2a9cb4b88d6d61c81d1', '26ab0db90d72e28ad0ba1e22ee510510'); -- Repeat match
INSERT INTO votes (time, vote, user_from, user_to)
VALUES (now(), TRUE, '26ab0db90d72e28ad0ba1e22ee510510', 'b026324c6904b2a9cb4b88d6d61c81d1');
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', '26ab0db90d72e28ad0ba1e22ee510510', 0);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'OQezYUwFC2P2JOP81nicQR4qZRB3', 1);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1', 'b026324c6904b2a9cb4b88d6d61c81d1', 1);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', 'b026324c6904b2a9cb4b88d6d61c81d1', 1);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', '6d7fce9fee471194aa8b5b6e47267f03', 0);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', 'b026324c6904b2a9cb4b88d6d61c81d1', 1);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', '6d7fce9fee471194aa8b5b6e47267f03', 0);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('48a24b70a0b376535542b996af517398', '6d7fce9fee471194aa8b5b6e47267f03', 0);
INSERT INTO rating (user_to, user_from, rate_value)
VALUES ('48a24b70a0b376535542b996af517398', 'b026324c6904b2a9cb4b88d6d61c81d1', 1);
-- FAKE LOCATION -31.98, 115.82 UWA
INSERT INTO location_data (user_id, lat, long)
VALUES ('26ab0db90d72e28ad0ba1e22ee510510', -31.95, 115.81);
INSERT INTO location_data (user_id, lat, long)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', -31.98, 115.83);
INSERT INTO location_data (user_id, lat, long)
VALUES ('6d7fce9fee471194aa8b5b6e47267f03', -31.97, 115.82);
INSERT INTO location_data (user_id, lat, long)
VALUES ('b026324c6904b2a9cb4b88d6d61c81d1', -31.95, 115.87);
INSERT INTO location_data (user_id, lat, long)
VALUES ('48a24b70a0b376535542b996af517398', -31.88, 115.76);
INSERT INTO location_data (user_id, lat, long)
VALUES ('C0j9nlTcBaWXmNACgwtnNds0Q3A2' , -31.89, 115.79);
INSERT INTO location_data (user_id, lat, long)
VALUES ('OQezYUwFC2P2JOP81nicQR4qZRB3' , -31.92, 115.83);
INSERT INTO location_data (user_id, lat, long)
VALUES ('TMnFU6BmQoV8kSMoYYGLJDu8qSy1' , -31.96, 115.85);
-- TEST FUNCTION CALLS
SELECT *
FROM compatibility('TMnFU6BmQoV8kSMoYYGLJDu8qSy1');
SELECT *
FROM distance_table('TMnFU6BmQoV8kSMoYYGLJDu8qSy1');
SELECT *
FROM compatible_rating('TMnFU6BmQoV8kSMoYYGLJDu8qSy1');
SELECT *
FROM matching_algorithm('TMnFU6BmQoV8kSMoYYGLJDu8qSy1');
|
CREATE TABLE OrdenesDeCompra(
IdOrdenDeCompra INT IDENTITY(1,1),
FechaLiberacion DATE NOT NULL,
IdSolicitante INT NOT NULL,
IdEjecutor INT NOT NULL,
IdNodo INT NOT NULL,
IdResponsable INT NOT NULL,
IdPlanificaTarea INT NOT NULL,
Descripcion VARCHAR(1000) NOT NULL,
CONSTRAINT PK_OrdenesDeCompra PRIMARY KEY (IdOrdenDeCompra),
CONSTRAINT FK_OrdenesDeCompra_Usuarios_Solicitante FOREIGN KEY (IdSolicitante) REFERENCES Usuarios (IdUsuario),
CONSTRAINT FK_OrdenesDeCompra_Usuarios_Ejecutor FOREIGN KEY (IdEjecutor) REFERENCES Usuarios (IdUsuario),
CONSTRAINT FK_OrdenesDeCompra_Usuarios_Responsable FOREIGN KEY (IdResponsable) REFERENCES Usuarios (IdUsuario),
CONSTRAINT FK_OrdenesDeCompra_Usuarios_PlanificaTarea FOREIGN KEY (IdPlanificaTarea) REFERENCES Usuarios (IdUsuario),
CONSTRAINT FK_OrdenesDeCompra_Nodos FOREIGN KEY (IdNodo) REFERENCES Nodos (IdNodo),
);
DELETE FROM OperacionAccionPerfil
WHERE IdOperacion = 7;
DELETE FROM Operacion
WHERE IdOperacion = 7;
SET IDENTITY_INSERT cedna.dbo.OperacionAccionPerfil ON;
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(89, 6, 7, 4, '', 'logout', 11, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(90, 33, 1, 4, '', 'index', 2, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(91, 33, 7, 4, '', 'logout', 11, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(92, 33, 4, 4, '', 'ordenes-de-compra/alta', 9, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(93, 33, 6, 4, 'preEditar()', '', 6, 'botonEditar');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(94, 33, 5, 4, 'preBorrar()', '', 7, 'botonBorrar');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(95, 34, 1, 4, '', 'ordenes-de-compra', 2, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(96, 34, 7, 4, '', 'logout', 11, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(97, 34, 2, 4, 'preSubmit()', '', 9, 'botonGuardar');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(98, 35, 1, 4, '', 'ordenes-de-compra', 2, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(99, 35, 7, 4, '', 'logout', 11, '');
INSERT INTO cedna.dbo.OperacionAccionPerfil
(Id, IdOperacion, IdAccion, IdPerfil, jsFunction, urlDestino, ordenUbicacion, idHTMLElement)
VALUES(100, 35, 2, 4, 'preSubmit()', '', 9, 'botonGuardar');
SET IDENTITY_INSERT cedna.dbo.OperacionAccionPerfil Off;
INSERT INTO ajustes(script, diahora, spring, fix) VALUES ('27.sql', GETDATE ( ), 0, 27); |
/*
Navicat Premium Data Transfer
Source Server : localhost
Source Server Type : MySQL
Source Server Version : 50527
Source Host : localhost
Source Database : ihasy
Target Server Type : MySQL
Target Server Version : 50527
File Encoding : utf-8
Date: 01/02/2013 18:26:36 PM
*/
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `favorite`
-- ----------------------------
DROP TABLE IF EXISTS `favorite`;
CREATE TABLE `favorite` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`owner_user_id` int(11) DEFAULT NULL,
`involved_type` int(11) DEFAULT NULL,
`involved_topic_id` int(11) DEFAULT NULL,
`involved_reply_id` int(11) DEFAULT NULL,
`created` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `node`
-- ----------------------------
DROP TABLE IF EXISTS `node`;
CREATE TABLE `node` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text,
`slug` text,
`thumb` text,
`introduction` text,
`created` text,
`updated` text,
`plane_id` int(11) DEFAULT NULL,
`topic_count` int(11) DEFAULT NULL,
`custom_style` text,
`limit_reputation` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `notification`
-- ----------------------------
DROP TABLE IF EXISTS `notification`;
CREATE TABLE `notification` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
`status` int(11) DEFAULT NULL,
`involved_type` int(11) DEFAULT NULL,
`involved_user_id` int(11) DEFAULT NULL,
`involved_topic_id` int(11) DEFAULT NULL,
`involved_reply_id` int(11) DEFAULT NULL,
`trigger_user_id` int(11) DEFAULT NULL,
`occurrence_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=255 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `plane`
-- ----------------------------
DROP TABLE IF EXISTS `plane`;
CREATE TABLE `plane` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` text,
`created` text,
`updated` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `reply`
-- ----------------------------
DROP TABLE IF EXISTS `reply`;
CREATE TABLE `reply` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`topic_id` int(11) DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`content` text,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`up_vote` int(11) DEFAULT NULL,
`down_vote` int(11) DEFAULT NULL,
`last_touched` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=181 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `topic`
-- ----------------------------
DROP TABLE IF EXISTS `topic`;
CREATE TABLE `topic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` text,
`content` text,
`status` int(11) DEFAULT NULL,
`hits` int(11) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`node_id` int(11) DEFAULT NULL,
`author_id` int(11) DEFAULT NULL,
`reply_count` int(11) DEFAULT NULL,
`last_replied_by` text,
`last_replied_time` datetime DEFAULT NULL,
`up_vote` int(11) DEFAULT NULL,
`down_vote` int(11) DEFAULT NULL,
`last_touched` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8;
delimiter ;;
CREATE TRIGGER `topic_delete_trigger` BEFORE DELETE ON `topic` FOR EACH ROW BEGIN
DELETE FROM reply WHERE reply.topic_id = OLD.id;
DELETE FROM notification WHERE notification.involved_topic_id = OLD.id;
END;
;;
delimiter ;
-- ----------------------------
-- Table structure for `transaction`
-- ----------------------------
DROP TABLE IF EXISTS `transaction`;
CREATE TABLE `transaction` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`type` int(11) DEFAULT NULL,
`reward` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`current_balance` int(11) DEFAULT NULL,
`involved_user_id` int(11) DEFAULT NULL,
`involved_topic_id` int(11) DEFAULT NULL,
`involved_reply_id` int(11) DEFAULT NULL,
`occurrence_time` text,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `user`
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`uid` int(11) NOT NULL AUTO_INCREMENT,
`email` text,
`password` text,
`username` text,
`nickname` text,
`avatar` text,
`signature` text,
`location` text,
`website` text,
`company` text,
`role` int(11) DEFAULT NULL,
`balance` int(11) DEFAULT NULL,
`reputation` int(11) DEFAULT NULL,
`self_intro` text,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`twitter` text,
`github` text,
`douban` text,
`last_login` datetime DEFAULT NULL,
PRIMARY KEY (`uid`)
) ENGINE=MyISAM AUTO_INCREMENT=169 DEFAULT CHARSET=utf8;
delimiter ;;
CREATE TRIGGER `user_delete_trigger` BEFORE DELETE ON `user` FOR EACH ROW BEGIN
DELETE FROM topic WHERE topic.author_id = OLD.uid;
DELETE FROM reply WHERE reply.author_id = OLD.uid;
DELETE FROM notification WHERE notification.trigger_user_id = OLD.uid;
DELETE FROM notification WHERE notification.involved_user_id = OLD.uid;
END;
;;
delimiter ;
-- ----------------------------
-- Table structure for `vote`
-- ----------------------------
DROP TABLE IF EXISTS `vote`;
CREATE TABLE `vote` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`status` int(11) DEFAULT NULL,
`involved_type` int(11) DEFAULT NULL,
`involved_user_id` int(11) DEFAULT NULL,
`involved_topic_id` int(11) DEFAULT NULL,
`involved_reply_id` int(11) DEFAULT NULL,
`trigger_user_id` int(11) DEFAULT NULL,
`occurrence_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
|
<gh_stars>1-10
TRUNCATE `Documents`;
INSERT INTO Documents VALUES (1, 'The World of Null-A', 'Book', 55, null);
INSERT INTO Documents VALUES (2, 'Le Progres de Lyon', 'Newspaper', null , 'Lyon');
INSERT INTO Documents VALUES (3, 'Lord of the Rings', 'Book', 3587, null);
INSERT INTO Documents VALUES (4, 'Le Canard enchaine', 'Tabloid', null , 'Paris');
INSERT INTO Documents VALUES (5, 'Le Monde', 'Broadsheet', null , 'Paris');
INSERT INTO Documents VALUES (6, 'Foundation', 'Monograph', 557, null);
|
<reponame>kamrul-suhel/rhino
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 13, 2019 at 05:09 PM
-- Server version: 5.7.25
-- PHP Version: 7.3.1
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: `database`
--
-- --------------------------------------------------------
--
-- Table structure for table `appointments`
--
CREATE TABLE `appointments` (
`id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`start` datetime NOT NULL,
`end` datetime 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 `appointment_event`
--
CREATE TABLE `appointment_event` (
`id` bigint(20) UNSIGNED NOT NULL,
`appointment_id` bigint(20) UNSIGNED NOT NULL,
`event_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 `brands`
--
CREATE TABLE `brands` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`colour` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_id` bigint(20) UNSIGNED DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `brand_dealership`
--
CREATE TABLE `brand_dealership` (
`id` bigint(20) UNSIGNED NOT NULL,
`brand_id` bigint(20) UNSIGNED NOT NULL,
`dealership_id` bigint(20) UNSIGNED NOT NULL,
`region_id` bigint(20) UNSIGNED DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `brand_event`
--
CREATE TABLE `brand_event` (
`id` bigint(20) UNSIGNED NOT NULL,
`brand_id` bigint(20) UNSIGNED NOT NULL,
`event_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 `brand_user`
--
CREATE TABLE `brand_user` (
`id` bigint(20) UNSIGNED NOT NULL,
`brand_id` bigint(20) UNSIGNED NOT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`dealership_id` bigint(20) UNSIGNED NOT NULL,
`new` tinyint(1) NOT NULL,
`used` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `companies`
--
CREATE TABLE `companies` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`flag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`driver_seating_position` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `dealerships`
--
CREATE TABLE `dealerships` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`latitude` double(9,6) DEFAULT NULL,
`longitude` double(9,6) DEFAULT NULL,
`address_line_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_5` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_6` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postcode` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`monday_start` time NOT NULL,
`monday_end` time NOT NULL,
`tuesday_start` time NOT NULL,
`tuesday_end` time NOT NULL,
`wednesday_start` time NOT NULL,
`wednesday_end` time NOT NULL,
`thursday_start` time NOT NULL,
`thursday_end` time NOT NULL,
`friday_start` time NOT NULL,
`friday_end` time NOT NULL,
`saturday_start` time NOT NULL,
`saturday_end` time NOT NULL,
`sunday_start` time NOT NULL,
`sunday_end` time NOT NULL,
`group_id` bigint(20) UNSIGNED DEFAULT NULL,
`country_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 `dealership_user`
--
CREATE TABLE `dealership_user` (
`id` bigint(20) UNSIGNED NOT NULL,
`dealership_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;
-- --------------------------------------------------------
--
-- Table structure for table `events`
--
CREATE TABLE `events` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`start` date NOT NULL,
`end` date NOT NULL,
`dealership_id` bigint(20) UNSIGNED NOT NULL,
`type_id` bigint(20) UNSIGNED NOT NULL,
`default_language` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`active` tinyint(1) NOT NULL,
`notes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`greeting` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `event_vehicle`
--
CREATE TABLE `event_vehicle` (
`id` bigint(20) UNSIGNED NOT NULL,
`event_id` bigint(20) UNSIGNED NOT NULL,
`vehicle_id` bigint(20) UNSIGNED NOT NULL,
`new` tinyint(1) NOT NULL,
`used` tinyint(1) NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`order` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `groups`
--
CREATE TABLE `groups` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `guests`
--
CREATE TABLE `guests` (
`id` bigint(20) UNSIGNED NOT NULL,
`unique` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`firstname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`surname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_1` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_2` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_3` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_4` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_5` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_line_6` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`postcode` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`landline` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`event_id` bigint(20) UNSIGNED NOT NULL,
`appointment_id` bigint(20) UNSIGNED DEFAULT NULL,
`new` tinyint(1) NOT NULL,
`used` tinyint(1) NOT NULL,
`part_ex_vrm` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_ex_vehicle` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_ex_distance` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_ex_settlement` tinyint(1) NOT NULL,
`confirmation_letter_sent` tinyint(1) NOT NULL,
`postal_contact` tinyint(1) NOT NULL,
`email_contact` tinyint(1) NOT NULL,
`sms_contact` tinyint(1) NOT NULL,
`method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_logged_in` datetime NOT NULL,
`stage` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `guest_vehicle`
--
CREATE TABLE `guest_vehicle` (
`id` bigint(20) UNSIGNED NOT NULL,
`guest_id` bigint(20) UNSIGNED NOT NULL,
`vehicle_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 `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(21, '2014_10_12_100000_create_password_resets_table', 1),
(22, '2019_11_10_023605_create_companies_table', 1),
(23, '2019_11_10_023745_create_brands_table', 1),
(24, '2019_11_10_024423_create_countries_table', 1),
(25, '2019_11_10_025728_create_regions_table', 1),
(26, '2019_11_10_030520_create_groups_table', 1),
(27, '2019_11_10_045548_create_dealerships_table', 1),
(28, '2019_11_10_045616_create_types_table', 1),
(29, '2019_11_10_045816_create_events_table', 1),
(30, '2019_11_10_050000_create_users_table', 1),
(31, '2019_11_10_050100_create_appointments_table', 1),
(32, '2019_11_10_050101_create_appointment_event_table', 1),
(33, '2019_11_10_050136_create_guests_table', 1),
(34, '2019_11_10_052129_create_vehicles_table', 1),
(35, '2019_11_11_030753_create_brand_dealership_table', 1),
(36, '2019_11_11_031148_create_brand_event_table', 1),
(37, '2019_11_11_032000_create_brand_user_table', 1),
(38, '2019_11_11_032609_create_dealership_user_table', 1),
(39, '2019_11_11_035403_create_event_vehicle_table', 1),
(40, '2019_11_11_062459_create_guest_vehicle_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `regions`
--
CREATE TABLE `regions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`brand_id` bigint(20) UNSIGNED NOT NULL,
`country_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 `types`
--
CREATE TABLE `types` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`unique` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`firstname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`surname` 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,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`level` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notes` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`send_mail` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `vehicles`
--
CREATE TABLE `vehicles` (
`id` bigint(20) UNSIGNED NOT NULL,
`model` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`driver_seating_position_left_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`driver_seating_position_right_image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`brand_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;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `appointments`
--
ALTER TABLE `appointments`
ADD PRIMARY KEY (`id`),
ADD KEY `appointments_user_id_foreign` (`user_id`);
--
-- Indexes for table `appointment_event`
--
ALTER TABLE `appointment_event`
ADD PRIMARY KEY (`id`),
ADD KEY `appointment_event_appointment_id_foreign` (`appointment_id`),
ADD KEY `appointment_event_event_id_foreign` (`event_id`);
--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
ADD PRIMARY KEY (`id`),
ADD KEY `brands_company_id_foreign` (`company_id`);
--
-- Indexes for table `brand_dealership`
--
ALTER TABLE `brand_dealership`
ADD PRIMARY KEY (`id`),
ADD KEY `brand_dealership_brand_id_foreign` (`brand_id`),
ADD KEY `brand_dealership_dealership_id_foreign` (`dealership_id`),
ADD KEY `brand_dealership_region_id_foreign` (`region_id`);
--
-- Indexes for table `brand_event`
--
ALTER TABLE `brand_event`
ADD PRIMARY KEY (`id`),
ADD KEY `brand_event_brand_id_foreign` (`brand_id`),
ADD KEY `brand_event_event_id_foreign` (`event_id`);
--
-- Indexes for table `brand_user`
--
ALTER TABLE `brand_user`
ADD PRIMARY KEY (`id`),
ADD KEY `brand_user_brand_id_foreign` (`brand_id`),
ADD KEY `brand_user_user_id_foreign` (`user_id`),
ADD KEY `brand_user_dealership_id_foreign` (`dealership_id`);
--
-- Indexes for table `companies`
--
ALTER TABLE `companies`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `dealerships`
--
ALTER TABLE `dealerships`
ADD PRIMARY KEY (`id`),
ADD KEY `dealerships_group_id_foreign` (`group_id`),
ADD KEY `dealerships_country_id_foreign` (`country_id`);
--
-- Indexes for table `dealership_user`
--
ALTER TABLE `dealership_user`
ADD PRIMARY KEY (`id`),
ADD KEY `dealership_user_dealership_id_foreign` (`dealership_id`),
ADD KEY `dealership_user_user_id_foreign` (`user_id`);
--
-- Indexes for table `events`
--
ALTER TABLE `events`
ADD PRIMARY KEY (`id`),
ADD KEY `events_dealership_id_foreign` (`dealership_id`),
ADD KEY `events_type_id_foreign` (`type_id`);
--
-- Indexes for table `event_vehicle`
--
ALTER TABLE `event_vehicle`
ADD PRIMARY KEY (`id`),
ADD KEY `event_vehicle_event_id_foreign` (`event_id`),
ADD KEY `event_vehicle_vehicle_id_foreign` (`vehicle_id`);
--
-- Indexes for table `groups`
--
ALTER TABLE `groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `guests`
--
ALTER TABLE `guests`
ADD PRIMARY KEY (`id`),
ADD KEY `guests_event_id_foreign` (`event_id`),
ADD KEY `guests_appointment_id_foreign` (`appointment_id`);
--
-- Indexes for table `guest_vehicle`
--
ALTER TABLE `guest_vehicle`
ADD PRIMARY KEY (`id`),
ADD KEY `guest_vehicle_guest_id_foreign` (`guest_id`),
ADD KEY `guest_vehicle_vehicle_id_foreign` (`vehicle_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `regions`
--
ALTER TABLE `regions`
ADD PRIMARY KEY (`id`),
ADD KEY `regions_brand_id_foreign` (`brand_id`),
ADD KEY `regions_country_id_foreign` (`country_id`);
--
-- Indexes for table `types`
--
ALTER TABLE `types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- Indexes for table `vehicles`
--
ALTER TABLE `vehicles`
ADD PRIMARY KEY (`id`),
ADD KEY `vehicles_brand_id_foreign` (`brand_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `appointments`
--
ALTER TABLE `appointments`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `appointment_event`
--
ALTER TABLE `appointment_event`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brand_dealership`
--
ALTER TABLE `brand_dealership`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brand_event`
--
ALTER TABLE `brand_event`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brand_user`
--
ALTER TABLE `brand_user`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `companies`
--
ALTER TABLE `companies`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dealerships`
--
ALTER TABLE `dealerships`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `dealership_user`
--
ALTER TABLE `dealership_user`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `events`
--
ALTER TABLE `events`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `event_vehicle`
--
ALTER TABLE `event_vehicle`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `groups`
--
ALTER TABLE `groups`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `guests`
--
ALTER TABLE `guests`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `guest_vehicle`
--
ALTER TABLE `guest_vehicle`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `regions`
--
ALTER TABLE `regions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `types`
--
ALTER TABLE `types`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `vehicles`
--
ALTER TABLE `vehicles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `appointments`
--
ALTER TABLE `appointments`
ADD CONSTRAINT `appointments_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `appointment_event`
--
ALTER TABLE `appointment_event`
ADD CONSTRAINT `appointment_event_appointment_id_foreign` FOREIGN KEY (`appointment_id`) REFERENCES `appointments` (`id`),
ADD CONSTRAINT `appointment_event_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`);
--
-- Constraints for table `brands`
--
ALTER TABLE `brands`
ADD CONSTRAINT `brands_company_id_foreign` FOREIGN KEY (`company_id`) REFERENCES `companies` (`id`);
--
-- Constraints for table `brand_dealership`
--
ALTER TABLE `brand_dealership`
ADD CONSTRAINT `brand_dealership_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
ADD CONSTRAINT `brand_dealership_dealership_id_foreign` FOREIGN KEY (`dealership_id`) REFERENCES `dealerships` (`id`),
ADD CONSTRAINT `brand_dealership_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`);
--
-- Constraints for table `brand_event`
--
ALTER TABLE `brand_event`
ADD CONSTRAINT `brand_event_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
ADD CONSTRAINT `brand_event_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`);
--
-- Constraints for table `brand_user`
--
ALTER TABLE `brand_user`
ADD CONSTRAINT `brand_user_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
ADD CONSTRAINT `brand_user_dealership_id_foreign` FOREIGN KEY (`dealership_id`) REFERENCES `dealerships` (`id`),
ADD CONSTRAINT `brand_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `dealerships`
--
ALTER TABLE `dealerships`
ADD CONSTRAINT `dealerships_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`),
ADD CONSTRAINT `dealerships_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`);
--
-- Constraints for table `dealership_user`
--
ALTER TABLE `dealership_user`
ADD CONSTRAINT `dealership_user_dealership_id_foreign` FOREIGN KEY (`dealership_id`) REFERENCES `dealerships` (`id`),
ADD CONSTRAINT `dealership_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Constraints for table `events`
--
ALTER TABLE `events`
ADD CONSTRAINT `events_dealership_id_foreign` FOREIGN KEY (`dealership_id`) REFERENCES `dealerships` (`id`),
ADD CONSTRAINT `events_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `types` (`id`);
--
-- Constraints for table `event_vehicle`
--
ALTER TABLE `event_vehicle`
ADD CONSTRAINT `event_vehicle_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`),
ADD CONSTRAINT `event_vehicle_vehicle_id_foreign` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicles` (`id`);
--
-- Constraints for table `guests`
--
ALTER TABLE `guests`
ADD CONSTRAINT `guests_appointment_id_foreign` FOREIGN KEY (`appointment_id`) REFERENCES `appointments` (`id`),
ADD CONSTRAINT `guests_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`);
--
-- Constraints for table `guest_vehicle`
--
ALTER TABLE `guest_vehicle`
ADD CONSTRAINT `guest_vehicle_guest_id_foreign` FOREIGN KEY (`guest_id`) REFERENCES `guests` (`id`),
ADD CONSTRAINT `guest_vehicle_vehicle_id_foreign` FOREIGN KEY (`vehicle_id`) REFERENCES `vehicles` (`id`);
--
-- Constraints for table `regions`
--
ALTER TABLE `regions`
ADD CONSTRAINT `regions_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`),
ADD CONSTRAINT `regions_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`);
--
-- Constraints for table `vehicles`
--
ALTER TABLE `vehicles`
ADD CONSTRAINT `vehicles_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`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 DISTINCT people.name
FROM people
INNER JOIN stars ON people.id=stars.person_id
INNER JOIN movies ON stars.movie_id=movies.id
WHERE movies.year=2004 ORDER BY people.birth ASC; |
<filename>migrations/20200704200254_create_nucypher_policies.down.sql
DROP TABLE IF EXISTS nucypher_policies;
|
<reponame>giggals/Software-University
SELECT ContinentCode , CurrencyCode ,COUNT(CurrencyCode)
FROM Countries AS c
|
<reponame>rgualp/AbucRemarketing2Bundle
/*
Inserting permissions for active-inactive rooms
Author: <NAME>
*/
insert into permission (perm_description, perm_category, perm_route)
values ("Activar-Desactivar habitaciones", "Propiedades", "mycp_active_room");
insert rolepermission (rp_role, rp_permission)
values ((select max(role_id) from role where role_name = 'ROLE_CLIENT_STAFF'), (select max(perm_id) from permission where perm_route = 'mycp_active_room')),
((select max(role_id) from role where role_name = 'ROLE_CLIENT_STAFF_HOUSES_RESERVATIONS_COMMENTS'), (select max(perm_id) from permission where perm_route = 'mycp_active_room'));
|
<gh_stars>0
-- SQL TEST
--EXCERISE 1
--1.1
--Write a query that lists all Customers in either Paris or London, include CustomerID, CompanyName and all address fields
SELECT CustomerID, CompanyName,
Address + ',' + City + ', ' + PostalCode + ', ' + Country AS "Address"
FROM Customers
WHERE City = 'Paris' OR City = 'London';
--1.2
--List all products stored in bottles
SELECT ProductName, QuantityPerUnit FROM Products
WHERE QuantityPerUnit LIKE '%bottle%';
--1.3
--Repeat question above, but add in the SupplierName and Country
SELECT p.ProductName, p.QuantityPerUnit, s.CompanyName, s.Country FROM Suppliers s
INNER JOIN Products p ON s.SupplierID = p.SupplierID
WHERE p.QuantityPerUnit LIKE '%bottle%';
--1.4
--Write an SQL Statement that shows how many products that are in each category, include CategoryName in
--result set and list the highest number first
SELECT c.CategoryName, COUNT(*) AS "Products in Category"
FROM Products p
INNER JOIN Categories c ON p.CategoryID = c.CategoryID
GROUP BY c.CategoryName
ORDER BY c.CategoryName DESC
--1.5
--List all UK employees using concatenation to join their title of courtesy, first name and last name together.
--Also include their city of residence
SELECT FirstName + ' ' + LastName AS "Employee Name",
City
FROM Employees
WHERE Country = 'UK';
--1.6
--List Sales Totals for all Sales Regions with a Sales total greather than 1mil. Use rounding or FORMAT to
--present the numbers
SELECT FORMAT(SUM(od.Quantity * od.UnitPrice), 'C') AS "SALES", r.RegionDescription
FROM [Order Details] od
INNER JOIN Orders o ON o.OrderID = od.OrderID
INNER JOIN EmployeeTerritories et ON o.EmployeeID = et.EmployeeID
INNER JOIN Territories t ON et.TerritoryID = t.TerritoryID
INNER JOIN Region r ON r.RegionID = t.RegionID
GROUP BY r.RegionDescription
HAVING SUM(od.Quantity * od.UnitPrice) > 1000000
ORDER BY "SALES" ASC
--1.7
--Count how many Orders have a Freight amount greater than 100.00 and either USA or UK as Ship Country.
SELECT COUNT(*) FROM Orders AS "No. Of Orders"
WHERE Freight > 100 AND (ShipCountry = 'USA' OR ShipCountry ='UK')
--1.8
--Write an SQL statement to identify the Order Number of the Order with the highest amount of discount applied
--to that order
SELECT TOP 1 od.OrderID,
SUM(od.UnitPrice * od.Quantity * od.Discount) AS "Discount Amount"
FROM [Order Details] od
GROUP BY od.OrderID
ORDER BY SUM(od.UnitPrice * od.Quantity * od.Discount) DESC
--EXERCISE 2
--2.1
--Write the correct SQL statement to create the following table
CREATE TABLE Spartans
(
SpartanID INT IDENTITY (1,1) PRIMARY KEY NOT NULL,
SpartanTitle VARCHAR(30),
FirstName VARCHAR(30),
LastName VARCHAR(30),
University VARCHAR(50),
Course VARCHAR(30),
Mark DECIMAL
);
--2.2
--Insert the correct values into the table
INSERT INTO Spartans
(
SpartanID,
SpartanTitle,
FirstName,
LastName,
University,
Course,
Mark
)
VALUES
(
1,
'Trainee',
'Bruno',
'Silva',
'Royal Holloway',
'Drama & Theatre',
2.1
);
--Exercise 3
--3.1
--List all Employees from the Employees table and who they report to. use self join
SELECT e.FirstName + ' ' + e.LastName AS "Employee Name",
b.FirstName + ' ' + b.LastName AS "Reports To"
FROM Employees e
LEFT JOIN Employees b ON e.ReportsTo = b.EmployeeID
ORDER BY "Reports To", "Employee Name"
--3.2
--List all suppliers with total sales over 10k in the order Details table. Include the Company Name from
--the Suppliers Table
SELECT SUM(od.UnitPrice * od.Quantity*(1-od.Discount)) AS "Total Sales", s.CompanyName
FROM [Order Details] od
INNER JOIN Products p ON od.ProductID = p.ProductID
INNER JOIN Suppliers s ON p.SupplierID = s.SupplierID
GROUP BY s.CompanyName
HAVING SUM(od.UnitPrice * od.Quantity*(1-od.Discount)) > 10000
ORDER BY SUM(od.UnitPrice * od.Quantity*(1-od.Discount)) DESC
--3.3
--List the top 10 Customers YTD for the latest year in the Orders file. Based on total value of orders shipped.
SELECT TOP 10 c.CustomerID AS "Customer ID", c.CompanyName AS "Company",
FORMAT(SUM(UnitPrice * Quantity * (1-Discount)), 'C') AS "YTD"
FROM Customers c
INNER JOIN Orders o ON o.CustomerID= c.CustomerID
INNER JOIN [Order Details] od ON od.OrderID= o.OrderID
WHERE YEAR(OrderDate)=(SELECT MAX(YEAR(OrderDate)) FROM Orders)
AND o.ShippedDate IS NOT NULL
GROUP BY c.CustomerID, c.CompanyName
ORDER BY SUM(UnitPrice * Quantity * (1-Discount)) DESC;
--3.4
--Plot the Average Ship Time by month for all data in the Orders Table
SELECT MONTH(OrderDate) Month, YEAR(OrderDate) Year,
AVG(CAST(DATEDIFF(d, OrderDate, ShippedDate) AS DECIMAL(10,2))) AS "ShipTime"
FROM Orders
WHERE ShippedDate IS NOT NULL
GROUP BY YEAR(OrderDate), MONTH(OrderDate)
ORDER BY Year ASC, Month ASC
SELECT OrderDate, ShippedDate,
DATEDIFF(dd, OrderDate, ShippedDate) AS "Shipping Time"
FROM Orders
SELECT p.SupplierID AS "SupplierID", CompanyName AS "Company Name",
AVG(p.UnitsOnOrder) "Average On Order"
FROM Products p
INNER JOIN Suppliers s ON p.SupplierID = s.SupplierID
GROUP BY p.SupplierID, CompanyName
ORDER BY "Average On Order" desc
--Subqueires
SELECT OrderID, ProductID, UnitPrice, Quantity, Discount,
(SELECT AVG(UnitPrice) FROM [Order Details] od) AS "Avg Price"
FROM [Order Details]
SELECT * FROM [Order Details] od
INNER JOIN
(SELECT ProductID, SUM(UnitPrice *Quantity) AS "Total"
FROM [Order Details] GROUP BY ProductID)
sq1 ON sq1.ProductID = od.ProductID
SELECT EmployeeID AS "Employee/Supplier"
FROM Employees
UNION
SELECT SupplierID
FROM Suppliers
SELECT SupplierID,
SUM(UnitsOnOrder) AS "Total On Order",
AVG(UnitsOnOrder) AS "Avg On Order"
FROM Products
GROUP BY SupplierID
HAVING AVG(UnitsOnOrder) > 5
SELECT c.CompanyName
FROM Customers c
LEFT JOIN Orders o ON c.CustomerID = o.CustomerID
|
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 08, 2021 at 07:13 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `stock`
--
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`id` int(250) NOT NULL,
`userId` int(250) NOT NULL,
`productId` int(200) NOT NULL,
`dateTime` varchar(200) NOT NULL,
`quantity` int(200) NOT NULL,
`status` int(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `cart`
--
INSERT INTO `cart` (`id`, `userId`, `productId`, `dateTime`, `quantity`, `status`) VALUES
(1, 2, 3, '2021-07-04 06:31:54', 1, 1),
(2, 2, 3, '2021-07-04 06:31:54', 1, 1),
(3, 2, 3, '2021-07-04 06:32:56', 1, 1),
(4, 1, 1, '2021-07-04 11:07:11', 1, 1),
(5, 1, 1, '2021-07-04 11:07:13', 1, 1),
(6, 2, 2, '2021-07-04 02:07:25', 1, 1),
(7, 2, 2, '2021-07-04 02:07:25', 1, 1),
(8, 2, 4, '2021-07-04 02:07:28', 1, 1),
(9, 2, 1, '2021-07-04 02:07:28', 1, 1),
(10, 2, 3, '2021-07-04 03:07:44', 1, 1),
(11, 2, 1, '2021-07-11 05:07:06', 1, 1),
(12, 1, 1, '2021-07-13 05:07:17', 1, 1),
(13, 1, 1, '2021-07-17 08:07:31', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `orderitems`
--
CREATE TABLE `orderitems` (
`id` int(250) NOT NULL,
`orderId` int(250) NOT NULL,
`productId` int(200) NOT NULL,
`quantity` int(200) NOT NULL,
`unitPrice` int(250) NOT NULL,
`totalPrice` int(250) NOT NULL,
`status` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(250) NOT NULL,
`dateTime` varchar(250) NOT NULL,
`address1` varchar(200) NOT NULL,
`address2` varchar(200) NOT NULL,
`pinCode` int(250) NOT NULL,
`city` varchar(250) NOT NULL,
`state landmark` varchar(200) NOT NULL,
`total` int(200) NOT NULL,
`discount` int(250) NOT NULL,
`userId` int(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `productimages`
--
CREATE TABLE `productimages` (
`id` int(250) NOT NULL,
`productId` int(250) NOT NULL,
`imageUrl` varchar(200) NOT NULL,
`status` int(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `productimages`
--
INSERT INTO `productimages` (`id`, `productId`, `imageUrl`, `status`) VALUES
(1, 1, 'http://[::1]/stock/upload/sm-tab.jpeg', 1),
(2, 2, 'http://[::1]/stock/upload/laptop.jpg', 1),
(3, 3, 'http://[::1]/stock/upload/lcd.jpg', 1),
(4, 4, 'http://[::1]/stock/upload/tab.jpg', 1),
(5, 4, 'http://[::1]/stock/upload/hp-lcd.jpg', 1),
(6, 5, 'http://[::1]/stock/upload/hp-laptop.jpg', 1);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(250) NOT NULL,
`title` varchar(250) NOT NULL,
`description` varchar(200) NOT NULL,
`price` int(200) NOT NULL,
`status` int(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `title`, `description`, `price`, `status`) VALUES
(1, 'tab', 'HighQuality', 12000, 1),
(2, 'laptop', 'HighQuality', 13000, 1),
(3, 'lcd', 'HighQuality', 14000, 1),
(4, 'tab', 'HighQuality', 13000, 1),
(5, 'tab', 'HighQuality', 13000, 1),
(6, 'tab', 'HighQuality', 13000, 1),
(7, 's', 'HighQuality', 100, 1),
(8, 's', 'as', 2123, 1),
(9, 'as', 'asdas', 4654, 1),
(10, 'sd', 'sd', 87, 1),
(11, 'laptop', 'HighQuality', 12000, 1);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(250) NOT NULL,
`name` varchar(250) NOT NULL,
`userName` varchar(200) NOT NULL,
`email` varchar(200) NOT NULL,
`password` varchar(250) NOT NULL,
`status` int(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `userName`, `email`, `password`, `status`) VALUES
(1, 'sham', '<PASSWORD>', '<EMAIL>', '<PASSWORD>', 1),
(2, 'Vijai', 'kumar', '<EMAIL>', '1234', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orderitems`
--
ALTER TABLE `orderitems`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `productimages`
--
ALTER TABLE `productimages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cart`
--
ALTER TABLE `cart`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `orderitems`
--
ALTER TABLE `orderitems`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `productimages`
--
ALTER TABLE `productimages`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(250) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>Codewars/SQL/SQL Bug Fixing: Fix the JOIN.sql
SELECT
j.job_title,
ROUND(SUM(j.salary) / COUNT(p.name), 2) as average_salary,
COUNT(p.name) as total_people,
ROUND(SUM(j.salary), 2) as total_salary
FROM people p JOIN job j ON p.id = j.people_id
GROUP BY job_title, salary |
# add creationTime column to games
# --- !Ups
TRUNCATE TABLE games;
ALTER TABLE games
ADD COLUMN creationTime timestamp NOT NULL;
# --- !Downs
|
USE SoftUni
SELECT e.EmployeeID,
e.FirstName,
CASE
WHEN DATEPART(YEAR, StartDate) >= 2005 THEN NULL
ELSE p.[Name]
END AS ProjectName
FROM Employees AS e
JOIN EmployeesProjects AS ep ON e.EmployeeID = ep.EmployeeID
JOIN Projects AS p ON ep.ProjectID = p.ProjectID
WHERE e.EmployeeID = 24 |
DROP TABLE "standard_relational_model"."addresses";
|
<gh_stars>100-1000
-- enc3.test
--
-- execsql {
-- CREATE TABLE t1(x,y);
-- INSERT INTO t1 VALUES('abc''123',5);
-- SELECT * FROM t1
-- }
CREATE TABLE t1(x,y);
INSERT INTO t1 VALUES('abc''123',5);
SELECT * FROM t1 |
-- file:horology.sql ln:86 expect:true
SELECT timestamp without time zone 'Jan 1, 4713 BC' + interval '109203489 days' AS "Dec 31, 294276"
|
CREATE TABLE `roles` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB;
|
<filename>backend/de.metas.handlingunits.base/src/main/sql/postgresql/system/5468879_sys_gh518_add_toplevel_hu_validation_rule.sql<gh_stars>1000+
-- 2017-07-27T12:30:59.108
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Val_Rule (AD_Client_ID,AD_Org_ID,AD_Val_Rule_ID,Code,Created,CreatedBy,Description,EntityType,IsActive,Name,Type,Updated,UpdatedBy) VALUES (0,0,540363,'M_HU.HUStatus=''A'' AND COALESCE(M_HU.M_HU_Item_Parent,0)<=0
',TO_TIMESTAMP('2017-07-27 12:30:58','YYYY-MM-DD HH24:MI:SS'),100,'validation rule to filter for top level HUs with status "active"','de.metas.handlingunits','Y','M_HU_Toplevel active','S',TO_TIMESTAMP('2017-07-27 12:30:58','YYYY-MM-DD HH24:MI:SS'),100)
;
|
INSERT INTO burgers (burger_name) VALUES ('Bacon Double Cheeseburger');
INSERT INTO burgers (burger_name, devoured) VALUES ('Salmon Burger', true);
INSERT INTO burgers (burger_name) VALUES ('Chicken Burger'); |
ALTER TABLE attachments ADD COLUMN CategoryID int (11) NULL;
ALTER TABLE attachments ADD constraint Attachments_category FOREIGN KEY (CategoryID) references category(categoryid); |
select
sum(l_extendedprice * l_discount) as revenue
from
lineitem
where
l_shipdate >= date '1992-08-08'
and l_shipdate < date '1994-06-13'
and l_discount between 0.023363173007965088 and 0.050057864189147955
and l_quantity < 14.080395758152008;
|
// NOTE: This library must be DUPLICATED in the data.cql file as well!
library Common2
using Simple version '1.0.0'
parameter SomeNumber default 17
parameter AnotherNumber default 20
context Patient
define TheParameter:
SomeNumber
define function addToParameter(a Integer):
SomeNumber + a
define AnotherParameter:
AnotherNumber
define function addToAnotherParameter(a Integer):
AnotherNumber + a
define function multiply(a Integer, b Integer) :
a * b
define function square(a Integer):
multiply(a, a)
define TwoTimesThree:
multiply(2, 3)
define Two:
2
define function addTwo(a Integer):
a + Two
define TwoPlusOne:
Two + 1
define SortUsingFunction:
({1, 3, 2, 5, 4}) N return Tuple{N: N} sort by square(N)
|
-- Role: "publicmapping"
-- DROP ROLE publicmapping;
CREATE ROLE publicmapping LOGIN
ENCRYPTED PASSWORD '<PASSWORD>'
NOSUPERUSER INHERIT CREATEDB NOCREATEROLE;
-- Database: publicmapping
-- DROP DATABASE publicmapping;
CREATE DATABASE publicmapping
WITH OWNER = publicmapping
CONNECTION LIMIT = -1
TEMPLATE = template_postgis;
\c publicmapping
ALTER TABLE geometry_columns OWNER TO publicmapping;
ALTER TABLE spatial_ref_sys OWNER TO publicmapping;
-- See: http://www.postgresql.org/docs/8.4/static/ddl-schemas.html
-- for the reasons for creating a schema with the same name as the
-- user name.
CREATE SCHEMA publicmapping AUTHORIZATION publicmapping;
|
<reponame>mmci2468/automate
-- Deploy stage_ordering
BEGIN;
-- We need to remove the existing ordering information, because it was
-- incorrect. Deleting is OK because no tables have any functional
-- dependencies on the contents of this table.
DELETE FROM stage_ordering;
INSERT INTO stage_ordering(sequence_number, stage, phase, parallel)
VALUES (1, 'verify', 'unit', TRUE),
(2, 'verify', 'lint', TRUE),
(3, 'verify', 'syntax', TRUE),
(4, 'release', 'unit', FALSE),
(5, 'release', 'lint', FALSE),
(6, 'release', 'syntax', FALSE),
(7, 'release', 'quality', FALSE),
(8, 'release', 'security', FALSE),
(9, 'release', 'release', FALSE),
(10, 'acceptance', 'provision', FALSE),
(11, 'acceptance', 'deploy', FALSE),
(12, 'acceptance', 'smoke', FALSE),
(13, 'acceptance', 'functional', FALSE),
(14, 'union', 'provision', FALSE),
(15, 'union', 'deploy', FALSE),
(16, 'union', 'smoke', FALSE),
(17, 'union', 'functional', FALSE),
(18, 'rehearsal', 'provision', FALSE),
(19, 'rehearsal', 'deploy', FALSE),
(20, 'rehearsal', 'smoke', FALSE),
(21, 'rehearsal', 'functional', FALSE),
(22, 'production', 'provision', FALSE),
(23, 'production', 'deploy', FALSE),
(24, 'production', 'smoke', FALSE),
(25, 'production', 'functional', FALSE);
COMMIT;
|
CREATE TABLE horde_perms (
perm_id NUMBER(16) NOT NULL,
perm_name VARCHAR2(255) NOT NULL UNIQUE,
perm_parents VARCHAR2(255) NOT NULL,
perm_data CLOB,
PRIMARY KEY (perm_id)
);
|
ALTER TABLE "GroupAttendee" SET SCHEMA "permissions";
|
<filename>openGaussBase/testcase/SQL/DATATYPE/json/Opengauss_Function_Datatype_Json_Case0002.sql
-- @testpoint: 创建普通列存表,插入数据,合理报错
drop table if exists test_json_02;
create table test_json_02 (id json) with(orientation=column,compression=no);
|
-- @testpoint:openGauss保留关键字overlaps作为 用户名,
--不带引号,合理报错
CREATE USER overlaps PASSWORD '<PASSWORD>';
--加双引号,创建成功
drop user if exists "overlaps";
CREATE USER "overlaps" PASSWORD '<PASSWORD>';
--清理环境
drop user "overlaps";
--加单引号,合理报错
CREATE USER 'overlaps' PASSWORD '<PASSWORD>';
--加反引号,合理报错
CREATE USER `overlaps` PASSWORD '<PASSWORD>'; |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.6.6deb5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Nov 24, 2019 at 04:01 PM
-- Server version: 5.7.28-0ubuntu0.18.04.4
-- PHP Version: 7.2.24-0ubuntu0.18.04.1
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: `resturant`
--
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`active` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `active`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, '2019-11-23 15:28:19', '2019-11-23 15:29:46', '2019-11-23 15:29:46'),
(2, 1, '2019-11-23 15:30:16', '2019-11-23 15:30:16', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `categories_translations`
--
CREATE TABLE `categories_translations` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`locale` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories_translations`
--
INSERT INTO `categories_translations` (`id`, `category_id`, `name`, `locale`) VALUES
(1, 1, 'meet', 'en'),
(2, 1, 'لحوم', 'ar'),
(3, 2, 'meet', 'en'),
(4, 2, 'لحوم', 'ar');
-- --------------------------------------------------------
--
-- Table structure for table `coupones`
--
CREATE TABLE `coupones` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` int(11) NOT NULL,
`active` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `coupones`
--
INSERT INTO `coupones` (`id`, `title`, `code`, `value`, `active`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'first', 'MMAAXX', 50, 1, '2019-11-23 20:09:09', '2019-11-23 20:11:37', '2019-11-23 20:11:37'),
(2, 'first', 'XXCCVV', 50, 1, '2019-11-23 20:12:55', '2019-11-23 20:12:55', NULL),
(4, 'first', 'MMIINN', 50, 1, '2019-11-24 11:13:06', '2019-11-24 11:59:15', '2019-11-24 11:59:15');
-- --------------------------------------------------------
--
-- 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_04_13_151710_create_products_table', 1),
(4, '2019_04_17_145935_create_categories_table', 1),
(5, '2019_05_06_103634_create_orders_table', 1),
(6, '2019_05_06_105155_create_order_products_table', 1),
(7, '2019_07_13_184652_create_coupones_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`phone` int(11) DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`lat` double(8,2) NOT NULL,
`long` double(8,2) NOT NULL,
`code` int(10) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
`total_price` double DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `phone`, `address`, `lat`, `long`, `code`, `status`, `total_price`, `created_at`, `updated_at`, `deleted_at`) VALUES
(2, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:30:32', '2019-11-24 11:30:32', NULL),
(3, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:30:51', '2019-11-24 11:30:51', NULL),
(4, 1021221211, 'mas<NAME>salhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:32:06', '2019-11-24 11:32:06', NULL),
(5, 1021221211, 'masged elsalhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:32:39', '2019-11-24 11:32:39', NULL),
(6, 1021221211, 'masged elsalhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 900, '2019-11-24 11:33:16', '2019-11-24 11:33:17', NULL),
(7, 1021221211, 'masged elsalhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 900, '2019-11-24 11:33:41', '2019-11-24 11:33:42', NULL),
(8, 1021221211, 'mas<NAME>salhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:34:34', '2019-11-24 11:34:34', NULL),
(9, 1021221211, 'mas<NAME>salhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:34:38', '2019-11-24 11:34:38', NULL),
(10, 1021221211, 'mas<NAME>hin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:35:11', '2019-11-24 11:35:11', NULL),
(11, 1021221211, 'mas<NAME>hin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:35:38', '2019-11-24 11:35:38', NULL),
(12, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:37:02', '2019-11-24 11:37:02', NULL),
(13, 1021221211, 'mas<NAME>hin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:37:09', '2019-11-24 11:37:10', NULL),
(14, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:38:44', '2019-11-24 11:38:44', NULL),
(15, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:38:46', '2019-11-24 11:38:46', NULL),
(16, 1021221211, '<NAME> -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:42:03', '2019-11-24 11:42:03', NULL),
(17, 1021221211, 'xx elsalhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:49:09', '2019-11-24 11:49:10', NULL),
(18, 1021221211, 'xx elsalhin -sha2et l zohor', 22.23, 22.23, NULL, 1, 1800, '2019-11-24 11:58:19', '2019-11-24 11:58:20', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `order_products`
--
CREATE TABLE `order_products` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`category_id` bigint(20) UNSIGNED NOT NULL,
`price` double NOT NULL,
`quantity` double NOT NULL,
`total` double NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `order_products`
--
INSERT INTO `order_products` (`id`, `order_id`, `product_id`, `category_id`, `price`, `quantity`, `total`, `created_at`, `updated_at`, `deleted_at`) VALUES
(3, 2, 1, 1, 200, 3, 600, '2019-11-24 11:30:32', '2019-11-24 11:30:32', NULL),
(4, 2, 2, 2, 300, 4, 1200, '2019-11-24 11:30:32', '2019-11-24 11:30:32', NULL),
(5, 3, 1, 1, 200, 3, 600, '2019-11-24 11:30:51', '2019-11-24 11:30:51', NULL),
(6, 3, 2, 2, 300, 4, 1200, '2019-11-24 11:30:51', '2019-11-24 11:30:51', NULL),
(7, 4, 1, 1, 200, 3, 600, '2019-11-24 11:32:06', '2019-11-24 11:32:06', NULL),
(8, 4, 2, 2, 300, 4, 1200, '2019-11-24 11:32:06', '2019-11-24 11:32:06', NULL),
(9, 5, 1, 1, 200, 3, 600, '2019-11-24 11:32:39', '2019-11-24 11:32:39', NULL),
(10, 5, 2, 2, 300, 4, 1200, '2019-11-24 11:32:39', '2019-11-24 11:32:39', NULL),
(11, 6, 1, 1, 200, 3, 600, '2019-11-24 11:33:16', '2019-11-24 11:33:16', NULL),
(12, 6, 2, 2, 300, 4, 1200, '2019-11-24 11:33:17', '2019-11-24 11:33:17', NULL),
(13, 7, 1, 1, 200, 3, 600, '2019-11-24 11:33:42', '2019-11-24 11:33:42', NULL),
(14, 7, 2, 2, 300, 4, 1200, '2019-11-24 11:33:42', '2019-11-24 11:33:42', NULL),
(15, 8, 1, 1, 200, 3, 600, '2019-11-24 11:34:34', '2019-11-24 11:34:34', NULL),
(16, 8, 2, 2, 300, 4, 1200, '2019-11-24 11:34:34', '2019-11-24 11:34:34', NULL),
(17, 9, 1, 1, 200, 3, 600, '2019-11-24 11:34:38', '2019-11-24 11:34:38', NULL),
(18, 9, 2, 2, 300, 4, 1200, '2019-11-24 11:34:38', '2019-11-24 11:34:38', NULL),
(19, 10, 1, 1, 200, 3, 600, '2019-11-24 11:35:11', '2019-11-24 11:35:11', NULL),
(20, 10, 2, 2, 300, 4, 1200, '2019-11-24 11:35:11', '2019-11-24 11:35:11', NULL),
(21, 11, 1, 1, 200, 3, 600, '2019-11-24 11:35:38', '2019-11-24 11:35:38', NULL),
(22, 11, 2, 2, 300, 4, 1200, '2019-11-24 11:35:38', '2019-11-24 11:35:38', NULL),
(23, 12, 1, 1, 200, 3, 600, '2019-11-24 11:37:02', '2019-11-24 11:37:02', NULL),
(24, 12, 2, 2, 300, 4, 1200, '2019-11-24 11:37:02', '2019-11-24 11:37:02', NULL),
(25, 13, 1, 1, 200, 3, 600, '2019-11-24 11:37:09', '2019-11-24 11:37:09', NULL),
(26, 13, 2, 2, 300, 4, 1200, '2019-11-24 11:37:10', '2019-11-24 11:37:10', NULL),
(27, 14, 1, 1, 200, 3, 600, '2019-11-24 11:38:44', '2019-11-24 11:38:44', NULL),
(28, 14, 2, 2, 300, 4, 1200, '2019-11-24 11:38:44', '2019-11-24 11:38:44', NULL),
(29, 15, 1, 1, 200, 3, 600, '2019-11-24 11:38:46', '2019-11-24 11:38:46', NULL),
(30, 15, 2, 2, 300, 4, 1200, '2019-11-24 11:38:46', '2019-11-24 11:38:46', NULL),
(31, 16, 1, 1, 200, 3, 600, '2019-11-24 11:42:03', '2019-11-24 11:42:03', NULL),
(32, 16, 2, 2, 300, 4, 1200, '2019-11-24 11:42:03', '2019-11-24 11:42:03', NULL),
(33, 17, 1, 1, 200, 3, 600, '2019-11-24 11:49:09', '2019-11-24 11:49:09', NULL),
(34, 17, 2, 2, 300, 4, 1200, '2019-11-24 11:49:09', '2019-11-24 11:49:09', NULL),
(35, 18, 1, 1, 200, 3, 600, '2019-11-24 11:58:20', '2019-11-24 11:58:20', NULL),
(36, 18, 2, 2, 300, 4, 1200, '2019-11-24 11:58:20', '2019-11-24 11:58:20', NULL);
-- --------------------------------------------------------
--
-- 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 `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_id` int(11) NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price` int(11) DEFAULT NULL,
`active` tinyint(1) NOT NULL DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `category_id`, `image`, `price`, `active`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 1, '/assets/uploads/product_image/2019/11/23/201911231722241900179262_product_image.jpeg', 200, 1, '2019-11-23 15:22:24', '2019-11-23 15:23:10', '2019-11-23 15:23:10'),
(2, 1, '/assets/uploads/product_image/2019/11/23/20191123172346410174851_product_image.jpeg', 300, 0, '2019-11-23 15:23:46', '2019-11-23 15:23:58', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `products_translations`
--
CREATE TABLE `products_translations` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`locale` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products_translations`
--
INSERT INTO `products_translations` (`id`, `product_id`, `name`, `description`, `locale`) VALUES
(1, 1, 'kaboria', 'aslyyyyyyyyyyy', 'en'),
(2, 1, 'كابوريا', 'اصلىىىى', 'ar'),
(3, 2, 'kaboria', 'aslyyyyyyyyyyy', 'en'),
(4, 2, 'كابوريا', 'اصلىىىى', 'ar');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories_translations`
--
ALTER TABLE `categories_translations`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `categories_translations_category_id_locale_unique` (`category_id`,`locale`),
ADD KEY `categories_translations_locale_index` (`locale`);
--
-- Indexes for table `coupones`
--
ALTER TABLE `coupones`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `coupones_code_unique` (`code`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_products`
--
ALTER TABLE `order_products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products_translations`
--
ALTER TABLE `products_translations`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `products_translations_product_id_locale_unique` (`product_id`,`locale`),
ADD KEY `products_translations_locale_index` (`locale`);
--
-- 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 `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `categories_translations`
--
ALTER TABLE `categories_translations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `coupones`
--
ALTER TABLE `coupones`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `order_products`
--
ALTER TABLE `order_products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=37;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `products_translations`
--
ALTER TABLE `products_translations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SELECT
COALESCE(CITIES.NAME, 'ALL') AS CITY,
round(sum(NETTO_PRICE), 2) AS NETTO,
round(sum(BRUTTO_PRICE), 2) AS BRUTTO,
count(*) AS COUNT
FROM SALES
JOIN CINEMAS ON SALES.CINEMA_ID = CINEMAS.ID
JOIN CITIES ON CINEMAS.CITY_ID = CITIES.ID
GROUP BY ROLLUP (CITIES.NAME) |
<reponame>Snooking/RpgDatabase
use RPG
Select * FROM PrzedmiotyGracza ORDER BY Nick |
with j as (
select response_id, match_type, count(potential_identifier)
from unique_identifiers
where response_id = 313708
or response_id = 398877
or response_id = 402232
or response_id = 436829
or response_id = 481130
or response_id = 528861
or response_id = 552613
or response_id = 575004
or response_id = 580997
or response_id = 658072
or response_id = 692544
or response_id = 692862
or response_id = 786259
group by response_id, match_type
)
select r.id, r.host, j.match_type, j.count
from responses r join j on j.response_id = r.id;
|
CREATE PROCEDURE [dbo].[dnn_SaveTabVersion]
@Id INT,
@TabId INT,
@TimeStamp DATETIME,
@Version INT,
@IsPublished BIT,
@CreatedByUserID [INT] = -1,
@LastModifiedByUserID [INT] = -1
AS
BEGIN
IF ISNULL(@Id, 0) = 0
BEGIN
INSERT INTO dbo.[dnn_TabVersions](
[TabId],
[TimeStamp],
[Version],
[IsPublished],
[CreatedByUserID],
[CreatedOnDate],
[LastModifiedByUserID],
[LastModifiedOnDate]
) VALUES (
@TabId,
@TimeStamp,
@Version,
@IsPublished,
@CreatedByUserID,
GETDATE(),
@LastModifiedByUserID,
GETDATE()
)
SELECT @Id = SCOPE_IDENTITY()
END
ELSE
BEGIN
UPDATE dbo.[dnn_TabVersions] SET
[TabId] = @TabId,
[Version] = @Version,
[TimeStamp] = @TimeStamp,
[IsPublished] = @IsPublished,
[LastModifiedByUserID] = @LastModifiedByUserID,
[LastModifiedOnDate] = GETDATE()
WHERE TabVersionId = @Id
END
SELECT @Id
END
|
<reponame>CFRealEstateServices/DomoETL
create view [dbo].[vw_GroupMembershipDeltas]
as
select
act.domain,
act.groupId as DOMOGroupId,
act.userId as DOMOUserId,
(case when g.domain is not null then 'none' else 'delete' end) as neededAction
from dbo.ActualDOMOGroupMembership act
left join dbo.GroupRecordMappings gm
on gm.domain = act.domain
and gm.DOMOGroupId = act.groupId
left join dbo.UserRecordMappings um
on um.domain = act.domain
and um.DOMOUserId = act.userId
left join dbo.IntendedDOMOGroupMembership g
on g.domain = act.domain
and g.externalGroupId = gm.externalGroupId
and g.externalUserId = um.ExternalUserId
union all
select
g.domain,
gm.DOMOGroupId as DOMOGroupId,
um.DOMOUserId as DOMOUserId,
'insert' as neededAction
from dbo.IntendedDOMOGroupMembership g
left join dbo.GroupRecordMappings gm
on gm.domain = g.domain
and gm.externalGroupId = g.externalGroupId
left join dbo.UserRecordMappings um
on um.domain = g.domain
and um.ExternalUserId = g.externalUserId
left join dbo.ActualDOMOGroupMembership act
on act.domain = act.domain
and act.groupId = gm.DOMOGroupId
and act.userId = um.DOMOUserId
where
act.domain is null
|
<gh_stars>1-10
INSERT INTO queries (id, name, sql, created_at, updated_at, description) VALUES (1, 'BuscarAluno', 'SELECT * FROM students
WHERE students.name LIKE :nome', '2018-02-20 23:54:47.042650', '2018-02-21 00:37:52.574731', null);
INSERT INTO queries (id, name, sql, created_at, updated_at, description) VALUES (2, 'BuscarAlunoMatricula', 'SELECT name, cpf, enrollment_number
FROM ( SELECT *
FROM students s inner join enrollments e
on s.id = e.student_id
WHERE s.name LIKE :nome_aluno)
', '2018-04-24 02:46:17.718239', '2018-07-24 03:35:41.155565', 'Busca os Alunos e suas respectivas matriculas');
INSERT INTO queries (id, name, sql, created_at, updated_at, description) VALUES (4, 'Etapas vencidas', 'SELECT
students.email AS email,
students.name AS name,
professors.name AS prof_name,
professors.email AS prof_email,
phases.name AS phase_name,
due_date AS due_date
FROM
phase_completions
INNER JOIN
enrollments ON enrollments.id = phase_completions.enrollment_id
INNER JOIN
students ON students.id = enrollments.student_id
INNER JOIN
advisements ON advisements.enrollment_id = enrollments.id
INNER JOIN
professors ON professors.id = advisements.professor_id
INNER JOIN phases ON phases.id = phase_completions.phase_id
WHERE
due_date<=:data_consulta AND
enrollments.id NOT IN (SELECT dismissals.enrollment_id from dismissals) AND
enrollments.enrollment_status_id = 2 AND
completion_date IS NULL /* Se for EQ, enviar lembrete, e depois esperar o prazo de defesa para enviar novamente */AND
(phases.id <> 2 OR ((julianday(:data_consulta) - julianday(due_date) < 0) OR julianday(:data_consulta) - julianday(due_date) > 50))/* Se fase for artigo A1 só vale para alunos que entraram de 2011.1 a 2014.1 */AND
(phases.id <> 5 OR (enrollments.admission_date >= ''2011-03-01'' and admission_date <= ''2014-03-01''))/* Se for artigo para mestrado, só vale para alunos que entraram em 2014.1 */AND
(phases.id <> 6 OR enrollments.admission_date >= ''2014-03-01'' AND enrollments.admission_date < ''2014-08-01'')/* Se for aceitação de artigo B2 ou superior, só vale para alunos que entraram a partir de 2014.2 */AND
(phases.id <> 10 OR enrollments.admission_date >= ''2014-08-01'')/* Se for submissão de artigo B1 para doutorado, só vale para alunos que entraram a partir de 2014.2 */AND
(phases.id <> 9 OR enrollments.admission_date >= ''2014-08-01'')/* Se for submissão de artigo B4 para EQ, só vale para alunos que entraram a partir de 2014.2 */AND
(phases.id <> 8 OR enrollments.admission_date >= ''2014-08-01'')/* Se for submissão de artigo B4 para mestrado, só vale para alunos que entraram a partir de 2014.2 */AND
(phases.id <> 7 OR enrollments.admission_date >= ''2014-08-01'')', '2018-09-15 20:45:00.843913', '2018-09-15 20:53:40.616787', null);
INSERT INTO queries (id, name, sql, created_at, updated_at, description) VALUES (5, 'Alunos REGULARES ativos', 'SELECT s.name as nome, s.email as email, e.enrollment_number as matricula
FROM enrollments e, students s
WHERE e.id NOT IN (
SELECT enrollment_id
FROM dismissals)AND
(enrollment_status_id = 3)AND
s.id = e.student_id AND
:data_consulta > 1
ORDER BY s.name', '2018-09-15 20:57:45.421825', '2018-09-27 17:50:19.018403', 'Lista de alunos ativos (excluindo alunos avulsos)'); |
<filename>source/maintenance-plan/stored-procedures/dbo.usp_mpAlterTableForeignKeys.sql
RAISERROR('Create procedure: [dbo].[usp_mpAlterTableForeignKeys]', 10, 1) WITH NOWAIT
GO
IF EXISTS (
SELECT *
FROM sys.objects
WHERE object_id = OBJECT_ID(N'[dbo].[usp_mpAlterTableForeignKeys]')
AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[usp_mpAlterTableForeignKeys]
GO
-----------------------------------------------------------------------------------------
CREATE PROCEDURE [dbo].[usp_mpAlterTableForeignKeys]
@sqlServerName [sysname],
@dbName [sysname],
@tableSchema [sysname] = '%',
@tableName [sysname] = '%',
@constraintName [sysname] = '%',
@flgAction [bit] = 1,
@flgOptions [int] = 2049,
@executionLevel [tinyint] = 0,
@debugMode [bit] = 0
/* WITH ENCRYPTION */
AS
-- ============================================================================
-- Copyright (c) 2004-2015 <NAME> (<EMAIL>)
-- ============================================================================
-- Author : <NAME>
-- Create date : 06.01.2010
-- Module : Database Maintenance Scripts
-- ============================================================================
-----------------------------------------------------------------------------------------
-- Input Parameters:
-- @sqlServerName - name of SQL Server instance to analyze
-- @dbName - database to be analyzed
-- @tableSchema - schema that current table belongs to
-- @tableName - specify table name to be analyzed. default = %, all tables will be analyzed
-- @constraintName - specify constraint name to be enabled/disabled. default all
-- @flgAction: 1 - Enable Constraints (default)
-- 0 - Disable Constraints
-- @flgOptions: 1 - Use tables that have foreign key constraints that reffer current table (default)
-- 2 - Use tables that current table foreign key constraints reffer
-- 4 - Enable constraints with NOCHECK. Default is to enable constraints using CHECK option
-- 8 - Stop execution if an error occurs. Default behaviour is to print error messages and continue execution
-- 2048 - send email when a error occurs (default)
-- @debugMode: 1 - print dynamic SQL statements
-- 0 - no statements will be displayed (default)
-----------------------------------------------------------------------------------------
-- Return :
-- 1 : Succes -1 : Fail
-----------------------------------------------------------------------------------------
DECLARE @queryToRun [nvarchar](max),
@crtTableSchema [sysname],
@crtTableName [sysname],
@tmpSchemaName [sysname],
@tmpTableName [sysname],
@objectName [nvarchar](512),
@childObjectName [sysname],
@tmpConstraintName [sysname],
@errorCode [int],
@tmpFlgAction [smallint],
@nestedExecutionLevel [tinyint]
SET NOCOUNT ON
-- { sql_statement | statement_block }
BEGIN TRY
SET @errorCode = 0
---------------------------------------------------------------------------------------------
--get tables list
IF object_id('tempdb..#tmpTableList') IS NOT NULL DROP TABLE #tmpTableList
CREATE TABLE #tmpTableList
(
[table_schema] [sysname],
[table_name] [sysname]
)
SET @queryToRun = CASE WHEN @sqlServerName=@@SERVERNAME THEN N'USE ' + [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '; ' ELSE N'' END + N'
SELECT TABLE_SCHEMA, TABLE_NAME
FROM ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = ''BASE TABLE''
AND TABLE_NAME LIKE ''' + [dbo].[ufn_getObjectQuoteName](@tableName, 'sql') + '''
AND TABLE_SCHEMA LIKE ''' + [dbo].[ufn_getObjectQuoteName](@tableSchema, 'sql') + ''''
SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun)
IF @debugMode=1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = @executionLevel, @messageTreelevel = 1, @stopExecution=0
INSERT INTO #tmpTableList ([table_schema], [table_name])
EXEC sp_executesql @queryToRun
---------------------------------------------------------------------------------------------
IF EXISTS(SELECT 1 FROM #tmpTableList)
begin
IF object_id('tempdb..#tmpTableToAlterConstraints') IS NOT NULL DROP TABLE #tmpTableToAlterConstraints
CREATE TABLE #tmpTableToAlterConstraints
(
[TableSchema] [sysname]
, [TableName] [sysname]
, [ConstraintName] [sysname]
)
DECLARE crsTableList CURSOR LOCAL FAST_FORWARD FOR SELECT [table_schema], [table_name]
FROM #tmpTableList
ORDER BY [table_schema], [table_name]
OPEN crsTableList
FETCH NEXT FROM crsTableList INTO @crtTableSchema, @crtTableName
WHILE @@FETCH_STATUS=0
begin
SET @queryToRun= CASE WHEN @flgAction=1 THEN 'Enable'
ELSE 'Disable'
END + ' foreign key constraints for: ' + [dbo].[ufn_getObjectQuoteName](@crtTableSchema, 'quoted') + '.' + [dbo].[ufn_getObjectQuoteName](@crtTableName, 'quoted')
EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 1, @messagRootLevel = @executionLevel, @messageTreelevel = 1, @stopExecution=0
--if current action is to disable foreign key constraint, will get only enabled constraints
--if current action is to enable foreign key constraint, will get only disabled constraints
IF (@flgOptions & 1 = 1)
begin
--list all tables that have foreign key constraints that reffers current table
SET @queryToRun=CASE WHEN @sqlServerName=@@SERVERNAME THEN N'USE ' + [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '; ' ELSE N'' END + N'
SELECT DISTINCT sch.[name] AS [schema_name], so.[name] AS [table_name], sfk.[name] AS [constraint_name]
FROM ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[objects] so
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[schemas] sch ON sch.[schema_id] = so.[schema_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[foreign_keys] sfk ON so.[object_id] = sfk.[parent_object_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[objects] so2 ON sfk.[referenced_object_id] = so2.[object_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[schemas] sch2 ON sch2.[schema_id] = so2.[schema_id]
WHERE so2.[name]=''' + [dbo].[ufn_getObjectQuoteName](@crtTableName, 'sql') + '''
AND sch2.[name] = ''' + [dbo].[ufn_getObjectQuoteName](@crtTableSchema, 'sql') + '''
AND sfk.[is_disabled]=' + CAST(@flgAction AS [varchar]) + '
AND sfk.[name] LIKE ''' + [dbo].[ufn_getObjectQuoteName](@constraintName, 'sql') + ''''
SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun)
IF @debugMode=1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = @executionLevel, @messageTreelevel = 1, @stopExecution=0
INSERT INTO #tmpTableToAlterConstraints([TableSchema], [TableName], [ConstraintName])
EXEC sp_executesql @queryToRun
end
IF (@flgOptions & 2 = 2)
begin
--list all tables that current table foreign key constraints reffers
SET @queryToRun=CASE WHEN @sqlServerName=@@SERVERNAME THEN N'USE ' + [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '; ' ELSE N'' END + N'
SELECT DISTINCT sch2.[name] AS [schema_name], so2.[name] AS [table_name], sfk.[name] AS [constraint_name]
FROM ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[objects] so
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[schemas] sch ON sch.[schema_id] = so.[schema_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[foreign_keys] sfk ON so.[object_id] = sfk.[referenced_object_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[objects] so2 ON sfk.[parent_object_id] = so2.[object_id]
INNER JOIN ' + CASE WHEN @sqlServerName<>@@SERVERNAME THEN [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' ELSE N'' END + N'[sys].[schemas] sch2 ON sch.[schema_id] = so2.[schema_id]
WHERE so2.[name]=''' + [dbo].[ufn_getObjectQuoteName](@crtTableName, 'sql') + '''
AND sch2.[name] = ''' + [dbo].[ufn_getObjectQuoteName](@crtTableSchema, 'sql') + '''
AND sfk.[is_disabled]=' + CAST(@flgAction AS [varchar])+ '
AND sfk.[name] LIKE ''' + [dbo].[ufn_getObjectQuoteName](@constraintName, 'sql') + ''''
SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun)
IF @debugMode=1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = @executionLevel, @messageTreelevel = 1, @stopExecution=0
INSERT INTO #tmpTableToAlterConstraints ([TableSchema], [TableName], [ConstraintName])
EXEC sp_executesql @queryToRun
end
DECLARE crsTableToAlterConstraints CURSOR LOCAL FAST_FORWARD FOR SELECT DISTINCT [TableSchema], [TableName], [ConstraintName]
FROM #tmpTableToAlterConstraints
ORDER BY [TableName]
OPEN crsTableToAlterConstraints
FETCH NEXT FROM crsTableToAlterConstraints INTO @tmpSchemaName, @tmpTableName, @tmpConstraintName
WHILE @@FETCH_STATUS=0
begin
SET @queryToRun= [dbo].[ufn_getObjectQuoteName](@tmpSchemaName, 'quoted') + '.' + [dbo].[ufn_getObjectQuoteName](@tmpTableName, 'quoted')
EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 1, @messagRootLevel = @executionLevel, @messageTreelevel = 2, @stopExecution=0
--enable/disable foreign key constraints
SET @queryToRun='ALTER TABLE ' + [dbo].[ufn_getObjectQuoteName](@dbName, 'quoted') + '.' + [dbo].[ufn_getObjectQuoteName](@tmpSchemaName, 'quoted') + '.' + [dbo].[ufn_getObjectQuoteName](@tmpTableName, 'quoted') +
CASE WHEN @flgAction=1
THEN ' WITH ' +
CASE WHEN @flgOptions & 4 = 4 THEN 'NOCHECK'
ELSE 'CHECK'
END + ' CHECK '
ELSE ' NOCHECK '
END + 'CONSTRAINT ' + [dbo].[ufn_getObjectQuoteName](@tmpConstraintName, 'quoted')
IF @debugMode=1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = @executionLevel, @messageTreelevel = 1, @stopExecution=0
--
SET @objectName = [dbo].[ufn_getObjectQuoteName](@tmpSchemaName, 'quoted') + '.' + [dbo].[ufn_getObjectQuoteName]( @tmpTableName, 'quoted')
SET @childObjectName = [dbo].[ufn_getObjectQuoteName](@tmpConstraintName, 'quoted')
SET @nestedExecutionLevel = @executionLevel + 1
EXEC @errorCode = [dbo].[usp_sqlExecuteAndLog] @sqlServerName = @sqlServerName,
@dbName = @dbName,
@objectName = @objectName,
@childObjectName= @childObjectName,
@module = 'dbo.usp_mpAlterTableForeignKeys',
@eventName = 'database maintenance - alter constraints',
@queryToRun = @queryToRun,
@flgOptions = @flgOptions,
@executionLevel = @nestedExecutionLevel,
@debugMode = @debugMode
IF @errorCode=0
begin
/* 0 disable FK -> insert action 1 */
/* 1 enable FK -> delete action 2 */
SET @tmpFlgAction = CASE WHEN @flgAction=1 THEN 2 ELSE 1 END
EXEC [dbo].[usp_mpMarkInternalAction] @actionName = N'foreign-key-made-disable',
@flgOperation = @tmpFlgAction,
@server_name = @sqlServerName,
@database_name = @dbName,
@schema_name = @tmpSchemaName,
@object_name = @tmpTableName,
@child_object_name = @tmpConstraintName
end
FETCH NEXT FROM crsTableToAlterConstraints INTO @tmpSchemaName, @tmpTableName, @tmpConstraintName
end
CLOSE crsTableToAlterConstraints
DEALLOCATE crsTableToAlterConstraints
FETCH NEXT FROM crsTableList INTO @crtTableSchema, @crtTableName
end
CLOSE crsTableList
DEALLOCATE crsTableList
end
---------------------------------------------------------------------------------------------
--delete all temporary tables
IF object_id('#tmpTableList') IS NOT NULL DROP TABLE #tmpTableList
IF object_id('#tmpTableToAlterConstraints') IS NOT NULL DROP TABLE #tmpTableToAlterConstraints
END TRY
BEGIN CATCH
DECLARE
@ErrorMessage NVARCHAR(4000),
@ErrorNumber INT,
@ErrorSeverity INT,
@ErrorState INT,
@ErrorLine INT,
@ErrorProcedure NVARCHAR(200);
-- Assign variables to error-handling functions that
-- capture information for RAISERROR.
SET @errorCode = -1
SELECT
@ErrorNumber = ERROR_NUMBER(),
@ErrorSeverity = ERROR_SEVERITY(),
@ErrorState = CASE WHEN ERROR_STATE() BETWEEN 1 AND 127 THEN ERROR_STATE() ELSE 1 END ,
@ErrorLine = ERROR_LINE(),
@ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-');
-- Building the message string that will contain original
-- error information.
SELECT @ErrorMessage =
N'Error %d, Level %d, State %d, Procedure %s, Line %d, ' +
'Message: '+ ERROR_MESSAGE();
-- Raise an error: msg_str parameter of RAISERROR will contain
-- the original error information.
RAISERROR
(
@ErrorMessage,
@ErrorSeverity,
@ErrorState,
@ErrorNumber, -- parameter: original error number.
@ErrorSeverity, -- parameter: original error severity.
@ErrorState, -- parameter: original error state.
@ErrorProcedure, -- parameter: original error procedure name.
@ErrorLine -- parameter: original error line number.
);
-- Test XACT_STATE:
-- If 1, the transaction is committable.
-- If -1, the transaction is uncommittable and should
-- be rolled back.
-- XACT_STATE = 0 means that there is no transaction and
-- a COMMIT or ROLLBACK would generate an error.
-- Test if the transaction is uncommittable.
IF (XACT_STATE()) = -1
BEGIN
PRINT
N'The transaction is in an uncommittable state.' +
'Rolling back transaction.'
ROLLBACK TRANSACTION
END;
END CATCH
RETURN @errorCode
GO
|
alter table c_customer
add is_deleted boolean not null;
alter table c_customer
add create_ts timestamp not null;
alter table c_customer
add update_ts timestamp not null;
|
<reponame>rafaelluisdacostacoelho/itix
CREATE TABLE [Consultorio].[Consultas]
(
[Id] INT IDENTITY(1, 1) NOT NULL,
[DataInicial] DATETIME NOT NULL,
[DataFinal] DATETIME NOT NULL,
[Observacoes] VARCHAR(400) NULL,
[PacienteId] INT NOT NULL,
CONSTRAINT PK_Consultas PRIMARY KEY NONCLUSTERED (Id),
CONSTRAINT FK_Consultas_Pacientes FOREIGN KEY (PacienteId)
REFERENCES [Consultorio].[Pacientes] (Id)
ON DELETE CASCADE
ON UPDATE CASCADE
) |
<reponame>cuba-platform/cuba-thesis
--$Id$
-- Description: update screen permissions according to #1532
update sec_permission set target = substring(target from 3) where type = 10;
|
/*
SQLyog Ultimate v12.09 (64 bit)
MySQL - 5.7.19 : Database - webpacs
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`webpacs` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `webpacs`;
/*Table structure for table `instance` */
DROP TABLE IF EXISTS `instance`;
CREATE TABLE `instance` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`series_id` int(11) DEFAULT NULL,
`instance_uid` varchar(255) DEFAULT NULL,
`instance_num` int(11) DEFAULT NULL,
`object_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `instance_uid` (`instance_uid`)
) ENGINE=InnoDB AUTO_INCREMENT=1819 DEFAULT CHARSET=latin1;
/*Table structure for table `patient` */
DROP TABLE IF EXISTS `patient`;
CREATE TABLE `patient` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pat_name` varchar(255) DEFAULT NULL,
`pat_number` varchar(255) DEFAULT NULL,
`birth_day` varchar(255) DEFAULT NULL,
`gender` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
/*Table structure for table `series` */
DROP TABLE IF EXISTS `series`;
CREATE TABLE `series` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`study_id` int(11) DEFAULT NULL,
`series_uid` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*Table structure for table `study` */
DROP TABLE IF EXISTS `study`;
CREATE TABLE `study` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pat_id` int(11) DEFAULT NULL,
`study_uid` varchar(255) DEFAULT NULL,
`modality` varchar(255) DEFAULT NULL,
`accession_no` varchar(255) DEFAULT NULL,
`study_date` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<gh_stars>1-10
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
ALTER TABLE SNP_REPORTER
DROP PRIMARY KEY CASCADE
/
DROP TABLE SNP_REPORTER CASCADE CONSTRAINTS PURGE
/
--
-- SNP_REPORTER (Table)
--
-- Dependencies:
-- MICROARRAY (Table)
--
CREATE TABLE SNP_REPORTER ( ID NUMBER NOT NULL, NAME VARCHAR2(50 BYTE) NOT NULL, MICROARRAY_ID NUMBER NOT NULL, SNP_ID NUMBER NULL, PHAST_CONSERVATION VARCHAR2(30 BYTE) NULL, BIG_ID VARCHAR2(200 BYTE) NULL, CONSTRAINT SNP_REPORTER_PK PRIMARY KEY (ID), CONSTRAINT SNPREPBIGID UNIQUE (BIG_ID), UNIQUE (NAME, MICROARRAY_ID, SNP_ID, PHAST_CONSERVATION), FOREIGN KEY (MICROARRAY_ID) REFERENCES MICROARRAY (ID) ) TABLESPACE CABIO_FUT NOLOGGING NOCOMPRESS NOCACHE NOPARALLEL MONITORING
/
|
<filename>tests/Database/files/pgsql-nette_test4.sql
DROP SCHEMA IF EXISTS public CASCADE;
CREATE SCHEMA public;
CREATE TABLE simple_pk_autoincrement (
identifier1 serial NOT NULL,
note varchar(100),
PRIMARY KEY (identifier1)
);
CREATE TABLE simple_pk_no_autoincrement (
identifier1 int NOT NULL,
note varchar(100),
PRIMARY KEY (identifier1)
);
CREATE TABLE multi_pk_no_autoincrement (
identifier1 int NOT NULL,
identifier2 int NOT NULL,
note varchar(100),
PRIMARY KEY (identifier1, identifier2)
);
CREATE TABLE multi_pk_autoincrement(
identifier1 serial NOT NULL,
identifier2 int NOT NULL,
note varchar(100),
PRIMARY KEY (identifier1, identifier2)
);
CREATE TABLE no_pk (
note varchar(100)
);
|
<filename>functions/age_category_dyn.sql
CREATE OR REPLACE FUNCTION age_category_dyn (p_age text)
RETURNS text language 'plpgsql' AS
$body$
BEGIN
RETURN ($$CASE
WHEN $$||p_age ||$$ <= 2 THEN 'Infant'
WHEN $$||p_age ||$$<=12 THEN 'Child'
WHEN $$||p_age ||$$<65 THEN 'Adult'
ELSE 'Senior' END$$);
END; $body$; |
-- @testpoint: opengauss关键字destroy(非保留),作为游标名,部分测试点合理报错
--前置条件
drop table if exists destroy_test cascade;
create table destroy_test(cid int,fid int);
--关键字不带引号-成功
start transaction;
cursor destroy for select * from destroy_test order by 1;
close destroy;
end;
--关键字带双引号-成功
start transaction;
cursor "destroy" for select * from destroy_test order by 1;
close "destroy";
end;
--关键字带单引号-合理报错
start transaction;
cursor 'destroy' for select * from destroy_test order by 1;
close 'destroy';
end;
--关键字带反引号-合理报错
start transaction;
cursor `destroy` for select * from destroy_test order by 1;
close `destroy`;
end;
drop table if exists destroy_test cascade;
|
-- @testpoint:opengauss关键字nominvalue(非保留),自定义数据类型名为explain
--关键字explain作为数据类型不带引号,创建成功
drop type if exists nominvalue;
CREATE TYPE nominvalue AS (f1 int, f2 text);
select typname from pg_type where typname ='nominvalue';
drop type nominvalue;
--关键字explain作为数据类型加双引号,创建成功
drop type if exists "nominvalue";
CREATE TYPE "nominvalue" AS (f1 int, f2 text);
select typname from pg_type where typname ='nominvalue';
drop type "nominvalue";
--关键字explain作为数据类型加单引号,合理报错
drop type if exists 'nominvalue';
CREATE TYPE 'nominvalue' AS (f1 int, f2 text);
select * from pg_type where typname ='nominvalue';
drop type 'nominvalue';
--关键字explain作为数据类型加反引号,合理报错
drop type if exists `nominvalue`;
CREATE TYPE `nominvalue` AS (f1 int, f2 text);
select * from pg_type where typname =`nominvalue`;
drop type `nominvalue`; |
<reponame>Nazimkhan1/User-Gallery-Management-In-Codeigniter-Mysql<filename>gallery_db.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 15, 2020 at 09:27 PM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `gallery_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
CREATE TABLE `articles` (
`id` int(11) NOT NULL,
`category_id` int(11) NOT NULL,
`article_title` varchar(50) NOT NULL,
`article_image` text,
`article_details` text,
`added_by` int(11) DEFAULT NULL,
`status` int(11) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `articles`
--
INSERT INTO `articles` (`id`, `category_id`, `article_title`, `article_image`, `article_details`, `added_by`, `status`) VALUES
(1, 1, 'Cat1', '9c25f6dcf3061f1100b2133fa42b7620.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(2, 1, 'Cat2', '30b721d991cc62c0ce3aa1db771e933e.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(3, 1, 'Cat3', 'aaa22748523d7bf7bfad7bd477240a51.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(4, 1, 'Cat4', 'f6ff6323a9f6f9fd5e39c069c08a6e4f.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(5, 1, 'Cat5', 'ebf481c73686d9d8130b1c49abd7f7ee.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(6, 2, 'Dog1', 'cf2905b2596e5ea3d1763eb7e508ced1.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(7, 2, 'Dog2', 'adb63be11cba81b2fa1cbfe5ee222610.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(8, 2, 'Dog3', '99d90fab75a053dce55d8f29a1994dd3.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(9, 2, 'Dog4', 'cd54e3fd1bced2c2b50902d2a0046500.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(10, 2, 'Dog5', '75bc2f47e8e204fd595cfbb29ebb1a69.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(11, 2, 'Dog6', 'e76dd77b0b020049a486c28769609381.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(12, 2, 'Dog7', 'a97bdd1e747a1b93d79805b6bf3a2e44.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(13, 3, 'FLower1', 'ded9b6dc60fa90ec26f42c02a048b4fa.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(14, 3, 'Flower2', '4b34cb134a9d782b7a50a06ad3284643.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(15, 3, 'Flower3', 'acf252a00b3e088291cd421bf5519efb.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(16, 3, 'Flower4', '21b3f688dc75d268be57da8aeccc2459.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(17, 3, 'Flower5', 'ee52fa7b766f58a4b4875381bc394e1b.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(18, 3, 'Flower6', 'ed471e31ec7aeb0ea073c96a5fbc6d9d.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(19, 3, 'FLower7', '852d4b6182e5b9b09cd991da8ad5cf87.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(20, 4, 'Tree1', 'e2caf99eac3d5a4c8c3ebd67084c1b52.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(21, 4, 'Tree2', '25b26f0af8aaed5c58f78799bd1fe3d4.jpg', '<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsummm.</p>\r\n', 1, 1),
(22, 4, 'Tree3', 'f5bc8ecd109eec5713b4b11ea9eae85a.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(23, 4, 'Tree4', '93af90b36843f892f739662356ad5340.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(24, 4, 'Tree5', '5d5717793ed18a338c13b741b556ca42.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(25, 4, 'Tree6', 'cbf18af11679a64ac306a32ac79dfb34.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(26, 5, 'Men1', '213de123230f1f27ad260bff63dd7503.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(27, 5, 'Men2', 'df975dbd46f059be4aeabe9346d4a1c5.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(28, 5, 'Men3', '2934d35e1ea1e033d2d2203577fa9c00.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(29, 5, 'Men4', 'ebf0dc96c0be0269d7de15dda0d3e9d2.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(30, 5, 'Men5', 'c66d034e6dc8f0902e508b32c8faad1a.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(31, 5, 'Men6', '57f8b018aaf3c4747d5702faeb019b42.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(32, 6, 'Women1', 'bc999f915a2e812d0c6b6680d8842f1c.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(33, 6, 'Women2', '065c785d85b4c26811bc6f4d36151459.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(34, 6, 'Women', '0cbe73621521b888eb03a58a5960f8be.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(35, 6, 'Women4', '9da0d4a37ef3fc0e77d919200b1a5d8f.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(36, 6, 'Wmonen', '0cde493a457d4e2c420c28406447d1a0.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(37, 6, 'Wmone6', '77123c506928c89fb60361c0c405ff98.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(38, 7, 'Boy1', '0de73289f31882d9b6905552a9c1e14f.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(39, 7, 'Boy2', '5a170bdfff2cc3645e0ee94804462e76.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(40, 7, 'Boy3', 'c16f93400e1d49dfc13c48654a70f73d.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(41, 7, 'Boy4', '278a304867e1e6c5d4d35cd3f3378d99.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(42, 7, 'Boy5', '9dc2a0d1988f20cc2d5f20b762548e55.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(43, 8, 'Girl1', '509e0903be84021a413a9b16a89f41b5.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(44, 8, 'Girl2', '5c8c6931380bc1c8489f8482ba76e4a1.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(45, 8, 'Girl3', '36fcff1cd44e0855baf298fc4b200d71.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(46, 8, 'Girl4', 'f641c5d569765fc4c63cac5bc8afb2ec.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(47, 8, 'Girl5', '73f6144352045004f0c7f47905418b39.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1),
(48, 8, 'Girl6', 'cb38d24e7eb2610e36f346ec482f8bfa.jpg', 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`category_name` varchar(50) NOT NULL,
`category_detail` text,
`category_image` text,
`category_code` varchar(50) NOT NULL,
`added_by` int(11) NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `category_name`, `category_detail`, `category_image`, `category_code`, `added_by`, `status`) VALUES
(1, 'Cats', '<p>This is a cat category</p>\r\n', 'be10418b9084d7e1021dc9efb453a2a8.jpg', '', 1, 1),
(2, 'Dogs', '<p>This is a dog category</p>\r\n', '7c23cf39321b52c0c36f28ad3b34c183.jpg', '', 1, 1),
(3, 'Flowers', '<p>This is a flower category</p>\r\n', '171cc8841a1f3c246aac80a491a3bace.jpg', '', 1, 1),
(4, 'Trees', '<p>Trees</p>\r\n', '16be332e67a86a97635446e2e91eec9a.jpg', '', 1, 1),
(5, 'Men', '<p>Men</p>\r\n', 'a1b4ad58fd90349e9fee835358bb8e97.jpg', '', 1, 1),
(6, 'Women', '<p>This is a women category</p>\r\n', '252fe34dadf8407431267928c47b6f1b.jpg', '', 1, 1),
(7, 'Boys', '<p>This is a boy category</p>\r\n', '5115be3fddd5797089e9d491e78141ee.jpg', '', 1, 1),
(8, 'Girls', '<p>Girls category</p>\r\n', '444efb7a0d3b3d198377cb1f6935ec60.jpg', '', 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(150) DEFAULT NULL,
`password` varchar(150) DEFAULT NULL,
`user_type` varchar(10) NOT NULL,
`user_name` varchar(50) DEFAULT NULL,
`user_email` varchar(100) DEFAULT NULL,
`user_contact_number` decimal(11,0) NOT NULL,
`about_us` longtext,
`profile_image` text,
`created_on` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_on` timestamp NULL DEFAULT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `user_type`, `user_name`, `user_email`, `user_contact_number`, `about_us`, `profile_image`, `created_on`, `updated_on`, `status`) VALUES
(1, '<EMAIL>', '<PASSWORD>', 'admin', '<NAME>', '<EMAIL>', '9635504472', '<p>I am a full stack php developer and i am working in laravel and codeigniter framework</p>\r\n', 'bb8d35a0a2ca1d0cd3286acd628fc005.jpg', '2020-09-15 20:30:00', NULL, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `articles`
--
ALTER TABLE `articles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `articles`
--
ALTER TABLE `articles`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=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 */;
|
DROP TABLE IF EXISTS apikeys CASCADE;
-- @table apikeys
-- @description stores apikeys for users
CREATE TABLE IF NOT EXISTS apikeys (
user_id UUID NOT NULL,
name VARCHAR NOT NULL,
apikey VARCHAR(32) NOT NULL PRIMARY KEY DEFAULT md5(random()::text),
secret VARCHAR(32) NOT NULL DEFAULT md5(random()::text),
is_active BOOLEAN DEFAULT TRUE,
is_deleted BOOLEAN DEFAULT FALSE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE
);
COMMENT ON TABLE apikeys IS 'User apikeys';
-- @trigger update_apikeys
-- @description update apikey record
DROP TRIGGER IF EXISTS update_apikeys ON apikeys;
CREATE TRIGGER update_apikeys
BEFORE UPDATE ON apikeys
FOR EACH ROW
EXECUTE PROCEDURE update_modified_column();
|
<gh_stars>0
-- ========== ========== ========== ========== ==========
-- Drop view `v_dist_fuel`
DROP VIEW IF EXISTS v_dist_fuel;
-- ========== ========== ========== ========== ==========
-- Create view `v_dist_fuel`
CREATE VIEW IF NOT EXISTS v_dist_fuel
AS
select
date(fuel_date) as "Date"
, odo_km as "Odometer"
, fuel_litres as "Filled (L)"
, fuel_price as "Cost ($)"
from
fuel
inner join distance on distance.odo_date = fuel.fuel_date;
-- ========== ========== ========== ========== ==========
-- Select view `v_dist_fuel`
SELECT * FROM v_dist_fuel;
|
/*
Recuerda que deshabilitar la opción "Enable foreign key checks" para evitar problemas a la hora de importar el script.
*/
DROP TABLE IF EXISTS `RolesUsuario`;
DROP TABLE IF EXISTS `Mensajes`;
DROP TABLE IF EXISTS `Roles`;
DROP TABLE IF EXISTS `Usuarios`;
CREATE TABLE IF NOT EXISTS `Roles` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(15) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE IF NOT EXISTS `RolesUsuario` (
`usuario` int(11) NOT NULL,
`rol` int(11) NOT NULL,
PRIMARY KEY (`usuario`,`rol`),
KEY `rol` (`rol`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE IF NOT EXISTS `Usuarios` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(30) COLLATE utf8mb4_general_ci NOT NULL,
`password` varchar(70) COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
CREATE TABLE IF NOT EXISTS `Mensajes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`autor` int(11) NOT NULL,
`mensaje` varchar(140) NOT NULL,
`fechaHora` DATETIME NOT NULL,
`idMensajePadre` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
ALTER TABLE `RolesUsuario`
ADD CONSTRAINT `RolesUsuario_usuario` FOREIGN KEY (`usuario`) REFERENCES `Usuarios` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `RolesUsuario_rol` FOREIGN KEY (`rol`) REFERENCES `Roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
ALTER TABLE `Mensajes`
ADD CONSTRAINT `Mensajes_mensaje` FOREIGN KEY (`idMensajePadre`) REFERENCES `Mensajes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `Mensajes_autor` FOREIGN KEY (`autor`) REFERENCES `Usuarios` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 08, 2020 at 12:30 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.32
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: `acehotel`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`username_admin` varchar(255) NOT NULL,
`password_admin` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`username_admin`, `password_admin`) VALUES
('admin1', '<PASSWORD>'),
('admin2', '<PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `fasilitas`
--
CREATE TABLE `fasilitas` (
`id_fasilitas` int(11) NOT NULL,
`nama_fasilitas` varchar(255) NOT NULL,
`kategori_fasilitas` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `fasilitas`
--
INSERT INTO `fasilitas` (`id_fasilitas`, `nama_fasilitas`, `kategori_fasilitas`) VALUES
(1, 'Seating Area', 'Hotel'),
(2, 'TV', 'Hotel'),
(3, 'Free Wifi', 'Hotel'),
(4, 'Coffee/Tea Maker', 'Hotel'),
(5, 'Parking', 'Hotel'),
(6, 'Restaurant', 'Hotel'),
(7, '24/7 checkin', 'Hotel'),
(8, 'CCTV', 'Hotel'),
(9, 'Pool', 'Hotel'),
(10, 'Garden', 'Hotel'),
(11, 'AC', 'Room'),
(12, 'Fan', 'Room'),
(13, 'Mini Fridge', 'Room'),
(14, 'TV', 'Room'),
(15, 'Queen Sized Bed', 'Room'),
(16, 'King Sized Bed', 'Room'),
(17, 'Twin Single Bed', 'Room'),
(18, 'Single Bed', 'Room'),
(19, 'Wardrobe', 'Room');
-- --------------------------------------------------------
--
-- Table structure for table `hotel`
--
CREATE TABLE `hotel` (
`id_hotel` varchar(255) NOT NULL,
`username_owner` varchar(255) DEFAULT NULL,
`nama_hotel` varchar(255) DEFAULT NULL,
`alamat_hotel` varchar(255) DEFAULT NULL,
`telepon_hotel` varchar(255) DEFAULT NULL,
`lokasi_kota_hotel` varchar(255) DEFAULT NULL,
`deskripsi_hotel` text CHARACTER SET utf8mb4 DEFAULT NULL,
`fasilitas_hotel` text DEFAULT NULL,
`gmap_link_hotel` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `hotel`
--
INSERT INTO `hotel` (`id_hotel`, `username_owner`, `nama_hotel`, `alamat_hotel`, `telepon_hotel`, `lokasi_kota_hotel`, `deskripsi_hotel`, `fasilitas_hotel`, `gmap_link_hotel`) VALUES
('araya001', 'agung001', 'Hotel Araya', 'Jl araya no 3', '08123456789', NULL, NULL, NULL, NULL),
('araya002', 'agung001', 'Hotel Citra Araya', 'Jl araya no 99F', '088459345775', NULL, NULL, NULL, NULL),
('qwe123', 'asd', 'sdgrfg fgv', 'rfgdf ffgc', '1245678754', NULL, NULL, NULL, NULL),
('test20jul', 'agung001', 'Hotel Test July', 'Melati no 7', '082331602198', NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `kamar`
--
CREATE TABLE `kamar` (
`id_kamar` int(11) NOT NULL,
`id_hotel` varchar(255) DEFAULT NULL,
`nama_kamar` varchar(255) DEFAULT NULL,
`max_guest` int(11) DEFAULT NULL,
`ukuran_kamar` varchar(255) DEFAULT NULL,
`fasilitas_kamar` text DEFAULT NULL,
`harga_min_kamar` int(11) DEFAULT NULL,
`harga_max_kamar` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kamar`
--
INSERT INTO `kamar` (`id_kamar`, `id_hotel`, `nama_kamar`, `max_guest`, `ukuran_kamar`, `fasilitas_kamar`, `harga_min_kamar`, `harga_max_kamar`) VALUES
(1, 'araya001', 'Double Bed standar', 2, NULL, NULL, NULL, NULL),
(2, 'araya001', 'Double Bed Premium', 2, NULL, NULL, NULL, NULL),
(3, 'araya002', 'Double Bed', 2, NULL, NULL, NULL, NULL),
(4, 'araya002', 'Family Room', 4, NULL, NULL, NULL, NULL),
(5, 'araya001', 'KingSize', 3, NULL, NULL, NULL, NULL),
(6, 'qwe123', 'King size', 2, NULL, NULL, NULL, NULL),
(8, 'test20jul', 'Double Bed', 2, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `nokamar`
--
CREATE TABLE `nokamar` (
`no_kamar` varchar(255) NOT NULL,
`id_kamar` int(11) NOT NULL,
`lantai` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `nokamar`
--
INSERT INTO `nokamar` (`no_kamar`, `id_kamar`, `lantai`) VALUES
('101', 1, '1D'),
('101', 2, '1'),
('102', 1, '1F'),
('102', 3, '1'),
('103', 1, '1F'),
('103', 4, '1'),
('104', 1, '2'),
('105', 1, '2'),
('106', 1, '2'),
('107', 1, '2'),
('201', 2, '2F'),
('202', 2, '2F'),
('203', 2, '2F');
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id_order` int(11) NOT NULL,
`id_hotel` varchar(255) DEFAULT NULL,
`id_kamar` int(11) DEFAULT NULL,
`no_kamar` varchar(255) DEFAULT NULL,
`username_user` varchar(255) DEFAULT NULL,
`nama_pemesan` varchar(255) DEFAULT NULL,
`telepon_pemesan` varchar(255) DEFAULT NULL,
`email_pemesan` varchar(255) DEFAULT NULL,
`no_ktp_pemesan` varchar(255) DEFAULT NULL,
`tanggal_check_in` date DEFAULT NULL,
`tanggal_check_out` date DEFAULT NULL,
`tanggal_check_in_real` date DEFAULT NULL,
`tanggal_check_out_real` date DEFAULT NULL,
`jumlah_guest` int(11) DEFAULT NULL,
`jumlah_room` int(11) DEFAULT NULL,
`max_guest` int(11) DEFAULT NULL,
`nama_kamar` varchar(255) DEFAULT NULL,
`nama_hotel` varchar(255) DEFAULT NULL,
`alamat_hotel` varchar(255) DEFAULT NULL,
`telepon_hotel` varchar(255) DEFAULT NULL,
`request_jam_check_in_awal` time DEFAULT NULL,
`request_jam_check_in_akhir` time DEFAULT NULL,
`request_breakfast` tinyint(1) DEFAULT NULL,
`request_rent_car` tinyint(1) DEFAULT NULL,
`total_harga` int(11) DEFAULT NULL,
`tanggal_order` date DEFAULT NULL,
`sumber_order` varchar(255) DEFAULT NULL,
`status_order` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id_order`, `id_hotel`, `id_kamar`, `no_kamar`, `username_user`, `nama_pemesan`, `telepon_pemesan`, `email_pemesan`, `no_ktp_pemesan`, `tanggal_check_in`, `tanggal_check_out`, `tanggal_check_in_real`, `tanggal_check_out_real`, `jumlah_guest`, `jumlah_room`, `max_guest`, `nama_kamar`, `nama_hotel`, `alamat_hotel`, `telepon_hotel`, `request_jam_check_in_awal`, `request_jam_check_in_akhir`, `request_breakfast`, `request_rent_car`, `total_harga`, `tanggal_order`, `sumber_order`, `status_order`) VALUES
(1, 'araya001', 1, '105,106', NULL, '<NAME>', '09834092834', '<EMAIL>', '923748503450345', '2020-02-03', '2020-02-05', '2020-02-03', '2020-02-04', 2, 2, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 180000, '2020-02-02', 'OYO', 'completed'),
(2, 'araya001', 1, '103', NULL, 'Yoko', '0749853948545', '<EMAIL>', '40953045803450345', '2020-02-04', '2020-02-05', '2020-02-04', '2020-02-05', 1, 1, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 120000, '2020-02-03', 'TRAVELOKA', 'completed'),
(3, 'araya001', 1, '101', NULL, 'Andreas', '093459845934', '<EMAIL>', '9385798357954', '2020-02-05', '2020-02-08', '2020-02-05', NULL, 2, 1, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 100000, '2020-02-04', 'OTHER', 'inhouse'),
(4, 'araya001', 1, '101,102', NULL, '<NAME>', '09834092834', '<EMAIL>', '923748503450345', '2020-02-03', '2020-02-04', '2020-02-03', '2020-02-04', 2, 2, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 180000, '2020-02-02', 'OYO', 'completed'),
(5, 'araya001', 1, '104', NULL, 'Yoko', '0749853948545', '<EMAIL>', '40953045803450345', '2020-02-04', '2020-02-06', '2020-02-04', '2020-02-06', 1, 1, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 120000, '2020-02-03', 'TRAVELOKA', 'completed'),
(6, 'araya001', 1, '102', NULL, 'Andreas', '093459845934', '<EMAIL>', '9385798357954', '2020-02-06', '2020-02-08', '2020-02-06', NULL, 2, 1, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 100000, '2020-02-05', 'OTHER', 'inhouse'),
(7, 'araya001', 1, '103,104', NULL, '<NAME>', '09834092834', '<EMAIL>', '923748503450345', '2020-02-06', '2020-02-08', '2020-02-06', NULL, 2, 2, 2, 'double Bed standar', 'Hotel Araya', 'Jl Araya no 3', '08984759834759', NULL, NULL, NULL, NULL, 180000, '2020-02-05', 'OYO', 'inhouse'),
(8, 'araya001', 1, '105', NULL, 'Yoko', '0749853948545', '<EMAIL>', '40953045803450345', '2020-02-07', '2020-02-08', NULL, NULL, 1, 1, 2, 'Double Bed standar', 'Hotel Araya', 'Jl araya no 3', '08123456789', NULL, NULL, NULL, NULL, 120000, '2020-02-03', 'bookingcom', 'upcoming'),
(9, 'araya001', 5, NULL, NULL, 'Andre', '087857419412', '<EMAIL>', '3518361925191', '2020-02-09', '2020-02-03', NULL, NULL, 4, 2, 3, 'KingSize', 'Hotel Araya', 'Jl araya no 3', '08123456789', NULL, NULL, NULL, NULL, 5000000, '2020-02-08', 'bookingcom', 'upcoming'),
(10, 'araya001', 1, '103', NULL, 'vfcfbt', '08589559885855', '<EMAIL>', '56775433467678546', '2020-02-12', '2020-02-13', '2020-02-11', '2020-02-11', 2, 1, 2, 'Double Bed standar', 'Hotel Araya', 'Jl araya no 3', '08123456789', '14:30:00', '15:33:00', NULL, NULL, 300000, '2020-02-11', 'oyo', 'completed'),
(11, 'araya001', 1, NULL, NULL, 'Benny', '08623232656', '<EMAIL>', '84859696968585', '2020-07-20', '2020-07-21', NULL, NULL, 2, 1, 2, 'Double Bed standar', 'Hotel Araya', 'Jl araya no 3', '08123456789', NULL, NULL, NULL, NULL, 10000, '2020-07-20', 'tiketcom', 'upcoming');
-- --------------------------------------------------------
--
-- Table structure for table `owner`
--
CREATE TABLE `owner` (
`username_owner` varchar(255) NOT NULL,
`password_owner` varchar(255) DEFAULT NULL,
`nama_owner` varchar(255) DEFAULT NULL,
`telepon_owner` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `owner`
--
INSERT INTO `owner` (`username_owner`, `password_owner`, `nama_owner`, `telepon_owner`) VALUES
('agung001', '<PASSWORD>', '<NAME>', '08123456789'),
('andreas002', '<PASSWORD>', '<NAME>', '081234567899'),
('asd', '<PASSWORD>', 'asdfgh', '3467854465');
-- --------------------------------------------------------
--
-- Table structure for table `receptionist`
--
CREATE TABLE `receptionist` (
`username_receptionist` varchar(255) NOT NULL,
`password_receptionist` varchar(255) DEFAULT NULL,
`id_hotel` varchar(255) DEFAULT NULL,
`nama_receptionist` varchar(255) DEFAULT NULL,
`telepon_receptionist` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `receptionist`
--
INSERT INTO `receptionist` (`username_receptionist`, `password_receptionist`, `id_hotel`, `nama_receptionist`, `telepon_receptionist`) VALUES
('araya001', 'd01393436e02c4c5078bd5d4a9808182', 'araya001', 'Bunga Melati', '081234567898'),
('citra002', 'd01393436e02c4c5078bd5d4a9808182', 'araya002', 'Bunga Citra Lestari', '0485034580348');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`username_user` varchar(255) NOT NULL,
`password_user` varchar(255) DEFAULT NULL,
`nama_user` varchar(255) DEFAULT NULL,
`telepon_user` varchar(255) DEFAULT NULL,
`email_user` varchar(255) DEFAULT NULL,
`no_ktp_user` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`username_admin`);
--
-- Indexes for table `fasilitas`
--
ALTER TABLE `fasilitas`
ADD PRIMARY KEY (`id_fasilitas`);
--
-- Indexes for table `hotel`
--
ALTER TABLE `hotel`
ADD PRIMARY KEY (`id_hotel`),
ADD KEY `hotel_ibfk_1` (`username_owner`);
--
-- Indexes for table `kamar`
--
ALTER TABLE `kamar`
ADD PRIMARY KEY (`id_kamar`),
ADD KEY `kamar_ibfk_1` (`id_hotel`);
--
-- Indexes for table `nokamar`
--
ALTER TABLE `nokamar`
ADD PRIMARY KEY (`no_kamar`,`id_kamar`),
ADD KEY `id_kamar` (`id_kamar`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id_order`),
ADD KEY `id_hotel` (`id_hotel`),
ADD KEY `id_kamar` (`id_kamar`),
ADD KEY `username_user` (`username_user`);
--
-- Indexes for table `owner`
--
ALTER TABLE `owner`
ADD PRIMARY KEY (`username_owner`);
--
-- Indexes for table `receptionist`
--
ALTER TABLE `receptionist`
ADD PRIMARY KEY (`username_receptionist`),
ADD KEY `receptionist_ibfk_1` (`id_hotel`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`username_user`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `fasilitas`
--
ALTER TABLE `fasilitas`
MODIFY `id_fasilitas` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT for table `kamar`
--
ALTER TABLE `kamar`
MODIFY `id_kamar` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id_order` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `hotel`
--
ALTER TABLE `hotel`
ADD CONSTRAINT `hotel_ibfk_1` FOREIGN KEY (`username_owner`) REFERENCES `owner` (`username_owner`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `kamar`
--
ALTER TABLE `kamar`
ADD CONSTRAINT `kamar_ibfk_1` FOREIGN KEY (`id_hotel`) REFERENCES `hotel` (`id_hotel`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `nokamar`
--
ALTER TABLE `nokamar`
ADD CONSTRAINT `nokamar_ibfk_1` FOREIGN KEY (`id_kamar`) REFERENCES `kamar` (`id_kamar`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_ibfk_1` FOREIGN KEY (`id_hotel`) REFERENCES `hotel` (`id_hotel`),
ADD CONSTRAINT `orders_ibfk_2` FOREIGN KEY (`id_kamar`) REFERENCES `kamar` (`id_kamar`),
ADD CONSTRAINT `orders_ibfk_3` FOREIGN KEY (`username_user`) REFERENCES `user` (`username_user`);
--
-- Constraints for table `receptionist`
--
ALTER TABLE `receptionist`
ADD CONSTRAINT `receptionist_ibfk_1` FOREIGN KEY (`id_hotel`) REFERENCES `hotel` (`id_hotel`) 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 */;
|
<filename>fdb-sql-layer-core/src/test/resources/com/foundationdb/sql/optimizer/rule/promote-outer/if-complete.sql
SELECT * FROM customers LEFT JOIN orders ON customers.cid = orders.cid
WHERE CASE WHEN name = 'Smith' THEN (order_date > '2010-01-01') ELSE (order_date > '2011-01-01') END
|
<reponame>jtsoya539/risk<filename>source/database/generate_docs.sql<gh_stars>0
/*
--------------------------------- MIT License ---------------------------------
Copyright (c) 2019 jtsoya539
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-------------------------------------------------------------------------------
*/
set feedback off
set define off
prompt ###################################
prompt # _____ _____ _____ _ __ #
prompt # | __ \ |_ _| / ____|| |/ / #
prompt # | |__) | | | | (___ | ' / #
prompt # | _ / | | \___ \ | < #
prompt # | | \ \ _| |_ ____) || . \ #
prompt # |_| \_\|_____||_____/ |_|\_\ #
prompt # #
prompt # Proyecto RISK #
prompt # jtsoya539 #
prompt ###################################
prompt
prompt ===================================
prompt Generacion de docs iniciada
prompt ===================================
prompt
prompt
prompt Eliminando docs...
prompt -----------------------------------
prompt
plugin plsqldoc delete;
prompt
prompt Generando docs de secuencias...
prompt -----------------------------------
prompt
prompt
prompt Generando docs de tablas...
prompt -----------------------------------
prompt
plugin plsqldoc generate t_aplicaciones;
plugin plsqldoc generate t_archivo_definiciones;
plugin plsqldoc generate t_archivos;
plugin plsqldoc generate t_barrios;
plugin plsqldoc generate t_ciudades;
plugin plsqldoc generate t_correo_adjuntos;
plugin plsqldoc generate t_correos;
plugin plsqldoc generate t_dato_definiciones;
plugin plsqldoc generate t_datos;
plugin plsqldoc generate t_departamentos;
plugin plsqldoc generate t_dispositivos;
plugin plsqldoc generate t_dispositivo_suscripciones;
plugin plsqldoc generate t_dispositivo_ubicaciones;
plugin plsqldoc generate t_dominios;
plugin plsqldoc generate t_errores;
plugin plsqldoc generate t_mensajes;
plugin plsqldoc generate t_migraciones;
plugin plsqldoc generate t_modulos;
plugin plsqldoc generate t_monedas;
plugin plsqldoc generate t_notificaciones;
plugin plsqldoc generate t_notificacion_plantillas;
plugin plsqldoc generate t_operaciones;
plugin plsqldoc generate t_operacion_logs;
plugin plsqldoc generate t_operacion_parametros;
plugin plsqldoc generate t_paises;
plugin plsqldoc generate t_parametros;
plugin plsqldoc generate t_permisos;
plugin plsqldoc generate t_personas;
plugin plsqldoc generate t_reportes;
plugin plsqldoc generate t_roles;
plugin plsqldoc generate t_rol_permisos;
plugin plsqldoc generate t_rol_usuarios;
plugin plsqldoc generate t_servicios;
plugin plsqldoc generate t_sesiones;
plugin plsqldoc generate t_significado_dominios;
plugin plsqldoc generate t_significados;
plugin plsqldoc generate t_trabajos;
plugin plsqldoc generate t_usuario_claves;
plugin plsqldoc generate t_usuarios;
plugin plsqldoc generate t_usuario_suscripciones;
prompt
prompt Generando docs de vistas...
prompt -----------------------------------
prompt
prompt
prompt Generando docs de types...
prompt -----------------------------------
prompt
plugin plsqldoc generate y_archivo;
plugin plsqldoc generate y_archivos;
plugin plsqldoc generate y_barrio;
plugin plsqldoc generate y_cadenas;
plugin plsqldoc generate y_ciudad;
plugin plsqldoc generate y_correo;
plugin plsqldoc generate y_dato;
plugin plsqldoc generate y_datos;
plugin plsqldoc generate y_departamento;
plugin plsqldoc generate y_dispositivo;
plugin plsqldoc generate y_error;
plugin plsqldoc generate y_mensaje;
plugin plsqldoc generate y_notificacion;
plugin plsqldoc generate y_objeto;
plugin plsqldoc generate y_objetos;
plugin plsqldoc generate y_pagina;
plugin plsqldoc generate y_pagina_parametros;
plugin plsqldoc generate y_pais;
plugin plsqldoc generate y_parametro;
plugin plsqldoc generate y_parametros;
plugin plsqldoc generate y_plantilla;
plugin plsqldoc generate y_respuesta;
plugin plsqldoc generate y_rol;
plugin plsqldoc generate y_sesion;
plugin plsqldoc generate y_significado;
plugin plsqldoc generate y_usuario;
prompt
prompt Generando docs de paquetes...
prompt -----------------------------------
prompt
plugin plsqldoc generate k_aplicacion;
plugin plsqldoc generate k_archivo;
plugin plsqldoc generate k_auditoria;
plugin plsqldoc generate k_autenticacion;
plugin plsqldoc generate k_autorizacion;
plugin plsqldoc generate k_dato;
plugin plsqldoc generate k_dispositivo;
plugin plsqldoc generate k_dominio;
plugin plsqldoc generate k_error;
plugin plsqldoc generate k_html;
plugin plsqldoc generate k_mensajeria;
plugin plsqldoc generate k_modulo;
plugin plsqldoc generate k_operacion;
plugin plsqldoc generate k_reporte;
plugin plsqldoc generate k_reporte_gen;
plugin plsqldoc generate k_servicio;
plugin plsqldoc generate k_servicio_aut;
plugin plsqldoc generate k_servicio_gen;
plugin plsqldoc generate k_servicio_glo;
plugin plsqldoc generate k_servicio_msj;
plugin plsqldoc generate k_sesion;
plugin plsqldoc generate k_significado;
plugin plsqldoc generate k_sistema;
plugin plsqldoc generate k_trabajo;
plugin plsqldoc generate k_usuario;
plugin plsqldoc generate k_util;
prompt
prompt Generando docs de triggers...
prompt -----------------------------------
prompt
plugin plsqldoc generate gb_archivos;
plugin plsqldoc generate gb_datos;
plugin plsqldoc generate gb_mensajes;
plugin plsqldoc generate gb_operaciones;
plugin plsqldoc generate gb_operacion_parametros;
plugin plsqldoc generate gb_personas;
plugin plsqldoc generate gb_reportes;
plugin plsqldoc generate gb_servicios;
plugin plsqldoc generate gb_sesiones;
plugin plsqldoc generate gb_trabajos;
plugin plsqldoc generate gb_usuarios;
plugin plsqldoc generate gf_operaciones;
plugin plsqldoc generate gs_barrios;
plugin plsqldoc generate gs_ciudades;
plugin plsqldoc generate gs_correo_adjuntos;
plugin plsqldoc generate gs_correos;
plugin plsqldoc generate gs_departamentos;
plugin plsqldoc generate gs_dispositivos;
plugin plsqldoc generate gs_mensajes;
plugin plsqldoc generate gs_notificaciones;
plugin plsqldoc generate gs_operaciones;
plugin plsqldoc generate gs_operacion_logs;
plugin plsqldoc generate gs_paises;
plugin plsqldoc generate gs_personas;
plugin plsqldoc generate gs_roles;
plugin plsqldoc generate gs_sesiones;
plugin plsqldoc generate gs_usuarios;
prompt
prompt Generando index...
prompt -----------------------------------
prompt
plugin plsqldoc rebuild;
prompt
prompt ===================================
prompt Generacion de docs finalizada
prompt ===================================
prompt
|
### Schema
CREATE DATABASE burger_db;
USE burger_db;
CREATE TABLE burgers
(
id int NOT NULL AUTO_INCREMENT,
burger_name varchar(255) NOT NULL,
devoured boolean NOT NULL,
PRIMARY KEY (id)
);
|
-- update.test
--
-- execsql {SELECT * FROM test1 WHERE f1==778 ORDER BY f1,f2}
SELECT * FROM test1 WHERE f1==778 ORDER BY f1,f2 |
--
-- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
--
---------------------------------------------------------------------------------------------------------------------------------
-- AddPartnerUserIDs.sql
-- Copyright (c) Microsoft Corporation. All rights reserved.
---------------------------------------------------------------------------------------------------------------------------------
-- AddPartnerUserIDs
-- Adds new partner user IDs unless a different Active ID is already present.
-- Parameters:
-- @userId: The ID assigned to the user in the Earn system.
-- @partnerUserIDRecords PartnerUserIDRecords: The list of partner user IDs.
-- Remarks:
-- Partner user ID records are deactivated instead of deleted to maintain history and referential integrity.
create procedure dbo.AddPartnerUserIDs @userID int,
@partnerUserIDRecords PartnerUserIDRecords READONLY
as
set nocount on;
insert into dbo.PartnerUserIDs(UserId, [Partner], PartnerUserID)
select @userId, partnerUserIDRecords.[Partner], partnerUserIDRecords.PartnerUserID
from @partnerUserIDRecords as partnerUserIDRecords
left outer join dbo.PartnerUserIDs
on PartnerUserIDs.[Partner] = partnerUserIDRecords.[Partner] and
PartnerUserIDs.PartnerUserID = partnerUserIDRecords.PartnerUserID
where PartnerUserIDs.[Partner] is null and not exists(select PartnerUserIDs.[Partner] from dbo.PartnerUserIDs
where PartnerUserIDs.UserId = @userID and Active = 1 and
[Partner] = partnerUserIDRecords.[Partner]);
GO |
-- @Title: 每个帖子的评论数 (Number of Comments per Post)
-- @Author: Singularity0909
-- @Date: 2020-10-28 00:12:27
-- @Runtime: 966 ms
-- @Memory: 0 B
select distinct t1.sub_id post_id, ifnull(count(distinct t2.sub_id), 0) number_of_comments
from Submissions t1 left join Submissions t2
on t1.sub_id = t2.parent_id
where t1.parent_id is null
group by t1.sub_id
|
SELECT c.Name
FROM City AS c
JOIN Country AS ct ON ct.Code = c.CountryCode
WHERE ct.Continent = 'Africa' |
<reponame>criticaldatacourse/hst953-2018-team_h
---- This script combines the total volume of normal saline and the difference of hemoglobin between measurements
select hgb.subject_id, hgb.icustay_id, hgb.hadm_id, hgb.ICU_admitted, hgb.first_measurement,
hgb.last_measurement,
hgb.HEMOGLOBIN_1st,
hgb.hemoglobin_24, hgb.hgb_difference, fluid.total_ns_cv
from `hst-953-2018.team_h.hgb_differ` as hgb
left join `hst-953-2018.team_h.valid_pt_received_ns` as fluid
on hgb.icustay_id = fluid.icustay_id
where total_ns_cv is not null
|
<gh_stars>1-10
DROP DATABASE IF EXISTS monkey_db;
CREATE DATABASE monkey_db;
|
-- high water mark for sessions (since Oracle was started)
select sessions_max, sessions_warning, sessions_current, sessions_highwater from v$license
|
--
--
--
-- @author <NAME> (<EMAIL>)
-- @creation-date 2005-01-05
-- @arch-tag: d0ff33aa-5369-4926-973d-001db0e0c690
-- @cvs-id $Id: upgrade-5.1.0a13-5.1.0a14.sql,v 1.3 2015/12/04 14:02:55 cvs Exp $
--
-- Add root folders into dav_site_node_folder_map
insert into dav_site_node_folder_map (select sn.node_id, fs.folder_id, 'f' from fs_root_folders fs, site_nodes sn where sn.object_id=fs.package_id and fs.folder_id not in (select folder_id from dav_site_node_folder_map)); |
<gh_stars>0
select
'PQ_TQSTAT' CNAME, to_char(systimestamp, 'yyyy-mm-dd"T"hh24:mi:ss.ff') CTIMESTAMP,
v$pq_tqstat.*
from
v$pq_tqstat
/
|
<reponame>DIM-JACK/FYP<gh_stars>0
CREATE TRIGGER APPLICATION_DELETE BEFORE DELETE ON APPLICATION
FOR EACH ROW BEGIN
DELETE FROM APP_CACHE_VIEW WHERE APP_UID = OLD.APP_UID;
END |
# --- !Ups
create table user (
email varchar(255) not null,
name varchar(255),
password varchar(255),
constraint pk_user primary key (email)
);
create table project (
id bigint not null,
name varchar(255),
folder varchar(255),
constraint pk_project primary key (id)
);
create table task (
id bigint not null,
title varchar(255),
done boolean,
due_date timestamp,
assigned_to_email varchar(255),
folder varchar(255),
project_id bigint,
constraint pk_task primary key (id),
foreign key (assigned_to_email) references user (email) on delete set null on update restrict,
foreign key (project_id) references project (id) on delete cascade on update restrict
);
create table project_user (
project_id bigint not null,
user_email varchar(255) not null,
constraint pk_project_user primary key (project_id, user_email),
foreign key (project_id) references project (id) on delete cascade on update restrict,
foreign key (user_email) references user (email) on delete cascade on update restrict
);
create sequence project_seq start with 1000;
create sequence task_seq start with 1000;
# --- !Downs
drop table if exists task;
drop table if exists project_user;
drop table if exists project;
drop table if exists user;
drop sequence if exists project_seq;
drop sequence if exists task_seq;
|
<filename>eval_model.sql
SELECT
roc_auc,
# evaluating the auc value based on the scale at http://gim.unmc.edu/dxtests/roc3.htm
CASE WHEN roc_auc >.9 THEN 'excellent' WHEN roc_auc >.8 THEN 'good'
WHEN roc_auc >.7 THEN 'fair' WHEN roc_auc >.6 THEN 'poor' ELSE 'fail' END
AS modelquality
FROM ML.EVALUATE(MODEL `bqml.rpm_bqml_model`); |
<gh_stars>100-1000
CREATE TABLE `article_history`(
`ah_id` BIGINT(20) NOT NULL AUTO_INCREMENT ,
`ah_version` VARCHAR(100) NOT NULL COMMENT '修改版本' ,
`ah_content` TEXT NOT NULL COMMENT '修改内容' ,
`ah_users_id` BIGINT(20) NOT NULL ,
`ah_article_id` BIGINT(20) NOT NULL ,
`create_time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ,
PRIMARY KEY(`ah_id`) ,
CONSTRAINT `FK_ah_users_id` FOREIGN KEY(`ah_users_id`) REFERENCES `users`(`u_id`) ON DELETE CASCADE ,
CONSTRAINT `FK_ah_article_id` FOREIGN KEY(`ah_article_id`) REFERENCES `article`(`a_id`) ON DELETE CASCADE ,
INDEX `FK_ah_users_id` USING BTREE(`ah_users_id`) COMMENT ''
) ENGINE = `InnoDB` AUTO_INCREMENT = 1 DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ROW_FORMAT = DYNAMIC COMMENT = '' CHECKSUM = 0 DELAY_KEY_WRITE = 0; |
-- @testpoint:opengauss关键字Key(非保留),作为用户名
--关键字explain作为用户名不带引号,创建成功
drop user if exists Key;
CREATE USER Key PASSWORD '<PASSWORD>';
drop user Key;
--关键字explain作为用户名加双引号,创建成功
drop user if exists "Key";
CREATE USER "Key" PASSWORD '<PASSWORD>';
drop user "Key";
--关键字explain作为用户名加单引号,合理报错
CREATE USER 'Key' PASSWORD '<PASSWORD>';
--关键字explain作为用户名加反引号,合理报错
CREATE USER `Key` PASSWORD '<PASSWORD>';
|
CREATE TABLE `tblVendorCSVMapping` (
`VendorCSVMappingId` int(11) NOT NULL AUTO_INCREMENT,
`VendorId` int(11) DEFAULT NULL,
`ExcelColumn` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`MapTo` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`VendorCSVMappingId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci |
<reponame>robertomrosati/friuli-a-domicilio<filename>_public_scripts/FriuliDomicilio_insert_03_E_Cities_FVG.sql
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA103', 'A103', 'Aiello del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA254', 'A254', 'Amaro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA267', 'A267', 'Ampezzo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA346', 'A346', 'Aquileia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA447', 'A447', 'Arta Terme', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA448', 'A448', 'Artegna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA491', 'A491', 'Attimis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA553', 'A553', 'Bagnaria Arsa', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA700', 'A700', 'Basiliano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA810', 'A810', 'Bertiolo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA855', 'A855', 'Bicinicco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA983', 'A983', 'Bordano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB259', 'B259', 'Buja', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB309', 'B309', 'Buttrio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB483', 'B483', 'Camino al Tagliamento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB536', 'B536', 'Campoformido', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB788', 'B788', 'Carlino', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB994', 'B994', 'Cassacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC327', 'C327', 'Castions di Strada', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC389', 'C389', 'Cavazzo Carnico', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC494', 'C494', 'Cercivento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC556', 'C556', 'Cervignano del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC641', 'C641', 'Chiopris-Viscone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC656', 'C656', 'Chiusaforte', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC758', 'C758', 'Cividale del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC817', 'C817', 'Codroipo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC885', 'C885', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC918', 'C918', 'Comeglians', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD027', 'D027', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD085', 'D085', 'Coseano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD300', 'D300', 'Dignano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD316', 'D316', 'Dogna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD366', 'D366', 'Drenchia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD408', 'D408', 'Enemonzo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD455', 'D455', 'Faedis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD461', 'D461', 'Fagagna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD627', 'D627', 'Fiumicello', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD630', 'D630', 'Flaibano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD718', 'D718', 'Forni Avoltri', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD719', 'D719', 'Forni di Sopra', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD720', 'D720', 'Forni di Sotto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD962', 'D962', 'Gemona del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE083', 'E083', 'Gonars', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE179', 'E179', 'Grimacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE473', 'E473', 'Latisana', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE476', 'E476', 'Lauco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE553', 'E553', 'Lestizza', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE584', 'E584', 'Lignano Sabbiadoro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE586', 'E586', 'Ligosullo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE760', 'E760', 'Lusevera', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE820', 'E820', 'Magnano in Riviera', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE833', 'E833', 'Majano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE847', 'E847', 'Malborghetto Valbruna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE899', 'E899', 'Manzano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE910', 'E910', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE982', 'E982', 'Martignacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF144', 'F144', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF266', 'F266', 'Moggio Udinese', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF275', 'F275', 'Moimacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF574', 'F574', 'Montenars', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF756', 'F756', 'Mortegliano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF760', 'F760', 'Moruzzo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF832', 'F832', 'Muzzana del Turgnano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF898', 'F898', 'Nimis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG163', 'G163', 'Osoppo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG198', 'G198', 'Ovaro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG238', 'G238', 'Pagnacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG268', 'G268', 'Palazzolo dello Stella', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG284', 'G284', 'Palmanova', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG300', 'G300', 'Paluzza', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG352', 'G352', 'Pasian di Prato', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG381', 'G381', 'Paularo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG389', 'G389', 'Pavia di Udine', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG743', 'G743', 'Pocenia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG831', 'G831', 'Pontebba', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG891', 'G891', 'Porpetto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG949', 'G949', 'Povoletto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG966', 'G966', 'Pozzuolo del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG969', 'G969', 'Pradamano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH002', 'H002', 'Prato Carnico', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH014', 'H014', 'Precenicco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH029', 'H029', 'Premariacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH038', 'H038', 'Preone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH040', 'H040', 'Prepotto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH089', 'H089', 'Pulfero', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH161', 'H161', 'Ragogna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH196', 'H196', 'Ravascletto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH200', 'H200', 'Raveo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH206', 'H206', 'Reana del Rojale', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH229', 'H229', 'Remanzacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH242', 'H242', 'Resia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH244', 'H244', 'Resiutta', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH289', 'H289', 'Rigolato', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH347', 'H347', 'Rive dArcano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH533', 'H533', 'Ronchis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH629', 'H629', 'Ruda', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH816', 'H816', 'San Daniele del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH895', 'H895', 'San Giorgio di Nogaro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH906', 'H906', 'San Giovanni al Natisone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH951', 'H951', 'San Leonardo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI092', 'I092', 'San Pietro al Natisone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI248', 'I248', 'Santa Maria la Longa', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI404', 'I404', 'San Vito al Torre', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI405', 'I405', 'San Vito di Fagagna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI421', 'I421', 'Sappada', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI464', 'I464', 'Sauris', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI478', 'I478', 'Savogna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI562', 'I562', 'Sedegliano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI777', 'I777', 'Socchieve', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI974', 'I974', 'Stregna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL018', 'L018', 'Sutrio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG736', 'G736', 'Taipana', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL039', 'L039', 'Talmassons', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL050', 'L050', 'Tarcento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL057', 'L057', 'Tarvisio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL065', 'L065', 'Tavagnacco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL144', 'L144', 'Terzo dAquileia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL195', 'L195', 'Tolmezzo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL246', 'L246', 'Torreano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL309', 'L309', 'Torviscosa', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL335', 'L335', 'Trasaghis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL381', 'L381', 'Treppo Carnico', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL382', 'L382', 'Treppo Grande', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL421', 'L421', 'Tricesimo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL438', 'L438', 'Trivignano Udinese', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL483', 'L483', 'Udine', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL686', 'L686', 'Varmo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL743', 'L743', 'Venzone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL801', 'L801', 'Verzegnis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL909', 'L909', 'Villa Santina', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM034', 'M034', 'Villa Vicentina', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM073', 'M073', 'Visco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM200', 'M200', 'Zuglio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD700', 'D700', 'Forgaria nel Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM311', 'M311', 'Campolongo Tapogliano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM317', 'M317', 'Rivignano Teor', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'UD'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB712', 'B712', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD014', 'D014', 'Cormons', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD312', 'D312', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD321', 'D321', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD504', 'D504', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD645', 'D645', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE098', 'E098', 'Gorizia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE124', 'E124', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE125', 'E125', 'Grado', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE952', 'E952', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF081', 'F081', 'Medea', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF356', 'F356', 'Monfalcone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF710', 'F710', 'Moraro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF767', 'F767', 'Mossa', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH514', 'H514', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH531', 'H531', 'Ronchi dei Legionari', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH665', 'H665', 'Sagrado', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH787', 'H787', 'San Canzian dIsonzo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH845', 'H845', 'San Floriano del Collio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH964', 'H964', 'San Lorenzo Isontino', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI082', 'I082', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI479', 'I479', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI939', 'I939', 'Staranzano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL474', 'L474', 'Turriaco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM043', 'M043', 'Villesse', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'GO'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD383', 'D383', 'Duino-Aurisina', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF378', 'F378', 'Monrupino', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF795', 'F795', 'Muggia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD324', 'D324', 'San Dorligo della Valle-Dolina', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI715', 'I715', 'Sgonico', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL424', 'L424', 'Trieste', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'TS'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA283', 'A283', 'Andreis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA354', 'A354', 'Arba', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA516', 'A516', 'Aviano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA530', 'A530', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITA640', 'A640', 'Barcis', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB215', 'B215', 'Brugnera', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB247', 'B247', 'Budoia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB598', 'B598', 'Caneva', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITB940', 'B940', 'Casarsa della Delizia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC217', 'C217', 'Castelnovo del Friuli', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC385', 'C385', 'Cavasso Nuovo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC640', 'C640', 'Chions', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC699', 'C699', 'Cimolais', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC790', 'C790', 'Claut', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC791', 'C791', 'Clauzetto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC991', 'C991', 'Cordenons', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITC993', 'C993', 'Cordovado', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD426', 'D426', 'Erto e Casso', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD487', 'D487', 'Fanna', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD621', 'D621', 'Fiume Veneto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD670', 'D670', 'Fontanafredda', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITD804', 'D804', 'Frisanco', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITE889', 'E889', 'Maniago', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF089', 'F089', 'Meduno', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF596', 'F596', 'Mont<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITF750', 'F750', 'Morsano al Tagliamento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG353', 'G353', 'Pasiano di Pordenone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG680', 'G680', 'Pinzano al Tagliamento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG780', 'G780', 'Polcenigo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG886', 'G886', 'Porcia', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG888', 'G888', 'Pordenone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITG994', 'G994', 'Prata di Pordenone', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH010', 'H010', 'Pravisdomini', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH609', 'H609', 'Roveredo in Piano', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH657', 'H657', 'Sacile', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH891', 'H891', 'San Giorgio della Richinvelda', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITH999', 'H999', 'San Martino al Tagliamento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI136', 'I136', 'San Quirino', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI403', 'I403', 'San Vito al Tagliamento', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI621', 'I621', 'Sequals', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI686', 'I686', 'Sesto al Reghena', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITI904', 'I904', 'Spilimbergo', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL324', 'L324', 'Tramonti di Sopra', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL325', 'L325', 'Tramonti di Sotto', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITL347', 'L347', 'Travesio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM085', 'M085', 'Vito dAsio', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM096', 'M096', 'Vivaro', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM190', 'M190', 'Zoppola', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM265', 'M265', 'Vajont', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN'));
insert into e_cities(e_cities_code, e_cities_code_local, e_cities_description, e_cities_visible, e_cities_e_provinces_id) values ('ITM346', 'M346', '<NAME>', 1, (select e_provinces_id from e_provinces where e_provinces_code_local = 'PN')); |
<reponame>dianeyeo/StrataScratch<gh_stars>0
/*
Find whether the number of seniors works at Meta/Facebook is higher than its number of USA based employees
https://platform.stratascratch.com/coding/10065-find-whether-the-number-of-seniors-works-at-facebook-is-higher-than-its-number-of-usa-based-employees?python=
Difficulty: Medium
Tables:
facebook_employees
id int
location varchar
age int
gender varchar
is_senior bool
*/
SELECT CASE
WHEN
-- count total num of seniors in fb
(SELECT COUNT(is_senior)
FROM facebook_employees
WHERE is_senior = TRUE)
>
-- count total num of seniors in USA
(SELECT COUNT(is_senior)
FROM facebook_employees
WHERE location = 'USA'
AND is_senior = TRUE)
-- if seniors > usa_seniors then 'more seniors'
THEN 'More seniors'
-- else 'more USA-based'
ELSE 'More USA-based' END;
|
<reponame>TulevaEE/onboarding-service
ALTER TABLE mandate
ADD COLUMN address jsonb;
|
with x as (
select path_id, path, title from paths
where site_id = :site and
(lower(path) like lower(:search) {{:match_title or lower(title) like lower(:search)}})
)
select
path_id, path, title,
sum(total) as count
from hit_counts
join x using(path_id)
where site_id = :site
group by path_id, path, title
order by count desc
|
<filename>C#DBFundamentals/DB-Basics-MS-SQL-Server/02DataDefinitionAndDatatypes/DataDefinitionAndDatatypesExercises/23. Decrease Tax Rate.sql
USE Hotel
UPDATE Payments
SET TaxRate -= (TaxRate * 3) / 100
SELECT TaxRate FROM Payments |
<reponame>scala-steward/bitcoin-s
CREATE TABLE IF NOT EXISTS "txo_spending_info" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,"tx_outpoint" VARCHAR(254) NOT NULL, "script_pub_key" VARCHAR(254) NOT NULL,"value" INTEGER NOT NULL,"hd_privkey_path" VARCHAR(254) NOT NULL,"redeem_script" VARCHAR(254),"script_witness" VARCHAR(254),"confirmations" INTEGER,"spent" INTEGER NOT NULL,"txid" VARCHAR(254) NOT NULL,"block_hash" VARCHAR(254),constraint "fk_scriptPubKey" foreign key("script_pub_key") references "addresses"("script_pub_key") on update NO ACTION on delete NO ACTION);
CREATE TABLE IF NOT EXISTS "wallet_accounts" ("hd_purpose" INTEGER NOT NULL,"xpub" VARCHAR(254) NOT NULL,"coin" INTEGER NOT NULL,"account_index" INTEGER NOT NULL,constraint "pk_account" primary key("hd_purpose","coin","account_index"));
CREATE TABLE IF NOT EXISTS "addresses" ("hd_purpose" INTEGER NOT NULL,"account_index" INTEGER NOT NULL,"hd_coin" INTEGER NOT NULL,"hd_chain_type" INTEGER NOT NULL,"address" VARCHAR(254) PRIMARY KEY NOT NULL,"script_witness" VARCHAR(254),"script_pub_key" VARCHAR(254) NOT NULL UNIQUE,"address_index" INTEGER NOT NULL,"pubkey" VARCHAR(254) NOT NULL,"hashed_pubkey" VARCHAR(254) NOT NULL,"script_type" VARCHAR(254) NOT NULL,constraint "fk_account" foreign key("hd_purpose","hd_coin","account_index") references "wallet_accounts"("hd_purpose","coin","account_index") on update NO ACTION on delete NO ACTION); |
<filename>db/schema/02_todos.sql
DROP TABLE IF EXISTS todos CASCADE;
CREATE TABLE todos (
id SERIAL PRIMARY KEY NOT NULL,
memo VARCHAR(255) NOT NULL,
memo_type VARCHAR(255) NOT NULL,
timestamp VARCHAR(255) NOT NULL,
user_id int REFERENCES users(id)
);
|
create or replace view v_report_invoices_balance_daily as
select
ai.tenant_record_id
, ai.currency
, date_format(ai.created_date,'%Y-%m-%d') as day
, sum(ai.converted_balance) as count
from
analytics_invoices ai
where 1=1
and ai.report_group='default'
group by 1,2,3
;
|
<filename>misc/sql-scraps/create_pfsignalp.sql
-- -----------------------------------------------------------------------------
-- NAME: create_pfsignalpnn.sql
-- PURPOSE: sql statements to create pfsignalpnnnn and pfsignalpnnhmm tables
--
-- $Id: create_pfsignalpnn.sql,v 1.2 2003/10/17 21:04:27 cavs Exp $
-- -----------------------------------------------------------------------------
--
-- pfsignalphnn stores signalp neural network results
--
DROP TABLE pfsignalpnn;
CREATE TABLE pfsignalpnn (
pftype_id integer DEFAULT pftype_id_lookup('SignalP-2.0'::text)
)
INHERITS (pfeature) WITHOUT OIDS;
COMMENT ON TABLE pfsignalpnn IS 'neural network output from SignalP';
COMMENT ON COLUMN pfsignalpnn.confidence IS 'mean S value';
-- permissions
REVOKE ALL ON TABLE pfsignalpnn FROM PUBLIC;
GRANT SELECT ON TABLE pfsignalpnn TO PUBLIC;
GRANT INSERT,UPDATE ON TABLE pfsignalpnn TO loader;
-- indices
CREATE UNIQUE INDEX pfsignalpnn_sc_exists ON pfsignalpnn USING btree (pseq_id, "start", stop);
CREATE INDEX pfsignalpnn_pseq_id_idx ON pfsignalpnn USING btree (pseq_id);
CREATE INDEX pfsignalpnn_pftype_id_idx ON pfsignalpnn USING btree (pftype_id);
CREATE INDEX pfsignalpnn_start_idx ON pfsignalpnn USING btree ("start");
CREATE INDEX pfsignalpnn_stop_idx ON pfsignalpnn USING btree (stop);
CREATE INDEX pfsignalpnn_quality_idx ON pfsignalpnn USING btree (confidence);
-- foreign keys
ALTER TABLE ONLY pfsignalpnn
ADD CONSTRAINT pseq_id_exists FOREIGN KEY (pseq_id) REFERENCES pseq(pseq_id) ON UPDATE CASCADE ON DELETE CASCADE;
ALTER TABLE ONLY pfsignalpnn
ADD CONSTRAINT pftype_id_exists FOREIGN KEY (pftype_id) REFERENCES pftype(pftype_id) ON UPDATE CASCADE ON DELETE CASCADE;
--
-- pfsignalphmm stores signalp HMM results
--
DROP TABLE pfsignalphmm;
CREATE TABLE pfsignalphmm (
pftype_id integer DEFAULT pftype_id_lookup('SignalP-2.0'::text),
siganchor_prob real,
max_cleavage_prob real
)
INHERITS (pfeature) WITHOUT OIDS;
COMMENT ON TABLE pfsignalphmm IS 'HMM output from SignalP';
COMMENT ON COLUMN pfsignalphmm.confidence IS 'signal sequence probability';
COMMENT ON COLUMN pfsignalphmm.siganchor_prob IS 'signal anchor probability';
COMMENT ON COLUMN pfsignalphmm.max_cleavage_prob IS 'max cleavage site probability';
-- permissions
REVOKE ALL ON TABLE pfsignalphmm FROM PUBLIC;
GRANT SELECT ON TABLE pfsignalphmm TO PUBLIC;
GRANT INSERT,UPDATE ON TABLE pfsignalphmm TO loader;
-- indices
CREATE UNIQUE INDEX pfsignalphmm_sc_exists ON pfsignalphmm USING btree (pseq_id, "start", stop);
CREATE INDEX pfsignalphmm_pseq_id_idx ON pfsignalphmm USING btree (pseq_id);
CREATE INDEX pfsignalphmm_pftype_id_idx ON pfsignalphmm USING btree (pftype_id);
CREATE INDEX pfsignalphmm_start_idx ON pfsignalphmm USING btree ("start");
CREATE INDEX pfsignalphmm_stop_idx ON pfsignalphmm USING btree (stop);
CREATE INDEX pfsignalphmm_quality_idx ON pfsignalphmm USING btree (confidence);
CREATE INDEX pfsignalphmm_siganchor_idx ON pfsignalphmm USING btree (siganchor_prob);
CREATE INDEX pfsignalphmm_max_idx ON pfsignalphmm USING btree (max_cleavage_prob);
-- foreign keys
ALTER TABLE ONLY pfsignalphmm
ADD CONSTRAINT pseq_id_exists FOREIGN KEY (pseq_id) REFERENCES pseq(pseq_id) ON UPDATE CASCADE ON DELETE CASCADE;
ALTER TABLE ONLY pfsignalphmm
ADD CONSTRAINT pftype_id_exists FOREIGN KEY (pftype_id) REFERENCES pftype(pftype_id) ON UPDATE CASCADE ON DELETE CASCADE;
|
-- drop and create
DROP EXTENSION IF EXISTS hstore CASCADE;
CREATE EXTENSION hstore; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.