sql stringlengths 6 1.05M |
|---|
ALTER TABLE codebases_garbage_collection_status
SET codebase_id PRIMARY KEY;
ALTER TABLE codebases_garbage_collection_status
RENAME COLUMN completed_at TO last_collected_completed_at;
ALTER TABLE codebases_garbage_collection_status
RENAME COLUMN duration_millis TO last_collection_duration_millis;
|
<filename>moat369/sql/moat369_fc_call_section_sub.sql
-- This code will call a section and print it.
-- Param 1 = Section ID
-- Param 2 = Section Name
-- Param 3 = File Name
DEF moat369_subsec_id = '&1.'
DEF moat369_subsec_fl = '&2.'
DEF moat369_subsec_nm = '&3.'
UNDEF 1 2 3
@@&&skip_tkprof.moat369_0g_tkprof.sql
DEF section_id = '&&moat369_subsec_id.';
DEF section_name = '&&moat369_subsec_nm.';
EXEC DBMS_APPLICATION_INFO.SET_MODULE('&&moat369_prefix.','&§ion_id.');
@@&&fc_spool_start.
SPO &&moat369_main_report. APP;
PRO <h3>&§ion_id.. &§ion_name.</h3>
PRO <ol start="&&report_sequence.">
SPO OFF;
@@&&fc_spool_end.
-- Reset section related DEFs
@@&&fc_reset_defs.
@@&&fc_def_output_file. sub_section_fifo '&&moat369_subsec_id._fifo.sql'
-- HOS mkfifo &&sub_section_fifo.
set define ^
HOS [ '^^moat369_sw_enc_sql.' == 'Y' ] && (cat ^^moat369_sw_folder./^^moat369_subsec_fl. | openssl enc -d -aes256 -a -salt -pass file:^^moat369_enc_pub_file. > ^^sub_section_fifo.)
-- HOS [ '^^moat369_sw_enc_sql.' != 'Y' ] && (echo "@@^^moat369_sw_folder./^^moat369_subsec_fl." > ^^sub_section_fifo.) Commented to reduce nested queries
HOS [ '^^moat369_sw_enc_sql.' != 'Y' ] && (cat ^^moat369_sw_folder./^^moat369_subsec_fl. > ^^sub_section_fifo.)
set define &
@&&sub_section_fifo.
HOS rm &&sub_section_fifo.
@@&&fc_spool_start.
SPO &&moat369_main_report. APP;
PRO </ol>
SPO OFF;
@@&&fc_spool_end.
UNDEF section_id section_name sub_section_fifo
UNDEF moat369_subsec_id moat369_subsec_fl moat369_subsec_nm |
DROP TABLE IF EXISTS `site`;
CREATE TABLE `site` (
`id` int(10) unsigned NOT NULL DEFAULT '0',
`name` varchar(32) NOT NULL,
`repo_uri` varchar(256) NOT NULL DEFAULT '__REPO_URI__',
`parent_id` int(10) unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
<reponame>rampmaster/SyntaxisLite
CREATE TABLE IF NOT EXISTS `a_comentarios` (
`com_id` int(11) NOT NULL AUTO_INCREMENT,
`com_file` int(11) NOT NULL,
`com_user` int(11) NOT NULL,
`com_body` text NOT NULL,
`com_fecha` int(10) NOT NULL,
`com_ip` varchar(50) NOT NULL,
PRIMARY KEY (`com_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `a_descargas` (
`descarga_id` int(11) NOT NULL AUTO_INCREMENT,
`d_file` int(11) NOT NULL,
`d_user` int(11) NOT NULL,
`d_autor` int(11) NOT NULL,
`d_total` int(11) NOT NULL,
`d_fecha` int(10) NOT NULL,
`d_ip` varchar(50) NOT NULL,
PRIMARY KEY (`descarga_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `a_favoritos` (
`fav_id` int(11) NOT NULL AUTO_INCREMENT,
`fav_file` int(11) NOT NULL,
`fav_user` int(11) NOT NULL,
`fav_fecha` int(10) NOT NULL,
PRIMARY KEY (`fav_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `a_files` (
`file_id` int(11) NOT NULL AUTO_INCREMENT,
`f_nombre` varchar(250) NOT NULL,
`f_url` varchar(250) NOT NULL,
`f_fecha` int(10) NOT NULL,
`f_peso` varchar(10) NOT NULL,
`f_tipo` varchar(100) NOT NULL,
`f_ext` varchar(10) NOT NULL,
`f_user` int(11) NOT NULL,
`f_descargas` int(11) NOT NULL,
`f_comentarios` int(11) NOT NULL,
`f_privado` int(1) NOT NULL,
`f_estado` int(1) NOT NULL,
`f_folder` int(11) NOT NULL,
`f_ip` varchar(50) NOT NULL,
PRIMARY KEY (`file_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
CREATE TABLE IF NOT EXISTS `a_folder_files` (
`folder_id` int(11) NOT NULL AUTO_INCREMENT,
`folder_name` varchar(200) NOT NULL,
`folder_user` int(11) NOT NULL,
`folder_seo` varchar(200) NOT NULL,
`folder_fecha` int(10) NOT NULL,
`folder_priv` int(1) NOT NULL,
PRIMARY KEY (`folder_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
ALTER TABLE `w_configuracion` ADD `c_max_upload` INT NOT NULL,
ADD `c_files_type` INT( 1 ) NOT NULL,
ADD `c_files_ext` VARCHAR( 150 ) NOT NULL;
ALTER TABLE `p_borradores` CHANGE `b_category` `b_category` VARCHAR(50) NOT NULL DEFAULT '';
ALTER TABLE `p_posts` CHANGE `post_category` `post_category` VARCHAR(50) NOT NULL DEFAULT '';
ALTER TABLE `p_posts` ADD `post_portada` VARCHAR(300) NOT NULL DEFAULT '';
ALTER TABLE `u_perfil` ADD `p_portada` TINYTEXT NOT NULL DEFAULT '' AFTER `p_nombre`; |
<gh_stars>0
/*
Warnings:
- You are about to drop the `Sales` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `Stuff` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `_DutyToStuff` table. If the table is not empty, all the data it contains will be lost.
- You are about to drop the `ingridients` table. If the table is not empty, all the data it contains will be lost.
*/
-- DropForeignKey
ALTER TABLE `Sales` DROP FOREIGN KEY `sales_ibfk_1`;
-- DropForeignKey
ALTER TABLE `_DutyToStuff` DROP FOREIGN KEY `_dutytostuff_ibfk_1`;
-- DropForeignKey
ALTER TABLE `_DutyToStuff` DROP FOREIGN KEY `_dutytostuff_ibfk_2`;
-- DropForeignKey
ALTER TABLE `ingridients` DROP FOREIGN KEY `ingridients_ibfk_1`;
-- DropTable
DROP TABLE `Sales`;
-- DropTable
DROP TABLE `Stuff`;
-- DropTable
DROP TABLE `_DutyToStuff`;
-- DropTable
DROP TABLE `ingridients`;
-- CreateTable
CREATE TABLE `ingredients` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`name` VARCHAR(191) NOT NULL,
`allergen` BOOLEAN NOT NULL,
`vegan` BOOLEAN NOT NULL,
`vegetarian` BOOLEAN NOT NULL,
`good_id` INTEGER,
UNIQUE INDEX `ingredients.name_unique`(`name`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateTable
CREATE TABLE `Staff` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`firstName` VARCHAR(191) NOT NULL,
`lastName` VARCHAR(191) NOT NULL,
`role` VARCHAR(191) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateTable
CREATE TABLE `Sale` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`date` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`item_id` INTEGER,
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateTable
CREATE TABLE `_DutyToStaff` (
`A` INTEGER NOT NULL,
`B` INTEGER NOT NULL,
UNIQUE INDEX `_DutyToStaff_AB_unique`(`A`, `B`),
INDEX `_DutyToStaff_B_index`(`B`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- AddForeignKey
ALTER TABLE `ingredients` ADD FOREIGN KEY (`good_id`) REFERENCES `goods`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE `Sale` ADD FOREIGN KEY (`item_id`) REFERENCES `goods`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE `_DutyToStaff` ADD FOREIGN KEY (`A`) REFERENCES `Duty`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
-- AddForeignKey
ALTER TABLE `_DutyToStaff` ADD FOREIGN KEY (`B`) REFERENCES `Staff`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;
|
<filename>database/laravel.sql
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 03, 2019 at 05:21 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: `laravel`
--
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_11_26_190909_portofolios', 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 `tb_portofolios`
--
CREATE TABLE `tb_portofolios` (
`id` bigint(20) UNSIGNED NOT NULL,
`icon` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` 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;
--
-- Dumping data for table `tb_portofolios`
--
INSERT INTO `tb_portofolios` (`id`, `icon`, `title`, `content`, `created_at`, `updated_at`) VALUES
(1, 'fa fa-video-camera', 'Computer Vision Development', 'It could refer to either the software developers who create vision algorithms for recognizing patterns in images, \r\n or engineers who use that software in their applications (in automated manufacturing, quality control, \r\n part handling, etc', NULL, NULL),
(2, 'fa fa-video-camera', 'Computer Vision Analyzer', 'Computer vision tasks include methods for acquiring, processing, \r\n analyzing and understanding digital images, and extraction of high-dimensional data \r\n from the real world in order to produce numerical or symbolic information, \r\n e.g. in the forms of decisions.', NULL, NULL),
(3, 'fa fa-video-camera', 'Landmark & Image Segmentation', 'n computer vision, image segmentation is the process of partitioning a \r\n digital image into multiple segments. The goal of segmentation is to simplify and/or change the representation of\r\n an image into something that is more meaningful and easier to analyze.', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `tb_portofolios`
--
ALTER TABLE `tb_portofolios`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tb_portofolios`
--
ALTER TABLE `tb_portofolios`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
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>geophile/sql-layer
SELECT c1 FROM t1 WHERE NOT EXISTS (SELECT c1 FROM t2 WHERE t2.c3 = 4 AND t1.c1 = t2.c2)
|
<gh_stars>0
CREATE PROCEDURE [dbo].[uspConversationInsert]
@ConversationID uniqueidentifier,
@ConversationName nvarchar(100),
@NegotiationID uniqueidentifier,
@Deleted bit,
@DeletedBy uniqueidentifier,
@DeletedOn datetime
AS
SET NOCOUNT ON
SET XACT_ABORT ON
BEGIN TRAN
INSERT INTO [dbo].[Conversation] ([ConversationID], [ConversationName], [NegotiationID], [Deleted], [DeletedBy], [DeletedOn])
SELECT @ConversationID, @ConversationName, @NegotiationID, @Deleted, @DeletedBy, @DeletedOn
-- Begin Return Select <- do not remove
SELECT [ConversationID], [ConversationName], [NegotiationID], [Deleted], [DeletedBy], [DeletedOn]
FROM [dbo].[Conversation]
WHERE [ConversationID] = @ConversationID
-- End Return Select <- do not remove
COMMIT |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 19, 2017 at 03:04 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `barang`
--
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE `customers` (
`id_customers` int(11) NOT NULL,
`kode` varchar(5) NOT NULL,
`customers_name` varchar(25) NOT NULL,
`alamat` text NOT NULL,
`telp` varchar(12) NOT NULL,
`email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `customers`
--
INSERT INTO `customers` (`id_customers`, `kode`, `customers_name`, `alamat`, `telp`, `email`) VALUES
(1, '2001', 'PT. Toyota Astra Motor', 'MM2100', '02135354433', '<EMAIL>');
-- --------------------------------------------------------
--
-- Table structure for table `produk`
--
CREATE TABLE `produk` (
`id_produk` int(11) NOT NULL,
`kode` varchar(8) NOT NULL,
`nama_p` varchar(25) NOT NULL,
`qty` int(10) NOT NULL,
`id_customers` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `produk`
--
INSERT INTO `produk` (`id_produk`, `kode`, `nama_p`, `qty`, `id_customers`) VALUES
(5, '08880-83', 'SN 10W-40 1 Liter', 24, 1),
(6, '08880-83', 'SN 10W-40 4 Liter', 12, 0);
-- --------------------------------------------------------
--
-- Table structure for table `suppliers`
--
CREATE TABLE `suppliers` (
`id_suppliers` int(11) NOT NULL,
`kode` varchar(3) NOT NULL,
`nama` varchar(25) NOT NULL,
`alamat` text NOT NULL,
`telp` varchar(12) NOT NULL,
`email` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `suppliers`
--
INSERT INTO `suppliers` (`id_suppliers`, `kode`, `nama`, `alamat`, `telp`, `email`) VALUES
(3, '001', 'PT. Dynaplast', 'Jl. Kayuringin 1, Jababeka Cikarang', '02139473535', '<EMAIL>');
-- --------------------------------------------------------
--
-- Table structure for table `transaksi`
--
CREATE TABLE `transaksi` (
`id_transaksi` int(11) NOT NULL,
`kode_t` varchar(6) NOT NULL,
`id_produk` int(11) NOT NULL,
`nama` varchar(50) NOT NULL,
`id_suppliers` int(11) NOT NULL,
`id_customers` int(11) NOT NULL,
`reject` text NOT NULL,
`qty` int(3) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `transaksi`
--
INSERT INTO `transaksi` (`id_transaksi`, `kode_t`, `id_produk`, `nama`, `id_suppliers`, `id_customers`, `reject`, `qty`) VALUES
(4, '001', 2, 'SN 10W-40 1 Liter', 1, 1, 'rusak dan cacat', 10),
(5, '4001', 3, 'SN 10W-40 4 Liter', 1, 1, 'Rusak', 12),
(6, '4002', 3, 'SN 10W-40 4 Liter', 2, 1, 'Rusak', 24),
(7, '2001', 5, 'SN 10W-40 1 Liter', 3, 1, 'Seal Tidak Menepel Sempurna', 19);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`username` varchar(25) NOT NULL,
`password` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `username`, `password`) VALUES
(1, 'admin', '<PASSWORD>');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `customers`
--
ALTER TABLE `customers`
ADD PRIMARY KEY (`id_customers`);
--
-- Indexes for table `produk`
--
ALTER TABLE `produk`
ADD PRIMARY KEY (`id_produk`);
--
-- Indexes for table `suppliers`
--
ALTER TABLE `suppliers`
ADD PRIMARY KEY (`id_suppliers`);
--
-- Indexes for table `transaksi`
--
ALTER TABLE `transaksi`
ADD PRIMARY KEY (`id_transaksi`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `customers`
--
ALTER TABLE `customers`
MODIFY `id_customers` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `produk`
--
ALTER TABLE `produk`
MODIFY `id_produk` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `suppliers`
--
ALTER TABLE `suppliers`
MODIFY `id_suppliers` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- CREATE TABLE student_course (
-- stud_id INT REFERENCES student (stud_id) ON UPDATE CASCADE ON DELETE CASCADE,
-- course_id INT REFERENCES course(course_id) ON UPDATE CASCADE ON DELETE CASCADE,
-- CONSTRAINT student_course_pkey PRIMARY KEY (course_id, stud_id)
-- );
-- Create table course_date
-- CREATE TABLE course_date (
-- id SERIAL PRIMARY KEY,
-- course_id INT REFERENCES course(course_id) ON UPDATE CASCADE ON DELETE CASCADE,
-- date_held DATE NOT NULL
-- )
--
-- Adding date a course was held
-- INSERT INTO course_date(course_id, date_held)
-- VALUES (2, '2019-11-15'), (2, '2019-11-18'), (2, '2019-11-20'), (2, '2019-11-22'), (2, '2019-11-25'), (2, '2019-11-27'), (2, '2019-11-29');
-- Adding a student to a course
-- INSERT INTO student_course
-- VALUES (5, 1), (6, 1), (7, 1), (8, 1), (9, 1), (10, 1), (11, 1), (12, 1), (13, 1), (0, 1);
-- Adding Courses
-- INSERT INTO course
-- VALUES (3, 'Astronomy 1');
-- Create table student_course_date
-- CREATE TABLE student_course_date (
-- course_date_id INT REFERENCES course_date (id) ON UPDATE CASCADE ON DELETE CASCADE,
-- stud_id INT REFERENCES student(stud_id) ON UPDATE CASCADE ON DELETE CASCADE,
-- CONSTRAINT student_course_date_pkey PRIMARY KEY (course_date_id, stud_id)
-- )
--
-- Check a student as attended in a course C which was held in date D
-- INSERT INTO student_course_date(course_date_id, stud_id)
-- VALUES (8, 14)
-- Add some course session
-- INSERT INTO course_date(course_id, date_held)
-- SELECT
-- 2, '2019-12-15'
-- WHERE NOT EXISTS (
-- SELECT 1 FROM course_date WHERE course_id=2 AND date_held='2019-12-15'
-- )
-- RETURNING id;
-- SELECT id
-- FROM course_date
-- WHERE course_id=2 AND date_held='2019-12-15'
--
-- Select course_date_id
-- SELECT id
-- FROM course_date
-- WHERE course_id=1 AND date_held='2019-12-02'
-- Select id of a session where a course C were held at a date D
-- SELECT id
-- FROM course_date cd
-- LEFT JOIN course cc ON cd.course_id = cc.course_id
-- WHERE course_name LIKE 'Data Mining%' and date_held='2019-11-20';
-- Select course id by name
-- SELECT course_id
-- FROM course
-- WHERE course_name LIKE 'Data Mining%';
|
insert into student (id, name, email, gender) values (1, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (2, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (3, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (4, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (5, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (6, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (7, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (8, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (9, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (10, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (11, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (12, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (13, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (14, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (15, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (16, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (17, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (18, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (19, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (20, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (21, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (22, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (23, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (24, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (25, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (26, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (27, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (28, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (29, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (30, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (31, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (32, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (33, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (34, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (35, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (36, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (37, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (38, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (39, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (40, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (41, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (42, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (43, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (44, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (45, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (46, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (47, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (48, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (49, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (50, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (51, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (52, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (53, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (54, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (55, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (56, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (57, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (58, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (59, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (60, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (61, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (62, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (63, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (64, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (65, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (66, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (67, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (68, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (69, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (70, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (71, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (72, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (73, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (74, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (75, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (76, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (77, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (78, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (79, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (80, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (81, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (82, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (83, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (84, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (85, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (86, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (87, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (88, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (89, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (90, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (91, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (92, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (93, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (94, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (95, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (96, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (97, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (98, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (99, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (100, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (101, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (102, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (103, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (104, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (105, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (106, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (107, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (108, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (109, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (110, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (111, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (112, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (113, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (114, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (115, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (116, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (117, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (118, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (119, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (120, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (121, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (122, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (123, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (124, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (125, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (126, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (127, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (128, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (129, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (130, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (131, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (132, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (133, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (134, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (135, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (136, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (137, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (138, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (139, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (140, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (141, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (142, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (143, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (144, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (145, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (146, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (147, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (148, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (149, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (150, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (151, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (152, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (153, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (154, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (155, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (156, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (157, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (158, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (159, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (160, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (161, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (162, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (163, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (164, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (165, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (166, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (167, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (168, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (169, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (170, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (171, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (172, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (173, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (174, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (175, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (176, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (177, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (178, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (179, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (180, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (181, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (182, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (183, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (184, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (185, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (186, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (187, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (188, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (189, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (190, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (191, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (192, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (193, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (194, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (195, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (196, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (197, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (198, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (199, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (200, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (201, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (202, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (203, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (204, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (205, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (206, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (207, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (208, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (209, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (210, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (211, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (212, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (213, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (214, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (215, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (216, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (217, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (218, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (219, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (220, '<NAME>`', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (221, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (222, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (223, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (224, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (225, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (226, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (227, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (228, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (229, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (230, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (231, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (232, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (233, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (234, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (235, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (236, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (237, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (238, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (239, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (240, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (241, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (242, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (243, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (244, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (245, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (246, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (247, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (248, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (249, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (250, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (251, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (252, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (253, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (254, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (255, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (256, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (257, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (258, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (259, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (260, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (261, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (262, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (263, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (264, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (265, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (266, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (267, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (268, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (269, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (270, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (271, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (272, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (273, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (274, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (275, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (276, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (277, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (278, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (279, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (280, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (281, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (282, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (283, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (284, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (285, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (286, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (287, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (288, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (289, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (290, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (291, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (292, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (293, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (294, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (295, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (296, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (297, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (298, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (299, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (300, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (301, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (302, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (303, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (304, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (305, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (306, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (307, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (308, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (309, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (310, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (311, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (312, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (313, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (314, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (315, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (316, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (317, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (318, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (319, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (320, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (321, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (322, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (323, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (324, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (325, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (326, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (327, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (328, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (329, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (330, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (331, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (332, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (333, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (334, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (335, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (336, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (337, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (338, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (339, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (340, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (341, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (342, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (343, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (344, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (345, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (346, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (347, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (348, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (349, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (350, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (351, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (352, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (353, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (354, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (355, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (356, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (357, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (358, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (359, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (360, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (361, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (362, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (363, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (364, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (365, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (366, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (367, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (368, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (369, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (370, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (371, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (372, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (373, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (374, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (375, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (376, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (377, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (378, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (379, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (380, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (381, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (382, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (383, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (384, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (385, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (386, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (387, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (388, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (389, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (390, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (391, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (392, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (393, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (394, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (395, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (396, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (397, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (398, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (399, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (400, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (401, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (402, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (403, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (404, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (405, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (406, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (407, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (408, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (409, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (410, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (411, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (412, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (413, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (414, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (415, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (416, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (417, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (418, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (419, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (420, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (421, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (422, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (423, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (424, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (425, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (426, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (427, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (428, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (429, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (430, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (431, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (432, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (433, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (434, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (435, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (436, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (437, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (438, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (439, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (440, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (441, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (442, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (443, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (444, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (445, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (446, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (447, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (448, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (449, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (450, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (451, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (452, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (453, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (454, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (455, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (456, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (457, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (458, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (459, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (460, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (461, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (462, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (463, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (464, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (465, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (466, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (467, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (468, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (469, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (470, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (471, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (472, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (473, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (474, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (475, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (476, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (477, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (478, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (479, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (480, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (481, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (482, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (483, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (484, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (485, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (486, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (487, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (488, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (489, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (490, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (491, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (492, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (493, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (494, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (495, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (496, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (497, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (498, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (499, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (500, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (501, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (502, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (503, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (504, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (505, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (506, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (507, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (508, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (509, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (510, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (511, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (512, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (513, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (514, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (515, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (516, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (517, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (518, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (519, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (520, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (521, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (522, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (523, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (524, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (525, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (526, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (527, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (528, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (529, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (530, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (531, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (532, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (533, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (534, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (535, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (536, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (537, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (538, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (539, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (540, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (541, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (542, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (543, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (544, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (545, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (546, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (547, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (548, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (549, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (550, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (551, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (552, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (553, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (554, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (555, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (556, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (557, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (558, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (559, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (560, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (561, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (562, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (563, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (564, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (565, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (566, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (567, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (568, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (569, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (570, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (571, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (572, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (573, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (574, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (575, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (576, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (577, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (578, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (579, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (580, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (581, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (582, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (583, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (584, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (585, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (586, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (587, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (588, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (589, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (590, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (591, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (592, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (593, '<NAME>', '<EMAIL> <EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (594, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (595, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (596, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (597, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (598, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (599, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (600, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (601, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (602, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (603, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (604, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (605, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (606, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (607, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (608, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (609, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (610, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (611, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (612, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (613, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (614, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (615, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (616, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (617, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (618, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (619, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (620, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (621, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (622, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (623, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (624, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (625, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (626, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (627, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (628, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (629, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (630, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (631, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (632, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (633, '<NAME>''-<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (634, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (635, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (636, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (637, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (638, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (639, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (640, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (641, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (642, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (643, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (644, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (645, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (646, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (647, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (648, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (649, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (650, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (651, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (652, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (653, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (654, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (655, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (656, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (657, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (658, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (659, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (660, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (661, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (662, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (663, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (664, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (665, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (666, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (667, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (668, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (669, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (670, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (671, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (672, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (673, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (674, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (675, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (676, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (677, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (678, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (679, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (680, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (681, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (682, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (683, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (684, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (685, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (686, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (687, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (688, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (689, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (690, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (691, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (692, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (693, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (694, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (695, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (696, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (697, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (698, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (699, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (700, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (701, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (702, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (703, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (704, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (705, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (706, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (707, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (708, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (709, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (710, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (711, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (712, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (713, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (714, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (715, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (716, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (717, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (718, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (719, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (720, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (721, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (722, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (723, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (724, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (725, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (726, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (727, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (728, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (729, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (730, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (731, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (732, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (733, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (734, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (735, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (736, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (737, 'Alano Ewert', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (738, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (739, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (740, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (741, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (742, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (743, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (744, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (745, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (746, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (747, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (748, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (749, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (750, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (751, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (752, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (753, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (754, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (755, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (756, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (757, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (758, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (759, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (760, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (761, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (762, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (763, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (764, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (765, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (766, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (767, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (768, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (769, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (770, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (771, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (772, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (773, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (774, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (775, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (776, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (777, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (778, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (779, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (780, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (781, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (782, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (783, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (784, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (785, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (786, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (787, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (788, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (789, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (790, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (791, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (792, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (793, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (794, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (795, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (796, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (797, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (798, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (799, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (800, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (801, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (802, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (803, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (804, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (805, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (806, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (807, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (808, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (809, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (810, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (811, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (812, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (813, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (814, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (815, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (816, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (817, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (818, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (819, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (820, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (821, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (822, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (823, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (824, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (825, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (826, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (827, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (828, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (829, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (830, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (831, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (832, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (833, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (834, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (835, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (836, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (837, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (838, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (839, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (840, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (841, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (842, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (843, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (844, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (845, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (846, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (847, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (848, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (849, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (850, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (851, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (852, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (853, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (854, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (855, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (856, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (857, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (858, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (859, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (860, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (861, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (862, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (863, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (864, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (865, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (866, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (867, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (868, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (869, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (870, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (871, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (872, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (873, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (874, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (875, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (876, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (877, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (878, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (879, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (880, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (881, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (882, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (883, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (884, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (885, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (886, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (887, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (888, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (889, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (890, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (891, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (892, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (893, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (894, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (895, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (896, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (897, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (898, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (899, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (900, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (901, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (902, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (903, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (904, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (905, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (906, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (907, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (908, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (909, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (910, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (911, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (912, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (913, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (914, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (915, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (916, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (917, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (918, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (919, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (920, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (921, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (922, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (923, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (924, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (925, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (926, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (927, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (928, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (929, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (930, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (931, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (932, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (933, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (934, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (935, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (936, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (937, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (938, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (939, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (940, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (941, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (942, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (943, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (944, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (945, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (946, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (947, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (948, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (949, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (950, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (951, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (952, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (953, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (954, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (955, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (956, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (957, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (958, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (959, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (960, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (961, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (962, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (963, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (964, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (965, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (966, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (967, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (968, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (969, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (970, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (971, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (972, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (973, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (974, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (975, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (976, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (977, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (978, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (979, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (980, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (981, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (982, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (983, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (984, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (985, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (986, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (987, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (988, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (989, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (990, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (991, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (992, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (993, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (994, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (995, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (996, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (997, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (998, '<NAME>', '<EMAIL>', 'MALE');
insert into student (id, name, email, gender) values (999, '<NAME>', '<EMAIL>', 'FEMALE');
insert into student (id, name, email, gender) values (1000, '<NAME>', '<EMAIL>', 'MALE');
SELECT setval('student_sequence', 1000, true); -- next value will be 1001
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 28, 2020 at 11:07 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.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 */;
--
-- Database: `db_kampus`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_data`
--
CREATE TABLE `tbl_data` (
`id` int(11) NOT NULL,
`kode_prodi` int(11) NOT NULL,
`kode_minat` int(11) NOT NULL,
`kode_perting` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_data`
--
INSERT INTO `tbl_data` (`id`, `kode_prodi`, `kode_minat`, `kode_perting`) VALUES
(15, 1, 2, 1),
(16, 2, 3, 2),
(17, 3, 4, 3),
(18, 4, 5, 4),
(19, 5, 6, 5),
(20, 6, 2, 1);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_minat`
--
CREATE TABLE `tbl_minat` (
`kode_minat` int(11) NOT NULL,
`id_minat` int(11) NOT NULL,
`nama_minat` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_minat`
--
INSERT INTO `tbl_minat` (`kode_minat`, `id_minat`, `nama_minat`) VALUES
(2, 111, 'Komputer'),
(3, 112, 'Hukum'),
(4, 113, 'Manajemen'),
(5, 114, 'Kedokteran'),
(6, 115, 'Pendidikan');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_perting`
--
CREATE TABLE `tbl_perting` (
`kode_perting` int(11) NOT NULL,
`id_perting` int(11) NOT NULL,
`nama_perting` varchar(128) NOT NULL,
`link` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_perting`
--
INSERT INTO `tbl_perting` (`kode_perting`, `id_perting`, `nama_perting`, `link`) VALUES
(1, 311, 'Universitas Amikom Yogyakarta', 'amikom'),
(2, 312, 'Universitas Atma Jaya Yogyakarta', 'uajy'),
(3, 313, 'Universitas Gadjah Mada', 'ugm'),
(4, 314, 'Universitas Islam Indonesia', 'uii'),
(5, 315, 'UPN Veteran Yogyakarta', 'upnyk'),
(6, 316, 'Universitas Sanata Dharma', 'usd');
-- --------------------------------------------------------
--
-- Table structure for table `tbl_prodi`
--
CREATE TABLE `tbl_prodi` (
`kode_prodi` int(11) NOT NULL,
`id_prodi` int(11) NOT NULL,
`nama_prodi` varchar(128) NOT NULL,
`jenjang` varchar(128) NOT NULL,
`biaya` int(128) NOT NULL,
`akreditas` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_prodi`
--
INSERT INTO `tbl_prodi` (`kode_prodi`, `id_prodi`, `nama_prodi`, `jenjang`, `biaya`, `akreditas`) VALUES
(1, 211, 'Informatika', 'S1', 4615000, 'B'),
(2, 212, 'Hukum tentang Hubungan Internasional', 'S1', 4300000, 'A'),
(3, 213, 'Manajemen Operasi dan Sistem Informasi', 'S1', 3500000, 'A'),
(4, 214, 'Farmasi', 'S1', 4300000, 'A'),
(5, 215, 'Pendidikan Guru Sekolah Dasar', 'S1', 3800000, 'B'),
(6, 216, 'Sistem Informasi', 'S1', 4615, 'B');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`username` varchar(128) NOT NULL,
`image` varchar(128) NOT NULL,
`password` varchar(128) NOT NULL,
`role_id` int(1) NOT NULL,
`is_active` int(1) NOT NULL,
`date_created` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `name`, `username`, `image`, `password`, `role_id`, `is_active`, `date_created`) VALUES
(1, '<NAME>', 'uwedz', 'default.jpg', '$2y$10$DElgOqBLXXl6gblyWgiaNOFE0W9x/QaWAHlH4Q5AYQB3TmPH7uUd2', 1, 1, 1575590922),
(2, 'Yahya Sugandi Y.', 'yahya', 'default.jpg', '$2y$10$jRnm5FBzBXGVQ45hli.aOu0cjGL86hZMU3aIKY9FSqCsKRgvRwT5K', 1, 1, 1575752812),
(3, 'Luthfi Pratama', 'luthfi', 'default.jpg', '$2y$10$nW8To.XacEP3MFKLnnhRKOxVPAy.8qg7ZT2iL7d.IJDwI0Hh9JkC6', 1, 1, 1575990327);
-- --------------------------------------------------------
--
-- Table structure for table `user_access_menu`
--
CREATE TABLE `user_access_menu` (
`id` int(11) NOT NULL,
`role_id` int(1) NOT NULL,
`menu_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_access_menu`
--
INSERT INTO `user_access_menu` (`id`, `role_id`, `menu_id`) VALUES
(1, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `user_menu`
--
CREATE TABLE `user_menu` (
`id` int(11) NOT NULL,
`menu` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_menu`
--
INSERT INTO `user_menu` (`id`, `menu`) VALUES
(1, 'Admin');
-- --------------------------------------------------------
--
-- Table structure for table `user_role`
--
CREATE TABLE `user_role` (
`id` int(11) NOT NULL,
`role` varchar(128) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_role`
--
INSERT INTO `user_role` (`id`, `role`) VALUES
(1, 'Administrator');
-- --------------------------------------------------------
--
-- Table structure for table `user_sub_menu`
--
CREATE TABLE `user_sub_menu` (
`id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
`title` varchar(128) NOT NULL,
`url` varchar(128) NOT NULL,
`icon` varchar(128) NOT NULL,
`is_active` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_sub_menu`
--
INSERT INTO `user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES
(1, 1, 'Dashboard', 'dashboard', 'fas fa-fw fa-tachometer-alt', 1),
(2, 1, 'Index Data', 'data', 'fas fa-fw fa-layer-group', 1),
(3, 1, 'Minat', 'minat', 'fas fa-fw fa-layer-group', 1),
(4, 1, 'Prodi', 'prodi', 'fas fa-fw fa-layer-group', 1),
(5, 1, 'Perguruan Tinggi', 'perting', 'fas fa-fw fa-layer-group', 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_data`
--
ALTER TABLE `tbl_data`
ADD PRIMARY KEY (`id`),
ADD KEY `kode_prodi` (`kode_prodi`),
ADD KEY `kode_minat` (`kode_minat`),
ADD KEY `kode_perting` (`kode_perting`);
--
-- Indexes for table `tbl_minat`
--
ALTER TABLE `tbl_minat`
ADD PRIMARY KEY (`kode_minat`);
--
-- Indexes for table `tbl_perting`
--
ALTER TABLE `tbl_perting`
ADD PRIMARY KEY (`kode_perting`);
--
-- Indexes for table `tbl_prodi`
--
ALTER TABLE `tbl_prodi`
ADD PRIMARY KEY (`kode_prodi`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_menu`
--
ALTER TABLE `user_menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_role`
--
ALTER TABLE `user_role`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_data`
--
ALTER TABLE `tbl_data`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `tbl_minat`
--
ALTER TABLE `tbl_minat`
MODIFY `kode_minat` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tbl_perting`
--
ALTER TABLE `tbl_perting`
MODIFY `kode_perting` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tbl_prodi`
--
ALTER TABLE `tbl_prodi`
MODIFY `kode_prodi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user_access_menu`
--
ALTER TABLE `user_access_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `user_menu`
--
ALTER TABLE `user_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `user_role`
--
ALTER TABLE `user_role`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `user_sub_menu`
--
ALTER TABLE `user_sub_menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `tbl_data`
--
ALTER TABLE `tbl_data`
ADD CONSTRAINT `tbl_data_ibfk_1` FOREIGN KEY (`kode_prodi`) REFERENCES `tbl_prodi` (`kode_prodi`),
ADD CONSTRAINT `tbl_data_ibfk_2` FOREIGN KEY (`kode_minat`) REFERENCES `tbl_minat` (`kode_minat`),
ADD CONSTRAINT `tbl_data_ibfk_3` FOREIGN KEY (`kode_perting`) REFERENCES `tbl_perting` (`kode_perting`);
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 */;
|
/* ==Scripting Parameters==
Source Server Version : SQL Server 2017 (14.0.1000)
Source Database Engine Edition : Microsoft SQL Server Enterprise Edition
Source Database Engine Type : Standalone SQL Server
Target Server Version : SQL Server 2017
Target Database Engine Edition : Microsoft SQL Server Enterprise Edition
Target Database Engine Type : Standalone SQL Server
*/
USE [master]
GO
CREATE DATABASE [Logger]
GO
USE [Logger]
GO
/****** Object: Table [dbo].[Logger_History] Script Date: 4/13/2018 5:32:06 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Logger_History](
[Logger_History_ID] [int] IDENTITY(1,1) NOT NULL,
[Execution_UTC_Datetime] [datetime] NULL,
[Job_Name] [nvarchar](255) NULL,
[Job_Status] [char](1) NULL,
[Job_Last_Modified_By] [nvarchar](255) NULL,
[Source_File_Type] [nvarchar](255) NULL,
[Source_File_Name] [nvarchar](255) NULL,
[Customer_Name] [nvarchar](255) NULL,
[Data_Feed_Type] [nvarchar](255) NULL,
[Server_Name] [nvarchar](255) NULL,
[Stage_Name] [nvarchar](255) NULL,
[Stage_Row_Count] [int] NULL,
[Processing_Start_Datetime] [datetime] NULL,
[Processing_End_Datetime] [datetime] NULL,
[Processing_Duration] [int] NULL,
[Moved_To_ES] [bit] NULL,
[IsProcessed] [bit] NULL,
PRIMARY KEY CLUSTERED
(
[Logger_History_ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Logger_History] ADD DEFAULT ((0)) FOR [Moved_To_ES]
GO
ALTER TABLE [dbo].[Logger_History] ADD DEFAULT ((0)) FOR [IsProcessed]
GO
/****** Object: StoredProcedure [dbo].[gen_3sigma_event] Script Date: 4/13/2018 5:32:06 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROC [dbo].[gen_3sigma_event] AS
BEGIN
SET NOCOUNT ON;
BEGIN TRY
BEGIN TRANSACTION
--DECLARATIONS
DECLARE @ID int, @gen_stmt nvarchar(2000);
SELECT
Customer_Name,Data_Feed_Type,Stage_Name,
AVG([Stage_Row_Count]) AS AVG_Stage_Row_Count,
SQRT(VAR([Stage_Row_Count])) AS SDEV_Stage_Row_Count,
AVG([Processing_Duration]) AS AVG_Processing_Duration,
SQRT(VAR([Processing_Duration])) AS SDEV_Processing_Duration
INTO #tmp_aggregations
FROM [dbo].[Logger_History]
GROUP BY Customer_Name,Data_Feed_Type,Stage_Name;
--CALCULATE SCP OUTLIERS
SELECT
i.[Logger_History_ID],i.[Execution_UTC_Datetime],
i.[Sigma_Status_Stage_Row_Count],i.[Sigma_Status_Processing_Duration],
i.[Stage_Row_Count],i.[Processing_Duration],
i.[-3Sigma_Stage_Row_Count],i.[+3Sigma_Stage_Row_Count],
i.[-3Sigma_Processing_Duration],i.[+3Sigma_Processing_Duration],
i.Server_Name,i.Data_Feed_Type,i.Customer_Name,i.Stage_Name,i.Job_Name,i.Job_Status,
i.Source_File_Type,i.Source_File_Name,i.[Processing_Start_Datetime],i.[Processing_End_Datetime]
INTO #tmp_outliers
FROM (
SELECT
--Row_Count Outlier calculation:
CASE
WHEN [Stage_Row_Count] >= ta.AVG_Stage_Row_Count-ta.SDEV_Stage_Row_Count and Stage_Row_Count <= ta.AVG_Stage_Row_Count + SDEV_Stage_Row_Count
THEN 'Fits 1 Sigma'
WHEN [Stage_Row_Count] >= ta.AVG_Stage_Row_Count-(2*SDEV_Stage_Row_Count) and Stage_Row_Count <= ta.AVG_Stage_Row_Count + (2*SDEV_Stage_Row_Count)
THEN 'Fits 2 Sigma'
WHEN [Stage_Row_Count] >= ta.AVG_Stage_Row_Count-(3*SDEV_Stage_Row_Count) and Stage_Row_Count <= ta.AVG_Stage_Row_Count + (3*SDEV_Stage_Row_Count)
THEN 'Fits 3 Sigma'
ELSE 'SCP Outlier'
END AS Sigma_Status_Stage_Row_Count
--,ta.[AVG_Stage_Row_Count] as MEAN,ta.SDEV_Stage_Row_Count as SDEV,ta.AVG_Stage_Row_Count-ta.SDEV_Stage_Row_Count AS [-1Sigma],ta.AVG_Stage_Row_Count+ta.SDEV_Stage_Row_Count AS [+1Sigma],ta.AVG_Stage_Row_Count-(2*ta.SDEV_Stage_Row_Count) AS [-2Sigma],ta.AVG_Stage_Row_Count+(2*ta.SDEV_Stage_Row_Count) AS [+2Sigma]
,ta.AVG_Stage_Row_Count - (3*SDEV_Stage_Row_Count) AS [-3Sigma_Stage_Row_Count]
,ta.AVG_Stage_Row_Count + (3*SDEV_Stage_Row_Count) AS [+3Sigma_Stage_Row_Count]
--Processing_Duration Outlier calculation:
,CASE
WHEN [Processing_Duration] >= ta.AVG_Processing_Duration-ta.SDEV_Processing_Duration and Processing_Duration <= ta.AVG_Processing_Duration + SDEV_Processing_Duration
THEN 'Fits 1 Sigma'
WHEN [Processing_Duration] >= ta.AVG_Processing_Duration-(2*SDEV_Processing_Duration) and Processing_Duration <= ta.AVG_Processing_Duration + (2*SDEV_Processing_Duration)
THEN 'Fits 2 Sigma'
WHEN [Processing_Duration] >= ta.AVG_Processing_Duration-(3*SDEV_Processing_Duration) and Processing_Duration <= ta.AVG_Processing_Duration + (3*SDEV_Processing_Duration)
THEN 'Fits 3 Sigma'
ELSE 'SCP Outlier'
END AS Sigma_Status_Processing_Duration
--,ta.[AVG_Stage_Row_Count] as MEAN,ta.SDEV_Stage_Row_Count as SDEV,ta.AVG_Stage_Row_Count-ta.SDEV_Stage_Row_Count AS [-1Sigma],ta.AVG_Stage_Row_Count+ta.SDEV_Stage_Row_Count AS [+1Sigma],ta.AVG_Stage_Row_Count-(2*ta.SDEV_Stage_Row_Count) AS [-2Sigma],ta.AVG_Stage_Row_Count+(2*ta.SDEV_Stage_Row_Count) AS [+2Sigma]
,ta.AVG_Processing_Duration - (3*SDEV_Processing_Duration) AS [-3Sigma_Processing_Duration]
,ta.AVG_Processing_Duration + (3*SDEV_Processing_Duration) AS [+3Sigma_Processing_Duration]
,lm.*
FROM [dbo].[Logger_History] lm
INNER JOIN #tmp_aggregations ta
ON lm.Customer_Name = ta.Customer_Name
AND lm.Data_Feed_Type = ta.Data_Feed_Type
AND lm.Stage_Name = ta.Stage_Name
WHERE
IsProcessed = 0 AND
Moved_To_ES = 0
) i
WHERE i.Sigma_Status_Stage_Row_Count = 'SCP Outlier'
OR i.Sigma_Status_Processing_Duration = 'SCP Outlier' ;
UPDATE [dbo].[Logger_History]
SET [IsProcessed] = 1
WHERE [IsProcessed] = 0;
--LOG SCP OUTLIERS TO WINDOWS EVENT LOG EVENTS
WHILE EXISTS (SELECT * FROM #tmp_outliers)
BEGIN
SELECT TOP(1)
@ID = [Logger_History_ID]
FROM #tmp_outliers
ORDER BY [Logger_History_ID];
SELECT @gen_stmt =
'EXEC xp_logevent 60000,'+
'''MESSAGE: !This is a SCP 3 Sigma Outlier based on '+
CASE
WHEN #tmp_outliers.[Sigma_Status_Stage_Row_Count] = 'SCP Outlier'
THEN 'Stage Row Count'
WHEN #tmp_outliers.[Sigma_Status_Processing_Duration] = 'SCP Outlier'
THEN 'Processing Duration'
WHEN #tmp_outliers.[Sigma_Status_Stage_Row_Count] = 'SCP Outlier'
AND #tmp_outliers.[Sigma_Status_Processing_Duration] = 'SCP Outlier'
THEN 'Stage Row Count AND Processing Duration'
END +';'+CHAR(10)+
'Customer: '+#tmp_outliers.[Customer_Name]+' ;'+CHAR(10)+
'Job Name: '+#tmp_outliers.[Job_Name]+' ;'+CHAR(10)+
'Job Status: '+#tmp_outliers.[Job_Status]+' ;'+CHAR(10)+
'Execution UTC Datetime: '+CAST(#tmp_outliers.[Execution_UTC_Datetime] AS VARCHAR(20))+' ;'+CHAR(10)+
'Source File Type: '+#tmp_outliers.[Source_File_Type]+' ;'+CHAR(10)+
'Source File Name: '+#tmp_outliers.[Source_File_Name]+' ;'+CHAR(10)+
'Data Feed Type: '+#tmp_outliers.[Data_Feed_Type]+' ;'+CHAR(10)+
'Server Name: '+#tmp_outliers.[Server_Name]+' ;'+CHAR(10)+
'Stage Name: '+#tmp_outliers.[Stage_Name]+' ;'+CHAR(10)+
'Stage_Row_Count: '+CAST(#tmp_outliers.[Stage_Row_Count] AS VARCHAR(10))+' ;'+CHAR(10)+
'Processing_Duration: '+CAST(#tmp_outliers.[Processing_Duration] AS VARCHAR(10))+' ;'+CHAR(10)+
''', informational;'
FROM #tmp_outliers
WHERE @ID = [Logger_History_ID];
EXEC (@gen_stmt);
--PRINT @gen_stmt;
UPDATE [dbo].[Logger_History]
SET [Moved_To_ES] = 1
WHERE @ID = [Logger_History_ID];
DELETE FROM #tmp_outliers WHERE [Logger_History_ID] = @ID;
END
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF @@TRANCOUNT > 0
ROLLBACK TRANSACTION;
DECLARE @ErrorNumber INT = ERROR_NUMBER();
DECLARE @ErrorLine INT = ERROR_LINE();
DECLARE @ErrorMessage NVARCHAR(4000) = ERROR_MESSAGE();
DECLARE @ErrorSeverity INT = ERROR_SEVERITY();
DECLARE @ErrorState INT = ERROR_STATE();
PRINT 'Actual error number: ' + CAST(@ErrorNumber AS VARCHAR(10));
PRINT 'Actual line number: ' + CAST(@ErrorLine AS VARCHAR(10));
RAISERROR(@ErrorMessage, @ErrorSeverity, @ErrorState);
END CATCH
END
GO
|
DROP TABLE targets;
|
<gh_stars>1-10
-- Definitions that are used in the processing files in this folder
-- To enable processing of an additional currency (<NAME>) do the following:
-- 0. In 0_run_fork_analysis.sql fork-fn add an additional CASE that returns the fork-height of <NAME>
-- 1. Download <NAME>-blockchain
-- 2. Export TX data of <NAME> blockchain to CSV
-- 2a. Compile TX-export against <NAME> (https://github.com/moneroexamples/transactions-export)
-- 2b. Export using the <NAME>-TX-exporter
-- 3. Put CSV files in some subfolder of the data folder, e.g. '<NAME>_data/'
-- 4. Copy this file and save as e.g. 'defs_<NAME>.sql'
-- 4. Update all definitions below (replace all occurrences of xmv in this file with <NAME>)
-- 5. Execute 0_run_fork_analysis.sql, i.e.
--! psql -f 0_run_fork_analysis.sql -v currency=<NAME>
\set fork_folder 'xmv_data/'
\set q_curr '''(XMV)'
\set curr '''xmv'''
\set tx xmv_tx
\set txout xmv_txout
\set txin xmv_txin
\set txi xmv_txi
\set ring xmv_ring
\set inid xmv_inid
\set outid xmv_outid
\set keyimg xmv_keyimg
\set matches xmv_matches
\set inputs xmv_inputs
\set outputs xmv_outputs
|
<filename>lesson47trycatcherrorhandling/lesson47code.sql
--1. using try/catch to create more stable code
--2. never divide by zero because division by zero is not defined
declare @counter decimal=-10
while @counter<=1
begin try
select 1.00/@counter
set @counter=@counter+1
end try
begin catch
select ERROR_MESSAGE() as 'Error Message'
Break--3. helps to pop out of the loop after an error is handled
end catch
|
<filename>data/sk/postgres/subdivisions_EE.postgres.sql<gh_stars>10-100
CREATE TABLE subdivision_EE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id));
INSERT INTO "subdivision_EE" ("id", "name", "level") VALUES (E'EE-37', E'Harju maakond', E'county');
INSERT INTO "subdivision_EE" ("id", "name", "level") VALUES (E'EE-39', E'Hiiumaa', E'county');
INSERT INTO "subdivision_EE" ("id", "name", "level") VALUES (E'EE-74', E'Saaremaa', E'county');
|
/*
* Copyright (c) TIKI Inc.
* MIT license. See LICENSE file in root directory.
*/
-- -----------------------------------------------------------------------
-- APP DATA
-- -----------------------------------------------------------------------
CREATE TABLE app_data(
id INTEGER PRIMARY KEY AUTOINCREMENT,
key TEXT NOT NULL,
value TEXT NOT NULL
); |
<filename>src/main/resources/db/migration/nomis/ddl/V1_272__OFFENDER_SENT_CONDITIONS.sql
CREATE TABLE "OFFENDER_SENT_CONDITIONS"
( "SENTENCE_SEQ" NUMBER(6,0) NOT NULL,
"COMM_CONDITION_TYPE" VARCHAR2(12 CHAR) NOT NULL,
"COMM_CONDITION_CODE" VARCHAR2(12 CHAR) NOT NULL,
"START_DATE" DATE,
"CONDITION_STATUS" VARCHAR2(12 CHAR),
"STATUS_DATE" DATE,
"OFFENDER_BOOK_ID" NUMBER(10,0) NOT NULL,
"EXPIRY_DATE" DATE,
"LIST_SEQ" NUMBER(3,0),
"COMMENT_TEXT" VARCHAR2(240 CHAR),
"CURFEW_START_TIME" DATE,
"CURFEW_END_TIME" DATE,
"CONDITION_RECOMMENDED_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"GOVERNOR_CONDITION_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"LENGTH" NUMBER(6,0),
"LENGTH_UNIT" VARCHAR2(12 CHAR),
"DETAILS_TEXT" VARCHAR2(240 CHAR),
"OFFENDER_SENT_CONDITION_ID" NUMBER(10,0) NOT NULL,
"CURFEW_PROVIDER" VARCHAR2(12 CHAR),
"EXCLUSION_CODE" VARCHAR2(12 CHAR),
"RESIDENCY_ADDRESS_ID" NUMBER(10,0),
"MENTAL_HEALTH_PROVIDER" VARCHAR2(12 CHAR),
"ALCOHOL_TREATMENT_PROVIDER" VARCHAR2(12 CHAR),
"ATTENDANCE_CENTRE" VARCHAR2(12 CHAR),
"CREATE_DATETIME" TIMESTAMP (9) DEFAULT systimestamp NOT NULL,
"CREATE_USER_ID" VARCHAR2(32 CHAR) DEFAULT USER NOT NULL,
"MODIFY_DATETIME" TIMESTAMP (9),
"MODIFY_USER_ID" VARCHAR2(32 CHAR),
"CONDITION_REQUIRED_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"CONDITION_APPLIED_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N' NOT NULL,
"LONG_COMMENT_TEXT" VARCHAR2(4000 CHAR),
"APPOINTMENT_PERSON_NAME" VARCHAR2(240 CHAR),
"REVIEW_CODE" VARCHAR2(12 CHAR),
"SUPERVISOR_NAME" VARCHAR2(240 CHAR),
"REPORT_TIME" DATE,
"REPORT_DATE" DATE,
"PERSONAL_RELATIONSHIP_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"VEHICLE_DETAILS_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"NON_ASSOCIATED_OFFENDERS" VARCHAR2(240 CHAR),
"DRUG_TESTING" VARCHAR2(240 CHAR),
"TERMINATION_DATE" DATE,
"STATUS_REASON_CODE" VARCHAR2(12 CHAR),
"NO_RESIDENT_UNDER_AGE_OF" NUMBER(6,0),
"PROHIBITED_CONTACT" VARCHAR2(240 CHAR),
"RESTRICTED_CHILD_AGE_OF" NUMBER(6,0),
"RESTRICTED_APPROVAL_PERSON" VARCHAR2(240 CHAR),
"CURFEW_TAGGING_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"OTHER_PROGRAM" VARCHAR2(240 CHAR),
"NO_WORK_WITH_UNDER_AGE" VARCHAR2(1 CHAR) DEFAULT 'N',
"NO_WORK_WITH_UNDER_AGE_OF" NUMBER(3,0),
"NO_ACCESS_TO_INTERNET" VARCHAR2(1 CHAR) DEFAULT 'N',
"NO_USER_OF_COMPUTER" VARCHAR2(1 CHAR) DEFAULT 'N',
"STATUS_UPDATE_REASON" VARCHAR2(12 CHAR),
"STATUS_UPDATE_COMMENT" VARCHAR2(400 CHAR),
"STATUS_UPDATE_DATE" DATE,
"STATUS_UPDATE_STAFF_ID" NUMBER(10,0),
"AUDIT_TIMESTAMP" TIMESTAMP (9),
"AUDIT_USER_ID" VARCHAR2(32 CHAR),
"AUDIT_MODULE_NAME" VARCHAR2(65 CHAR),
"AUDIT_CLIENT_USER_ID" VARCHAR2(64 CHAR),
"AUDIT_CLIENT_IP_ADDRESS" VARCHAR2(39 CHAR),
"AUDIT_CLIENT_WORKSTATION_NAME" VARCHAR2(64 CHAR),
"AUDIT_ADDITIONAL_INFO" VARCHAR2(256 CHAR),
"WORKFLOW_ID" NUMBER(32,0),
"ACTIVITY_CODE" VARCHAR2(12 CHAR),
"COND_ACT_TYPE" VARCHAR2(12 CHAR),
"ACTIVITY_STATUS" VARCHAR2(12 CHAR),
"PROGRAM_ID" NUMBER(10,0),
"PRACTITIONER_TYPE" VARCHAR2(12 CHAR),
"HOME_VISITOR_NAME" VARCHAR2(240 CHAR),
"MOBILE_SIM_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"MOBILE_CAMERA_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"CAMERA_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"PRIOR_APPROVAL" VARCHAR2(240 CHAR),
"PROBLEM_TYPE" VARCHAR2(12 CHAR),
"POLICE_ESCORT_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"SEX_OFFENDER_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"PRISONER_ASSOCIATION_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"ORGANISATION_NAME" VARCHAR2(240 CHAR) DEFAULT 'N',
"PLACE_OF_WORSHIP_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"PUBLIC_SPEAKING_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"WRITTEN_MATERIAL_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"GROOMING_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"PASSPORT_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"NOTIFY_RELATIONSHIPS" VARCHAR2(12 CHAR),
"DEVICE_INSPECTION_FLAG" VARCHAR2(1 CHAR) DEFAULT 'N',
"NO_RESIDENT_GENDER_OF" VARCHAR2(12 CHAR),
"PROHIBITED_CONTACT_GENDER_OF" VARCHAR2(12 CHAR),
"CONDITION_DATE" DATE,
"CONDITION_TIME" DATE,
CONSTRAINT "OFFENDER_SENT_CONDITIONS_PK" PRIMARY KEY ("OFFENDER_SENT_CONDITION_ID"),
CONSTRAINT "OFFENDER_SENT_CONDITIONS_FK1" FOREIGN KEY ("PROGRAM_ID")
REFERENCES "PROGRAM_SERVICES" ("PROGRAM_ID"),
CONSTRAINT "OFFENDER_SENT_CONDITIONS_FK9" FOREIGN KEY ("OFFENDER_BOOK_ID")
REFERENCES "OFFENDER_BOOKINGS" ("OFFENDER_BOOK_ID"),
CONSTRAINT "OFF_SENT_COND_OFF_SENT_FK" FOREIGN KEY ("OFFENDER_BOOK_ID", "SENTENCE_SEQ")
REFERENCES "OFFENDER_SENTENCES" ("OFFENDER_BOOK_ID", "SENTENCE_SEQ")
);
CREATE INDEX "OFFENDER_SENT_CONDITIONS_FK1" ON "OFFENDER_SENT_CONDITIONS" ("PROGRAM_ID");
CREATE INDEX "OFFENDER_SENT_CONDITIONS_NI1" ON "OFFENDER_SENT_CONDITIONS" ("OFFENDER_BOOK_ID", "SENTENCE_SEQ");
CREATE INDEX "OFFENDER_SENT_CONDITIONS_NI2" ON "OFFENDER_SENT_CONDITIONS" ("COMM_CONDITION_TYPE", "COMM_CONDITION_CODE");
CREATE UNIQUE INDEX "OFFENDER_SENT_CONDITIONS_PK" ON "OFFENDER_SENT_CONDITIONS" ("OFFENDER_SENT_CONDITION_ID");
|
<filename>Deprecated/sp_BlitzIndex_SQL_Server_2005.sql
SET ANSI_NULLS ON;
SET ANSI_PADDING ON;
SET ANSI_WARNINGS ON;
SET ARITHABORT ON;
SET CONCAT_NULL_YIELDS_NULL ON;
SET QUOTED_IDENTIFIER ON;
SET STATISTICS IO OFF;
SET STATISTICS TIME OFF;
GO
USE master;
GO
IF OBJECT_ID('dbo.sp_BlitzIndex') IS NOT NULL
DROP PROCEDURE dbo.sp_BlitzIndex;
GO
CREATE PROCEDURE dbo.sp_BlitzIndex
@DatabaseName NVARCHAR(128) = null, /*Defaults to current DB if not specified*/
@Mode tinyint=0, /*0=diagnose, 1=Summarize, 2=Index Usage Detail, 3=Missing Index Detail*/
@SchemaName NVARCHAR(128) = NULL, /*Requires table_name as well.*/
@TableName NVARCHAR(128) = NULL, /*Requires schema_name as well.*/
/*Note:@Mode doesn't matter if you're specifying schema_name and @TableName.*/
@Filter tinyint = 0 /* 0=no filter (default). 1=No low-usage warnings for objects with 0 reads. 2=Only warn for objects >= 500MB */
/*Note:@Filter doesn't do anything unless @Mode=0*/
/*
sp_BlitzIndex(TM) v2.02 - Jan 30, 2014
(C) 2014, Brent Ozar Unlimited(TM).
See http://BrentOzar.com/go/eula for the End User Licensing Agreement.
For help and how-to info, visit http://www.BrentOzar.com/BlitzIndex
How to use:
-- Diagnose:
EXEC dbo.sp_BlitzIndex @DatabaseName='AdventureWorks';
-- Return detail for a specific table:
EXEC dbo.sp_BlitzIndex @DatabaseName='AdventureWorks', @SchemaName='Person', @TableName='Person';
Known limitations of this version:
- Does not include FULLTEXT indexes. (A possibility in the future, let us know if you're interested.)
- Index create statements are just to give you a rough idea of the syntax. It includes filters and fillfactor.
-- Example 1: index creates use ONLINE=? instead of ONLINE=ON / ONLINE=OFF. This is because it's important for the user to understand if it's going to be offline and not just run a script.
-- Example 2: they do not include all the options the index may have been created with (padding, compression filegroup/partition scheme etc.)
-- (The compression and filegroup index create syntax isn't trivial because it's set at the partition level and isn't trivial to code. Two people have voted for wanting it so far.)
- Doesn't advise you about data modeling for clustered indexes and primary keys (primarily looks for signs of insanity.)
- Found something? Let us know at <EMAIL>.
Thanks for using sp_BlitzIndex(TM)!
Sincerely,
The Humans of <NAME> Unlimited(TM)
CHANGE LOG (last five versions):
Jan 30, 2014 (v2.02)
Standardized calling parameters with sp_AskBrent(TM) and sp_BlitzIndex(TM). (@DatabaseName instead of @database_name, etc)
Added check_id 80 and 81-- what appear to be the most frequently used indexes (workaholics)
Added index_operational_stats info to table level output -- recent scans vs lookups
Broke index_usage_stats output into two categories, scans and lookups (also in table level output)
Changed db name, table name, index name to 128 length
Fixed findings_group column length in #BlitzIndexResults (fixed issues for users w/ longer db names)
Fixed issue where identities nearing end of range were only detected if the check was run with a specific db context
Fixed extra tab in @SchemaName= that made pasting into Excel awkward/wrong
Added abnormal psychology check for clustered columnstore indexes (and general support for detecting them)
Standardized underscores in create TSQL for missing indexes
Better error message when running in table mode and the table isn't found.
Added current timestamp to the header based on user request. (Didn't add startup time-- sorry! Too many things reset usage info, don't want to mislead anyone.)
Added fillfactor to index create statements.
Changed all index create statements to ONLINE=?, SORT_IN_TEMPDB=?. The user should decide at index create time what's right for them.
May 26, 2013 (v2.01)
Added check_id 28: Non-unqiue clustered indexes. (This should have been checked in for an earlier version, it slipped by).
May 14, 2013 (v2.0) - Added data types and max length to all columns (keys, includes, secret columns)
Set sp_blitz to default to current DB if database_name is not specified when called
Added @Filter:
0=no filter (default)
1=Don't throw low-usage warnings for objects with 0 reads (helpful for dev/non-production environments)
2=Only report on objects >= 250MB (helps focus on larger indexes). Still runs a few database-wide checks as well.
Added list of all columns and types in table for runs using: @DatabaseName, @SchemaName, @TableName
Added count of total number of indexes a column is part of.
Added check_id 25: Addicted to nullable columns. (All or all but one column is nullable.)
Added check_id 66 and 67 to flag tables/indexes created within 1 week or modified within 48 hours.
Added check_id 26: Wide tables (35+ cols or > 2000 non-LOB bytes).
Added check_id 27: Addicted to strings. Looks for tables with 4 or more columns, of which all or all but one are string or LOB types.
Added check_id 68: Identity columns within 30% of the end of range (tinyint, smallint, int) AND
Negative identity seeds or identity increments <> 1
Added check_id 69: Column collation does not match database collation
Added check_id 70: Replicated columns. This identifies which columns are in at least one replication publication.
Added check_id 71: Cascading updates or cascading deletes.
Split check_id 40 into two checks: fillfactor on nonclustered indexes < 80%, fillfactor on clustered indexes < 90%
Added check_id 33: Potential filtered indexes based on column names.
Fixed bug where you couldn't see detailed view for indexed views.
(Ex: EXEC dbo.sp_BlitzIndex @DatabaseName='AdventureWorks', @SchemaName='Production', @TableName='vProductAndDescription';)
Added four index usage columns to table detail output: last_user_seek, last_user_scan, last_user_lookup, last_user_update
Modified check_id 24. This now looks for wide clustered indexes (> 3 columns OR > 16 bytes).
Previously just simplistically looked for multiple column CX.
Removed extra spacing (non-breaking) in more_info column.
Fixed bug where create t-sql didn't include filter (for filtered indexes)
Fixed formatting bug where "magic number" in table detail view didn't have commas
Neatened up column names in result sets.
April 8, 2013 (v1.5) - Fixed breaking bug for partitioned tables with > 10(ish) partitions
Added schema_name to suggested create statement for PKs
Handled "magic_benefit_number" values for missing indexes >= 922,337,203,685,477
Added count of NC indexes to Index Hoarder: Multi-column clustered index finding
Added link to EULA
Simplified aggressive index checks (blocking). Multiple checks confused people more than it helped.
Left only "Total lock wait time > 5 minutes (row + page)".
Added CheckId 25 for non-unique clustered indexes.
The "Create TSQL" column now shows a commented out drop command for disabled non-clustered indexes
Updated query which joins to sys.dm_operational_stats DMV when running against 2012 for performance reasons
December 20, 2012 (v1.4) - Fixed bugs for instances using a case-sensitive collation
Added support to identify compressed indexes
Added basic support for columnstore, XML, and spatial indexes
Added "Abnormal Psychology" diagnosis to alert you to special index types in a database
Removed hypothetical indexes and disabled indexes from "multiple personality disorders"
Fixed bug where hypothetical indexes weren't showing up in "self-loathing indexes"
Fixed bug where the partitioning key column was displayed in the key of aligned nonclustered indexes on partitioned tables
Added set options to the script so procedure is created with required settings for its use of computed columns
*/
AS
SET NOCOUNT ON;
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
DECLARE @DatabaseID INT;
DECLARE @ObjectID INT;
DECLARE @dsql NVARCHAR(MAX);
DECLARE @params NVARCHAR(MAX);
DECLARE @msg NVARCHAR(4000);
DECLARE @ErrorSeverity INT;
DECLARE @ErrorState INT;
DECLARE @Rowcount BIGINT;
DECLARE @SQLServerProductVersion NVARCHAR(128);
DECLARE @SQLServerEdition INT;
DECLARE @FilterMB INT;
DECLARE @collation NVARCHAR(256);
SELECT @SQLServerProductVersion = CAST(SERVERPROPERTY('ProductVersion') AS NVARCHAR(128));
SELECT @SQLServerEdition =CAST(SERVERPROPERTY('EngineEdition') AS INT); /* We default to online index creates where EngineEdition=3*/
SET @FilterMB=250;
IF @DatabaseName is null
SET @DatabaseName=DB_NAME();
SELECT @DatabaseID = database_id
FROM sys.databases
WHERE [name] = @DatabaseName
AND user_access_desc='MULTI_USER'
AND state_desc = 'ONLINE';
----------------------------------------
--STEP 1: OBSERVE THE PATIENT
--This step puts index information into temp tables.
----------------------------------------
BEGIN TRY
BEGIN
--Validate SQL Server Verson
IF (SELECT LEFT(@SQLServerProductVersion,
CHARINDEX('.',@SQLServerProductVersion,0)-1
)) <= 8
BEGIN
SET @msg=N'sp_BlitzIndex is only supported on SQL Server 2005 and higher. The version of this instance is: ' + @SQLServerProductVersion;
RAISERROR(@msg,16,1);
END
--Short circuit here if database name does not exist.
IF @DatabaseName IS NULL OR @DatabaseID IS NULL
BEGIN
SET @msg='Database does not exist or is not online/multi-user: cannot proceed.'
RAISERROR(@msg,16,1);
END
--Validate parameters.
IF (@Mode NOT IN (0,1,2,3))
BEGIN
SET @msg=N'Invalid @Mode parameter. 0=diagnose, 1=summarize, 2=index detail, 3=missing index detail';
RAISERROR(@msg,16,1);
END
IF (@Mode <> 0 AND @TableName IS NOT NULL)
BEGIN
SET @msg=N'Setting the @Mode doesn''t change behavior if you supply @TableName. Use default @Mode=0 to see table detail.';
RAISERROR(@msg,16,1);
END
IF ((@Mode <> 0 OR @TableName IS NOT NULL) and @Filter <> 0)
BEGIN
SET @msg=N'@Filter only appies when @Mode=0 and @TableName is not specified. Please try again.';
RAISERROR(@msg,16,1);
END
IF (@SchemaName IS NOT NULL AND @TableName IS NULL)
BEGIN
SET @msg='We can''t run against a whole schema! Specify a @TableName, or leave both NULL for diagnosis.'
RAISERROR(@msg,16,1);
END
IF (@TableName IS NOT NULL AND @SchemaName IS NULL)
BEGIN
SET @SchemaName=N'dbo'
SET @msg='@SchemaName wasn''t specified-- assuming schema=dbo.'
RAISERROR(@msg,1,1) WITH NOWAIT;
END
--If a table is specified, grab the object id.
--Short circuit if it doesn't exist.
IF @TableName IS NOT NULL
BEGIN
SET @dsql = N'
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT @ObjectID= OBJECT_ID
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.objects AS so
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.schemas AS sc on
so.schema_id=sc.schema_id
where so.type in (''U'', ''V'')
and so.name=' + QUOTENAME(@TableName,'''')+ N'
and sc.name=' + QUOTENAME(@SchemaName,'''')+ N'
/*Has a row in sys.indexes. This lets us get indexed views.*/
and exists (
SELECT si.name
FROM ' + QUOTENAME(@DatabaseName) + '.sys.indexes AS si
WHERE so.object_id=si.object_id)
OPTION (RECOMPILE);';
SET @params='@ObjectID INT OUTPUT'
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
EXEC sp_executesql @dsql, @params, @ObjectID=@ObjectID OUTPUT;
IF @ObjectID IS NULL
BEGIN
SET @msg=N'Oh, this is awkward. I can''t find the table or indexed view you''re looking for in that database.' + CHAR(10) +
N'Please check your parameters.'
RAISERROR(@msg,1,1);
RETURN;
END
END
RAISERROR(N'Starting run. sp_BlitzIndex(TM) v2.02 - Jan 30, 2014', 0,1) WITH NOWAIT;
IF OBJECT_ID('tempdb..#IndexSanity') IS NOT NULL
DROP TABLE #IndexSanity;
IF OBJECT_ID('tempdb..#IndexPartitionSanity') IS NOT NULL
DROP TABLE #IndexPartitionSanity;
IF OBJECT_ID('tempdb..#IndexSanitySize') IS NOT NULL
DROP TABLE #IndexSanitySize;
IF OBJECT_ID('tempdb..#IndexColumns') IS NOT NULL
DROP TABLE #IndexColumns;
IF OBJECT_ID('tempdb..#MissingIndexes') IS NOT NULL
DROP TABLE #MissingIndexes;
IF OBJECT_ID('tempdb..#ForeignKeys') IS NOT NULL
DROP TABLE #ForeignKeys;
IF OBJECT_ID('tempdb..#BlitzIndexResults') IS NOT NULL
DROP TABLE #BlitzIndexResults;
IF OBJECT_ID('tempdb..#IndexCreateTsql') IS NOT NULL
DROP TABLE #IndexCreateTsql;
RAISERROR (N'Create temp tables.',0,1) WITH NOWAIT;
CREATE TABLE #BlitzIndexResults
(
blitz_result_id INT IDENTITY PRIMARY KEY,
check_id INT NOT NULL,
index_sanity_id INT NULL,
findings_group VARCHAR(4000) NOT NULL,
finding VARCHAR(200) NOT NULL,
URL VARCHAR(200) NOT NULL,
details NVARCHAR(4000) NOT NULL,
index_definition NVARCHAR(MAX) NOT NULL,
secret_columns NVARCHAR(MAX) NULL,
index_usage_summary NVARCHAR(MAX) NULL,
index_size_summary NVARCHAR(MAX) NULL,
create_tsql NVARCHAR(MAX) NULL,
more_info NVARCHAR(MAX)NULL
);
CREATE TABLE #IndexSanity
(
[index_sanity_id] INT IDENTITY PRIMARY KEY,
[database_id] SMALLINT NOT NULL ,
[object_id] INT NOT NULL ,
[index_id] INT NOT NULL ,
[index_type] TINYINT NOT NULL,
[database_name] NVARCHAR(128) NOT NULL ,
[schema_name] NVARCHAR(128) NOT NULL ,
[object_name] NVARCHAR(128) NOT NULL ,
index_name NVARCHAR(128) NULL ,
key_column_names NVARCHAR(MAX) NULL ,
key_column_names_with_sort_order NVARCHAR(MAX) NULL ,
key_column_names_with_sort_order_no_types NVARCHAR(MAX) NULL ,
count_key_columns INT NULL ,
include_column_names NVARCHAR(MAX) NULL ,
include_column_names_no_types NVARCHAR(MAX) NULL ,
count_included_columns INT NULL ,
partition_key_column_name NVARCHAR(MAX) NULL,
filter_definition NVARCHAR(MAX) NOT NULL ,
is_indexed_view BIT NOT NULL ,
is_unique BIT NOT NULL ,
is_primary_key BIT NOT NULL ,
is_XML BIT NOT NULL,
is_spatial BIT NOT NULL,
is_NC_columnstore BIT NOT NULL,
is_CX_columnstore BIT NOT NULL,
is_disabled BIT NOT NULL ,
is_hypothetical BIT NOT NULL ,
is_padded BIT NOT NULL ,
fill_factor SMALLINT NOT NULL ,
user_seeks BIGINT NOT NULL ,
user_scans BIGINT NOT NULL ,
user_lookups BIGINT NOT NULL ,
user_updates BIGINT NULL ,
last_user_seek DATETIME NULL ,
last_user_scan DATETIME NULL ,
last_user_lookup DATETIME NULL ,
last_user_update DATETIME NULL ,
is_referenced_by_foreign_key BIT DEFAULT(0),
secret_columns NVARCHAR(MAX) NULL,
count_secret_columns INT NULL,
create_date DATETIME NOT NULL,
modify_date DATETIME NOT NULL
);
CREATE TABLE #IndexPartitionSanity
(
[index_partition_sanity_id] INT IDENTITY PRIMARY KEY ,
[index_sanity_id] INT NULL ,
[object_id] INT NOT NULL ,
[index_id] INT NOT NULL ,
[partition_number] INT NOT NULL ,
row_count BIGINT NOT NULL ,
reserved_MB NUMERIC(29,2) NOT NULL ,
reserved_LOB_MB NUMERIC(29,2) NOT NULL ,
reserved_row_overflow_MB NUMERIC(29,2) NOT NULL ,
leaf_insert_count BIGINT NULL ,
leaf_delete_count BIGINT NULL ,
leaf_update_count BIGINT NULL ,
range_scan_count BIGINT NULL ,
singleton_lookup_count BIGINT NULL ,
forwarded_fetch_count BIGINT NULL ,
lob_fetch_in_pages BIGINT NULL ,
lob_fetch_in_bytes BIGINT NULL ,
row_overflow_fetch_in_pages BIGINT NULL ,
row_overflow_fetch_in_bytes BIGINT NULL ,
row_lock_count BIGINT NULL ,
row_lock_wait_count BIGINT NULL ,
row_lock_wait_in_ms BIGINT NULL ,
page_lock_count BIGINT NULL ,
page_lock_wait_count BIGINT NULL ,
page_lock_wait_in_ms BIGINT NULL ,
index_lock_promotion_attempt_count BIGINT NULL ,
index_lock_promotion_count BIGINT NULL,
data_compression_desc VARCHAR(60) NULL
);
CREATE TABLE #IndexSanitySize
(
[index_sanity_size_id] INT IDENTITY NOT NULL ,
[index_sanity_id] INT NOT NULL ,
partition_count INT NOT NULL ,
total_rows BIGINT NOT NULL ,
total_reserved_MB NUMERIC(29,2) NOT NULL ,
total_reserved_LOB_MB NUMERIC(29,2) NOT NULL ,
total_reserved_row_overflow_MB NUMERIC(29,2) NOT NULL ,
total_leaf_delete_count BIGINT NULL,
total_leaf_update_count BIGINT NULL,
total_range_scan_count BIGINT NULL,
total_singleton_lookup_count BIGINT NULL,
total_forwarded_fetch_count BIGINT NULL,
total_row_lock_count BIGINT NULL ,
total_row_lock_wait_count BIGINT NULL ,
total_row_lock_wait_in_ms BIGINT NULL ,
avg_row_lock_wait_in_ms BIGINT NULL ,
total_page_lock_count BIGINT NULL ,
total_page_lock_wait_count BIGINT NULL ,
total_page_lock_wait_in_ms BIGINT NULL ,
avg_page_lock_wait_in_ms BIGINT NULL ,
total_index_lock_promotion_attempt_count BIGINT NULL ,
total_index_lock_promotion_count BIGINT NULL ,
data_compression_desc VARCHAR(8000) NULL
);
CREATE TABLE #IndexColumns
(
[object_id] INT NOT NULL ,
[index_id] INT NOT NULL ,
[key_ordinal] INT NULL ,
is_included_column BIT NULL ,
is_descending_key BIT NULL ,
[partition_ordinal] INT NULL ,
column_name NVARCHAR(256) NOT NULL ,
system_type_name NVARCHAR(256) NOT NULL,
max_length SMALLINT NOT NULL,
[precision] TINYINT NOT NULL,
[scale] TINYINT NOT NULL,
collation_name NVARCHAR(256) NULL,
is_nullable bit NULL,
is_identity bit NULL,
is_computed bit NULL,
is_replicated bit NULL,
is_sparse bit NULL,
is_filestream bit NULL,
seed_value BIGINT NULL,
increment_value INT NULL ,
last_value BIGINT NULL,
is_not_for_replication BIT NULL
);
CREATE TABLE #MissingIndexes
([object_id] INT NOT NULL,
[database_name] NVARCHAR(128) NOT NULL ,
[schema_name] NVARCHAR(128) NOT NULL ,
[table_name] NVARCHAR(128),
[statement] NVARCHAR(512) NOT NULL,
magic_benefit_number AS (( user_seeks + user_scans ) * avg_total_user_cost * avg_user_impact),
avg_total_user_cost NUMERIC(29,1) NOT NULL,
avg_user_impact NUMERIC(29,1) NOT NULL,
user_seeks BIGINT NOT NULL,
user_scans BIGINT NOT NULL,
unique_compiles BIGINT NULL,
equality_columns NVARCHAR(4000),
inequality_columns NVARCHAR(4000),
included_columns NVARCHAR(4000)
);
CREATE TABLE #ForeignKeys (
foreign_key_name NVARCHAR(256),
parent_object_id INT,
parent_object_name NVARCHAR(256),
referenced_object_id INT,
referenced_object_name NVARCHAR(256),
is_disabled BIT,
is_not_trusted BIT,
is_not_for_replication BIT,
parent_fk_columns NVARCHAR(MAX),
referenced_fk_columns NVARCHAR(MAX),
update_referential_action_desc NVARCHAR(16),
delete_referential_action_desc NVARCHAR(60)
)
CREATE TABLE #IndexCreateTsql (
index_sanity_id INT NOT NULL,
create_tsql NVARCHAR(MAX) NOT NULL
)
--set @collation
SELECT @collation=collation_name
FROM sys.databases
where database_id=@DatabaseID;
--insert columns for clustered indexes and heaps
--collect info on identity columns for this one
SET @dsql = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT
si.object_id,
si.index_id,
sc.key_ordinal,
sc.is_included_column,
sc.is_descending_key,
sc.partition_ordinal,
c.name as column_name,
st.name as system_type_name,
c.max_length,
c.[precision],
c.[scale],
c.collation_name,
c.is_nullable,
c.is_identity,
c.is_computed,
c.is_replicated,
' + case when @SQLServerProductVersion not like '9%' THEN N'c.is_sparse' else N'NULL as is_sparse' END + N',
' + case when @SQLServerProductVersion not like '9%' THEN N'c.is_filestream' else N'NULL as is_filestream' END + N',
CAST(ic.seed_value AS BIGINT),
CAST(ic.increment_value AS INT),
CAST(ic.last_value AS BIGINT),
ic.is_not_for_replication
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.indexes si
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.columns c ON
si.object_id=c.object_id
LEFT JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.index_columns sc ON
sc.object_id = si.object_id
and sc.index_id=si.index_id
AND sc.column_id=c.column_id
LEFT JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.identity_columns ic ON
c.object_id=ic.object_id and
c.column_id=ic.column_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.types st ON
c.system_type_id=st.system_type_id
AND c.user_type_id=st.user_type_id
WHERE si.index_id in (0,1) '
+ CASE WHEN @ObjectID IS NOT NULL
THEN N' AND si.object_id=' + CAST(@ObjectID AS NVARCHAR(30))
ELSE N'' END
+ N';';
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
RAISERROR (N'Inserting data into #IndexColumns for clustered indexes and heaps',0,1) WITH NOWAIT;
INSERT #IndexColumns ( object_id, index_id, key_ordinal, is_included_column, is_descending_key, partition_ordinal,
column_name, system_type_name, max_length, precision, scale, collation_name, is_nullable, is_identity, is_computed,
is_replicated, is_sparse, is_filestream, seed_value, increment_value, last_value, is_not_for_replication )
EXEC sp_executesql @dsql;
--insert columns for nonclustered indexes
--this uses a full join to sys.index_columns
--We don't collect info on identity columns here. They may be in NC indexes, but we just analyze identities in the base table.
SET @dsql = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT
si.object_id,
si.index_id,
sc.key_ordinal,
sc.is_included_column,
sc.is_descending_key,
sc.partition_ordinal,
c.name as column_name,
st.name as system_type_name,
c.max_length,
c.[precision],
c.[scale],
c.collation_name,
c.is_nullable,
c.is_identity,
c.is_computed,
c.is_replicated,
' + case when @SQLServerProductVersion not like '9%' THEN N'c.is_sparse' else N'NULL AS is_sparse' END + N',
' + case when @SQLServerProductVersion not like '9%' THEN N'c.is_filestream' else N'NULL AS is_filestream' END + N'
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.indexes AS si
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.columns AS c ON
si.object_id=c.object_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.index_columns AS sc ON
sc.object_id = si.object_id
and sc.index_id=si.index_id
AND sc.column_id=c.column_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.types AS st ON
c.system_type_id=st.system_type_id
AND c.user_type_id=st.user_type_id
WHERE si.index_id not in (0,1) '
+ CASE WHEN @ObjectID IS NOT NULL
THEN N' AND si.object_id=' + CAST(@ObjectID AS NVARCHAR(30))
ELSE N'' END
+ N';';
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
RAISERROR (N'Inserting data into #IndexColumns for nonclustered indexes',0,1) WITH NOWAIT;
INSERT #IndexColumns ( object_id, index_id, key_ordinal, is_included_column, is_descending_key, partition_ordinal,
column_name, system_type_name, max_length, precision, scale, collation_name, is_nullable, is_identity, is_computed,
is_replicated, is_sparse, is_filestream )
EXEC sp_executesql @dsql;
SET @dsql = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT ' + CAST(@DatabaseID AS NVARCHAR(10)) + ' AS database_id,
so.object_id,
si.index_id,
si.type,
' + QUOTENAME(@DatabaseName, '''') + ' AS database_name,
sc.NAME AS [schema_name],
so.name AS [object_name],
si.name AS [index_name],
CASE WHEN so.[type] = CAST(''V'' AS CHAR(2)) THEN 1 ELSE 0 END,
si.is_unique,
si.is_primary_key,
CASE when si.type = 3 THEN 1 ELSE 0 END AS is_XML,
CASE when si.type = 4 THEN 1 ELSE 0 END AS is_spatial,
CASE when si.type = 6 THEN 1 ELSE 0 END AS is_NC_columnstore,
CASE when si.type = 5 then 1 else 0 end as is_CX_columnstore,
si.is_disabled,
si.is_hypothetical,
si.is_padded,
si.fill_factor,'
+ case when @SQLServerProductVersion not like '9%' THEN '
CASE WHEN si.filter_definition IS NOT NULL THEN si.filter_definition
ELSE ''''
END AS filter_definition' ELSE ''''' AS filter_definition' END + '
, ISNULL(us.user_seeks, 0), ISNULL(us.user_scans, 0),
ISNULL(us.user_lookups, 0), ISNULL(us.user_updates, 0), us.last_user_seek, us.last_user_scan,
us.last_user_lookup, us.last_user_update,
so.create_date, so.modify_date
FROM ' + QUOTENAME(@DatabaseName) + '.sys.indexes AS si WITH (NOLOCK)
JOIN ' + QUOTENAME(@DatabaseName) + '.sys.objects AS so WITH (NOLOCK) ON si.object_id = so.object_id
AND so.is_ms_shipped = 0 /*Exclude objects shipped by Microsoft*/
AND so.type <> ''TF'' /*Exclude table valued functions*/
JOIN ' + QUOTENAME(@DatabaseName) + '.sys.schemas sc ON so.schema_id = sc.schema_id
LEFT JOIN sys.dm_db_index_usage_stats AS us WITH (NOLOCK) ON si.[object_id] = us.[object_id]
AND si.index_id = us.index_id
AND us.database_id = '+ CAST(@DatabaseID AS NVARCHAR(10)) + '
WHERE si.[type] IN ( 0, 1, 2, 3, 4, 5, 6 )
/* Heaps, clustered, nonclustered, XML, spatial, Cluster Columnstore, NC Columnstore */ ' +
CASE WHEN @TableName IS NOT NULL THEN ' and so.name=' + QUOTENAME(@TableName,'''') + ' ' ELSE '' END +
'OPTION ( RECOMPILE );
';
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
RAISERROR (N'Inserting data into #IndexSanity',0,1) WITH NOWAIT;
INSERT #IndexSanity ( [database_id], [object_id], [index_id], [index_type], [database_name], [schema_name], [object_name],
index_name, is_indexed_view, is_unique, is_primary_key, is_XML, is_spatial, is_NC_columnstore, is_CX_columnstore,
is_disabled, is_hypothetical, is_padded, fill_factor, filter_definition, user_seeks, user_scans,
user_lookups, user_updates, last_user_seek, last_user_scan, last_user_lookup, last_user_update,
create_date, modify_date )
EXEC sp_executesql @dsql;
RAISERROR (N'Updating #IndexSanity.key_column_names',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET key_column_names = D1.key_column_names
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + c.column_name
+ N' {' + system_type_name + N' ' + CAST(max_length AS NVARCHAR(50)) + N'}'
AS col_definition
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.is_included_column = 0 /*Just Keys*/
AND c.key_ordinal > 0 /*Ignore non-key columns, such as partitioning keys*/
ORDER BY c.object_id, c.index_id, c.key_ordinal
FOR XML PATH('') ,TYPE).value('.', 'varchar(max)'), 1, 1, ''))
) D1 ( key_column_names )
RAISERROR (N'Updating #IndexSanity.partition_key_column_name',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET partition_key_column_name = D1.partition_key_column_name
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + c.column_name AS col_definition
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.partition_ordinal <> 0 /*Just Partitioned Keys*/
ORDER BY c.object_id, c.index_id, c.key_ordinal
FOR XML PATH('') , TYPE).value('.', 'varchar(max)'), 1, 1,''))) D1
( partition_key_column_name )
RAISERROR (N'Updating #IndexSanity.key_column_names_with_sort_order',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET key_column_names_with_sort_order = D2.key_column_names_with_sort_order
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + c.column_name + CASE c.is_descending_key
WHEN 1 THEN N' DESC'
ELSE N''
+ N' {' + system_type_name + N' ' + CAST(max_length AS NVARCHAR(50)) + N'}'
END AS col_definition
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.is_included_column = 0 /*Just Keys*/
AND c.key_ordinal > 0 /*Ignore non-key columns, such as partitioning keys*/
ORDER BY c.object_id, c.index_id, c.key_ordinal
FOR XML PATH('') , TYPE).value('.', 'varchar(max)'), 1, 1, ''))
) D2 ( key_column_names_with_sort_order )
RAISERROR (N'Updating #IndexSanity.key_column_names_with_sort_order_no_types (for create tsql)',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET key_column_names_with_sort_order_no_types = D2.key_column_names_with_sort_order_no_types
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + QUOTENAME(c.column_name) + CASE c.is_descending_key
WHEN 1 THEN N' [DESC]'
ELSE N''
END AS col_definition
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.is_included_column = 0 /*Just Keys*/
AND c.key_ordinal > 0 /*Ignore non-key columns, such as partitioning keys*/
ORDER BY c.object_id, c.index_id, c.key_ordinal
FOR XML PATH('') , TYPE).value('.', 'varchar(max)'), 1, 1, ''))
) D2 ( key_column_names_with_sort_order_no_types )
RAISERROR (N'Updating #IndexSanity.include_column_names',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET include_column_names = D3.include_column_names
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + c.column_name
+ N' {' + system_type_name + N' ' + CAST(max_length AS NVARCHAR(50)) + N'}'
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.is_included_column = 1 /*Just includes*/
ORDER BY c.column_name /*Order doesn't matter in includes,
this is here to make rows easy to compare.*/
FOR XML PATH('') , TYPE).value('.', 'varchar(max)'), 1, 1, ''))
) D3 ( include_column_names );
RAISERROR (N'Updating #IndexSanity.include_column_names_no_types (for create tsql)',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET include_column_names_no_types = D3.include_column_names_no_types
FROM #IndexSanity si
CROSS APPLY ( SELECT RTRIM(STUFF( (SELECT N', ' + QUOTENAME(c.column_name)
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
AND c.is_included_column = 1 /*Just includes*/
ORDER BY c.column_name /*Order doesn't matter in includes,
this is here to make rows easy to compare.*/
FOR XML PATH('') , TYPE).value('.', 'varchar(max)'), 1, 1, ''))
) D3 ( include_column_names_no_types );
RAISERROR (N'Updating #IndexSanity.count_key_columns and count_include_columns',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET count_included_columns = D4.count_included_columns,
count_key_columns = D4.count_key_columns
FROM #IndexSanity si
CROSS APPLY ( SELECT SUM(CASE WHEN is_included_column = 'true' THEN 1
ELSE 0
END) AS count_included_columns,
SUM(CASE WHEN is_included_column = 'false' AND c.key_ordinal > 0 THEN 1
ELSE 0
END) AS count_key_columns
FROM #IndexColumns c
WHERE c.object_id = si.object_id
AND c.index_id = si.index_id
) AS D4 ( count_included_columns, count_key_columns );
IF (SELECT LEFT(@SQLServerProductVersion,
CHARINDEX('.',@SQLServerProductVersion,0)-1
)) <> 11 --Anything other than 2012
BEGIN
RAISERROR (N'Using non-2012 syntax to query sys.dm_db_index_operational_stats',0,1) WITH NOWAIT;
--NOTE: we're joining to sys.dm_db_index_operational_stats differently than you might think (not using a cross apply)
--This is because of quirks prior to SQL Server 2012 and in 2014 with this DMV.
SET @dsql = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT ps.object_id,
ps.index_id,
ps.partition_number,
ps.row_count,
ps.reserved_page_count * 8. / 1024. AS reserved_MB,
ps.lob_reserved_page_count * 8. / 1024. AS reserved_LOB_MB,
ps.row_overflow_reserved_page_count * 8. / 1024. AS reserved_row_overflow_MB,
os.leaf_insert_count,
os.leaf_delete_count,
os.leaf_update_count,
os.range_scan_count,
os.singleton_lookup_count,
os.forwarded_fetch_count,
os.lob_fetch_in_pages,
os.lob_fetch_in_bytes,
os.row_overflow_fetch_in_pages,
os.row_overflow_fetch_in_bytes,
os.row_lock_count,
os.row_lock_wait_count,
os.row_lock_wait_in_ms,
os.page_lock_count,
os.page_lock_wait_count,
os.page_lock_wait_in_ms,
os.index_lock_promotion_attempt_count,
os.index_lock_promotion_count,
' + case when @SQLServerProductVersion not like '9%' THEN 'par.data_compression_desc ' ELSE 'null as data_compression_desc' END + '
FROM ' + QUOTENAME(@DatabaseName) + '.sys.dm_db_partition_stats AS ps
JOIN ' + QUOTENAME(@DatabaseName) + '.sys.partitions AS par on ps.partition_id=par.partition_id
JOIN ' + QUOTENAME(@DatabaseName) + '.sys.objects AS so ON ps.object_id = so.object_id
AND so.is_ms_shipped = 0 /*Exclude objects shipped by Microsoft*/
AND so.type <> ''TF'' /*Exclude table valued functions*/
LEFT JOIN ' + QUOTENAME(@DatabaseName) + '.sys.dm_db_index_operational_stats('
+ CAST(@DatabaseID AS NVARCHAR(10)) + ', NULL, NULL,NULL) AS os ON
ps.object_id=os.object_id and ps.index_id=os.index_id and ps.partition_number=os.partition_number
WHERE 1=1
' + CASE WHEN @ObjectID IS NOT NULL THEN N'AND so.object_id=' + CAST(@ObjectID AS NVARCHAR(30)) + N' ' ELSE N' ' END + '
' + CASE WHEN @Filter = 2 THEN N'AND ps.reserved_page_count * 8./1024. > ' + CAST(@FilterMB AS NVARCHAR(5)) + N' ' ELSE N' ' END + '
ORDER BY ps.object_id, ps.index_id, ps.partition_number
OPTION ( RECOMPILE );
';
END
ELSE /* Otherwise use this syntax which takes advantage of OUTER APPLY on the os_partitions DMV.
This performs better on 2012 tables using 1000+ partitions. */
BEGIN
RAISERROR (N'Using 2012 syntax to query sys.dm_db_index_operational_stats',0,1) WITH NOWAIT;
SET @dsql = N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT ps.object_id,
ps.index_id,
ps.partition_number,
ps.row_count,
ps.reserved_page_count * 8. / 1024. AS reserved_MB,
ps.lob_reserved_page_count * 8. / 1024. AS reserved_LOB_MB,
ps.row_overflow_reserved_page_count * 8. / 1024. AS reserved_row_overflow_MB,
os.leaf_insert_count,
os.leaf_delete_count,
os.leaf_update_count,
os.range_scan_count,
os.singleton_lookup_count,
os.forwarded_fetch_count,
os.lob_fetch_in_pages,
os.lob_fetch_in_bytes,
os.row_overflow_fetch_in_pages,
os.row_overflow_fetch_in_bytes,
os.row_lock_count,
os.row_lock_wait_count,
os.row_lock_wait_in_ms,
os.page_lock_count,
os.page_lock_wait_count,
os.page_lock_wait_in_ms,
os.index_lock_promotion_attempt_count,
os.index_lock_promotion_count,
' + case when @SQLServerProductVersion not like '9%' THEN N'par.data_compression_desc ' ELSE N'null as data_compression_desc' END + N'
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.dm_db_partition_stats AS ps
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.partitions AS par on ps.partition_id=par.partition_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.objects AS so ON ps.object_id = so.object_id
AND so.is_ms_shipped = 0 /*Exclude objects shipped by Microsoft*/
AND so.type <> ''TF'' /*Exclude table valued functions*/
OUTER APPLY ' + QUOTENAME(@DatabaseName) + N'.sys.dm_db_index_operational_stats('
+ CAST(@DatabaseID AS NVARCHAR(10)) + N', ps.object_id, ps.index_id,ps.partition_number) AS os
WHERE 1=1
' + CASE WHEN @ObjectID IS NOT NULL THEN N'AND so.object_id=' + CAST(@ObjectID AS NVARCHAR(30)) + N' ' ELSE N' ' END + N'
' + CASE WHEN @Filter = 2 THEN N'AND ps.reserved_page_count * 8./1024. > ' + CAST(@FilterMB AS NVARCHAR(5)) + N' ' ELSE N' ' END + '
ORDER BY ps.object_id, ps.index_id, ps.partition_number
OPTION ( RECOMPILE );
';
END
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
RAISERROR (N'Inserting data into #IndexPartitionSanity',0,1) WITH NOWAIT;
insert #IndexPartitionSanity (
[object_id],
index_id,
partition_number,
row_count,
reserved_MB,
reserved_LOB_MB,
reserved_row_overflow_MB,
leaf_insert_count,
leaf_delete_count,
leaf_update_count,
range_scan_count,
singleton_lookup_count,
forwarded_fetch_count,
lob_fetch_in_pages,
lob_fetch_in_bytes,
row_overflow_fetch_in_pages,
row_overflow_fetch_in_bytes,
row_lock_count,
row_lock_wait_count,
row_lock_wait_in_ms,
page_lock_count,
page_lock_wait_count,
page_lock_wait_in_ms,
index_lock_promotion_attempt_count,
index_lock_promotion_count,
data_compression_desc )
EXEC sp_executesql @dsql;
RAISERROR (N'Updating index_sanity_id on #IndexPartitionSanity',0,1) WITH NOWAIT;
UPDATE #IndexPartitionSanity
SET index_sanity_id = i.index_sanity_id
FROM #IndexPartitionSanity ps
JOIN #IndexSanity i ON ps.[object_id] = i.[object_id]
AND ps.index_id = i.index_id
RAISERROR (N'Inserting data into #IndexSanitySize',0,1) WITH NOWAIT;
INSERT #IndexSanitySize ( [index_sanity_id], partition_count, total_rows, total_reserved_MB,
total_reserved_LOB_MB, total_reserved_row_overflow_MB, total_range_scan_count,
total_singleton_lookup_count, total_leaf_delete_count, total_leaf_update_count,
total_forwarded_fetch_count,total_row_lock_count,
total_row_lock_wait_count, total_row_lock_wait_in_ms, avg_row_lock_wait_in_ms,
total_page_lock_count, total_page_lock_wait_count, total_page_lock_wait_in_ms,
avg_page_lock_wait_in_ms, total_index_lock_promotion_attempt_count,
total_index_lock_promotion_count, data_compression_desc )
SELECT index_sanity_id, COUNT(*), SUM(row_count), SUM(reserved_MB), SUM(reserved_LOB_MB),
SUM(reserved_row_overflow_MB),
SUM(range_scan_count),
SUM(singleton_lookup_count),
SUM(leaf_delete_count),
SUM(leaf_update_count),
SUM(forwarded_fetch_count),
SUM(row_lock_count),
SUM(row_lock_wait_count),
SUM(row_lock_wait_in_ms),
CASE WHEN SUM(row_lock_wait_in_ms) > 0 THEN
SUM(row_lock_wait_in_ms)/(1.*SUM(row_lock_wait_count))
ELSE 0 END AS avg_row_lock_wait_in_ms,
SUM(page_lock_count),
SUM(page_lock_wait_count),
SUM(page_lock_wait_in_ms),
CASE WHEN SUM(page_lock_wait_in_ms) > 0 THEN
SUM(page_lock_wait_in_ms)/(1.*SUM(page_lock_wait_count))
ELSE 0 END AS avg_page_lock_wait_in_ms,
SUM(index_lock_promotion_attempt_count),
SUM(index_lock_promotion_count),
LEFT(MAX(data_compression_info.data_compression_rollup),8000)
FROM #IndexPartitionSanity ipp
/* individual partitions can have distinct compression settings, just roll them into a list here*/
OUTER APPLY (SELECT STUFF((
SELECT N', ' + data_compression_desc
FROM #IndexPartitionSanity ipp2
WHERE ipp.[object_id]=ipp2.[object_id]
AND ipp.[index_id]=ipp2.[index_id]
ORDER BY ipp2.partition_number
FOR XML PATH(''),TYPE).value('.', 'varchar(max)'), 1, 1, ''))
data_compression_info(data_compression_rollup)
GROUP BY index_sanity_id
ORDER BY index_sanity_id
OPTION ( RECOMPILE );
RAISERROR (N'Adding UQ index on #IndexSanity (object_id,index_id)',0,1) WITH NOWAIT;
CREATE UNIQUE INDEX uq_object_id_index_id ON #IndexSanity (object_id,index_id);
RAISERROR (N'Inserting data into #MissingIndexes',0,1) WITH NOWAIT;
SET @dsql=N'SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT id.object_id, ' + QUOTENAME(@DatabaseName,'''') + N', sc.[name], so.[name], id.statement , gs.avg_total_user_cost,
gs.avg_user_impact, gs.user_seeks, gs.user_scans, gs.unique_compiles,id.equality_columns,
id.inequality_columns,id.included_columns
FROM sys.dm_db_missing_index_groups ig
JOIN sys.dm_db_missing_index_details id ON ig.index_handle = id.index_handle
JOIN sys.dm_db_missing_index_group_stats gs ON ig.index_group_handle = gs.group_handle
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.objects so on
id.object_id=so.object_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.schemas sc on
so.schema_id=sc.schema_id
WHERE id.database_id = ' + CAST(@DatabaseID AS NVARCHAR(30)) + '
' + CASE WHEN @ObjectID IS NULL THEN N''
ELSE N'and id.object_id=' + CAST(@ObjectID AS NVARCHAR(30))
END +
N';'
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
INSERT #MissingIndexes ( [object_id], [database_name], [schema_name], [table_name], [statement], avg_total_user_cost,
avg_user_impact, user_seeks, user_scans, unique_compiles, equality_columns,
inequality_columns,included_columns)
EXEC sp_executesql @dsql;
SET @dsql = N'
SELECT
fk_object.name AS foreign_key_name,
parent_object.[object_id] AS parent_object_id,
parent_object.name AS parent_object_name,
referenced_object.[object_id] AS referenced_object_id,
referenced_object.name AS referenced_object_name,
fk.is_disabled,
fk.is_not_trusted,
fk.is_not_for_replication,
parent.fk_columns,
referenced.fk_columns,
[update_referential_action_desc],
[delete_referential_action_desc]
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.foreign_keys fk
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.objects fk_object ON fk.object_id=fk_object.object_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.objects parent_object ON fk.parent_object_id=parent_object.object_id
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.objects referenced_object ON fk.referenced_object_id=referenced_object.object_id
CROSS APPLY ( SELECT STUFF( (SELECT N'', '' + c_parent.name AS fk_columns
FROM ' + QUOTENAME(@DatabaseName) + N'.sys.foreign_key_columns fkc
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.columns c_parent ON fkc.parent_object_id=c_parent.[object_id]
AND fkc.parent_column_id=c_parent.column_id
WHERE fk.parent_object_id=fkc.parent_object_id
AND fk.[object_id]=fkc.constraint_object_id
ORDER BY fkc.constraint_column_id
FOR XML PATH('''') ,
TYPE).value(''.'', ''varchar(max)''), 1, 1, '''')/*This is how we remove the first comma*/ ) parent ( fk_columns )
CROSS APPLY ( SELECT STUFF( (SELECT N'', '' + c_referenced.name AS fk_columns
FROM ' + QUOTENAME(@DatabaseName) + N'.sys. foreign_key_columns fkc
JOIN ' + QUOTENAME(@DatabaseName) + N'.sys.columns c_referenced ON fkc.referenced_object_id=c_referenced.[object_id]
AND fkc.referenced_column_id=c_referenced.column_id
WHERE fk.referenced_object_id=fkc.referenced_object_id
and fk.[object_id]=fkc.constraint_object_id
ORDER BY fkc.constraint_column_id /*order by col name, we don''t have anything better*/
FOR XML PATH('''') ,
TYPE).value(''.'', ''varchar(max)''), 1, 1, '''') ) referenced ( fk_columns )
' + CASE WHEN @ObjectID IS NOT NULL THEN
'WHERE fk.parent_object_id=' + CAST(@ObjectID AS NVARCHAR(30)) + N' OR fk.referenced_object_id=' + CAST(@ObjectID AS NVARCHAR(30)) + N' '
ELSE N' ' END + '
ORDER BY parent_object_name, foreign_key_name;
';
IF @dsql IS NULL
RAISERROR('@dsql is null',16,1);
RAISERROR (N'Inserting data into #ForeignKeys',0,1) WITH NOWAIT;
INSERT #ForeignKeys ( foreign_key_name, parent_object_id,parent_object_name, referenced_object_id, referenced_object_name,
is_disabled, is_not_trusted, is_not_for_replication, parent_fk_columns, referenced_fk_columns,
[update_referential_action_desc], [delete_referential_action_desc] )
EXEC sp_executesql @dsql;
RAISERROR (N'Updating #IndexSanity.referenced_by_foreign_key',0,1) WITH NOWAIT;
UPDATE #IndexSanity
SET is_referenced_by_foreign_key=1
FROM #IndexSanity s
JOIN #ForeignKeys fk ON
s.object_id=fk.referenced_object_id
AND LEFT(s.key_column_names,LEN(fk.referenced_fk_columns)) = fk.referenced_fk_columns
RAISERROR (N'Add computed columns to #IndexSanity to simplify queries.',0,1) WITH NOWAIT;
ALTER TABLE #IndexSanity ADD
[schema_object_name] AS [schema_name] + '.' + [object_name] ,
[schema_object_indexid] AS [schema_name] + '.' + [object_name]
+ CASE WHEN [index_name] IS NOT NULL THEN '.' + index_name
ELSE ''
END + ' (' + CAST(index_id AS NVARCHAR(20)) + ')' ,
first_key_column_name AS CASE WHEN count_key_columns > 1
THEN LEFT(key_column_names, CHARINDEX(',', key_column_names, 0) - 1)
ELSE key_column_names
END ,
index_definition AS
CASE WHEN partition_key_column_name IS NOT NULL
THEN N'[PARTITIONED BY:' + partition_key_column_name + N']'
ELSE ''
END +
CASE index_id
WHEN 0 THEN N'[HEAP] '
WHEN 1 THEN N'[CX] '
ELSE N'' END + CASE WHEN is_indexed_view = 1 THEN '[VIEW] '
ELSE N'' END + CASE WHEN is_primary_key = 1 THEN N'[PK] '
ELSE N'' END + CASE WHEN is_XML = 1 THEN N'[XML] '
ELSE N'' END + CASE WHEN is_spatial = 1 THEN N'[SPATIAL] '
ELSE N'' END + CASE WHEN is_NC_columnstore = 1 THEN N'[COLUMNSTORE] '
ELSE N'' END + CASE WHEN is_disabled = 1 THEN N'[DISABLED] '
ELSE N'' END + CASE WHEN is_hypothetical = 1 THEN N'[HYPOTHETICAL] '
ELSE N'' END + CASE WHEN is_unique = 1 AND is_primary_key = 0 THEN N'[UNIQUE] '
ELSE N'' END + CASE WHEN count_key_columns > 0 THEN
N'[' + CAST(count_key_columns AS VARCHAR(10)) + N' KEY'
+ CASE WHEN count_key_columns > 1 then N'S' ELSE N'' END
+ N'] ' + LTRIM(key_column_names_with_sort_order)
ELSE N'' END + CASE WHEN count_included_columns > 0 THEN
N' [' + CAST(count_included_columns AS VARCHAR(10)) + N' INCLUDE' +
+ CASE WHEN count_included_columns > 1 then N'S' ELSE N'' END
+ N'] ' + include_column_names
ELSE N'' END + CASE WHEN filter_definition <> N'' THEN N' [FILTER] ' + filter_definition
ELSE N'' END ,
[total_reads] AS user_seeks + user_scans + user_lookups,
[reads_per_write] AS CAST(CASE WHEN user_updates > 0
THEN ( user_seeks + user_scans + user_lookups ) / (1.0 * user_updates)
ELSE 0 END AS MONEY) ,
[index_usage_summary] AS N'Reads: ' +
REPLACE(CONVERT(NVARCHAR(30),CAST((user_seeks + user_scans + user_lookups) AS money), 1), '.00', '')
+ case when user_seeks + user_scans + user_lookups > 0 then
N' ('
+ RTRIM(
CASE WHEN user_seeks > 0 then REPLACE(CONVERT(NVARCHAR(30),CAST((user_seeks) AS money), 1), '.00', '') + N' seek ' ELSE N'' END
+ CASE WHEN user_scans > 0 then REPLACE(CONVERT(NVARCHAR(30),CAST((user_scans) AS money), 1), '.00', '') + N' scan ' ELSE N'' END
+ CASE WHEN user_lookups > 0 then REPLACE(CONVERT(NVARCHAR(30),CAST((user_lookups) AS money), 1), '.00', '') + N' lookup' ELSE N'' END
)
+ N') '
else N' ' end
+ N'Writes:' +
REPLACE(CONVERT(NVARCHAR(30),CAST(user_updates AS money), 1), '.00', ''),
[more_info] AS N'EXEC dbo.sp_BlitzIndex @DatabaseName=' + QUOTENAME([database_name],'''') +
N', @SchemaName=' + QUOTENAME([schema_name],'''') + N', @TableName=' + QUOTENAME([object_name],'''') + N';'
RAISERROR (N'Update index_secret on #IndexSanity for NC indexes.',0,1) WITH NOWAIT;
UPDATE nc
SET secret_columns=
N'[' +
CASE tb.count_key_columns WHEN 0 THEN '1' ELSE CAST(tb.count_key_columns AS VARCHAR(10)) END +
CASE nc.is_unique WHEN 1 THEN N' INCLUDE' ELSE N' KEY' END +
CASE WHEN tb.count_key_columns > 1 then N'S] ' ELSE N'] ' END +
CASE tb.index_id WHEN 0 THEN '[RID]' ELSE LTRIM(tb.key_column_names) +
/* Uniquifiers only needed on non-unique clustereds-- not heaps */
CASE tb.is_unique WHEN 0 THEN ' [UNIQUIFIER]' ELSE N'' END
END
, count_secret_columns=
CASE tb.index_id WHEN 0 THEN 1 ELSE
tb.count_key_columns +
CASE tb.is_unique WHEN 0 THEN 1 ELSE 0 END
END
FROM #IndexSanity AS nc
JOIN #IndexSanity AS tb ON nc.object_id=tb.object_id
and tb.index_id in (0,1)
WHERE nc.index_id > 1;
RAISERROR (N'Update index_secret on #IndexSanity for heaps and non-unique clustered.',0,1) WITH NOWAIT;
UPDATE tb
SET secret_columns= CASE tb.index_id WHEN 0 THEN '[RID]' ELSE '[UNIQUIFIER]' END
, count_secret_columns = 1
FROM #IndexSanity AS tb
WHERE tb.index_id = 0 /*Heaps-- these have the RID */
or (tb.index_id=1 and tb.is_unique=0); /* Non-unique CX: has uniquifer (when needed) */
RAISERROR (N'Add computed columns to #IndexSanitySize to simplify queries.',0,1) WITH NOWAIT;
ALTER TABLE #IndexSanitySize ADD
index_size_summary AS ISNULL(
CASE WHEN partition_count > 1
THEN N'[' + CAST(partition_count AS NVARCHAR(10)) + N' PARTITIONS] '
ELSE N''
END + REPLACE(CONVERT(NVARCHAR(30),CAST([total_rows] AS money), 1), N'.00', N'') + N' rows; '
+ CASE WHEN total_reserved_MB > 1024 THEN
CAST(CAST(total_reserved_MB/1024. AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'GB'
ELSE
CAST(CAST(total_reserved_MB AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'MB'
END
+ CASE WHEN total_reserved_LOB_MB > 1024 THEN
N'; ' + CAST(CAST(total_reserved_LOB_MB/1024. AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'GB LOB'
WHEN total_reserved_LOB_MB > 0 THEN
N'; ' + CAST(CAST(total_reserved_LOB_MB AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'MB LOB'
ELSE ''
END
+ CASE WHEN total_reserved_row_overflow_MB > 1024 THEN
N'; ' + CAST(CAST(total_reserved_row_overflow_MB/1024. AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'GB Row Overflow'
WHEN total_reserved_row_overflow_MB > 0 THEN
N'; ' + CAST(CAST(total_reserved_row_overflow_MB AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'MB Row Overflow'
ELSE ''
END ,
N'Error- NULL in computed column'),
index_op_stats AS ISNULL(
(
REPLACE(CONVERT(NVARCHAR(30),CAST(total_singleton_lookup_count AS MONEY), 1),N'.00',N'') + N' singleton lookups; '
+ REPLACE(CONVERT(NVARCHAR(30),CAST(total_range_scan_count AS MONEY), 1),N'.00',N'') + N' scans/seeks; '
+ REPLACE(CONVERT(NVARCHAR(30),CAST(total_leaf_delete_count AS MONEY), 1),N'.00',N'') + N' deletes; '
+ REPLACE(CONVERT(NVARCHAR(30),CAST(total_leaf_update_count AS MONEY), 1),N'.00',N'') + N' updates; '
+ CASE WHEN ISNULL(total_forwarded_fetch_count,0) >0 THEN
REPLACE(CONVERT(NVARCHAR(30),CAST(total_forwarded_fetch_count AS MONEY), 1),N'.00',N'') + N' forward records fetched; '
ELSE N'' END
/* rows will only be in this dmv when data is in memory for the table */
), N'Table metadata not in memory'),
index_lock_wait_summary AS ISNULL(
CASE WHEN total_row_lock_wait_count = 0 and total_page_lock_wait_count = 0 and
total_index_lock_promotion_attempt_count = 0 THEN N'0 lock waits.'
ELSE
CASE WHEN total_row_lock_wait_count > 0 THEN
N'Row lock waits: ' + REPLACE(CONVERT(NVARCHAR(30),CAST(total_row_lock_wait_count AS money), 1), N'.00', N'')
+ N'; total duration: ' +
CASE WHEN total_row_lock_wait_in_ms >= 60000 THEN /*More than 1 min*/
REPLACE(CONVERT(NVARCHAR(30),CAST((total_row_lock_wait_in_ms/60000) AS money), 1), N'.00', N'') + N' minutes; '
ELSE
REPLACE(CONVERT(NVARCHAR(30),CAST(ISNULL(total_row_lock_wait_in_ms/1000,0) AS money), 1), N'.00', N'') + N' seconds; '
END
+ N'avg duration: ' +
CASE WHEN avg_row_lock_wait_in_ms >= 60000 THEN /*More than 1 min*/
REPLACE(CONVERT(NVARCHAR(30),CAST((avg_row_lock_wait_in_ms/60000) AS money), 1), N'.00', N'') + N' minutes; '
ELSE
REPLACE(CONVERT(NVARCHAR(30),CAST(ISNULL(avg_row_lock_wait_in_ms/1000,0) AS money), 1), N'.00', N'') + N' seconds; '
END
ELSE N''
END +
CASE WHEN total_page_lock_wait_count > 0 THEN
N'Page lock waits: ' + REPLACE(CONVERT(NVARCHAR(30),CAST(total_page_lock_wait_count AS money), 1), N'.00', N'')
+ N'; total duration: ' +
CASE WHEN total_page_lock_wait_in_ms >= 60000 THEN /*More than 1 min*/
REPLACE(CONVERT(NVARCHAR(30),CAST((total_page_lock_wait_in_ms/60000) AS money), 1), N'.00', N'') + N' minutes; '
ELSE
REPLACE(CONVERT(NVARCHAR(30),CAST(ISNULL(total_page_lock_wait_in_ms/1000,0) AS money), 1), N'.00', N'') + N' seconds; '
END
+ N'avg duration: ' +
CASE WHEN avg_page_lock_wait_in_ms >= 60000 THEN /*More than 1 min*/
REPLACE(CONVERT(NVARCHAR(30),CAST((avg_page_lock_wait_in_ms/60000) AS money), 1), N'.00', N'') + N' minutes; '
ELSE
REPLACE(CONVERT(NVARCHAR(30),CAST(ISNULL(avg_page_lock_wait_in_ms/1000,0) AS money), 1), N'.00', N'') + N' seconds; '
END
ELSE N''
END +
CASE WHEN total_index_lock_promotion_attempt_count > 0 THEN
N'Lock escalation attempts: ' + REPLACE(CONVERT(NVARCHAR(30),CAST(total_index_lock_promotion_attempt_count AS money), 1), N'.00', N'')
+ N'; Actual Escalations: ' + REPLACE(CONVERT(NVARCHAR(30),CAST(ISNULL(total_index_lock_promotion_count,0) AS money), 1), N'.00', N'') + N'.'
ELSE N''
END
END
,'Error- NULL in computed column')
RAISERROR (N'Add computed columns to #missing_index to simplify queries.',0,1) WITH NOWAIT;
ALTER TABLE #MissingIndexes ADD
[index_estimated_impact] AS
CAST(user_seeks + user_scans AS NVARCHAR(30)) + N' use'
+ CASE WHEN (user_seeks + user_scans) > 1 THEN N's' ELSE N'' END
+N'; Impact: ' + CAST(avg_user_impact AS NVARCHAR(30))
+ N'%; Avg query cost: '
+ CAST(avg_total_user_cost AS NVARCHAR(30)),
[missing_index_details] AS
CASE WHEN equality_columns IS NOT NULL THEN N'EQUALITY: ' + equality_columns + N' '
ELSE N''
END + CASE WHEN inequality_columns IS NOT NULL THEN N'INEQUALITY: ' + inequality_columns + N' '
ELSE N''
END + CASE WHEN included_columns IS NOT NULL THEN N'INCLUDES: ' + included_columns + N' '
ELSE N''
END,
[create_tsql] AS N'CREATE INDEX [ix_' + table_name + N'_'
+ REPLACE(REPLACE(REPLACE(REPLACE(
ISNULL(equality_columns,N'')+
CASE when equality_columns is not null and inequality_columns is not null then N'_' else N'' END
+ ISNULL(inequality_columns,''),',','')
,'[',''),']',''),' ','_')
+ CASE WHEN included_columns IS NOT NULL THEN N'_includes' ELSE N'' END + N'] ON '
+ [statement] + N' (' + ISNULL(equality_columns,N'')
+ CASE WHEN equality_columns IS NOT NULL AND inequality_columns IS NOT NULL THEN N', ' ELSE N'' END
+ CASE WHEN inequality_columns IS NOT NULL THEN inequality_columns ELSE N'' END +
') ' + CASE WHEN included_columns IS NOT NULL THEN N' INCLUDE (' + included_columns + N')' ELSE N'' END
+ N' WITH ('
+ N'FILLFACTOR=100, ONLINE=?, SORT_IN_TEMPDB=?'
+ N')'
+ N';'
,
[more_info] AS N'EXEC dbo.sp_BlitzIndex @DatabaseName=' + QUOTENAME([database_name],'''') +
N', @SchemaName=' + QUOTENAME([schema_name],'''') + N', @TableName=' + QUOTENAME([table_name],'''') + N';'
;
RAISERROR (N'Populate #IndexCreateTsql.',0,1) WITH NOWAIT;
INSERT #IndexCreateTsql (index_sanity_id, create_tsql)
SELECT
index_sanity_id,
ISNULL (
/* Script drops for disabled non-clustered indexes*/
CASE WHEN is_disabled = 1 AND index_id <> 1
THEN N'--DROP INDEX ' + QUOTENAME([index_name]) + N' ON '
+ QUOTENAME([schema_name]) + N'.' + QUOTENAME([object_name])
ELSE
CASE index_id WHEN 0 THEN N'--I''m a Heap!'
ELSE
CASE WHEN is_XML = 1 OR is_spatial=1 THEN N'' /* Not even trying for these just yet...*/
ELSE
CASE WHEN is_primary_key=1 THEN
N'ALTER TABLE ' + QUOTENAME([schema_name]) +
N'.' + QUOTENAME([object_name]) +
N' ADD CONSTRAINT [' +
index_name +
N'] PRIMARY KEY ' +
CASE WHEN index_id=1 THEN N'CLUSTERED (' ELSE N'(' END +
key_column_names_with_sort_order_no_types + N' )'
WHEN is_CX_columnstore= 1 THEN
N'CREATE CLUSTERED COLUMNSTORE INDEX ' + QUOTENAME(index_name) + N' on ' + QUOTENAME([schema_name]) + '.' + QUOTENAME([object_name])
ELSE /*Else not a PK or cx columnstore */
N'CREATE ' +
CASE WHEN is_unique=1 THEN N'UNIQUE ' ELSE N'' END +
CASE WHEN index_id=1 THEN N'CLUSTERED ' ELSE N'' END +
CASE WHEN is_NC_columnstore=1 THEN N'NONCLUSTERED COLUMNSTORE '
ELSE N'' END +
N'INDEX ['
+ index_name + N'] ON ' +
QUOTENAME([schema_name]) + '.' + QUOTENAME([object_name]) +
CASE WHEN is_NC_columnstore=1 THEN
N' (' + ISNULL(include_column_names_no_types,'') + N' )'
ELSE /*Else not colunnstore */
N' (' + ISNULL(key_column_names_with_sort_order_no_types,'') + N' )'
+ CASE WHEN include_column_names_no_types IS NOT NULL THEN
N' INCLUDE (' + include_column_names_no_types + N')'
ELSE N''
END
END /*End non-colunnstore case */
+ CASE WHEN filter_definition <> N'' THEN N' WHERE ' + filter_definition ELSE N'' END
END /*End Non-PK index CASE */
+ CASE WHEN is_NC_columnstore=0 and is_CX_columnstore=0 then
N' WITH ('
+ N'FILLFACTOR=' + CASE fill_factor when 0 then N'100' else CAST(fill_factor AS NVARCHAR(5)) END + ', '
+ N'ONLINE=?, SORT_IN_TEMPDB=?'
+ N')'
else N'' end
+ N';'
END /*End non-spatial and non-xml CASE */
END
END, '[Unknown Error]')
AS create_tsql
FROM #IndexSanity;
END
END TRY
BEGIN CATCH
RAISERROR (N'Failure populating temp tables.', 0,1) WITH NOWAIT;
IF @dsql IS NOT NULL
BEGIN
SET @msg= 'Last @dsql: ' + @dsql;
RAISERROR(@msg, 0, 1) WITH NOWAIT;
END
SELECT @msg = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(), @ErrorState = ERROR_STATE();
RAISERROR (@msg,@ErrorSeverity, @ErrorState )WITH NOWAIT;
WHILE @@trancount > 0
ROLLBACK;
RETURN;
END CATCH;
----------------------------------------
--STEP 2: DIAGNOSE THE PATIENT
--EVERY QUERY AFTER THIS GOES AGAINST TEMP TABLES ONLY.
----------------------------------------
BEGIN TRY
----------------------------------------
--If @TableName is specified, just return information for that table.
--The @Mode parameter doesn't matter if you're looking at a specific table.
----------------------------------------
IF @TableName IS NOT NULL
BEGIN
RAISERROR(N'@TableName specified, giving detail only on that table.', 0,1) WITH NOWAIT;
--We do a left join here in case this is a disabled NC.
--In that case, it won't have any size info/pages allocated.
WITH table_mode_cte AS (
SELECT
s.schema_object_indexid,
s.key_column_names,
s.index_definition,
ISNULL(s.secret_columns,N'') AS secret_columns,
s.fill_factor,
s.index_usage_summary,
sz.index_op_stats,
ISNULL(sz.index_size_summary,'') /*disabled NCs will be null*/ AS index_size_summary,
ISNULL(sz.index_lock_wait_summary,'') AS index_lock_wait_summary,
s.is_referenced_by_foreign_key,
(SELECT COUNT(*)
FROM #ForeignKeys fk WHERE fk.parent_object_id=s.object_id
AND PATINDEX (fk.parent_fk_columns, s.key_column_names)=1) AS FKs_covered_by_index,
s.last_user_seek,
s.last_user_scan,
s.last_user_lookup,
s.last_user_update,
s.create_date,
s.modify_date,
ct.create_tsql,
1 as display_order
FROM #IndexSanity s
LEFT JOIN #IndexSanitySize sz ON
s.index_sanity_id=sz.index_sanity_id
LEFT JOIN #IndexCreateTsql ct ON
s.index_sanity_id=ct.index_sanity_id
WHERE s.[object_id]=@ObjectID
UNION ALL
SELECT N'Database ' + QUOTENAME(@DatabaseName) + N' as of ' + convert(nvarchar(16),getdate(),121) +
N' (sp_BlitzIndex(TM) v2.02 - Jan 30, 2014)' ,
N'From Brent Ozar Unlimited(TM)' ,
N'http://BrentOzar.com/BlitzIndex' ,
N'Thanks from the Brent Ozar Unlimited(TM) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at <EMAIL>.',
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
0 as display_order
)
SELECT
schema_object_indexid AS [Details: schema.table.index(indexid)],
index_definition AS [Definition: [Property]] ColumnName {datatype maxbytes}],
secret_columns AS [Secret Columns],
fill_factor AS [Fillfactor],
index_usage_summary AS [Usage Stats],
index_op_stats as [Op Stats],
index_size_summary AS [Size],
index_lock_wait_summary AS [Lock Waits],
is_referenced_by_foreign_key AS [Referenced by FK?],
FKs_covered_by_index AS [FK Covered by Index?],
last_user_seek AS [Last User Seek],
last_user_scan AS [Last User Scan],
last_user_lookup AS [Last User Lookup],
last_user_update as [Last User Write],
create_date AS [Created],
modify_date AS [Last Modified],
create_tsql AS [Create TSQL]
FROM table_mode_cte
ORDER BY display_order ASC, key_column_names ASC
OPTION ( RECOMPILE );
IF (SELECT TOP 1 [object_id] FROM #MissingIndexes mi) IS NOT NULL
BEGIN
SELECT N'Missing index.' AS Finding ,
N'http://BrentOzar.com/go/Indexaphobia' AS URL ,
mi.[statement] + ' Est Benefit: '
+ CASE WHEN magic_benefit_number >= 922337203685477 THEN '>= 922,337,203,685,477'
ELSE REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(magic_benefit_number AS BIGINT) AS money), 1), '.00', '')
END AS [Estimated Benefit],
missing_index_details AS [Missing Index Request] ,
index_estimated_impact AS [Estimated Impact],
create_tsql AS [Create TSQL]
FROM #MissingIndexes mi
WHERE [object_id] = @ObjectID
ORDER BY magic_benefit_number DESC
OPTION ( RECOMPILE );
END
ELSE
SELECT 'No missing indexes.' AS finding;
SELECT
column_name AS [Column Name],
(SELECT COUNT(*)
FROM #IndexColumns c2
WHERE c2.column_name=c.column_name
and c2.key_ordinal is not null)
+ CASE WHEN c.index_id = 1 and c.key_ordinal is not null THEN
-1+ (SELECT COUNT(DISTINCT index_id)
from #IndexColumns c3
where c3.index_id not in (0,1))
ELSE 0 END
AS [Found In],
system_type_name +
CASE max_length WHEN -1 THEN N' (max)' ELSE
CASE
WHEN system_type_name in (N'char',N'nchar',N'binary',N'varbinary') THEN N' (' + CAST(max_length as NVARCHAR(20)) + N')'
WHEN system_type_name in (N'varchar',N'nvarchar') THEN N' (' + CAST(max_length/2 as NVARCHAR(20)) + N')'
ELSE ''
END
END
AS [Type],
CASE is_computed WHEN 1 THEN 'yes' ELSE '' END AS [Computed?],
max_length AS [Length (max bytes)],
[precision] AS [Prec],
[scale] AS [Scale],
CASE is_nullable WHEN 1 THEN 'yes' ELSE '' END AS [Nullable?],
CASE is_identity WHEN 1 THEN 'yes' ELSE '' END AS [Identity?],
CASE is_replicated WHEN 1 THEN 'yes' ELSE '' END AS [Replicated?],
CASE is_sparse WHEN 1 THEN 'yes' ELSE '' END AS [Sparse?],
CASE is_filestream WHEN 1 THEN 'yes' ELSE '' END AS [Filestream?],
collation_name AS [Collation]
FROM #IndexColumns AS c
where index_id in (0,1);
IF (SELECT TOP 1 parent_object_id FROM #ForeignKeys) IS NOT NULL
BEGIN
SELECT parent_object_name + N': ' + foreign_key_name AS [Foreign Key],
parent_fk_columns AS [Foreign Key Columns],
referenced_object_name AS [Referenced Table],
referenced_fk_columns AS [Referenced Table Columns],
is_disabled AS [Is Disabled?],
is_not_trusted as [Not Trusted?],
is_not_for_replication [Not for Replication?],
[update_referential_action_desc] as [Cascading Updates?],
[delete_referential_action_desc] as [Cascading Deletes?]
FROM #ForeignKeys
ORDER BY [Foreign Key]
OPTION ( RECOMPILE );
END
ELSE
SELECT 'No foreign keys.' AS finding;
END
--If @TableName is NOT specified...
--Act based on the @Mode and @Filter. (@Filter applies only when @Mode=0 "diagnose")
ELSE
BEGIN;
IF @Mode=0 /* DIAGNOSE*/
BEGIN;
RAISERROR(N'@Mode=0, we are diagnosing.', 0,1) WITH NOWAIT;
RAISERROR(N'Insert a row to help people find help', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, findings_group, finding, URL, details, index_definition,
index_usage_summary, index_size_summary )
VALUES ( 0 ,
N'Database ' + QUOTENAME(@DatabaseName) + N' as of ' + convert(nvarchar(16),getdate(),121),
N'sp_BlitzIndex(TM) v2.02 - Jan 30, 2014' ,
N'From Brent Ozar Unlimited(TM)' , N'http://BrentOzar.com/BlitzIndex' ,
N'Thanks from the Brent Ozar Unlimited(TM) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at <EMAIL>.'
, N'',N''
);
----------------------------------------
--Multiple Index Personalities: Check_id 0-10
----------------------------------------
BEGIN;
RAISERROR('check_id 1: Duplicate keys', 0,1) WITH NOWAIT;
WITH duplicate_indexes
AS ( SELECT [object_id], key_column_names
FROM #IndexSanity
WHERE index_type IN (1,2) /* Clustered, NC only*/
AND is_hypothetical = 0
AND is_disabled = 0
GROUP BY [object_id], key_column_names
HAVING COUNT(*) > 1)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 1 AS check_id,
ip.index_sanity_id,
'Multiple Index Personalities' AS findings_group,
'Duplicate keys' AS finding,
N'http://BrentOzar.com/go/duplicateindex' AS URL,
ip.schema_object_indexid AS details,
ip.index_definition,
ip.secret_columns,
ip.index_usage_summary,
ips.index_size_summary
FROM duplicate_indexes di
JOIN #IndexSanity ip ON di.[object_id] = ip.[object_id]
AND ip.key_column_names = di.key_column_names
JOIN #IndexSanitySize ips ON ip.index_sanity_id = ips.index_sanity_id
ORDER BY ip.object_id, ip.key_column_names_with_sort_order
OPTION ( RECOMPILE );
RAISERROR('check_id 2: Keys w/ identical leading columns.', 0,1) WITH NOWAIT;
WITH borderline_duplicate_indexes
AS ( SELECT DISTINCT [object_id], first_key_column_name, key_column_names,
COUNT([object_id]) OVER ( PARTITION BY [object_id], first_key_column_name ) AS number_dupes
FROM #IndexSanity
WHERE index_type IN (1,2) /* Clustered, NC only*/
AND is_hypothetical=0
AND is_disabled=0)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 2 AS check_id,
ip.index_sanity_id,
'Multiple Index Personalities' AS findings_group,
'Borderline duplicate keys' AS finding,
N'http://BrentOzar.com/go/duplicateindex' AS URL,
ip.schema_object_indexid AS details,
ip.index_definition,
ip.secret_columns,
ip.index_usage_summary,
ips.index_size_summary
FROM #IndexSanity AS ip
JOIN #IndexSanitySize ips ON ip.index_sanity_id = ips.index_sanity_id
WHERE EXISTS (
SELECT di.[object_id]
FROM borderline_duplicate_indexes AS di
WHERE di.[object_id] = ip.[object_id] AND
di.first_key_column_name = ip.first_key_column_name AND
di.key_column_names <> ip.key_column_names AND
di.number_dupes > 1
)
ORDER BY ip.[schema_name], ip.[object_name], ip.key_column_names, ip.include_column_names
OPTION ( RECOMPILE );
END
----------------------------------------
--Aggressive Indexes: Check_id 10-19
----------------------------------------
BEGIN;
RAISERROR(N'check_id 11: Total lock wait time > 5 minutes (row + page)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 11 AS check_id,
i.index_sanity_id,
N'Aggressive Indexes' AS findings_group,
N'Total lock wait time > 5 minutes (row + page)' AS finding,
N'http://BrentOzar.com/go/AggressiveIndexes' AS URL,
i.schema_object_indexid + N': ' +
sz.index_lock_wait_summary AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE (total_row_lock_wait_in_ms + total_page_lock_wait_in_ms) > 300000
OPTION ( RECOMPILE );
END
----------------------------------------
--Index Hoarder: Check_id 20-29
----------------------------------------
BEGIN
RAISERROR(N'check_id 20: >=7 NC indexes on any given table. Yes, 7 is an arbitrary number.', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 20 AS check_id,
MAX(i.index_sanity_id) AS index_sanity_id,
'Index Hoarder' AS findings_group,
'Many NC indexes on a single table' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
CAST (COUNT(*) AS NVARCHAR(30)) + ' NC indexes on ' + i.schema_object_name AS details,
i.schema_object_name + ' (' + CAST (COUNT(*) AS NVARCHAR(30)) + ' indexes)' AS index_definition,
'' AS secret_columns,
REPLACE(CONVERT(NVARCHAR(30),CAST(SUM(total_reads) AS money), 1), N'.00', N'') + N' reads (ALL); '
+ REPLACE(CONVERT(NVARCHAR(30),CAST(SUM(user_updates) AS money), 1), N'.00', N'') + N' writes (ALL); ',
REPLACE(CONVERT(NVARCHAR(30),CAST(MAX(total_rows) AS money), 1), N'.00', N'') + N' rows (MAX)'
+ CASE WHEN SUM(total_reserved_MB) > 1024 THEN
N'; ' + CAST(CAST(SUM(total_reserved_MB)/1024. AS NUMERIC(29,1)) AS NVARCHAR(30)) + 'GB (ALL)'
WHEN SUM(total_reserved_MB) > 0 THEN
N'; ' + CAST(CAST(SUM(total_reserved_MB) AS NUMERIC(29,1)) AS NVARCHAR(30)) + 'MB (ALL)'
ELSE ''
END AS index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
WHERE index_id NOT IN ( 0, 1 )
GROUP BY schema_object_name
HAVING COUNT(*) >= 7
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
if @Filter = 1 /*@Filter=1 is "ignore unusued" */
BEGIN
RAISERROR(N'Skipping checks on unused indexes (21 and 22) because @Filter=1', 0,1) WITH NOWAIT;
END
ELSE /*Otherwise, go ahead and do the checks*/
BEGIN
RAISERROR(N'check_id 21: >=5 percent of indexes are unused. Yes, 5 is an arbitrary number.', 0,1) WITH NOWAIT;
DECLARE @percent_NC_indexes_unused NUMERIC(29,1);
DECLARE @NC_indexes_unused_reserved_MB NUMERIC(29,1);
SELECT @percent_NC_indexes_unused =( 100.00 * SUM(CASE WHEN total_reads = 0 THEN 1
ELSE 0
END) ) / COUNT(*) ,
@NC_indexes_unused_reserved_MB = SUM(CASE WHEN total_reads = 0 THEN sz.total_reserved_MB
ELSE 0
END)
FROM #IndexSanity i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE index_id NOT IN ( 0, 1 )
and i.is_unique = 0
OPTION ( RECOMPILE );
IF @percent_NC_indexes_unused >= 5
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 21 AS check_id,
MAX(i.index_sanity_id) AS index_sanity_id,
N'Index Hoarder' AS findings_group,
N'More than 5 percent NC indexes are unused' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
CAST (@percent_NC_indexes_unused AS NVARCHAR(30)) + N' percent NC indexes (' + CAST(COUNT(*) AS NVARCHAR(10)) + N') unused. ' +
N'These take up ' + CAST (@NC_indexes_unused_reserved_MB AS NVARCHAR(30)) + N'MB of space.' AS details,
i.database_name + ' (' + CAST (COUNT(*) AS NVARCHAR(30)) + N' indexes)' AS index_definition,
'' AS secret_columns,
CAST(SUM(total_reads) AS NVARCHAR(256)) + N' reads (ALL); '
+ CAST(SUM([user_updates]) AS NVARCHAR(256)) + N' writes (ALL)' AS index_usage_summary,
REPLACE(CONVERT(NVARCHAR(30),CAST(MAX([total_rows]) AS money), 1), '.00', '') + N' rows (MAX)'
+ CASE WHEN SUM(total_reserved_MB) > 1024 THEN
N'; ' + CAST(CAST(SUM(total_reserved_MB)/1024. AS NUMERIC(29,1)) AS NVARCHAR(30)) + 'GB (ALL)'
WHEN SUM(total_reserved_MB) > 0 THEN
N'; ' + CAST(CAST(SUM(total_reserved_MB) AS NUMERIC(29,1)) AS NVARCHAR(30)) + 'MB (ALL)'
ELSE ''
END AS index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE index_id NOT IN ( 0, 1 )
AND i.is_unique = 0
AND total_reads = 0
GROUP BY i.database_name
OPTION ( RECOMPILE );
RAISERROR(N'check_id 22: NC indexes with 0 reads. (Borderline)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 22 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Unused NC index' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
N'0 reads: ' + i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.total_reads=0
AND i.index_id NOT IN (0,1) /*NCs only*/
and i.is_unique = 0
ORDER BY i.schema_object_indexid
OPTION ( RECOMPILE );
END /*end checks only run when @Filter <> 1*/
RAISERROR(N'check_id 23: Indexes with 7 or more columns. (Borderline)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 23 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Borderline: Wide indexes (7 or more columns)' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
CAST(count_key_columns + count_included_columns AS NVARCHAR(10)) + ' columns on '
+ i.schema_object_indexid AS details, i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE ( count_key_columns + count_included_columns ) >= 7
OPTION ( RECOMPILE );
RAISERROR(N'check_id 24: Wide clustered indexes (> 3 columns or > 16 bytes).', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
SUM(CASE max_length when -1 THEN 0 ELSE max_length END) AS sum_max_length
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
and key_ordinal > 0
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 24 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Wide clustered index (> 3 columns OR > 16 bytes)' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
CAST (i.count_key_columns AS NVARCHAR(10)) + N' columns with potential size of '
+ CAST(cc.sum_max_length AS NVARCHAR(10))
+ N' bytes in clustered index:' + i.schema_object_name
+ N'. ' +
(SELECT CAST(COUNT(*) AS NVARCHAR(23)) FROM #IndexSanity i2
WHERE i2.[object_id]=i.[object_id] AND i2.index_id <> 1
AND i2.is_disabled=0 AND i2.is_hypothetical=0)
+ N' NC indexes on the table.'
AS details,
i.index_definition,
secret_columns,
i.index_usage_summary,
ip.index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
WHERE index_id = 1 /* clustered only */
AND
(count_key_columns > 3 /*More than three key columns.*/
OR cc.sum_max_length > 15 /*More than 16 bytes in key */)
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 25: Addicted to nullable columns.', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
SUM(CASE is_nullable WHEN 1 THEN 0 ELSE 1 END) as non_nullable_columns,
COUNT(*) as total_columns
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 25 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Addicted to nulls' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
i.schema_object_name
+ N' allows null in ' + CAST((total_columns-non_nullable_columns) as NVARCHAR(10))
+ N' of ' + CAST(total_columns as NVARCHAR(10))
+ N' columns.' AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
WHERE i.index_id in (1,0)
AND cc.non_nullable_columns < 2
and cc.total_columns > 3
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 26: Wide tables (35+ cols or > 2000 non-LOB bytes).', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
SUM(CASE max_length when -1 THEN 1 ELSE 0 END) AS count_lob_columns,
SUM(CASE max_length when -1 THEN 0 ELSE max_length END) AS sum_max_length,
COUNT(*) as total_columns
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 26 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Wide tables: 35+ cols or > 2000 non-LOB bytes' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
i.schema_object_name
+ N' has ' + CAST((total_columns) as NVARCHAR(10))
+ N' total columns with a max possible width of ' + CAST(sum_max_length as NVARCHAR(10))
+ N' bytes.' +
CASE WHEN count_lob_columns > 0 THEN CAST((count_lob_columns) as NVARCHAR(10))
+ ' columns are LOB types.' ELSE ''
END
AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
WHERE i.index_id in (1,0)
and
(cc.total_columns >= 35 OR
cc.sum_max_length >= 2000)
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 27: Addicted to strings.', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
SUM(CASE WHEN system_type_name in ('varchar','nvarchar','char') or max_length=-1 THEN 1 ELSE 0 END) as string_or_LOB_columns,
COUNT(*) as total_columns
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 27 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Addicted to strings' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
i.schema_object_name
+ N' uses string or LOB types for ' + CAST((string_or_LOB_columns) as NVARCHAR(10))
+ N' of ' + CAST(total_columns as NVARCHAR(10))
+ N' columns. Check if data types are valid.' AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
CROSS APPLY (SELECT cc.total_columns - string_or_LOB_columns AS non_string_or_lob_columns) AS calc1
WHERE i.index_id in (1,0)
AND calc1.non_string_or_lob_columns <= 1
AND cc.total_columns > 3
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 28: Non-unique clustered index.', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 28 AS check_id,
i.index_sanity_id,
N'Index Hoarder' AS findings_group,
N'Non-Unique clustered index' AS finding,
N'http://BrentOzar.com/go/IndexHoarder' AS URL,
N'Uniquifiers will be required! Clustered index: ' + i.schema_object_name
+ N' and all NC indexes. ' +
(SELECT CAST(COUNT(*) AS NVARCHAR(23)) FROM #IndexSanity i2
WHERE i2.[object_id]=i.[object_id] AND i2.index_id <> 1
AND i2.is_disabled=0 AND i2.is_hypothetical=0)
+ N' NC indexes on the table.'
AS details,
i.index_definition,
secret_columns,
i.index_usage_summary,
ip.index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
WHERE index_id = 1 /* clustered only */
AND is_unique=0 /* not unique */
AND is_CX_columnstore=0 /* not a clustered columnstore-- no unique option on those */
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
END
----------------------------------------
--Feature-Phobic Indexes: Check_id 30-39
----------------------------------------
BEGIN
RAISERROR(N'check_id 30: No indexes with includes', 0,1) WITH NOWAIT;
DECLARE @number_indexes_with_includes INT;
DECLARE @percent_indexes_with_includes NUMERIC(10, 1);
SELECT @number_indexes_with_includes = SUM(CASE WHEN count_included_columns > 0 THEN 1 ELSE 0 END),
@percent_indexes_with_includes = 100.*
SUM(CASE WHEN count_included_columns > 0 THEN 1 ELSE 0 END) / ( 1.0 * COUNT(*) )
FROM #IndexSanity;
IF @number_indexes_with_includes = 0
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 30 AS check_id,
NULL AS index_sanity_id,
N'Feature-Phobic Indexes' AS findings_group,
N'No indexes use includes' AS finding, 'http://BrentOzar.com/go/IndexFeatures' AS URL,
N'No indexes use includes' AS details,
N'Entire database' AS index_definition,
N'' AS secret_columns,
N'N/A' AS index_usage_summary,
N'N/A' AS index_size_summary OPTION ( RECOMPILE );
RAISERROR(N'check_id 31: < 3 percent of indexes have includes', 0,1) WITH NOWAIT;
IF @percent_indexes_with_includes <= 3 AND @number_indexes_with_includes > 0
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 31 AS check_id,
NULL AS index_sanity_id,
N'Feature-Phobic Indexes' AS findings_group,
N'Borderline: Includes are used in < 3% of indexes' AS findings,
N'http://BrentOzar.com/go/IndexFeatures' AS URL,
N'Only ' + CAST(@percent_indexes_with_includes AS NVARCHAR(10)) + '% of indexes have includes' AS details,
N'Entire database' AS index_definition,
N'' AS secret_columns,
N'N/A' AS index_usage_summary,
N'N/A' AS index_size_summary OPTION ( RECOMPILE );
RAISERROR(N'check_id 32: filtered indexes and indexed views', 0,1) WITH NOWAIT;
DECLARE @count_filtered_indexes INT;
DECLARE @count_indexed_views INT;
SELECT @count_filtered_indexes=COUNT(*)
FROM #IndexSanity
WHERE filter_definition <> '' OPTION ( RECOMPILE );
SELECT @count_indexed_views=COUNT(*)
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE is_indexed_view = 1 OPTION ( RECOMPILE );
IF @count_filtered_indexes = 0 AND @count_indexed_views=0
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 32 AS check_id,
NULL AS index_sanity_id,
N'Feature-Phobic Indexes' AS findings_group,
N'Borderline: No filtered indexes or indexed views exist' AS finding,
N'http://BrentOzar.com/go/IndexFeatures' AS URL,
N'These are NOT always needed-- but do you know when you would use them?' AS details,
N'Entire database' AS index_definition,
N'' AS secret_columns,
N'N/A' AS index_usage_summary,
N'N/A' AS index_size_summary OPTION ( RECOMPILE );
END;
RAISERROR(N'check_id 33: Potential filtered indexes based on column names.', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 33 AS check_id,
i.index_sanity_id AS index_sanity_id,
N'Feature-Phobic Indexes' AS findings_group,
N'Potential filtered index (based on column name)' AS finding,
N'http://BrentOzar.com/go/IndexFeatures' AS URL,
N'A column name in this index suggests it might be a candidate for filtering (is%, %archive%, %active%, %flag%)' AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexColumns ic
join #IndexSanity i on
ic.[object_id]=i.[object_id] and
ic.[index_id]=i.[index_id] and
i.[index_id] > 1 /* non-clustered index */
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE column_name like 'is%'
or column_name like '%archive%'
or column_name like '%active%'
or column_name like '%flag%'
OPTION ( RECOMPILE );
----------------------------------------
--Self Loathing Indexes : Check_id 40-49
----------------------------------------
BEGIN
RAISERROR(N'check_id 40: Fillfactor in nonclustered 80 percent or less', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 40 AS check_id,
i.index_sanity_id,
N'Self Loathing Indexes' AS findings_group,
N'Low Fill Factor: nonclustered index' AS finding,
N'http://BrentOzar.com/go/SelfLoathing' AS URL,
N'Fill factor on ' + schema_object_indexid + N' is ' + CAST(fill_factor AS NVARCHAR(10)) + N'%. '+
CASE WHEN (last_user_update is null OR user_updates < 1)
THEN N'No writes have been made.'
ELSE
N'Last write was ' + CONVERT(NVARCHAR(16),last_user_update,121) + N' and ' +
CAST(user_updates as NVARCHAR(25)) + N' updates have been made.'
END
AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE index_id > 1
and fill_factor BETWEEN 1 AND 80 OPTION ( RECOMPILE );
RAISERROR(N'check_id 40: Fillfactor in clustered 90 percent or less', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 40 AS check_id,
i.index_sanity_id,
N'Self Loathing Indexes' AS findings_group,
N'Low Fill Factor: clustered index' AS finding,
N'http://BrentOzar.com/go/SelfLoathing' AS URL,
N'Fill factor on ' + schema_object_indexid + N' is ' + CAST(fill_factor AS NVARCHAR(10)) + N'%. '+
CASE WHEN (last_user_update is null OR user_updates < 1)
THEN N'No writes have been made.'
ELSE
N'Last write was ' + CONVERT(NVARCHAR(16),last_user_update,121) + N' and ' +
CAST(user_updates as NVARCHAR(25)) + N' updates have been made.'
END
AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
WHERE index_id = 1
and fill_factor BETWEEN 1 AND 90 OPTION ( RECOMPILE );
RAISERROR(N'check_id 41: Hypothetical indexes ', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 41 AS check_id,
N'Self Loathing Indexes' AS findings_group,
N'Hypothetical Index' AS finding, 'http://BrentOzar.com/go/SelfLoathing' AS URL,
N'Hypothetical Index: ' + schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
N'' AS index_usage_summary,
N'' AS index_size_summary
FROM #IndexSanity AS i
WHERE is_hypothetical = 1 OPTION ( RECOMPILE );
RAISERROR(N'check_id 42: Disabled indexes', 0,1) WITH NOWAIT;
--Note: disabled NC indexes will have O rows in #IndexSanitySize!
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 42 AS check_id,
index_sanity_id,
N'Self Loathing Indexes' AS findings_group,
N'Disabled Index' AS finding,
N'http://BrentOzar.com/go/SelfLoathing' AS URL,
N'Disabled Index:' + schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
'DISABLED' AS index_size_summary
FROM #IndexSanity AS i
WHERE is_disabled = 1 OPTION ( RECOMPILE );
RAISERROR(N'check_id 43: Heaps with forwarded records or deletes', 0,1) WITH NOWAIT;
WITH heaps_cte
AS ( SELECT [object_id],
SUM(forwarded_fetch_count) AS forwarded_fetch_count,
SUM(leaf_delete_count) AS leaf_delete_count
FROM #IndexPartitionSanity
GROUP BY [object_id]
HAVING SUM(forwarded_fetch_count) > 0
OR SUM(leaf_delete_count) > 0)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 43 AS check_id,
i.index_sanity_id,
N'Self Loathing Indexes' AS findings_group,
N'Heaps with forwarded records or deletes' AS finding,
N'http://BrentOzar.com/go/SelfLoathing' AS URL,
CAST(h.forwarded_fetch_count AS NVARCHAR(256)) + ' forwarded fetches, '
+ CAST(h.leaf_delete_count AS NVARCHAR(256)) + ' deletes against heap:'
+ schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity i
JOIN heaps_cte h ON i.[object_id] = h.[object_id]
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.index_id = 0
OPTION ( RECOMPILE );
RAISERROR(N'check_id 44: Heaps with reads or writes.', 0,1) WITH NOWAIT;
WITH heaps_cte
AS ( SELECT [object_id], SUM(forwarded_fetch_count) AS forwarded_fetch_count,
SUM(leaf_delete_count) AS leaf_delete_count
FROM #IndexPartitionSanity
GROUP BY [object_id]
HAVING SUM(forwarded_fetch_count) > 0
OR SUM(leaf_delete_count) > 0)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 44 AS check_id,
i.index_sanity_id,
N'Self Loathing Indexes' AS findings_group,
N'Active heap' AS finding,
N'http://BrentOzar.com/go/SelfLoathing' AS URL,
N'Should this table be a heap? ' + schema_object_indexid AS details,
i.index_definition,
'N/A' AS secret_columns,
i.index_usage_summary,
sz.index_size_summary
FROM #IndexSanity i
LEFT JOIN heaps_cte h ON i.[object_id] = h.[object_id]
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.index_id = 0
AND
(i.total_reads > 0 OR i.user_updates > 0)
AND h.[object_id] IS NULL /*don't duplicate the prior check.*/
OPTION ( RECOMPILE );
END;
----------------------------------------
--Indexaphobia
--Missing indexes with value >= 5 million: : Check_id 50-59
----------------------------------------
BEGIN
RAISERROR(N'check_id 50: Indexaphobia.', 0,1) WITH NOWAIT;
WITH index_size_cte
AS ( SELECT i.[object_id],
MAX(i.index_sanity_id) AS index_sanity_id,
ISNULL (
CAST(SUM(CASE WHEN index_id NOT IN (0,1) THEN 1 ELSE 0 END)
AS NVARCHAR(30))+ N' NC indexes exist (' +
CASE WHEN SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END) > 1024
THEN CAST(CAST(SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END )/1024.
AS NUMERIC(29,1)) AS NVARCHAR(30)) + N'GB); '
ELSE CAST(SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END)
AS NVARCHAR(30)) + N'MB); '
END +
CASE WHEN MAX(sz.[total_rows]) >= 922337203685477 THEN '>= 922,337,203,685,477'
ELSE REPLACE(CONVERT(NVARCHAR(30),CAST(MAX(sz.[total_rows]) AS money), 1), '.00', '')
END +
+ N' Estimated Rows;'
,N'') AS index_size_summary
FROM #IndexSanity AS i
LEFT JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
GROUP BY i.[object_id])
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
index_usage_summary, index_size_summary, create_tsql, more_info )
SELECT 50 AS check_id,
sz.index_sanity_id,
N'Indexaphobia' AS findings_group,
N'High value missing index' AS finding,
N'http://BrentOzar.com/go/Indexaphobia' AS URL,
mi.[statement] + ' estimated benefit: ' +
CASE WHEN magic_benefit_number >= 922337203685477 THEN '>= 922,337,203,685,477'
ELSE REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(magic_benefit_number AS BIGINT) AS money), 1), '.00', '')
END AS details,
missing_index_details AS [definition],
index_estimated_impact,
sz.index_size_summary,
mi.create_tsql,
mi.more_info
FROM #MissingIndexes mi
LEFT JOIN index_size_cte sz ON mi.[object_id] = sz.object_id
WHERE magic_benefit_number > 500000
ORDER BY magic_benefit_number DESC;
END
----------------------------------------
--Abnormal Psychology : Check_id 60-79
----------------------------------------
BEGIN
RAISERROR(N'check_id 60: XML indexes', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 60 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'XML Indexes' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
N'' AS index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.is_XML = 1 OPTION ( RECOMPILE );
RAISERROR(N'check_id 61: Columnstore indexes', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 61 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
CASE WHEN i.is_NC_columnstore=1
THEN N'NC Columnstore Index'
ELSE N'Clustered Columnstore Index'
END AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.is_NC_columnstore = 1 OR i.is_CX_columnstore=1
OPTION ( RECOMPILE );
RAISERROR(N'check_id 62: Spatial indexes', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 62 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Spatial indexes' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.is_spatial = 1 OPTION ( RECOMPILE );
RAISERROR(N'check_id 63: Compressed indexes', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 63 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Compressed indexes' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid + N'. COMPRESSION: ' + sz.data_compression_desc AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE sz.data_compression_desc LIKE '%PAGE%' OR sz.data_compression_desc LIKE '%ROW%' OPTION ( RECOMPILE );
RAISERROR(N'check_id 64: Partitioned', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 64 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Partitioned indexes' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.partition_key_column_name IS NOT NULL OPTION ( RECOMPILE );
RAISERROR(N'check_id 65: Non-Aligned Partitioned', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 65 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Non-Aligned index on a partitioned table' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanity AS iParent ON
i.[object_id]=iParent.[object_id]
AND iParent.index_id IN (0,1) /* could be a partitioned heap or clustered table */
AND iParent.partition_key_column_name IS NOT NULL /* parent is partitioned*/
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.partition_key_column_name IS NULL
OPTION ( RECOMPILE );
RAISERROR(N'check_id 66: Recently created tables/indexes (1 week)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 66 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Recently created tables/indexes (1 week)' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid + N' was created on ' +
CONVERT(NVARCHAR(16),i.create_date,121) +
N'. Tables/indexes which are dropped/created regularly require special methods for index tuning.'
AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.create_date >= DATEADD(dd,-7,GETDATE())
OPTION ( RECOMPILE );
RAISERROR(N'check_id 67: Recently modified tables/indexes (2 days)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 67 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Recently modified tables/indexes (2 days)' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_indexid + N' was modified on ' +
CONVERT(NVARCHAR(16),i.modify_date,121) +
N'. A large amount of recently modified indexes may mean a lot of rebuilds are occurring each night.'
AS details,
i.index_definition,
i.secret_columns,
i.index_usage_summary,
ISNULL(sz.index_size_summary,'') AS index_size_summary
FROM #IndexSanity AS i
JOIN #IndexSanitySize sz ON i.index_sanity_id = sz.index_sanity_id
WHERE i.modify_date > DATEADD(dd,-2,GETDATE())
and /*Exclude recently created tables unless they've been modified after being created.*/
(i.create_date < DATEADD(dd,-7,GETDATE()) or i.create_date <> i.modify_date)
OPTION ( RECOMPILE );
RAISERROR(N'check_id 68: Identity columns within 30 percent of the end of range', 0,1) WITH NOWAIT;
-- Allowed Ranges:
--int -2,147,483,648 to 2,147,483,647
--smallint -32,768 to 32,768
--tinyint 0 to 255
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 68 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Identity column within ' +
CAST (calc1.percent_remaining as nvarchar(256))
+ N' percent end of range' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_name + N'.' + QUOTENAME(ic.column_name)
+ N' is an identity with type ' + ic.system_type_name
+ N', last value of '
+ ISNULL(REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(ic.last_value AS BIGINT) AS money), 1), '.00', ''),N'NULL')
+ N', seed of '
+ ISNULL(REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(ic.seed_value AS BIGINT) AS money), 1), '.00', ''),N'NULL')
+ N', increment of ' + CAST(ic.increment_value AS NVARCHAR(256))
+ N', and range of ' +
CASE ic.system_type_name WHEN 'int' THEN N'+/- 2,147,483,647'
WHEN 'smallint' THEN N'+/- 32,768'
WHEN 'tinyint' THEN N'0 to 255'
END
AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexColumns ic on
i.object_id=ic.object_id
and i.index_id in (0,1) /* heaps and cx only */
and ic.is_identity=1
and ic.system_type_name in ('tinyint', 'smallint', 'int')
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
CROSS APPLY (
SELECT CAST(CASE WHEN ic.increment_value >= 0
THEN
CASE ic.system_type_name
WHEN 'int' then (2147483647 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 2147483647.*100
WHEN 'smallint' then (32768 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 32768.*100
WHEN 'tinyint' then ( 255 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 255.*100
ELSE 999
END
ELSE --ic.increment_value is negative
CASE ic.system_type_name
WHEN 'int' then ABS(-2147483647 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 2147483647.*100
WHEN 'smallint' then ABS(-32768 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 32768.*100
WHEN 'tinyint' then ABS( 0 - (ISNULL(ic.last_value,ic.seed_value) + ic.increment_value)) / 255.*100
ELSE -1
END
END AS NUMERIC(5,1)) AS percent_remaining
) as calc1
WHERE i.index_id in (1,0)
and calc1.percent_remaining <= 30
UNION ALL
SELECT 68 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Identity column using a negative seed or increment other than 1' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_name + N'.' + QUOTENAME(ic.column_name)
+ N' is an identity with type ' + ic.system_type_name
+ N', last value of '
+ ISNULL(REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(ic.last_value AS BIGINT) AS money), 1), '.00', ''),N'NULL')
+ N', seed of '
+ ISNULL(REPLACE(CONVERT(NVARCHAR(256),CAST(CAST(ic.seed_value AS BIGINT) AS money), 1), '.00', ''),N'NULL')
+ N', increment of ' + CAST(ic.increment_value AS NVARCHAR(256))
+ N', and range of ' +
CASE ic.system_type_name WHEN 'int' THEN N'+/- 2,147,483,647'
WHEN 'smallint' THEN N'+/- 32,768'
WHEN 'tinyint' THEN N'0 to 255'
END
AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexColumns ic on
i.object_id=ic.object_id
and i.index_id in (0,1) /* heaps and cx only */
and ic.is_identity=1
and ic.system_type_name in ('tinyint', 'smallint', 'int')
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
WHERE i.index_id in (1,0)
and (ic.seed_value < 0 or ic.increment_value <> 1)
ORDER BY finding, details DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 69: Column collation does not match database collation', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
COUNT(*) as column_count
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
and collation_name <> @collation
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 69 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Column collation does not match database collation' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_name
+ N' has ' + CAST(column_count AS NVARCHAR(20))
+ N' column' + CASE WHEN column_count > 1 THEN 's' ELSE '' END
+ N' with a different collation than the db collation of '
+ @collation AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
WHERE i.index_id in (1,0)
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 70: Replicated columns', 0,1) WITH NOWAIT;
WITH count_columns AS (
SELECT [object_id],
COUNT(*) as column_count,
SUM(CASE is_replicated WHEN 1 THEN 1 ELSE 0 END) as replicated_column_count
FROM #IndexColumns ic
WHERE index_id in (1,0) /*Heap or clustered only*/
GROUP BY object_id
)
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
SELECT 70 AS check_id,
i.index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Replicated columns' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
i.schema_object_name
+ N' has ' + CAST(replicated_column_count AS NVARCHAR(20))
+ N' out of ' + CAST(column_count AS NVARCHAR(20))
+ N' column' + CASE WHEN column_count > 1 THEN 's' ELSE '' END
+ N' in one or more publications.'
AS details,
i.index_definition,
secret_columns,
ISNULL(i.index_usage_summary,''),
ISNULL(ip.index_size_summary,'')
FROM #IndexSanity i
JOIN #IndexSanitySize ip ON i.index_sanity_id = ip.index_sanity_id
JOIN count_columns AS cc ON i.[object_id]=cc.[object_id]
WHERE i.index_id in (1,0)
and replicated_column_count > 0
ORDER BY i.schema_object_name DESC OPTION ( RECOMPILE );
RAISERROR(N'check_id 71: Cascading updates or cascading deletes.', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary, more_info )
SELECT 71 AS check_id,
null as index_sanity_id,
N'Abnormal Psychology' AS findings_group,
N'Cascading Updates or Deletes' AS finding,
N'http://BrentOzar.com/go/AbnormalPsychology' AS URL,
N'Foreign Key ' + foreign_key_name +
N' on ' + QUOTENAME(parent_object_name) + N'(' + LTRIM(parent_fk_columns) + N')'
+ N' referencing ' + QUOTENAME(referenced_object_name) + N'(' + LTRIM(referenced_fk_columns) + N')'
+ N' has settings:'
+ CASE [delete_referential_action_desc] WHEN N'NO_ACTION' THEN N'' ELSE N' ON DELETE ' +[delete_referential_action_desc] END
+ CASE [update_referential_action_desc] WHEN N'NO_ACTION' THEN N'' ELSE N' ON UPDATE ' + [update_referential_action_desc] END
AS details,
N'N/A'
AS index_definition,
N'N/A' AS secret_columns,
N'N/A' AS index_usage_summary,
N'N/A' AS index_size_summary,
(SELECT TOP 1 more_info from #IndexSanity i where i.object_id=fk.parent_object_id)
AS more_info
from #ForeignKeys fk
where [delete_referential_action_desc] <> N'NO_ACTION'
OR [update_referential_action_desc] <> N'NO_ACTION'
END
----------------------------------------
--Workaholics: Check_id 80-89
----------------------------------------
BEGIN
RAISERROR(N'check_id 80: Most scanned indexes (index_usage_stats)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
--Workaholics according to index_usage_stats
--This isn't perfect: it mentions the number of scans present in a plan
--A "scan" isn't necessarily a full scan, but hey, we gotta do the best with what we've got.
--in the case of things like indexed views, the operator might be in the plan but never executed
SELECT TOP 5
80 AS check_id,
i.index_sanity_id as index_sanity_id,
N'Workaholics' as findings_group,
N'Scan-a-lots (index_usage_stats)' as finding,
N'http://BrentOzar.com/go/Workaholics' AS URL,
REPLACE(CONVERT( NVARCHAR(50),CAST(i.user_scans AS MONEY),1),'.00','')
+ N' scans against ' + i.schema_object_indexid
+ N'. Latest scan: ' + ISNULL(cast(i.last_user_scan as nvarchar(128)),'?') + N'. '
+ N'ScanFactor=' + cast(((i.user_scans * iss.total_reserved_MB)/1000000.) as NVARCHAR(256)) as details,
isnull(i.key_column_names_with_sort_order,'N/A') as index_definition,
isnull(i.secret_columns,'') as secret_columns,
i.index_usage_summary as index_usage_summary,
iss.index_size_summary as index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize iss on i.index_sanity_id=iss.index_sanity_id
WHERE isnull(i.user_scans,0) > 0
ORDER BY i.user_scans * iss.total_reserved_MB DESC;
RAISERROR(N'check_id 81: Top recent accesses (op stats)', 0,1) WITH NOWAIT;
INSERT #BlitzIndexResults ( check_id, index_sanity_id, findings_group, finding, URL, details, index_definition,
secret_columns, index_usage_summary, index_size_summary )
--Workaholics according to index_operational_stats
--This isn't perfect either: range_scan_count contains full scans, partial scans, even seeks in nested loop ops
--But this can help bubble up some most-accessed tables
SELECT TOP 5
81 as check_id,
i.index_sanity_id as index_sanity_id,
N'Workaholics' as findings_group,
N'Top recent accesses (index_op_stats)' as finding,
N'http://BrentOzar.com/go/Workaholics' AS URL,
ISNULL(REPLACE(
CONVERT(NVARCHAR(50),cast((iss.total_range_scan_count + iss.total_singleton_lookup_count) AS MONEY),1),
N'.00',N'')
+ N' uses of ' + i.schema_object_indexid + N'. '
+ REPLACE(CONVERT(NVARCHAR(50), CAST(iss.total_range_scan_count AS MONEY),1),N'.00',N'') + N' scans or seeks. '
+ REPLACE(CONVERT(NVARCHAR(50), CAST(iss.total_singleton_lookup_count AS MONEY), 1),N'.00',N'') + N' singleton lookups. '
+ N'OpStatsFactor=' + cast(((((iss.total_range_scan_count + iss.total_singleton_lookup_count) * iss.total_reserved_MB))/1000000.) as varchar(256)),'') as details,
isnull(i.key_column_names_with_sort_order,'N/A') as index_definition,
isnull(i.secret_columns,'') as secret_columns,
i.index_usage_summary as index_usage_summary,
iss.index_size_summary as index_size_summary
FROM #IndexSanity i
JOIN #IndexSanitySize iss on i.index_sanity_id=iss.index_sanity_id
WHERE isnull(iss.total_range_scan_count,0) > 0 or isnull(iss.total_singleton_lookup_count,0) > 0
ORDER BY ((iss.total_range_scan_count + iss.total_singleton_lookup_count) * iss.total_reserved_MB) DESC;
END
----------------------------------------
--FINISHING UP
----------------------------------------
BEGIN
INSERT #BlitzIndexResults ( check_id, findings_group, finding, URL, details, index_definition,secret_columns,
index_usage_summary, index_size_summary )
VALUES ( 1000 , N'Database ' + QUOTENAME(@DatabaseName) + N' as of ' + convert(nvarchar(16),getdate(),121) ,
N'' , N'http://www.BrentOzar.com/BlitzIndex' ,
N'Thanks from the Brent Ozar Unlimited(TM), LLC team.',
N'We hope you found this tool useful.',
N'If you need help relieving your SQL Server pains, email us at <EMAIL>.'
, N'',N''
);
END
RAISERROR(N'Returning results.', 0,1) WITH NOWAIT;
/*Return results.*/
SELECT isnull(br.findings_group,N'') +
CASE WHEN ISNULL(br.finding,N'') <> N'' THEN N': ' ELSE N'' END
+ br.finding AS [Finding],
br.URL,
br.details AS [Details: schema.table.index(indexid)],
br.index_definition AS [Definition: [Property]] ColumnName {datatype maxbytes}],
ISNULL(br.secret_columns,'') AS [Secret Columns],
br.index_usage_summary AS [Usage],
br.index_size_summary AS [Size],
COALESCE(br.more_info,sn.more_info,'') AS [More Info],
COALESCE(br.create_tsql,ts.create_tsql,'') AS [Create TSQL]
FROM #BlitzIndexResults br
LEFT JOIN #IndexSanity sn ON
br.index_sanity_id=sn.index_sanity_id
LEFT JOIN #IndexCreateTsql ts ON
br.index_sanity_id=ts.index_sanity_id
ORDER BY [check_id] ASC, blitz_result_id ASC, findings_group;
END; /* End @Mode=0 (diagnose)*/
ELSE IF @Mode=1 /*Summarize*/
BEGIN
--This mode is to give some overall stats on the database.
RAISERROR(N'@Mode=1, we are summarizing.', 0,1) WITH NOWAIT;
SELECT
CAST((COUNT(*)) AS NVARCHAR(256)) AS [Number Objects],
CAST(CAST(SUM(sz.total_reserved_MB)/
1024. AS numeric(29,1)) AS NVARCHAR(500)) AS [All GB],
CAST(CAST(SUM(sz.total_reserved_LOB_MB)/
1024. AS numeric(29,1)) AS NVARCHAR(500)) AS [LOB GB],
CAST(CAST(SUM(sz.total_reserved_row_overflow_MB)/
1024. AS numeric(29,1)) AS NVARCHAR(500)) AS [Row Overflow GB],
CAST(SUM(CASE WHEN index_id=1 THEN 1 ELSE 0 END)AS NVARCHAR(50)) AS [Clustered Tables],
CAST(SUM(CASE WHEN index_id=1 THEN sz.total_reserved_MB ELSE 0 END)
/1024. AS numeric(29,1)) AS [Clustered Tables GB],
SUM(CASE WHEN index_id NOT IN (0,1) THEN 1 ELSE 0 END) AS [NC Indexes],
CAST(SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END)
/1024. AS numeric(29,1)) AS [NC Indexes GB],
CASE WHEN SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END) > 0 THEN
CAST(SUM(CASE WHEN index_id IN (0,1) THEN sz.total_reserved_MB ELSE 0 END)
/ SUM(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END) AS NUMERIC(29,1))
ELSE 0 END AS [ratio table: NC Indexes],
SUM(CASE WHEN index_id=0 THEN 1 ELSE 0 END) AS [Heaps],
CAST(SUM(CASE WHEN index_id=0 THEN sz.total_reserved_MB ELSE 0 END)
/1024. AS numeric(29,1)) AS [Heaps GB],
SUM(CASE WHEN index_id IN (0,1) AND partition_key_column_name IS NOT NULL THEN 1 ELSE 0 END) AS [Partitioned Tables],
SUM(CASE WHEN index_id NOT IN (0,1) AND partition_key_column_name IS NOT NULL THEN 1 ELSE 0 END) AS [Partitioned NCs],
CAST(SUM(CASE WHEN partition_key_column_name IS NOT NULL THEN sz.total_reserved_MB ELSE 0 END)/1024. AS numeric(29,1)) AS [Partitioned GB],
SUM(CASE WHEN filter_definition <> '' THEN 1 ELSE 0 END) AS [Filtered Indexes],
SUM(CASE WHEN is_indexed_view=1 THEN 1 ELSE 0 END) AS [Indexed Views],
MAX(total_rows) AS [Max Row Count],
CAST(MAX(CASE WHEN index_id IN (0,1) THEN sz.total_reserved_MB ELSE 0 END)
/1024. AS numeric(29,1)) AS [Max Table GB],
CAST(MAX(CASE WHEN index_id NOT IN (0,1) THEN sz.total_reserved_MB ELSE 0 END)
/1024. AS numeric(29,1)) AS [Max NC Index GB],
SUM(CASE WHEN index_id IN (0,1) AND sz.total_reserved_MB > 1024 THEN 1 ELSE 0 END) AS [Count Tables > 1GB],
SUM(CASE WHEN index_id IN (0,1) AND sz.total_reserved_MB > 10240 THEN 1 ELSE 0 END) AS [Count Tables > 10GB],
SUM(CASE WHEN index_id IN (0,1) AND sz.total_reserved_MB > 102400 THEN 1 ELSE 0 END) AS [Count Tables > 100GB],
SUM(CASE WHEN index_id NOT IN (0,1) AND sz.total_reserved_MB > 1024 THEN 1 ELSE 0 END) AS [Count NCs > 1GB],
SUM(CASE WHEN index_id NOT IN (0,1) AND sz.total_reserved_MB > 10240 THEN 1 ELSE 0 END) AS [Count NCs > 10GB],
SUM(CASE WHEN index_id NOT IN (0,1) AND sz.total_reserved_MB > 102400 THEN 1 ELSE 0 END) AS [Count NCs > 100GB],
MIN(create_date) AS [Oldest Create Date],
MAX(create_date) AS [Most Recent Create Date],
MAX(modify_date) as [Most Recent Modify Date],
1 as [Display Order]
FROM #IndexSanity AS i
--left join here so we don't lose disabled nc indexes
LEFT JOIN #IndexSanitySize AS sz
ON i.index_sanity_id=sz.index_sanity_id
UNION ALL
SELECT N'Database ' + QUOTENAME(@DatabaseName) + N' as of ' + convert(nvarchar(16),getdate(),121) ,
N'sp_BlitzIndex(TM) v2.02 - Jan 30, 2014' ,
N'From Brent Ozar Unlimited(TM)' ,
N'http://BrentOzar.com/BlitzIndex' ,
N'Thanks from the Brent Ozar Unlimited(TM) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at <EMAIL>.',
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,0 as display_order
ORDER BY [Display Order] ASC
OPTION (RECOMPILE);
END /* End @Mode=1 (summarize)*/
ELSE IF @Mode=2 /*Index Detail*/
BEGIN
--This mode just spits out all the detail without filters.
--This supports slicing AND dicing in Excel
RAISERROR(N'@Mode=2, here''s the details on existing indexes.', 0,1) WITH NOWAIT;
SELECT database_name AS [Database Name],
[schema_name] AS [Schema Name],
[object_name] AS [Object Name],
ISNULL(index_name, '') AS [Index Name],
cast(index_id as VARCHAR(10))AS [Index ID],
schema_object_indexid AS [Details: schema.table.index(indexid)],
CASE WHEN index_id IN ( 1, 0 ) THEN 'TABLE'
ELSE 'NonClustered'
END AS [Object Type],
index_definition AS [Definition: [Property]] ColumnName {datatype maxbytes}],
ISNULL(LTRIM(key_column_names_with_sort_order), '') AS [Key Column Names With Sort],
ISNULL(count_key_columns, 0) AS [Count Key Columns],
ISNULL(include_column_names, '') AS [Include Column Names],
ISNULL(count_included_columns,0) AS [Count Included Columns],
ISNULL(secret_columns,'') AS [Secret Column Names],
ISNULL(count_secret_columns,0) AS [Count Secret Columns],
ISNULL(partition_key_column_name, '') AS [Partition Key Column Name],
ISNULL(filter_definition, '') AS [Filter Definition],
is_indexed_view AS [Is Indexed View],
is_primary_key AS [Is Primary Key],
is_XML AS [Is XML],
is_spatial AS [Is Spatial],
is_NC_columnstore AS [Is NC Columnstore],
is_CX_columnstore AS [Is CX Columnstore],
is_disabled AS [Is Disabled],
is_hypothetical AS [Is Hypothetical],
is_padded AS [Is Padded],
fill_factor AS [Fill Factor],
is_referenced_by_foreign_key AS [Is Reference by Foreign Key],
last_user_seek AS [Last User Seek],
last_user_scan AS [Last User Scan],
last_user_lookup AS [Last User Lookup],
last_user_update AS [Last User Update],
total_reads AS [Total Reads],
user_updates AS [User Updates],
reads_per_write AS [Reads Per Write],
index_usage_summary AS [Index Usage],
sz.partition_count AS [Partition Count],
sz.total_rows AS [Rows],
sz.total_reserved_MB AS [Reserved MB],
sz.total_reserved_LOB_MB AS [Reserved LOB MB],
sz.total_reserved_row_overflow_MB AS [Reserved Row Overflow MB],
sz.index_size_summary AS [Index Size],
sz.total_row_lock_count AS [Row Lock Count],
sz.total_row_lock_wait_count AS [Row Lock Wait Count],
sz.total_row_lock_wait_in_ms AS [Row Lock Wait ms],
sz.avg_row_lock_wait_in_ms AS [Avg Row Lock Wait ms],
sz.total_page_lock_count AS [Page Lock Count],
sz.total_page_lock_wait_count AS [Page Lock Wait Count],
sz.total_page_lock_wait_in_ms AS [Page Lock Wait ms],
sz.avg_page_lock_wait_in_ms AS [Avg Page Lock Wait ms],
sz.total_index_lock_promotion_attempt_count AS [Lock Escalation Attempts],
sz.total_index_lock_promotion_count AS [Lock Escalations],
sz.data_compression_desc AS [Data Compression],
i.create_date AS [Create Date],
i.modify_date as [Modify Date],
more_info AS [More Info],
1 as [Display Order]
FROM #IndexSanity AS i --left join here so we don't lose disabled nc indexes
LEFT JOIN #IndexSanitySize AS sz ON i.index_sanity_id = sz.index_sanity_id
UNION ALL
SELECT N'Database ' + QUOTENAME(@DatabaseName) + N' as of ' + convert(nvarchar(16),getdate(),121)
N'sp_BlitzIndex(TM) v2.02 - Jan 30, 2014' ,
N'From Brent Ozar Unlimited(TM)' ,
N'http://BrentOzar.com/BlitzIndex' ,
N'Thanks from the Brent Ozar Unlimited(TM) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at <EMAIL>.',
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL, NULL,NULL, NULL, NULL, NULL, NULL,NULL,NULL,
0 as [Display Order]
ORDER BY [Display Order] ASC, [Reserved MB] DESC
OPTION (RECOMPILE);
END /* End @Mode=2 (index detail)*/
ELSE IF @Mode=3 /*Missing index Detail*/
BEGIN
SELECT
database_name AS [Database],
[schema_name] AS [Schema],
table_name AS [Table],
CAST(magic_benefit_number AS BIGINT)
AS [Magic Benefit Number],
missing_index_details AS [Missing Index Details],
avg_total_user_cost AS [Avg Query Cost],
avg_user_impact AS [Est Index Improvement],
user_seeks AS [Seeks],
user_scans AS [Scans],
unique_compiles AS [Compiles],
equality_columns AS [Equality Columns],
inequality_columns AS [Inequality Columns],
included_columns AS [Included Columns],
index_estimated_impact AS [Estimated Impact],
create_tsql AS [Create TSQL],
more_info AS [More Info],
1 as [Display Order]
FROM #MissingIndexes
UNION ALL
SELECT
N'sp_BlitzIndex(TM) v2.02 - Jan 30, 2014' ,
N'From Brent Ozar Unlimited(TM)' ,
N'http://BrentOzar.com/BlitzIndex' ,
100000000000,
N'Thanks from the Brent Ozar Unlimited(TM) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at <EMAIL>.',
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL, 0 as display_order
ORDER BY [Display Order] ASC, [Magic Benefit Number] DESC
END /* End @Mode=3 (index detail)*/
END
END TRY
BEGIN CATCH
RAISERROR (N'Failure analyzing temp tables.', 0,1) WITH NOWAIT;
SELECT @msg = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(), @ErrorState = ERROR_STATE();
RAISERROR (@msg,
@ErrorSeverity,
@ErrorState
);
WHILE @@trancount > 0
ROLLBACK;
RETURN;
END CATCH;
GO
|
<filename>scripts/create/create_role_insert_all_tables.sql
--Criando o ROLE
CREATE ROLE proj_sqm_insert_all NOINHERIT;
--Garantindo acesso ao schema sqm
GRANT USAGE ON SCHEMA sqm TO proj_sqm_insert_all;
--Garantindo SELECT em todas as tabelas
GRANT INSERT ON ALL TABLES IN SCHEMA sqm TO proj_sqm_insert_all; |
<gh_stars>0
USE Backbone;
DROP PROCEDURE IF EXISTS GetTopicsForEntities;
DELIMITER //
CREATE PROCEDURE GetTopicsForEntities
(
IN EntityType VARCHAR(20),
IN entityIdArray VARCHAR(250)
)
BEGIN
#call DebugLog(ComponentId);
SELECT entities.Topic, entities.PartitionNo, topicDetails.Compacted
FROM MessagingEntities entities
LEFT JOIN MessagingTopicDetails topicDetails ON
entities.TypeName = EntityType AND FIND_IN_SET(entities.TypeValue, entityIdArray) AND entities.Topic = topicDetails.Topic;
END //
DELIMITER ;
|
-- An asynchronous job queue schema for ACID compliant job creation through
-- triggers/functions/etc.
--
-- Author: <NAME> <<EMAIL>>
-- License: MIT
-- URL: https://gist.github.com/benjie/839740697f5a1c46ee8da98a1efac218
-- Donate: https://patreon.com/benjie
CREATE SCHEMA app_jobs;
CREATE TABLE app_jobs.job_queues (
queue_name varchar NOT NULL PRIMARY KEY,
job_count int DEFAULT 0 NOT NULL,
locked_at timestamp with time zone,
locked_by varchar
);
ALTER TABLE app_jobs.job_queues ENABLE ROW LEVEL SECURITY;
CREATE TABLE app_jobs.jobs (
id serial PRIMARY KEY,
queue_name varchar DEFAULT (public.gen_random_uuid())::varchar NOT NULL,
task_identifier varchar NOT NULL,
payload jsonb DEFAULT '{}'::jsonb NOT NULL,
priority int DEFAULT 0 NOT NULL,
run_at timestamp with time zone DEFAULT now() NOT NULL,
attempts int DEFAULT 0 NOT NULL,
last_error varchar,
created_at timestamp with time zone NOT NULL DEFAULT NOW(),
updated_at timestamp with time zone NOT NULL DEFAULT NOW()
);
ALTER TABLE app_jobs.job_queues ENABLE ROW LEVEL SECURITY;
CREATE FUNCTION app_jobs.do_notify() RETURNS trigger AS $$
BEGIN
-- This is a STATEMENT trigger, so we do not have access to the individual
-- rows.
PERFORM pg_notify(TG_ARGV[0], '');
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
COMMENT ON FUNCTION app_jobs.do_notify() IS E'Performs pg_notify passing the first argument as the topic.';
CREATE FUNCTION app_jobs.update_timestamps() RETURNS trigger AS $$
BEGIN
IF TG_OP = 'INSERT' THEN
NEW.created_at = NOW();
NEW.updated_at = NOW();
ELSIF TG_OP = 'UPDATE' THEN
NEW.created_at = OLD.created_at;
NEW.updated_at = GREATEST(NOW(), OLD.updated_at + INTERVAL '1 millisecond');
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
COMMENT ON FUNCTION app_jobs.update_timestamps() IS E'Ensures that created_at, updated_at are monotonically increasing.';
CREATE FUNCTION app_jobs.jobs__decrease_job_queue_count() RETURNS trigger AS $$
BEGIN
UPDATE app_jobs.job_queues
SET job_count = job_queues.job_count - 1
WHERE queue_name = OLD.queue_name
AND job_queues.job_count > 1;
IF NOT FOUND THEN
DELETE FROM app_jobs.job_queues WHERE queue_name = OLD.queue_name;
END IF;
RETURN OLD;
END;
$$ LANGUAGE plpgsql SET search_path FROM CURRENT;
CREATE FUNCTION app_jobs.jobs__increase_job_queue_count() RETURNS trigger AS $$
BEGIN
INSERT INTO app_jobs.job_queues(queue_name, job_count)
VALUES(NEW.queue_name, 1)
ON CONFLICT (queue_name) DO UPDATE SET job_count = job_queues.job_count + 1;
RETURN NEW;
END;
$$ LANGUAGE plpgsql SET search_path FROM CURRENT;
CREATE TRIGGER _100_timestamps BEFORE INSERT OR UPDATE ON app_jobs.jobs FOR EACH ROW EXECUTE PROCEDURE app_jobs.update_timestamps();
CREATE TRIGGER _500_increase_job_queue_count AFTER INSERT ON app_jobs.jobs FOR EACH ROW EXECUTE PROCEDURE app_jobs.jobs__increase_job_queue_count();
CREATE TRIGGER _500_increase_job_queue_count_update AFTER UPDATE ON app_jobs.jobs FOR EACH ROW WHEN (NEW.queue_name IS DISTINCT FROM OLD.queue_name) EXECUTE PROCEDURE app_jobs.jobs__increase_job_queue_count();
CREATE TRIGGER _500_decrease_job_queue_count_update AFTER UPDATE ON app_jobs.jobs FOR EACH ROW WHEN (NEW.queue_name IS DISTINCT FROM OLD.queue_name) EXECUTE PROCEDURE app_jobs.jobs__decrease_job_queue_count();
CREATE TRIGGER _500_decrease_job_queue_count BEFORE DELETE ON app_jobs.jobs FOR EACH ROW EXECUTE PROCEDURE app_jobs.jobs__decrease_job_queue_count();
CREATE TRIGGER _900_notify_worker AFTER INSERT ON app_jobs.jobs FOR EACH STATEMENT EXECUTE PROCEDURE app_jobs.do_notify('jobs:insert');
CREATE FUNCTION app_jobs.add_job(
identifier varchar,
payload jsonb,
queue_name varchar default (public.gen_random_uuid())::varchar,
run_at timestamptz default now()
) RETURNS app_jobs.jobs AS $$
INSERT INTO app_jobs.jobs(task_identifier, payload, queue_name, run_at)
VALUES(identifier, payload, queue_name, run_at)
RETURNING *;
$$ LANGUAGE sql STRICT SET search_path FROM CURRENT;
CREATE FUNCTION app_jobs.complete_job(worker_id varchar, job_id int) RETURNS app_jobs.jobs AS $$
DECLARE
v_row app_jobs.jobs;
BEGIN
DELETE FROM app_jobs.jobs
WHERE id = job_id
RETURNING * INTO v_row;
UPDATE app_jobs.job_queues
SET locked_by = null, locked_at = null
WHERE queue_name = v_row.queue_name AND locked_by = worker_id;
RETURN v_row;
END;
$$ LANGUAGE plpgsql STRICT SET search_path FROM CURRENT;
CREATE FUNCTION app_jobs.fail_job(worker_id varchar, job_id int, error_message varchar) RETURNS app_jobs.jobs AS $$
DECLARE
v_row app_jobs.jobs;
BEGIN
UPDATE app_jobs.jobs
SET
last_error = error_message,
run_at = greatest(now(), run_at) + (exp(least(attempts, 10))::text || ' seconds')::interval
WHERE id = job_id
RETURNING * INTO v_row;
UPDATE app_jobs.job_queues
SET locked_by = null, locked_at = null
WHERE queue_name = v_row.queue_name AND locked_by = worker_id;
RETURN v_row;
END;
$$ LANGUAGE plpgsql STRICT SET search_path FROM CURRENT;
CREATE FUNCTION app_jobs.get_job(worker_id varchar, identifiers varchar[]) RETURNS app_jobs.jobs AS $$
DECLARE
v_job_id int;
v_queue_name varchar;
v_default_job_expiry text = (4 * 60 * 60)::text;
v_default_job_maximum_attempts text = '25';
v_row app_jobs.jobs;
BEGIN
IF worker_id IS NULL OR length(worker_id) < 10 THEN
RAISE EXCEPTION 'Invalid worker ID';
END IF;
SELECT job_queues.queue_name, jobs.id INTO v_queue_name, v_job_id
FROM app_jobs.job_queues
INNER JOIN app_jobs.jobs USING (queue_name)
WHERE (locked_at IS NULL OR locked_at < (now() - (COALESCE(current_setting('jobs.expiry', true), v_default_job_expiry) || ' seconds')::interval))
AND run_at <= now()
AND attempts < COALESCE(current_setting('jobs.maximum_attempts', true), v_default_job_maximum_attempts)::int
AND (identifiers IS NULL OR task_identifier = any(identifiers))
ORDER BY priority ASC, run_at ASC, id ASC
LIMIT 1
FOR UPDATE SKIP LOCKED;
IF v_queue_name IS NULL THEN
RETURN NULL;
END IF;
UPDATE app_jobs.job_queues
SET
locked_by = worker_id,
locked_at = now()
WHERE job_queues.queue_name = v_queue_name;
UPDATE app_jobs.jobs
SET attempts = attempts + 1
WHERE id = v_job_id
RETURNING * INTO v_row;
RETURN v_row;
END;
$$ LANGUAGE plpgsql STRICT SET search_path FROM CURRENT;
|
DELETE FROM diagrams.activity;
DELETE FROM diagrams.architecture_model_deploymentnodes;
DELETE FROM diagrams.attribute;
DELETE FROM diagrams.batchprocessing;
DELETE FROM diagrams.bulkprocessing;
DELETE FROM diagrams.concurrency;
DELETE FROM diagrams.connector;
DELETE FROM diagrams.connecttrigger;
DELETE FROM diagrams."constraint";
DELETE FROM diagrams.constraint_activities;
DELETE FROM diagrams.constraint_batchprocessing;
DELETE FROM diagrams.constraint_bulkprocessing;
DELETE FROM diagrams.constraint_concurrency;
DELETE FROM diagrams.constraint_database;
DELETE FROM diagrams.constraint_filetransfer;
DELETE FROM diagrams.constraint_rate;
DELETE FROM diagrams.container_components;
DELETE FROM diagrams.database;
DELETE FROM diagrams.deploymentnode_containerinstances;
DELETE FROM diagrams.taggable_ranks;
DELETE FROM diagrams.rank;
DELETE FROM diagrams.element_featureids;
DELETE FROM diagrams.element_properties;
DELETE FROM diagrams.entity_attributes;
DELETE FROM diagrams.feature_incoming_constraint;
DELETE FROM diagrams.feature_outgoing_constraint;
DELETE FROM diagrams.filetransfer;
DELETE FROM diagrams.flowchart_model_flowcharts;
DELETE FROM diagrams.gantt_model_gantts;
DELETE FROM diagrams.item_can_be_connected_from_ids;
DELETE FROM diagrams.item_can_be_connected_to_ids;
DELETE FROM diagrams.item_children_ids;
DELETE FROM diagrams.item_relationships;
DELETE FROM diagrams.lane_activities;
DELETE FROM diagrams.measurable;
DELETE FROM diagrams.metadata;
DELETE FROM diagrams.metadata_collaborators;
DELETE FROM diagrams.metadata_relatedwith;
DELETE FROM diagrams.metadata_responsibles;
DELETE FROM diagrams.metadata_usedin;
DELETE FROM diagrams.metadata_views;
DELETE FROM diagrams.model_classes;
DELETE FROM diagrams.model_entities;
DELETE FROM diagrams.model_pools;
DELETE FROM diagrams.pool_lanes;
DELETE FROM diagrams.range;
DELETE FROM diagrams.rate;
DELETE FROM diagrams.sequence_model_sequences;
DELETE FROM diagrams.taggable_cloned_by_ids;
DELETE FROM diagrams.umlclass_fields;
DELETE FROM diagrams.umlclass_methods;
DELETE FROM diagrams.umlfield;
DELETE FROM diagrams.umlmethod;
DELETE FROM diagrams.umlmethod_parameters;
DELETE FROM diagrams.umlparameter;
DELETE FROM diagrams.system_containers;
DELETE FROM diagrams.elementrole;
DELETE FROM diagrams.architecture_model_components;
DELETE FROM diagrams.architecture_model_containers;
DELETE FROM diagrams.architecture_model_systems;
DELETE FROM diagrams.architecture_model_layers;
DELETE FROM diagrams.layer_systems;
DELETE FROM diagrams.layer_containers;
DELETE FROM diagrams.layer_components;
DELETE FROM diagrams.system_systems;
DELETE FROM diagrams.system_containers;
DELETE FROM diagrams.system_components;
DELETE FROM diagrams.container_containers;
DELETE FROM diagrams.models;
DELETE FROM diagrams.compositeelement;
DELETE FROM diagrams.image;
DELETE FROM diagrams.shape_color_schemes;
DELETE FROM diagrams.shape;
DELETE FROM diagrams.point;
DELETE FROM diagrams.shape;
DELETE FROM diagrams.diagram_type_element_shapes;
DELETE FROM diagrams.element_shape_color_schemes;
DELETE FROM diagrams.elementshape;
DELETE FROM meta.metainfo_history_ids CASCADE;
DELETE FROM meta.metainfo CASCADE;
DELETE FROM meta.history CASCADE;
DELETE FROM meta.account_roles CASCADE;
DELETE FROM meta.role CASCADE;
DELETE FROM meta.version CASCADE;
DELETE FROM meta.view CASCADE;
DELETE FROM meta.avatar CASCADE; |
<gh_stars>1-10
with base as (
select *
from {{ ref('stg_snapchat__ad_hourly_report_tmp') }}
),
fields as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_snapchat__ad_hourly_report_tmp')),
staging_columns=get_ad_hourly_report_columns()
)
}}
from base
),
final as (
select
ad_id,
date as date_hour,
impressions,
(spend / 1000000.0) as spend,
swipes
from fields
)
select * from final
|
/*
新增物流大屏和数据集
*/
use aj_report_init;
drop table if exists `aj_report_common2`;
CREATE TABLE `aj_report_common2` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) DEFAULT NULL,
`nums` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
INSERT INTO `aj_report_init`.`aj_report_common2`(`name`, `nums`) VALUES ('上海', 200);
INSERT INTO `aj_report_init`.`aj_report_common2`(`name`, `nums`) VALUES ('北京', 100);
INSERT INTO `aj_report_init`.`aj_report_common2`(`name`, `nums`) VALUES ('西安', 70);
INSERT INTO `aj_report_init`.`aj_report_common2`(`name`, `nums`) VALUES ('河南', 50);
INSERT INTO `aj_report_init`.`aj_report_common2`(`name`, `nums`) VALUES ('武汉', 20);
drop table if exists `aj_report_common3`;
CREATE TABLE `aj_report_common3` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`time` varchar(255) DEFAULT NULL,
`collect` int(11) DEFAULT NULL,
`start` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('1月', 10, 8);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('2月', 15, 12);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('3月', 20, 22);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('4月', 30, 28);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('5月', 28, 35);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('6月', 40, 38);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('7月', 80, 100);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('8月', 90, 120);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('9月', 65, 89);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('10月', 50, 50);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('11月', 35, 34);
INSERT INTO `aj_report_init`.`aj_report_common3`(`time`, `collect`, `start`) VALUES ('12月', 27, 23);
drop table if exists `aj_report_table`;
CREATE TABLE `aj_report_table` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`date` date DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`address` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-01', '上汽安吉', 'A00000001', '这是一条测试表格事件1');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-02', '上汽大通', 'A00000002', '这是一条测试表格事件2');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-03', '上汽智行', 'A00000003', '这是一条测试表格事件3');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-04', '上汽国际', 'A00000004', '这是一条测试表格事件4');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-05', '上汽国内', 'A00000005', '这是一条测试表格事件5');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-06', '上汽运输', 'A00000006', '这是一条测试表格事件6');
INSERT INTO `aj_report_init`.`aj_report_table`(`date`, `name`, `code`, `address`) VALUES ('2021-05-07', '上汽大众', 'A00000007', '这是一条测试表格事件7');
drop table if exists `aj_report_nums`;
CREATE TABLE `aj_report_nums` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`inter` int(11) DEFAULT NULL,
`doub` double DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
INSERT INTO `aj_report_init`.`aj_report_nums`(`inter`, `doub`) VALUES (18, NULL);
INSERT INTO `aj_report_init`.`aj_report_nums`(`inter`, `doub`) VALUES (NULL, 55.33);
use aj_report;
INSERT INTO `aj_report`.`gaea_report`( `report_name`, `report_code`, `report_group`, `report_type`, `report_image`, `report_desc`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('物流大屏1', 'logistics_one', NULL, 'report_screen', '', '', 1, 0, 'admin', now(), 'admin', now(), 2);
INSERT INTO `aj_report`.`gaea_report_dashboard`(`report_code`, `title`, `width`, `height`, `background_color`, `background_image`, `preset_line`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', '大屏', 1920, 1080, '', 'https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b', NULL, NULL, 1, 0, 0, 'admin', now(), 'admin', now(), 30);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"startRotate\":false,\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":18,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"transparency\":100,\"marginBottom\":10,\"layerName\":\"图片\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{}', '', '{\"top\":729,\"left\":5,\"width\":530,\"index\":0,\"height\":345}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border3@2x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":5},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":729},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":530},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":345}]}', NULL, 1, 0, 1, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"startRotate\":false,\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":18,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"transparency\":100,\"marginBottom\":10,\"layerName\":\"图片\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{}', '', '{\"top\":368,\"left\":5,\"width\":530,\"index\":0,\"height\":355}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border3@2x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":5},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":368},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":530},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":355}]}', NULL, 1, 0, 2, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"startRotate\":false,\"titleText\":\"\",\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":18,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@1x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"transparency\":100,\"marginBottom\":10,\"layerName\":\"图片\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{}', '', '{\"top\":13,\"left\":5,\"width\":530,\"index\":0,\"height\":350}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border3@1x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":5},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":13},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":530},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":350}]}', NULL, 1, 0, 3, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-barchart', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"startRotate\":false,\"titleText\":\"\",\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":11,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"background\":\"\",\"transparency\":100,\"marginBottom\":10,\"layerName\":\"柱状图\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#97D0D0\"},{\"color\":\"#87cefa\"},{\"color\":\"#7BF3F5\"},{\"color\":\"#8AF9FB\"},{\"color\":\"#F59A79\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{\"dynamicData\":{\"chartProperties\":{\"name\":\"xAxis\",\"nums\":\"bar\"},\"setCode\":\"logis_1\",\"chartType\":\"widget-barchart\",\"contextData\":{}},\"dataType\":\"dynamicData\",\"refreshTime\":5000,\"staticData\":\"{\\\"categories\\\": [\\\"苹果\\\",\\\"三星\\\",\\\"小米\\\",\\\"oppo\\\",\\\"vivo\\\"],\\\"series\\\": [{\\\"name\\\": \\\"手机品牌\\\",\\\"data\\\": [1000,2229,3879,2379,4079]}]}\"}', '', '{\"top\":75,\"left\":9,\"width\":525,\"index\":2,\"height\":282}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"dynamicData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"{\\\"categories\\\": [\\\"苹果\\\",\\\"三星\\\",\\\"小米\\\",\\\"oppo\\\",\\\"vivo\\\"],\\\"series\\\": [{\\\"name\\\": \\\"手机品牌\\\",\\\"data\\\": [1000,2229,3879,2379,4079]}]}\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-barchart\",\"value\":{\"chartProperties\":{\"name\":\"xAxis\",\"nums\":\"bar\"},\"setCode\":\"logis_1\",\"chartType\":\"widget-barchart\",\"contextData\":{}}}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"柱状图\"},{\"type\":\"el-switch\",\"label\":\"竖展示\",\"name\":\"verticalShow\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},[{\"name\":\"柱体设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"最大宽度\",\"name\":\"maxWidth\",\"required\":false,\"placeholder\":\"\",\"value\":11},{\"type\":\"el-slider\",\"label\":\"圆角\",\"name\":\"radius\",\"require\":false,\"placeholder\":\"\",\"value\":9},{\"type\":\"el-slider\",\"label\":\"最小高度\",\"name\":\"minHeight\",\"require\":false,\"placeholder\":\"\",\"value\":5}]},{\"name\":\"标题设置\",\"list\":[{\"type\":\"el-switch\",\"label\":\"标题\",\"name\":\"isNoTitle\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-input-text\",\"label\":\"标题\",\"name\":\"titleText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"textColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#FFD700\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"textFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"textFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20},{\"type\":\"el-select\",\"label\":\"字体位置\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"},{\"type\":\"el-input-text\",\"label\":\"副标题\",\"name\":\"subText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"subTextColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-text\",\"label\":\"字体粗细\",\"name\":\"subTextFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"subTextFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20}]},{\"name\":\"X轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"xName\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"hideX\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"xNameColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"xNameFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"el-slider\",\"label\":\"文字角度\",\"name\":\"textAngle\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-input-number\",\"label\":\"文字间隔\",\"name\":\"textInterval\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalX\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"Xcolor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeX\",\"required\":false,\"placeholder\":\"\",\"value\":18},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineX\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"Y轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"textNameY\",\"require\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"isShowY\",\"require\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"NameColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"NameFontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalY\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"colorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineY\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"数值设定\",\"list\":[{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"isShow\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":14},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"subTextColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"}]},{\"name\":\"提示语设置\",\"list\":[{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lineColor\",\"required\":false,\"placeholder\":\"\"}]},{\"name\":\"坐标轴边距设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"左边距(像素)\",\"name\":\"marginLeft\",\"required\":false,\"placeholder\":\"\",\"value\":10},{\"type\":\"el-slider\",\"label\":\"顶边距(像素)\",\"name\":\"marginTop\",\"required\":false,\"placeholder\":\"\",\"value\":50},{\"type\":\"el-slider\",\"label\":\"右边距(像素)\",\"name\":\"marginRight\",\"required\":false,\"placeholder\":\"\",\"value\":40},{\"type\":\"el-slider\",\"label\":\"底边距(像素)\",\"name\":\"marginBottom\",\"required\":false,\"placeholder\":\"\",\"value\":10}]},{\"name\":\"图例操作\",\"list\":[{\"type\":\"el-switch\",\"label\":\"图例\",\"name\":\"isShowLegend\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lengedColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"lengedFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"el-input-number\",\"label\":\"图例宽度\",\"name\":\"lengedWidth\",\"required\":false,\"placeholder\":\"\",\"value\":15},{\"type\":\"el-select\",\"label\":\"横向位置\",\"name\":\"lateralPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"纵向位置\",\"name\":\"longitudinalPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"top\",\"name\":\"顶部\"},{\"code\":\"bottom\",\"name\":\"底部\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"布局前置\",\"name\":\"layoutFront\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"vertical\",\"name\":\"竖排\"},{\"code\":\"horizontal\",\"name\":\"横排\"}],\"value\":\"\"}]},{\"name\":\"自定义配色\",\"list\":[{\"type\":\"customColor\",\"label\":\"\",\"name\":\"customColor\",\"required\":false,\"value\":[{\"color\":\"#97D0D0\"},{\"color\":\"#87cefa\"},{\"color\":\"#7BF3F5\"},{\"color\":\"#8AF9FB\"},{\"color\":\"#F59A79\"}]}]}]],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":9},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":75},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":525},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":282}]}', NULL, 1, 0, 4, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-map', '{\"layerName\":\"迁徙图\"}', '{}', '', '{\"top\":97,\"left\":542,\"width\":835,\"index\":2,\"height\":625}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"迁徙图\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":542},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":97},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":835},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":625}]}', NULL, 1, 0, 5, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"startRotate\":false,\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":18,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"transparency\":100,\"marginBottom\":10,\"layerName\":\"图片\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{}', '', '{\"top\":730,\"left\":1384,\"width\":530,\"index\":3,\"height\":345}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border3@2x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":1384},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":730},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":530},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":345}]}', NULL, 1, 0, 6, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":5,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"startRotate\":false,\"layoutFront\":\"\",\"radius\":9,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":18,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"transparency\":100,\"marginBottom\":10,\"layerName\":\"图片\",\"hideX\":true,\"verticalShow\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":16,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{}', '', '{\"top\":10,\"left\":1386,\"width\":530,\"index\":4,\"height\":345}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border3@2x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":1386},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":10},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":530},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":345}]}', NULL, 1, 0, 7, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-image', '{\"imageAdress\":\"https://report.anji-plus.com/file/download/border8@1x\",\"backgroundColor\":\"\",\"borderRadius\":0,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"startRotate\":false,\"transparency\":100,\"width\":1920,\"layerName\":\"图片\",\"title\":\"大屏\",\"height\":1080}', '{}', '', '{\"top\":731,\"left\":541,\"width\":839,\"index\":7,\"height\":344}', '{\"data\":[],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"图片\"},{\"type\":\"el-switch\",\"label\":\"开启旋转\",\"name\":\"startRotate\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"el-slider\",\"label\":\"透明度\",\"name\":\"transparency\",\"required\":false,\"placeholder\":\"\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"圆角\",\"name\":\"borderRadius\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"custom-upload\",\"label\":\"图片地址\",\"name\":\"imageAdress\",\"required\":false,\"placeholder\":\"\",\"value\":\"https://report.anji-plus.com/file/download/border8@1x\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":541},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":731},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":839},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":344}]}', NULL, 1, 0, 8, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-text', '{\"backgroundColor\":\"\",\"color\":\"rgba(0, 206, 209, 1)\",\"textAlign\":\"center\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"letterSpacing\":0,\"title\":\"大屏\",\"background\":\"rgba(115,170,229,.0)\",\"width\":1920,\"fontSize\":36,\"layerName\":\"文本框\",\"text\":\"实时库存TOP5\",\"fontWeight\":\"normal\",\"height\":1080}', '{\"dataType\":\"staticData\",\"refreshTime\":5000,\"staticData\":\"文本框\"}', '', '{\"top\":19,\"left\":157,\"width\":228,\"index\":8,\"height\":52}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"staticData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"文本框\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-text\",\"value\":\"\"}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"文本框\"},{\"type\":\"el-input-text\",\"label\":\"文本内容\",\"name\":\"text\",\"required\":false,\"placeholder\":\"\",\"value\":\"实时库存TOP5\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":36},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"color\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(0, 206, 209, 1)\"},{\"type\":\"el-input-number\",\"label\":\"字体间距\",\"name\":\"letterSpacing\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"字体背景\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(115,170,229,.0)\"},{\"type\":\"el-select\",\"label\":\"文字粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-select\",\"label\":\"对齐方式\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":157},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":19},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":228},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":52}]}', NULL, 1, 0, 9, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-barchart', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":false,\"reversalX\":false,\"minHeight\":0,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"startRotate\":false,\"titleText\":\"\",\"layoutFront\":\"\",\"text\":\"实时库存TOP5\",\"radius\":7,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":16,\"imageAdress\":\"https://report.anji-plus.com/file/download/border3@2x\",\"textAlign\":\"center\",\"subTextColor\":\"#fff\",\"textColor\":\"#FFD700\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"borderRadius\":0,\"background\":\"\",\"transparency\":100,\"marginBottom\":10,\"layerName\":\"柱状图\",\"hideX\":true,\"verticalShow\":false,\"color\":\"rgba(0, 206, 209, 1)\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"fontSizeY\":18,\"fontSizeX\":18,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"letterSpacing\":0,\"NameFontSizeY\":12,\"isShow\":true,\"textFontSize\":20,\"customColor\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{\"dynamicData\":{\"chartProperties\":{\"name\":\"xAxis\",\"nums\":\"bar\"},\"setCode\":\"logis_2\",\"chartType\":\"widget-barchart\",\"contextData\":{}},\"dataType\":\"dynamicData\",\"refreshTime\":5000,\"staticData\":\"{\\\"categories\\\": [\\\"苹果\\\",\\\"三星\\\",\\\"小米\\\",\\\"oppo\\\",\\\"vivo\\\"],\\\"series\\\": [{\\\"name\\\": \\\"手机品牌\\\",\\\"data\\\": [1000,2229,3879,2379,4079]}]}\"}', '', '{\"top\":434,\"left\":7,\"width\":525,\"height\":287}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"dynamicData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"{\\\"categories\\\": [\\\"苹果\\\",\\\"三星\\\",\\\"小米\\\",\\\"oppo\\\",\\\"vivo\\\"],\\\"series\\\": [{\\\"name\\\": \\\"手机品牌\\\",\\\"data\\\": [1000,2229,3879,2379,4079]}]}\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-barchart\",\"value\":{\"chartProperties\":{\"name\":\"xAxis\",\"nums\":\"bar\"},\"setCode\":\"logis_2\",\"chartType\":\"widget-barchart\",\"contextData\":{}}}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"柱状图\"},{\"type\":\"el-switch\",\"label\":\"竖展示\",\"name\":\"verticalShow\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},[{\"name\":\"柱体设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"最大宽度\",\"name\":\"maxWidth\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"el-slider\",\"label\":\"圆角\",\"name\":\"radius\",\"require\":false,\"placeholder\":\"\",\"value\":7},{\"type\":\"el-slider\",\"label\":\"最小高度\",\"name\":\"minHeight\",\"require\":false,\"placeholder\":\"\",\"value\":0}]},{\"name\":\"标题设置\",\"list\":[{\"type\":\"el-switch\",\"label\":\"标题\",\"name\":\"isNoTitle\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-input-text\",\"label\":\"标题\",\"name\":\"titleText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"textColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#FFD700\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"textFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"textFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20},{\"type\":\"el-select\",\"label\":\"字体位置\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"},{\"type\":\"el-input-text\",\"label\":\"副标题\",\"name\":\"subText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"subTextColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-text\",\"label\":\"字体粗细\",\"name\":\"subTextFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"subTextFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20}]},{\"name\":\"X轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"xName\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"hideX\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"xNameColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"xNameFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"el-slider\",\"label\":\"文字角度\",\"name\":\"textAngle\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-input-number\",\"label\":\"文字间隔\",\"name\":\"textInterval\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalX\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"Xcolor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeX\",\"required\":false,\"placeholder\":\"\",\"value\":18},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineX\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"Y轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"textNameY\",\"require\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"isShowY\",\"require\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"NameColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"NameFontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalY\",\"required\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"colorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":18},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineY\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"数值设定\",\"list\":[{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"isShow\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":14},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"subTextColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"}]},{\"name\":\"提示语设置\",\"list\":[{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lineColor\",\"required\":false,\"placeholder\":\"\"}]},{\"name\":\"坐标轴边距设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"左边距(像素)\",\"name\":\"marginLeft\",\"required\":false,\"placeholder\":\"\",\"value\":10},{\"type\":\"el-slider\",\"label\":\"顶边距(像素)\",\"name\":\"marginTop\",\"required\":false,\"placeholder\":\"\",\"value\":50},{\"type\":\"el-slider\",\"label\":\"右边距(像素)\",\"name\":\"marginRight\",\"required\":false,\"placeholder\":\"\",\"value\":40},{\"type\":\"el-slider\",\"label\":\"底边距(像素)\",\"name\":\"marginBottom\",\"required\":false,\"placeholder\":\"\",\"value\":10}]},{\"name\":\"图例操作\",\"list\":[{\"type\":\"el-switch\",\"label\":\"图例\",\"name\":\"isShowLegend\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lengedColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"lengedFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"el-input-number\",\"label\":\"图例宽度\",\"name\":\"lengedWidth\",\"required\":false,\"placeholder\":\"\",\"value\":15},{\"type\":\"el-select\",\"label\":\"横向位置\",\"name\":\"lateralPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"纵向位置\",\"name\":\"longitudinalPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"top\",\"name\":\"顶部\"},{\"code\":\"bottom\",\"name\":\"底部\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"布局前置\",\"name\":\"layoutFront\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"vertical\",\"name\":\"竖排\"},{\"code\":\"horizontal\",\"name\":\"横排\"}],\"value\":\"\"}]},{\"name\":\"自定义配色\",\"list\":[{\"type\":\"customColor\",\"label\":\"\",\"name\":\"customColor\",\"required\":false,\"value\":[{\"color\":\"#ff7f50\"},{\"color\":\"#87cefa\"},{\"color\":\"#da70d6\"},{\"color\":\"#32cd32\"},{\"color\":\"#6495ed\"}]}]}]],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":7},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":434},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":525},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":287}]}', NULL, 1, 0, 10, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-text', '{\"backgroundColor\":\"\",\"color\":\"rgba(0, 206, 209, 1)\",\"textAlign\":\"center\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"letterSpacing\":0,\"title\":\"大屏\",\"background\":\"rgba(115,170,229,.0)\",\"width\":1920,\"fontSize\":36,\"layerName\":\"文本框\",\"text\":\"收车量TOP5\",\"fontWeight\":\"normal\",\"height\":1080}', '{\"dataType\":\"staticData\",\"refreshTime\":5000,\"staticData\":\"文本框\"}', '', '{\"top\":373,\"left\":151,\"width\":239,\"index\":10,\"height\":55}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"staticData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"文本框\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-text\",\"value\":\"\"}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"文本框\"},{\"type\":\"el-input-text\",\"label\":\"文本内容\",\"name\":\"text\",\"required\":false,\"placeholder\":\"\",\"value\":\"收车量TOP5\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":36},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"color\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(0, 206, 209, 1)\"},{\"type\":\"el-input-number\",\"label\":\"字体间距\",\"name\":\"letterSpacing\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"字体背景\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(115,170,229,.0)\"},{\"type\":\"el-select\",\"label\":\"文字粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-select\",\"label\":\"对齐方式\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":151},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":373},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":239},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":55}]}', NULL, 1, 0, 11, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-barlinechart', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":0,\"reversalX\":0,\"minHeight\":0,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"layoutFront\":\"\",\"radius\":5,\"xName\":\"\",\"isShowY\":true,\"height\":1080,\"maxWidth\":10,\"area\":true,\"textAlign\":\"left\",\"lineColor\":\"#fff\",\"subTextColor\":\"#fff\",\"textColor\":\"#fff\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"background\":\"\",\"fontSize\":12,\"marginBottom\":10,\"layerName\":\"柱线图\",\"hideX\":true,\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"lineWidth\":3,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"areaThickness\":5,\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"smoothCurve\":true,\"fontSizeY\":12,\"fontSizeX\":16,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"markPoint\":true,\"NameFontSizeY\":16,\"textFontSize\":20,\"pointSize\":5,\"customColor\":[{\"color\":\"#00F4FFFF\"},{\"color\":\"#9CA69C\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{\"dynamicData\":{\"chartProperties\":{\"start\":\"bar\",\"time\":\"xAxis\",\"collect\":\"line\"},\"setCode\":\"logis_3\",\"chartType\":\"widget-barlinechart\",\"contextData\":{}},\"dataType\":\"dynamicData\",\"refreshTime\":5000,\"staticData\":\"{\\\"xAxis\\\": [\\\"1月\\\", \\\"2月\\\", \\\"3月\\\", \\\"4月\\\", \\\"5月\\\",\\\"6月\\\", \\\"7月\\\", \\\"8月\\\",\\\"9月\\\",\\\"10月\\\",\\\"11月\\\",\\\"12月\\\"],\\\"series\\\": [{\\\"type\\\": \\\"bar\\\",\\\"name\\\": \\\"货运量\\\",\\\"data\\\": [2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3]},{\\\"type\\\": \\\"line\\\",\\\"name\\\": \\\"货运总量\\\",\\\"yAxisIndex\\\": 1,\\\"data\\\": [2,2.2,3.3,4.5,6.3,10.2,20.3,23.4,23,16.5,12,6.2]}]}\"}', '', '{\"top\":791,\"left\":2,\"width\":531,\"index\":11,\"height\":282}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"dynamicData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"{\\\"xAxis\\\": [\\\"1月\\\", \\\"2月\\\", \\\"3月\\\", \\\"4月\\\", \\\"5月\\\",\\\"6月\\\", \\\"7月\\\", \\\"8月\\\",\\\"9月\\\",\\\"10月\\\",\\\"11月\\\",\\\"12月\\\"],\\\"series\\\": [{\\\"type\\\": \\\"bar\\\",\\\"name\\\": \\\"货运量\\\",\\\"data\\\": [2.6,5.9,9,26.4,28.7,70.7,175.6,182.2,48.7,18.8,6,2.3]},{\\\"type\\\": \\\"line\\\",\\\"name\\\": \\\"货运总量\\\",\\\"yAxisIndex\\\": 1,\\\"data\\\": [2,2.2,3.3,4.5,6.3,10.2,20.3,23.4,23,16.5,12,6.2]}]}\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"chartType\":\"widget-barlinechart\",\"relactiveDomValue\":\"dynamicData\",\"value\":{\"chartProperties\":{\"start\":\"bar\",\"time\":\"xAxis\",\"collect\":\"line\"},\"setCode\":\"logis_3\",\"chartType\":\"widget-barlinechart\",\"contextData\":{}}}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"柱线图\"},{\"type\":\"vue-color\",\"label\":\"背景颜色\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},[{\"name\":\"折线设置\",\"list\":[{\"type\":\"el-switch\",\"label\":\"标记点\",\"name\":\"markPoint\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-slider\",\"label\":\"点大小\",\"name\":\"pointSize\",\"required\":false,\"placeholder\":\"\",\"value\":5},{\"type\":\"el-switch\",\"label\":\"平滑曲线\",\"name\":\"smoothCurve\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-switch\",\"label\":\"面积堆积\",\"name\":\"area\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-slider\",\"label\":\"面积厚度\",\"name\":\"areaThickness\",\"required\":false,\"placeholder\":\"\",\"value\":5},{\"type\":\"el-slider\",\"label\":\"线条宽度\",\"name\":\"lineWidth\",\"required\":false,\"placeholder\":\"\",\"value\":3}]},{\"name\":\"柱体设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"最大宽度\",\"name\":\"maxWidth\",\"required\":false,\"placeholder\":\"\",\"value\":10},{\"type\":\"el-slider\",\"label\":\"圆角\",\"name\":\"radius\",\"require\":false,\"placeholder\":\"\",\"value\":5},{\"type\":\"el-slider\",\"label\":\"最小高度\",\"name\":\"minHeight\",\"require\":false,\"placeholder\":\"\",\"value\":0}]},{\"name\":\"标题设置\",\"list\":[{\"type\":\"el-switch\",\"label\":\"标题\",\"name\":\"isNoTitle\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"el-input-text\",\"label\":\"标题\",\"name\":\"titleText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"textColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"textFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"textFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20},{\"type\":\"el-select\",\"label\":\"字体位置\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"left\"},{\"type\":\"el-input-text\",\"label\":\"副标题\",\"name\":\"subText\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"subTextColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-select\",\"label\":\"字体粗细\",\"name\":\"subTextFontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"subTextFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":20}]},{\"name\":\"X轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"xName\",\"required\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"hideX\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"xNameColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"xNameFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"el-slider\",\"label\":\"文字角度\",\"name\":\"textAngle\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-input-number\",\"label\":\"文字间隔\",\"name\":\"textInterval\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalX\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"Xcolor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeX\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineX\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorX\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"Y轴设置\",\"list\":[{\"type\":\"el-input-text\",\"label\":\"名称\",\"name\":\"textNameY\",\"require\":false,\"placeholder\":\"\",\"value\":\"\"},{\"type\":\"el-switch\",\"label\":\"显示\",\"name\":\"isShowY\",\"require\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"坐标名颜色\",\"name\":\"NameColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"NameFontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"el-switch\",\"label\":\"轴反转\",\"name\":\"reversalY\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"颜色\",\"name\":\"colorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-number\",\"label\":\"字号\",\"name\":\"fontSizeY\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"vue-color\",\"label\":\"轴颜色\",\"name\":\"lineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-switch\",\"label\":\"分割线显示\",\"name\":\"isShowSplitLineY\",\"require\":false,\"placeholder\":\"\",\"value\":false},{\"type\":\"vue-color\",\"label\":\"分割线颜色\",\"name\":\"splitLineColorY\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"提示语设置\",\"list\":[{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":12},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lineColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"}]},{\"name\":\"坐标轴边距设置\",\"list\":[{\"type\":\"el-slider\",\"label\":\"左边距(像素)\",\"name\":\"marginLeft\",\"required\":false,\"placeholder\":\"\",\"value\":10},{\"type\":\"el-slider\",\"label\":\"顶边距(像素)\",\"name\":\"marginTop\",\"required\":false,\"placeholder\":\"\",\"value\":50},{\"type\":\"el-slider\",\"label\":\"右边距(像素)\",\"name\":\"marginRight\",\"required\":false,\"placeholder\":\"\",\"value\":40},{\"type\":\"el-slider\",\"label\":\"底边距(像素)\",\"name\":\"marginBottom\",\"required\":false,\"placeholder\":\"\",\"value\":10}]},{\"name\":\"图例操作\",\"list\":[{\"type\":\"el-switch\",\"label\":\"图例\",\"name\":\"isShowLegend\",\"required\":false,\"placeholder\":\"\",\"value\":true},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"lengedColor\",\"required\":false,\"placeholder\":\"\",\"value\":\"#fff\"},{\"type\":\"el-input-text\",\"label\":\"字体大小\",\"name\":\"lengedFontSize\",\"required\":false,\"placeholder\":\"\",\"value\":16},{\"type\":\"el-input-number\",\"label\":\"图例宽度\",\"name\":\"lengedWidth\",\"required\":false,\"placeholder\":\"\",\"value\":15},{\"type\":\"el-select\",\"label\":\"横向位置\",\"name\":\"lateralPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"纵向位置\",\"name\":\"longitudinalPosition\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"top\",\"name\":\"顶部\"},{\"code\":\"bottom\",\"name\":\"底部\"}],\"value\":\"\"},{\"type\":\"el-select\",\"label\":\"布局前置\",\"name\":\"layoutFront\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"vertical\",\"name\":\"竖排\"},{\"code\":\"horizontal\",\"name\":\"横排\"}],\"value\":\"\"}]},{\"name\":\"自定义配色\",\"list\":[{\"type\":\"customColor\",\"label\":\"\",\"name\":\"customColor\",\"required\":false,\"value\":[{\"color\":\"#00F4FFFF\"},{\"color\":\"#9CA69C\"}]}]}]],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":2},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":791},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":531},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":282}]}', NULL, 1, 0, 12, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-text', '{\"backgroundColor\":\"\",\"color\":\"rgba(0, 206, 209, 1)\",\"textAlign\":\"center\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"letterSpacing\":0,\"title\":\"大屏\",\"background\":\"rgba(115,170,229,.0)\",\"width\":1920,\"fontSize\":36,\"layerName\":\"文本框\",\"text\":\"收发车情况\",\"fontWeight\":\"normal\",\"height\":1080}', '{\"dataType\":\"staticData\",\"refreshTime\":5000,\"staticData\":\"文本框\"}', '', '{\"top\":732,\"left\":169,\"width\":209,\"index\":12,\"height\":57}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"staticData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"文本框\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-text\",\"value\":\"\"}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"文本框\"},{\"type\":\"el-input-text\",\"label\":\"文本内容\",\"name\":\"text\",\"required\":false,\"placeholder\":\"\",\"value\":\"收发车情况\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":36},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"color\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(0, 206, 209, 1)\"},{\"type\":\"el-input-number\",\"label\":\"字体间距\",\"name\":\"letterSpacing\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"字体背景\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(115,170,229,.0)\"},{\"type\":\"el-select\",\"label\":\"文字粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-select\",\"label\":\"对齐方式\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":169},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":732},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":209},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":57}]}', NULL, 1, 0, 13, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-text', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":0,\"reversalX\":0,\"minHeight\":0,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"layoutFront\":\"\",\"text\":\"发车\",\"radius\":5,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":10,\"area\":true,\"textAlign\":\"center\",\"lineColor\":\"#fff\",\"subTextColor\":\"#fff\",\"textColor\":\"#fff\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"background\":\"rgba(115,170,229,.0)\",\"fontSize\":25,\"marginBottom\":10,\"layerName\":\"发车\",\"hideX\":true,\"color\":\"rgba(0, 206, 209, 1)\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"lineWidth\":3,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"areaThickness\":5,\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"smoothCurve\":true,\"fontSizeY\":12,\"fontSizeX\":16,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"letterSpacing\":0,\"markPoint\":true,\"NameFontSizeY\":16,\"textFontSize\":20,\"pointSize\":5,\"customColor\":[{\"color\":\"#00F4FFFF\"},{\"color\":\"#9CA69C\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{\"dataType\":\"staticData\",\"refreshTime\":5000,\"staticData\":\"文本框\"}', '', '{\"top\":788,\"left\":423,\"width\":100,\"index\":13,\"height\":40}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"staticData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"文本框\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-text\",\"value\":\"\"}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"发车\"},{\"type\":\"el-input-text\",\"label\":\"文本内容\",\"name\":\"text\",\"required\":false,\"placeholder\":\"\",\"value\":\"发车\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":25},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"color\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(0, 206, 209, 1)\"},{\"type\":\"el-input-number\",\"label\":\"字体间距\",\"name\":\"letterSpacing\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"字体背景\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(115,170,229,.0)\"},{\"type\":\"el-select\",\"label\":\"文字粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-select\",\"label\":\"对齐方式\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":423},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":788},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":40}]}', NULL, 1, 0, 14, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_dashboard_widget`(`report_code`, `type`, `setup`, `data`, `collapse`, `position`, `options`, `refresh_seconds`, `enable_flag`, `delete_flag`, `sort`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logistics_one', 'widget-text', '{\"lengedColor\":\"#fff\",\"lateralPosition\":\"\",\"reversalY\":0,\"reversalX\":0,\"minHeight\":0,\"marginRight\":40,\"textInterval\":0,\"isNoTitle\":true,\"textFontWeight\":\"normal\",\"titleText\":\"\",\"layoutFront\":\"\",\"text\":\"收车\",\"radius\":5,\"xName\":\"\",\"isShowY\":true,\"fontWeight\":\"normal\",\"height\":1080,\"maxWidth\":10,\"area\":true,\"textAlign\":\"center\",\"lineColor\":\"#fff\",\"subTextColor\":\"#fff\",\"textColor\":\"#fff\",\"subText\":\"\",\"lineColorY\":\"#fff\",\"xNameFontSize\":12,\"lineColorX\":\"#fff\",\"textNameY\":\"\",\"marginLeft\":10,\"subTextFontSize\":20,\"background\":\"rgba(115,170,229,.0)\",\"fontSize\":25,\"marginBottom\":10,\"layerName\":\"收车\",\"hideX\":true,\"color\":\"rgba(0, 206, 209, 1)\",\"backgroundImage\":\"https://report.anji-plus.com/file/download/bf566e48-ccad-40e1-8ee9-228427e5466b\",\"NameColorY\":\"#fff\",\"title\":\"大屏\",\"isShowSplitLineX\":false,\"lineWidth\":3,\"isShowSplitLineY\":false,\"splitLineColorY\":\"#fff\",\"areaThickness\":5,\"lengedFontSize\":16,\"splitLineColorX\":\"#fff\",\"textAngle\":0,\"Xcolor\":\"#fff\",\"xNameColor\":\"#fff\",\"lengedWidth\":15,\"smoothCurve\":true,\"fontSizeY\":12,\"fontSizeX\":16,\"backgroundColor\":\"\",\"colorY\":\"#fff\",\"letterSpacing\":0,\"markPoint\":true,\"NameFontSizeY\":16,\"textFontSize\":20,\"pointSize\":5,\"customColor\":[{\"color\":\"#00F4FFFF\"},{\"color\":\"#9CA69C\"}],\"longitudinalPosition\":\"\",\"subTextFontWeight\":\"normal\",\"width\":1920,\"isShowLegend\":true,\"marginTop\":50}', '{\"dataType\":\"staticData\",\"refreshTime\":5000,\"staticData\":\"文本框\"}', '', '{\"top\":787,\"left\":3,\"width\":100,\"index\":13,\"height\":40}', '{\"data\":[{\"type\":\"el-radio-group\",\"label\":\"数据类型\",\"name\":\"dataType\",\"require\":false,\"placeholder\":\"\",\"selectValue\":true,\"selectOptions\":[{\"code\":\"staticData\",\"name\":\"静态数据\"},{\"code\":\"dynamicData\",\"name\":\"动态数据\"}],\"value\":\"staticData\"},{\"type\":\"el-input-number\",\"label\":\"刷新时间(毫秒)\",\"name\":\"refreshTime\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"value\":5000},{\"type\":\"el-button\",\"label\":\"静态数据\",\"name\":\"staticData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"staticData\",\"value\":\"文本框\"},{\"type\":\"dycustComponents\",\"label\":\"\",\"name\":\"dynamicData\",\"required\":false,\"placeholder\":\"px\",\"relactiveDom\":\"dataType\",\"relactiveDomValue\":\"dynamicData\",\"chartType\":\"widget-text\",\"value\":\"\"}],\"setup\":[{\"type\":\"el-input-text\",\"label\":\"图层名称\",\"name\":\"layerName\",\"required\":false,\"placeholder\":\"\",\"value\":\"收车\"},{\"type\":\"el-input-text\",\"label\":\"文本内容\",\"name\":\"text\",\"required\":false,\"placeholder\":\"\",\"value\":\"收车\"},{\"type\":\"el-input-number\",\"label\":\"字体大小\",\"name\":\"fontSize\",\"required\":false,\"placeholder\":\"\",\"value\":25},{\"type\":\"vue-color\",\"label\":\"字体颜色\",\"name\":\"color\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(0, 206, 209, 1)\"},{\"type\":\"el-input-number\",\"label\":\"字体间距\",\"name\":\"letterSpacing\",\"required\":false,\"placeholder\":\"\",\"value\":0},{\"type\":\"vue-color\",\"label\":\"字体背景\",\"name\":\"background\",\"required\":false,\"placeholder\":\"\",\"value\":\"rgba(115,170,229,.0)\"},{\"type\":\"el-select\",\"label\":\"文字粗细\",\"name\":\"fontWeight\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"normal\",\"name\":\"正常\"},{\"code\":\"bold\",\"name\":\"粗体\"},{\"code\":\"bolder\",\"name\":\"特粗体\"},{\"code\":\"lighter\",\"name\":\"细体\"}],\"value\":\"normal\"},{\"type\":\"el-select\",\"label\":\"对齐方式\",\"name\":\"textAlign\",\"required\":false,\"placeholder\":\"\",\"selectOptions\":[{\"code\":\"center\",\"name\":\"居中\"},{\"code\":\"left\",\"name\":\"左对齐\"},{\"code\":\"right\",\"name\":\"右对齐\"}],\"value\":\"center\"}],\"position\":[{\"type\":\"el-input-number\",\"label\":\"左边距\",\"name\":\"left\",\"required\":false,\"placeholder\":\"px\",\"value\":3},{\"type\":\"el-input-number\",\"label\":\"上边距\",\"name\":\"top\",\"required\":false,\"placeholder\":\"px\",\"value\":787},{\"type\":\"el-input-number\",\"label\":\"宽度\",\"name\":\"width\",\"required\":false,\"placeholder\":\"该容器在1920px大屏中的宽度\",\"value\":100},{\"type\":\"el-input-number\",\"label\":\"高度\",\"name\":\"height\",\"required\":false,\"placeholder\":\"该容器在1080px大屏中的高度\",\"value\":40}]}', NULL, 1, 0, 15, 'admin', '2021-07-15 17:40:33', 'admin', '2021-07-15 17:40:33', 1);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('amount_1', 'amount1', '', 'mysql_ajreport', 'SELECT sum(success)as nums from aj_report_wifiamount;', '[{\"nums\":1514}]', 1, 0, 'admin', '2021-07-05 15:00:18', 'admin', '2021-07-05 15:00:18', 1);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logis_1', '库存', '', 'mysql_ajreport', 'select name,nums from aj_report_common1 order by nums', '[{\"name\":\"上海\",\"nums\":500},{\"name\":\"北京\",\"nums\":600},{\"name\":\"西安\",\"nums\":1000},{\"name\":\"河南\",\"nums\":1200},{\"name\":\"武汉\",\"nums\":2000}]', 1, 0, 'admin', '2021-07-06 15:44:41', 'admin', '2021-07-06 15:54:16', 3);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logis_2', '收车量', '', 'mysql_ajreport', 'select name,nums from aj_report_common2 order by nums;', '[{\"name\":\"武汉\",\"nums\":20},{\"name\":\"河南\",\"nums\":50},{\"name\":\"西安\",\"nums\":70},{\"name\":\"北京\",\"nums\":100},{\"name\":\"上海\",\"nums\":200}]', 1, 0, 'admin', '2021-07-06 16:51:27', 'admin', '2021-07-06 16:51:27', 1);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logis_3', '收发车情况', '', 'mysql_ajreport', 'select time,collect,start from aj_report_common3;', '[{\"start\":8,\"time\":\"1月\",\"collect\":10},{\"start\":12,\"time\":\"2月\",\"collect\":15},{\"start\":22,\"time\":\"3月\",\"collect\":20},{\"start\":28,\"time\":\"4月\",\"collect\":30},{\"start\":35,\"time\":\"5月\",\"collect\":28},{\"start\":38,\"time\":\"6月\",\"collect\":40},{\"start\":100,\"time\":\"7月\",\"collect\":80},{\"start\":120,\"time\":\"8月\",\"collect\":90},{\"start\":89,\"time\":\"9月\",\"collect\":65},{\"start\":50,\"time\":\"10月\",\"collect\":50},{\"start\":34,\"time\":\"11月\",\"collect\":35},{\"start\":23,\"time\":\"12月\",\"collect\":27}]', 1, 0, 'admin', '2021-07-06 17:24:16', 'admin', '2021-07-06 17:30:15', 2);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('logis_table', '表格测试', '', 'mysql_ajreport', 'select date,address,name from aj_report_table;', '[{\"date\":\"2021-05-01\",\"address\":\"这是一条测试表格事件1\",\"name\":\"上汽安吉\"},{\"date\":\"2021-05-02\",\"address\":\"这是一条测试表格事件2\",\"name\":\"上汽大通\"},{\"date\":\"2021-05-03\",\"address\":\"这是一条测试表格事件3\",\"name\":\"上汽智行\"},{\"date\":\"2021-05-04\",\"address\":\"这是一条测试表格事件4\",\"name\":\"上汽国际\"},{\"date\":\"2021-05-05\",\"address\":\"这是一条测试表格事件5\",\"name\":\"上汽国内\"},{\"date\":\"2021-05-06\",\"address\":\"这是一条测试表格事件6\",\"name\":\"上汽运输\"},{\"date\":\"2021-05-07\",\"address\":\"这是一条测试表格事件7\",\"name\":\"上汽大众\"}]', 1, 0, 'admin', '2021-07-06 17:56:23', 'admin', '2021-07-07 10:59:34', 4);
INSERT INTO `aj_report`.`gaea_report_data_set`(`set_code`, `set_name`, `set_desc`, `source_code`, `dyn_sentence`, `case_result`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('per', '百分比', '', 'mysql_ajreport', 'select doub from aj_report_nums where id =2;', '[{\"doub\":55.33}]', 1, 0, 'admin', '2021-07-14 16:17:14', 'admin', '2021-07-15 10:35:21', 2);
|
<reponame>CUBRID/cubrid-testcase<gh_stars>0
autocommit off;
select product_code, descr
from joe.unsold_stock_v u
intersection
select product_code, descr
from joe.deficit_stock_v d;
rollback;
|
<filename>examples/kershaw/kershaw.udf<gh_stars>1-10
#include <math.h>
#include <numeric>
#include "udf.hpp"
/* UDF Functions */
static dfloat P_EPS;
void UDF_LoadKernels(occa::properties& kernelInfo)
{
}
void UDF_Setup0(MPI_Comm comm, setupAide &options)
{
platform->par->extract("casedata", "p_eps", P_EPS);
if (platform->options.compareArgs("BUILD ONLY", "FALSE")) {
double* const nek_cb_scnrs = (double*) nek::ptr("cb_scnrs");
nek_cb_scnrs[0] = P_EPS;
}
int gsOverlap = 1;
platform->par->extract("casedata", "gsoverlap", gsOverlap);
if(!gsOverlap) platform->options.setArgs("GS OVERLAP", "FALSE");
}
void UDF_Setup(nrs_t *nrs)
{
}
void UDF_ExecuteStep(nrs_t *nrs, dfloat time, int tstep)
{
mesh_t* mesh = nrs->meshV;
for (int i = 0; i < mesh->Nlocal; i++) {
const dfloat lambda = 0;
platform->mempool.slice0[i] = //drand48();
(3*M_PI*M_PI+lambda)*sin(M_PI*mesh->x[i])*sin(M_PI*mesh->y[i])*sin(M_PI*mesh->z[i]);
}
platform->linAlg->fillKernel(mesh->Nlocal, 1.0, nrs->o_ellipticCoeff);
platform->o_mempool.slice0.copyFrom(platform->mempool.slice0, mesh->Nlocal * sizeof(dfloat));
if(platform->comm.mpiRank == 0)
std::cout << "\nrunning benchmarks\n";
for(std::string benchmark : {"BPS5", "BP5"}){
MPI_Barrier(platform->comm.mpiComm);
if(platform->comm.mpiRank == 0)
std::cout << "\n" << benchmark << "\n";
int Nrep = 0;
if(benchmark == "BP5"){
Nrep = 50;
nrs->pSolver->options.setArgs("PRECONDITIONER", "JACOBI");
nrs->pSolver->options.setArgs("KRYLOV SOLVER", "PCG");
nrs->pSolver->options.setArgs("MAXIMUM ITERATIONS", "500");
nrs->pSolver->options.setArgs("SOLVER TOLERANCE", to_string_f(1e-15));
ellipticPreconditionerSetup(nrs->pSolver, nrs->pSolver->ogs);
}
if(benchmark == "BPS5"){
Nrep = 50;
nrs->pSolver->options.setArgs("SOLVER TOLERANCE", to_string_f(1e-8));
nrs->pSolver->options.setArgs("LINEAR SOLVER STOPPING CRITERION", "RELATIVE");
}
platform->timer.reset();
platform->flopCounter->clear();
std::vector<double> eTime;
std::vector<double> precoTime;
std::vector<double> smootherTime;
std::vector<double> crsTime;
for (int i = 0; i < Nrep; i++) {
platform->linAlg->fillKernel(mesh->Nlocal, 0.0, nrs->o_P);
platform->o_mempool.slice0.copyFrom(platform->mempool.slice0, mesh->Nlocal * sizeof(dfloat));
platform->timer.tic("pressureSolve", 1);
ellipticSolve(nrs->pSolver, platform->o_mempool.slice0, nrs->o_P);
platform->timer.toc("pressureSolve");
eTime.push_back(platform->timer.query("pressureSolve", "DEVICE:MAX"));
precoTime.push_back(platform->timer.query("pressure preconditioner", "DEVICE:MAX"));
smootherTime.push_back(platform->timer.query("pressure preconditioner smoother", "DEVICE:MAX"));
crsTime.push_back(platform->timer.query("coarseSolve", "DEVICE:MAX"));
platform->timer.reset("pressureSolve");
platform->timer.reset("pressure preconditioner");
platform->timer.reset("pressure preconditioner smoother");
platform->timer.reset("coarseSolve");
if(platform->comm.mpiRank == 0) {
printf(".");
fflush(stdout);
}
}
if(platform->comm.mpiRank == 0) printf("\n");
hlong Ntotal = mesh->Nelements * (mesh->N * mesh->N * mesh->N);
MPI_Allreduce(MPI_IN_PLACE, &Ntotal, 1, MPI_HLONG, MPI_SUM, platform->comm.mpiComm);
const auto minEntry = std::distance(eTime.begin(), std::min_element(eTime.begin(), eTime.end()));
const double solveTime = eTime.at(minEntry);
const double solveTimeMax = *std::max_element(eTime.begin(), eTime.end());
const double solveTimeAvg = std::accumulate(eTime.begin(), eTime.end(), 0.0) / Nrep;
const double throughput = (double)Ntotal/solveTime;
const double flopsPerSecond = (platform->flopCounter->get(platform->comm.mpiComm)/Nrep)/solveTime;
if(platform->comm.mpiRank == 0) {
printf("repetitions: %d\n", Nrep);
printf("solve time: min: %gs avg: %gs max: %gs\n", solveTime, solveTimeAvg, solveTimeMax);
printf(" preconditioner %gs\n", precoTime.at(minEntry));
if(smootherTime.at(minEntry) > 0) printf(" smoother %gs\n", smootherTime.at(minEntry));
if(crsTime.at(minEntry) > 0) printf(" coarse grid %gs\n", crsTime.at(minEntry));
printf("iterations: %d\n", nrs->pSolver->Niter);
printf("throughput: %g (DOF x iter)/s\n", (double) nrs->pSolver->Niter * throughput);
if(benchmark == "BPS5") {
printf("throughput: %g DOF/s\n", throughput);
int nRestart = 0;
nrs->pSolver->options.getArgs("PGMRES RESTART", nRestart);
if(nrs->pSolver->Niter == nRestart)
printf("WARNING: maximum iterations reached!");
}
printf("FLOPS/s: %g \n", flopsPerSecond);
}
}
EXIT_AND_FINALIZE(0);
}
|
<filename>databases/mysql/migration/15_rule_data_sources.up.sql
CREATE TABLE rule_data_sources (
rule_id INTEGER NOT NULL,
data_source_id INTEGER NOT NULL,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY(rule_id, data_source_id)
);
CREATE INDEX rule_data_sources_rule_id_idx ON rule_data_sources(rule_id);
|
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 10.4.17-MariaDB - mariadb.org binary distribution
-- Server OS: Win64
-- HeidiSQL Version: 11.2.0.6213
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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 database structure for gsmf-monev
CREATE DATABASE IF NOT EXISTS `gsmf-monev` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
USE `gsmf-monev`;
-- Dumping structure for table gsmf-monev.hutang_master
CREATE TABLE IF NOT EXISTS `hutang_master` (
`hutprm` int(11) NOT NULL AUTO_INCREMENT,
`hut_mst_lock` int(11) DEFAULT 0,
`hut_mst_dt` varchar(20) DEFAULT NULL,
`hut_mst_nobuk` varchar(20) DEFAULT NULL,
`hut_mst_noref` varchar(20) DEFAULT NULL,
`hut_mst_sts` varchar(20) DEFAULT NULL,
`hut_mst_tgl` date DEFAULT NULL,
`hut_mst_tglrnc` date DEFAULT NULL,
`hut_mst_pst` varchar(20) DEFAULT NULL,
`hut_mst_kel` varchar(20) DEFAULT NULL,
`hut_mst_rek` varchar(20) DEFAULT NULL,
`hut_mst_rnc` double DEFAULT NULL,
`hut_mst_ttl` double DEFAULT NULL,
`hut_mst_ket` varchar(2000) DEFAULT NULL,
`hut_mst_dok` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`hutprm`),
UNIQUE KEY `hut_mst_dt_hut_mst_nobuk` (`hut_mst_dt`,`hut_mst_nobuk`),
UNIQUE KEY `hut_mst_nobuk` (`hut_mst_nobuk`),
KEY `hut_mst_dt_hut_mst_tgl` (`hut_mst_dt`,`hut_mst_tgl`),
KEY `hut_mst_sts` (`hut_mst_sts`),
KEY `hut_mst_dt_hut_mst_noref` (`hut_mst_dt`,`hut_mst_noref`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.hutang_master: ~9 rows (approximately)
/*!40000 ALTER TABLE `hutang_master` DISABLE KEYS */;
INSERT INTO `hutang_master` (`hutprm`, `hut_mst_lock`, `hut_mst_dt`, `hut_mst_nobuk`, `hut_mst_noref`, `hut_mst_sts`, `hut_mst_tgl`, `hut_mst_tglrnc`, `hut_mst_pst`, `hut_mst_kel`, `hut_mst_rek`, `hut_mst_rnc`, `hut_mst_ttl`, `hut_mst_ket`, `hut_mst_dok`) VALUES
(17, 0, 'AGR', 'AGR-20210515-39997', NULL, 'TOLAK', '2021-05-15', '2021-05-15', 'GSU', 'F-01', '2121-01', 250000, 0, 'COBA PROGRAM1', 'AGR-20210515-39997.docx'),
(19, 0, 'AGR', 'AGR-20210515-02595', NULL, 'CAIR', '2021-05-15', '2021-05-23', 'GSU', 'F-01', '2121-02', 50000, 50000, 'COBAIN ISI 2', 'AGR-20210515-02595.docx'),
(20, 0, 'AGR', 'AGR-20210515-07313', NULL, 'TOLAK', '2021-05-15', '2021-05-15', 'GSU', 'F-01', '2122-01', 25000, 0, 'RUTIN1', 'AGR-20210515-07313.jpg'),
(21, 0, 'AGR', 'AGR-20210515-62507', NULL, 'TOLAK', '2021-05-15', '2021-05-15', 'GSU', 'F-01', '2122-11', 50100, 0, 'RUTIN2', 'AGR-20210515-62507.jpg'),
(22, 0, 'AGR', 'AGR-20210515-22533', 'UJICOBA1', 'CAIR', '2021-05-15', '2021-05-31', 'GSU', 'F-01', '2123-01', 2500000, 2500000, 'GAJI KARYAWAN', ''),
(23, 0, 'AGR', 'AGR-20210515-17188', 'UJICOBA1', 'CAIR', '2021-05-15', '2021-06-30', 'GSU', 'F-01', '2123-01', 2500000, 2500000, 'GAJI KARYAWAN', ''),
(24, 0, 'AGR', 'AGR-20210515-20456', 'UJICOBA2', 'CAIR', '2021-05-15', '2021-05-31', 'GSU', 'F-01', '2123-01', 950000, 950000, 'GAJI KARYAWAN', ''),
(25, 0, 'AGR', 'AGR-20210515-30115', 'GSU', 'CAIR', '2021-05-15', '2021-05-31', 'GSU', 'F-01', '2123-01', 2250000, 2250000, 'GAJI KARYAWAN', ''),
(27, 0, 'AGR', 'AGR-20210518-21838', 'HANDPHONE XIAOMI', 'CAIR', '2021-05-18', '2021-05-23', 'GSU', 'F-01', '2124-03', 750000, 650000, 'BETULKAN HP', 'AGR-20210518-21838.jpg');
/*!40000 ALTER TABLE `hutang_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.info_level_1
CREATE TABLE IF NOT EXISTS `info_level_1` (
`infoprm` int(11) NOT NULL AUTO_INCREMENT,
`in_lv_1_dt` varchar(20) DEFAULT NULL,
`in_lv_1_kd` varchar(20) DEFAULT NULL,
`in_lv_1_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`infoprm`) USING BTREE,
UNIQUE KEY `in_lv_1_dt_in_lv_1_kd` (`in_lv_1_dt`,`in_lv_1_kd`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=57 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.info_level_1: ~32 rows (approximately)
/*!40000 ALTER TABLE `info_level_1` DISABLE KEYS */;
INSERT INTO `info_level_1` (`infoprm`, `in_lv_1_dt`, `in_lv_1_kd`, `in_lv_1_ket`) VALUES
(8, 'STATUS', 'AKTIF', 'AKTIF'),
(9, 'STATUS', 'PASIF', 'PASIF'),
(13, 'REKENING', 'ANGGARAN', 'ANGGARAN'),
(14, 'REKENING', 'NERACA', 'NERACA'),
(15, 'AP', 'AKTIVA', 'AKTIVA'),
(16, 'AP', 'PASIVA', 'PASIVA'),
(17, 'PENDIDIKAN', 'SD', 'SD'),
(18, 'PENDIDIKAN', 'SMU', 'SMU'),
(19, 'PENDIDIKAN', 'D3', 'D3'),
(20, 'PENDIDIKAN', 'S1', 'S1'),
(21, 'PENDIDIKAN', 'D1', 'D1'),
(22, 'STSKRY', 'TETAP', 'KARYAWAN TETAP'),
(23, 'STSKRY', 'TDK-SJK-15', 'TIDAK TETAP SEJAK 2015'),
(24, 'STSKRY', 'RELAWAN', 'RELAWAN PRO-DEO'),
(25, 'TUNJTTP', 'PASANGAN', 'ISTRI-SUAMI'),
(26, 'TUNJTTP', 'ANAK', 'ANAK'),
(27, 'TUNJTTP', 'PENDIDIKAN', 'PENDIDIKAN'),
(28, 'TUNJTTP', 'MASA', 'MASA KERJA'),
(29, 'TUNJTTP', 'BEBAN', 'BEBAN KERJA'),
(30, 'TUNJTTP', 'BERAS', 'BERAS'),
(31, 'TUNJTTTP', 'HADIR', 'KEHADIRAN'),
(32, 'TUNJTTTP', 'PRESTASI', 'PRESTASI'),
(35, 'PENDIDIKAN', 'SMP', 'SMP'),
(36, 'STSNKH', 'TK/0', 'TK/0'),
(37, 'STSNKH', 'KW/0', 'KW/0'),
(38, 'STSNKH', 'KW/1', 'KW/1'),
(39, 'STSNKH', 'KW/2', 'KW/2'),
(40, 'STSNKH', 'KW/3', 'KW/3'),
(48, 'STSKRY', 'TDK-SBL-15', 'TIDAK TETAP SEBELUM 2015'),
(54, 'PENDIDIKAN', 'SMK', 'SMK'),
(55, 'PENDIDIKAN', 'STM', 'STM'),
(56, 'STSKRY', 'CALON', 'CALON KARYAWAN TETAP');
/*!40000 ALTER TABLE `info_level_1` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.info_level_2
CREATE TABLE IF NOT EXISTS `info_level_2` (
`infoprm` int(11) NOT NULL AUTO_INCREMENT,
`in_lv_1_dt` varchar(20) DEFAULT NULL,
`in_lv_1_kd` varchar(20) DEFAULT NULL,
`in_lv_2_kd` varchar(20) DEFAULT NULL,
`in_lv_2_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`infoprm`) USING BTREE,
UNIQUE KEY `in_lv_1_dt_in_lv_1_kd_in_lv_2_kd` (`in_lv_1_dt`,`in_lv_1_kd`,`in_lv_2_kd`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.info_level_2: ~7 rows (approximately)
/*!40000 ALTER TABLE `info_level_2` DISABLE KEYS */;
INSERT INTO `info_level_2` (`infoprm`, `in_lv_1_dt`, `in_lv_1_kd`, `in_lv_2_kd`, `in_lv_2_ket`) VALUES
(1, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'ABTS-NP'),
(2, 'REKENING', 'ANGGARAN', 'ABTS-P', 'ABTS-P'),
(3, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'ABTS-UKSP'),
(4, 'REKENING', 'ANGGARAN', 'ABTT', 'ABTT'),
(5, 'REKENING', 'NERACA', 'ASET', 'ASET'),
(6, 'REKENING', 'NERACA', 'ASET BERSIH', 'ASET BERSIH'),
(7, 'REKENING', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN');
/*!40000 ALTER TABLE `info_level_2` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.info_level_3
CREATE TABLE IF NOT EXISTS `info_level_3` (
`infoprm` int(11) NOT NULL AUTO_INCREMENT,
`in_lv_1_dt` varchar(20) DEFAULT NULL,
`in_lv_1_kd` varchar(20) DEFAULT NULL,
`in_lv_2_kd` varchar(20) DEFAULT NULL,
`in_lv_3_kd` varchar(20) DEFAULT NULL,
`in_lv_3_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`infoprm`) USING BTREE,
UNIQUE KEY `in_lv_1_dt_in_lv_1_kd_in_lv_2_kd_in_lv_3_kd` (`in_lv_1_dt`,`in_lv_1_kd`,`in_lv_2_kd`,`in_lv_3_kd`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.info_level_3: ~15 rows (approximately)
/*!40000 ALTER TABLE `info_level_3` DISABLE KEYS */;
INSERT INTO `info_level_3` (`infoprm`, `in_lv_1_dt`, `in_lv_1_kd`, `in_lv_2_kd`, `in_lv_3_kd`, `in_lv_3_ket`) VALUES
(1, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'BIAYA'),
(2, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'PENDAPATAN'),
(3, 'REKENING', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'BIAYA'),
(4, 'REKENING', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'PENDAPATAN'),
(5, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'BIAYA', 'BIAYA'),
(6, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'PENDAPATAN', 'PENDAPATAN'),
(7, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'BIAYA'),
(8, 'REKENING', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'PENDAPATAN'),
(9, 'REKENING', 'NERACA', 'ASET', 'ASETLAIN', 'ASETLAIN'),
(10, 'REKENING', 'NERACA', 'ASET', 'ASETLANCAR', 'ASETLANCAR'),
(11, 'REKENING', 'NERACA', 'ASET', 'ASETTETAP', 'ASETTETAP'),
(12, 'REKENING', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'TERIKATSEMENTARA'),
(13, 'REKENING', 'NERACA', 'ASET BERSIH', 'TIDAKTERIKAT', 'TIDAKTERIKAT'),
(14, 'REKENING', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'KEWAJIBAN'),
(16, 'REKENING', 'ANGGARAN', 'ABTS-TT', 'KARYAWAN', 'KARYAWAN'),
(17, 'REKENING', 'ANGGARAN', 'ABTS-TT', 'INVENTARIS', 'INVENTARIS');
/*!40000 ALTER TABLE `info_level_3` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.info_level_4
CREATE TABLE IF NOT EXISTS `info_level_4` (
`infoprm` int(11) NOT NULL AUTO_INCREMENT,
`in_lv_1_dt` varchar(20) DEFAULT NULL,
`in_lv_1_kd` varchar(20) DEFAULT NULL,
`in_lv_2_kd` varchar(20) DEFAULT NULL,
`in_lv_3_kd` varchar(20) DEFAULT NULL,
`in_lv_4_kd` varchar(20) DEFAULT NULL,
`in_lv_4_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`infoprm`),
UNIQUE KEY `in_lv_1_dt_in_lv_1_kd_in_lv_2_kd_in_lv_3_kd_in_lv_4_kd` (`in_lv_1_dt`,`in_lv_1_kd`,`in_lv_2_kd`,`in_lv_3_kd`,`in_lv_4_kd`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.info_level_4: ~35 rows (approximately)
/*!40000 ALTER TABLE `info_level_4` DISABLE KEYS */;
INSERT INTO `info_level_4` (`infoprm`, `in_lv_1_dt`, `in_lv_1_kd`, `in_lv_2_kd`, `in_lv_3_kd`, `in_lv_4_kd`, `in_lv_4_ket`) VALUES
(1, 'REKENING', 'NERACA', 'ASET', 'ASETLANCAR', 'SETARAKAS', 'SETARAKAS\r'),
(2, 'REKENING', 'NERACA', 'ASET', 'ASETLANCAR', 'PIUTANG', 'PIUTANG\r'),
(3, 'REKENING', 'NERACA', 'ASET', 'ASETLANCAR', 'PERSEDIAAN', 'PERSEDIAAN\r'),
(4, 'REKENING', 'NERACA', 'ASET', 'ASETLANCAR', 'PERLENGKAPAN', 'PERLENGKAPAN\r'),
(5, 'REKENING', 'NERACA', 'ASET', 'ASETTETAP', 'BERGERAK', 'BERGERAK\r'),
(6, 'REKENING', 'NERACA', 'ASET', 'ASETTETAP', 'TIDAKBERGERAK', 'TIDAKBERGERAK\r'),
(7, 'REKENING', 'NERACA', 'ASET', 'ASETLAIN', 'LAIN', 'LAIN\r'),
(8, 'REKENING', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPANJANG', 'JANGKAPANJANG\r'),
(9, 'REKENING', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPENDEK', 'JANGKAPENDEK\r'),
(10, 'REKENING', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'KHUSUS', 'KHUSUS\r'),
(11, 'REKENING', 'NERACA', 'ASET BERSIH', 'TIDAKTERIKAT', 'TIDAKTERIKAT', 'TIDAKTERIKAT\r'),
(12, 'REKENING', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'NONPEMBANGUNAN', 'NONPEMBANGUNAN\r'),
(13, 'REKENING', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'PEMBANGUNAN', 'PEMBANGUNAN\r'),
(14, 'REKENING', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'UKSP', 'UKSP\r'),
(15, 'REKENING', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'KOLEKTE', 'KOLEKTE\r'),
(16, 'REKENING', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'BANTUAN', 'BANTUAN\r'),
(17, 'REKENING', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'UMUM', 'UMUM\r'),
(18, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'PROGRAM', 'PROGRAM\r'),
(19, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', 'RUTIN\r'),
(20, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'UMUM', 'UMUM\r'),
(21, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'KOLEKTE', 'KOLEKTE\r'),
(22, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'BANTUAN', 'BANTUAN\r'),
(23, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', 'UMUM\r'),
(24, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'RUTIN', 'RUTIN\r'),
(25, 'REKENING', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', 'UMUM\r'),
(26, 'REKENING', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'KOLEKTE', 'KOLEKTE\r'),
(27, 'REKENING', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'BANTUAN', 'BANTUAN\r'),
(28, 'REKENING', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'UMUM', 'UMUM\r'),
(29, 'REKENING', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'RUTIN', 'RUTIN\r'),
(30, 'REKENING', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'UMUM', 'UMUM\r'),
(31, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'PENDAPATAN', 'KOLEKTE', 'KOLEKTE\r'),
(32, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'PENDAPATAN', 'BANTUAN', 'BANTUAN\r'),
(33, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'PENDAPATAN', 'UMUM', 'UMUM\r'),
(34, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'BIAYA', 'RUTIN', 'RUTIN\r'),
(35, 'REKENING', 'ANGGARAN', 'ABTS-UKSP', 'BIAYA', 'UMUM', 'UMUM\r'),
(36, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'KARYAWAN', 'KARYAWAN'),
(37, 'REKENING', 'NERACA', 'ASET', 'ASETTETAP', 'PERALATAN', 'PERALATAN'),
(38, 'REKENING', 'ANGGARAN', 'ABTT', 'BIAYA', 'INVENTARIS', 'INVENTARIS');
/*!40000 ALTER TABLE `info_level_4` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.inventaris_master
CREATE TABLE IF NOT EXISTS `inventaris_master` (
`invprm` int(11) NOT NULL AUTO_INCREMENT,
`inv_mst_lock` int(11) DEFAULT NULL,
`inv_mst_sts` varchar(20) DEFAULT NULL,
`inv_mst_dt` varchar(20) DEFAULT NULL,
`inv_mst_kode` varchar(20) DEFAULT NULL,
`inv_mst_tipe` varchar(20) DEFAULT NULL,
`inv_mst_barang` varchar(2000) DEFAULT NULL,
`inv_mst_ket` varchar(2000) DEFAULT NULL,
`inv_mst_pemilik` varchar(2000) DEFAULT NULL,
`inv_mst_nm` varchar(2000) DEFAULT NULL,
`inv_mst_tgl` date DEFAULT NULL,
`inv_mst_tgl_beli` date DEFAULT NULL,
`inv_mst_rek` varchar(20) DEFAULT NULL,
`inv_mst_rek_sst` varchar(20) DEFAULT NULL,
`inv_mst_rek_rawat` varchar(20) DEFAULT NULL,
`inv_mst_jthtmp1` date DEFAULT NULL,
`inv_mst_jthtmp2` date DEFAULT NULL,
`inv_mst_masa` int(11) DEFAULT NULL,
`inv_mst_awal` double DEFAULT NULL,
`inv_mst_tambah` double DEFAULT NULL,
`inv_mst_kurang` double DEFAULT NULL,
`inv_mst_akhir` double DEFAULT NULL,
PRIMARY KEY (`invprm`) USING BTREE,
UNIQUE KEY `inv_mst_dt_inv_mst_kode` (`inv_mst_dt`,`inv_mst_kode`),
UNIQUE KEY `inv_mst_kode_pst_mst_sts` (`inv_mst_sts`,`inv_mst_kode`) USING BTREE,
UNIQUE KEY `inv_mst_kode` (`inv_mst_kode`) USING BTREE,
KEY `inv_mst_tipe` (`inv_mst_tipe`)
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.inventaris_master: ~3 rows (approximately)
/*!40000 ALTER TABLE `inventaris_master` DISABLE KEYS */;
INSERT INTO `inventaris_master` (`invprm`, `inv_mst_lock`, `inv_mst_sts`, `inv_mst_dt`, `inv_mst_kode`, `inv_mst_tipe`, `inv_mst_barang`, `inv_mst_ket`, `inv_mst_pemilik`, `inv_mst_nm`, `inv_mst_tgl`, `inv_mst_tgl_beli`, `inv_mst_rek`, `inv_mst_rek_sst`, `inv_mst_rek_rawat`, `inv_mst_jthtmp1`, `inv_mst_jthtmp2`, `inv_mst_masa`, `inv_mst_awal`, `inv_mst_tambah`, `inv_mst_kurang`, `inv_mst_akhir`) VALUES
(29, 0, 'AKTIF', 'INV', 'H5569WR', 'RODA2', 'VARIO 125 CBS FI', 'H5569WR', 'PAROKI', 'ANASTASIA YULI P', '2021-05-18', '2021-05-07', '1122-01', '1122-02', '2124-01', '2021-05-07', '2021-05-07', 48, 24000000, 0, 0, 24000000),
(30, 0, 'AKTIF', 'INV', 'H3357ABC', 'RODA4', 'TOYOTA YARIS', 'H3357ABC', 'PAROKI', 'SATRIO UTOMO', '2021-05-18', '2021-05-07', '1122-01', '1122-02', '2124-01', '2022-06-01', '2022-06-01', 96, 210000000, 0, 0, 210000000),
(32, 0, 'AKTIF', 'INV', '12345678910', 'TANAHBANGUNAN', 'SERT.A01B02', 'KANFER RAYA BANYUMANIK SEMARANG', 'PAROKI', 'GUWE', '2021-05-18', '2021-05-18', '1121-02', '1121-03', '2124-02', '2021-05-13', '9999-12-31', 240, 500000000, 0, 0, 500000000),
(33, 0, 'AKTIF', 'INV', 'HANDPHONE XIAOMI', 'PERALATAN', 'XIAOMI REDMI 8 NOTE', 'HANDPHONE', 'PAROKI', 'SATRIO ', '2021-05-18', '2021-05-18', '1123-02', '1123-01', '2124-03', '9999-12-31', '9999-12-31', 48, 2250000, 0, 0, 2250000);
/*!40000 ALTER TABLE `inventaris_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.jurnal_master
CREATE TABLE IF NOT EXISTS `jurnal_master` (
`jrnprm` int(11) NOT NULL AUTO_INCREMENT,
`jrn_mst_lock` int(11) DEFAULT NULL,
`jrn_mst_dt` varchar(20) DEFAULT NULL,
`jrn_mst_nobuk` varchar(20) DEFAULT NULL,
`jrn_mst_noref` varchar(20) DEFAULT NULL,
`jrn_mst_pst` varchar(20) DEFAULT NULL,
`jrn_mst_tgl` date DEFAULT NULL,
`jrn_mst_rek` varchar(20) DEFAULT NULL,
`jrn_mst_dk` varchar(20) DEFAULT NULL,
`jrn_mst_ttl` double DEFAULT NULL,
`jrn_mst_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`jrnprm`) USING BTREE,
KEY `jrn_mst_dt_kas_mst_nobuk` (`jrn_mst_dt`,`jrn_mst_nobuk`) USING BTREE,
KEY `jrn_mst_nobuk` (`jrn_mst_nobuk`) USING BTREE,
KEY `jrn_mst_dt_kas_mst_tgl` (`jrn_mst_dt`,`jrn_mst_tgl`) USING BTREE,
KEY `jrn_mst_noref` (`jrn_mst_noref`) USING BTREE,
KEY `jrn_mst_rek` (`jrn_mst_rek`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.jurnal_master: ~12 rows (approximately)
/*!40000 ALTER TABLE `jurnal_master` DISABLE KEYS */;
INSERT INTO `jurnal_master` (`jrnprm`, `jrn_mst_lock`, `jrn_mst_dt`, `jrn_mst_nobuk`, `jrn_mst_noref`, `jrn_mst_pst`, `jrn_mst_tgl`, `jrn_mst_rek`, `jrn_mst_dk`, `jrn_mst_ttl`, `jrn_mst_ket`) VALUES
(1, 0, 'KK', 'KK-20210515-18978', 'AGR-20210515-02595', 'GSU', '2021-05-15', '2121-02', 'D', 49000, 'DITERIMA OLEH SATRIO/ 3374111206850007'),
(2, 0, 'KK', 'KK-20210515-18978', 'AGR-20210515-02595', 'GSU', '2021-05-15', '1111-01', 'K', 49000, 'DITERIMA OLEH SATRIO/ 3374111206850007'),
(3, 0, 'KK', 'KK-20210515-83400', 'AGR-20210515-02595', 'GSU', '2021-05-15', '2121-02', 'D', 1000, 'SISA NYA '),
(4, 0, 'KK', 'KK-20210515-83400', 'AGR-20210515-02595', 'GSU', '2021-05-15', '1111-01', 'K', 1000, 'SISA NYA '),
(5, 0, 'KK', 'KK-20210515-84040', 'AGR-20210515-22533', 'GSU', '2021-05-15', '2123-01', 'D', 2500000, 'GAJI'),
(6, 0, 'KK', 'KK-20210515-84040', 'AGR-20210515-22533', 'GSU', '2021-05-15', '1111-02', 'K', 2500000, 'GAJI'),
(7, 0, 'KK', 'KK-20210515-76498', 'AGR-20210515-17188', 'GSU', '2021-05-15', '2123-01', 'D', 2500000, 'COBAIN'),
(8, 0, 'KK', 'KK-20210515-76498', 'AGR-20210515-17188', 'GSU', '2021-05-15', '1111-01', 'K', 2500000, 'COBAIN'),
(9, 0, 'KK', 'KK-20210515-24561', 'AGR-20210515-20456', 'GSU', '2021-05-15', '2123-01', 'D', 950000, 'TRANSFER KE BCA08912123'),
(10, 0, 'KK', 'KK-20210515-24561', 'AGR-20210515-20456', 'GSU', '2021-05-15', '1111-02', 'K', 950000, 'TRANSFER KE BCA08912123'),
(11, 0, 'KK', 'KK-20210515-46591', 'AGR-20210515-30115', 'GSU', '2021-05-15', '2123-01', 'D', 2250000, 'AMBIL TUNAI OLEH YBS'),
(12, 0, 'KK', 'KK-20210515-46591', 'AGR-20210515-30115', 'GSU', '2021-05-15', '1111-01', 'K', 2250000, 'AMBIL TUNAI OLEH YBS'),
(13, 0, 'KK', 'KK-20210518-65872', 'AGR-20210518-21838', 'GSU', '2021-05-18', '2124-03', 'D', 650000, 'DITERIMA OLEH SATRIO'),
(14, 0, 'KK', 'KK-20210518-65872', 'AGR-20210518-21838', 'GSU', '2021-05-18', '1111-01', 'K', 650000, 'DITERIMA OLEH SATRIO');
/*!40000 ALTER TABLE `jurnal_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.karyawan_master
CREATE TABLE IF NOT EXISTS `karyawan_master` (
`kryprm` int(11) NOT NULL AUTO_INCREMENT,
`kry_mst_lock` int(11) DEFAULT NULL,
`kry_mst_sts` varchar(20) DEFAULT NULL,
`kry_mst_kode` varchar(20) DEFAULT NULL,
`kry_mst_ic` varchar(20) DEFAULT NULL,
`kry_mst_alamat` varchar(2000) DEFAULT NULL,
`kry_mst_tgllhr` date DEFAULT NULL,
`kry_mst_tglkry` date DEFAULT NULL,
`kry_mst_pddk` varchar(20) DEFAULT NULL,
`kry_mst_stsanak` varchar(20) DEFAULT NULL,
`kry_mst_gol` varchar(20) DEFAULT NULL,
`kry_mst_rek` varchar(20) DEFAULT NULL,
`kry_mst_upah_pokok` double DEFAULT NULL,
`kry_mst_tunj_ttp` double DEFAULT NULL,
`kry_mst_tunj_t_ttp` double DEFAULT NULL,
PRIMARY KEY (`kryprm`) USING BTREE,
UNIQUE KEY `pst_mst_kode_pst_mst_sts` (`kry_mst_sts`,`kry_mst_kode`) USING BTREE,
UNIQUE KEY `pst_mst_kode` (`kry_mst_kode`) USING BTREE,
UNIQUE KEY `kry_mst_ic` (`kry_mst_ic`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
-- Dumping data for table gsmf-monev.karyawan_master: ~3 rows (approximately)
/*!40000 ALTER TABLE `karyawan_master` DISABLE KEYS */;
INSERT INTO `karyawan_master` (`kryprm`, `kry_mst_lock`, `kry_mst_sts`, `kry_mst_kode`, `kry_mst_ic`, `kry_mst_alamat`, `kry_mst_tgllhr`, `kry_mst_tglkry`, `kry_mst_pddk`, `kry_mst_stsanak`, `kry_mst_gol`, `kry_mst_rek`, `kry_mst_upah_pokok`, `kry_mst_tunj_ttp`, `kry_mst_tunj_t_ttp`) VALUES
(28, 0, 'AKTIF', 'UJICOBA1', '12345678910111206', 'JALAN MERBAU SELATAN DALAM 1 NO 210 SEMARANG BANYUMANIK 50267', '1985-06-12', '2015-01-01', 'S1', 'KW/2', 'TETAP', '2123-01', 1250000, 750000, 500000),
(29, 0, 'AKTIF', 'UJICOBA2', '32132132132123123123', 'JALANALAMAT', '2021-05-15', '2021-05-15', 'S1', 'KW/0', 'CALON', '2123-01', 750000, 150000, 50000),
(30, 0, 'AKTIF', 'GSU', '3374111206850007', 'MERBAU SELATAN DALAM 1/210 BANYUMANIK SEMARANG 50267', '1985-06-12', '2015-01-01', 'S1', 'KW/2', 'TETAP', '2123-01', 1500000, 500000, 250000);
/*!40000 ALTER TABLE `karyawan_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.kas_master
CREATE TABLE IF NOT EXISTS `kas_master` (
`kasprm` int(11) NOT NULL AUTO_INCREMENT,
`kas_mst_lock` int(11) DEFAULT NULL,
`kas_mst_dt` varchar(20) DEFAULT NULL,
`kas_mst_nobuk` varchar(20) DEFAULT NULL,
`kas_mst_sts` varchar(20) DEFAULT NULL,
`kas_mst_tgl` date DEFAULT NULL,
`kas_mst_pst` varchar(20) DEFAULT NULL,
`kas_mst_noref` varchar(20) DEFAULT NULL,
`kas_mst_rek` varchar(20) DEFAULT NULL,
`kas_mst_ttl` double DEFAULT NULL,
`kas_mst_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`kasprm`),
UNIQUE KEY `kas_mst_dt_kas_mst_nobuk` (`kas_mst_dt`,`kas_mst_nobuk`),
UNIQUE KEY `kas_mst_nobuk` (`kas_mst_nobuk`),
KEY `kas_mst_dt_kas_mst_tgl` (`kas_mst_dt`,`kas_mst_tgl`),
KEY `kas_mst_noref` (`kas_mst_noref`),
KEY `kas_mst_rek` (`kas_mst_rek`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.kas_master: ~6 rows (approximately)
/*!40000 ALTER TABLE `kas_master` DISABLE KEYS */;
INSERT INTO `kas_master` (`kasprm`, `kas_mst_lock`, `kas_mst_dt`, `kas_mst_nobuk`, `kas_mst_sts`, `kas_mst_tgl`, `kas_mst_pst`, `kas_mst_noref`, `kas_mst_rek`, `kas_mst_ttl`, `kas_mst_ket`) VALUES
(1, 0, 'KK', 'KK-20210515-18978', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-02595', '1111-01', -49000, 'DITERIMA OLEH SATRIO/ 3374111206850007'),
(2, 0, 'KK', 'KK-20210515-83400', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-02595', '1111-01', -1000, 'SISA NYA '),
(3, 0, 'KK', 'KK-20210515-84040', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-22533', '1111-02', -2500000, 'GAJI'),
(4, 0, 'KK', 'KK-20210515-76498', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-17188', '1111-01', -2500000, 'COBAIN'),
(5, 0, 'KK', 'KK-20210515-24561', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-20456', '1111-02', -950000, 'TRANSFER KE BCA08912123'),
(6, 0, 'KK', 'KK-20210515-46591', 'CAIR', '2021-05-15', 'GSU', 'AGR-20210515-30115', '1111-01', -2250000, 'AMBIL TUNAI OLEH YBS'),
(7, 0, 'KK', 'KK-20210518-65872', 'CAIR', '2021-05-18', 'GSU', 'AGR-20210518-21838', '1111-01', -650000, 'DITERIMA OLEH SATRIO');
/*!40000 ALTER TABLE `kas_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.kelompok_master
CREATE TABLE IF NOT EXISTS `kelompok_master` (
`kelprm` int(11) NOT NULL AUTO_INCREMENT,
`kel_mst_sts` varchar(20) DEFAULT NULL,
`kel_mst_kode` varchar(20) DEFAULT NULL,
`kel_mst_subkode` varchar(20) DEFAULT NULL,
`kel_mst_ket` varchar(2000) DEFAULT NULL,
`kel_mst_subket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`kelprm`),
UNIQUE KEY `kel_mst_kode_kel_mst_subkode_kel_mst_sts` (`kel_mst_sts`,`kel_mst_kode`,`kel_mst_subkode`),
UNIQUE KEY `kel_mst_subkode` (`kel_mst_subkode`)
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.kelompok_master: ~66 rows (approximately)
/*!40000 ALTER TABLE `kelompok_master` DISABLE KEYS */;
INSERT INTO `kelompok_master` (`kelprm`, `kel_mst_sts`, `kel_mst_kode`, `kel_mst_subkode`, `kel_mst_ket`, `kel_mst_subket`) VALUES
(68, 'AKTIF', 'A', 'A-01', 'BIDANG LITURGI DAN PERIBADATAN', 'BIDANG LITURGI DAN PERIBADATAN'),
(69, 'AKTIF', 'A', 'A-02', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN TATA PERAYAAN DAN PERIBADATAN'),
(70, 'AKTIF', 'A', 'A-03', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PRODIAKON'),
(71, 'AKTIF', 'A', 'A-04', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PUTRA-PUTRI ALTAR'),
(72, 'AKTIF', 'A', 'A-05', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PADUAN SUARA'),
(73, 'AKTIF', 'A', 'A-06', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN LEKTOR'),
(74, 'AKTIF', 'A', 'A-07', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PEMAZMUR'),
(75, 'AKTIF', 'A', 'A-08', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PEMUSIK'),
(76, 'AKTIF', 'A', 'A-09', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN DIRIGEN'),
(77, 'AKTIF', 'A', 'A-10', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN PARAMENTA'),
(78, 'AKTIF', 'A', 'A-11', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN TATA ALTAR'),
(79, 'AKTIF', 'A', 'A-12', 'BIDANG LITURGI DAN PERIBADATAN', 'TIM PELAYANAN LITURGI DAN PERIBADATAN LAIN-LAIN'),
(80, 'AKTIF', 'B', 'B-01', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'BIDANG PEWARTAAN DAN EVANGELISASI'),
(81, 'AKTIF', 'B', 'B-02', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN EVANGELISASI'),
(82, 'AKTIF', 'B', 'B-03', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN SAKRAMEN INISIASI'),
(83, 'AKTIF', 'B', 'B-04', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN KATEKIS'),
(84, 'AKTIF', 'B', 'B-05', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN KERASULAN KITAB SUCI'),
(85, 'AKTIF', 'B', 'B-06', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN USIA DINI'),
(86, 'AKTIF', 'B', 'B-07', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN ANAK'),
(87, 'AKTIF', 'B', 'B-08', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN REMAJA'),
(88, 'AKTIF', 'B', 'B-09', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN ORANG MUDA'),
(89, 'AKTIF', 'B', 'B-10', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN ORANG DEWASA'),
(90, 'AKTIF', 'B', 'B-11', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PENDAMPINGAN IMAN USIA LANJUT'),
(91, 'AKTIF', 'B', 'B-12', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PROMOSI PANGGILAN'),
(92, 'AKTIF', 'B', 'B-13', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN KOMUNIKASI SOSIAL'),
(93, 'AKTIF', 'B', 'B-14', 'BIDANG PEWARTAAN DAN EVANGELISASI', 'TIM PELAYANAN PEWARTAAN DAN EVANGELISASI LAIN-LAIN'),
(94, 'AKTIF', 'C', 'C-01', 'BIDANG PELAYANAN KEMASYARAKATAN', 'BIDANG PELAYANAN KEMASYARAKATAN'),
(95, 'AKTIF', 'C', 'C-02', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN PENGEMBANGAN SOSIAL EKONOMI'),
(96, 'AKTIF', 'C', 'C-03', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN KESEHATAN'),
(97, 'AKTIF', 'C', 'C-04', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN PENDIDIKAN'),
(98, 'AKTIF', 'C', 'C-05', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN PANGRUKTILAYA'),
(99, 'AKTIF', 'C', 'C-06', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN BERKAT SANTO YUSUF'),
(100, 'AKTIF', 'C', 'C-07', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN HUBUNGAN ANTAR AGAMA DAN KEPERCAYAAN'),
(101, 'AKTIF', 'C', 'C-08', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN KARYA KERASULAN KEMASYARAKATAN'),
(102, 'AKTIF', 'C', 'C-09', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN KEUTUHAN CIPTAAN DAN LINGKUNGAN HIDUP'),
(103, 'AKTIF', 'C', 'C-10', 'BIDANG PELAYANAN KEMASYARAKATAN', 'TIM PELAYANAN KEMASYARAKATAN LAIN-LAIN'),
(104, 'AKTIF', 'D', 'D-01', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN'),
(105, 'AKTIF', 'D', 'D-02', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'TIM PELAYANAN IBU-IBU PAROKI'),
(106, 'AKTIF', 'D', 'D-03', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'TIM PELAYANAN PASTORAL KELUARGA PAROKI'),
(107, 'AKTIF', 'D', 'D-04', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'TIM PELAYANAN KESENIAN'),
(108, 'AKTIF', 'D', 'D-05', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'TIM PELAYANAN PERPUSTAKAAN'),
(109, 'AKTIF', 'D', 'D-06', 'BIDANG PAGUYUBAN DAN PERSAUDARAAN', 'TIM PELAYANAN PAGUYUBAN DAN PERSAUDARAAN LAIN-LAIN'),
(110, 'AKTIF', 'E', 'E-01', 'BIDANG RUMAH TANGGA', 'BIDANG RUMAH TANGGA'),
(111, 'AKTIF', 'E', 'E-02', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN RUMAH TANGGA PAROKI'),
(112, 'AKTIF', 'E', 'E-03', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN RUMAH TANGGA PASTORAN'),
(113, 'AKTIF', 'E', 'E-04', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN KEAMANAN DAN PARKIR'),
(114, 'AKTIF', 'E', 'E-05', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN LISTRIK DAN AUDIO VISUAL'),
(115, 'AKTIF', 'E', 'E-06', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN PEMELIHARAAN DAN INVENTARIS'),
(116, 'AKTIF', 'E', 'E-07', 'BIDANG RUMAH TANGGA', 'TIM PELAYANAN RUMAH TANGGA LAIN-LAIN'),
(117, 'AKTIF', 'F', 'F-01', 'BIDANG PENELITIAN DAN PENGEMBANGAN', 'BIDANG PENELITIAN DAN PENGEMBANGAN'),
(118, 'AKTIF', 'F', 'F-02', 'BIDANG PENELITIAN DAN PENGEMBANGAN', 'TIM PELAYANAN PENDATAAN'),
(119, 'AKTIF', 'F', 'F-03', 'BIDANG PENELITIAN DAN PENGEMBANGAN', 'TIM PELAYANAN PENGEMBANGAN SDM'),
(120, 'AKTIF', 'F', 'F-04', 'BIDANG PENELITIAN DAN PENGEMBANGAN', 'TIM PELAYANAN PROGRAMASI DAN MONEV'),
(121, 'AKTIF', 'F', 'F-05', 'BIDANG PENELITIAN DAN PENGEMBANGAN', 'TIM PELAYANAN PENELITIAN DAN PENGEMBANGAN LAIN-LAIN'),
(122, 'AKTIF', 'G', 'G-01', 'KEPANITIAAN', 'PANITIA PASKAH'),
(123, 'AKTIF', 'G', 'G-02', 'KEPANITIAAN', 'PANITIA NATAL'),
(124, 'AKTIF', 'G', 'G-03', 'KEPANITIAAN', 'PANITIA HUT PAROKI'),
(125, 'AKTIF', 'G', 'G-04', 'KEPANITIAAN', 'PANITIA MISA DAN KEGIATAN IMLEK'),
(126, 'AKTIF', 'G', 'G-05', 'KEPANITIAAN', 'PANITIA MISA DAN KEGIATAN MALAM 1 SURO'),
(127, 'AKTIF', 'G', 'G-06', 'KEPANITIAAN', 'PANITIA MISA DAN KEGIATAN TAHUN BARU'),
(128, 'AKTIF', 'G', 'G-07', 'KEPANITIAAN', 'PANITIA MISA DAN KEGIATAN NOVENA-DEVOSI'),
(129, 'AKTIF', 'G', 'G-08', 'KEPANITIAAN', 'PANITIA HARI PANGAN SEDUNIA'),
(130, 'AKTIF', 'G', 'G-09', 'KEPANITIAAN', 'PEMBEKALAN PENGURUS DEWAN PASTORAL PAROKI'),
(131, 'AKTIF', 'G', 'G-10', 'KEPANITIAAN', 'PANITIA SAKRAMEN INISIASI'),
(132, 'AKTIF', 'G', 'G-11', 'KEPANITIAAN', 'PANITIA LAIN-LAIN'),
(133, 'AKTIF', 'H', 'H-01', 'DPPH', 'BENDAHARA'),
(134, 'AKTIF', 'I', 'I-01', 'KARYAWAN', 'ADMINISTRASI UMUM'),
(135, 'AKTIF', 'I', 'I-02', 'KARYAWAN', 'ADMINISTRASI PASTORAL'),
(136, 'AKTIF', 'I', 'I-03', 'KARYAWAN', 'ADMINISTRASI KEUANGAN'),
(137, 'AKTIF', 'I', 'I-04', 'KARYAWAN', 'PASTORAN DAN GEREJA-SOPIR'),
(138, 'AKTIF', 'I', 'I-05', 'KARYAWAN', 'PASTORAN DAN GEREJA-SATPAM'),
(139, 'AKTIF', 'I', 'I-06', 'KARYAWAN', 'PASTORAN DAN GEREJA-KOSTER'),
(140, 'AKTIF', 'I', 'I-07', 'KARYAWAN', 'PASTORAN DAN GEREJA-RUMAH TANGGA');
/*!40000 ALTER TABLE `kelompok_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.periksa_master
CREATE TABLE IF NOT EXISTS `periksa_master` (
`perprm` int(11) NOT NULL AUTO_INCREMENT,
`per_mst_dt` varchar(20) DEFAULT NULL,
`per_mst_nobuk` varchar(20) DEFAULT NULL,
`per_mst_sts` varchar(20) DEFAULT NULL,
`per_mst_tgl` date DEFAULT NULL,
`per_mst_pst` varchar(20) DEFAULT NULL,
`per_mst_ket` varchar(2000) DEFAULT NULL,
PRIMARY KEY (`perprm`),
UNIQUE KEY `per_mst_dt_per_mst_nobuk` (`per_mst_dt`,`per_mst_nobuk`) USING BTREE,
KEY `per_mst_tgl` (`per_mst_tgl`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.periksa_master: ~8 rows (approximately)
/*!40000 ALTER TABLE `periksa_master` DISABLE KEYS */;
INSERT INTO `periksa_master` (`perprm`, `per_mst_dt`, `per_mst_nobuk`, `per_mst_sts`, `per_mst_tgl`, `per_mst_pst`, `per_mst_ket`) VALUES
(1, 'VER', 'AGR-20210515-17188', 'SETUJU', '2021-05-15', 'GSU', ''),
(2, 'VER', 'AGR-20210515-22533', 'SETUJU', '2021-05-15', 'GSU', ''),
(3, 'VER', 'AGR-20210515-02595', 'SETUJU', '2021-05-15', 'GSU', ''),
(4, 'VER', 'AGR-20210515-62507', 'TOLAK', '2021-05-15', 'GSU', 'COBA TOLAK'),
(5, 'VER', 'AGR-20210515-39997', 'TOLAK', '2021-05-15', 'GSU', 'TOLAAAAK'),
(6, 'VER', 'AGR-20210515-07313', 'TOLAK', '2021-05-15', 'GSU', 'TOLAKIN LAGI'),
(7, 'VER', 'AGR-20210515-20456', 'SETUJU', '2021-05-15', 'GSU', ''),
(8, 'VER', 'AGR-20210515-30115', 'SETUJU', '2021-05-15', 'GSU', ''),
(9, 'VER', 'AGR-20210518-21838', 'SETUJU', '2021-05-18', 'GSU', '');
/*!40000 ALTER TABLE `periksa_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.peserta_master
CREATE TABLE IF NOT EXISTS `peserta_master` (
`pstprm` int(11) NOT NULL AUTO_INCREMENT,
`pst_mst_sts` varchar(20) DEFAULT NULL,
`pst_mst_kode` varchar(20) DEFAULT NULL,
`pst_mst_kel` varchar(20) DEFAULT NULL,
`pst_mst_hak` varchar(20) DEFAULT NULL,
`pst_mst_nm` varchar(2000) DEFAULT NULL,
`pst_mst_pswd` varchar(2000) DEFAULT NULL,
`pst_mst_lock` int(11) DEFAULT NULL,
PRIMARY KEY (`pstprm`),
UNIQUE KEY `pst_mst_kode_pst_mst_sts` (`pst_mst_sts`,`pst_mst_kode`),
UNIQUE KEY `pst_mst_kode` (`pst_mst_kode`),
KEY `pst_mst_kel` (`pst_mst_kel`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.peserta_master: ~7 rows (approximately)
/*!40000 ALTER TABLE `peserta_master` DISABLE KEYS */;
INSERT INTO `peserta_master` (`pstprm`, `pst_mst_sts`, `pst_mst_kode`, `pst_mst_kel`, `pst_mst_hak`, `pst_mst_nm`, `pst_mst_pswd`, `pst_mst_lock`) VALUES
(10, 'AKTIF', 'GSU', 'F-01', 'PEMILIK', 'GREGORIUSSATRIOUTOMO', '<PASSWORD>', 1),
(12, 'AKTIF', 'VERIFIKATOR1', 'H-01', 'PENGAWAS', 'NAMAVERIFIKATOR1', '<PASSWORD>', 0),
(13, 'AKTIF', 'BENDAHARA1', 'H-01', 'PELAKSANA', 'ISINAMABENDAHARA1', '68ba07abf0d370630620ea43c68fabbd', 0),
(14, 'AKTIF', 'UJICOBA1', 'F-02', 'PEMAKAI', 'NAMAUJICOBA1', '<PASSWORD>', 0),
(15, 'AKTIF', 'UJICOBA2', 'F-03', 'PEMAKAI', 'NAMAUJICOBA2', '68ba07abf0d370630620ea43c68fabbd', 0),
(16, 'AKTIF', 'UJICOBA3', 'E-02', 'PEMAKAI', 'NAMAUJICOBA3', '<PASSWORD>', 0),
(18, 'AKTIF', 'VERIFIKATOR2', 'H-01', 'PENGAWAS', 'INI_DI_ISI_NAMANYA_VERIFIKATOR2', '<PASSWORD>', 0);
/*!40000 ALTER TABLE `peserta_master` ENABLE KEYS */;
-- Dumping structure for table gsmf-monev.rekening_master
CREATE TABLE IF NOT EXISTS `rekening_master` (
`rekprm` int(11) NOT NULL AUTO_INCREMENT,
`rek_mst_sts` varchar(20) DEFAULT NULL,
`rek_mst_kel` varchar(20) DEFAULT NULL,
`rek_mst_gol` varchar(20) DEFAULT NULL,
`rek_mst_sub_gol` varchar(20) DEFAULT NULL,
`rek_mst_kode` varchar(20) DEFAULT NULL,
`rek_mst_sub_kode` varchar(20) DEFAULT NULL,
`rek_mst_ket_sub_kode` varchar(2000) DEFAULT NULL,
`rek_mst_pos` varchar(20) DEFAULT NULL,
`rek_mst_sld_awl` float DEFAULT NULL,
`rek_mst_sld_deb` float DEFAULT NULL,
`rek_mst_sld_kre` float DEFAULT NULL,
`rek_mst_sld_akh` float DEFAULT NULL,
PRIMARY KEY (`rekprm`),
UNIQUE KEY `komplit` (`rek_mst_sts`,`rek_mst_kel`,`rek_mst_gol`,`rek_mst_sub_gol`,`rek_mst_kode`,`rek_mst_sub_kode`),
UNIQUE KEY `rek_mst_sub_kode` (`rek_mst_sub_kode`)
) ENGINE=InnoDB AUTO_INCREMENT=153 DEFAULT CHARSET=utf8mb4;
-- Dumping data for table gsmf-monev.rekening_master: ~79 rows (approximately)
/*!40000 ALTER TABLE `rekening_master` DISABLE KEYS */;
INSERT INTO `rekening_master` (`rekprm`, `rek_mst_sts`, `rek_mst_kel`, `rek_mst_gol`, `rek_mst_sub_gol`, `rek_mst_kode`, `rek_mst_sub_kode`, `rek_mst_ket_sub_kode`, `rek_mst_pos`, `rek_mst_sld_awl`, `rek_mst_sld_deb`, `rek_mst_sld_kre`, `rek_mst_sld_akh`) VALUES
(74, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'SETARAKAS', '1111-01', 'KAS', 'AKTIVA', 0, 0, 0, 0),
(75, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'SETARAKAS', '1111-02', 'BANK', 'AKTIVA', 0, 0, 0, 0),
(76, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'SETARAKAS', '1111-03', 'DEPOSITO', 'AKTIVA', 0, 0, 0, 0),
(77, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'SETARAKAS', '1111-04', 'GIRO', 'AKTIVA', 0, 0, 0, 0),
(78, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PIUTANG', '1112-01', 'LEMBAGA', 'AKTIVA', 0, 0, 0, 0),
(79, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PIUTANG', '1112-02', 'PERORANGAN', 'AKTIVA', 0, 0, 0, 0),
(80, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PIUTANG', '1112-03', 'BIDANG', 'AKTIVA', 0, 0, 0, 0),
(81, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PIUTANG', '1112-04', 'TIMPELAYANAN', 'AKTIVA', 0, 0, 0, 0),
(82, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PERSEDIAAN', '1113-01', 'PERSEDIAAN', 'AKTIVA', 0, 0, 0, 0),
(83, 'AKTIF', 'NERACA', 'ASET', 'ASETLANCAR', 'PERLENGKAPAN', '1113-02', 'HABISPAKAI', 'AKTIVA', 0, 0, 0, 0),
(84, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'TIDAKBERGERAK', '1121-01', 'TANAH', 'AKTIVA', 0, 0, 0, 0),
(85, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'TIDAKBERGERAK', '1121-02', 'BANGUNAN', 'AKTIVA', 0, 0, 0, 0),
(86, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'TIDAKBERGERAK', '1121-03', 'SUSUT', 'AKTIVA', 0, 0, 0, 0),
(87, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'BERGERAK', '1122-01', 'KENDARAAN', 'AKTIVA', 0, 0, 0, 0),
(88, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'BERGERAK', '1122-02', 'SUSUT', 'AKTIVA', 0, 0, 0, 0),
(89, 'AKTIF', 'NERACA', 'ASET', 'ASETLAIN', 'LAIN', '1131-01', 'LAIN', 'AKTIVA', 250000, 0, 0, 0),
(90, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPANJANG', '1211-01', 'LEMBAGA', 'PASIVA', 0, 0, 0, 0),
(91, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPANJANG', '1211-02', 'PERORANGAN', 'PASIVA', 0, 0, 0, 0),
(92, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPENDEK', '1212-01', 'LEMBAGA', 'PASIVA', 0, 0, 0, 0),
(93, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'JANGKAPENDEK', '1212-02', 'PERORANGAN', 'PASIVA', 0, 0, 0, 0),
(94, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'KHUSUS', '1213-01', 'LEMBAGA', 'PASIVA', 0, 0, 0, 0),
(95, 'AKTIF', 'NERACA', 'KEWAJIBAN', 'KEWAJIBAN', 'KHUSUS', '1213-02', 'PERORANGAN', 'PASIVA', 0, 0, 0, 0),
(96, 'AKTIF', 'NERACA', 'ASET BERSIH', 'TIDAKTERIKAT', 'TIDAKTERIKAT', '1311-01', 'AKUMULASI', 'PASIVA', 0, 0, 0, 0),
(97, 'AKTIF', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'NONPEMBANGUNAN', '1321-01', 'AKUMULASI', 'PASIVA', 0, 0, 0, 0),
(98, 'AKTIF', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'PEMBANGUNAN', '1322-01', 'AKUMULASI', 'PASIVA', 0, 0, 0, 0),
(99, 'AKTIF', 'NERACA', 'ASET BERSIH', 'TERIKATSEMENTARA', 'UKSP', '1323-01', 'AKUMULASI', 'PASIVA', 0, 0, 0, 0),
(100, 'AKTIF', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'KOLEKTE', '2111-01', 'MISAUMUM', 'PASIVA', 0, 0, 0, 0),
(101, 'AKTIF', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'KOLEKTE', '2111-02', 'MISAKHUSUS', 'PASIVA', 0, 0, 0, 0),
(102, 'AKTIF', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'BANTUAN', '2112-01', 'LEMBAGA', 'PASIVA', 0, 0, 0, 0),
(103, 'AKTIF', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'BANTUAN', '2112-02', 'PERORANGAN', 'PASIVA', 0, 0, 0, 0),
(104, 'AKTIF', 'ANGGARAN', 'ABTT', 'PENDAPATAN', 'UMUM', '2113-01', 'BUNGABANK', 'PASIVA', 0, 0, 0, 0),
(105, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'PROGRAM', '2121-01', 'BIDANG', 'AKTIVA', 0, 0, 0, 0),
(106, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'PROGRAM', '2121-02', 'TIMPELAYANAN', 'AKTIVA', 0, 0, 0, 0),
(107, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'KARYAWAN', '2123-01', 'GAJITUNJANGANDANUPAH', 'AKTIVA', 0, 0, 0, 0),
(108, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-01', 'GEREJA', 'AKTIVA', 0, 0, 0, 0),
(109, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-02', 'RUMAHTANGGA', 'AKTIVA', 0, 0, 0, 0),
(110, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-03', 'KEAMANAN', 'AKTIVA', 0, 0, 0, 0),
(111, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-04', 'ADMINISTRASI', 'AKTIVA', 0, 0, 0, 0),
(112, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-05', 'DEVOSIONALIA', 'AKTIVA', 0, 0, 0, 0),
(113, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-06', 'AULAPAROKI', 'AKTIVA', 0, 0, 0, 0),
(114, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-07', 'DEWANPASTORAL', 'AKTIVA', 0, 0, 0, 0),
(115, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-08', 'PENYUSUTAN', 'AKTIVA', 0, 0, 0, 0),
(116, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-09', 'PAJAKBUNGABANK', 'AKTIVA', 0, 0, 0, 0),
(117, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-10', 'ADMINISTRASIBANK', 'AKTIVA', 0, 0, 0, 0),
(118, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'RUTIN', '2122-11', 'PAJAK', 'AKTIVA', 0, 0, 0, 0),
(119, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'BANTUAN', '2211-01', 'PENDIDIKAN', 'PASIVA', 0, 0, 0, 0),
(120, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'BANTUAN', '2211-02', 'KESEHATAN', 'PASIVA', 0, 0, 0, 0),
(121, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'BANTUAN', '2211-03', 'SEMINARI', 'PASIVA', 0, 0, 0, 0),
(122, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-01', 'DANAPAPAMISKIN', 'PASIVA', 0, 0, 0, 0),
(123, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-02', 'APP', 'PASIVA', 0, 0, 0, 0),
(124, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-03', 'PANGRUKTILAYA', 'PASIVA', 0, 0, 0, 0),
(125, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-04', 'BKSY', 'PASIVA', 0, 0, 0, 0),
(126, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-05', 'PENDINGCOFFEE', 'PASIVA', 0, 0, 0, 0),
(127, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'PENDAPATAN', 'UMUM', '2212-06', 'BUNGABANK', 'PASIVA', 0, 0, 0, 0),
(128, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-01', 'DANAPAPAMISKIN', 'AKTIVA', 0, 0, 0, 0),
(129, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-02', 'PENDIDIKAN', 'AKTIVA', 0, 0, 0, 0),
(130, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-03', 'KESEHATAN', 'AKTIVA', 0, 0, 0, 0),
(131, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-04', 'SEMINARI', 'AKTIVA', 0, 0, 0, 0),
(132, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-05', 'APP', 'AKTIVA', 0, 0, 0, 0),
(133, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-06', 'PANGRUKTILAYA', 'AKTIVA', 0, 0, 0, 0),
(134, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-07', 'BKSY', 'AKTIVA', 0, 0, 0, 0),
(135, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'UMUM', '2213-08', 'PENDINGCOFFEE', 'AKTIVA', 0, 0, 0, 0),
(136, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'RUTIN', '2214-01', 'PAJAKBUNGABANK', 'AKTIVA', 0, 0, 0, 0),
(137, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'RUTIN', '2214-02', 'ADMINISTRASIBANK', 'AKTIVA', 0, 0, 0, 0),
(138, 'AKTIF', 'ANGGARAN', 'ABTS-NP', 'BIAYA', 'RUTIN', '2214-03', 'PAJAK', 'AKTIVA', 0, 0, 0, 0),
(139, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'KOLEKTE', '2311-01', 'MISAUMUM', 'PASIVA', 0, 0, 0, 0),
(140, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'KOLEKTE', '2311-02', 'MISAKHUSUS', 'PASIVA', 0, 0, 0, 0),
(141, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'BANTUAN', '2312-01', 'LEMBAGA', 'PASIVA', 0, 0, 0, 0),
(142, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'BANTUAN', '2312-02', 'PERORANGAN', 'PASIVA', 0, 0, 0, 0),
(143, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'PENDAPATAN', 'UMUM', '2313-01', 'BUNGABANK', 'PASIVA', 0, 0, 0, 0),
(144, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'RUTIN', '2321-01', 'PAJAKBUNGABANK', 'AKTIVA', 0, 0, 0, 0),
(145, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'RUTIN', '2321-02', 'ADMINISTRASIBANK', 'AKTIVA', 0, 0, 0, 0),
(146, 'AKTIF', 'ANGGARAN', 'ABTS-P', 'BIAYA', 'RUTIN', '2321-03', 'PAJAK', 'AKTIVA', 0, 0, 0, 0),
(147, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'PERALATAN', '1123-01', 'SUSUT', 'AKTIVA', 0, 0, 0, 0),
(148, 'AKTIF', 'NERACA', 'ASET', 'ASETTETAP', 'PERALATAN', '1123-02', 'PERALATAN KANTOR DAN SEKERTARIAT', 'AKTIVA', 0, 0, 0, 0),
(149, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'INVENTARIS', '2124-01', 'PERAWATANKENDARAAN', 'AKTIVA', 0, 0, 0, 0),
(150, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'INVENTARIS', '2124-02', 'PERAWATANTANAHDANGEDUNG', 'AKTIVA', 0, 0, 0, 0),
(151, 'AKTIF', 'ANGGARAN', 'ABTT', 'BIAYA', 'INVENTARIS', '2124-03', 'PERAWATANPERALATAN', 'AKTIVA', 0, 0, 0, 0);
/*!40000 ALTER TABLE `rekening_master` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40111 SET SQL_NOTES=IFNULL(@OLD_SQL_NOTES, 1) */;
|
DELETE FROM `{c2r-prefix}_modules` WHERE `folder` = '{c2r-mod-folder}';
DROP TABLE IF EXISTS `{c2r-prefix}_4_files`;
|
<filename>sql/ddl.sql
-- We are declaring the return type to be queue_classic_jobs.
-- This is ok since I am assuming that all of the users added queues will
-- have identical columns to queue_classic_jobs.
-- When QC supports queues with columns other than the default, we will have to change this.
CREATE OR REPLACE FUNCTION lock_head(queue_name varchar)
RETURNS SETOF queue_classic_jobs AS $$
BEGIN
RETURN QUERY EXECUTE 'UPDATE queue_classic_jobs '
|| 'SET locked_at = now(), '
|| 'locked_by = pg_backend_pid() '
|| 'WHERE id IN ( '
|| 'SELECT id FROM queue_classic_jobs '
|| 'WHERE locked_at IS NULL AND q_name = $1 AND scheduled_at <= now() '
|| 'LIMIT 1 '
|| 'FOR NO KEY UPDATE SKIP LOCKED '
|| ') RETURNING *;' USING queue_name;
END
$$ LANGUAGE plpgsql;
-- queue_classic_notify function and trigger
CREATE FUNCTION queue_classic_notify() RETURNS TRIGGER AS $$ BEGIN
perform pg_notify(new.q_name, ''); RETURN NULL;
END $$ LANGUAGE plpgsql;
CREATE TRIGGER queue_classic_notify
AFTER INSERT ON queue_classic_jobs FOR EACH ROW
EXECUTE PROCEDURE queue_classic_notify();
|
<gh_stars>0
INSERT INTO pos_itemtemp VALUES("IATT190001937","193009","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193009"),
("IATT190001937","193034","191001","192005","37000","1","37000","0","37000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193034"),
("IATT190001937","193082","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193082"),
("IATT190001937","193071","191001","192012","18000","1","18000","0","18000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193071"),
("IATT190001937","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001937","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193046"),
("IATT190001937","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001938","193006","191001","192001","37000","1","37000","0","37000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193006"),
("IATT190001938","193030","191001","192004","27000","1","27000","0","27000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193030"),
("IATT190001938","193032","191001","192004","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193032"),
("IATT190001938","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001938","193046","191002","192010","10000","1","10000","0","10000","1","1","2","IAT1208191003","NHO2018000007","PAID","","193046"),
("IATT190001937","193084","191001","192001","30000","1","30000","0","30000","1","1","2","IAT1208191003","NHO2018000007","PAID","lvl 1","PEDAS"),
("IATT190001937","193024","191001","192003","30000","1","30000","0","30000","1","1","2","IAT1208191003","NHO2018000007","PAID","","193024"),
("IATT190001937","193071","191001","192012","18000","1","18000","0","18000","2","1","2","IAT1208191003","NHO2018000007","PAID","","193071"),
("IATT190001937","193047","191002","192010","10000","1","10000","0","10000","2","1","2","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001937","193047","191002","192010","10000","1","10000","0","10000","3","1","2","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001939","193084","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","lvl 2","PEDAS"),
("IATT190001939","193010","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193010"),
("IATT190001939","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001940","193033","191001","192005","42000","1","42000","0","42000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193033"),
("IATT190001940","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001941","193069","191001","192012","13000","1","13000","0","13000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193069"),
("IATT190001941","193054","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1208191003","NHO2018000007","PAID","no sugar","193054"),
("IATT190001942","193083","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193083"),
("IATT190001942","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193046"),
("IATT190001943","193015","191001","192002","33000","1","33000","0","33000","1","1","1","IAT1208191003","NHO2018000007","PAID","no daun bawang","ORIGINAL"),
("IATT190001943","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001944","193015","191001","192002","33000","1","33000","0","33000","1","1","1","IAT1208191003","NHO2018000007","PAID","","ORIGINAL"),
("IATT190001944","193080","191001","192002","33000","1","33000","0","33000","1","1","1","IAT1208191003","NHO2018000007","PAID","","ORIGINAL"),
("IATT190001944","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001944","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193056"),
("IATT190001945","193084","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001945","193077","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193077"),
("IATT190001945","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001945","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193056"),
("IATT190001946","193038","191001","192006","36000","1","36000","0","36000","1","1","1","IAT1208191003","NHO2018000007","PAID","pedas sedang","PEDAS"),
("IATT190001947","193076","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","lvl 2","193076"),
("IATT190001947","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001948","193079","191001","192001","30000","1","30000","9000","21000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193079"),
("IATT190001948","193078","191001","192001","30000","1","30000","9000","21000","1","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001948","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001948","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001948","193050","191002","192010","20000","1","20000","0","20000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193050"),
("IATT190001949","193100","191001","192014","74000","1","74000","0","74000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193100"),
("IATT190001949","193078","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001949","193011","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001949","193056","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193056"),
("IATT190001949","193055","191002","192010","17000","1","17000","0","17000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001949","193055","191002","192010","17000","1","17000","0","17000","2","1","1","IAT1208191003","NHO2018000007","PAID","","193055"),
("IATT190001950","193102","191001","192014","74000","1","74000","0","74000","1","1","1","IAT1208191003","NHO2018000007","PAID","ramen chicken","193102"),
("IATT190001951","193034","191001","192005","37000","1","37000","0","37000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193034"),
("IATT190001951","193011","191001","192001","40000","1","40000","0","40000","1","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001951","193011","191001","192001","40000","1","40000","0","40000","2","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001951","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001951","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001951","193047","191002","192010","10000","1","10000","0","10000","3","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001952","193011","191001","192001","40000","1","40000","12000","28000","1","1","1","IAT1208191003","NHO2018000007","PAID","lv 2
\n1 no sayur","PEDAS"),
("IATT190001952","193011","191001","192001","40000","1","40000","12000","28000","2","1","1","IAT1208191003","NHO2018000007","PAID","","PEDAS"),
("IATT190001952","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001952","193047","191002","192010","10000","1","10000","0","10000","2","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001948","193011","191001","192001","40000","1","40000","12000","28000","1","1","2","IAT1208191003","NHO2018000007","PAID","chicken","PEDAS"),
("IATT190001953","193100","191001","192014","74000","1","74000","0","74000","1","1","1","IAT1208191003","NHO2018000007","PAID","yakimesi eby fry","193100"),
("IATT190001954","193077","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193077"),
("IATT190001954","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193046"),
("IATT190001955","193046","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193046"),
("IATT190001955","193047","191002","192010","10000","1","10000","0","10000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193047"),
("IATT190001955","193076","191001","192001","30000","1","30000","0","30000","1","1","1","IAT1208191003","NHO2018000007","PAID","","193076"),
("IATT190001955","193076","191001","192001","30000","1","30000","0","30000","2","1","1","IAT1208191003","NHO2018000007","PAID","","193076");
INSERT INTO pos_salestemp VALUES("IATT190001936","","1","10000","0","0","0","0","0","12/08/2019","10:24","12/08/2019","10:46:27","ISU000012","tbl0005","CANCELED","1","PERMINTAAN CUSTOMER","","","","","","IAT1208191003","NHO2018000007"),
("IATT190001937","","3","260000","0","26000","0","286000","286000","12/08/2019","12:07","2019-08-12","12:53:32","ISU000012","tbl0013","CLOSED","1","","IATR190001885","","","","","IAT1208191003","NHO2018000007"),
("IATT190001938","","1","114000","0","11400","0","125400","125400","12/08/2019","12:10","2019-08-12","12:59:52","ISU000012","tbl0012","CLOSED","1","","IATR190001886","","","","","IAT1208191003","NHO2018000007"),
("IATT190001939","","2","80000","0","8000","0","88000","100000","12/08/2019","12:36","2019-08-12","13:03:58","ISU000012","tbl0010","CLOSED","1","","IATR190001887","","","","","IAT1208191003","NHO2018000007"),
("IATT190001940","","1","52000","0","5200","0","57200","57200","12/08/2019","12:39","2019-08-12","13:12:37","ISU000012","tbl0011","CLOSED","1","","IATR190001888","","","","","IAT1208191003","NHO2018000007"),
("IATT190001941","","2","33000","0","3300","0","36300","100000","12/08/2019","14:12","2019-08-12","17:30:00","ISU000012","tbl0012","CLOSED","1","","IATR190001893","","","","","IAT1208191003","NHO2018000007"),
("IATT190001942","","1","40000","0","4000","0","44000","50000","12/08/2019","15:20","2019-08-12","15:54:29","ISU000011","tbl0011","CLOSED","1","","IATR190001889","","","","","IAT1208191003","NHO2018000007"),
("IATT190001943","","1","50000","0","5000","0","55000","55000","12/08/2019","15:57","2019-08-12","16:33:54","ISU000011","tbl0006","CLOSED","1","","IATR190001890","","","","","IAT1208191003","NHO2018000007"),
("IATT190001944","","2","100000","0","10000","0","110000","110000","12/08/2019","15:57","2019-08-12","16:40:55","ISU000011","tbl0010","CLOSED","1","","IATR190001891","","","","","IAT1208191003","NHO2018000007"),
("IATT190001945","","2","94000","0","9400","0","103400","104000","12/08/2019","16:04","2019-08-12","17:09:03","ISU000012","tbl0011","CLOSED","1","","IATR190001892","","","","","IAT1208191003","NHO2018000007"),
("IATT190001946","","1","36000","0","3600","0","39600","50000","12/08/2019","16:39","2019-08-12","17:36:08","ISU000012","tbl0019","CLOSED","1","","IATR190001894","","","","","IAT1208191003","NHO2018000007"),
("IATT190001947","","1","47000","0","4700","0","51700","55000","12/08/2019","17:26","2019-08-12","17:50:29","ISU000012","tbl0011","CLOSED","1","","IATR190001895","","","","","IAT1208191003","NHO2018000007"),
("IATT190001948","","2","140000","30000","11000","0","121000","122000","12/08/2019","18:05","2019-08-12","19:27:55","ISU000011","tbl0010","CLOSED","1","","IATR190001899","","","","","IAT1208191003","NHO2018000007"),
("IATT190001949","","2","195000","0","19500","0","214500","250000","12/08/2019","18:11","2019-08-12","19:06:02","ISU000011","tbl0012","CLOSED","1","","IATR190001896","","","","","IAT1208191003","NHO2018000007"),
("IATT190001950","","2","74000","0","7400","0","81400","100000","12/08/2019","18:34","2019-08-12","19:52:29","ISU000011","tbl0013","CLOSED","1","","IATR190001901","","","","","IAT1208191003","NHO2018000007"),
("IATT190001951","","3","147000","0","14700","0","161700","161700","12/08/2019","18:38","2019-08-12","19:16:13","ISU000011","tbl0019","CLOSED","1","","IATR190001897","","","","","IAT1208191003","NHO2018000007"),
("IATT190001952","","2","100000","24000","7600","0","83600","83600","12/08/2019","18:38","2019-08-12","19:21:11","ISU000011","tbl0011","CLOSED","1","","IATR190001898","","","","","IAT1208191003","NHO2018000007"),
("IATT190001953","","2","74000","0","7400","0","81400","100000","12/08/2019","18:53","2019-08-12","19:39:26","ISU000011","tbl0004","CLOSED","1","","IATR190001900","","","","","IAT1208191003","NHO2018000007"),
("IATT190001954","","1","40000","0","4000","0","44000","44000","12/08/2019","20:17","2019-08-12","21:19:05","ISU000011","tbl0010","CLOSED","1","","IATR190001902","","","","","IAT1208191003","NHO2018000007"),
("IATT190001955","","2","80000","0","8000","0","88000","88000","12/08/2019","20:52","2019-08-12","21:26:15","ISU000011","tbl0011","CLOSED","1","","IATR190001903","","","","","IAT1208191003","NHO2018000007");
INSERT INTO item_void VALUES("IATT190001948","IAT1208191003","NHO2018000007","193079","193079","1","30000","Before Send","Salah Order");
INSERT INTO pos_promotion_h VALUES("IATT190001952","NPRM18000008","DISC ITEM","1","24000","eatigo 30%","IAT1208191003","PAID","NHO2018000007"),
("IATT190001948","NPRM18000008","DISC ITEM","1","30000","eatigo 30%","IAT1208191003","PAID","NHO2018000007");
INSERT INTO pos_promotion_d VALUES("IATT190001952","NPRM18000008","DISC ITEM","1","1","193011","1","12000","IAT1208191003","PAID","NHO2018000007"),
("IATT190001952","NPRM18000008","DISC ITEM","1","1","193011","2","12000","IAT1208191003","PAID","NHO2018000007"),
("IATT190001948","NPRM18000008","DISC ITEM","1","1","193079","1","9000","IAT1208191003","PAID","NHO2018000007"),
("IATT190001948","NPRM18000008","DISC ITEM","1","1","193078","1","9000","IAT1208191003","PAID","NHO2018000007"),
("IATT190001948","NPRM18000008","DISC ITEM","1","1","193011","1","12000","IAT1208191003","PAID","NHO2018000007");
INSERT INTO pos_paymenttemp VALUES("IATT190001937","VOUCHER","TRAVELOKA EATS 100K","100000","100000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001937","VOUCHER","TRAVELOKA EATS 100K","100000","100000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001937","CARD","DEBIT BCA","86000","86000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001938","CASH","OVO","125400","125400","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001939","CASH","CASH","88000","100000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001940","CASH","OVO","57200","57200","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001942","CASH","CASH","44000","50000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001943","CARD","MASTER","55000","55000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001944","CASH","CASH","110000","110000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001945","CASH","CASH","103400","104000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001941","CASH","CASH","36300","100000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001946","CASH","CASH","39600","50000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001947","CASH","CASH","51700","55000","ISU000012","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001949","CASH","CASH","214500","250000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001951","CARD","VISA","161700","161700","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001952","CARD","MASTER","83600","83600","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001948","VOUCHER","VOUCHER EATIGO 100K","100000","100000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001948","CASH","CASH","21000","22000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001953","CASH","CASH","81400","100000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001950","CASH","CASH","81400","100000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001954","CASH","OVO","44000","44000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007"),
("IATT190001955","CARD","VISA","88000","88000","ISU000011","2019-08-12","","1","","CLOSED","IAT1208191003","NHO2018000007");
|
<reponame>vatslagarg/ecom-admin-pannel-
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 13, 2021 at 06:51 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ecom`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` bigint(20) UNSIGNED NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `admins`
--
INSERT INTO `admins` (`id`, `email`, `password`, `created_at`, `updated_at`) VALUES
(1, '<EMAIL>', <PASSWORD>', '2021-03-21 18:30:00', '2021-03-24 05:57:48');
-- --------------------------------------------------------
--
-- Table structure for table `brands`
--
CREATE TABLE `brands` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `brands`
--
INSERT INTO `brands` (`id`, `name`, `image`, `status`, `created_at`, `updated_at`) VALUES
(1, 'madame', '1618328935.png', 1, '2021-04-13 10:18:55', '2021-04-13 11:09:28'),
(2, 'pepe jeans', '1618329012.png', 1, '2021-04-13 10:20:12', '2021-04-13 10:20:12');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`category_slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`status` int(11) NOT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `category_name`, `category_slug`, `created_at`, `status`, `updated_at`) VALUES
(4, 'Man', 'mans', '2021-03-25 11:13:01', 1, '2021-04-01 01:17:31'),
(6, 'women', 'woman', '2021-04-13 11:08:10', 0, '2021-04-13 11:08:33');
-- --------------------------------------------------------
--
-- Table structure for table `colors`
--
CREATE TABLE `colors` (
`id` bigint(20) UNSIGNED NOT NULL,
`color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `colors`
--
INSERT INTO `colors` (`id`, `color`, `status`, `created_at`, `updated_at`) VALUES
(1, 'black', 1, '2021-03-30 03:43:06', '2021-04-10 05:44:44'),
(2, 'pink', 1, '2021-03-30 03:45:16', '2021-04-10 05:44:46'),
(3, 'red', 1, '2021-04-10 05:44:24', '2021-04-10 05:44:24'),
(4, 'orange', 1, '2021-04-13 11:09:58', '2021-04-13 11:09:58');
-- --------------------------------------------------------
--
-- Table structure for table `coupans`
--
CREATE TABLE `coupans` (
`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` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`status` int(11) NOT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `coupans`
--
INSERT INTO `coupans` (`id`, `title`, `code`, `value`, `created_at`, `status`, `updated_at`) VALUES
(3, 'winters', 'win2021', '300', '2021-03-29 06:19:09', 1, '2021-03-31 01:32:40');
-- --------------------------------------------------------
--
-- 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, '2021_03_22_072550_create_admins_table', 1),
(2, '2021_03_22_163930_create_categories_table', 2),
(5, '2021_03_25_165720_create_coupans_table', 3),
(7, '2021_03_29_073131_create_sizes_table', 4),
(9, '2021_03_30_082611_create_colors_table', 5),
(10, '2021_03_31_070727_create_products_table', 6),
(11, '2021_04_13_152145_create_brands_table', 7);
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`category_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`brand` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`model` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`short_desc` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`desc` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`keywords` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`technical_specification` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`uses` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`warranty` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `category_id`, `name`, `image`, `slug`, `brand`, `model`, `short_desc`, `desc`, `keywords`, `technical_specification`, `uses`, `warranty`, `status`, `created_at`, `updated_at`) VALUES
(2, 4, 'vsd', '1618327474.png', 'vsd', '2', 'vsd', 'vsd', 'vsd', 'vsd', 'vsd', 'vsd', 'vsd', 1, '2021-03-31 05:25:48', '2021-04-13 10:42:42'),
(4, 4, 'T-shirts', '1618329947.png', 't-shirts', '2', '5', 'xyz', 'xyz', 'xyz', 'xyz', 'xyz', 'xyz', 1, '2021-04-13 10:35:47', '2021-04-13 10:35:47');
-- --------------------------------------------------------
--
-- Table structure for table `products_attr`
--
CREATE TABLE `products_attr` (
`id` int(11) NOT NULL,
`products_id` int(11) NOT NULL,
`sku` varchar(255) NOT NULL,
`attr_image` varchar(255) NOT NULL,
`mrp` int(11) NOT NULL,
`price` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`size_id` int(11) NOT NULL,
`color_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `products_attr`
--
INSERT INTO `products_attr` (`id`, `products_id`, `sku`, `attr_image`, `mrp`, `price`, `qty`, `size_id`, `color_id`) VALUES
(1, 2, '1', '615880426.png', 0, 0, 1, 1, 3),
(8, 4, '6', '135892113.png', 6, 6, 6, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `product_images`
--
CREATE TABLE `product_images` (
`id` int(11) NOT NULL,
`products_id` int(11) NOT NULL,
`images` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `product_images`
--
INSERT INTO `product_images` (`id`, `products_id`, `images`) VALUES
(1, 2, '760204967.png'),
(3, 4, '951795000.png'),
(4, 4, '210728345.png');
-- --------------------------------------------------------
--
-- Table structure for table `sizes`
--
CREATE TABLE `sizes` (
`id` bigint(20) UNSIGNED NOT NULL,
`size` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sizes`
--
INSERT INTO `sizes` (`id`, `size`, `status`, `created_at`, `updated_at`) VALUES
(1, 'XXL', 1, '2021-03-30 02:52:43', '2021-03-31 01:32:46'),
(2, 'XL', 1, '2021-04-13 11:08:57', '2021-04-13 11:08:57');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `colors`
--
ALTER TABLE `colors`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `coupans`
--
ALTER TABLE `coupans`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products_attr`
--
ALTER TABLE `products_attr`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sizes`
--
ALTER TABLE `sizes`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `colors`
--
ALTER TABLE `colors`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `coupans`
--
ALTER TABLE `coupans`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `products_attr`
--
ALTER TABLE `products_attr`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `sizes`
--
ALTER TABLE `sizes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 25, 2019 at 04:58 PM
-- Server version: 10.1.36-MariaDB
-- PHP Version: 7.1.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_sms`
--
-- --------------------------------------------------------
--
-- Table structure for table `grades`
--
CREATE TABLE `grades` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `grades`
--
INSERT INTO `grades` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'Grade 1', '2019-03-09 23:31:16', '2019-03-09 23:48:48');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_03_02_130333_create_user_groups_table', 1),
(4, '2019_03_02_130834_create_user_groups_relation_table', 1),
(5, '2019_03_03_035029_create_user_groups_table', 2),
(6, '2019_03_03_123555_create_user_details_table', 3),
(7, '2019_03_03_145514_add_user_groups_id_on_user_details_table', 4),
(8, '2019_03_10_064630_create_subjects_table', 5),
(9, '2019_03_10_065006_create_grades_table', 6),
(10, '2019_03_10_145203_create_schoolyears_table', 7),
(11, '2019_03_13_152150_create_sections_table', 8),
(12, '2019_03_13_165744_add_grade_id_to_subjects_table', 9),
(13, '2019_03_15_143448_create_subject_assignments_table', 10),
(14, '2019_03_16_115848_create_schedules_table', 11),
(15, '2019_03_24_091410_create_students_table', 12),
(16, '2019_03_24_134128_change_sex_column_to_gender_on_studens_table', 13),
(17, '2019_03_25_131055_change_mother_tounge_column_spelling_on_students_table', 14);
-- --------------------------------------------------------
--
-- 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 `schedules`
--
CREATE TABLE `schedules` (
`id` int(10) UNSIGNED NOT NULL,
`school_year_id` int(11) NOT NULL,
`section_id` int(11) NOT NULL,
`grade_id` int(11) NOT NULL,
`subject_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`day_id` int(11) NOT NULL,
`time_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `schedules`
--
INSERT INTO `schedules` (`id`, `school_year_id`, `section_id`, `grade_id`, `subject_id`, `user_id`, `day_id`, `time_id`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 1, 2, 0, 0, '2019-03-23 06:59:43', '2019-03-23 06:59:43'),
(2, 1, 1, 1, 1, 2, 0, 1, '2019-03-23 07:15:06', '2019-03-23 07:15:06');
-- --------------------------------------------------------
--
-- Table structure for table `schoolyears`
--
CREATE TABLE `schoolyears` (
`id` int(10) UNSIGNED NOT NULL,
`year` int(11) NOT NULL,
`is_active` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `schoolyears`
--
INSERT INTO `schoolyears` (`id`, `year`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 2018, 1, '2019-03-11 07:36:36', '2019-03-16 02:24:47'),
(2, 2019, 0, '2019-03-11 08:04:01', '2019-03-16 02:24:47');
-- --------------------------------------------------------
--
-- Table structure for table `sections`
--
CREATE TABLE `sections` (
`id` int(10) UNSIGNED NOT NULL,
`section` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`grade_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sections`
--
INSERT INTO `sections` (`id`, `section`, `grade_id`, `created_at`, `updated_at`) VALUES
(1, 'Sample Section1', '1', '2019-03-13 08:10:05', '2019-03-13 08:31:24');
-- --------------------------------------------------------
--
-- Table structure for table `students`
--
CREATE TABLE `students` (
`id` int(10) UNSIGNED NOT NULL,
`lrn` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`lname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`fname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`mname` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dob` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`mother_tounge` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`ethnic_group` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`religion` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_street` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_barangay` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_municipality` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address_province` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_father` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_mother` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `students`
--
INSERT INTO `students` (`id`, `lrn`, `lname`, `fname`, `mname`, `gender`, `dob`, `mother_tounge`, `ethnic_group`, `religion`, `address_street`, `address_barangay`, `address_municipality`, `address_province`, `parent_father`, `parent_mother`, `created_at`, `updated_at`) VALUES
(1, '123456789123', 'Last Name', 'First Name', 'Middle Name', 'm', '1992-10-11', 'Sample Mother Toung', 'Sample Ethnic Group', 'Catholic', 'Sample Street', 'Sample Barangay', 'Sample Municipality', 'Sample Province', 'Sample Father', 'Sample Mother', '2019-03-25 06:51:18', '2019-03-25 07:52:35');
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE `subjects` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`grade_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `subjects`
--
INSERT INTO `subjects` (`id`, `name`, `grade_id`, `created_at`, `updated_at`) VALUES
(1, 'Sample Subject', 1, '2019-03-10 00:45:32', '2019-03-10 01:00:33'),
(2, 'Sample Subject sasas', 1, '2019-03-13 16:09:30', '2019-03-13 16:31:18');
-- --------------------------------------------------------
--
-- Table structure for table `subject_assignments`
--
CREATE TABLE `subject_assignments` (
`id` int(10) UNSIGNED NOT NULL,
`school_year_id` int(11) NOT NULL,
`subject_id` int(11) NOT NULL,
`grade_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `subject_assignments`
--
INSERT INTO `subject_assignments` (`id`, `school_year_id`, `subject_id`, `grade_id`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 1, 2, 1, 2, '2019-03-15 08:35:33', '2019-03-15 08:35:33'),
(2, 1, 1, 0, 2, '2019-03-15 08:39:26', '2019-03-15 08:39:26');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Super Admin', '<EMAIL>', NULL, '$2y$10$qSzRw3hVXlZrvN3K3IKjI.pq90XHY/fG0LWG5Xt21WdZOE3g6boMC', NULL, '2019-03-02 07:04:01', '2019-03-02 07:04:01'),
(2, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'VBXHbthEF9', '2019-03-02 18:34:31', '2019-03-04 16:58:31'),
(3, 'Mr. <NAME> MD', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', '7wVu0AiUQF', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(4, 'Prof. <NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'AJuIWL72XR', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(5, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'J23fW1OgAj', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(6, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'FOgLNFVtTA', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(7, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'z8Yw4WgCNI', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(8, '<NAME>', 'joh<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', '2UkIptfSAJ', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(9, 'Miss <NAME> DVM', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'c1ULLf1PkH', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(10, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'JIaVRztufH', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(11, 'Dr. <NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'Y0ToeHkjO3', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(12, '<NAME> DDS', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'bCYFwD5nbC', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(13, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'jxsNkyIb4o', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(14, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'ldfnSAlqfG', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(15, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'AAWw26Lz2t', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(16, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', '2bprM6ruHX', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(17, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'zTUqhbNniJ', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(18, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'VzvoiLw2kJ', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(19, 'Dr. <NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'CDPKXTzUC4', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(20, '<NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', '8oiNArayMP', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(21, 'Dr. <NAME>', '<EMAIL>', '2019-03-02 18:34:31', '$2y$10$TKh8H1.PfQx37YgCzwiKb.KjNyWgaHb9cbcoQgdIVFlYg7B77UdFm', 'mcOwpuA5fE', '2019-03-02 18:34:31', '2019-03-02 18:34:31'),
(22, 'Sample asas', '<EMAIL>', NULL, '$2y$10$P53sLTKjKf2ppLsR5WgMIe6i6EL80pt8fuuub091BvuSU46lj1mFq', NULL, '2019-03-03 07:24:27', '2019-03-03 07:24:27'),
(23, 'Sample Teacher', '<EMAIL>', NULL, '$2y$10$y/yyeXNfkhq3aZVIIk80CONqRZBRU9SrHZgEr4p1O52iONxzVVHjy', NULL, '2019-03-03 07:29:02', '2019-03-03 07:29:02');
-- --------------------------------------------------------
--
-- Table structure for table `user_details`
--
CREATE TABLE `user_details` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`user_groups_id` int(11) NOT NULL,
`gender` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`dob` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` 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;
--
-- Dumping data for table `user_details`
--
INSERT INTO `user_details` (`id`, `user_id`, `user_groups_id`, `gender`, `address`, `dob`, `image`, `created_at`, `updated_at`) VALUES
(1, 2, 5, 'Female', 'Sample Address Sample', '1992-10-12', '1552009154.jpg', NULL, '2019-03-07 17:39:14'),
(2, 23, 5, 'Male', 'Sample Teacher', '1992-10-11', '', '2019-03-03 07:29:02', '2019-03-03 07:29:02');
-- --------------------------------------------------------
--
-- Table structure for table `user_groups`
--
CREATE TABLE `user_groups` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `user_groups`
--
INSERT INTO `user_groups` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES
(4, 'Admin', 'admin', '2019-03-03 06:13:16', '2019-03-03 06:13:16'),
(5, 'Teacher', 'teacher', '2019-03-03 06:13:34', '2019-03-03 06:13:34'),
(6, 'Registrar', 'registrar', '2019-03-03 06:13:46', '2019-03-03 06:13:46');
-- --------------------------------------------------------
--
-- Table structure for table `user_groups_relation`
--
CREATE TABLE `user_groups_relation` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(11) NOT NULL,
`user_groups_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `grades`
--
ALTER TABLE `grades`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `schedules`
--
ALTER TABLE `schedules`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `schoolyears`
--
ALTER TABLE `schoolyears`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sections`
--
ALTER TABLE `sections`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `students`
--
ALTER TABLE `students`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subject_assignments`
--
ALTER TABLE `subject_assignments`
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 `user_details`
--
ALTER TABLE `user_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_groups`
--
ALTER TABLE `user_groups`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_groups_relation`
--
ALTER TABLE `user_groups_relation`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `grades`
--
ALTER TABLE `grades`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT for table `schedules`
--
ALTER TABLE `schedules`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `schoolyears`
--
ALTER TABLE `schoolyears`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `sections`
--
ALTER TABLE `sections`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `students`
--
ALTER TABLE `students`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `subject_assignments`
--
ALTER TABLE `subject_assignments`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=24;
--
-- AUTO_INCREMENT for table `user_details`
--
ALTER TABLE `user_details`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user_groups`
--
ALTER TABLE `user_groups`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `user_groups_relation`
--
ALTER TABLE `user_groups_relation`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
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>syiammudin/demo<filename>data.sql<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64)
--
-- Host: localhost Database: qapps
-- ------------------------------------------------------
-- Server version 5.7.27-0ubuntu0.19.04.1
/*!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 `additional_attachments`
--
DROP TABLE IF EXISTS `additional_attachments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `additional_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`name_attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `additional_attachments`
--
LOCK TABLES `additional_attachments` WRITE;
/*!40000 ALTER TABLE `additional_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `additional_attachments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_authorized_personels`
--
DROP TABLE IF EXISTS `aircraft_authorized_personels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_authorized_personels` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`personal_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sta` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`skill` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amel_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ex_date_ame` date DEFAULT NULL,
`gmf_auth_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ex_date_company` date DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`license_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amel_scope` json DEFAULT NULL,
`gmf_scope` json DEFAULT NULL,
`stamp_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_authorized_personels`
--
LOCK TABLES `aircraft_authorized_personels` WRITE;
/*!40000 ALTER TABLE `aircraft_authorized_personels` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_authorized_personels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_documents`
--
DROP TABLE IF EXISTS `aircraft_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`document_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description_document` text COLLATE utf8mb4_unicode_ci,
`manufacture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ac_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`effective_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev_date` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_documents`
--
LOCK TABLES `aircraft_documents` WRITE;
/*!40000 ALTER TABLE `aircraft_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_facilities`
--
DROP TABLE IF EXISTS `aircraft_facilities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_facilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`description_main` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quantity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_facilities`
--
LOCK TABLES `aircraft_facilities` WRITE;
/*!40000 ALTER TABLE `aircraft_facilities` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_facilities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_materials`
--
DROP TABLE IF EXISTS `aircraft_materials`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_materials` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`description_material` text COLLATE utf8mb4_unicode_ci,
`pn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`availability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`camp_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`jobcard_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mpd_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`references` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`interval` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_materials`
--
LOCK TABLES `aircraft_materials` WRITE;
/*!40000 ALTER TABLE `aircraft_materials` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_materials` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_requests`
--
DROP TABLE IF EXISTS `aircraft_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_submittion_id` int(11) NOT NULL,
`number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maintenance_area` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maintenance_area_value` text COLLATE utf8mb4_unicode_ci,
`ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ability_other_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`facilities` tinyint(1) DEFAULT NULL,
`certifying_staff` tinyint(1) DEFAULT NULL,
`approved_data` tinyint(1) DEFAULT NULL,
`qualified_personel` tinyint(1) DEFAULT NULL,
`special_tools` tinyint(1) DEFAULT NULL,
`consumable` tinyint(1) DEFAULT NULL,
`other_main_value` tinyint(1) DEFAULT NULL,
`limitation` text COLLATE utf8mb4_unicode_ci,
`special_work` text COLLATE utf8mb4_unicode_ci,
`engine` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`authority` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_requests`
--
LOCK TABLES `aircraft_requests` WRITE;
/*!40000 ALTER TABLE `aircraft_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_tool_equipments`
--
DROP TABLE IF EXISTS `aircraft_tool_equipments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_tool_equipments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`description_tools` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`camp_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`jobcard_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`mpd_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`references` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`interval` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`location` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_tool_equipments`
--
LOCK TABLES `aircraft_tool_equipments` WRITE;
/*!40000 ALTER TABLE `aircraft_tool_equipments` DISABLE KEYS */;
/*!40000 ALTER TABLE `aircraft_tool_equipments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `aircraft_types`
--
DROP TABLE IF EXISTS `aircraft_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `aircraft_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`engine` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `aircraft_types`
--
LOCK TABLES `aircraft_types` WRITE;
/*!40000 ALTER TABLE `aircraft_types` DISABLE KEYS */;
INSERT INTO `aircraft_types` VALUES (1,'A320-100','AIRBUS',NULL,'2019-08-12 09:28:51',NULL,NULL,NULL),(2,'A320-200','AIRBUS',NULL,'2019-08-12 09:28:40',NULL,NULL,NULL),(3,'A330-200','AIRBUS',NULL,'2019-08-12 09:28:32',NULL,NULL,NULL),(4,'A330-300','AIRBUS',NULL,'2019-08-12 09:28:16',NULL,NULL,NULL),(5,'A330-900','AIRBUS',NULL,'2019-08-12 09:28:25',NULL,NULL,NULL),(6,'B737-200/300/400/500','BOEING',NULL,'2019-08-16 10:39:08',NULL,NULL,'CFM56-3'),(7,'737-300M3','BOEING',NULL,'2019-08-12 09:30:13','2019-08-12 09:30:13',NULL,NULL),(8,'737-3M3-SJ','BOEING',NULL,'2019-08-12 09:30:17','2019-08-12 09:30:17',NULL,NULL),(9,'737-400','BOEING',NULL,'2019-08-12 09:30:22','2019-08-12 09:30:22',NULL,NULL),(10,'737-500','BOEING',NULL,'2019-08-12 09:30:25','2019-08-12 09:30:25',NULL,NULL),(11,'737-5M3-IN','BOEING',NULL,'2019-08-12 09:30:29','2019-08-12 09:30:29',NULL,NULL),(12,'737-5M3-SJ','BOEING',NULL,'2019-08-12 09:30:41','2019-08-12 09:30:41',NULL,NULL),(13,'737-600','BOEING',NULL,'2019-08-16 10:38:35','2019-08-16 10:38:35',NULL,NULL),(14,'737-700','BOEING',NULL,'2019-08-16 10:38:38','2019-08-16 10:38:38',NULL,NULL),(15,'737-800','BOEING',NULL,NULL,NULL,NULL,NULL),(16,'737-800-SJ','BOEING',NULL,'2019-08-16 10:38:27','2019-08-16 10:38:27',NULL,NULL),(17,'737-900','BOEING',NULL,NULL,NULL,NULL,NULL),(18,'737-900-SJ','BOEING',NULL,NULL,NULL,NULL,NULL),(19,'737-MAX','BOEING',NULL,NULL,NULL,NULL,NULL),(20,'B737-6/7/8/9','BOEING',NULL,'2019-08-12 09:31:45',NULL,NULL,NULL),(21,'B747-200','BOEING',NULL,'2019-08-12 09:30:54',NULL,NULL,NULL),(22,'747-300','BOEING',NULL,NULL,NULL,NULL,NULL),(23,'747-400','BOEING',NULL,NULL,NULL,NULL,NULL),(24,'B777-300ER','BOEING',NULL,'2019-08-16 10:37:54',NULL,NULL,'GE90'),(25,'A310','AIRBUS',NULL,'2019-08-16 10:36:12','2019-08-16 10:36:12',NULL,NULL),(26,'A318','AIRBUS',NULL,'2019-08-16 10:36:15','2019-08-16 10:36:15',NULL,NULL),(27,'A319','AIRBUS',NULL,'2019-08-16 10:36:08','2019-08-16 10:36:08',NULL,NULL),(28,'B727','BOEING',NULL,'2019-08-16 10:36:21','2019-08-16 10:36:21',NULL,NULL),(29,'MD-11','BOEING',NULL,NULL,NULL,NULL,NULL),(30,'MD-80','BOEING',NULL,NULL,NULL,NULL,NULL),(31,'ATR72-600','AEREI Da Transporto Regionale','2019-05-14 14:10:28','2019-08-16 10:35:54',NULL,1,'PW-100 Series'),(32,'B747-400','BOEING','2019-08-12 09:31:07','2019-08-21 10:24:15',NULL,1,'CF6-80, PW4000, JT9D-7/-59A/-70A'),(33,'A320/A321 Neo','Airbus','2019-08-21 10:04:56','2019-08-21 10:18:53',NULL,1,'PW1100G, CFM LEAP 1A'),(34,'A320-271N','Airbus','2019-08-21 10:05:38','2019-08-21 10:05:38',NULL,1,'PW1100G'),(35,'A321-271N','Airbus','2019-08-21 10:06:00','2019-08-21 10:06:14',NULL,1,'PW1100G'),(36,'A320/A321 Neo','Airbus','2019-08-21 10:07:12','2019-08-21 10:18:46','2019-08-21 10:18:46',1,'CFM LEAP 1A'),(37,'A320-251N','Airbus','2019-08-21 10:07:35','2019-08-21 10:07:35',NULL,1,'CFM LEAP-1A26'),(38,'A321-251N','Airbus','2019-08-21 10:08:01','2019-08-21 10:08:01',NULL,1,'CFM LEAP-1A32'),(39,'A321-253N','Airbus','2019-08-21 10:08:34','2019-08-21 10:08:43',NULL,1,'CFM LEAP-1A33'),(40,'CRJ1000','Bombardier','2019-08-21 10:22:31','2019-08-21 10:22:31',NULL,1,'CF34');
/*!40000 ALTER TABLE `aircraft_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `apps`
--
DROP TABLE IF EXISTS `apps`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `apps` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`app_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`background` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`street` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`po_box` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`zip_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fax` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `apps`
--
LOCK TABLES `apps` WRITE;
/*!40000 ALTER TABLE `apps` DISABLE KEYS */;
INSERT INTO `apps` VALUES (1,'GMF AEROASIA','gmf.png','1569385886background.jpg','Soekarno Hatta International Airport','Cengkareng','Indonesia','1303','19100','+62 21 550 2489','+62 21 550 8609','<EMAIL>','2019-05-02 12:05:22','2019-08-14 09:46:30');
/*!40000 ALTER TABLE `apps` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachment_resubmit_vendors`
--
DROP TABLE IF EXISTS `attachment_resubmit_vendors`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachment_resubmit_vendors` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`vendor_management_id` int(11) NOT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachment_resubmit_vendors`
--
LOCK TABLES `attachment_resubmit_vendors` WRITE;
/*!40000 ALTER TABLE `attachment_resubmit_vendors` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachment_resubmit_vendors` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `attachment_resubmits`
--
DROP TABLE IF EXISTS `attachment_resubmits`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachment_resubmits` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachment_resubmits`
--
LOCK TABLES `attachment_resubmits` WRITE;
/*!40000 ALTER TABLE `attachment_resubmits` DISABLE KEYS */;
/*!40000 ALTER TABLE `attachment_resubmits` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `capability_lists`
--
DROP TABLE IF EXISTS `capability_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `capability_lists` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type_capability_list` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type_supplier` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`authority` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`issue` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revision` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`form_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `capability_lists`
--
LOCK TABLES `capability_lists` WRITE;
/*!40000 ALTER TABLE `capability_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `capability_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `capability_ratings`
--
DROP TABLE IF EXISTS `capability_ratings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `capability_ratings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`component_capability_list_id` int(11) NOT NULL,
`revision` int(11) DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=389 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `capability_ratings`
--
LOCK TABLES `capability_ratings` WRITE;
/*!40000 ALTER TABLE `capability_ratings` DISABLE KEYS */;
INSERT INTO `capability_ratings` VALUES (1,1,1,'DGCA RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(2,1,1,'FAA RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(3,1,1,'EASA RATING',' Landing Gear Components','2019-08-02 16:26:53','2019-08-02 16:26:53'),(4,1,1,'CAAM RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(5,2,1,'DGCA RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(6,2,1,'FAA RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(7,2,1,'EASA RATING',' Landing Gear Components','2019-08-02 16:26:53','2019-08-02 16:26:53'),(8,2,1,'CAAM RATING',' Emergency Equipment','2019-08-02 16:26:53','2019-08-02 16:26:53'),(9,3,1,'DGCA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(10,3,1,'FAA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(11,3,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(12,3,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(13,3,1,'CAAC RATING','ATA 23','2019-08-21 14:31:22','2019-08-21 14:31:22'),(14,4,1,'DGCA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(15,4,1,'FAA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(16,4,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(17,4,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(18,4,1,'CAAC RATING','ATA 23','2019-08-21 14:31:22','2019-08-21 14:31:22'),(19,5,1,'DGCA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(20,5,1,'FAA RATING','Radio','2019-08-21 14:31:22','2019-08-21 14:31:22'),(21,5,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(22,5,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:22','2019-08-21 14:31:22'),(23,5,1,'CAAC RATING','ATA 23','2019-08-21 14:31:22','2019-08-21 14:31:22'),(24,6,1,'DGCA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(25,6,1,'FAA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(26,6,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(27,6,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(28,6,1,'CAAC RATING','ATA 22','2019-08-21 14:31:22','2019-08-21 14:31:22'),(29,7,1,'DGCA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(30,7,1,'FAA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(31,7,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(32,7,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(33,7,1,'CAAC RATING','ATA 22','2019-08-21 14:31:22','2019-08-21 14:31:22'),(34,8,1,'DGCA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(35,8,1,'FAA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(36,8,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(37,8,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(38,8,1,'CAAC RATING','ATA 22','2019-08-21 14:31:22','2019-08-21 14:31:22'),(39,9,1,'DGCA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(40,9,1,'FAA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(41,9,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(42,9,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(43,9,1,'CAAC RATING','ATA 22','2019-08-21 14:31:22','2019-08-21 14:31:22'),(44,10,1,'DGCA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(45,10,1,'FAA RATING',' Accessories','2019-08-21 14:31:22','2019-08-21 14:31:22'),(46,10,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(47,10,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:22','2019-08-21 14:31:22'),(48,10,1,'CAAC RATING','ATA 22','2019-08-21 14:31:22','2019-08-21 14:31:22'),(49,11,2,'DGCA RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(50,11,2,'FAA RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(51,11,2,'EASA RATING',' Landing Gear Components','2019-08-21 14:31:48','2019-08-21 14:31:48'),(52,11,2,'CAAM RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(53,12,2,'DGCA RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(54,12,2,'FAA RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(55,12,2,'EASA RATING',' Landing Gear Components','2019-08-21 14:31:48','2019-08-21 14:31:48'),(56,12,2,'CAAM RATING',' Emergency Equipment','2019-08-21 14:31:48','2019-08-21 14:31:48'),(57,13,2,'DGCA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(58,13,2,'FAA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(59,13,2,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(60,13,2,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(61,13,2,'CAAC RATING','ATA 23','2019-08-21 14:31:49','2019-08-21 14:31:49'),(62,14,2,'DGCA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(63,14,2,'FAA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(64,14,2,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(65,14,2,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(66,14,2,'CAAC RATING','ATA 23','2019-08-21 14:31:49','2019-08-21 14:31:49'),(67,15,2,'DGCA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(68,15,2,'FAA RATING','Radio','2019-08-21 14:31:49','2019-08-21 14:31:49'),(69,15,2,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(70,15,2,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:31:49','2019-08-21 14:31:49'),(71,15,2,'CAAC RATING','ATA 23','2019-08-21 14:31:49','2019-08-21 14:31:49'),(72,16,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(73,16,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(74,16,2,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(75,16,2,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(76,16,2,'CAAC RATING','ATA 22','2019-08-21 14:31:49','2019-08-21 14:31:49'),(77,17,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(78,17,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(79,17,2,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(80,17,2,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(81,17,2,'CAAC RATING','ATA 22','2019-08-21 14:31:49','2019-08-21 14:31:49'),(82,18,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(83,18,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(84,18,2,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(85,18,2,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(86,18,2,'CAAC RATING','ATA 22','2019-08-21 14:31:49','2019-08-21 14:31:49'),(87,19,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(88,19,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(89,19,2,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(90,19,2,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(91,19,2,'CAAC RATING','ATA 22','2019-08-21 14:31:49','2019-08-21 14:31:49'),(92,20,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(93,20,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(94,20,2,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(95,20,2,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:31:49','2019-08-21 14:31:49'),(96,20,2,'CAAC RATING','ATA 22','2019-08-21 14:31:49','2019-08-21 14:31:49'),(97,21,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(98,21,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(99,21,2,'EASA RATING','C7 - Engine & APU','2019-08-21 14:31:49','2019-08-21 14:31:49'),(100,21,2,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:31:49','2019-08-21 14:31:49'),(101,22,2,'DGCA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(102,22,2,'FAA RATING',' Accessories','2019-08-21 14:31:49','2019-08-21 14:31:49'),(103,22,2,'EASA RATING','C7 - Engine & APU','2019-08-21 14:31:49','2019-08-21 14:31:49'),(104,22,2,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:31:49','2019-08-21 14:31:49'),(105,23,1,'DGCA RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(106,23,1,'FAA RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(107,23,1,'EASA RATING',' Landing Gear Components','2019-08-21 14:38:20','2019-08-21 14:38:20'),(108,23,1,'CAAM RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(109,24,1,'DGCA RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(110,24,1,'FAA RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(111,24,1,'EASA RATING',' Landing Gear Components','2019-08-21 14:38:20','2019-08-21 14:38:20'),(112,24,1,'CAAM RATING',' Emergency Equipment','2019-08-21 14:38:20','2019-08-21 14:38:20'),(113,25,1,'DGCA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(114,25,1,'FAA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(115,25,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(116,25,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(117,25,1,'CAAC RATING','ATA 23','2019-08-21 14:38:20','2019-08-21 14:38:20'),(118,26,1,'DGCA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(119,26,1,'FAA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(120,26,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(121,26,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(122,26,1,'CAAC RATING','ATA 23','2019-08-21 14:38:20','2019-08-21 14:38:20'),(123,27,1,'DGCA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(124,27,1,'FAA RATING','Radio','2019-08-21 14:38:20','2019-08-21 14:38:20'),(125,27,1,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(126,27,1,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:38:20','2019-08-21 14:38:20'),(127,27,1,'CAAC RATING','ATA 23','2019-08-21 14:38:20','2019-08-21 14:38:20'),(128,28,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(129,28,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(130,28,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(131,28,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(132,28,1,'CAAC RATING','ATA 22','2019-08-21 14:38:20','2019-08-21 14:38:20'),(133,29,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(134,29,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(135,29,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(136,29,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(137,29,1,'CAAC RATING','ATA 22','2019-08-21 14:38:20','2019-08-21 14:38:20'),(138,30,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(139,30,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(140,30,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(141,30,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(142,30,1,'CAAC RATING','ATA 22','2019-08-21 14:38:20','2019-08-21 14:38:20'),(143,31,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(144,31,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(145,31,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(146,31,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(147,31,1,'CAAC RATING','ATA 22','2019-08-21 14:38:20','2019-08-21 14:38:20'),(148,32,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(149,32,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(150,32,1,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(151,32,1,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:38:20','2019-08-21 14:38:20'),(152,32,1,'CAAC RATING','ATA 22','2019-08-21 14:38:20','2019-08-21 14:38:20'),(153,33,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(154,33,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(155,33,1,'EASA RATING','C7 - Engine & APU','2019-08-21 14:38:20','2019-08-21 14:38:20'),(156,33,1,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:38:20','2019-08-21 14:38:20'),(157,34,1,'DGCA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(158,34,1,'FAA RATING',' Accessories','2019-08-21 14:38:20','2019-08-21 14:38:20'),(159,34,1,'EASA RATING','C7 - Engine & APU','2019-08-21 14:38:20','2019-08-21 14:38:20'),(160,34,1,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:38:20','2019-08-21 14:38:20'),(161,35,3,'DGCA RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(162,35,3,'FAA RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(163,35,3,'EASA RATING',' Landing Gear Components','2019-08-21 14:42:08','2019-08-21 14:42:08'),(164,35,3,'CAAM RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(165,36,3,'DGCA RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(166,36,3,'FAA RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(167,36,3,'EASA RATING',' Landing Gear Components','2019-08-21 14:42:08','2019-08-21 14:42:08'),(168,36,3,'CAAM RATING',' Emergency Equipment','2019-08-21 14:42:08','2019-08-21 14:42:08'),(169,37,3,'DGCA RATING','Radio','2019-08-21 14:42:08','2019-08-21 14:42:08'),(170,37,3,'FAA RATING','Radio','2019-08-21 14:42:08','2019-08-21 14:42:08'),(171,37,3,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:08','2019-08-21 14:42:08'),(172,37,3,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:08','2019-08-21 14:42:08'),(173,37,3,'CAAC RATING','ATA 23','2019-08-21 14:42:08','2019-08-21 14:42:08'),(174,38,3,'DGCA RATING','Radio','2019-08-21 14:42:08','2019-08-21 14:42:08'),(175,38,3,'FAA RATING','Radio','2019-08-21 14:42:08','2019-08-21 14:42:08'),(176,38,3,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:08','2019-08-21 14:42:08'),(177,38,3,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:08','2019-08-21 14:42:08'),(178,38,3,'CAAC RATING','ATA 23','2019-08-21 14:42:08','2019-08-21 14:42:08'),(179,39,3,'DGCA RATING','Radio','2019-08-21 14:42:09','2019-08-21 14:42:09'),(180,39,3,'FAA RATING','Radio','2019-08-21 14:42:09','2019-08-21 14:42:09'),(181,39,3,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:09','2019-08-21 14:42:09'),(182,39,3,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:42:09','2019-08-21 14:42:09'),(183,39,3,'CAAC RATING','ATA 23','2019-08-21 14:42:09','2019-08-21 14:42:09'),(184,40,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(185,40,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(186,40,3,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(187,40,3,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(188,40,3,'CAAC RATING','ATA 22','2019-08-21 14:42:09','2019-08-21 14:42:09'),(189,41,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(190,41,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(191,41,3,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(192,41,3,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(193,41,3,'CAAC RATING','ATA 22','2019-08-21 14:42:09','2019-08-21 14:42:09'),(194,42,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(195,42,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(196,42,3,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(197,42,3,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(198,42,3,'CAAC RATING','ATA 22','2019-08-21 14:42:09','2019-08-21 14:42:09'),(199,43,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(200,43,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(201,43,3,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(202,43,3,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(203,43,3,'CAAC RATING','ATA 22','2019-08-21 14:42:09','2019-08-21 14:42:09'),(204,44,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(205,44,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(206,44,3,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(207,44,3,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:42:09','2019-08-21 14:42:09'),(208,44,3,'CAAC RATING','ATA 22','2019-08-21 14:42:09','2019-08-21 14:42:09'),(209,45,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(210,45,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(211,45,3,'EASA RATING','C7 - Engine & APU','2019-08-21 14:42:09','2019-08-21 14:42:09'),(212,45,3,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:42:09','2019-08-21 14:42:09'),(213,46,3,'DGCA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(214,46,3,'FAA RATING',' Accessories','2019-08-21 14:42:09','2019-08-21 14:42:09'),(215,46,3,'EASA RATING','C7 - Engine & APU','2019-08-21 14:42:09','2019-08-21 14:42:09'),(216,46,3,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:42:09','2019-08-21 14:42:09'),(217,47,4,'DGCA RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(218,47,4,'FAA RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(219,47,4,'EASA RATING',' Landing Gear Components','2019-08-21 14:45:53','2019-08-21 14:45:53'),(220,47,4,'CAAM RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(221,48,4,'DGCA RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(222,48,4,'FAA RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(223,48,4,'EASA RATING',' Landing Gear Components','2019-08-21 14:45:53','2019-08-21 14:45:53'),(224,48,4,'CAAM RATING',' Emergency Equipment','2019-08-21 14:45:53','2019-08-21 14:45:53'),(225,49,4,'DGCA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(226,49,4,'FAA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(227,49,4,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(228,49,4,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(229,49,4,'CAAC RATING','ATA 23','2019-08-21 14:45:53','2019-08-21 14:45:53'),(230,50,4,'DGCA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(231,50,4,'FAA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(232,50,4,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(233,50,4,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(234,50,4,'CAAC RATING','ATA 23','2019-08-21 14:45:53','2019-08-21 14:45:53'),(235,51,4,'DGCA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(236,51,4,'FAA RATING','Radio','2019-08-21 14:45:53','2019-08-21 14:45:53'),(237,51,4,'EASA RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(238,51,4,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-21 14:45:53','2019-08-21 14:45:53'),(239,51,4,'CAAC RATING','ATA 23','2019-08-21 14:45:53','2019-08-21 14:45:53'),(240,52,4,'DGCA RATING',' Accessories','2019-08-21 14:45:53','2019-08-21 14:45:53'),(241,52,4,'FAA RATING',' Accessories','2019-08-21 14:45:53','2019-08-21 14:45:53'),(242,52,4,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:53','2019-08-21 14:45:53'),(243,52,4,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:53','2019-08-21 14:45:53'),(244,52,4,'CAAC RATING','ATA 22','2019-08-21 14:45:53','2019-08-21 14:45:53'),(245,53,4,'DGCA RATING',' Accessories','2019-08-21 14:45:53','2019-08-21 14:45:53'),(246,53,4,'FAA RATING',' Accessories','2019-08-21 14:45:53','2019-08-21 14:45:53'),(247,53,4,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:53','2019-08-21 14:45:53'),(248,53,4,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:53','2019-08-21 14:45:53'),(249,53,4,'CAAC RATING','ATA 22','2019-08-21 14:45:53','2019-08-21 14:45:53'),(250,54,4,'DGCA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(251,54,4,'FAA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(252,54,4,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(253,54,4,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(254,54,4,'CAAC RATING','ATA 22','2019-08-21 14:45:54','2019-08-21 14:45:54'),(255,55,4,'DGCA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(256,55,4,'FAA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(257,55,4,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(258,55,4,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(259,55,4,'CAAC RATING','ATA 22','2019-08-21 14:45:54','2019-08-21 14:45:54'),(260,56,4,'DGCA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(261,56,4,'FAA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(262,56,4,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(263,56,4,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-21 14:45:54','2019-08-21 14:45:54'),(264,56,4,'CAAC RATING','ATA 22','2019-08-21 14:45:54','2019-08-21 14:45:54'),(265,57,4,'DGCA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(266,57,4,'FAA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(267,57,4,'EASA RATING','C7 - Engine & APU','2019-08-21 14:45:54','2019-08-21 14:45:54'),(268,57,4,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:45:54','2019-08-21 14:45:54'),(269,58,4,'DGCA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(270,58,4,'FAA RATING',' Accessories','2019-08-21 14:45:54','2019-08-21 14:45:54'),(271,58,4,'EASA RATING','C7 - Engine & APU','2019-08-21 14:45:54','2019-08-21 14:45:54'),(272,58,4,'CAAM RATING','C7 - Engine & APU','2019-08-21 14:45:54','2019-08-21 14:45:54'),(273,59,5,'DGCA RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(274,59,5,'FAA RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(275,59,5,'EASA RATING',' Landing Gear Components','2019-08-22 16:46:04','2019-08-22 16:46:04'),(276,59,5,'CAAM RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(277,60,5,'DGCA RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(278,60,5,'FAA RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(279,60,5,'EASA RATING',' Landing Gear Components','2019-08-22 16:46:04','2019-08-22 16:46:04'),(280,60,5,'CAAM RATING',' Emergency Equipment','2019-08-22 16:46:04','2019-08-22 16:46:04'),(281,61,5,'DGCA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(282,61,5,'FAA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(283,61,5,'EASA RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(284,61,5,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(285,61,5,'CAAC RATING','ATA 23','2019-08-22 16:46:04','2019-08-22 16:46:04'),(286,62,5,'DGCA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(287,62,5,'FAA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(288,62,5,'EASA RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(289,62,5,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(290,62,5,'CAAC RATING','ATA 23','2019-08-22 16:46:04','2019-08-22 16:46:04'),(291,63,5,'DGCA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(292,63,5,'FAA RATING','Radio','2019-08-22 16:46:04','2019-08-22 16:46:04'),(293,63,5,'EASA RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(294,63,5,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-22 16:46:04','2019-08-22 16:46:04'),(295,63,5,'CAAC RATING','ATA 23','2019-08-22 16:46:04','2019-08-22 16:46:04'),(296,64,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(297,64,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(298,64,5,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(299,64,5,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(300,64,5,'CAAC RATING','ATA 22','2019-08-22 16:46:04','2019-08-22 16:46:04'),(301,65,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(302,65,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(303,65,5,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(304,65,5,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(305,65,5,'CAAC RATING','ATA 22','2019-08-22 16:46:04','2019-08-22 16:46:04'),(306,66,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(307,66,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(308,66,5,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(309,66,5,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(310,66,5,'CAAC RATING','ATA 22','2019-08-22 16:46:04','2019-08-22 16:46:04'),(311,67,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(312,67,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(313,67,5,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(314,67,5,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(315,67,5,'CAAC RATING','ATA 22','2019-08-22 16:46:04','2019-08-22 16:46:04'),(316,68,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(317,68,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(318,68,5,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(319,68,5,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-22 16:46:04','2019-08-22 16:46:04'),(320,68,5,'CAAC RATING','ATA 22','2019-08-22 16:46:04','2019-08-22 16:46:04'),(321,69,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(322,69,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(323,69,5,'EASA RATING','C7 - Engine & APU','2019-08-22 16:46:04','2019-08-22 16:46:04'),(324,69,5,'CAAM RATING','C7 - Engine & APU','2019-08-22 16:46:04','2019-08-22 16:46:04'),(325,70,5,'DGCA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(326,70,5,'FAA RATING',' Accessories','2019-08-22 16:46:04','2019-08-22 16:46:04'),(327,70,5,'EASA RATING','C7 - Engine & APU','2019-08-22 16:46:04','2019-08-22 16:46:04'),(328,70,5,'CAAM RATING','C7 - Engine & APU','2019-08-22 16:46:04','2019-08-22 16:46:04'),(329,71,6,'DGCA RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(330,71,6,'FAA RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(331,71,6,'EASA RATING',' Landing Gear Components','2019-08-23 15:39:49','2019-08-23 15:39:49'),(332,71,6,'CAAM RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(333,72,6,'DGCA RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(334,72,6,'FAA RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(335,72,6,'EASA RATING',' Landing Gear Components','2019-08-23 15:39:49','2019-08-23 15:39:49'),(336,72,6,'CAAM RATING',' Emergency Equipment','2019-08-23 15:39:49','2019-08-23 15:39:49'),(337,73,6,'DGCA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(338,73,6,'FAA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(339,73,6,'EASA RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(340,73,6,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(341,73,6,'CAAC RATING','ATA 23','2019-08-23 15:39:49','2019-08-23 15:39:49'),(342,74,6,'DGCA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(343,74,6,'FAA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(344,74,6,'EASA RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(345,74,6,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(346,74,6,'CAAC RATING','ATA 23','2019-08-23 15:39:49','2019-08-23 15:39:49'),(347,75,6,'DGCA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(348,75,6,'FAA RATING','Radio','2019-08-23 15:39:49','2019-08-23 15:39:49'),(349,75,6,'EASA RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(350,75,6,'CAAM RATING','C5 - Electrical Power & Lights','2019-08-23 15:39:49','2019-08-23 15:39:49'),(351,75,6,'CAAC RATING','ATA 23','2019-08-23 15:39:49','2019-08-23 15:39:49'),(352,76,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(353,76,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(354,76,6,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(355,76,6,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(356,76,6,'CAAC RATING','ATA 22','2019-08-23 15:39:49','2019-08-23 15:39:49'),(357,77,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(358,77,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(359,77,6,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(360,77,6,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(361,77,6,'CAAC RATING','ATA 22','2019-08-23 15:39:49','2019-08-23 15:39:49'),(362,78,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(363,78,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(364,78,6,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(365,78,6,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(366,78,6,'CAAC RATING','ATA 22','2019-08-23 15:39:49','2019-08-23 15:39:49'),(367,79,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(368,79,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(369,79,6,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(370,79,6,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(371,79,6,'CAAC RATING','ATA 22','2019-08-23 15:39:49','2019-08-23 15:39:49'),(372,80,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(373,80,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(374,80,6,'EASA RATING','C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(375,80,6,'CAAM RATING',' C18 - Protection Ice/Rain/Fire','2019-08-23 15:39:49','2019-08-23 15:39:49'),(376,80,6,'CAAC RATING','ATA 22','2019-08-23 15:39:49','2019-08-23 15:39:49'),(377,81,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(378,81,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(379,81,6,'EASA RATING','C7 - Engine & APU','2019-08-23 15:39:49','2019-08-23 15:39:49'),(380,81,6,'CAAM RATING','C7 - Engine & APU','2019-08-23 15:39:49','2019-08-23 15:39:49'),(381,82,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(382,82,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(383,82,6,'EASA RATING','C7 - Engine & APU','2019-08-23 15:39:49','2019-08-23 15:39:49'),(384,82,6,'CAAM RATING','C7 - Engine & APU','2019-08-23 15:39:49','2019-08-23 15:39:49'),(385,83,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(386,83,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(387,84,6,'DGCA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49'),(388,84,6,'FAA RATING',' Accessories','2019-08-23 15:39:49','2019-08-23 15:39:49');
/*!40000 ALTER TABLE `capability_ratings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_attachments`
--
DROP TABLE IF EXISTS `component_attachments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`manual_status_confirmation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_maintenance_manual` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`proposed_pd_sheet` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_statement` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`simple_component_evaluation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_similarity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maintenance_record` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sample_component_relase` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`other` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_attachments`
--
LOCK TABLES `component_attachments` WRITE;
/*!40000 ALTER TABLE `component_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_attachments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_capability_lists`
--
DROP TABLE IF EXISTS `component_capability_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_capability_lists` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`capability_list_id` int(11) DEFAULT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_manufacture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ata_chapter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`capability_level` json DEFAULT NULL,
`workshop` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`for_rating` json DEFAULT NULL,
`date_approval` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`authority` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`authority_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`no_shop_ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` json DEFAULT NULL,
`manhours_planning` json DEFAULT NULL,
`personel` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`technical_data` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`major_equipment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_approve` date DEFAULT NULL,
`status_of_application` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_capability_lists`
--
LOCK TABLES `component_capability_lists` WRITE;
/*!40000 ALTER TABLE `component_capability_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_capability_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_documents`
--
DROP TABLE IF EXISTS `component_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`no_document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev_date` date DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`document_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manual_status_confirmation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_maintenance_manual` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`proposed_pd_sheet` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_documents`
--
LOCK TABLES `component_documents` WRITE;
/*!40000 ALTER TABLE `component_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_equivalents`
--
DROP TABLE IF EXISTS `component_equivalents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_equivalents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`component_test_equipment_id` int(11) NOT NULL,
`equivalent_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tool_category` json DEFAULT NULL,
`original_issued` date DEFAULT NULL,
`rev_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`issued` date DEFAULT NULL,
`distribution` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`efectifity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`doc_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason_issuance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`effect_maintenance_procedure` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ability` json DEFAULT NULL,
`reason_of_revision` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recomended_tool` json DEFAULT NULL,
`alternate_tool` json DEFAULT NULL,
`maintenance_task` json DEFAULT NULL,
`recomended` json DEFAULT NULL,
`alternate` json DEFAULT NULL,
`related_maintenance` json DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_equivalents`
--
LOCK TABLES `component_equivalents` WRITE;
/*!40000 ALTER TABLE `component_equivalents` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_equivalents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_manhours_plannings`
--
DROP TABLE IF EXISTS `component_manhours_plannings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_manhours_plannings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`task_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`man_hour` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`man_power` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_manhours_plannings`
--
LOCK TABLES `component_manhours_plannings` WRITE;
/*!40000 ALTER TABLE `component_manhours_plannings` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_manhours_plannings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_material_plannings`
--
DROP TABLE IF EXISTS `component_material_plannings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_material_plannings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_material_plannings`
--
LOCK TABLES `component_material_plannings` WRITE;
/*!40000 ALTER TABLE `component_material_plannings` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_material_plannings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_personels`
--
DROP TABLE IF EXISTS `component_personels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_personels` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nominate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`training_certificate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`staff_authorization` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`certificate_competence` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`personal_ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_personels`
--
LOCK TABLES `component_personels` WRITE;
/*!40000 ALTER TABLE `component_personels` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_personels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_requests`
--
DROP TABLE IF EXISTS `component_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_submittion_id` int(11) NOT NULL,
`component_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ata_chapter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`workshop` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`for_rating` json DEFAULT NULL,
`aproval_request_carry_out` json DEFAULT NULL,
`manager_statement` json DEFAULT NULL,
`part_number` text COLLATE utf8mb4_unicode_ci,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`equivalent_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tool_category` json DEFAULT NULL,
`original_issued` date DEFAULT NULL,
`rev_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`issued` date DEFAULT NULL,
`distribution` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`efectifity` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`doc_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason_issuance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`effect_maintenance_procedure` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ability` json DEFAULT NULL,
`reason_of_revision` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recomended_tool` json DEFAULT NULL,
`alternate_tool` json DEFAULT NULL,
`maintenance_task` json DEFAULT NULL,
`recomended` json DEFAULT NULL,
`alternate` json DEFAULT NULL,
`related_maintenance` json DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`document_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`limitation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_number_new` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_requests`
--
LOCK TABLES `component_requests` WRITE;
/*!40000 ALTER TABLE `component_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_shop_abilities`
--
DROP TABLE IF EXISTS `component_shop_abilities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_shop_abilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`shop_maintenance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shop_maintenance_no` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`summary_of_maintenance` json DEFAULT NULL,
`test_equipment` json DEFAULT NULL,
`special_tool` json DEFAULT NULL,
`capability_level` json DEFAULT NULL,
`qualified_personel` json DEFAULT NULL,
`material_planning` json DEFAULT NULL,
`manhours_planning` json DEFAULT NULL,
`consumable_material` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`test_condition` json DEFAULT NULL,
`storage_condition` json DEFAULT NULL,
`manufacture_documentation_drawing` text COLLATE utf8mb4_unicode_ci,
`inspection` text COLLATE utf8mb4_unicode_ci,
`tool_equipment` text COLLATE utf8mb4_unicode_ci,
`special_work` text COLLATE utf8mb4_unicode_ci,
`particular` text COLLATE utf8mb4_unicode_ci,
`available_qualified` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_shop_abilities`
--
LOCK TABLES `component_shop_abilities` WRITE;
/*!40000 ALTER TABLE `component_shop_abilities` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_shop_abilities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_special_tools`
--
DROP TABLE IF EXISTS `component_special_tools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_special_tools` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`available` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_pn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`equivalent` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_special_tools`
--
LOCK TABLES `component_special_tools` WRITE;
/*!40000 ALTER TABLE `component_special_tools` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_special_tools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `component_test_equipments`
--
DROP TABLE IF EXISTS `component_test_equipments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `component_test_equipments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`available` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_pn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`equivalent` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `component_test_equipments`
--
LOCK TABLES `component_test_equipments` WRITE;
/*!40000 ALTER TABLE `component_test_equipments` DISABLE KEYS */;
/*!40000 ALTER TABLE `component_test_equipments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_consumable_materials`
--
DROP TABLE IF EXISTS `engine_consumable_materials`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_consumable_materials` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description_material` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_consumable_materials`
--
LOCK TABLES `engine_consumable_materials` WRITE;
/*!40000 ALTER TABLE `engine_consumable_materials` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_consumable_materials` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_documents`
--
DROP TABLE IF EXISTS `engine_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`no_document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev_date` date DEFAULT NULL,
`document_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manual_status_confirmation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_maintenance_manual` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`proposed_pd_sheet` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_documents`
--
LOCK TABLES `engine_documents` WRITE;
/*!40000 ALTER TABLE `engine_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_personels`
--
DROP TABLE IF EXISTS `engine_personels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_personels` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`function` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`auth_no_stamp_holder` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scope_competency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`nominate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`training_certificate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`personal_ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`certificate_competence` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`staff_authorization` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_personels`
--
LOCK TABLES `engine_personels` WRITE;
/*!40000 ALTER TABLE `engine_personels` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_personels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_requests`
--
DROP TABLE IF EXISTS `engine_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_submittion_id` int(11) NOT NULL,
`part_number` text COLLATE utf8mb4_unicode_ci,
`request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`engine_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ata_chapter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`workshop` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`dgca_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`faa_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`easa_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`facilities` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`special_tools` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`spescial_equipment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qualified_personel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_data` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`appropriate_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`approval_request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment` text COLLATE utf8mb4_unicode_ci,
`for_rating` json DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_requests`
--
LOCK TABLES `engine_requests` WRITE;
/*!40000 ALTER TABLE `engine_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_shop_abilities`
--
DROP TABLE IF EXISTS `engine_shop_abilities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_shop_abilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`shop_maintenance` text COLLATE utf8mb4_unicode_ci,
`number_ability` text COLLATE utf8mb4_unicode_ci,
`summary_of_maintenance` json DEFAULT NULL,
`document_requirement` text COLLATE utf8mb4_unicode_ci,
`test_equipment_part_number` text COLLATE utf8mb4_unicode_ci,
`test_equipment_part_name` text COLLATE utf8mb4_unicode_ci,
`special_tool_part_number` text COLLATE utf8mb4_unicode_ci,
`special_tool_part_name` text COLLATE utf8mb4_unicode_ci,
`remark` text COLLATE utf8mb4_unicode_ci,
`manufacture_documentation_drawing` text COLLATE utf8mb4_unicode_ci,
`inspection` text COLLATE utf8mb4_unicode_ci,
`tool_equipment` text COLLATE utf8mb4_unicode_ci,
`special_work` text COLLATE utf8mb4_unicode_ci,
`particular` text COLLATE utf8mb4_unicode_ci,
`available_qualified` text COLLATE utf8mb4_unicode_ci,
`ablity` json DEFAULT NULL,
`ability_inspection` tinyint(1) DEFAULT '0',
`ability_testing` tinyint(1) DEFAULT '0',
`ability_repair` tinyint(1) DEFAULT '0',
`ability_modification` tinyint(4) DEFAULT '0',
`ability_overhauled` tinyint(1) DEFAULT '0',
`consumable_material` json DEFAULT NULL,
`shop_ability` text COLLATE utf8mb4_unicode_ci,
`part_name` text COLLATE utf8mb4_unicode_ci,
`part_number` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_shop_abilities`
--
LOCK TABLES `engine_shop_abilities` WRITE;
/*!40000 ALTER TABLE `engine_shop_abilities` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_shop_abilities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_special_tools`
--
DROP TABLE IF EXISTS `engine_special_tools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_special_tools` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_special_tools`
--
LOCK TABLES `engine_special_tools` WRITE;
/*!40000 ALTER TABLE `engine_special_tools` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_special_tools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_tasklist_numbers`
--
DROP TABLE IF EXISTS `engine_tasklist_numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_tasklist_numbers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`no_group` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description_tasklist` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark_tasklist` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_tasklist_numbers`
--
LOCK TABLES `engine_tasklist_numbers` WRITE;
/*!40000 ALTER TABLE `engine_tasklist_numbers` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_tasklist_numbers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_test_equipments`
--
DROP TABLE IF EXISTS `engine_test_equipments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_test_equipments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_test_equipments`
--
LOCK TABLES `engine_test_equipments` WRITE;
/*!40000 ALTER TABLE `engine_test_equipments` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_test_equipments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_tools`
--
DROP TABLE IF EXISTS `engine_tools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_tools` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`special_tool` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`base_pn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tool_desciption` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`task` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`est_arrival` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_tools`
--
LOCK TABLES `engine_tools` WRITE;
/*!40000 ALTER TABLE `engine_tools` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_tools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `engine_vendor_lists`
--
DROP TABLE IF EXISTS `engine_vendor_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `engine_vendor_lists` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`ata` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark_vendorlist` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `engine_vendor_lists`
--
LOCK TABLES `engine_vendor_lists` WRITE;
/*!40000 ALTER TABLE `engine_vendor_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `engine_vendor_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `for_ratings`
--
DROP TABLE IF EXISTS `for_ratings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `for_ratings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name_of_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`desciption` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`form_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `for_ratings`
--
LOCK TABLES `for_ratings` WRITE;
/*!40000 ALTER TABLE `for_ratings` DISABLE KEYS */;
INSERT INTO `for_ratings` VALUES (1,'DGCA RATING','Radio, Instrument, Accessories, Emergency Equipment, Landing Gear Components, Engine, Non Destructive Testing',NULL,'2019-08-21 14:40:03','1',NULL),(2,'FAA RATING','Radio, Instrument, Accessories, Emergency Equipment, Landing Gear Components, Powerplant, APU, Non Destructive Testing',NULL,'2019-08-21 14:40:42','2',NULL),(3,'EASA RATING','C1 - Air Conditioning & Pressurization, C2 - Auto Flight,C3 - Communication and Navigation,C4 - Doors & Hatches,C5 - Electrical Power & Lights,C6 - Emergency Equipment,C7 - Engine & APU,C8 - Flight Control,C9 - Fuel,C12 - Hydraulic Power,C13 - Indicating / Recording System,C14 - Landing Gear,Wheel & Brake,C15 - Oxygen,C17 - Pneumatic & Vacuum,C18 - Protection Ice/Rain/Fire,C19 - Windows, Non Destructive Testing',NULL,'2019-08-21 14:40:45','3',NULL),(4,'CAAM RATING','C1 - Air Conditioning & Pressurization,C4 - Doors & Hatches,C5 - Electrical Power & Lights,C6 - Emergency Equipment,C7 - Engine & APU,C8 - Flight Control,C14 - Landing Gear,C15 - Oxygen,C17 - Pneumatic & Vacuum, C18 - Protection Ice/Rain/Fire, Non Destructive Testing',NULL,'2019-08-21 14:40:53','4',NULL),(5,'CAAC RATING','ATA 22,ATA 23,ATA 24,ATA 25,ATA 26,ATA 31,ATA 32,ATA 33,ATA 34,ATA 35,ATA 36,ATA 45, Non Destructive Testing',NULL,'2019-08-21 14:40:59','5',NULL),(6,'CAAP RATING','Radio, Instrument, Accessories, Emergency Equipment, Landing Gear Components, Powerplant, APU, Non Destructive Testing',NULL,'2019-10-03 07:50:27','7',NULL),(7,'CAAS RATING','C1 - Air Conditioning & Pressurization, C2 - Auto Flight,C3 - Communication and Navigation,C4 - Doors & Hatches,C5 - Electrical Power & Lights,C6 - Emergency Equipment,C7 - Engine & APU,C8 - Flight Control,C9 - Fuel,C12 - Hydraulic Power,C13 - Indicating / Recording System,C14 - Landing Gear,Wheel & Brake,C15 - Oxygen,C17 - Pneumatic & Vacuum,C18 - Protection Ice/Rain/Fire,C19 - Windows, Non Destructive Testing',NULL,'2019-10-03 07:54:25','6',NULL);
/*!40000 ALTER TABLE `for_ratings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `hangars`
--
DROP TABLE IF EXISTS `hangars`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `hangars` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hangar_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `hangars`
--
LOCK TABLES `hangars` WRITE;
/*!40000 ALTER TABLE `hangars` DISABLE KEYS */;
INSERT INTO `hangars` VALUES (1,'Hangar 1',NULL,NULL),(2,'Hangar 2',NULL,NULL),(3,'Hangar 3',NULL,NULL),(4,'Hangar 4',NULL,NULL);
/*!40000 ALTER TABLE `hangars` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issues`
--
DROP TABLE IF EXISTS `issues`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issues` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`issue` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issues`
--
LOCK TABLES `issues` WRITE;
/*!40000 ALTER TABLE `issues` DISABLE KEYS */;
INSERT INTO `issues` VALUES (1,'A',NULL,NULL),(2,'B',NULL,NULL),(3,'C',NULL,NULL),(4,'D',NULL,NULL),(5,'E',NULL,NULL),(6,'F',NULL,NULL),(7,'G',NULL,NULL),(8,'H',NULL,NULL),(9,'I',NULL,NULL),(10,'J',NULL,NULL),(11,'K',NULL,NULL),(12,'L',NULL,NULL),(13,'M',NULL,NULL),(14,'N',NULL,NULL),(15,'O',NULL,NULL),(16,'P',NULL,NULL),(17,'Q',NULL,NULL),(18,'R',NULL,NULL),(19,'S',NULL,NULL),(20,'T',NULL,NULL),(21,'U',NULL,NULL),(22,'V',NULL,NULL),(23,'W',NULL,NULL),(24,'X',NULL,NULL),(25,'Y',NULL,NULL),(26,'Z',NULL,NULL),(27,'AA',NULL,NULL),(28,'AB',NULL,NULL),(29,'AC',NULL,NULL),(30,'AD',NULL,NULL),(31,'AE',NULL,NULL),(32,'AF',NULL,NULL),(33,'AG',NULL,NULL),(34,'AH',NULL,NULL),(35,'AI',NULL,NULL),(36,'AJ',NULL,NULL),(37,'AK',NULL,NULL),(38,'AL',NULL,NULL),(39,'AM',NULL,NULL),(40,'AN',NULL,NULL),(41,'AO',NULL,NULL),(42,'AP',NULL,NULL),(43,'AQ',NULL,NULL),(44,'AR',NULL,NULL),(45,'AS',NULL,NULL),(46,'AT',NULL,NULL),(47,'AU',NULL,NULL),(48,'AV',NULL,NULL),(49,'AW',NULL,NULL),(50,'AX',NULL,NULL),(51,'AY',NULL,NULL),(52,'AZ',NULL,NULL);
/*!40000 ALTER TABLE `issues` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `main_fns`
--
DROP TABLE IF EXISTS `main_fns`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `main_fns` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `main_fns`
--
LOCK TABLES `main_fns` WRITE;
/*!40000 ALTER TABLE `main_fns` DISABLE KEYS */;
INSERT INTO `main_fns` VALUES (1,'[WE]-Welding',NULL,NULL),(2,'[PE]-Short Peening',NULL,NULL),(3,'[NDI]-Non Destructive Inpection',NULL,NULL),(4,'[SP]-belum tau',NULL,NULL),(6,'[MC]-Machining','2019-07-16 08:59:35','2019-07-16 08:59:35'),(7,'[CL]-Cleaning','2019-07-16 09:03:58','2019-07-16 09:03:58');
/*!40000 ALTER TABLE `main_fns` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `maintenance_areas`
--
DROP TABLE IF EXISTS `maintenance_areas`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `maintenance_areas` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`station` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=298 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `maintenance_areas`
--
LOCK TABLES `maintenance_areas` WRITE;
/*!40000 ALTER TABLE `maintenance_areas` DISABLE KEYS */;
INSERT INTO `maintenance_areas` VALUES (1,'1000','GMF Planning Plant','Line Station',NULL,NULL,NULL,NULL),(2,'AMD1','Sardar Vallabhai Patel Airport','Line Station',NULL,NULL,NULL,NULL),(3,'AMQ1','Pattimura LMS Ambon','Line Station',NULL,NULL,NULL,NULL),(4,'AMS1','Schiphol LMS Amsterdam','Line Station',NULL,NULL,NULL,NULL),(5,'ATH1','Athena LMS','Line Station',NULL,NULL,NULL,NULL),(6,'AUH1','Abu Dhabi LMS','Line Station',NULL,NULL,NULL,NULL),(7,'BDJ1','Sjamsudin Noor LMS Banjarmasin','Line Station',NULL,NULL,NULL,NULL),(8,'BDO1','Husein S Negara LMS Bandung','Line Station',NULL,NULL,NULL,NULL),(9,'BEJ1','LMS Kalimarau Airport','Line Station',NULL,NULL,NULL,NULL),(10,'BIK1','Frans Kaisiepo LMS Biak','Line Station',NULL,NULL,NULL,NULL),(11,'BJW1','LMS Soa Bajawa Airport','Line Station',NULL,NULL,NULL,NULL),(12,'BKK1','Suvarnabhumi LMS Bangkok','Line Station',NULL,NULL,NULL,NULL),(13,'BKS1','LMS Fatmawati Soekarno Airport','Line Station',NULL,NULL,NULL,NULL),(14,'BMU1','LMS SultanM.Salahuddin Airport','Line Station',NULL,NULL,NULL,NULL),(15,'BNE1','LMS Brisbane Airport','Line Station',NULL,NULL,NULL,NULL),(16,'BOM1','CHATRAPATI SHIVAJI INTERNATIONAL AIRPORT','Line Station',NULL,NULL,NULL,NULL),(17,'BPN1','Sepinggan LMS Balikpapan','Line Station',NULL,NULL,NULL,NULL),(18,'BTH1','Hang Nadim LMS Batam','Line Station',NULL,NULL,NULL,NULL),(19,'BTJ1','S Iskandar Muda LMS Banda Aceh','Line Station',NULL,NULL,NULL,NULL),(20,'BUA1','LMS Bua Luwu Airport','Line Station',NULL,NULL,NULL,NULL),(21,'BUW1','LMS BetoAmbari(Baubau) Airport','Line Station',NULL,NULL,NULL,NULL),(22,'BWX1','LMS Blimbingsari Airport','Line Station',NULL,NULL,NULL,NULL),(23,'CAN1','Baiyun LMS Guangzhou','Line Station',NULL,NULL,NULL,NULL),(24,'CDG1','Paris C de Gaulle LMS Paris','Line Station',NULL,NULL,NULL,NULL),(25,'CGK1','Cengkareng Terminal 1','Line Station',NULL,NULL,NULL,NULL),(26,'CGK2','Cengkareng Terminal 2','Line Station',NULL,NULL,NULL,NULL),(27,'CGK3','Cengkareng Terminal 3','Line Station',NULL,NULL,NULL,NULL),(28,'CGO1','Xinzheng Zhengzhou Airport','Line Station',NULL,NULL,NULL,NULL),(29,'CKG1','LMS Chongqing Airport','Line Station',NULL,NULL,NULL,NULL),(30,'CSX1','LMS Changsha Huanghua Airport','Line Station',NULL,NULL,NULL,NULL),(31,'CTU1','Shuangliu Chengdu Airport','Line Station',NULL,NULL,NULL,NULL),(32,'DEK1','LMS Dekai Airport','Line Station',NULL,NULL,NULL,NULL),(33,'DIL1','LMS Presidente Nicolau Airport','Line Station',NULL,NULL,NULL,NULL),(34,'DJB1','S Taha Syarifudin LMS Jambi','Line Station',NULL,NULL,NULL,NULL),(35,'DJJ1','Sentani LMS Jayapura','Line Station',NULL,NULL,NULL,NULL),(36,'DME1','Domodedovo LMS Moscow','Line Station',NULL,NULL,NULL,NULL),(37,'DPS1','Ngurah Rai LMS Denpasar','Line Station',NULL,NULL,NULL,NULL),(38,'DRW1','LMS Darwin Airport, Australia','Line Station',NULL,NULL,NULL,NULL),(39,'DTB1','LMS Silangit Airport','Line Station',NULL,NULL,NULL,NULL),(40,'DUM1','Pinang Kampai Airport','Line Station',NULL,NULL,NULL,NULL),(41,'DVO1','LMS Francisco Bangoy Airport','Line Station',NULL,NULL,NULL,NULL),(42,'DWC1','DUBAI AL-MAKTOUM AIRPORT','Line Station',NULL,NULL,NULL,NULL),(43,'DXB1','DUBAI INTERNATIONAL AIRPORT','Line Station',NULL,NULL,NULL,NULL),(44,'ENE1','LMS H.HasanAroeboesman Airport','Line Station',NULL,NULL,NULL,NULL),(45,'ENG1','ENGINEERING SERVICES','Line Station',NULL,NULL,NULL,NULL),(46,'FCLT','GMF Corporate Affair','Line Station',NULL,NULL,NULL,NULL),(47,'FCO1','Rome Fiumicino LMS Rome','Line Station',NULL,NULL,NULL,NULL),(48,'FLZ1','LMS Ferdinand Lumban T Airport','Line Station',NULL,NULL,NULL,NULL),(49,'GADC','GMF Aeroasia Distribution Centre','Line Station',NULL,NULL,NULL,NULL),(50,'GAEM','Engine Maintenance Shop','Line Station',NULL,NULL,NULL,NULL),(51,'GAH1','HANGAR 1','Hangar',NULL,NULL,NULL,NULL),(52,'GAH2','HANGAR 2','Hangar',NULL,NULL,NULL,NULL),(53,'GAH3','HANGAR 3','Hangar',NULL,NULL,NULL,NULL),(54,'GAH4','HANGAR 4','Hangar',NULL,NULL,NULL,NULL),(55,'GAH5','HANGAR 5','Hangar',NULL,NULL,NULL,NULL),(56,'GAHS','GMF Aeroasia Hangar Surabaya','Hangar',NULL,NULL,NULL,NULL),(57,'GASS','GMF Aircraft Support Services','Line Station',NULL,NULL,NULL,NULL),(58,'GNS1','LMS BinakaGunungsitoli Airport','Line Station',NULL,NULL,NULL,NULL),(59,'GTO1','Jalaluddin LMS Gorontalo','Line Station',NULL,NULL,NULL,NULL),(60,'HBIK','HANGAR BIAK','Line Station',NULL,NULL,NULL,NULL),(61,'HBPN','HANGAR BALIKPAPAN','Line Station',NULL,NULL,NULL,NULL),(62,'HDPS','HANGAR DENPASAR','Line Station',NULL,NULL,NULL,NULL),(63,'HFJR','HANGAR FUJAIRAH','Line Station',NULL,NULL,NULL,NULL),(64,'HKG1','Hongkong LMS','Line Station',NULL,NULL,NULL,NULL),(65,'HLP1','Halim P Kusuma LMS Jakarta','Line Station',NULL,NULL,NULL,NULL),(66,'HMDC','HANGAR MANADO','Line Station',NULL,NULL,NULL,NULL),(67,'HND1','Haneda LMS Tokyo','Line Station',NULL,NULL,NULL,NULL),(68,'HSUB','HANGAR SURABAYA','Line Station',NULL,NULL,NULL,NULL),(69,'ICN1','Incheon International Airport','Line Station',NULL,NULL,NULL,NULL),(70,'IGTE','Industrial Gas Turbine n Engine','Line Station',NULL,NULL,NULL,NULL),(71,'JBB1','LMS Jember Airport','Line Station',NULL,NULL,NULL,NULL),(72,'JED1','King Abdul Azis LMS Jeddah','Line Station',NULL,NULL,NULL,NULL),(73,'JFK1','PT.Garuda Maintenance Facility AeroAsia','Line Station',NULL,NULL,NULL,NULL),(74,'JHB1','LMS Senai Int.l Airport','Line Station',NULL,NULL,NULL,NULL),(75,'JOG1','Adi Sucipto LMS Yogyakarta','Line Station',NULL,NULL,NULL,NULL),(76,'KAZ1','LMS Kuabang Kau Airport','Line Station',NULL,NULL,NULL,NULL),(77,'KDI1','Wolter Monginsidi LMS Kendari','Line Station',NULL,NULL,NULL,NULL),(78,'KIX1','LMS Kansai Airport','Line Station',NULL,NULL,NULL,NULL),(79,'KJT1','Kertajati LMS','Line Station',NULL,NULL,NULL,NULL),(80,'KMG1','Kunming Changshui Int Airport','Line Station',NULL,NULL,NULL,NULL),(81,'KNG1','LMS Kaimana Airport','Line Station',NULL,NULL,NULL,NULL),(82,'KNO1','LMS Kuala Namu Airport','Line Station',NULL,NULL,NULL,NULL),(83,'KOE1','Eltari LMS Kupang','Line Station',NULL,NULL,NULL,NULL),(84,'KSR1','H.AEROPPALA AIRPORT','Line Station',NULL,NULL,NULL,NULL),(85,'KTG1','LMS Rahadi Oesman Airport','Line Station',NULL,NULL,NULL,NULL),(86,'KUL1','Kuala Lumpur LMS','Line Station',NULL,NULL,NULL,NULL),(87,'KWE1','Longdongbao Airport','Line Station',NULL,NULL,NULL,NULL),(88,'LAX1','Los Angeles LMS','Line Station',NULL,NULL,NULL,NULL),(89,'LBJ1','LMS Komodo Airport','Line Station',NULL,NULL,NULL,NULL),(90,'LGW1','LMS London Gatwick Airport','Line Station',NULL,NULL,NULL,NULL),(91,'LHR1','London LMS','Line Station',NULL,NULL,NULL,NULL),(92,'LLG1','LUBUKLINGGAU AIRPORT','Line Station',NULL,NULL,NULL,NULL),(93,'LLO1','LMS Palopo Airport','Line Station',NULL,NULL,NULL,NULL),(94,'LOP1','Lombok LMS','Line Station',NULL,NULL,NULL,NULL),(95,'LSW1','LMS Malikus Saleh Airport','Line Station',NULL,NULL,NULL,NULL),(96,'LUV1','LMS Langgur Airport','Line Station',NULL,NULL,NULL,NULL),(97,'LUW1','LMS Syukuran Aminudin Airport','Line Station',NULL,NULL,NULL,NULL),(98,'MAJ1','Amata Kabua Int Airport','Line Station',NULL,NULL,NULL,NULL),(99,'MAN1','Manchester LMS','Line Station',NULL,NULL,NULL,NULL),(100,'MCT1','Muscat LMS','Line Station',NULL,NULL,NULL,NULL),(101,'MDC1','Sam ratulangi LMS Manado','Line Station',NULL,NULL,NULL,NULL),(102,'MDN1','Madison Municipal Airport','Line Station',NULL,NULL,NULL,NULL),(103,'MED1','LMS PMBA Madinah Airport','Line Station',NULL,NULL,NULL,NULL),(104,'MEL1','Meulborne LMS','Line Station',NULL,NULL,NULL,NULL),(105,'MEQ1','LMS Cut Nyak Dhien Airport','Line Station',NULL,NULL,NULL,NULL),(106,'MES1','Polonia LMS Medan','Line Station',NULL,NULL,NULL,NULL),(107,'MJU1','LMS TampaPadang-Mamuju Airport','Line Station',NULL,NULL,NULL,NULL),(108,'MKQ1','LMS Mopah Airport','Line Station',NULL,NULL,NULL,NULL),(109,'MKW1','LMS Rendani-Manokwari Airport','Line Station',NULL,NULL,NULL,NULL),(110,'MLG1','Abdul Rahman Saleh LMS Malang','Line Station',NULL,NULL,NULL,NULL),(111,'MNA1','LMS Melongguane Airport','Line Station',NULL,NULL,NULL,NULL),(112,'MNL1','LMS Manila Ninoy Aquino Airpor','Line Station',NULL,NULL,NULL,NULL),(113,'MOF1','Wai Oti Airport','Line Station',NULL,NULL,NULL,NULL),(114,'MRG1','Mareeba Airport','Line Station',NULL,NULL,NULL,NULL),(115,'NBX1','LMS Douw Aturure Airport','Line Station',NULL,NULL,NULL,NULL),(116,'NGB1','Ningbo Lishe Int Airport','Line Station',NULL,NULL,NULL,NULL),(117,'NGO1','Chubu Centrair Int Airport','Line Station',NULL,NULL,NULL,NULL),(118,'NHL1','Honolulu International Airport','Line Station',NULL,NULL,NULL,NULL),(119,'NKG1','Nanjing Lukou Airport','Line Station',NULL,NULL,NULL,NULL),(120,'NNG1','Nanning Wuxu Airport','Line Station',NULL,NULL,NULL,NULL),(121,'NRT1','Narita LMS Tokyo','Line Station',NULL,NULL,NULL,NULL),(122,'NTX1','Ranai Airport','Line Station',NULL,NULL,NULL,NULL),(123,'OKL1','LMS Oksibil Airport','Line Station',NULL,NULL,NULL,NULL),(124,'PCB1','LMS Pondok Cabe Airport','Line Station',NULL,NULL,NULL,NULL),(125,'PDG1','Minangkabau LMS Padang','Line Station',NULL,NULL,NULL,NULL),(126,'PEK1','Beijing LMS','Line Station',NULL,NULL,NULL,NULL),(127,'PEN1','Penang International Airport','Line Station',NULL,NULL,NULL,NULL),(128,'PER1','Perth LMS','Line Station',NULL,NULL,NULL,NULL),(129,'PGDC','PLB Central Distribution','Line Station',NULL,NULL,NULL,NULL),(130,'PGK1','Depati Amir LMS Pangkalpinang','Line Station',NULL,NULL,NULL,NULL),(131,'PKN1','LMS Iskandar Airport','Line Station',NULL,NULL,NULL,NULL),(132,'PKU1','S Syarif Kasim LMS Pekan Baru','Line Station',NULL,NULL,NULL,NULL),(133,'PKY1','Tjilik Riwut LMS Palangkaraya','Line Station',NULL,NULL,NULL,NULL),(134,'PLM1','S Badaruddin II LMS Palembang','Line Station',NULL,NULL,NULL,NULL),(135,'PLW1','Mutiara LMS Palu','Line Station',NULL,NULL,NULL,NULL),(136,'PMA1','GMF Product Manufacturing','Line Station',NULL,NULL,NULL,NULL),(137,'PNK1','Supadio Airport (Pontianak)','Line Station',NULL,NULL,NULL,NULL),(138,'PSJ1','LMS Kasiguncu (Poso) Airport','Line Station',NULL,NULL,NULL,NULL),(139,'PSU1','LMS Pangsuma-Putusibau Airport','Line Station',NULL,NULL,NULL,NULL),(140,'PUM1','LMS Pomala Airport','Line Station',NULL,NULL,NULL,NULL),(141,'PVG1','Pudong LMS Shang Hai','Line Station',NULL,NULL,NULL,NULL),(142,'RAQ1','SUGIMANURU AIRPORT','Line Station',NULL,NULL,NULL,NULL),(143,'RUH1','King Khaled Int Airport','Line Station',NULL,NULL,NULL,NULL),(144,'SBG1','LMS Maimun Saleh Airport','Line Station',NULL,NULL,NULL,NULL),(145,'SEL1','Incheon LMS Seoul','Line Station',NULL,NULL,NULL,NULL),(146,'SGN1','Tan Son Nhat Int Airport','Line Station',NULL,NULL,NULL,NULL),(147,'SHE1','Taoxian Airport','Line Station',NULL,NULL,NULL,NULL),(148,'SHJ1','SHARJAH INTERNATIONAL AIRPORT','Line Station',NULL,NULL,NULL,NULL),(149,'SIN1','Changi LMS Singapore','Line Station',NULL,'2019-08-12 15:42:03','2019-08-12 15:42:03',NULL),(150,'SOC1','Adi Sumarno LMS Solo','Line Station',NULL,'2019-08-12 15:42:03','2019-08-12 15:42:03',NULL),(151,'SOQ1','LMS Domine Eduard Osok Airport','Line Station',NULL,'2019-08-12 15:42:02','2019-08-12 15:42:02',NULL),(152,'SQG1','LMS Susilo Airport','Line Station',NULL,'2019-08-12 15:42:01','2019-08-12 15:42:01',NULL),(153,'SRG1','Achmad Yani LMS Semarang','Line Station',NULL,'2019-08-12 15:41:59','2019-08-12 15:41:59',NULL),(154,'SRI1','SAMARINDA AIRPORT','Line Station',NULL,'2019-08-12 15:41:59','2019-08-12 15:41:59',NULL),(155,'STOR','GMF Repository Centre','Line Station',NULL,'2019-08-12 15:41:57','2019-08-12 15:41:57',NULL),(156,'SUB1','Juanda LMS Surabaya','Line Station',NULL,'2019-08-12 15:41:57','2019-08-12 15:41:57',NULL),(157,'SUB2','LMS Juanda Terminal 2','Line Station',NULL,'2019-08-12 15:41:55','2019-08-12 15:41:55',NULL),(158,'SWQ1','LMS Sultan Muhammad Kaharuddin','Line Station',NULL,'2019-08-12 15:41:53','2019-08-12 15:41:53',NULL),(159,'SXK1','LMS Olilit (Saumlaki) Airport','Line Station',NULL,'2019-08-12 15:41:52','2019-08-12 15:41:52',NULL),(160,'SYD1','Sydney LMS','Line Station',NULL,'2019-08-12 15:41:51','2019-08-12 15:41:51',NULL),(161,'TIM1','Mozes Kilangin LMS Timika','Line Station',NULL,'2019-08-12 15:41:50','2019-08-12 15:41:50',NULL),(162,'TJQ1','LMS HAS. Hanandjoeddin Airport','Line Station',NULL,'2019-08-12 15:41:49','2019-08-12 15:41:49',NULL),(163,'TKG1','R Inten II LMS Tanjung Karang','Line Station',NULL,'2019-08-12 15:41:48','2019-08-12 15:41:48',NULL),(164,'TMC1','LMS Tambolaka Airport','Line Station',NULL,'2019-08-12 15:41:47','2019-08-12 15:41:47',NULL),(165,'TNJ1','LMS Haji Fisabilillah Airport','Line Station',NULL,'2019-08-12 15:41:46','2019-08-12 15:41:46',NULL),(166,'TPE1','Taiwan Taoyuan LMS Taipei','Line Station',NULL,'2019-08-12 15:41:44','2019-08-12 15:41:44',NULL),(167,'TQQ1','Maranggo Airport','Line Station',NULL,'2019-08-12 15:41:44','2019-08-12 15:41:44',NULL),(168,'TRK1','Juwata LMS Tarakan','Line Station',NULL,'2019-08-12 15:41:43','2019-08-12 15:41:43',NULL),(169,'TTE1','Sultan Babullah LMS Ternate','Line Station',NULL,'2019-08-12 15:41:42','2019-08-12 15:41:42',NULL),(170,'TWLC','GMF Learning Center','Line Station',NULL,'2019-08-12 15:41:42','2019-08-12 15:41:42',NULL),(171,'TYN1','Taiyuan Wusu Airport','Line Station',NULL,'2019-08-12 15:41:40','2019-08-12 15:41:40',NULL),(172,'UPG1','Sultan Hasanuddin LMS Makassar','Line Station',NULL,'2019-08-12 15:41:39','2019-08-12 15:41:39',NULL),(173,'WAI1','LMS Maumere AlokTimur Airport','Workshop',NULL,'2019-08-12 15:41:39','2019-08-12 15:41:39',NULL),(174,'WBPN','Workshop Remote Balikpapan','Workshop',NULL,'2019-08-12 15:41:38','2019-08-12 15:41:38',NULL),(175,'WDPS','Workshop Remote Denpasar','Workshop',NULL,'2019-08-12 15:41:37','2019-08-12 15:41:37',NULL),(176,'WFJR','WORKSHOP HANGAR FUJAIRAH','Workshop',NULL,'2019-08-12 15:41:36','2019-08-12 15:41:36',NULL),(177,'WGP1','LMS Umbu Mehang Kunda Airport','Workshop',NULL,'2019-08-12 15:41:36','2019-08-12 15:41:36',NULL),(178,'WMES','Workshop Remote Medan','Workshop',NULL,'2019-08-12 15:41:35','2019-08-12 15:41:35',NULL),(179,'WMX1','LMS Wamena Airport','Workshop',NULL,'2019-08-12 15:41:33','2019-08-12 15:41:33',NULL),(180,'WNG1','LMS Wangi-Wangi Airport','Workshop',NULL,'2019-08-12 15:41:32','2019-08-12 15:41:32',NULL),(181,'WNI1','LMS Wakatobi Airport','Workshop',NULL,'2019-08-12 15:41:31','2019-08-12 15:41:31',NULL),(182,'WSAV','Avionic Workshop','Workshop',NULL,'2019-08-12 15:41:30','2019-08-12 15:41:30',NULL),(183,'WSCA','WS H5 - CABIN MONUMENT WORKSHOP','Workshop',NULL,'2019-08-12 15:41:29','2019-08-12 15:41:29',NULL),(184,'WSCB','Cabin Furnishing Workshop','Workshop',NULL,'2019-08-12 15:41:28','2019-08-12 15:41:28',NULL),(185,'WSCN','WS H4 - Cabin Monument Shop','Workshop',NULL,'2019-08-12 15:41:28','2019-08-12 15:41:28',NULL),(186,'WSEM','Electro Mechanical Workshop','Workshop',NULL,'2019-08-12 15:41:27','2019-08-12 15:41:27',NULL),(187,'WSHJ','WORKSHOP HANGAR SHARJAH','Workshop',NULL,'2019-08-12 15:41:26','2019-08-12 15:41:26',NULL),(188,'WSHS','WORKSHOP HANGAR SURABAYA','Workshop',NULL,'2019-08-12 15:41:25','2019-08-12 15:41:25',NULL),(189,'WSI1','LMS Raja Ampat Airport','Workshop',NULL,'2019-08-12 15:41:19','2019-08-12 15:41:19',NULL),(190,'WSLS','Loundry Workshop','Workshop',NULL,'2019-08-12 15:41:22','2019-08-12 15:41:22',NULL),(191,'WSNC','NDT & Callibration Workshop','Workshop',NULL,'2019-08-12 15:41:17','2019-08-12 15:41:17',NULL),(192,'WSPT','Painting Workshop','Workshop',NULL,'2019-08-12 15:41:02','2019-08-12 15:41:02',NULL),(193,'WSRE','WS H5 - Structure Repair Shop','Workshop',NULL,'2019-08-12 15:41:00','2019-08-12 15:41:00',NULL),(194,'WSSE','WS H4 - Seat Shop','Workshop',NULL,'2019-08-12 15:40:57','2019-08-12 15:40:57',NULL),(195,'WSSO','WS H5 - SEAT SHOP','Workshop',NULL,'2019-08-12 15:40:55','2019-08-12 15:40:55',NULL),(196,'WSSR','WS H4 - Structure Repair Shop','Workshop',NULL,'2019-08-12 15:40:53','2019-08-12 15:40:53',NULL),(197,'WSSS','Seat Workshop','Workshop',NULL,'2019-08-12 15:40:51','2019-08-12 15:40:51',NULL),(198,'WSST','Structure Repair Workshop','Workshop',NULL,'2019-08-12 15:40:48','2019-08-12 15:40:48',NULL),(199,'WSSW','Sewing Workshop','Workshop',NULL,'2019-08-12 15:40:46','2019-08-12 15:40:46',NULL),(200,'WSUB','Workshop Remote Surabaya','Workshop',NULL,'2019-08-12 15:40:44','2019-08-12 15:40:44',NULL),(201,'WSWB','WB & L/G Workshop','Workshop',NULL,'2019-08-12 15:40:41','2019-08-12 15:40:41',NULL),(202,'WUH1','LMS Tianhe (Wuhan) Airport','Workshop',NULL,'2019-08-12 15:40:39','2019-08-12 15:40:39',NULL),(203,'WUPG','Workshop Remote Ujungpandang','Workshop',NULL,'2019-08-12 15:40:36','2019-08-12 15:40:36',NULL),(204,'WUX1','Sunan Shuofang Int Airport','Workshop',NULL,'2019-08-12 15:40:35','2019-08-12 15:40:35',NULL),(205,'XCH1','Christmas Island Airport','Line Station',NULL,'2019-08-12 15:40:32','2019-08-12 15:40:32',NULL),(206,'XIY1','Xi\'an Xianyang Int Airport','Line Station',NULL,'2019-08-12 15:40:30','2019-08-12 15:40:30',NULL),(207,'YMX1','Mirabel International Airport','Workshop',NULL,'2019-08-12 15:40:27','2019-08-12 15:40:27',NULL),(208,'AAP','Samarinda','Line Maintenance Station',NULL,NULL,NULL,NULL),(209,'AMQ','Ambon ','Line Maintenance Station',NULL,NULL,NULL,NULL),(210,'BDJ','Banjarmasin ','Line Maintenance Station',NULL,NULL,NULL,NULL),(211,'BDO','Bandung ','Line Maintenance Station',NULL,NULL,NULL,NULL),(212,'BEJ','Berau ','Line Maintenance Station',NULL,NULL,NULL,NULL),(213,'ENE','Ende','Line Maintenance Station',NULL,NULL,NULL,NULL),(214,'BIK','Biak ','Line Maintenance Station',NULL,NULL,NULL,NULL),(215,'BKS','Bengkulu ','Line Maintenance Station',NULL,NULL,NULL,NULL),(216,'JED','Jeddah ','Line Maintenance Station',NULL,NULL,NULL,NULL),(217,'BMU','Bima','Line Maintenance Station',NULL,NULL,NULL,NULL),(218,'BPN','Balikpapan ','Line Maintenance Station',NULL,NULL,NULL,NULL),(219,'KUL','Kuala Lumpur','Line Maintenance Station',NULL,NULL,NULL,NULL),(220,'BTH','Batam ','Line Maintenance Station',NULL,NULL,NULL,NULL),(221,'LUV','Langgur','Line Maintenance Station',NULL,NULL,NULL,NULL),(222,'MED','Madinah','Line Maintenance Station',NULL,NULL,NULL,NULL),(223,'BTJ','Banda Aceh ','Line Maintenance Station',NULL,NULL,NULL,NULL),(224,'MJU','Mamuju','Line Maintenance Station',NULL,NULL,NULL,NULL),(225,'RTU','Maratua','Line Maintenance Station',NULL,NULL,NULL,NULL),(226,'BUW','Baubau','Line Maintenance Station',NULL,NULL,NULL,NULL),(227,'BWX','Banyuwangi','Line Maintenance Station',NULL,NULL,NULL,NULL),(228,'CGK','Cengkareng','Line Maintenance Station',NULL,NULL,NULL,NULL),(229,'LLO','Palopo','Line Maintenance Station',NULL,NULL,NULL,NULL),(230,'DJB','Jambi ','Line Maintenance Station',NULL,NULL,NULL,NULL),(231,'DJJ','Jayapura ','Line Maintenance Station',NULL,NULL,NULL,NULL),(232,'SXK','Saumlaki','Line Maintenance Station',NULL,NULL,NULL,NULL),(233,'DPS','Denpasar ','Line Maintenance Station',NULL,NULL,NULL,NULL),(234,'SIN','Singapura ','Line Maintenance Station',NULL,NULL,NULL,NULL),(235,'SWQ','Sumbawa','Line Maintenance Station',NULL,NULL,NULL,NULL),(236,'DTB','Silangit','Line Maintenance Station',NULL,NULL,NULL,NULL),(237,'FLZ','Pinangsori','Line Maintenance Station',NULL,NULL,NULL,NULL),(238,'GNS','Gunung Sitoli','Line Maintenance Station',NULL,NULL,NULL,NULL),(239,'GTO','Gorontalo','Line Maintenance Station',NULL,NULL,NULL,NULL),(240,'HLP','Halim Perdana Kusuma ','Line Maintenance Station',NULL,NULL,NULL,NULL),(241,'AEG','Aek Godang','Line Maintenance Station',NULL,NULL,NULL,NULL),(242,'JBB','Jember ','Line Maintenance Station',NULL,NULL,NULL,NULL),(243,'JOG','Jogjakarta ','Line Maintenance Station',NULL,NULL,NULL,NULL),(244,'KDI','Kendari','Line Maintenance Station',NULL,NULL,NULL,NULL),(245,'KJT','Kertajati','Line Maintenance Station',NULL,NULL,NULL,NULL),(246,'KNO','Kualanamu ','Line Maintenance Station',NULL,NULL,NULL,NULL),(247,'KOE','Kupang ','Line Maintenance Station',NULL,NULL,NULL,NULL),(248,'KSR','Selayar','Line Maintenance Station',NULL,NULL,NULL,NULL),(249,'YIA','Kulon Progo','Line Maintenance Station',NULL,NULL,NULL,NULL),(250,'KTG','Ketapang','Line Maintenance Station',NULL,NULL,NULL,NULL),(251,'LSW','Lhoksemauwe','Line Maintenance Station',NULL,NULL,NULL,NULL),(252,'LBJ','Labuan Bajo','Line Maintenance Station',NULL,NULL,NULL,NULL),(253,'LOP','Lombok Praya ','Line Maintenance Station',NULL,NULL,NULL,NULL),(254,'LUW','Luwuk','Line Maintenance Station',NULL,NULL,NULL,NULL),(255,'MDC','Manado ','Line Maintenance Station',NULL,NULL,NULL,NULL),(256,'PUM','Sangia','Line Maintenance Station',NULL,NULL,NULL,NULL),(257,'MKQ','Merauke ','Line Maintenance Station',NULL,NULL,NULL,NULL),(258,'MKW','Manokwari ','Line Maintenance Station',NULL,NULL,NULL,NULL),(259,'MLG','Malang ','Line Maintenance Station',NULL,NULL,NULL,NULL),(260,'MOF','Maumere','Line Maintenance Station',NULL,NULL,NULL,NULL),(261,'WYK','Wippo','Line Maintenance Station',NULL,NULL,NULL,NULL),(262,'NBX','Nabire','Line Maintenance Station',NULL,NULL,NULL,NULL),(263,'PDG','Padang ','Line Maintenance Station',NULL,NULL,NULL,NULL),(264,'PGK','Pangkal Pinang ','Line Maintenance Station',NULL,NULL,NULL,NULL),(265,'PKU','Pekanbaru ','Line Maintenance Station',NULL,NULL,NULL,NULL),(266,'PKY','Palangkaraya ','Line Maintenance Station',NULL,NULL,NULL,NULL),(267,'PLM','Palembang','Line Maintenance Station',NULL,NULL,NULL,NULL),(268,'KAZ','Kuabang','Line Maintenance Station',NULL,NULL,NULL,NULL),(269,'PLW','Palu ','Line Maintenance Station',NULL,NULL,NULL,NULL),(270,'PNK','Pontianak ','Line Maintenance Station',NULL,NULL,NULL,NULL),(271,'MRB','Muarabungo','Line Maintenance Station',NULL,NULL,NULL,NULL),(272,'NTX','Natuna','Line Maintenance Station',NULL,NULL,NULL,NULL),(273,'PSU','Putussibau','Line Maintenance Station',NULL,NULL,NULL,NULL),(274,'RAQ','Raha','Line Maintenance Station',NULL,NULL,NULL,NULL),(275,'SOC','Solo ','Line Maintenance Station',NULL,NULL,NULL,NULL),(276,'SOQ','Sorong ','Line Maintenance Station',NULL,NULL,NULL,NULL),(277,'SQG','Sintang','Line Maintenance Station',NULL,NULL,NULL,NULL),(278,'SRG','Semarang ','Line Maintenance Station',NULL,NULL,NULL,NULL),(279,'SUB','Surabaya ','Line Maintenance Station',NULL,NULL,NULL,NULL),(280,'BTW','Batu Licin','Line Maintenance Station',NULL,NULL,NULL,NULL),(281,'TIM','Timika ','Line Maintenance Station',NULL,NULL,NULL,NULL),(282,'DIL','Dili','Line Maintenance Station',NULL,NULL,NULL,NULL),(283,'TJQ','Tanjung Pandan ','Line Maintenance Station',NULL,NULL,NULL,NULL),(284,'KBU','Kotabaru','Line Maintenance Station',NULL,NULL,NULL,NULL),(285,'TKG','Tanjung Karang','Line Maintenance Station',NULL,NULL,NULL,NULL),(286,'LLJ','Lubuk Linggau','Line Maintenance Station',NULL,NULL,NULL,NULL),(287,'TMC','Tambolaka','Line Maintenance Station',NULL,NULL,NULL,NULL),(288,'TNJ','Tanjung Pinang','Line Maintenance Station',NULL,NULL,NULL,NULL),(289,'TRK','Tarakan ','Line Maintenance Station',NULL,NULL,NULL,NULL),(290,'PKN','Pangkalanbun','Line Maintenance Station',NULL,NULL,NULL,NULL),(291,'TSY','Tasikmalaya','Line Maintenance Station',NULL,NULL,NULL,NULL),(292,'SMQ','Sampit','Line Maintenance Station',NULL,NULL,NULL,NULL),(293,'TTE','Ternate ','Line Maintenance Station',NULL,NULL,NULL,NULL),(294,'UPG','Makassar ','Line Maintenance Station',NULL,NULL,NULL,NULL),(295,'WNI','Wangi-wangi','Line Maintenance Station',NULL,NULL,NULL,NULL),(296,'WGP','Waingapu','Line Maintenance Station',NULL,NULL,NULL,NULL),(297,'WMX','Wamena','Line Maintenance Station',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `maintenance_areas` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_aircraft_customers`
--
DROP TABLE IF EXISTS `master_aircraft_customers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_aircraft_customers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name_customer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_aircraft_customers`
--
LOCK TABLES `master_aircraft_customers` WRITE;
/*!40000 ALTER TABLE `master_aircraft_customers` DISABLE KEYS */;
INSERT INTO `master_aircraft_customers` VALUES (1,'Garuda Indonesia (GA)','2019-08-16 09:22:06','2019-08-16 09:23:05'),(2,'Citilink (QG)','2019-08-16 09:22:17','2019-08-16 09:22:56'),(3,'Sriwijaya Air (SJ)','2019-08-16 09:22:29','2019-08-16 09:22:50'),(4,'Nam Air (IN)','2019-08-16 09:22:43','2019-08-16 09:22:43');
/*!40000 ALTER TABLE `master_aircraft_customers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_config_authorities`
--
DROP TABLE IF EXISTS `master_config_authorities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_config_authorities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`master_config_id` int(11) NOT NULL,
`rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`status_of_application` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`issue` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`revision` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_config_authorities`
--
LOCK TABLES `master_config_authorities` WRITE;
/*!40000 ALTER TABLE `master_config_authorities` DISABLE KEYS */;
/*!40000 ALTER TABLE `master_config_authorities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_configs`
--
DROP TABLE IF EXISTS `master_configs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_configs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maintenance_area` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maintenance_area_value` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`engine_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`data` json DEFAULT NULL,
`master_request_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`authority` json DEFAULT NULL,
`customer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_approve` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_configs`
--
LOCK TABLES `master_configs` WRITE;
/*!40000 ALTER TABLE `master_configs` DISABLE KEYS */;
/*!40000 ALTER TABLE `master_configs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_facilities`
--
DROP TABLE IF EXISTS `master_facilities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_facilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_facilities`
--
LOCK TABLES `master_facilities` WRITE;
/*!40000 ALTER TABLE `master_facilities` DISABLE KEYS */;
INSERT INTO `master_facilities` VALUES (1,'ddd','2019-07-23 09:24:53','2019-07-23 09:24:53'),(2,'Stair','2019-07-23 09:28:24','2019-07-23 09:28:24'),(3,'Dock','2019-07-25 15:13:57','2019-07-25 15:13:57'),(4,'Fire Alarm','2019-08-03 18:20:24','2019-08-03 18:20:24');
/*!40000 ALTER TABLE `master_facilities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_personels`
--
DROP TABLE IF EXISTS `master_personels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_personels` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`nopeg` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`jabatan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tempat_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tanggal_lahir` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tanggal_masuk` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`passduedate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amel` json DEFAULT NULL,
`gmf_auth` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_personels`
--
LOCK TABLES `master_personels` WRITE;
/*!40000 ALTER TABLE `master_personels` DISABLE KEYS */;
/*!40000 ALTER TABLE `master_personels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `master_requests`
--
DROP TABLE IF EXISTS `master_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `master_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`picture` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`link` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `master_requests`
--
LOCK TABLES `master_requests` WRITE;
/*!40000 ALTER TABLE `master_requests` DISABLE KEYS */;
INSERT INTO `master_requests` VALUES (1,'AIRCRAFT','A/C Capability Evaluation Request','1565228971Aircraft_2.jpg',NULL,'2019-08-08 08:49:35','form_aircraft'),(2,'COMPONENT','Component Capability Evaluation Request','1565228986Component.jpg',NULL,'2019-08-08 08:49:49','form_component'),(3,'ENGINE','Engine Capability Evaluation Request','1565229168Engine.jpg',NULL,'2019-08-08 08:52:50','form_engine'),(4,'SPECIAL PROCESS','Special Process Capability Evaluation Request','1565229178NDT.jpg',NULL,'2019-08-08 08:52:59','form_special');
/*!40000 ALTER TABLE `master_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=145 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `migrations`
--
LOCK TABLES `migrations` WRITE;
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
INSERT INTO `migrations` VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2019_02_26_034821_create_master_requests_table',1),(4,'2019_02_26_034907_create_request_submittions_table',1),(5,'2019_02_26_072244_create_maintenance_areas_table',1),(6,'2019_02_26_072336_create_aircraft_requests_table',1),(7,'2019_02_26_080650_create_aircraft_authorized_personels_table',1),(8,'2019_02_26_080711_create_aircraft_documents_table',1),(9,'2019_02_26_080723_create_aircraft_materials_table',1),(10,'2019_02_26_080746_create_aircraft_tool_equipments_table',1),(11,'2019_03_01_033156_create_request_histories_table',1),(12,'2019_03_01_082230_add_field_link_tble_master_request',1),(13,'2019_03_05_034854_add_manager_statement_choised',1),(14,'2019_03_05_064557_add_maintenance_area_field',1),(15,'2019_03_07_082448_add_delete_at_tb_request_submittions',1),(16,'2019_03_08_092805_create_aircraft_types_table',1),(17,'2019_03_08_092859_create_unit_of_measures_table',1),(18,'2019_03_08_092917_create_part_numbers_table',1),(19,'2019_03_11_024921_create_engine_requests_table',1),(20,'2019_03_11_033930_create_engine_personels_table',1),(21,'2019_03_11_034233_create_engine_tasklist_numbers_table',1),(22,'2019_03_11_034258_create_engine_vendor_lists_table',1),(23,'2019_03_11_034310_create_engine_consumable_materials_table',1),(24,'2019_03_12_030957_create_engine_shop_abilities_table',1),(25,'2019_03_12_081442_create_master_configs_table',1),(26,'2019_03_15_032222_add_field_limitation_and_maintenance_area_value',1),(27,'2019_03_15_081418_add_fiel_attacment_table_aircraft_doc',1),(28,'2019_03_15_092255_add_field_status_read',1),(29,'2019_03_17_074047_add_softdelete_tb_mainarea_partnum_unitofmea_aricrafttype',1),(30,'2019_03_17_075248_add_uid_tb_mainarea_partnum_unitofmea_aricrafttype',1),(31,'2019_03_18_014755_add_field_signature',1),(32,'2019_03_18_031556_add_field_in_tb_aircraft_material_document_and_tools',1),(33,'2019_03_18_084109_create_engine_tools_table',1),(34,'2019_03_19_070808_addfieldattachment_and_aproval_request_type',1),(35,'2019_03_20_024405_add_role_request',1),(36,'2019_03_20_024557_add_checked_and_approve_name',1),(37,'2019_03_20_100659_create_for_ratings_table',1),(38,'2019_03_20_101151_add_fiel_for_ratting',1),(39,'2019_03_21_041924_add_field_other_ability_value',1),(40,'2019_03_21_050335_add_engine_name_tbl_master_config',1),(41,'2019_03_21_093506_create_special_requests_table',1),(42,'2019_03_21_093858_create_special_shop_abilities_table',1),(43,'2019_03_21_094000_create_special_personels_table',1),(44,'2019_03_22_023000_create_special_sheet_lists_table',1),(45,'2019_03_22_023031_create_special_tools_table',1),(46,'2019_03_22_023042_create_special_part_lists_table',1),(47,'2019_03_25_052129_add_field_in_table_user',1),(48,'2019_03_26_071900_create_vendor_managements_table',1),(49,'2019_03_27_044336_add_field_qa_avaluation',1),(50,'2019_03_28_060725_create_vendor_management_histories_table',1),(51,'2019_03_28_095710_add_manual_revision_tb_special_request',1),(52,'2019_04_01_045136_create_component_requests_table',1),(53,'2019_04_01_095519_add_field_for_equivalent_tb__component_request',1),(54,'2019_04_02_015728_create_component_shop_abilities_table',1),(55,'2019_04_02_095405_add_field_condition',1),(56,'2019_04_08_023240_change_field_become_part_number_all_request',1),(57,'2019_04_08_065440_add_token_field_in_tble_vendor',1),(58,'2019_04_09_031821_add_atachment_table_vendor_managements',1),(59,'2019_04_10_021733_add_uom_table_part_number',1),(60,'2019_04_12_033432_create_component_personels_table',1),(61,'2019_04_12_083459_create_component_documents_table',1),(62,'2019_04_12_083714_create_component_test_equipments_table',1),(63,'2019_04_12_083739_create_component_special_tools_table',1),(64,'2019_04_12_084006_create_component_material_plannings_table',1),(65,'2019_04_12_084026_create_component_manhours_plannings_table',1),(66,'2019_04_15_041336_add_tb_read_and_status_vendor',1),(67,'2019_04_15_061847_add_table_component_type',1),(68,'2019_04_16_021614_create_component_equivalents_table',1),(69,'2019_04_19_111128_create_hangars_table',1),(70,'2019_04_22_083832_create_component_attachments_table',1),(71,'2019_04_22_084327_create_apps_table',1),(72,'2019_04_22_084449_add_field_document_type_and_data_history',1),(73,'2019_04_23_070822_add_request_submition_id_in_equivalent',1),(74,'2019_04_29_022459_add_fiel_data_in_vendor_histories',1),(75,'2019_05_03_034529_create_workshops_table',1),(76,'2019_05_03_044058_create_type_suppliers_table',1),(77,'2019_05_03_044335_create_vendor_attachments_table',1),(78,'2019_05_06_014949_add_fiel_decision_and_score_in__req_submittions',1),(79,'2019_05_21_134547_add_field_type_and_attachment',1),(80,'2019_05_23_114828_create_questionnaires_table',1),(81,'2019_05_23_162102_add_decision_and_score',1),(82,'2019_06_26_153634_change_colum_aproval_be_user_id',1),(83,'2019_07_01_093524_create_attachment_resubmits_table',1),(84,'2019_07_01_093620_add_pn_and_data_json_tb_ms_config',1),(85,'2019_07_01_114527_add_step_request_tbl_request_sbmttn',1),(86,'2019_07_01_150027_create_attachment_resubmit_vendors_table',1),(87,'2019_07_01_150418_add_step_request_tbl_vendor_management',1),(88,'2019_07_03_113409_add_type_masterconfig',1),(89,'2019_07_03_141119_add_field_special_shop__ability_and_change',1),(90,'2019_07_05_091922_create_capability_lists_table',1),(91,'2019_07_05_092024_create_vendor_capablity_list_details_table',1),(92,'2019_07_08_092717_change_name_column_component_manhours_plannings',1),(93,'2019_07_09_141219_create_master_personels_table',1),(94,'2019_07_10_110535_add_license_type_auth_pesonel',1),(95,'2019_07_10_113656_add_req_number_all_capability',1),(96,'2019_07_10_163623_tb_auth_personel_gmf_scope_amel_scope',1),(97,'2019_07_11_135959_create_component_capability_lists_table',1),(98,'2019_07_12_103051_create_master_facilities_table',1),(99,'2019_07_12_103109_create_aircraft_facilities_table',1),(100,'2019_07_15_094322_add_field_qsa_part_approve',1),(101,'2019_07_15_114259_create_capability_ratings_table',1),(102,'2019_07_16_135256_add_field_no_request_and_another',1),(103,'2019_07_16_143154_create_main_fns_table',1),(104,'2019_07_16_164602_add_fiel_questinare_exp_date',1),(105,'2019_07_22_093936_create_additional_attachments_table',1),(106,'2019_07_22_105639_change_update_plus_add_rev_date',1),(107,'2019_07_22_163448_add_fiel_qsa_cek',1),(108,'2019_07_23_105325_add_location_table_aircraft_tool',1),(109,'2019_07_23_154933_add_field_engine',1),(110,'2019_07_25_112707_add_field_ata_tbl_part_number',1),(111,'2019_07_25_135458_add_fiel_doucment_evidence_other_value_and__calibration_certificate_value',1),(112,'2019_07_28_134936_create_special_test_equipments_table',1),(113,'2019_07_28_135023_create_special_documents_table',1),(114,'2019_07_28_135105_create_ndt_methods_table',1),(115,'2019_07_28_135921_create_special_materials_table',1),(116,'2019_07_28_163841_add_field_in_special_personel',1),(117,'2019_07_28_184939_create_engine_documents_table',1),(118,'2019_07_28_185000_create_engine_test_equipments_table',1),(119,'2019_07_28_185125_add_and_edit_field_table_material',1),(120,'2019_07_28_185310_create_engine_special_tools_table',1),(121,'2019_07_28_201939_add_fiel_limitation_tbl_component_request',1),(122,'2019_07_29_101948_add_field_qty_tb_engine_cons_material',1),(123,'2019_07_29_154112_add_field_engine_tbl_shop_abilily_component',1),(124,'2019_07_31_111417_add_field_capability_list_component',1),(125,'2019_07_31_125651_add_field_submit_date',1),(126,'2019_07_31_140347_add_field_attachment_egine_personels',1),(127,'2019_08_01_092827_create_tabel_apis_table',1),(128,'2019_08_05_100450_create_master_config_authorities_table',1),(129,'2019_08_15_133724_create_master_aircraft_customers_table',1),(130,'2019_08_15_143650_add_autority_and_customer_aircrat_request_table',1),(131,'2019_08_15_144423_add_field_form_type_for_rating',1),(132,'2019_08_19_114118_add_field_form_type_table_capability_list',1),(133,'2019_08_19_154747_add_field_customer_and_aircraft_rating',1),(134,'2019_08_23_160928_add_remark_deletion_tb_req_submittions',1),(135,'2019_08_23_161136_add_field_location_location_tbl_aircraft_tool_equipments',1),(136,'2019_08_26_084706_add_field_authority_value_table_component_capability_list',1),(137,'2019_08_26_085121_add_status_of_aplication_table_master_config_authority',1),(138,'2019_08_26_085202_add_date_approve_table_master_config',1),(139,'2019_08_26_121411_add_field_new_issue_table_capability_list',1),(140,'2019_08_26_135624_create_issues_table',1),(141,'2019_10_03_144131_add_field_soft_delete_table_for_rating',2),(143,'2019_10_17_115625_add_field_issue_and_revision_ontabel_masterconfigs',3),(144,'2019_10_17_165013_add_stamp_no_tb_aircraft_personel',4);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ndt_methods`
--
DROP TABLE IF EXISTS `ndt_methods`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ndt_methods` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ndt_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ndt_methods`
--
LOCK TABLES `ndt_methods` WRITE;
/*!40000 ALTER TABLE `ndt_methods` DISABLE KEYS */;
INSERT INTO `ndt_methods` VALUES (1,'Ultrasonic Inspection',NULL,'2019-08-12 13:15:02','2019-08-12 13:15:02'),(2,'Radiography Inspection',NULL,'2019-08-12 13:15:14','2019-08-12 13:17:49'),(3,'Magnetic Particle Inspection',NULL,'2019-08-12 13:15:25','2019-08-12 13:15:46'),(4,'Fluorescent Penetrant Inpection',NULL,'2019-08-12 13:16:35','2019-08-12 13:16:35'),(5,'Eddy Current Inspection',NULL,'2019-08-12 13:16:52','2019-08-12 13:17:05'),(6,'Thermographic Inspection',NULL,'2019-08-12 13:17:29','2019-08-12 13:17:29');
/*!40000 ALTER TABLE `ndt_methods` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `part_numbers`
--
DROP TABLE IF EXISTS `part_numbers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `part_numbers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ata_chapter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=539 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `part_numbers`
--
LOCK TABLES `part_numbers` WRITE;
/*!40000 ALTER TABLE `part_numbers` DISABLE KEYS */;
INSERT INTO `part_numbers` VALUES (1,'4101054','LAVATORY/GALLEY VENT FAN','21-20-04',NULL,'2019-07-25 14:16:37',NULL,NULL),(2,'605457-2','MOTOR DRIVEN CENTRIFUGAL FAN','21-20-10',NULL,'2019-07-25 14:16:37',NULL,NULL),(3,'605457-3','MOTOR DRIVEN CENTRIFUGAL FAN','21-20-10',NULL,'2019-07-25 14:16:37',NULL,NULL),(4,'605457-8','MOTOR DRIVEN CENTRIFUGAL FAN','21-20-10',NULL,'2019-07-25 14:16:37',NULL,NULL),(5,'10-62009-1','CABIN AIR RECIRCULATION','21-20-18',NULL,'2019-07-25 14:16:37',NULL,NULL),(6,'645405-1','CABIN AIR RECIRCULATION','21-20-18',NULL,'2019-07-25 14:16:37',NULL,NULL),(7,'645405-2','CABIN AIR RECIRCULATION','21-20-18',NULL,'2019-07-25 14:16:37',NULL,NULL),(8,'605457-7','MOTOR DRIVEN CENTRIFUGAL FAN','21-24-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(9,'711003-2','OUTFLOW VALVE','21-33-00',NULL,'2019-07-25 14:16:37',NULL,NULL),(10,'711003-3','OUTFLOW VALVE','21-33-00',NULL,'2019-07-25 14:16:37',NULL,NULL),(11,'711003-5','OUTFLOW VALVE','21-33-00',NULL,'2019-07-25 14:16:37',NULL,NULL),(12,'10-62231-3','OUTFLOW VALVE','21-33-30',NULL,'2019-07-25 14:16:37',NULL,NULL),(13,'4063-19972-01AA','OUTFLOW VALVE','21-33-30',NULL,'2019-07-25 14:16:37',NULL,NULL),(14,'645055-2','MOTOR DRIVEN FAN','21-58-04',NULL,'2019-07-25 14:16:37',NULL,NULL),(15,'645055-3','MOTOR DRIVEN FAN','21-58-04',NULL,'2019-07-25 14:16:37',NULL,NULL),(16,'541962-1-1','ELECTROMECHANICAL ROTARY ACTUATOR','21-60-36',NULL,'2019-07-25 14:16:37',NULL,NULL),(17,'541962-4','ELECTROMECHANICAL ROTARY ACTUATOR','21-60-36',NULL,'2019-07-25 14:16:37',NULL,NULL),(18,'541962-5','ELECTROMECHANICAL ROTARY ACTUATOR','21-60-36',NULL,'2019-07-25 14:16:37',NULL,NULL),(19,'541962-6','ELECTROMECHANICAL ROTARY ACTUATOR','21-60-36',NULL,'2019-07-25 14:16:37',NULL,NULL),(20,'541932-1-1','ROTARY ACTUATOR','21-60-54',NULL,'2019-07-25 14:16:37',NULL,NULL),(21,'10-61472-10','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(22,'10-61472-8','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(23,'AR6460M1MOD2','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(24,'AR6460M2MOD1','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(25,'AR6460M2MOD2','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(26,'AR6460M2MOD3','ROTARY ACTUATOR','22-11-01',NULL,'2019-07-25 14:16:37',NULL,NULL),(27,'111RAA3','ACTUATOR ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(28,'102842LX','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(29,'106788A103','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(30,'106788A128','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(31,'106788A131','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(32,'106788A140','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(33,'106788A205','ACTUATOR',NULL,NULL,NULL,NULL,NULL),(34,'700842','CONSTANT SPEED DRIVE',NULL,NULL,NULL,NULL,NULL),(35,'731753','CONSTANT SPEED DRIVE',NULL,NULL,NULL,NULL,NULL),(36,'735511A','CONSTANT SPEED DRIVE',NULL,NULL,NULL,NULL,NULL),(37,'948F458-1','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(38,'948F458-2','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(39,'948F458-3','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(40,'948F458-4','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(41,'948F458-5','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(42,'915F213-3','BUS PROTECTION PANEL',NULL,NULL,NULL,NULL,NULL),(43,'915F213-4','BUS PROTECTION PANEL',NULL,NULL,NULL,NULL,NULL),(44,'915F213-2','BUS PROTECTION PANEL',NULL,NULL,NULL,NULL,NULL),(45,'941D335-2','CIRCUIT BREAKER',NULL,NULL,NULL,NULL,NULL),(46,'65B46101-5','GEN. CONTROL MODULEN ASSY',NULL,NULL,NULL,NULL,NULL),(47,'65B46101-7','GEN. CONTROL MODULEN ASSY',NULL,NULL,NULL,NULL,NULL),(48,'915F212-4','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(49,'915F212-5','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(50,'915F212-6','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(51,'915F212-7','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(52,'915F212-8','GENERATOR CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(53,'2-792-01','BATTERY CHARGER',NULL,NULL,NULL,NULL,NULL),(54,'2-792-02','BATTERY CHARGER',NULL,NULL,NULL,NULL,NULL),(55,'BFS24','BATTERY AND CHARGER SYSTEM',NULL,NULL,NULL,NULL,NULL),(56,'S283W008-3','BATTERY AND CHARGER SYSTEM',NULL,NULL,NULL,NULL,NULL),(57,'4-254-02','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(58,'4-254-03','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(59,'4-254-04','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(60,'S282T002-2','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(61,'S282T002-4','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(62,'S282T002-5','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(63,'S282T002-6','BATTRERY CHARGER',NULL,NULL,NULL,NULL,NULL),(64,'40179-7','AIRCRAFT BATTERY',NULL,NULL,NULL,NULL,NULL),(65,'1151952-10','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(66,'1151952-11','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(67,'1151952-12','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(68,'1151952-13','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(69,'1151952-14','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(70,'1151952-5','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(71,'1151952-6','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(72,'1151952-7','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(73,'1151952-8','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(74,'1151952-9','M1720 STANDBY POWER CONTROL UNIT',NULL,NULL,NULL,NULL,NULL),(75,'2021-2-000-1','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(76,'022-1-000','HOT WATER BOILER',NULL,NULL,NULL,NULL,NULL),(77,'022-1-000-1','HOT WATER BOILER',NULL,NULL,NULL,NULL,NULL),(78,'416-0001-1','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(79,'416-0001-1P','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(80,'416-0001-3','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(81,'416-0001-5','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(82,'416-0001-7','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(83,'416-0001-9','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(84,'416-0001-13','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(85,'416-0001-15','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(86,'416-0001-17','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(87,'416-0001-19','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(88,'416-0001-21','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(89,'416-0001-23','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(90,'416-0001-25','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(91,'416-0001-29','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(92,'416-0001-35','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(93,'416-0001-39','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(94,'416-0001-41','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(95,'416-0001-45','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(96,'416-0001-47','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(97,'416-0001-49','COFFEE MAKER',NULL,NULL,NULL,NULL,NULL),(98,'65-52810-19','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(99,'65-52810-25','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(100,'65-52810-28','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(101,'65-52810-57','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(102,'65-52810-59','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(103,'65-52810-6','AIR CONDITIONING ACCESSORY UNIT','21-09-02',NULL,'2019-07-25 14:16:37',NULL,NULL),(104,'763810-1','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(105,'763810-2','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(106,'763810-3','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(107,'763810-4','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(108,'763810-5','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(109,'763810-6','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(110,'763810-7','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(111,'763810-8','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(112,'763960-1','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:37',NULL,NULL),(113,'763960-2','CABIN PRESSURE CONTROLLER','21-31-11',NULL,'2019-07-25 14:16:38',NULL,NULL),(114,'607518-2 SERIES 2','TEMPERATURE CONTROL','21-60-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(115,'607518-2 SERIES 3','TEMPERATURE CONTROL ','21-60-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(116,'607518-2 SERIES 4','TEMPERATURE CONTROL','21-60-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(117,'10-60498-13','CABIN TEMPERATURE CONTROL','21-60-56',NULL,'2019-07-25 14:16:38',NULL,NULL),(118,'548376-6 SERIES 3','CABIN TEMPERATURE CONTROL','21-60-56',NULL,'2019-07-25 14:16:38',NULL,NULL),(119,'607510-2 SERIES 3','TEMPERATURE CONTROL','21-60-57',NULL,'2019-07-25 14:16:38',NULL,NULL),(120,'607510-3 SERIES 2','TEMPERATURE CONTROL','21-60-59',NULL,'2019-07-25 14:16:38',NULL,NULL),(121,'607510-3 SERIES 3','TEMPERATURE CONTROL','21-60-59',NULL,'2019-07-25 14:16:38',NULL,NULL),(122,'622814-2 SESIES 1','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(123,'622814-2 SERIES 2','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(124,'622814-3 SERIES 1','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(125,'622814-3 SERIES 2','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(126,'622814-3 SERIES 3','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(127,'622814-4 SERIES 1','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(128,'622814-4 Series 2 Mod 5','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(129,'622814-4 Series 3 Mod 5','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(130,'622814-5 SERIES 1','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(131,'622814-5 SERIES 2','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(132,'622814-5 SERIES 3','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(133,'622814-5 SERIES 4','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(134,'622814-5 SERIES 5','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(135,'622814-5 SERIES 6','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(136,'622814-5 SERIES 7','PACK/ZONE TEMPERATURE CONTROLLER','21-61-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(137,'548376-5 SERIES 1','CABIN TEMPERATURE CONTROL','21-61-39',NULL,'2019-07-25 14:16:38',NULL,NULL),(138,'65-52820-1','INTEGRATED FLIGHT SYSTEM ACCESS. UNIT','22-10-40',NULL,'2019-07-25 14:16:38',NULL,NULL),(139,'65-52820-2','INTEGRATED FLIGHT SYSTEM ACCESS. UNIT','22-10-40',NULL,'2019-07-25 14:16:38',NULL,NULL),(140,'65-52817-5','AUTOMATIC FLIGHT CONT. ACCESS.','22-10-50',NULL,'2019-07-25 14:16:38',NULL,NULL),(141,'65-52817-17','AUTOMATIC FLIGHT CONT. ACCESS.','22-10-51',NULL,'2019-07-25 14:16:38',NULL,NULL),(142,'65-52817-9','AUTOMATIC FLIGHT CONT. ACCESS.','22-10-51',NULL,'2019-07-25 14:16:38',NULL,NULL),(143,'69-37399-1','IRS MASTER CAUTION','22-10-55',NULL,'2019-07-25 14:16:38',NULL,NULL),(144,'69-37399-7','IRS MASTER CAUTION','22-10-55',NULL,'2019-07-25 14:16:38',NULL,NULL),(145,'69-37399-9','IRS MASTER CAUTION','22-10-55',NULL,'2019-07-25 14:16:38',NULL,NULL),(146,'2590623-911','ROLL COMPUTER',NULL,NULL,NULL,NULL,NULL),(147,'4051600-913','FLIGTH CONTROL COMPUTER',NULL,NULL,NULL,NULL,NULL),(148,'4051600-914','FLIGTH CONTROL COMPUTER',NULL,NULL,NULL,NULL,NULL),(149,'4051600-923','FLIGTH CONTROL COMPUTER',NULL,NULL,NULL,NULL,NULL),(150,'4051601-932','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(151,'4051601-935','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(152,'4051601-936','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(153,'4051601-937','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(154,'4051601-939','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(155,'4051601-938','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(156,'4051601-940','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(157,'2591415-902','AUTO STAB TRIM UNIT',NULL,NULL,NULL,NULL,NULL),(158,'60B00013-702','AUTO STAB TRIM UNIT',NULL,NULL,NULL,NULL,NULL),(159,'2590622-932','PITCH COMPUTER',NULL,NULL,NULL,NULL,NULL),(160,'3757202-1','YAW DAMPER COMPUTER',NULL,NULL,NULL,NULL,NULL),(161,'10-62038-239','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(162,'10-62038-237','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(163,'4082260-937','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(164,'4082260-939','MODE CONTROL PANEL',NULL,NULL,NULL,NULL,NULL),(165,'755SUE2-4','AUTOTHROTTLE COMPUTER',NULL,NULL,NULL,NULL,NULL),(166,'233U3207-19','MISCELLANEOUS SWITCHING CONT.',NULL,NULL,NULL,NULL,NULL),(167,'65-52804-42','AUDIO ACCESSORY UNIT',NULL,NULL,NULL,NULL,NULL),(168,'65-52804-42 MOD A','AUDIO ACCESSORY UNIT',NULL,NULL,NULL,NULL,NULL),(169,'65-52804-61','AUDIO ACCESSORY UNIT',NULL,NULL,NULL,NULL,NULL),(170,'65-52804-61 MOD A','AUDIO ACCESSORY UNIT',NULL,NULL,NULL,NULL,NULL),(171,'65-52806-110','MISC. SOLID STATE ACC. UNIT',NULL,NULL,NULL,NULL,NULL),(172,'65-52806-291','MISC. SOLID STATE ACC. UNIT',NULL,NULL,NULL,NULL,NULL),(173,'65-52806-344','MISC. SOLID STATE ACC. UNIT',NULL,NULL,NULL,NULL,NULL),(174,'65-52806-344 MOD A','MISC. SOLID STATE ACC. UNIT',NULL,NULL,NULL,NULL,NULL),(175,'65-52806-346','MISC. SOLID STATE ACC. UNIT',NULL,NULL,NULL,NULL,NULL),(176,'65-52806-359','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(177,'65-52806-359MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(178,'65-52806-361','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(179,'65-52806-361 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(180,'65-52806-363','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(181,'65-52806-363 MODA','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(182,'65-52806-365','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(183,'65-52806-365 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(184,'65-52806-367','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(185,'65-52806-367 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(186,'65-52806-369','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(187,'65-52806-371','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(188,'65-52806-371 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(189,'65-52806-373','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(190,'65-52806-373 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(191,'65-52806-375','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(192,'65-52806-375 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(193,'65-52806-377','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(194,'65-52806-378','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(195,'65-52806-381','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(196,'65-52806-382','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(197,'65-52806-383','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(198,'65-52806-384','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(199,'65-52806-385','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(200,'65-52806-386','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(201,'65-52806-387','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(202,'65-52806-388','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(203,'65-52806-402','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(204,'65-52806-402 MOD A','MISC.SOLID-STATE SWITCHING ACCESSORY UNIT ASSEMBLY, M278',NULL,NULL,NULL,NULL,NULL),(205,'1466M14G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(206,'1466M14G02','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(207,'1466M14G03','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(208,'1466M73G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(209,'1466M74G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(210,'1466M77G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(211,'1466M88G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(212,'2046M50G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(213,'2046M51G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(214,'2046M52G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(215,'9335M34G07','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(216,'9386M83G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(217,'9386M83G02','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(218,'9386M83G03','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(219,'9386M85G01','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(220,'9386M85G02','LOW PRESS. TURBINE COOLING AIR TUBE','72-09-00',NULL,'2019-07-25 14:16:38',NULL,NULL),(221,'335-002-304-0','BOOSTER BLADES STAGE 2','72-21-02',NULL,'2019-07-25 14:16:38',NULL,NULL),(222,'335-002-305-0','BOOSTER BLADES STAGE 2','72-21-02',NULL,'2019-07-25 14:16:38',NULL,NULL),(223,'335-002-405-0','BOOSTER BLADES STAGE 3','72-21-02',NULL,'2019-07-25 14:16:38',NULL,NULL),(224,'335-002-407-0','BOOSTER BLADES STAGE 3','72-21-02',NULL,'2019-07-25 14:16:38',NULL,NULL),(225,'335-002-505-0','BOOSTER BLADES STAGE 4','72-21-02',NULL,'2019-07-25 14:16:38',NULL,NULL),(226,'335-009-306-0','SPOOL BOOSTER','72-21-04',NULL,'2019-07-25 14:16:38',NULL,NULL),(227,'335-106-402-0','SPINNER FRONT CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(228,'335-106-405-0','SPINNER FRONT CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(229,'335-106-403-0','SPINNER FRONT CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(230,'335-106-404-0','SPINNER FRONT CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(231,'335-011-205-0','SPINNER REAR CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(232,'335-011-207-0','SPINNER REAR CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(233,'335-011-208-0','SPINNER REAR CONE','72-21-05',NULL,'2019-07-25 14:16:38',NULL,NULL),(234,'335-010-002-0','BOOSTER BLADE INTERSTAGE SPACERS','72-21-07',NULL,'2019-07-25 14:16:38',NULL,NULL),(235,'335-009-804-0','FORWARD ROTATING AIRSEAL','72-21-08',NULL,'2019-07-25 14:16:38',NULL,NULL),(236,'335-009-805-0','FORWARD ROTATING AIRSEAL','72-21-08',NULL,'2019-07-25 14:16:38',NULL,NULL),(237,'335-009-806-0','FORWARD ROTATING AIRSEAL','72-21-08',NULL,'2019-07-25 14:16:38',NULL,NULL),(238,'335-009-903-0','FORWARD ROTATING AIRSEAL','72-21-08',NULL,'2019-07-25 14:16:38',NULL,NULL),(239,'335-006-607-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(240,'335-006-615-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(241,'335-006-623-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(242,'335-006-630-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(243,'335-006-609-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(244,'335-006-616-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(245,'335-006-624-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(246,'335-006-631-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(247,'335-006-610-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(248,'335-006-617-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(249,'335-006-625-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(250,'335-006-632-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(251,'335-006-611-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(252,'335-006-619-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(253,'335-006-626-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(254,'335-006-633-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(255,'335-006-612-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(256,'335-006-620-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(257,'335-006-627-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:38',NULL,NULL),(258,'335-006-634-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(259,'335-006-613-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(260,'335-006-621-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(261,'335-006-628-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(262,'335-006-614-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(263,'335-006-622-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(264,'335-006-629-0','BOOSTER VANE STAGE 3','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(265,'335-006-708-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(266,'335-006-718-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(267,'335-006-724-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(268,'335-006-730-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(269,'335-006-709-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(270,'335-006-719-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(271,'335-006-725-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(272,'335-006-731-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(273,'335-006-710-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(274,'335-006-720-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(275,'335-006-726-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(276,'335-006-732-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(277,'335-006-711-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(278,'335-006-721-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(279,'335-006-727-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(280,'335-006-733-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(281,'335-006-714-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(282,'335-006-722-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(283,'335-006-728-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(284,'335-006-734-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(285,'335-006-716-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(286,'335-006-723-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(287,'335-006-729-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(288,'335-006-717-0','BOOSTER VANE STAGE 4','72-21-09',NULL,'2019-07-25 14:16:39',NULL,NULL),(289,'335-105-305-0','DAMPER ASSEMBLY','72-21-16',NULL,'2019-07-25 14:16:39',NULL,NULL),(290,'335-006-405-0','<NAME>','72-22-01',NULL,'2019-07-25 14:16:39',NULL,NULL),(291,'335-006-407-0','<NAME>','72-22-01',NULL,'2019-07-25 14:16:39',NULL,NULL),(292,'335-003-304-0','NO.1 BEARING SUPPORT ASSY','72-22-02',NULL,'2019-07-25 14:16:39',NULL,NULL),(293,'335-003-305-0','NO.1 BEARING SUPPORT ASSY','72-22-02',NULL,'2019-07-25 14:16:39',NULL,NULL),(294,'335-003-308-0','NO.1 BEARING SUPPORT ASSY','72-22-02',NULL,'2019-07-25 14:16:39',NULL,NULL),(295,'335-010-102-0','NO.2 BEARING SUPPORT ASSY','72-22-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(296,'335-010-104-0','NO.2 BEARING SUPPORT ASSY','72-22-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(297,'301-298-208-0','REAR ROTATING AIR / OIL SEAL','72-22-06',NULL,'2019-07-25 14:16:39',NULL,NULL),(298,'301-287-119-0','STATIONARY AIR OIL SEAL','72-22-11',NULL,'2019-07-25 14:16:39',NULL,NULL),(299,'305-439-401-0','STATIONARY AIR OIL SEAL','72-22-11',NULL,'2019-07-25 14:16:39',NULL,NULL),(300,'305-439-402-0','STATIONARY AIR OIL SEAL','72-22-11',NULL,'2019-07-25 14:16:39',NULL,NULL),(301,'301-537-905-0','NO.1 BEARING INNER RACE RETAINING NUT','72-22-13',NULL,'2019-07-25 14:16:39',NULL,NULL),(302,'335-034-501-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(303,'335-034-622-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(304,'335-034-502-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(305,'335-034-623-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(306,'335-034-503-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(307,'335-034-624-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(308,'335-034-604-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(309,'335-034-701-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(310,'335-034-605-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(311,'335-034-702-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(312,'335-034-606-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(313,'335-034-703-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(314,'335-034-621-0','FAN OUTLET GUIDE VANE (ALUMINUM)','72-23-03',NULL,'2019-07-25 14:16:39',NULL,NULL),(315,'334-007-110-0','HOUSING INNER RADIAL DRIVE SHAFT','72-23-05',NULL,'2019-07-25 14:16:39',NULL,NULL),(316,'335-030-602-0','HOUSING INNER RADIAL DRIVE SHAFT','72-23-05',NULL,'2019-07-25 14:16:39',NULL,NULL),(317,'335-030-701-0','HOUSING INNER RADIAL DRIVE SHAFT','72-23-05',NULL,'2019-07-25 14:16:39',NULL,NULL),(318,'301-473-720-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(319,'335-031-311-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(320,'335-034-101-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(321,'301-473-725-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(322,'335-031-501-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(323,'335-034-111-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(324,'305-082-809-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(325,'335-031-502-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(326,'335-034-201-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(327,'305-082-812-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(328,'335-031-601-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(329,'335-034-209-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(330,'335-031-201-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(331,'335-031-611-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(332,'335-085-003-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(333,'335-031-211-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(334,'335-084-803-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(335,'335-085-103-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(336,'335-031-301-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(337,'335-084-903-0','FAN DUCT PANEL','72-23-07',NULL,'2019-07-25 14:16:39',NULL,NULL),(338,'C23102-001','LAVATORY UNITS',NULL,NULL,NULL,NULL,NULL),(339,'C23502-001','LAVATORY UNITS',NULL,NULL,NULL,NULL,NULL),(340,'C23602-001','LAVATORY UNITS',NULL,NULL,NULL,NULL,NULL),(341,'149A7151','WING TO BODY FAIRING-UPPER FWD FAIRING',NULL,NULL,NULL,NULL,NULL),(342,'65-73294-SERIES','NOSE RADOME',NULL,NULL,NULL,NULL,NULL),(343,'113A2700-1','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(344,'113A2700-15','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(345,'113A2700-16','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(346,'113A2700-17','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(347,'113A2700-18','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(348,'113A2700-2','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(349,'113A2700-21','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(350,'113A2700-22','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(351,'113A2700-23','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(352,'113A2700-24','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(353,'113A2700-25','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(354,'113A2700-26','AFT INBOARD FLAP ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(355,'113A4200-4','NO.1 & 2 OUTBOARD GND. SPOILER ASSY.',NULL,NULL,NULL,NULL,NULL),(356,'113A4300-1','FLIGHT SPOILER ASSY NO.3 & 10',NULL,NULL,NULL,NULL,NULL),(357,'113A4300-2','FLIGHT SPOILER ASSY NO.3 & 10',NULL,NULL,NULL,NULL,NULL),(358,'113A4300-3','FLIGHT SPOILER ASSY NO.3 & 10',NULL,NULL,NULL,NULL,NULL),(359,'113A4300-4','FLIGHT SPOILER ASSY NO.3 & 10',NULL,NULL,NULL,NULL,NULL),(360,'113A4400-1','FLIGHT SPOILER ASSY NO.4 & 9',NULL,NULL,NULL,NULL,NULL),(361,'113A4400-2','FLIGHT SPOILER ASSY NO.4 & 9',NULL,NULL,NULL,NULL,NULL),(362,'113A4400-3','FLIGHT SPOILER ASSY NO.4 & 9',NULL,NULL,NULL,NULL,NULL),(363,'113A4400-4','FLIGHT SPOILER ASSY NO.4 & 9',NULL,NULL,NULL,NULL,NULL),(364,'113A4500-1','FLIGHT SPOILER ASSY NO.5 & 8',NULL,NULL,NULL,NULL,NULL),(365,'113A4500-2','FLIGHT SPOILER ASSY NO.5 & 8',NULL,NULL,NULL,NULL,NULL),(366,'113A4500-3','FLIGHT SPOILER ASSY NO.5 & 8',NULL,NULL,NULL,NULL,NULL),(367,'113A4500-4','FLIGHT SPOILER ASSY NO.5 & 8',NULL,NULL,NULL,NULL,NULL),(368,'113A4100-1','NO.1 & 2 OUTBOARD GND. SPOILER ASSY.',NULL,NULL,NULL,NULL,NULL),(369,'113A4100-2','NO.1 & 2 OUTBOARD GND. SPOILER ASSY.',NULL,NULL,NULL,NULL,NULL),(370,'113A4100-3','NO.1 & 2 OUTBOARD GND. SPOILER ASSY.',NULL,NULL,NULL,NULL,NULL),(371,'113A4600-1','FLIGHT SPOILER ASSY NO.6 & 7',NULL,NULL,NULL,NULL,NULL),(372,'113A4600-2','FLIGHT SPOILER ASSY NO.6 & 7',NULL,NULL,NULL,NULL,NULL),(373,'113A4600-3','FLIGHT SPOILER ASSY NO.6 & 7',NULL,NULL,NULL,NULL,NULL),(374,'113A4600-4','FLIGHT SPOILER ASSY NO.6 & 7',NULL,NULL,NULL,NULL,NULL),(375,'65B02300-1','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(376,'65B02300-48','INBOARD SPOILER PANEL ASSY. NO. 5 AND 8',NULL,NULL,NULL,NULL,NULL),(377,'65B02300-50','INBOARD SPOILER PANEL ASSY. NO. 5 AND 8',NULL,NULL,NULL,NULL,NULL),(378,'65B02300-51','INBOARD SPOILER PANEL ASSY. NO. 5 AND 8',NULL,NULL,NULL,NULL,NULL),(379,'65B02300-52','INBOARD SPOILER PANEL ASSY. NO. 5 AND 8',NULL,NULL,NULL,NULL,NULL),(380,'65B02300-53','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(381,'65B02300-56','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(382,'65B02300-65','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(383,'65B02300-66','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(384,'65B02300-67','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(385,'65B02300-68','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(386,'65B02300-70','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(387,'65B02300-71','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(388,'65B02300-75','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(389,'65B02300-76','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(390,'65B02300-77','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(391,'65B02300-79','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(392,'65B02300-81','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(393,'65B02300-83','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(394,'65B02300-85','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(395,'65B02300-87','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(396,'65B02300-89','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(397,'65B02300-91SP','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(398,'65B02300-92','INBOARD SPOILER PANEL ASSY. NO. 5 & 8',NULL,NULL,NULL,NULL,NULL),(399,'65B02310-1','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(400,'65B02310-37','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(401,'65B02310-39','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(402,'65B02310-40','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(403,'65B02310-41','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(404,'65B02310-42','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(405,'65B02310-50','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(406,'65B02310-51','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(407,'65B02310-52','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(408,'65B02310-53','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(409,'65B02310-55','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(410,'65B02310-56','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(411,'65B02310-58','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(412,'65B02310-59','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(413,'65B02310-60','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(414,'65B02310-61','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(415,'65B02310-63','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(416,'65B02310-65','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(417,'65B02310-67','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(418,'65B02310-69','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(419,'65B02310-71','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(420,'65B02310-73A','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(421,'65B02310-73B','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(422,'65B02310-73C','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(423,'65B02310-73D','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(424,'65B02310-73E','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(425,'65B02310-73G','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(426,'65B02310-74','INBOARD SPOILER PANEL ASSY. NO. 6 & 7',NULL,NULL,NULL,NULL,NULL),(427,'65B02250-1','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(428,'65B02250-36','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(429,'65B02250-38','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(430,'65B02250-41','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(431,'65B02250-43','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(432,'65B02250-49','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(433,'65B02250-51','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(434,'65B02250-52','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(435,'65B02250-53','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(436,'65B02250-54','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(437,'65B02250-55','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(438,'65B02250-58','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(439,'65B02250-59','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(440,'65B02250-60','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(441,'65B02250-61','INBOARD SPOILER PANEL ASSEMBLY',NULL,NULL,NULL,NULL,NULL),(442,'335-011-303-0','FORWARD ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(443,'335-011-305-0','FORWARD ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(444,'335-011-307-0','FORWARD ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(445,'335-011-903-0','MID ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(446,'335-011-904-0','MID ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(447,'335-017-202-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(448,'335-017-315-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(449,'335-022-806-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(450,'335-022-914-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(451,'335-038-109-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(452,'335-038-215-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(453,'335-063-104-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(454,'335-063-611-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(455,'335-017-207-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(456,'335-017-403-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(457,'335-022-808-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(458,'335-038-003-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(459,'335-038-110-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(460,'335-038-217-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(461,'335-063-109-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(462,'335-063-613-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(463,'335-017-209-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(464,'335-017-409-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(465,'335-022-811-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(466,'335-038-009-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(467,'335-038-112-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(468,'335-038-303-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(469,'335-063-111-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(470,'335-063-616-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(471,'335-017-212-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(472,'335-017-410-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(473,'335-022-903-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(474,'335-038-010-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(475,'335-038-115-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(476,'335-038-310-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(477,'335-063-113-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(478,'335-017-303-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:38','2019-07-25 14:19:38',NULL,NULL),(479,'335-017-413-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(480,'335-022-908-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(481,'335-038-012-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(482,'335-038-203-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(483,'335-038-311-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(484,'335-063-115-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(485,'335-017-310-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(486,'335-017-416-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(487,'335-022-909-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(488,'335-038-015-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(489,'335-038-210-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(490,'335-038-313-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(491,'335-063-606-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(492,'335-017-312-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(493,'335-022-802-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(494,'335-022-911-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(495,'335-038-103-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(496,'335-038-212-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(497,'335-038-316-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(498,'335-063-610-0','AFT ACOUSTIC PANEL','72-23-08','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(499,'9336M78G01','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(500,'9339M40G01','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(501,'9339M40G02','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(502,'9339M40G03','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(503,'9339M40G04','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(504,'9339M40G05','NO.3 BRG FWD STATIONARY OIL SEAL','72-23-19','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(505,'1278M61G02','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(506,'1663M19G05','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(507,'1663M90G08','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(508,'1663M90G19','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(509,'1960M96G03','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(510,'1960M96G10','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(511,'1960M96G20','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(512,'1960M96G30','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(513,'1960M96G40','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(514,'1960M96G49','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(515,'1279M52G03','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(516,'1663M19G07','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(517,'1663M90G09','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(518,'1663M90G20','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(519,'1960M96G04','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(520,'1960M96G12','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(521,'1960M96G22','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(522,'1960M96G31','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(523,'1960M96G41','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(524,'1960M96G51','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(525,'1279M52G05','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(526,'1663M19G08','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(527,'1663M90G10','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(528,'1663M91G01','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(529,'1960M96G05','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(530,'1960M96G14','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(531,'1960M96G23','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(532,'1960M96G32','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(533,'1960M96G42','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(534,'1960M96G53','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(535,'1279M52G06','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(536,'1663M19G10','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(537,'1663M90G11','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL),(538,'1663M91G03','NO.3 BRG AFT STATIONARY SEAL','72-23-20','2019-07-25 14:19:39','2019-07-25 14:19:39',NULL,NULL);
/*!40000 ALTER TABLE `part_numbers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `password_resets`
--
DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `password_resets`
--
LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `questionnaires`
--
DROP TABLE IF EXISTS `questionnaires`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `questionnaires` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`master_request_id` int(11) NOT NULL,
`questionare` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `questionnaires`
--
LOCK TABLES `questionnaires` WRITE;
/*!40000 ALTER TABLE `questionnaires` DISABLE KEYS */;
INSERT INTO `questionnaires` VALUES (1,1,'[{\"answer\": \"\", \"remark\": \"\", \"question\": \"Is GMF Form No. GMF/Q-268 use the current revision?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is GMF Form No. GMF/Q-267 use the current revision?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the Aircraft Data complete?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the maintenance area ticked?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the maintenance ability tracking number duplicates ?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the approval request is complete?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the Authorithy capability request mentioned in the approval request?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is all requirements ticked?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is maintenance area correct?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Aircraft type and manufacturer correct?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is manufacturer\'s document available?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the tools and equipment available?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is material available?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is qualified personnel available? As per scope rating request?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the ability ticked?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is any special work to be order outside filled?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is limitation filled?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is AMEL holder personnel expiration date valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is AMEL holder personnel training completed and valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is AMEL holder personnel could work for Unit mentioned?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is AMEL Holder has applicable and valid authorization?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Cof C of AMEL Holder current?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Certifying Staff personnel expiration date valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Certifying Staff\'s training completed and still valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Certifying Staff has applicable and valid authorization?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Cof C of Certifying Staff current?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is aircraft document use the current revison ?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is material available in SWIFT?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Special Tools and equipment available?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is Facility complete? Is Equipment available (jack, dock)?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the facility/hangar capable for maintain that Aircraft?\", \"max_score\": \"\"}]',NULL,'2019-08-21 14:13:32'),(2,2,'[{\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah document Manual Status Confirmation (GMF/Q-324) atau screenshoot dari tech pub available dan current?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah file maintenance manual sudah available?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah PD Sheet sudah didevelop secara proper mengacu ke manual? (Reference, Doc. No. , Rev & Date, Content, Tool & Equipment, Value of measurement, etc)\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah PD Sheet sudah mencantumkan aspek critical item (misal FOD Prevention)?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah document equivalent tool sudah dibuat untuk tools equivalent mengacu ke list of test equipment & special tools di shop ability?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah document Equivalent Tools/ Equipment Analysis Report sudah mengacu kepada procedure dan ada document pendukung nya (if required, seperti drawing dsb)?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah nominated Certifying Staff memiliki training component yang proper sesuai dengan component yang diajukan?\\nBisa dari: \\na). OEM, atau\\nb). OEM recognized training organization (147 yang di approved OEM), atau c).Appropriately MRO dengan syarat:\\n- Pengajar sudah mendapatkan training dengan level dan P/N yang related\\n- Pengajar sudah mendapatkan otorisasi dari MRO dan dapat menunjukkan experience sesuai P/N component tsb.\\n- Training syllabus sudah approved by Engineering & Quality Manager\\n- Ada component untuk practical training purpose\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Engineering Information (EI) yang menyatakan proposed P/N adalah simple component\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Statement dari manufacture/vendor “no training needed”\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Certificate training untuk reference component similarity\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Sample 3 maintenance record untuk referenced component similarity released by nominated CS (at least pelaksanaan 6 bulan terakhir)\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Record pelaksanaan demo untuk component yang diproposed.\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Untuk component yang memiliki test bench equipment atau special tools, apakah Certifying Staff memiliki training Test bench atau special tools tsb (if required)?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah nominated Certifying Staff memiliki authorization yang applicable dan valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah nominated Certifying Staff dan technicians memiliki C of C yang valid?\", \"max_score\": \"\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"Apakah nominated Certifying Staff dan technicians memiliki PAL (Personnal Ability List) yang applicable sesuai P/N yang diajukan?\", \"max_score\": \"\"}]',NULL,'2019-05-24 13:05:28'),(3,3,'[{\"answer\": \"\", \"remark\": \"\", \"question\": \"Is the certificate of competence complete?\"}]',NULL,'2019-08-21 13:49:29'),(4,4,'[{\"answer\": \"\", \"remark\": \"\", \"question\": \"ABCD\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"DEF\"}]',NULL,'2019-08-16 15:50:49'),(5,5,'[{\"answer\": \"\", \"remark\": \"\", \"question\": \"apakah certificate valid?\", \"max_score\": \"30\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"apakah vendor jelas?\", \"max_score\": \"30\"}, {\"answer\": \"\", \"remark\": \"\", \"question\": \"approval lengkap?\", \"max_score\": \"40\"}]',NULL,'2019-07-24 15:11:09');
/*!40000 ALTER TABLE `questionnaires` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `request_histories`
--
DROP TABLE IF EXISTS `request_histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `request_histories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`data` json DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `request_histories`
--
LOCK TABLES `request_histories` WRITE;
/*!40000 ALTER TABLE `request_histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `request_histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `request_submittions`
--
DROP TABLE IF EXISTS `request_submittions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `request_submittions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`master_request_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`aproval` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`status_read` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`checked_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approve_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`decision` json DEFAULT NULL,
`score` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`step_request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qsa_part_approve` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`submit_date` date DEFAULT NULL,
`remark_deletion` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_approve` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `request_submittions`
--
LOCK TABLES `request_submittions` WRITE;
/*!40000 ALTER TABLE `request_submittions` DISABLE KEYS */;
/*!40000 ALTER TABLE `request_submittions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_documents`
--
DROP TABLE IF EXISTS `special_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`no_document` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rev_date` date DEFAULT NULL,
`document_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`manual_status_confirmation` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_maintenance_manual` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`proposed_pd_sheet` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_documents`
--
LOCK TABLES `special_documents` WRITE;
/*!40000 ALTER TABLE `special_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_materials`
--
DROP TABLE IF EXISTS `special_materials`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_materials` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_materials`
--
LOCK TABLES `special_materials` WRITE;
/*!40000 ALTER TABLE `special_materials` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_materials` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_part_lists`
--
DROP TABLE IF EXISTS `special_part_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_part_lists` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`example_part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_part_lists`
--
LOCK TABLES `special_part_lists` WRITE;
/*!40000 ALTER TABLE `special_part_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_part_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_personels`
--
DROP TABLE IF EXISTS `special_personels`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_personels` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`job_title` text COLLATE utf8mb4_unicode_ci,
`auth_no_stamp_holder` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scope_competency` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`skill` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`nominate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`training_certificate` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`personal_ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`certificate_competence` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`staff_authorization` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`level` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_personels`
--
LOCK TABLES `special_personels` WRITE;
/*!40000 ALTER TABLE `special_personels` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_personels` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_requests`
--
DROP TABLE IF EXISTS `special_requests`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_requests` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request_submittion_id` int(11) NOT NULL,
`request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_number` text COLLATE utf8mb4_unicode_ci,
`engine_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_manufacturer` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aircraft_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ata_chapter` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`workshop` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`for_rating` json DEFAULT NULL,
`facilities` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`special_tools` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`special_equipment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qualified_personel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_data` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`appropriate_rating` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`manual_revision` json DEFAULT NULL,
`aproval_request_carry_out` json DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_requests`
--
LOCK TABLES `special_requests` WRITE;
/*!40000 ALTER TABLE `special_requests` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_requests` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_sheet_lists`
--
DROP TABLE IF EXISTS `special_sheet_lists`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_sheet_lists` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`category` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pd_sheet_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_sheet_lists`
--
LOCK TABLES `special_sheet_lists` WRITE;
/*!40000 ALTER TABLE `special_sheet_lists` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_sheet_lists` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_shop_abilities`
--
DROP TABLE IF EXISTS `special_shop_abilities`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_shop_abilities` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`shop_maintenance` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shop_ability_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`summary_of_maintenance` json DEFAULT NULL,
`document_required` text COLLATE utf8mb4_unicode_ci,
`test_equipment_part_number` text COLLATE utf8mb4_unicode_ci,
`test_equipment_part_name` text COLLATE utf8mb4_unicode_ci,
`special_tool_part_number` text COLLATE utf8mb4_unicode_ci,
`special_tool_part_name` text COLLATE utf8mb4_unicode_ci,
`remark` text COLLATE utf8mb4_unicode_ci,
`manufacture_documentation_drawing` text COLLATE utf8mb4_unicode_ci,
`inspection` text COLLATE utf8mb4_unicode_ci,
`tool_equipment` text COLLATE utf8mb4_unicode_ci,
`special_work` text COLLATE utf8mb4_unicode_ci,
`particular` text COLLATE utf8mb4_unicode_ci,
`available_qualified` text COLLATE utf8mb4_unicode_ci,
`ability_inspection` tinyint(1) DEFAULT NULL,
`ability_testing` tinyint(1) DEFAULT NULL,
`ability_modification` tinyint(1) DEFAULT NULL,
`ability_repair` tinyint(1) DEFAULT NULL,
`ability_overhauled` tinyint(1) DEFAULT NULL,
`consumable_material` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`ndt_method` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reference` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`special_facility` text COLLATE utf8mb4_unicode_ci,
`qualified_personel` json DEFAULT NULL,
`equipment_tools` json DEFAULT NULL,
`ability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_shop_abilities`
--
LOCK TABLES `special_shop_abilities` WRITE;
/*!40000 ALTER TABLE `special_shop_abilities` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_shop_abilities` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_test_equipments`
--
DROP TABLE IF EXISTS `special_test_equipments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_test_equipments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remark` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_test_equipments`
--
LOCK TABLES `special_test_equipments` WRITE;
/*!40000 ALTER TABLE `special_test_equipments` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_test_equipments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `special_tools`
--
DROP TABLE IF EXISTS `special_tools`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `special_tools` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_submittion_id` int(11) NOT NULL,
`part_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tool_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`availability` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `special_tools`
--
LOCK TABLES `special_tools` WRITE;
/*!40000 ALTER TABLE `special_tools` DISABLE KEYS */;
/*!40000 ALTER TABLE `special_tools` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tabel_apis`
--
DROP TABLE IF EXISTS `tabel_apis`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tabel_apis` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`api` text COLLATE utf8mb4_unicode_ci,
`description` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tabel_apis`
--
LOCK TABLES `tabel_apis` WRITE;
/*!40000 ALTER TABLE `tabel_apis` DISABLE KEYS */;
INSERT INTO `tabel_apis` VALUES (1,'soe','http://172.16.40.238/codeigniter-restserver/Employee_amel_gmfauth?token=<KEY>','api untuk user soe',NULL,NULL),(2,'scope_soe','http://172.16.40.238/codeigniter-restserver/licence?nopeg={id}&token=<KEY>','api untuk mengambil scope dll per id number soe ada paramemter $id di nopeg',NULL,NULL),(3,'techpub','https://etechpub.gmf-aeroasia.co.id/index.php/api/documents/{search_type}/{search}/token/<KEY>','api untuk techpub ada parameter {search_type} dan {search }',NULL,NULL),(4,'tools_all','http://172.16.40.238/codeigniter-restserver/imte?rn=&pn=&sn=&token=<KEY>','api untuk menampilkan semua tool',NULL,NULL),(5,'tools_sn','http://172.16.40.238/codeigniter-restserver/imte?rn=&pn=&sn={search}&token=<KEY>','untuk menampikan tool search berdasarkan serial number ada parameter {search} di pn',NULL,NULL),(6,'tools_pn','http://172.16.40.238/codeigniter-restserver/imte?rn=&pn={search}&sn=&token=<KEY>','untuk menampikan tool search berdasarkan part number ada parameter {search} di pn=',NULL,NULL),(7,'tools_rn','http://172.16.40.238/codeigniter-restserver/imte?rn={search}&pn=&sn=&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6Imtpa2lrLmRldkBnbWFpbC5jb20ifQ.SnRhtd9P6A9zpvUAv0yE5aNlTMleB6NgOd90DurstZk','untuk menampikan tool search berdasarkan request number ada parameter {search} di rn=',NULL,NULL);
/*!40000 ALTER TABLE `tabel_apis` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `type_suppliers`
--
DROP TABLE IF EXISTS `type_suppliers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `type_suppliers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type_supplier` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment_lenght` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `type_suppliers`
--
LOCK TABLES `type_suppliers` WRITE;
/*!40000 ALTER TABLE `type_suppliers` DISABLE KEYS */;
INSERT INTO `type_suppliers` VALUES (1,'Repair Station','Certificate 1, Certificate 2, Certificate 3, Quality Manual, Capability List',NULL,'2019-07-24 11:35:41'),(2,'Material Supplier','Certificate 1, Certificate 2, Certificate 3, Quality Manual, Capability List/Parts Catalogue',NULL,'2019-07-24 11:38:20'),(3,'Calibration','Certificate 1, Certificate 2, Quality Manual, Capability List',NULL,'2019-07-24 11:40:44'),(4,'Maintenance Function','Certificate 1, Certificate 2, Certificate 2, Quality Manual, Capability List',NULL,'2019-08-04 11:48:08');
/*!40000 ALTER TABLE `type_suppliers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `unit_of_measures`
--
DROP TABLE IF EXISTS `unit_of_measures`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `unit_of_measures` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`unit` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=250 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `unit_of_measures`
--
LOCK TABLES `unit_of_measures` WRITE;
/*!40000 ALTER TABLE `unit_of_measures` DISABLE KEYS */;
INSERT INTO `unit_of_measures` VALUES (1,'%','Percentage',NULL,NULL,NULL,NULL),(2,'%O','Per mille',NULL,NULL,NULL,NULL),(3,'ONE','One',NULL,NULL,NULL,NULL),(4,'D','Days',NULL,NULL,NULL,NULL),(5,'22S','Square millimeter/second',NULL,NULL,NULL,NULL),(6,'CMS','Centimeter/second',NULL,NULL,NULL,NULL),(7,'0','Meter/Minute',NULL,NULL,NULL,NULL),(8,'µL','Microliter',NULL,NULL,NULL,NULL),(9,'µF','Microfarad',NULL,NULL,NULL,NULL),(10,'IB','Pikofarad',NULL,NULL,NULL,NULL),(11,'A','Ampere',NULL,NULL,NULL,NULL),(12,'GOH','Gigaohm',NULL,NULL,NULL,NULL),(13,'GM3','Gram/Cubic meter',NULL,NULL,NULL,NULL),(14,'ACR','Acre',NULL,NULL,NULL,NULL),(15,'KD3','Kilogram/cubic decimeter',NULL,NULL,NULL,NULL),(16,'QML','Kilomol',NULL,NULL,NULL,NULL),(17,'NI','Kilonewton',NULL,NULL,NULL,NULL),(18,'MN','Meganewton',NULL,NULL,NULL,NULL),(19,'MGO','Megohm',NULL,NULL,NULL,NULL),(20,'MHV','Megavolt',NULL,NULL,NULL,NULL),(21,'µA','Microampere',NULL,NULL,NULL,NULL),(22,'BAG','Bag',NULL,NULL,NULL,NULL),(23,'BAR','bar',NULL,NULL,NULL,NULL),(24,'BLD','Brake Landings',NULL,NULL,NULL,NULL),(25,'BT','Bottle',NULL,NULL,NULL,NULL),(26,'BOX','BOX',NULL,NULL,NULL,NULL),(27,'BQK','Becquerel/kilogram',NULL,NULL,NULL,NULL),(28,'RF','Millifarad',NULL,NULL,NULL,NULL),(29,'M/M','Mol per cubic meter',NULL,NULL,NULL,NULL),(30,'M/L','Mol per liter',NULL,NULL,NULL,NULL),(31,'NA','Nanoampere',NULL,NULL,NULL,NULL),(32,'C3S','Cubic centimeter/second',NULL,NULL,NULL,NULL),(33,'R-U','Nanofarad',NULL,NULL,NULL,NULL),(34,'NMM','Newton/Square millimeter',NULL,NULL,NULL,NULL),(35,'CCM','Cubic centimeter',NULL,NULL,NULL,NULL),(36,'CD','Candela',NULL,NULL,NULL,NULL),(37,'CD3','Cubic decimeter',NULL,NULL,NULL,NULL),(38,'CM','Centimeter',NULL,NULL,NULL,NULL),(39,'CM2','Square centimeter',NULL,NULL,NULL,NULL),(40,'CMH','Centimeter/hour',NULL,NULL,NULL,NULL),(41,'CV','Case',NULL,NULL,NULL,NULL),(42,'CL','Centiliter',NULL,NULL,NULL,NULL),(43,'CYC','CYCLES',NULL,NULL,NULL,NULL),(44,'S/M','Siemens per meter',NULL,NULL,NULL,NULL),(45,'TOM','Ton/Cubic meter',NULL,NULL,NULL,NULL),(46,'VAM','Voltampere',NULL,NULL,NULL,NULL),(47,'DB','Decibel',NULL,NULL,NULL,NULL),(48,'DEG','Degree',NULL,NULL,NULL,NULL),(49,'DM','Decimeter',NULL,NULL,NULL,NULL),(50,'DR','Drum',NULL,NULL,NULL,NULL),(51,'DZ','Dozen',NULL,NULL,NULL,NULL),(52,'EA','each',NULL,NULL,NULL,NULL),(53,'EU','Enzyme Units',NULL,NULL,NULL,NULL),(54,'EML','Enzyme Units / Milliliter',NULL,NULL,NULL,NULL),(55,'F','Farad',NULL,NULL,NULL,NULL),(56,'°F','Fahrenheit',NULL,NULL,NULL,NULL),(57,'FT','Foot',NULL,NULL,NULL,NULL),(58,'FT2','Square foot',NULL,NULL,NULL,NULL),(59,'FT3','Cubic foot',NULL,NULL,NULL,NULL),(60,'G','Gram',NULL,NULL,NULL,NULL),(61,'G/L','gram act.ingrd / liter',NULL,NULL,NULL,NULL),(62,'GAU','Gram Gold',NULL,NULL,NULL,NULL),(63,'°C','Degrees Celsius',NULL,NULL,NULL,NULL),(64,'GHG','Gram/hectogram',NULL,NULL,NULL,NULL),(65,'GJ','Gigajoule',NULL,NULL,NULL,NULL),(66,'GKG','Gram/kilogram',NULL,NULL,NULL,NULL),(67,'GLI','Gram/liter',NULL,NULL,NULL,NULL),(68,'GAL','US gallon',NULL,NULL,NULL,NULL),(69,'GPM','Gallons per mile (US)',NULL,NULL,NULL,NULL),(70,'GM','Gram/Mol',NULL,NULL,NULL,NULL),(71,'GM2','Gram/square meter',NULL,NULL,NULL,NULL),(72,'GPH','Gallons per hour (US)',NULL,NULL,NULL,NULL),(73,'µGQ','Microgram/cubic meter',NULL,NULL,NULL,NULL),(74,'GRO','Gross',NULL,NULL,NULL,NULL),(75,'GAI','Gram act. ingrd.',NULL,NULL,NULL,NULL),(76,'H','Hour',NULL,NULL,NULL,NULL),(77,'HA','Hectare',NULL,NULL,NULL,NULL),(78,'HL','Hectoliter',NULL,NULL,NULL,NULL),(79,'HPA','Hectopascal',NULL,NULL,NULL,NULL),(80,'HRS','Hours',NULL,NULL,NULL,NULL),(81,'HZ','Hertz (1/second)',NULL,NULL,NULL,NULL),(82,' ','',NULL,NULL,NULL,NULL),(83,'2 Inch2 Squar.inch Square inch_x000D_\n3','Cubic inch',NULL,NULL,NULL,NULL),(84,'J','Joule',NULL,NULL,NULL,NULL),(85,'YR','Years',NULL,NULL,NULL,NULL),(86,'JKG','Joule/Kilogram',NULL,NULL,NULL,NULL),(87,'JKK','Spec. Heat Capacity',NULL,NULL,NULL,NULL),(88,'JMO','Joule/Mol',NULL,NULL,NULL,NULL),(89,'K','Kelvin',NULL,NULL,NULL,NULL),(90,'KA','Kiloampere',NULL,NULL,NULL,NULL),(91,'CAN','Canister',NULL,NULL,NULL,NULL),(92,'CAR','Carton',NULL,NULL,NULL,NULL),(93,'KBK','Kilobecquerel/kilogram',NULL,NULL,NULL,NULL),(94,'KG','Kilogram',NULL,NULL,NULL,NULL),(95,'KGF','Kilogram/Square meter',NULL,NULL,NULL,NULL),(96,'KGK','Kilogram/Kilogram',NULL,NULL,NULL,NULL),(97,'KGM','Kilogram/Mol',NULL,NULL,NULL,NULL),(98,'KGS','Kilogram/second',NULL,NULL,NULL,NULL),(99,'KGV','Kilogram/cubic meter',NULL,NULL,NULL,NULL),(100,'KAI','Kilogram act. ingrd.',NULL,NULL,NULL,NULL),(101,'KHZ','Kilohertz',NULL,NULL,NULL,NULL),(102,'CRT','Crate',NULL,NULL,NULL,NULL),(103,'KIT','KIT',NULL,NULL,NULL,NULL),(104,'KJ','Kilojoule',NULL,NULL,NULL,NULL),(105,'KJK','Kilojoule/kilogram',NULL,NULL,NULL,NULL),(106,'KJM','Kilojoule/Mol',NULL,NULL,NULL,NULL),(107,'KM','Kilometer',NULL,NULL,NULL,NULL),(108,'KM2','Square kilometer',NULL,NULL,NULL,NULL),(109,'KMH','Kilometer/hour',NULL,NULL,NULL,NULL),(110,'KMK','Cubic meter/Cubic meter',NULL,NULL,NULL,NULL),(111,'KMN','Kelvin/Minute',NULL,NULL,NULL,NULL),(112,'KMS','Kelvin/Second',NULL,NULL,NULL,NULL),(113,'KOH','Kiloohm',NULL,NULL,NULL,NULL),(114,'KPA','Kilopascal',NULL,NULL,NULL,NULL),(115,'KT','Kilotonne',NULL,NULL,NULL,NULL),(116,'KV','Kilovolt',NULL,NULL,NULL,NULL),(117,'KVA','Kilovoltampere',NULL,NULL,NULL,NULL),(118,'KW','Kilowatt',NULL,NULL,NULL,NULL),(119,'KWH','Kilowatt hours',NULL,NULL,NULL,NULL),(120,'KIK','kg act.ingrd. / kg',NULL,NULL,NULL,NULL),(121,'L','Liter',NULL,NULL,NULL,NULL),(122,'LMI','Liter/Minute',NULL,NULL,NULL,NULL),(123,'LB','US pound',NULL,NULL,NULL,NULL),(124,'LDG','LANDINGS',NULL,NULL,NULL,NULL),(125,'AU','Activity unit',NULL,NULL,NULL,NULL),(126,'LHK','Liter per 100 km',NULL,NULL,NULL,NULL),(127,'LMS','Liter/Molsecond',NULL,NULL,NULL,NULL),(128,'LOT','lot',NULL,NULL,NULL,NULL),(129,'LPH','Liter per hour',NULL,NULL,NULL,NULL),(130,'M','Meter',NULL,NULL,NULL,NULL),(131,'M%','Percent mass',NULL,NULL,NULL,NULL),(132,'M%O','Permille mass',NULL,NULL,NULL,NULL),(133,'M/S','Meter/second',NULL,NULL,NULL,NULL),(134,'M2','Square meter',NULL,NULL,NULL,NULL),(135,'M-2','1 / square meter',NULL,NULL,NULL,NULL),(136,'M2S','Square meter/second',NULL,NULL,NULL,NULL),(137,'M3','Cubic meter',NULL,NULL,NULL,NULL),(138,'M3S','Cubic meter/second',NULL,NULL,NULL,NULL),(139,'MA','Milliampere',NULL,NULL,NULL,NULL),(140,'MBA','Millibar',NULL,NULL,NULL,NULL),(141,'MBZ','Meterbar/second',NULL,NULL,NULL,NULL),(142,'MEJ','Megajoule',NULL,NULL,NULL,NULL),(143,'MG','Milligram',NULL,NULL,NULL,NULL),(144,'MGE','Milligram/Square centimeter',NULL,NULL,NULL,NULL),(145,'MGG','Milligram/gram',NULL,NULL,NULL,NULL),(146,'MGK','Milligram/kilogram',NULL,NULL,NULL,NULL),(147,'MGL','Milligram/liter',NULL,NULL,NULL,NULL),(148,'MGQ','Milligram/cubic meter',NULL,NULL,NULL,NULL),(149,'MGW','Megawatt',NULL,NULL,NULL,NULL),(150,'MHZ','Megahertz',NULL,NULL,NULL,NULL),(151,'MI','Mile',NULL,NULL,NULL,NULL),(152,'MI2','Square mile',NULL,NULL,NULL,NULL),(153,'µM','Micrometer',NULL,NULL,NULL,NULL),(154,'MIN','Minute',NULL,NULL,NULL,NULL),(155,'MIS','Microsecond',NULL,NULL,NULL,NULL),(156,'MIJ','Millijoule',NULL,NULL,NULL,NULL),(157,'ML','Milliliter',NULL,NULL,NULL,NULL),(158,'MLK','Milliliter/cubic meter',NULL,NULL,NULL,NULL),(159,'MLI','Milliliter act. ingr.',NULL,NULL,NULL,NULL),(160,'MM','Millimeter',NULL,NULL,NULL,NULL),(161,'MM2','Square millimeter',NULL,NULL,NULL,NULL),(162,'MMA','Millimeter/year',NULL,NULL,NULL,NULL),(163,'MMG','Millimol/gram',NULL,NULL,NULL,NULL),(164,'MMH','Millimeter/hour',NULL,NULL,NULL,NULL),(165,'MMK','Millimol/kilogram',NULL,NULL,NULL,NULL),(166,'MMO','Millimol',NULL,NULL,NULL,NULL),(167,'MM3','Cubic millimeter',NULL,NULL,NULL,NULL),(168,'MMS','Millimeter/second',NULL,NULL,NULL,NULL),(169,'MNM','Millinewton/meter',NULL,NULL,NULL,NULL),(170,'MOK','Mol/kilogram',NULL,NULL,NULL,NULL),(171,'MOL','Mol',NULL,NULL,NULL,NULL),(172,'MON','Months',NULL,NULL,NULL,NULL),(173,'MPA','Megapascal',NULL,NULL,NULL,NULL),(174,'MPB','Mass parts per billion',NULL,NULL,NULL,NULL),(175,'MPG','Miles per gallon (US)',NULL,NULL,NULL,NULL),(176,'MPM','Mass parts per million',NULL,NULL,NULL,NULL),(177,'MPS','Millipascal seconds',NULL,NULL,NULL,NULL),(178,'MPT','Mass parts per trillion',NULL,NULL,NULL,NULL),(179,'MPZ','Meterpascal/second',NULL,NULL,NULL,NULL),(180,'M3H','Cubic meter/Hour',NULL,NULL,NULL,NULL),(181,'MSE','Millisecond',NULL,NULL,NULL,NULL),(182,'MS2','Meter/second squared',NULL,NULL,NULL,NULL),(183,'MTE','Millitesla',NULL,NULL,NULL,NULL),(184,'M/H','Meter/Hour',NULL,NULL,NULL,NULL),(185,'MV','Millivolt',NULL,NULL,NULL,NULL),(186,'MVA','Megavoltampere',NULL,NULL,NULL,NULL),(187,'MW','Milliwatt',NULL,NULL,NULL,NULL),(188,'MWH','Megawatt hour',NULL,NULL,NULL,NULL),(189,'N','Newton',NULL,NULL,NULL,NULL),(190,'NAM','Nanometer',NULL,NULL,NULL,NULL),(191,'NM','Newton/meter',NULL,NULL,NULL,NULL),(192,'NS','Nanosecond',NULL,NULL,NULL,NULL),(193,'OCM','Spec. Elec. Resistance',NULL,NULL,NULL,NULL),(194,'OHM','Ohm',NULL,NULL,NULL,NULL),(195,'OM','Spec. Elec. Resistance',NULL,NULL,NULL,NULL),(196,'OZ','Ounce',NULL,NULL,NULL,NULL),(197,'FOZ','Fluid Ounce US',NULL,NULL,NULL,NULL),(198,'P','Points',NULL,NULL,NULL,NULL),(199,'PA','Pascal',NULL,NULL,NULL,NULL),(200,'PAA','Pair',NULL,NULL,NULL,NULL),(201,'PAC','Pack',NULL,NULL,NULL,NULL),(202,'PAL','Pallet',NULL,NULL,NULL,NULL),(203,'PAS','Pascal second',NULL,NULL,NULL,NULL),(204,'PRC','Group proportion',NULL,NULL,NULL,NULL),(205,'PL','PAIL',NULL,NULL,NULL,NULL),(206,'PMI','1/minute',NULL,NULL,NULL,NULL),(207,'PMR','Permeation Rate SI',NULL,NULL,NULL,NULL),(208,'PPB','Parts per billion',NULL,NULL,NULL,NULL),(209,'PPM','Parts per million',NULL,NULL,NULL,NULL),(210,'PPT','Parts per trillion',NULL,NULL,NULL,NULL),(211,'PRM','Permeation Rate',NULL,NULL,NULL,NULL),(212,'PRS','Number of Persons',NULL,NULL,NULL,NULL),(213,'PS','Picosecond',NULL,NULL,NULL,NULL),(214,'PT','Pint, US liquid',NULL,NULL,NULL,NULL),(215,'QT','Quart, US liquid',NULL,NULL,NULL,NULL),(216,'RHO','Gram/cubic centimeter',NULL,NULL,NULL,NULL),(217,'RIM','rim',NULL,NULL,NULL,NULL),(218,'ROL','Role',NULL,NULL,NULL,NULL),(219,'S','Second',NULL,NULL,NULL,NULL),(220,'SET','set',NULL,NULL,NULL,NULL),(221,'SH','SHEET',NULL,NULL,NULL,NULL),(222,'ST','items',NULL,NULL,NULL,NULL),(223,'HR','Hours',NULL,NULL,NULL,NULL),(224,'DAY','Days',NULL,NULL,NULL,NULL),(225,'TC3','1/cubic centimeter',NULL,NULL,NULL,NULL),(226,'TES','Tesla',NULL,NULL,NULL,NULL),(227,'TS','Thousands',NULL,NULL,NULL,NULL),(228,'TM3','1/cubic meter',NULL,NULL,NULL,NULL),(229,'TO','Tonne',NULL,NULL,NULL,NULL),(230,'TON','US ton',NULL,NULL,NULL,NULL),(231,'1','',NULL,NULL,NULL,NULL),(232,'TUB','',NULL,NULL,NULL,NULL),(233,'µGL','Microgram/liter',NULL,NULL,NULL,NULL),(234,'V','Volt',NULL,NULL,NULL,NULL),(235,'V%','Percent volume',NULL,NULL,NULL,NULL),(236,'V%O','Permille volume',NULL,NULL,NULL,NULL),(237,'MSC','Microsiemens per centimeter',NULL,NULL,NULL,NULL),(238,'MPL','Millimol per liter',NULL,NULL,NULL,NULL),(239,'VAL','Value-only material',NULL,NULL,NULL,NULL),(240,'VPB','Volume parts per billion',NULL,NULL,NULL,NULL),(241,'VPM','Volume parts per million',NULL,NULL,NULL,NULL),(242,'VPT','Volume parts per trillion',NULL,NULL,NULL,NULL),(243,'W','Watt',NULL,NULL,NULL,NULL),(244,'WK','Weeks',NULL,NULL,NULL,NULL),(245,'WMK','Heat Conductivity',NULL,NULL,NULL,NULL),(246,'WKY','Evaporation Rate',NULL,NULL,NULL,NULL),(247,'YD','Yards',NULL,NULL,NULL,NULL),(248,'YD2','Square Yard',NULL,NULL,NULL,NULL),(249,'YD3','Cubic yard',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `unit_of_measures` 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(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 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,
`role` int(11) NOT NULL DEFAULT '1',
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`signature` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`role_request` int(11) DEFAULT NULL,
`id_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`position_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`component_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `users`
--
LOCK TABLES `users` WRITE;
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` VALUES (1,'Admin','<EMAIL>',NULL,'$2y$10$zFMRh4LhBi6TwWCArBhLfuIhgl0jIE9TT8tGubRWT9.7ATWoOjM/K',1,'8P24ZXytpL5UPB4z1oYpIKzLhRuYaqCOaf4ZwpBw2F1Rh6KgXM2HtKRPbMcm','2019-05-02 12:05:22','2019-05-02 12:05:22',NULL,NULL,NULL,'admin',NULL,NULL,NULL),(2,'<NAME>','<EMAIL>',NULL,'$2y$10$kejTR/o7MRbf8A3KnkRavO5LwpduiskMsYjn/f1w5mlUPlojOfh1C',2,'3x8nsyfNIZ0D8pAbSQvLo6JL3mnzhCeSRZ7TeoxWzWo6QnIpqm5eP92GahjX','2019-05-02 12:07:46','2019-07-25 10:01:18',NULL,'2019-07-25 10:01:18',1,'aircraftuser','AIRCRAFT MAINTENANCE ENGINEER','JKTTFN-2',NULL),(3,'<NAME>','<EMAIL>',NULL,'$2y$10$ZqXoQnOLXr78bs9.zOawnOXGGfijRHlHtYoZjY7RRjaDv0wGdu1FG',3,'O0EUPIkeTuGPCdkmtTx3k62TwyWNVVtXfQYhNmNtf3KAEAObz7QsFH3Xcgfv','2019-05-02 12:07:56','2019-07-18 13:38:52',NULL,NULL,1,'aircraftmanager','AIRCRAFT MAINTENANCE ENGINEER','JKTTQA-3',NULL),(4,'<NAME>','<EMAIL>',NULL,'$2y$10$X.fAmD2uwg/iumKP81aaS.bQozaNPmyHN.hc0vYmn/4KRVSebY5Z.',4,'uOGOMVqfa5LyeNyX834zAc4L8kROzK73KbVeCpdPKQKgrIwSSUsQgN6jfGTz','2019-05-02 12:08:12','2019-07-18 13:39:09',NULL,NULL,1,'aircraftgm','SENIOR AIRCRAFT MAINTENANCE TECHNICIAN','JKTTLM-3',NULL),(5,'<NAME>','<EMAIL>',NULL,'$2y$10$FmUpe00Twagy5QsR660kius0JUJbWUIlYfp2ud1wduOqqqtR69/K2',2,'YO4lncrzIc9WLAwRU9XRyYmCINP1Yw5OLDi00oYwzNVbrCk5rYCicBKSnjJj','2019-05-02 12:08:40','2019-07-25 10:04:49',NULL,NULL,2,'componentusertce','AIRCRAFT CABIN TECHNICIAN','JKTTNO-2','TCE'),(6,'<NAME>','<EMAIL>',NULL,'$2y$10$beoqrnyFW1gmGv.25W2htuBxfbUy3zghURLO36C6cWhoI2vFv4pRe',3,'PCUDgAONy4qGoyl28YA8z3KcuBtbuACz10Wd8MLau66vRiVhlyk8CN2YfNKx','2019-05-02 12:09:00','2019-07-25 10:05:08',NULL,NULL,2,'componentmanagertce','AIRCRAFT MAINTENANCE ENGINEER','JKTTLS-1','TCE'),(7,'<NAME>','<EMAIL>',NULL,'$2y$10$QXMF/zJG9tYo9FgtUXxRYOiloQ42NhpEwYuRd5nDAujO6Q2jFkzL.',4,'vwGGILUwKj3jhs0geGIGkuErnh4SZQiQKOW2umGdXQTfcC7Tx6OwCXlQ3jLc','2019-05-02 12:09:20','2019-07-25 10:05:31',NULL,NULL,2,'componentgmtce','PROJECT MANAGER CITILINK','JKTTFS','TCE'),(8,'<NAME>','<EMAIL>',NULL,'$2y$10$7ZADEUyiOMT6nMmUkXIYyeLci8gXGZoGjHQQTX.53PD2aAKDctiSq',2,'MWizhhkLfcoaVEGCuqnEDY6JHVT7LqSKc9NUfUxHs8mUJdHkIREHuzyo2B8L','2019-05-02 12:09:38','2019-08-21 13:07:02',NULL,NULL,3,'engineuser','CUSTOMER SUPPORT & SALES MANAGER','JKTTPG','Engine'),(9,'<NAME>','<EMAIL>',NULL,'$2y$10$/IK1N8ovOFgsRauhbTU6..FpzXbvaMhvYp9Ak.Q9F1gXb.6Otteqm',3,'tBXEy5AWPtDJZN6FvWG0B8AE9IFcS3syVDt63VbZ4b03iq9cmotZTKHTHrWs','2019-05-02 12:10:03','2019-08-21 11:09:47',NULL,NULL,3,'enginemanager','ACCOUNT MANAGER & SALES','JKTTPX','Engine'),(10,'<NAME>','<EMAIL>',NULL,'$2y$10$Hi24ss7rQWTk3VBXK71TxOKWVB37vz7Yxc8Q3vxhLavjamjB542b2',4,'KKRq22Lp7gJEnibOgrb38KLhKAWfeChtXrvS7i4N6XiXSGbm4to762rrpBNQ','2019-05-02 12:10:17','2019-08-21 11:18:11',NULL,NULL,3,'enginegm','MGR CAPACITY PLANNING & PERFORMANCE ANALYSIS','JKTTNP-3','Engine'),(11,'<NAME>','<EMAIL>',NULL,'$2y$10$iz/4JRCQNaXojqb0bDeZMuJIrBruEHslx/qPZy0BY3ol81WgPyj9m',2,'8BXqPz30AX3WfAkfTGT5TL8domNqLC1LKBS1I6LQDfYsuFGibv331x9UqAi5','2019-05-02 12:10:32','2019-05-02 12:10:32',NULL,NULL,4,'specialuser','SENIOR AIRCRAFT MAINTENANCE TECHNICIAN','JKTTLM-1',NULL),(12,'<NAME>','<EMAIL>',NULL,'$2y$10$vl9OESN9neXoG.mlHLbPPOvupgae4U5BSuB60OdPRLBWmeVBDk0GK',3,'m4jFayosVMvdP7wSNRfrynVslDQAuESxbaw8RRiRvem6Mi9lez6W9NndORpW','2019-05-02 12:10:41','2019-05-02 12:10:41',NULL,NULL,4,'specialproduction','AIRCRAFT PAINTER (I)','JKTTBP-2',NULL),(15,'<NAME>','<EMAIL>',NULL,'$2y$10$wpDcPmQuvwUtHpRx/AMOL.Qqzu.NONb1TtqJwBSvziiNVURvJT1ta',4,'cQK0imA3jUh7I5xWRualWybUXHrVMcu2o4RcmNXeIcqHQHk1DFkVaq4OagBR','2019-05-02 12:12:44','2019-05-02 12:12:44',NULL,NULL,4,'specialqsa','AIRCRAFT MAINTENANCE EXPERT','JKTTF',NULL),(16,'<NAME>','<EMAIL>',NULL,'$2y$10$jzJ9ZpyuYXa0HI0n5seiger.gFs9mdVEv/AejwKNqHBx1vbyV4Faq',2,'UtcQyY4ruFkNxnJaaVxo2DJVW0dazwyfdx5gWCGVRVyu1SARN2DBRGo3O17L','2019-05-02 12:12:57','2019-05-02 12:12:57',NULL,NULL,5,'vendoruser','AIRCRAFT MAINTENANCE ENGINEER','JKTTFD-7',NULL),(17,'<NAME>','<EMAIL>',NULL,'$2y$10$N65J4/ZiDkW4FXpUVhsjPOqQDevaXQ6wZSlaJUKFanHmMXWvl7zKa',3,'kYfw2xEsXN62j6altsyVLD8z1iIkr66k5QpUbD8RIcX9YHv9d1Sz23LuvIhQ','2019-05-02 12:13:10','2019-05-02 12:13:10',NULL,NULL,5,'vendormanager','AIRCRAFT MAINTENANCE ENGINEER','JKTTFN-2',NULL),(18,'<NAME>.','<EMAIL>',NULL,'$2y$10$A8lSlTVhLsh/9pJDE.WNyuX8.wcQ8PG.0SstYAylfVmPB0e4KCrEe',4,'tbSrdlHfPP4B7wsuKhXykLSxW2yNasRVd1XZKE2Mov8N0nf40VbYBFzFmcgv','2019-05-02 12:13:22','2019-05-02 12:13:22',NULL,NULL,5,'vendorgm','AIRCRAFT MAINTENANCE ENGINEER','JKTTFN-1',NULL),(19,'<NAME>','<EMAIL>',NULL,'$2y$10$aK.KOAMCBCGlunwtpU/j1.02cajoJCg8r40rmofvUYS9yfKGDVguO',2,NULL,'2019-05-13 13:51:02','2019-05-13 13:55:12',NULL,'2019-05-13 13:55:12',1,'581522','QUALITY SYSTEM ENGINEER','JKTTQL',NULL),(20,'<NAME>','<EMAIL>',NULL,'$2y$10$K0.K8sL5U43RCKF5PQ9qqe7K9p4WHS0/cs8DemjmiGU2AtDC5PtgG',3,NULL,'2019-05-13 13:52:37','2019-05-13 13:55:18',NULL,'2019-05-13 13:55:18',1,'521786','CERTIFIED QUALITY AUDITOR','JKTTQL',NULL),(21,'<NAME>','<EMAIL>',NULL,'$2y$10$ZAu3QjmpYBYjOFbn.v3ha.I6vAKOkcbiUsn7QOF1/aHJy/ITH7rXK',2,NULL,'2019-05-13 13:53:37','2019-07-26 09:09:28',NULL,NULL,3,'engineuser','CERTIFIED QUALITY AUDITOR','JKTTQL',NULL),(22,'<NAME>','<EMAIL>',NULL,'$2y$10$UIX2/yMG74qAPmq28NRCleeHlFE5oPIcoR7sGe5dAtxqcx1HBg.8C',3,'DuLGSSoGjdNKDSNNls6BregrwI0aedcIrsjYh7pF8n8ZYbuNn69kxqoWnPzF','2019-05-13 13:56:54','2019-08-21 11:09:18',NULL,'2019-08-21 11:09:18',3,'enginemanager','MGR CAPACITY PLANNING & PERFORMANCE ANALYSIS (CARETAKER)','JKTTLP-3',NULL),(23,'<NAME>','<EMAIL>',NULL,'$2y$10$SIO.yf.N/rZvNkHxqTCQGet89mfQwFfxxR6t4TbQdvpuXPPtL4zKC',4,'S0EcCrtlQkGabK99TGGSxBsIcs8Becyx9QqQHrd6ts26fh3mrqfzPATwqfW3','2019-05-13 13:57:32','2019-07-25 10:31:59',NULL,NULL,2,'componentgmtbr','GM LINE MAINTENANCE PLANNING & CONTROL','JKTTLP','TBR'),(24,'<NAME>','<EMAIL>',NULL,'$2y$10$F3ZzutBbnE3cHrscNxaKQuFMpPs2FQ1ougxbt86s2gK1G//g9SDOC',3,'0rIJnqWbYUs71cxhpiYlLAhpe0z0jfgFwSjEHrU5DKXSfjchW9JIX6v0WHLJ','2019-05-13 13:58:52','2019-07-25 10:04:22',NULL,NULL,2,'componentmanagertca','MGR PRODUCTION ENGINEERING AVIONIC','JKTTCA-4','TCA'),(25,'<NAME>','<EMAIL>',NULL,'$2y$10$dKyQsFhfM7xw/pjFz0HxcuGm9l6gsB3954emOE34UY2R5tZXGLIYi',4,'Gm3cBwiWoiEAEsvMCBAL8pxm31rTrkFW95jLd8qLJLMp5OFewGXDEqNK6Fvg','2019-05-13 13:59:53','2019-07-25 10:03:44',NULL,NULL,2,'componentgmtca','GM AVIONIC','JKTTCA','TCA'),(26,'<NAME>','<EMAIL>',NULL,'$2y$10$ZOkH0fnVX7ok1E8ruQG4XOJQ9lYIvhjrLJ3jm7g5Ecjc2ugSic6em',2,'csMtnjHBTo2xq3M3IsSqsYskE2bvRJuxqaSx33jElMDXXwHbgvXMZCSjh19p','2019-05-13 14:00:29','2019-07-25 10:02:44',NULL,NULL,2,'componentusertca','ASSOCIATE QUALITY AUDITOR','JKTTQC','TCA'),(27,'<NAME>','<EMAIL>',NULL,'$2y$10$DFP9OnM4R5T9BHoPlz0/jOxdwmwq5X.81/8WpxJfhL0WmaS0u1G..',4,'Hb24TjPbCDa7XB6NLDAgo3j3IiEX5etBHCXrMbyM5rT2ldiFG1QXMMzoNEFb','2019-05-13 14:01:33','2019-08-12 13:20:54',NULL,'2019-08-12 13:20:54',3,'enginegm','MGR CONTINUOUS IMPROVEMENT','JKTTVQ-3',NULL),(28,'<NAME>','<EMAIL>',NULL,'$2y$10$ywVzZ.KgeJa6mxecxyTi3e1fk14nMRjK5FgNC7tqzmHQ4HhcmgkbW',3,NULL,'2019-05-13 14:02:14','2019-08-12 13:20:57',NULL,'2019-08-12 13:20:57',3,'520749','GM ENGINE','JKTTVP',NULL),(29,'<NAME>','RIKI.<EMAIL>',NULL,'$2y$10$9koilw4YqJzY5uUp9tGqneZNuOCsZSV/9NDmesjfsztv43Jjw8iQ.',4,NULL,'2019-05-13 14:02:54','2019-08-12 13:20:59',NULL,'2019-08-12 13:20:59',3,'580747','ASSOCIATE QUALITY AUDITOR','JKTTQR',NULL),(30,'<NAME>','<EMAIL>',NULL,'$2y$10$6rZ9FoGdwR08mKFJU9kJmebVzrNJl.2hB1eFujMwrxtHr0uNbmu3S',2,NULL,'2019-05-13 14:04:47','2019-08-12 13:21:03',NULL,'2019-08-12 13:21:03',4,'532006','MGR ENGINEERING','JKTTVE-2',NULL),(31,'SUHERMANTO','<EMAIL>',NULL,'$2y$10$YfyO4OBAjSkx0j0qmGTGoeg.dJSzEHE4drweZYgbNOZpOEWecl6Ua',3,NULL,'2019-05-13 14:05:18','2019-08-12 13:21:05',NULL,'2019-08-12 13:21:05',4,'530609','GM QUALITY MANAGEMENT','JKTTVQ',NULL),(32,'<NAME>','<EMAIL>',NULL,'$2y$10$KCY6nHFYxJ7ezW4AjKMQcuflpYwbWYOnDpBXGBUhUrvpq8NdBqWyu',4,NULL,'2019-05-13 14:05:44','2019-08-12 13:21:13',NULL,'2019-08-12 13:21:13',4,'580453','ASSOCIATE QUALITY AUDITOR','JKTTQR',NULL),(33,'<NAME>','<EMAIL>',NULL,'$2y$10$Hdjnd6HHWX6vc4jIn/aTnuGR1rf.ncF6iSH9dmrgns16xZYhIAS8m',2,'H6WBBK85fdi47ZDaH0xBBLI750MdGrb0Xanoiy7f2SE3SBSwiETWzxU2Xx9p','2019-05-13 14:06:49','2019-08-12 13:21:20',NULL,'2019-08-12 13:21:20',5,'580473','MGR SPECIFIC MATERIAL & SERVICE MANAGEMENT','JKTTME-2',NULL),(34,'<NAME>','<EMAIL>',NULL,'$2y$10$DKAs24DjhQA6TyYt54f8cO9JTqqxQxXFeWi1UrUPzxKqstb/CBcHS',3,'Br3J8aaKf8lFIdMmJcYpq9rMipQ8wvoviKIDKPHvvSxyWWrK8ClgyQDjlbsL','2019-05-13 14:07:26','2019-08-12 13:21:22',NULL,'2019-08-12 13:21:22',5,'531980','SUBSIDIARY ASSIGNMENT','GELK',NULL),(35,'<NAME>','<EMAIL>',NULL,'$2y$10$GmdHjyPAZVQqcOv9CWK3XuHq0nDBiQcUvLH9hc7mpuLlDk.PTL5la',4,'ZYiRVasZyeSrTsEgmtUjmWbEXCOrSfMNnnKNxizo7KayXWz9MdGAXKdeYoOC','2019-05-13 14:08:04','2019-08-12 13:21:25',NULL,'2019-08-12 13:21:25',5,'532133','ASSOCIATE QUALITY AUDITOR','JKTTQM',NULL),(36,'<NAME>','<EMAIL>',NULL,'$2y$10$ZCCzHLIZCNazAgxihDF12up6av/Q2GWjOcm9pR.UmKdyaNKY5RpuG',2,NULL,'2019-05-14 14:03:02','2019-07-25 10:06:45',NULL,NULL,2,'componentusertcw','PROJECT MANAGER','JKTTNP-1','TCW'),(37,'<NAME>','<EMAIL>',NULL,'$2y$10$l35nML0MEDiKFjHa97RpbOhxfeQVaAL4MqqqvG0Fa15j4XDNZqmsm',3,NULL,'2019-05-14 14:03:39','2019-07-25 10:07:19',NULL,NULL,2,'componentmanagertcw','GM CABIN WORKSHOP','JKTTNO','TCW'),(38,'<NAME>','<EMAIL>',NULL,'$2y$10$32R3HhKA5rDPeQitjdu0jONfoAaFHTclO04JxFSv5vZg53qFjjhrK',3,NULL,'2019-05-14 14:37:35','2019-05-28 12:38:51',NULL,NULL,1,'527618','CERTIFIED QUALITY AUDITOR','JKTTQB',NULL),(39,'<NAME>','<EMAIL>',NULL,'$2y$10$NSPddnUX0u1GccZP3rnu1uNvP4jeyl2R2g4bhvmxsnM4SPYEzwyp6',4,'6KDH8VEZXiKS6DZWmlVEdtFiyra9VuUAHAat8niBsDInaXQ7qnehW5vzOCSZ','2019-05-20 14:08:18','2019-07-25 10:11:20',NULL,NULL,2,'componentgmtcw','AIRCRAFT MAINTENANCE PLANNING ENGINEER','JKTTCE-5','TCW'),(40,'<NAME>','<EMAIL>',NULL,'$2y$10$jQcEfZr8cZ.yBXuzgm/s5.xMjHRKRpDr7/oe8fexnabdlsD2jVkpy',2,'uuJyKUcDmRL68BCttxLDY6imoT6iDbjTwaFjDdXEP8XRSHnNABrCVOoygNpH','2019-05-20 14:08:45','2019-07-25 10:16:23',NULL,NULL,2,'componentusertno','GM ELECTRO MECHANICAL','JKTTCE','TNO'),(41,'<NAME>','<EMAIL>',NULL,'$2y$10$sH/OByotqkVh9ygEw4h5M.ZyUYvxrjnFjHj2u98.quo7Jqr6lYNZu',3,'RGGHH6qSFnCZu1pjCq0MLbLAEqRlzOeIyeZsnvwvS0kjjSbLsH7mrtpHK1TJ','2019-05-20 14:09:18','2019-07-25 10:18:49',NULL,NULL,2,'componentmanagertno','CERTIFIED QUALITY AUDITOR','JKTTQC','TNO'),(42,'<NAME>','<EMAIL>',NULL,'$2y$10$GFI4VXbFfb0n/g8KGQFmtuWx4NC1ggzlyb3HcL/mASKkmE/uVhpgq',2,'33zxPvMXqNjeKXm9HbIFaYPHynFscjExY0lqPNjmOhy6aAOpKRH9ng1dq9tX','2019-05-22 08:21:02','2019-08-03 18:13:55',NULL,NULL,1,'aircraftuser','AIRCRAFT MAINTENANCE PLANNING ENGINEER','JKTTCE-5',NULL),(43,'<NAME>','<EMAIL>',NULL,'$2y$10$hiaFKreVbU7kvp6zhyPEgOy/k6wQaLj6Hi8WKe5.eJGMS2OvmEqNC',4,'tsH4fi0Mtr6FJxfFzS9HlptOvABBNNVN3jEql377tphm7wqE6AY4DcwZH2r5','2019-05-27 10:53:19','2019-07-25 10:23:07',NULL,NULL,2,'componentgmtno','MGR PLANNING & ENGINEERING PRODUCTION','JKTTBR-1','TNO'),(44,'<NAME>','<EMAIL>',NULL,'$2y$10$Zo.z7QtAGc/hKLO0CJpMVebcvKCWu6EJQ33mWuLlOFVX93jgSrrt.',2,'jEAPGqNxKO8on7biSFOLKkLEZJ5ezh5xtybmbHoyvCn2lgPGNZzm77IVHvrn','2019-05-27 10:53:46','2019-07-25 10:20:02',NULL,NULL,2,'componentusertbr','GM STRUCTURE WORKSHOP','JKTTBR','TBR'),(46,'qsa','<EMAIL>',NULL,'$2y$10$oFcR.cP6DdIoWhcFuN7jiewU4D6C0url57xe8jSEc/reNs77OMDzC',5,'NbGlT6FdJWmooVdnUuaP5CVW9MUDm4pikU8ZrRQwMfLrB1XaTcl8WjwEdxYe',NULL,'2019-07-18 15:57:03',NULL,NULL,NULL,'qsa',NULL,NULL,NULL),(47,'gmqsa','<EMAIL>',NULL,'$2y$10$mxqDSHxFrYqquDMBGL1iyesaJ653tMrH6h9tITRgPofcFqLOVuCEa',6,'m82yVaXlimMoEP1HvNVo6gcicow0dl1AS0WFUwOSpSK17KV2s5oyjk6Nz4fV',NULL,'2019-07-18 15:56:43',NULL,NULL,NULL,'gmqsa',NULL,NULL,NULL),(50,'<NAME>','<EMAIL>',NULL,'$2y$10$Eth.sjuZWK6HwWIiPJOsGeoDIxX6GgymbYyi0qISA2VVU0tKEXP76',3,'asz7U9c2caOEocTzVAW1yI6PM4VyBWEz0JPknbibzRveK2NM7nxcZ9EzhgPG','2019-07-25 10:01:05','2019-07-25 10:21:05',NULL,NULL,2,'componentmanagertbr','AIRCRAFT MAINTENANCE ENGINEER','JKTTFN-2','TBR'),(51,'<NAME>','<EMAIL>',NULL,'$2y$10$GgDc78iLvaB4WdU5Fm8hEOYcvcM3ndUB84JdHDBpMdTSChttfUnnC',2,'kq15U7AbFy2ZghEL2GKHlEB8L7JOr6qcD5hMPbKOkwHptIVO2lzZfjq6rDo0','2019-07-25 14:40:02','2019-07-25 14:40:02',NULL,NULL,1,'580435','ASSOCIATE QUALITY AUDITOR','JKTTQL',NULL),(52,'<NAME>','<EMAIL>',NULL,'$2y$10$NYv/AL8SnAvgMh751K9.QumaD3SQCDXZtD67SoUMpcKX.lCtbS2VK',2,'zLFcg8RIuJtuQWxBQst7o8egs7sq6uPhvRFpW63RCQt02iqNzP6F6tEFnRbd','2019-07-26 14:17:00','2019-07-26 14:17:00',NULL,NULL,4,'specialprocessuser','SENIOR AIRCRAFT MAINTENANCE ENGINEER','JKTTLS-1',NULL),(53,'<NAME>','<EMAIL>',NULL,'$2y$10$XMjEGAj1cphgf/XSTWJ8muTeUFNfynZlgaTfXEPYy9nbj.Vy4U1OG',3,'7o0AbmnepkRJKtXlTxJcoaDwgCANQ5UFsFjVlGH0MwDDtTpgZUSVL5ZEPQZy','2019-07-26 14:17:42','2019-07-26 14:17:42',NULL,NULL,4,'specialprocessmanager','GM APU','JKTTVU',NULL),(54,'<NAME>','<EMAIL>',NULL,'$2y$10$k8nIe7UctnHYc9p4Ec34vuQjyGnx0wypN1O4Z6xGrz3jDH.rexTu6',4,'CX40keAAvm0NRXxPdzQuLErg4PEBAZyus3dT4EtujqWwcOijR2SCVDxV2JZx','2019-07-26 14:18:14','2019-07-26 14:18:14',NULL,NULL,4,'specialprocessgm','MGR LINE MAINTENANCE STATION PALEMBANG','PLMMM',NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `vendor_attachments`
--
DROP TABLE IF EXISTS `vendor_attachments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendor_attachments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`vendor_management_id` int(11) NOT NULL,
`name_attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `vendor_attachments`
--
LOCK TABLES `vendor_attachments` WRITE;
/*!40000 ALTER TABLE `vendor_attachments` DISABLE KEYS */;
/*!40000 ALTER TABLE `vendor_attachments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `vendor_capablity_list_details`
--
DROP TABLE IF EXISTS `vendor_capablity_list_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendor_capablity_list_details` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`capability_list_id` int(11) NOT NULL,
`type_supplier` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`supplier_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci,
`email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_update` date DEFAULT NULL,
`maint_fn` text COLLATE utf8mb4_unicode_ci,
`product_service` text COLLATE utf8mb4_unicode_ci,
`remark` text COLLATE utf8mb4_unicode_ci,
`dgca` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`faa` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`easa` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`asa` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`iso` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`nc` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`kan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`other` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`questionnaire_exp_date` date DEFAULT NULL,
`document_evidence` json DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `vendor_capablity_list_details`
--
LOCK TABLES `vendor_capablity_list_details` WRITE;
/*!40000 ALTER TABLE `vendor_capablity_list_details` DISABLE KEYS */;
/*!40000 ALTER TABLE `vendor_capablity_list_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `vendor_management_histories`
--
DROP TABLE IF EXISTS `vendor_management_histories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendor_management_histories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`vendor_management_id` int(11) NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`data` json DEFAULT NULL,
`attachment` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `vendor_management_histories`
--
LOCK TABLES `vendor_management_histories` WRITE;
/*!40000 ALTER TABLE `vendor_management_histories` DISABLE KEYS */;
/*!40000 ALTER TABLE `vendor_management_histories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `vendor_managements`
--
DROP TABLE IF EXISTS `vendor_managements`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `vendor_managements` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`request_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) NOT NULL,
`to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`from` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`dept` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_city` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_state` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_zip_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`vendor_fax` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_company` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`supplier_code` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`aplication_drawing` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`item_proposed` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type_supplier` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type_bussines` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`age_organization` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_employee` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_supervisors` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_inspectors` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_personel` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`list_name_aproval` json DEFAULT NULL,
`list_customers` json DEFAULT NULL,
`list_curent_capability` json DEFAULT NULL,
`representative_indonesia` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document_evidence` json DEFAULT NULL,
`other_document_evidence_value` json DEFAULT NULL,
`calibration_lab_certificate_value` json DEFAULT NULL,
`date_audit` date DEFAULT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`evaluation_organization` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_quality_assurance` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_qa_system` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_indicate_supply` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_part_inspection` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_maintain_quality` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_program_recertify` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_control_policies` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_trace_ability` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_for_usa_only` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_provide` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`evaluation_implement_sms` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`deleted_at` timestamp NULL DEFAULT NULL,
`token` text COLLATE utf8mb4_unicode_ci,
`attachment` text COLLATE utf8mb4_unicode_ci,
`status_vendor` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`read` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`decision` json DEFAULT NULL,
`score` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`step_request_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`maint_fn` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`questionnaire_exp_date` date DEFAULT NULL,
`product_service` text COLLATE utf8mb4_unicode_ci,
`qsa_part_approve` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`submit_date` date DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `vendor_managements`
--
LOCK TABLES `vendor_managements` WRITE;
/*!40000 ALTER TABLE `vendor_managements` DISABLE KEYS */;
/*!40000 ALTER TABLE `vendor_managements` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `workshops`
--
DROP TABLE IF EXISTS `workshops`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `workshops` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`workshop` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `workshops`
--
LOCK TABLES `workshops` WRITE;
/*!40000 ALTER TABLE `workshops` DISABLE KEYS */;
INSERT INTO `workshops` VALUES (1,'Cabin',NULL,NULL),(2,'Electrical',NULL,NULL),(3,'Electronic',NULL,NULL),(4,'Emergency',NULL,NULL),(5,'Engine/APU',NULL,NULL),(6,'Fuel',NULL,NULL),(7,'Gas',NULL,NULL),(8,'Hydraulic',NULL,NULL),(9,'Instrument',NULL,NULL),(10,'Landing Gear',NULL,NULL),(11,'Pneumatic',NULL,NULL),(12,'Radio',NULL,NULL),(13,'Structure',NULL,NULL),(14,'Sheet Metal','2019-07-26 09:28:52','2019-07-26 09:28:52'),(15,'NDT','2019-08-12 13:32:18','2019-08-12 13:32:18');
/*!40000 ALTER TABLE `workshops` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2019-10-18 15:09:35
|
<filename>SQL_Code/StageTableLoad.sql<gh_stars>0
ingard', '<EMAIL>',' 2006-01-11 ','Administrative Assistant', 34809 , 'Distribution', 'Allison Gentle',' 2006-01-11 ',' 2100-01-06 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Some College'),
('E18697', '<NAME>', '<EMAIL>',' 1995-06-01 ','Administrative Assistant', 45325 , 'HQ', 'Tyrone Hutchison',' 1995-06-01 ',' 2100-01-07 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E25640', '<NAME>', '<EMAIL>',' 2007-12-27 ','Administrative Assistant', 40647 , 'HQ', 'Tyrone Hutchison',' 2007-12-27 ',' 2100-01-08 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'No College'),
('E35075', '<NAME>', '<EMAIL>',' 2007-08-29 ','Administrative Assistant', 51633 , 'HQ', 'Tyrone Hutchison',' 2007-08-29 ',' 2100-01-09 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Some College'),
('E56459', '<NAME>', '<EMAIL>',' 2016-04-21 ','Administrative Assistant', 42313 , 'HQ', 'Tyrone Hutchison',' 2016-04-21 ',' 2100-01-10 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E78732', '<NAME>', '<EMAIL>',' 2020-01-24 ','Administrative Assistant', 34084 , 'HQ', 'Tyrone Hutchison',' 2020-01-24 ',' 2100-01-11 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E90407', '<NAME>', '<EMAIL>',' 2010-12-15 ','Administrative Assistant', 28373 , 'HQ', 'Tyrone Hutchison',' 2010-12-15 ',' 2100-01-12 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E45824', '<NAME>', '<EMAIL>',' 2017-10-03 ','Administrative Assistant', 51052 , 'IT', '<NAME>',' 2017-10-03 ',' 2100-01-13 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E48148', '<NAME>', '<EMAIL>',' 2013-02-19 ','Administrative Assistant', 39450 , 'IT', 'J<NAME>',' 2013-02-19 ',' 2100-01-14 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'No College'),
('E50012', '<NAME>', '<EMAIL>',' 2009-10-01 ','Administrative Assistant', 37136 , 'IT', '<NAME>',' 2009-10-01 ',' 2100-01-15 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'No College'),
('E81502', '<NAME>', '<EMAIL>',' 1999-10-24 ','Administrative Assistant', 34677 , 'IT', '<NAME>',' 1999-10-24 ',' 2100-01-16 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Some College'),
('E83558', '<NAME>', '<EMAIL>',' 1997-10-15 ','Administrative Assistant', 45210 , 'IT', '<NAME>',' 1997-10-15 ',' 2100-01-17 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E99949', '<NAME>', '<EMAIL>',' 2005-05-26 ','Administrative Assistant', 50043 , 'IT', '<NAME>',' 2005-05-26 ',' 2100-01-18 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E12562', '<NAME>', '<EMAIL>',' 1996-04-14 ','Administrative Assistant', 48910 , 'Product Development', 'Conner Kinch',' 1996-04-14 ',' 2100-01-19 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Some College'),
('E16346', '<NAME>', '<EMAIL>',' 2007-12-16 ','Administrative Assistant', 50462 , 'Product Development', 'Conner Kinch',' 2007-12-16 ',' 2100-01-20 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E37523', '<NAME>', '<EMAIL>',' 2017-12-02 ','Administrative Assistant', 35638 , 'Product Development', 'Conner Kinch',' 2017-12-02 ',' 2100-01-21 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E57987', '<NAME>', '<EMAIL>',' 2016-05-15 ','Administrative Assistant', 49786 , 'Product Development', 'Conner Kinch',' 2016-05-15 ',' 2100-01-22 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'No College'),
('E73518', '<NAME>', '<EMAIL>',' 2001-03-24 ','Administrative Assistant', 51207 , 'Product Development', 'Conner Kinch',' 2001-03-24 ',' 2100-01-23 ','South', '422 Broadway', 'Nashville', 'TN', 'No College'),
('E74296', '<NAME>', '<EMAIL>',' 2016-12-19 ','Administrative Assistant', 47909 , 'Product Development', 'Conner Kinch',' 2016-12-19 ',' 2100-01-24 ','South', '422 Broadway', 'Nashville', 'TN', 'Some College'),
('E77317', '<NAME>', '<EMAIL>',' 2015-05-20 ','Administrative Assistant', 34693 , 'Product Development', 'Conner Kinch',' 2015-05-20 ',' 2100-01-25 ','South', '422 Broadway', 'Nashville', 'TN', 'Associates Degree'),
('E91791', '<NAME>', '<EMAIL>',' 2017-06-02 ','Administrative Assistant', 29593 , 'Product Development', 'Conner Kinch',' 2017-06-02 ',' 2100-01-26 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E94358', '<NAME>', 'Muham<EMAIL>',' 2007-07-08 ','Administrative Assistant', 48239 , 'Product Development', '<NAME>',' 2007-07-08 ',' 2100-01-27 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E34496', '<NAME>', '<EMAIL>',' 2009-01-27 ','Administrative Assistant', 31405 , 'Sales', '<NAME>',' 2009-01-27 ',' 2100-01-28 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E87219', '<NAME>', '<EMAIL>',' 2017-09-20 ','Administrative Assistant', 34826 , 'Sales', '<NAME>',' 2017-09-20 ',' 2100-01-29 ','South', '422 Broadway', 'Nashville', 'TN', 'No College'),
('E89540', '<NAME>', '<EMAIL>',' 2017-06-01 ','Administrative Assistant', 38176 , 'Sales', '<NAME>',' 2017-06-01 ',' 2100-01-30 ','East Coast', '165 Broadway', 'New York City', 'NY', 'No College'),
('E13160', '<NAME>', 'Eric <EMAIL>',' 2008-10-06 ','Database Administrator', 102614 , 'IT', '<NAME>',' 2008-10-06 ',' 2100-01-31 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E16678', '<NAME>', '<EMAIL>',' 2005-11-25 ','Database Administrator', 84297 , 'IT', '<NAME>',' 2005-11-25 ',' 2100-02-01 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E27498', '<NAME>', '<EMAIL>',' 2001-07-18 ','Database Administrator', 78206 , 'IT', '<NAME>',' 2001-07-18 ',' 2100-02-02 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E37246', '<NAME>', '<EMAIL>',' 2013-10-23 ','Database Administrator', 103370 , 'IT', 'Jacob Lauber',' 2013-10-23 ',' 2100-02-03 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E49025', '<NAME>', '<EMAIL>',' 2005-06-09 ','Database Administrator', 111308 , 'IT', '<NAME>',' 2005-06-09 ',' 2100-02-04 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E76443', '<NAME>', '<EMAIL>',' 2020-02-16 ','Database Administrator', 114582 , 'IT', '<NAME>',' 2020-02-16 ',' 2100-02-05 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters Degree'),
('E86828', '<NAME>', '<EMAIL>',' 2011-09-29 ','Database Administrator', 116831 , 'IT', '<NAME>',' 2011-09-29 ',' 2100-02-06 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E98891', '<NAME>', '<EMAIL>',' 2017-09-30 ','Database Administrator', 110704 , 'IT', '<NAME>',' 2017-09-30 ',' 2100-02-07 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E34500', '<NAME>', '<EMAIL>',' 1997-01-17 ','Design Engineer', 113744 , 'IT', '<NAME>',' 1997-01-17 ',' 2100-02-08 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E41635', '<NAME>', '<EMAIL>',' 2005-03-26 ','Design Engineer', 134237 , 'IT', '<NAME>',' 2005-03-26 ',' 2100-02-09 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E51619', '<NAME>', '<EMAIL>',' 2011-10-05 ','Design Engineer', 122334 , 'IT', '<NAME>',' 2011-10-05 ',' 2100-02-10 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E98270', '<NAME>', '<EMAIL>',' 1997-12-24 ','Design Engineer', 99218 , 'IT', '<NAME>',' 1997-12-24 ',' 2100-02-11 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E25710', '<NAME>', '<EMAIL>',' 2005-08-14 ','Design Engineer', 77155 , 'Product Development', '<NAME>',' 2005-08-14 ',' 2100-02-12 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E41712', '<NAME>', '<EMAIL>',' 2012-01-06 ','Design Engineer', 87465 , 'Product Development', '<NAME>',' 2012-01-06 ',' 2100-02-13 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E42522', '<NAME>', '<EMAIL>',' 2007-05-26 ','Design Engineer', 79694 , 'Product Development', '<NAME>',' 2007-05-26 ',' 2100-02-14 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E45758', '<NAME>', '<EMAIL>',' 2017-12-19 ','Design Engineer', 144623 , 'Product Development', 'Conner Kinch',' 2017-12-19 ',' 2100-02-15 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E48637', '<NAME>', '<EMAIL>',' 1999-09-26 ','Design Engineer', 140231 , 'Product Development', 'Conner Kinch',' 1999-09-26 ',' 2100-02-16 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E60752', '<NAME>', '<EMAIL>',' 2010-02-27 ','Design Engineer', 138695 , 'Product Development', '<NAME>',' 2010-02-27 ',' 2100-02-17 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E77658', '<NAME>', '<EMAIL>',' 2012-03-15 ','Design Engineer', 113702 , 'Product Development', '<NAME>',' 2012-03-15 ',' 2100-02-18 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E85476', '<NAME>', '<EMAIL>',' 2003-07-22 ','Design Engineer', 71982 , 'Product Development', 'Conner Kinch',' 2003-07-22 ',' 2100-02-19 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Doctorate'),
('E38677', '<NAME>', '<EMAIL>',' 2014-04-17 ','Legal Counsel', 201404 , 'Distribution', 'Allison Gentle',' 2014-04-17 ',' 2100-02-20 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Doctorate'),
('E45736', '<NAME>', '<EMAIL>',' 2015-04-04 ','Legal Counsel', 156298 , 'Distribution', 'Allison Gentle',' 2015-04-04 ',' 2100-02-21 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Doctorate'),
('E56144', '<NAME>', '<EMAIL>',' 2013-01-28 ','Legal Counsel', 169184 , 'Distribution', 'Allison Gentle',' 2013-01-28 ',' 2100-02-22 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Doctorate'),
('E33486', '<NAME>', '<EMAIL>',' 2000-08-02 ','Legal Counsel', 153296 , 'HQ', 'Tyrone Hutchison',' 2000-08-02 ',' 2100-02-23 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Doctorate'),
('E38634', '<NAME>', '<EMAIL>',' 2014-11-22 ','Legal Counsel', 144638 , 'HQ', 'Tyrone Hutchison',' 2014-11-22 ',' 2100-02-24 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Doctorate'),
('E53406', '<NAME>', '<EMAIL>',' 2001-10-25 ','Legal Counsel', 81812 , 'HQ', 'Tyrone Hutchison',' 2001-10-25 ',' 2100-02-25 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E75081', '<NAME>', '<EMAIL>',' 2008-10-08 ','Legal Counsel', 132436 , 'HQ', 'Tyrone Hutchison',' 2008-10-08 ',' 2100-02-26 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E79464', '<NAME>', '<EMAIL>',' 1999-05-01 ','Legal Counsel', 177673 , 'HQ', 'Tyrone Hutchison',' 1999-05-01 ',' 2100-02-27 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E96856', '<NAME>', '<EMAIL>',' 2017-11-27 ','Legal Counsel', 127669 , 'HQ', 'Tyrone Hutchison',' 2017-11-27 ',' 2100-02-28 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E47655', '<NAME>', '<EMAIL>',' 1997-11-27 ','Legal Counsel', 207651 , 'IT', '<NAME>',' 1997-11-27 ',' 2100-03-01 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Doctorate'),
('E87210', '<NAME>', '<EMAIL>',' 2014-04-18 ','Legal Counsel', 176207 , 'IT', '<NAME>',' 2014-04-18 ',' 2100-03-02 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Doctorate'),
('E95214', '<NAME>', '<EMAIL>',' 2019-09-22 ','Legal Counsel', 93400 , 'IT', '<NAME>',' 2019-09-22 ',' 2100-03-03 ','South', '422 Broadway', 'Nashville', 'TN', 'Doctorate'),
('E21696', '<NAME>', '<EMAIL>',' 1997-12-06 ','Legal Counsel', 167887 , 'Product Development', 'Conner Kinch',' 1997-12-06 ',' 2100-03-04 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E60929', '<NAME>', '<EMAIL>',' 2013-07-03 ','Legal Counsel', 195992 , 'Product Development', 'Conner Kinch',' 2013-07-03 ',' 2100-03-05 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E76053', '<NAME>', '<EMAIL>',' 1998-08-23 ','Legal Counsel', 83548 , 'Product Development', '<NAME>',' 1998-08-23 ',' 2100-03-06 ','South', '422 Broadway', 'Nashville', 'TN', 'Doctorate'),
('E43694', '<NAME>', '<EMAIL>',' 2016-10-28 ','Legal Counsel', 159035 , 'Sales', '<NAME>',' 2016-10-28 ',' 2100-03-07 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Doctorate'),
('E71792', '<NAME>', '<EMAIL>',' 2014-03-30 ','Legal Counsel', 123496 , 'Sales', '<NAME>',' 2014-03-30 ',' 2100-03-08 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Doctorate'),
('E93629', '<NAME>', '<EMAIL>',' 2013-07-22 ','Legal Counsel', 183807 , 'Sales', '<NAME>',' 2013-07-22 ',' 2100-03-09 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Doctorate'),
('E63041', '<NAME>', '<EMAIL>',' 1995-08-22 ','Manager', 176000 , 'Distribution', 'Tyrone Hutchison',' 1995-08-22 ',' 2100-03-10 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters of Business Administration'),
('E44426', '<NAME>', '<EMAIL>',' 2007-05-02 ','Manager', 205000 , 'IT', 'Tyrone Hutchison',' 2007-05-02 ',' 2100-03-11 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters of Business Administration'),
('E77884', '<NAME>', '<EMAIL>',' 2002-12-09 ','Manager', 187000 , 'Product Development', 'Tyrone Hutchison',' 2002-12-09 ',' 2100-03-12 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters of Business Administration'),
('E88667', '<NAME>', '<EMAIL>',' 1995-12-21 ','Manager', 210000 , 'Sales', '<NAME>',' 1995-12-21 ',' 2100-03-13 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E22197', '<NAME>', '<EMAIL>',' 2013-09-22 ','Network Engineer', 89618 , 'IT', '<NAME>',' 2013-09-22 ',' 2100-03-14 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E24100', '<NAME>', '<EMAIL>',' 1997-03-06 ','Network Engineer', 98994 , 'IT', '<NAME>',' 1997-03-06 ',' 2100-03-15 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E26874', '<NAME>', '<EMAIL>',' 2015-06-27 ','Network Engineer', 45412 , 'IT', '<NAME>',' 2015-06-27 ',' 2100-03-16 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters Degree'),
('E34748', '<NAME>', '<EMAIL>',' 2011-04-28 ','Network Engineer', 71942 , 'IT', '<NAME>',' 2011-04-28 ',' 2100-03-17 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E36960', '<NAME>', '<EMAIL>',' 2008-04-26 ','Network Engineer', 101294 , 'IT', '<NAME>',' 2008-04-26 ',' 2100-03-18 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E48884', '<NAME>', '<EMAIL>',' 2008-06-01 ','Network Engineer', 103714 , 'IT', '<NAME>',' 2008-06-01 ',' 2100-03-19 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E62527', '<NAME>', '<EMAIL>',' 2006-06-15 ','Network Engineer', 49816 , 'IT', '<NAME>',' 2006-06-15 ',' 2100-03-20 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E62634', '<NAME>', '<EMAIL>',' 2014-08-19 ','Network Engineer', 65515 , 'IT', '<NAME>',' 2014-08-19 ',' 2100-03-21 ','South', '422 Broadway', 'Nashville', 'TN', 'Associates Degree'),
('E67793', '<NAME>', '<EMAIL>',' 2018-06-07 ','Network Engineer', 52924 , 'IT', '<NAME>',' 2018-06-07 ',' 2100-03-22 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E79552', '<NAME>', '<EMAIL>',' 2008-02-05 ','Network Engineer', 84625 , 'IT', '<NAME>',' 2008-02-05 ',' 2100-03-23 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E81369', '<NAME>', '<EMAIL>',' 2019-05-29 ','Network Engineer', 93362 , 'IT', '<NAME>',' 2019-05-29 ',' 2100-03-24 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E83512', '<NAME>', '<EMAIL>',' 1996-10-22 ','Network Engineer', 103110 , 'IT', '<NAME>',' 1996-10-22 ',' 2100-03-25 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E91075', '<NAME>', '<EMAIL>',' 2019-12-15 ','Network Engineer', 68127 , 'IT', '<NAME>',' 2019-12-15 ',' 2100-03-26 ','South', '422 Broadway', 'Nashville', 'TN', 'Associates Degree'),
('E11678', '<NAME>', '<EMAIL>',' 2001-12-26 ','Network Engineer', 76913 , 'Product Development', 'Conner Kinch',' 2001-12-26 ',' 2100-03-27 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E12397', '<NAME>', '<EMAIL>',' 2013-11-17 ','Network Engineer', 71846 , 'Product Development', 'Conner Kinch',' 2013-11-17 ',' 2100-03-28 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E14913', '<NAME> ', '<EMAIL>',' 1998-07-15 ','Network Engineer', 103166 , 'Product Development', 'Conner Kinch',' 1998-07-15 ',' 2100-03-29 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E23669', '<NAME>', '<EMAIL>',' 2017-04-23 ','Network Engineer', 77370 , 'Product Development', '<NAME>',' 2017-04-23 ',' 2100-03-30 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E30317', '<NAME>', '<EMAIL>',' 2019-01-03 ','Network Engineer', 66952 , 'Product Development', '<NAME>',' 2019-01-03 ',' 2100-03-31 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E47926', '<NAME>', '<EMAIL>',' 2008-05-31 ','Network Engineer', 85880 , 'Product Development', '<NAME>',' 2008-05-31 ',' 2100-04-01 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E66477', '<NAME>', '<EMAIL>',' 2018-05-08 ','Network Engineer', 86055 , 'Product Development', '<NAME>',' 2018-05-08 ',' 2100-04-02 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E80744', '<NAME>', '<EMAIL>',' 2020-01-09 ','Network Engineer', 96416 , 'Product Development', 'Conner Kinch',' 2020-01-09 ',' 2100-04-03 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E17054', '<NAME>', '<EMAIL>',' 2006-09-07 ','President', 540000 , 'HQ', 'None', ' 2006-09-07 ',' 2100-04-04 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters of Business Administration'),
('E10407', '<NAME>', '<EMAIL>',' 2018-10-08 ','Sales Rep', 180692 , 'Product Development', '<NAME>',' 2018-10-08 ',' 2100-04-05 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E13596', '<NAME>', '<EMAIL>',' 2012-04-09 ','Sales Rep', 180913 , 'Product Development', 'Conner Kinch',' 2012-04-09 ',' 2100-04-06 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E16995', '<NAME>', '<EMAIL>',' 2001-02-28 ','Sales Rep', 130161 , 'Product Development', '<NAME>',' 2001-02-28 ',' 2100-04-07 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E22680', '<NAME>', '<EMAIL>',' 2013-10-26 ','Sales Rep', 196637 , 'Product Development', '<NAME>',' 2013-10-26 ',' 2100-04-08 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E23429', '<NAME>', '<EMAIL>',' 2018-11-14 ','Sales Rep', 114616 , 'Product Development', '<NAME>',' 2018-11-14 ',' 2100-04-09 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E25662', '<NAME>', '<EMAIL>',' 1995-06-22 ','Sales Rep', 188080 , 'Product Development', 'Conner Kinch',' 1995-06-22 ',' 2100-04-10 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E28092', '<NAME>', '<EMAIL>',' 2008-11-01 ','Sales Rep', 174651 , 'Product Development', '<NAME>',' 2008-11-01 ',' 2100-04-11 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree');
insert into proj_stg (Emp_ID, Emp_NM, email, hire_dt, job_title, salary, department_nm, manager, start_dt, end_dt, location, address, city, state, education_lvl)
values
('E28638', '<NAME>', '<EMAIL>',' 2004-06-02 ','Sales Rep', 123909 , 'Product Development', '<NAME>',' 2004-06-02 ',' 2100-04-12 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E30058', '<NAME>', '<EMAIL>',' 2013-09-24 ','Sales Rep', 81047 , 'Product Development', '<NAME>',' 2013-09-24 ',' 2100-04-13 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E30678', '<NAME>', '<EMAIL>',' 2020-05-02 ','Sales Rep', 91389 , 'Product Development', '<NAME>',' 2020-05-02 ',' 2100-04-14 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters Degree'),
('E31241', '<NAME>', '<EMAIL>',' 2014-05-10 ','Sales Rep', 157102 , 'Product Development', 'Conner Kinch',' 2014-05-10 ',' 2100-04-15 ','South', '422 Broadway', 'Nashville', 'TN', 'Associates Degree'),
('E32058', '<NAME>', '<EMAIL>',' 2009-01-19 ','Sales Rep', 140534 , 'Product Development', 'Conner Kinch',' 2009-01-19 ',' 2100-04-16 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E34816', '<NAME>', '<EMAIL>',' 2000-08-01 ','Sales Rep', 82192 , 'Product Development', 'Conner Kinch',' 2000-08-01 ',' 2100-04-17 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E35860', '<NAME>', '<EMAIL>',' 1999-08-18 ','Sales Rep', 125831 , 'Product Development', 'Conner Kinch',' 1999-08-18 ',' 2100-04-18 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E39652', '<NAME>', '<EMAIL>',' 2012-08-11 ','Sales Rep', 71867 , 'Product Development', 'Conner Kinch',' 2012-08-11 ',' 2100-04-19 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E42681', '<NAME>', '<EMAIL>',' 1996-04-09 ','Sales Rep', 101469 , 'Product Development', 'Conner Kinch',' 1996-04-09 ',' 2100-04-20 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E46366', '<NAME>', '<EMAIL>',' 2004-10-16 ','Sales Rep', 133564 , 'Product Development', 'Conner Kinch',' 2004-10-16 ',' 2100-04-21 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E49798', '<NAME>', '<EMAIL>',' 1998-01-09 ','Sales Rep', 79408 , 'Product Development', 'Conner Kinch',' 1998-01-09 ',' 2100-04-22 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E54196', '<NAME>', '<EMAIL>',' 2004-12-18 ','Sales Rep', 156344 , 'Product Development', 'Conner Kinch',' 2004-12-18 ',' 2100-04-23 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E57502', '<NAME>', '<EMAIL>',' 2016-07-21 ','Sales Rep', 162790 , 'Product Development', '<NAME>',' 2016-07-21 ',' 2100-04-24 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E63930', '<NAME>', '<EMAIL>',' 2009-02-25 ','Sales Rep', 125439 , 'Product Development', '<NAME>',' 2009-02-25 ',' 2100-04-25 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E67190', '<NAME> ', '<EMAIL>',' 2007-07-24 ','Sales Rep', 86624 , 'Product Development', '<NAME>',' 2007-07-24 ',' 2100-04-26 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters Degree'),
('E87073', '<NAME>', '<EMAIL>',' 2007-01-02 ','Sales Rep', 146429 , 'Product Development', 'Conner Kinch',' 2007-01-02 ',' 2100-04-27 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E91182', '<NAME>', '<EMAIL>',' 2013-05-18 ','Sales Rep', 96015 , 'Product Development', 'Conner Kinch',' 2013-05-18 ',' 2100-04-28 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E93734', '<NAME>', '<EMAIL>',' 2005-06-21 ','Sales Rep', 111114 , 'Product Development', 'Conner Kinch',' 2005-06-21 ',' 2100-04-29 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E93871', '<NAME>', '<EMAIL>',' 2002-04-30 ','Sales Rep', 88910 , 'Product Development', 'Conner Kinch',' 2002-04-30 ',' 2100-04-30 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E94387', '<NAME>', '<EMAIL>',' 2003-07-25 ','Sales Rep', 191995 , 'Product Development', 'Conner Kinch',' 2003-07-25 ',' 2100-05-01 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E95199', '<NAME>', '<EMAIL>',' 2017-01-09 ','Sales Rep', 153889 , 'Product Development', 'Conner Kinch',' 2017-01-09 ',' 2100-05-02 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E97273', '<NAME>', '<EMAIL>',' 2004-06-05 ','Sales Rep', 137555 , 'Product Development', 'Conner Kinch',' 2004-06-05 ',' 2100-05-03 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E11920', '<NAME>', '<EMAIL>',' 2006-06-19 ','Sales Rep', 115719 , 'Sales', '<NAME>',' 2006-06-19 ',' 2100-05-04 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E16276', '<NAME>', '<EMAIL>',' 1996-03-07 ','Sales Rep', 208554 , 'Sales', 'J<NAME>',' 1996-03-07 ',' 2100-05-05 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E17372', '<NAME>', '<EMAIL>',' 2009-06-08 ','Sales Rep', 170741 , 'Sales', '<NAME>',' 2009-06-08 ',' 2100-05-06 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E20101', '<NAME>', '<EMAIL>',' 2012-12-03 ','Sales Rep', 157172 , 'Sales', '<NAME>',' 2012-12-03 ',' 2100-05-07 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E22785', '<NAME>', '<EMAIL>',' 1997-12-08 ','Sales Rep', 83535 , 'Sales', 'Jennifer De La Garza',' 1997-12-08 ',' 2100-05-08 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E24539', '<NAME>', '<EMAIL>',' 2004-12-12 ','Sales Rep', 173443 , 'Sales', 'J<NAME>',' 2004-12-12 ',' 2100-05-09 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E27267', '<NAME>', '<EMAIL>',' 2010-08-29 ','Sales Rep', 206383 , 'Sales', 'J<NAME>',' 2010-08-29 ',' 2100-05-10 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E29129', '<NAME>', '<EMAIL>',' 2007-12-03 ','Sales Rep', 118753 , 'Sales', '<NAME>',' 2007-12-03 ',' 2100-05-11 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E32359', '<NAME>', 'Jen <EMAIL>',' 2019-03-24 ','Sales Rep', 102779 , 'Sales', 'J<NAME>',' 2019-03-24 ',' 2100-05-12 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E36346', '<NAME>', '<EMAIL>',' 1999-06-22 ','Sales Rep', 100092 , 'Sales', 'J<NAME>',' 1999-06-22 ',' 2100-05-13 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E37389', '<NAME>', '<EMAIL>',' 1996-12-08 ','Sales Rep', 172479 , 'Sales', '<NAME>',' 1996-12-08 ',' 2100-05-14 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E38997', '<NAME>', '<EMAIL>',' 2007-09-21 ','Sales Rep', 173887 , 'Sales', '<NAME>',' 2007-09-21 ',' 2100-05-15 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E42061', '<NAME>', '<EMAIL>',' 2013-11-04 ','Sales Rep', 212551 , 'Sales', '<NAME>',' 2013-11-04 ',' 2100-05-16 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E44136', '<NAME>', '<EMAIL>',' 2002-01-09 ','Sales Rep', 70148 , 'Sales', '<NAME>za',' 2002-01-09 ',' 2100-05-17 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E45236', '<NAME>', '<EMAIL>',' 2008-05-29 ','Sales Rep', 123476 , 'Sales', '<NAME>',' 2008-05-29 ',' 2100-05-18 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E52461', '<NAME>', '<EMAIL>',' 2014-11-11 ','Sales Rep', 196705 , 'Sales', '<NAME>',' 2014-11-11 ',' 2100-05-19 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E55855', '<NAME>', '<EMAIL>',' 2018-05-20 ','Sales Rep', 175296 , 'Sales', 'Jennifer De La Garza',' 2018-05-20 ',' 2100-05-20 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E56444', '<NAME>', '<EMAIL>',' 1999-06-10 ','Sales Rep', 87817 , 'Sales', 'J<NAME>',' 1999-06-10 ',' 2100-05-21 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E60901', '<NAME>', '<EMAIL>',' 2010-01-10 ','Sales Rep', 87887 , 'Sales', '<NAME>',' 2010-01-10 ',' 2100-05-22 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E61614', '<NAME>', '<EMAIL>',' 1996-07-21 ','Sales Rep', 174060 , 'Sales', '<NAME>',' 1996-07-21 ',' 2100-05-23 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E61947', '<NAME>', '<EMAIL>',' 2010-03-04 ','Sales Rep', 212353 , 'Sales', 'Jennifer De La Garza',' 2010-03-04 ',' 2100-05-24 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E65052', '<NAME>', '<EMAIL>',' 1995-09-15 ','Sales Rep', 103346 , 'Sales', 'Jennifer De La Garza',' 1995-09-15 ',' 2100-05-25 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E68807', '<NAME>', '<EMAIL>',' 2010-11-10 ','Sales Rep', 175879 , 'Sales', 'J<NAME>',' 2010-11-10 ',' 2100-05-26 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E70374', '<NAME>', '<EMAIL>',' 2007-08-19 ','Sales Rep', 123946 , 'Sales', '<NAME>',' 2007-08-19 ',' 2100-05-27 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E70603', '<NAME>', '<EMAIL>',' 2006-07-06 ','Sales Rep', 89696 , 'Sales', 'Jennifer De La Garza',' 2006-07-06 ',' 2100-05-28 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E72436', '<NAME>', '<EMAIL>',' 2013-05-11 ','Sales Rep', 134130 , 'Sales', 'Jennifer De La Garza',' 2013-05-11 ',' 2100-05-29 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E74490', '<NAME>', '<EMAIL>',' 1999-05-22 ','Sales Rep', 196226 , 'Sales', 'Jennifer De La Garza',' 1999-05-22 ',' 2100-05-30 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E87230', '<NAME>', '<EMAIL>',' 2014-11-10 ','Sales Rep', 144637 , 'Sales', 'J<NAME>',' 2014-11-10 ',' 2100-05-31 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E87370', '<NAME>', '<EMAIL>',' 2013-11-18 ','Sales Rep', 105960 , 'Sales', 'Jennifer De La Garza',' 2013-11-18 ',' 2100-06-01 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E88864', '<NAME>', '<EMAIL>',' 2008-11-15 ','Sales Rep', 209418 , 'Sales', 'Jennifer De La Garza',' 2008-11-15 ',' 2100-06-02 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E90222', '<NAME>', '<EMAIL>',' 2016-11-01 ','Sales Rep', 158549 , 'Sales', '<NAME>',' 2016-11-01 ',' 2100-06-03 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E93715', '<NAME>', '<EMAIL>',' 1998-04-29 ','Sales Rep', 196650 , 'Sales', '<NAME>',' 1998-04-29 ',' 2100-06-04 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E98559', '<NAME>', '<EMAIL>',' 2006-11-11 ','Sales Rep', 101957 , 'Sales', '<NAME>',' 2006-11-11 ',' 2100-06-05 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E13085', '<NAME> ', '<EMAIL>',' 2017-05-01 ','Shipping and Receiving', 27811 , 'Distribution', 'Allison Gentle',' 2017-05-01 ',' 2100-06-06 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E14737', '<NAME>', '<EMAIL>',' 2012-07-22 ','Shipping and Receiving', 26050 , 'Distribution', 'Allison Gentle',' 2012-07-22 ',' 2100-06-07 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E15267', '<NAME>', '<EMAIL>',' 1998-02-22 ','Shipping and Receiving', 40806 , 'Distribution', 'Allison Gentle',' 1998-02-22 ',' 2100-06-08 ','East Coast', '165 Broadway', 'New York City', 'NY', 'No College'),
('E31931', '<NAME>', '<EMAIL>',' 2013-09-26 ','Shipping and Receiving', 38206 , 'Distribution', 'Allison Gentle',' 2013-09-26 ',' 2100-06-09 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Some College'),
('E36988', '<NAME>', '<EMAIL>',' 2015-10-31 ','Shipping and Receiving', 48680 , 'Distribution', 'Allison Gentle',' 2015-10-31 ',' 2100-06-10 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Associates Degree'),
('E45405', '<NAME>', '<EMAIL>',' 2000-09-06 ','Shipping and Receiving', 40083 , 'Distribution', 'Allison Gentle',' 2000-09-06 ',' 2100-06-11 ','East Coast', '165 Broadway', 'New York City', 'NY', 'No College'),
('E49459', '<NAME>', '<EMAIL>',' 2020-03-28 ','Shipping and Receiving', 42145 , 'Distribution', 'Allison Gentle',' 2020-03-28 ',' 2100-06-12 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Some College'),
('E52489', '<NAME>', '<EMAIL>',' 2002-12-05 ','Shipping and Receiving', 27045 , 'Distribution', 'Allison Gentle',' 2002-12-05 ',' 2100-06-13 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Associates Degree'),
('E53895', '<NAME>', '<EMAIL>',' 2014-10-27 ','Shipping and Receiving', 28700 , 'Distribution', 'Allison Gentle',' 2014-10-27 ',' 2100-06-14 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'No College'),
('E55880', '<NAME>', '<EMAIL>',' 1995-07-18 ','Shipping and Receiving', 43410 , 'Distribution', 'Allison Gentle',' 1995-07-18 ',' 2100-06-15 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Some College'),
('E69297', '<NAME>', '<EMAIL>',' 2013-03-21 ','Shipping and Receiving', 31349 , 'Distribution', 'Allison Gentle',' 2013-03-21 ',' 2100-06-16 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Associates Degree'),
('E71128', '<NAME>', '<EMAIL>',' 1998-01-28 ','Shipping and Receiving', 48749 , 'Distribution', 'Allison Gentle',' 1998-01-28 ',' 2100-06-17 ','South', '422 Broadway', 'Nashville', 'TN', 'No College'),
('E86238', '<NAME>', '<EMAIL>',' 2012-04-21 ','Shipping and Receiving', 30081 , 'Distribution', 'Allison Gentle',' 2012-04-21 ',' 2100-06-18 ','South', '422 Broadway', 'Nashville', 'TN', 'Some College'),
('E90435', '<NAME>', '<EMAIL>',' 2017-02-20 ','Shipping and Receiving', 52933 , 'Distribution', 'Allison Gentle',' 2017-02-20 ',' 2100-06-19 ','South', '422 Broadway', 'Nashville', 'TN', 'Associates Degree'),
('E95190', '<NAME>', '<EMAIL>',' 2016-04-26 ','Shipping and Receiving', 51407 , 'Distribution', 'Allison Gentle',' 2016-04-26 ',' 2100-06-20 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E15292', '<NAME>', '<EMAIL>',' 2011-02-06 ','Software Engineer', 117958 , 'IT', '<NAME>',' 2011-02-06 ',' 2100-06-21 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E20848', '<NAME>', '<EMAIL>',' 2006-07-26 ','Software Engineer', 83732 , 'IT', '<NAME>',' 2006-07-26 ',' 2100-06-22 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E23295', '<NAME>', '<EMAIL>',' 2004-05-08 ','Software Engineer', 118941 , 'IT', '<NAME>',' 2004-05-08 ',' 2100-06-23 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E23590', '<NAME>', '<EMAIL>',' 2013-04-06 ','Software Engineer', 101850 , 'IT', '<NAME>',' 2013-04-06 ',' 2100-06-24 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E35856', '<NAME>', '<EMAIL>',' 2017-05-03 ','Software Engineer', 99864 , 'IT', '<NAME>',' 2017-05-03 ',' 2100-06-25 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Masters Degree'),
('E40432', '<NAME>', '<EMAIL>',' 2010-01-30 ','Software Engineer', 130129 , 'IT', '<NAME>',' 2010-01-30 ',' 2100-06-26 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E64494', '<NAME>', '<EMAIL>',' 2007-05-11 ','Software Engineer', 140024 , 'IT', '<NAME>',' 2007-05-11 ',' 2100-06-27 ','South', '422 Broadway', 'Nashville', 'TN', 'Doctorate'),
('E64920', '<NAME>', '<EMAIL>',' 2019-05-11 ','Software Engineer', 153717 , 'IT', '<NAME>',' 2019-05-11 ',' 2100-06-28 ','South', '422 Broadway', 'Nashville', 'TN', 'Doctorate'),
('E75344', '<NAME>', '<EMAIL>',' 2009-03-20 ','Software Engineer', 135656 , 'IT', '<NAME>',' 2009-03-20 ',' 2100-06-29 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters of Business Administration'),
('E82137', '<NAME>', '<EMAIL>',' 2006-10-04 ','Software Engineer', 97040 , 'IT', '<NAME>',' 2006-10-04 ',' 2100-06-30 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters of Business Administration'),
('E84122', '<NAME>', '<EMAIL>',' 2017-10-28 ','Software Engineer', 78751 , 'IT', '<NAME>uber',' 2017-10-28 ',' 2100-07-01 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E85640', '<NAME>', '<EMAIL>',' 2001-02-03 ','Software Engineer', 126529 , 'IT', '<NAME>',' 2001-02-03 ',' 2100-07-02 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E90439', '<NAME>', '<EMAIL>',' 2000-07-23 ','Software Engineer', 92788 , 'IT', '<NAME>',' 2000-07-23 ',' 2100-07-03 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E90990', '<NAME>', '<EMAIL>',' 2014-11-16 ','Software Engineer', 118125 , 'IT', '<NAME>',' 2014-11-16 ',' 2100-07-04 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E94552', '<NAME>', '<EMAIL>',' 2013-10-31 ','Software Engineer', 153362 , 'IT', '<NAME>',' 2013-10-31 ',' 2100-07-05 ','South', '422 Broadway', 'Nashville', 'TN', 'Masters Degree'),
('E96966', '<NAME>', '<EMAIL>',' 2014-12-19 ','Software Engineer', 134250 , 'IT', '<NAME>',' 2014-12-19 ',' 2100-07-06 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E97018', '<NAME>', '<EMAIL>',' 2000-09-08 ','Software Engineer', 151379 , 'IT', '<NAME>',' 2000-09-08 ',' 2100-07-07 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E10033', '<NAME>', '<EMAIL>',' 2016-03-07 ','Software Engineer', 111681 , 'Product Development', 'Conner Kinch',' 2016-03-07 ',' 2100-07-08 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E12890', '<NAME>', '<EMAIL>',' 2010-06-06 ','Software Engineer', 136384 , 'Product Development', 'Conner Kinch',' 2010-06-06 ',' 2100-07-09 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E18659', '<NAME>', '<EMAIL>',' 2008-01-27 ','Software Engineer', 124699 , 'Product Development', 'Conner Kinch',' 2008-01-27 ',' 2100-07-10 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Masters Degree'),
('E21348', '<NAME>', '<EMAIL>',' 2016-09-28 ','Software Engineer', 148313 , 'Product Development', 'Conner Kinch',' 2016-09-28 ',' 2100-07-11 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E25144', '<NAME>', '<EMAIL>',' 2007-10-25 ','Software Engineer', 148005 , 'Product Development', 'Conner Kinch',' 2007-10-25 ',' 2100-07-12 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E26322', '<NAME>', '<EMAIL>',' 2010-10-20 ','Software Engineer', 136509 , 'Product Development', 'Conner Kinch',' 2010-10-20 ',' 2100-07-13 ','West Coast', '705 James Way', 'San Francisco', 'CA', 'Bachelors Degree'),
('E29652', '<NAME>', '<EMAIL>',' 2007-06-14 ','Software Engineer', 115791 , 'Product Development', '<NAME>',' 2007-06-14 ',' 2100-07-14 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'),
('E38959', '<NAME>', '<EMAIL>',' 2006-09-16 ','Software Engineer', 83327 , 'Product Development', '<NAME>',' 2006-09-16 ',' 2100-07-15 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Masters Degree'),
('E62100', '<NAME>', '<EMAIL>',' 2000-02-15 ','Software Engineer', 122810 , 'Product Development', '<NAME>',' 2000-02-15 ',' 2100-07-16 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E63937', '<NAME>', '<EMAIL>',' 2014-07-15 ','Software Engineer', 84143 , 'Product Development', '<NAME>',' 2014-07-15 ',' 2100-07-17 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Bachelors Degree'),
('E87822', '<NAME>', '<EMAIL>',' 2014-04-02 ','Software Engineer', 90884 , 'Product Development', '<NAME>',' 2014-04-02 ',' 2100-07-18 ','East Coast', '165 Broadway', 'New York City', 'NY', 'Bachelors Degree'),
('E13160', '<NAME>', 'Eric <EMAIL>',' 2008-10-06 ','Network Engineer', 76345 , 'Product Development', '<NAME>',' 2004-07-06 ',' 2008-10-05 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Associates Degree'),
('E16678', '<NAME>', '<EMAIL>',' 2005-11-25 ','Network Engineer', 65778 , 'IT', '<NAME>',' 1999-02-16 ',' 2005-11-25 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E27498', '<NAME>', '<EMAIL>',' 2001-07-18 ','Network Engineer', 72341 , 'IT', '<NAME>',' 1995-03-12 ',' 2001-07-18 ','South', '422 Broadway', 'Nashville', 'TN', 'Bachelors Degree'),
('E15292', '<NAME>', '<EMAIL>',' 2011-02-06 ','Shipping and Receiving', 32933 , 'Distribution', 'Allison Gentle',' 2007-02-22 ',' 2011-02-06 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E20848', '<NAME>', '<EMAIL>',' 2006-07-26 ','Shipping and Receiving', 41407 , 'Distribution', 'Allison Gentle',' 2002-04-16 ',' 2006-07-26 ','HQ', '1 Tech ABC Corp Way', 'Dallas', 'TX', 'Bachelors Degree'),
('E23295', '<NAME>', '<EMAIL>',' 2004-05-08 ','Sales Rep', 57887 , 'Sales', '<NAME>',' 2003-04-08 ',' 2004-05-08 ','Midwest', '1300 Nicollet Mall', 'Minnapolis', 'MN', 'Masters Degree'); |
<filename>packages/jobs/deploy/schemas/app_jobs/triggers/tg_update_timestamps.sql
-- Deploy schemas/app_jobs/triggers/tg_update_timestamps to pg
-- requires: schemas/app_jobs/schema
BEGIN;
CREATE FUNCTION app_jobs.tg_update_timestamps ()
RETURNS TRIGGER
AS $$
BEGIN
IF TG_OP = 'INSERT' THEN
NEW.created_at = NOW();
NEW.updated_at = NOW();
ELSIF TG_OP = 'UPDATE' THEN
NEW.created_at = OLD.created_at;
NEW.updated_at = greatest (now(), OLD.updated_at + interval '1 millisecond');
END IF;
RETURN NEW;
END;
$$
LANGUAGE 'plpgsql';
COMMIT;
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Nov 11, 2019 at 01:12 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `jayautamateknik`
--
-- --------------------------------------------------------
--
-- Table structure for table `about`
--
CREATE TABLE `about` (
`id` int(1) NOT NULL,
`keterangan` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `about`
--
INSERT INTO `about` (`id`, `keterangan`) VALUES
(1, '<p>about page</p>\n');
-- --------------------------------------------------------
--
-- Table structure for table `articles`
--
CREATE TABLE `articles` (
`idartikel` int(10) UNSIGNED NOT NULL,
`idmenu` int(10) NOT NULL,
`tags` text COLLATE utf8_unicode_ci NOT NULL,
`title` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`body` text COLLATE utf8_unicode_ci NOT NULL,
`image` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`status` int(1) NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `articles`
--
INSERT INTO `articles` (`idartikel`, `idmenu`, `tags`, `title`, `slug`, `body`, `image`, `status`, `create_date`, `modif_date`) VALUES
(82, 1, 'GG,GGG,CI,PHP', 'Codeigniter', 'codeigniter', '<p>gggggggggggg</p>\n', 'haditerpal_04Nov19_00_05_05.jpg', 1, '2019-11-04 13:05:58', NULL),
(83, 2, 'CC,CXX,CCC', 'OOP PHP7', 'oop_php7', '<p>php 7</p>\n', 'haditerpal_04Nov19_00_19_43.jpg', 1, '2019-11-04 13:01:43', NULL),
(84, 2, 'G,GGG,GG', 'Rest Api', 'rest_api', '<p>ggggggggggggggg</p>\n', 'haditerpal_04Nov19_00_20_37.jpg', 1, '2019-11-04 00:20:37', NULL),
(85, 1, 'TEST', 'Codeigniter', 'codeigniter', '<p>isi artikel codeigniter</p>\n', 'haditerpal_04Nov19_13_01_12.jpg', 1, '2019-11-04 13:01:12', NULL),
(86, 9, 'NODEJS,EXPRESS JS', 'Api Rest Node Js', 'api_rest_node_js', '<p>node js n express to make API restful</p>\n', 'haditerpal_10Nov19_01_59_46.jpg', 1, '2019-11-10 10:34:38', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `brand`
--
CREATE TABLE `brand` (
`idbrand` int(3) NOT NULL,
`judul` varchar(100) NOT NULL,
`filebrand` varchar(100) NOT NULL,
`createdate` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `brand`
--
INSERT INTO `brand` (`idbrand`, `judul`, `filebrand`, `createdate`) VALUES
(12, 'Maspion', 'jtu_10Nov19_11_07_37.png', '2010-11-19 00:00:00'),
(13, 'Multipro', 'jtu_10Nov19_11_07_22.png', '2010-11-19 00:00:00'),
(14, 'Panasonic', 'jtu_10Nov19_11_07_49.png', '2010-11-19 00:00:00'),
(15, 'Sanyo', 'jtu_10Nov19_11_07_59.png', '2010-11-19 00:00:00'),
(16, 'Terada', 'jtu_10Nov19_11_08_11.jpg', '2010-11-19 00:00:00'),
(17, 'Uchida', 'jtu_10Nov19_11_08_22.png', '2010-11-19 00:00:00'),
(18, 'Zhimitzu', 'jtu_10Nov19_11_08_41.png', '2010-11-19 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`id` int(1) NOT NULL,
`keterangan` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`id`, `keterangan`) VALUES
(1, '<p>yes its contact page</p>\n');
-- --------------------------------------------------------
--
-- Table structure for table `faq`
--
CREATE TABLE `faq` (
`idfaq` int(1) NOT NULL,
`judul` varchar(100) NOT NULL,
`keterangan` text NOT NULL,
`createdate` datetime NOT NULL,
`modifdate` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `faq`
--
INSERT INTO `faq` (`idfaq`, `judul`, `keterangan`, `createdate`, `modifdate`) VALUES
(1, 'Bagaimana Cara ngeprint online', 'Bagaimana Cara ngeprint online Bagaimana Cara ngeprint online Bagaimana Cara ngeprint online Bagaimana Cara ngeprint online', '2019-10-18 00:00:00', '0000-00-00 00:00:00'),
(3, 'fasilitas apa saja yang ada ?', '<p>kami memiliki fasilitas printer terbaik, dengan kualitas cetak mantab yoo</p>\n', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(4, 'Harga berapa untuk cetak ?', '<p>Berikut ini daftar harga</p>\n\n<table align=\"center\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:100%\">\n <caption>Daftar Harga</caption>\n <tbody>\n <tr>\n <td>Nama</td>\n <td>Harga</td>\n <td>Item</td>\n </tr>\n <tr>\n <td>A4</td>\n <td>Rp.500</td>\n <td>Hitam Putih</td>\n </tr>\n <tr>\n <td>A4</td>\n <td>Rp.1000</td>\n <td>Color</td>\n </tr>\n </tbody>\n</table>\n\n<p> </p>\n', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(12, 'Framework PHP', '<p>Berikut ini adalah daftar Framework PHP</p>\n\n<p><img alt=\"\" src=\"https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2013/12/chart1-1024x853.png\" style=\"float:left; height:417px; width:500px\" /> <img alt=\"\" src=\"https://cdn-images-1.medium.com/max/783/1*rswvkT67SYivx7LNhN0hyw.jpeg\" style=\"height:336px; width:783px\" /></p>\n', '0000-00-00 00:00:00', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `galeri`
--
CREATE TABLE `galeri` (
`idgalery` int(11) NOT NULL,
`idmenu` int(10) NOT NULL,
`foto` varchar(100) NOT NULL,
`judulfoto` varchar(200) NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `galeri`
--
INSERT INTO `galeri` (`idgalery`, `idmenu`, `foto`, `judulfoto`, `create_date`, `modif_date`) VALUES
(2, 1, 'jayatknikutama_06Nov19143014.jpg', 'new series version phyton', '2019-11-06 14:30:14', NULL),
(4, 2, 'jayatknikutama_06Nov19143611.jpg', 'test testing', '2019-11-06 14:36:11', NULL),
(5, 2, 'jayatknikutama_06Nov19144439.jpg', 'rtrtrtrtr', '2019-11-06 14:44:39', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `kategori`
--
CREATE TABLE `kategori` (
`idkategori` int(10) NOT NULL,
`nama_kategori` varchar(50) NOT NULL,
`status` int(1) NOT NULL,
`hargaBW` int(30) NOT NULL,
`hargaColor` int(30) NOT NULL,
`hargajilid` int(30) NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kategori`
--
INSERT INTO `kategori` (`idkategori`, `nama_kategori`, `status`, `hargaBW`, `hargaColor`, `hargajilid`, `create_date`, `modif_date`) VALUES
(26, '<NAME>', 1, 200, 450, 9000, '2019-08-15 11:33:48', '2019-11-02 13:23:52'),
(27, '<NAME>', 1, 300, 500, 10000, '2019-06-03 06:24:04', '2019-11-02 13:23:32'),
(35, '<NAME>', 1, 7000, 7000, 7000, '2019-10-15 08:49:18', '2019-11-02 13:23:14'),
(40, '<NAME>', 0, 3000, 9000, 20000, '2019-10-17 15:15:51', '2019-11-02 13:24:18');
-- --------------------------------------------------------
--
-- Table structure for table `kategorimenu`
--
CREATE TABLE `kategorimenu` (
`idmenu` int(5) NOT NULL,
`parentid` int(5) NOT NULL,
`menu` varchar(50) NOT NULL,
`slugmenu` varchar(100) NOT NULL,
`status` int(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `kategorimenu`
--
INSERT INTO `kategorimenu` (`idmenu`, `parentid`, `menu`, `slugmenu`, `status`) VALUES
(1, 0, 'Framework', 'framework', 1),
(2, 1, 'PHP', 'php', 1),
(3, 1, 'JAVA', 'java', 1),
(4, 2, 'Codeigniter', 'codeigniter', 1),
(5, 3, 'Spring Bot', 'spring-bot', 1),
(6, 0, 'Framework JS', 'framework-js', 1),
(7, 6, 'Angular', 'angular', 1),
(8, 6, 'React Js', 'react-js', 1),
(9, 6, 'Node & Express Js', 'node-express-js', 1),
(10, 0, 'Mobile', 'mobile', 1),
(11, 10, 'Android', 'android', 1),
(12, 10, 'Kotlin', 'kotlin', 1),
(13, 10, 'Native Script', 'native-script', 1),
(14, 10, 'React Native', 'react-native', 1),
(15, 10, 'Ionic', 'ionic', 1);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`idorder` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`message` text COLLATE utf8_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`idorder`, `name`, `phone`, `email`, `message`, `status`, `create_date`, `modif_date`) VALUES
(1, 'coba', '123456', '<EMAIL>', 'percobaan', 'B', '2016-09-30 04:07:12', '2016-09-30 04:07:12');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `pesanan`
--
CREATE TABLE `pesanan` (
`idpesanan` varchar(10) NOT NULL,
`idpesananduplicate` varchar(100) NOT NULL,
`idorder` int(10) NOT NULL,
`dateorder` datetime NOT NULL,
`datefinish` datetime NOT NULL,
`status` int(1) NOT NULL,
`idkategori` int(11) NOT NULL,
`qty` int(11) NOT NULL,
`bworcolor` int(1) NOT NULL,
`datafilecetak` int(1) NOT NULL,
`total` int(20) NOT NULL,
`keterangan` text NOT NULL,
`fileprint` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `pesanan`
--
INSERT INTO `pesanan` (`idpesanan`, `idpesananduplicate`, `idorder`, `dateorder`, `datefinish`, `status`, `idkategori`, `qty`, `bworcolor`, `datafilecetak`, `total`, `keterangan`, `fileprint`) VALUES
('3634553', '3634553', 1, '2019-10-19 00:00:00', '2019-10-19 09:00:00', 0, 26, 2, 1, 1, 65775, 'dfgdfgb', ''),
('3634554', '3634553', 1, '2019-10-19 00:00:00', '2019-10-19 17:00:00', 0, 26, 3, 2, 1, 3, 'ambil jam 17 ya.. \r\npaling lambat jam 18 lah..\r\n', 'skripsifix.pdf');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`idmenu` int(10) NOT NULL,
`idbrand` int(10) NOT NULL,
`description` text COLLATE utf8_unicode_ci NOT NULL,
`image` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`slideshow` int(1) NOT NULL,
`status` int(1) NOT NULL,
`tags` text COLLATE utf8_unicode_ci NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `slug`, `idmenu`, `idbrand`, `description`, `image`, `slideshow`, `status`, `tags`, `create_date`, `modif_date`) VALUES
(31, 'Enterprise Aplication with Java', 'enterprise_aplication_with_java', 3, 15, '<p>About About yes Update yui</p>\n', 'haditerpal_02Nov19_13_35_33.jpg', 0, 1, 'SPRING,JSP,SERVLET,SPRING,JSP,SERVLET', '2019-11-02 13:35:33', '0000-00-00 00:00:00'),
(32, 'mesin pompa', 'mesin_pompa', 4, 14, '<p>yes coba ya</p>\n', 'haditerpal_08Nov19_22_46_08.jpg', 1, 1, 'CODEIGNITER,PHP', '2019-11-02 17:02:02', '0000-00-00 00:00:00'),
(36, 'mesin pompa kualitas terbaik', 'mesin_pompa_kualitas_terbaik', 4, 14, '<p>isi artikel</p>\n', 'jayateknikutama_06Nov19_17_25_59.jpg', 1, 1, '<NAME>,<NAME>', '2019-11-06 17:26:00', NULL),
(37, 'GIS tracking Pekerjaan Freelancer', 'gis_tracking_pekerjaan_freelancer', 10, 13, '<p>ini adalah Apilkasi GPIS dengan Android</p>\n', 'haditerpal_10Nov19_09_44_12.jpg', 0, 1, 'ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1,PRODUK 2,ANGULAR,REACT,PRODUK', '2019-11-10 03:58:56', '0000-00-00 00:00:00'),
(38, 'Angular Vs React Js', 'angular_vs_react_js', 8, 13, '<p>angular vs reacj js</p>\n', 'haditerpal_10Nov19_09_43_43.jpg', 0, 1, 'ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1,PRODUK 2,ANGULAR,REACT', '2019-11-10 09:33:02', '0000-00-00 00:00:00'),
(39, 'Produk 1', 'produk_1', 11, 12, '<p>produk 1</p>\n', 'haditerpal_10Nov19_09_38_00.jpg', 0, 1, 'ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1', '2019-11-10 09:38:00', NULL),
(40, 'Produk 2', 'produk_2', 1, 12, '<p>produk 2</p>\n', 'haditerpal_10Nov19_09_38_36.jpg', 0, 0, 'ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1,PRODUK 2', '2019-11-10 09:38:36', '0000-00-00 00:00:00'),
(41, 'Mesin Pompa Air Terkuat', 'mesin_pompa_air_terkuat', 12, 15, '<p>sanyo</p>\n', 'haditerpal_10Nov19_12_39_27.jpg', 0, 1, 'KINCIL,UCHIDA,ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1,PRODUK 2,SANYO,MESIN UAP,PANASONIK', '2019-11-10 12:13:10', '0000-00-00 00:00:00'),
(42, 'Mesin Uap', 'mesin_uap', 1, 14, '<p>Keterangan detil mesin uap</p>\n', 'haditerpal_10Nov19_12_39_16.jpg', 0, 1, 'KINCIL,UCHIDA,ANGULAR,REACT,GPS,ANDROID,GMAP,PRODUK 1,PRODUK 2,SANYO,MESIN UAP,PANASONIK', '2019-11-10 12:21:43', '0000-00-00 00:00:00'),
(43, 'Mesin Penyaring Air', 'mesin_penyaring_air', 7, 17, '<p>isi</p>\n', 'haditerpal_10Nov19_12_39_06.jpg', 0, 1, 'KINCIL,UCHIDA', '2019-11-10 12:25:57', '0000-00-00 00:00:00'),
(44, '<NAME>', 'mesin_kincir', 3, 16, '<p>terada</p>\n', 'haditerpal_10Nov19_12_38_57.jpg', 0, 1, 'KINCIL', '2019-11-10 12:31:49', '0000-00-00 00:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE `tags` (
`idtag` int(10) UNSIGNED NOT NULL,
`namaTag` varchar(30) COLLATE utf8_unicode_ci NOT NULL,
`status` int(1) NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `tags`
--
INSERT INTO `tags` (`idtag`, `namaTag`, `status`, `create_date`, `modif_date`) VALUES
(1, 'kolam', 0, '2016-10-02 21:31:58', '2016-10-02 21:31:58'),
(2, 'kolam bulat', 0, '2016-10-03 00:53:33', '2016-10-03 00:54:49'),
(3, 'HARGA KOLAM TERPAL BUNDAR DAN ', 0, '2016-10-03 00:53:48', '2018-03-06 02:37:29'),
(4, 'kolam bulat dan rangka', 0, '2016-10-03 00:54:03', '2016-10-03 00:54:03'),
(5, 'kolam terpal', 0, '2016-10-03 00:54:24', '2016-10-03 00:54:24'),
(6, 'kolam bulat karet', 0, '2016-10-03 00:55:15', '2016-10-03 00:55:15'),
(7, 'kolam terpal bulat', 0, '2016-10-03 00:55:45', '2016-10-03 00:55:45'),
(8, 'kolam terpal kotak', 0, '2016-10-03 00:56:01', '2016-10-03 00:56:01'),
(9, 'kolam kotak karet', 0, '2016-10-03 00:56:25', '2016-10-03 00:56:25'),
(10, 'harga kolam kotak karet', 0, '2016-10-03 00:56:39', '2016-10-03 00:56:39'),
(11, 'terpal', 0, '2016-10-03 00:56:57', '2016-10-03 00:56:57'),
(12, 'terpal lembaran', 0, '2016-10-03 00:57:34', '2016-10-03 00:57:34'),
(13, 'harga terpal', 0, '2016-10-03 00:57:49', '2016-10-03 00:57:49'),
(14, 'jual kolam terpal', 0, '2016-10-03 00:58:11', '2016-10-03 00:58:11'),
(15, 'kolam terpal murah', 0, '2016-10-03 00:58:52', '2016-10-03 00:58:52'),
(16, 'harga terpal permeter', 0, '2016-10-03 00:59:38', '2016-10-03 00:59:38'),
(17, 'kolam bulat baleho', 0, '2016-10-03 01:00:15', '2016-10-03 01:00:15'),
(18, 'penjual kolam terpal', 0, '2016-10-03 01:01:50', '2016-10-03 01:01:50'),
(19, '<NAME>', 0, '2016-10-03 01:02:35', '2016-10-03 01:02:35'),
(20, 'drainase', 0, '2016-10-03 01:03:16', '2016-10-03 01:03:16'),
(21, 'kolam terpal baleho dan rangka', 0, '2016-10-29 01:52:33', '2016-10-29 01:52:33'),
(22, 'kolam bulat baleho dan rangka', 0, '2016-10-29 01:54:26', '2016-10-29 01:54:26'),
(23, 'Kolam kotak baleho', 0, '2016-10-31 02:30:33', '2016-10-31 02:30:33'),
(24, 'Terpal plastik kotak ', 0, '2016-10-31 02:34:56', '2016-10-31 02:34:56'),
(25, 'Kolam terpal karet komplit', 0, '2016-10-31 03:26:43', '2016-10-31 03:26:43'),
(26, 'cara membuat drainase', 0, '2017-02-12 14:27:13', '2017-02-12 14:27:13'),
(27, 'cara membuat pembuangan pada k', 0, '2017-02-12 14:27:33', '2017-02-12 14:27:33'),
(28, 'cara mudah membuat drainase ko', 0, '2017-02-12 14:28:04', '2017-02-12 14:28:04'),
(29, 'jual kolam bulat', 0, '2017-07-30 19:41:56', '2017-07-30 19:41:56'),
(30, 'terpal karet', 0, '2017-07-30 19:42:10', '2017-07-30 19:42:10'),
(31, 'cara membuat lubang pembuangan', 0, '2017-07-30 19:42:34', '2017-07-30 19:42:34'),
(32, 'pembuangan kolam terpal', 0, '2017-07-30 19:42:44', '2017-07-30 19:42:44'),
(33, 'terpal orchid', 0, '2017-07-30 19:42:52', '2017-07-30 19:42:52'),
(34, 'kolam bulat orchid', 0, '2017-07-30 19:43:02', '2017-07-30 19:43:02'),
(35, 'kelebihan kolam bulat', 0, '2017-07-30 21:49:27', '2017-07-30 21:49:27'),
(36, 'kekurangan kolam bulat', 0, '2017-07-30 21:49:37', '2017-07-30 21:49:37'),
(37, 'orchid', 0, '2017-07-30 21:49:44', '2017-07-30 21:49:44'),
(38, 'kolam terpal bulat karet', 0, '2017-07-30 21:50:03', '2017-07-30 21:50:03'),
(39, 'kolam terpal bulat karet', 0, '2017-07-30 21:50:08', '2017-07-30 21:50:08'),
(40, 'AGEN KOLAM TERPAL MURAH', 0, '2017-08-28 06:39:29', '2017-08-28 06:39:29'),
(41, 'jual kolam bulat murah', 0, '2017-09-12 06:01:33', '2017-09-12 06:01:33'),
(42, 'kolam terpal untuk budidaya le', 0, '2017-09-27 06:58:47', '2017-09-27 06:58:47'),
(43, 'kolam terpal bulat untuk budid', 0, '2017-12-14 22:50:44', '2017-12-14 22:50:44'),
(44, 'jual kolam terpal bundar siap ', 0, '2018-01-31 21:34:30', '2018-01-31 21:34:30'),
(45, 'JUAL KOLAM TERPAL SURABAYA ', 0, '2018-03-14 20:18:29', '2018-03-14 20:18:29'),
(46, 'jual terpal plastik a2', 0, '2018-10-07 19:57:42', '2018-10-07 19:57:42'),
(47, 'jual terpal plastik a3', 0, '2018-10-07 19:59:28', '2018-10-07 19:59:28');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`iduser` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`tlp1` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`tlp2` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`create_date` datetime DEFAULT NULL,
`modif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`iduser`, `name`, `email`, `tlp1`, `tlp2`, `password`, `create_date`, `modif_date`) VALUES
(1, 'Jaya Teknik Utama', '<EMAIL>', '', '', 'admin', '2016-09-03 13:12:57', '2019-11-10 09:46:30');
-- --------------------------------------------------------
--
-- Stand-in structure for view `v_kategorimenu`
-- (See below for the actual view)
--
CREATE TABLE `v_kategorimenu` (
`idmenu` int(5)
,`parentid` int(5)
,`menu` varchar(50)
,`parentmenu` varchar(50)
,`slugmenu` varchar(100)
,`status` int(1)
);
-- --------------------------------------------------------
--
-- Table structure for table `webprofil`
--
CREATE TABLE `webprofil` (
`idwebprofil` int(1) NOT NULL,
`namaweb` varchar(50) DEFAULT NULL,
`email` varchar(25) DEFAULT NULL,
`tlp1` int(20) DEFAULT NULL,
`tlp2` int(20) DEFAULT NULL,
`tlp3` int(20) DEFAULT NULL,
`fb` varchar(100) DEFAULT NULL,
`ig` varchar(100) DEFAULT NULL,
`profil` text NOT NULL,
`visimisi` text NOT NULL,
`support` text NOT NULL,
`carapesan` text NOT NULL,
`create_date` datetime DEFAULT NULL,
`midif_date` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `webprofil`
--
INSERT INTO `webprofil` (`idwebprofil`, `namaweb`, `email`, `tlp1`, `tlp2`, `tlp3`, `fb`, `ig`, `profil`, `visimisi`, `support`, `carapesan`, `create_date`, `midif_date`) VALUES
(1, 'Jaya Teknik Utama', '<EMAIL>', 928304982, 843098340, 934093840, 'facebook.com/jayateknikutama', '@jayateknikutama', 'Jaya teknik Utama', '', '', '', '2019-06-21 00:00:00', '2019-11-10 09:47:53');
-- --------------------------------------------------------
--
-- Structure for view `v_kategorimenu`
--
DROP TABLE IF EXISTS `v_kategorimenu`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_kategorimenu` AS select `k`.`idmenu` AS `idmenu`,`k`.`parentid` AS `parentid`,`k`.`menu` AS `menu`,(select `j`.`menu` from `kategorimenu` `j` where (`j`.`idmenu` = `k`.`parentid`)) AS `parentmenu`,`k`.`slugmenu` AS `slugmenu`,`k`.`status` AS `status` from `kategorimenu` `k` order by `k`.`parentid` ;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `about`
--
ALTER TABLE `about`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `articles`
--
ALTER TABLE `articles`
ADD PRIMARY KEY (`idartikel`),
ADD KEY `idmenu` (`idmenu`);
--
-- Indexes for table `brand`
--
ALTER TABLE `brand`
ADD PRIMARY KEY (`idbrand`);
--
-- Indexes for table `contact`
--
ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `faq`
--
ALTER TABLE `faq`
ADD PRIMARY KEY (`idfaq`);
--
-- Indexes for table `galeri`
--
ALTER TABLE `galeri`
ADD PRIMARY KEY (`idgalery`),
ADD KEY `idmenu` (`idmenu`);
--
-- Indexes for table `kategori`
--
ALTER TABLE `kategori`
ADD PRIMARY KEY (`idkategori`);
--
-- Indexes for table `kategorimenu`
--
ALTER TABLE `kategorimenu`
ADD PRIMARY KEY (`idmenu`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`idorder`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`),
ADD KEY `password_resets_token_index` (`token`);
--
-- Indexes for table `pesanan`
--
ALTER TABLE `pesanan`
ADD PRIMARY KEY (`idpesanan`),
ADD KEY `idkategori` (`idkategori`),
ADD KEY `idorder` (`idorder`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `idmenu` (`idmenu`),
ADD KEY `idbrand` (`idbrand`);
--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`idtag`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`iduser`);
--
-- Indexes for table `webprofil`
--
ALTER TABLE `webprofil`
ADD PRIMARY KEY (`idwebprofil`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `articles`
--
ALTER TABLE `articles`
MODIFY `idartikel` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=87;
--
-- AUTO_INCREMENT for table `brand`
--
ALTER TABLE `brand`
MODIFY `idbrand` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `faq`
--
ALTER TABLE `faq`
MODIFY `idfaq` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `galeri`
--
ALTER TABLE `galeri`
MODIFY `idgalery` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `kategori`
--
ALTER TABLE `kategori`
MODIFY `idkategori` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT for table `kategorimenu`
--
ALTER TABLE `kategorimenu`
MODIFY `idmenu` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `idorder` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
MODIFY `idtag` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `iduser` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `webprofil`
--
ALTER TABLE `webprofil`
MODIFY `idwebprofil` int(1) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `articles`
--
ALTER TABLE `articles`
ADD CONSTRAINT `menus` FOREIGN KEY (`idmenu`) REFERENCES `kategorimenu` (`idmenu`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `galeri`
--
ALTER TABLE `galeri`
ADD CONSTRAINT `galeri_ibfk_1` FOREIGN KEY (`idmenu`) REFERENCES `kategori` (`idkategori`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `pesanan`
--
ALTER TABLE `pesanan`
ADD CONSTRAINT `orderbykategori` FOREIGN KEY (`idkategori`) REFERENCES `kategori` (`idkategori`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `menu` FOREIGN KEY (`idmenu`) REFERENCES `kategorimenu` (`idmenu`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>sfc-gh-tkaminski/pomocua-ogloszenia
create table job_offer (
id bigserial,
title text,
mode text,
city text,
voivodeship text,
description text
);
create table job_offer_type(
job_offer_id bigint,
type text
);
create table job_offer_language (
job_offer_id bigint,
language text
); |
<reponame>navikt/sykefravarsstatistikk-api<filename>src/main/resources/db/migration/V21__virksomheter_bekreftet_eksportert.sql
create table virksomheter_bekreftet_eksportert (
orgnr varchar not null primary key,
arstall smallint not null,
kvartal smallint not null,
opprettet timestamp default current_timestamp
); |
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].[SendAuthorPublishingNotifications]
AS
BEGIN
--- Looks for schedule entries in the next n days which don't have a
--- corresponding AuthorScheduleNotificationsLog entry (or differ from
--- any log entry, e.g. if publish date has changed), and inserts rows
--- "Emails" and "EmailRecipients" tables to inform the author.
---
--- A very crude email template system is provided below
DECLARE @MaxDaysAdvanceNotice INT
SET @MaxDaysAdvanceNotice=1 -- Determines how far in advance the authors are notified
DECLARE @Newline CHAR(2)
SET @Newline = char(10) + char(13)
DECLARE @EmailTemplate VARCHAR(MAX)
SET @EmailTemplate =
'*** PLEASE DO NOT REPLY - THIS IS AN AUTOMATICALLY-GENERATED EMAIL ***' + @Newline + @Newline
+'Dear {author},' + @Newline + @Newline
+'We are pleased to inform you that your submission "{title}" '
+'is scheduled to be published on www.sqlservercentral.com on '
+'{date}.' + @Newline + @Newline
+'Please look out for a discussion of this item on our forums '
+'at {forumurl} (on or after {date}).' + @Newline + @Newline
+'Thanks for your submission! Best regards,'+ @Newline
+'The SQL Server Central team'
DECLARE @BlogsEmailTemplate VARCHAR(MAX)
SET @BlogsEmailTemplate =
'*** PLEASE DO NOT REPLY - THIS IS AN AUTOMATICALLY-GENERATED EMAIL ***' + @Newline + @Newline
+'Dear {author},' + @Newline + @Newline
+'We are pleased to inform you that your post "{title}" '
+'is scheduled to appear on the SQLServerCentral.com homepage on {date}.' + @Newline + @Newline
+'Best regards,'+ @Newline
+'The SQL Server Central team'
BEGIN TRAN
-- First get a list of the notifications that are due (and haven't already been sent)
DECLARE @AuthorNotifications TABLE (RowID INT IDENTITY(1,1), ScheduleEntryID INT, Site INT, StartDate DATETIME, EndDate DATETIME, ContentItemID INT, Title VARCHAR(MAX), AuthorUserID INT, EmailAddress VARCHAR(MAX), DisplayName VARCHAR(MAX), AuthorFullName VARCHAR(MAX))
INSERT INTO @AuthorNotifications
SELECT se.[ScheduleEntryID], se.[Site], se.[StartDate], se.[EndDate], ci.[ContentItemID], ci.[Title], u.UserID, u.[EmailAddress], u.[DisplayName], u.[AuthorFullName]
FROM [ScheduleEntries] se
JOIN [ContentItems] ci ON ci.[ContentItemID]=se.[ContentItemID]
JOIN [AuthorContentItem] aci ON aci.[ContentItemID] = ci.[ContentItemID]
JOIN [Users] u ON u.[UserID] = aci.[UserID]
LEFT OUTER JOIN AuthorScheduleNotificationsLog asnl ON asnl.ScheduleEntryID = se.ScheduleEntryID AND asnl.ContentItemID = se.ContentItemID AND asnl.ScheduleStartDate = se.StartDate
WHERE se.[StartDate] BETWEEN GETDATE() AND GETDATE()+@MaxDaysAdvanceNotice
AND se.[Site] IN (10, 30, 60, 80) -- Headlines, QotD, Featured scripts, Second look
AND ci.[PublishingStatus] IN (25, 30) -- Really scheduled for publishing (i.e. published or pending-publish)
AND asnl.NotificationID IS NULL -- Don't notify them more than once (unless the content item or start date has changed)
-- Create Email/EmailRecipient records
DECLARE eachNotification CURSOR LOCAL FOR (SELECT RowID FROM @AuthorNotifications)
OPEN eachNotification
DECLARE @ThisRowID INT
FETCH NEXT FROM eachNotification INTO @ThisRowID
WHILE @@FETCH_STATUS = 0
BEGIN
-- Insert "Email" record
INSERT INTO [Emails] ([RecordType], [EmailTypeName], [IsTest], [UseClickTracking], [SubjectText], [BodyHTML], [BodyPlainText], [SenderName], [SenderEmailAddress], [Status], [ScheduleForDate], [ApprovedForSending])
SELECT 'Email', 'System:AuthorPublishingNotification', 0, 0,
-- Subject line
CASE WHEN EXISTS(SELECT 1 FROM dbo.BlogPosts WHERE ContentItemID = an.ContentItemID)
THEN '"' + an.Title + '" is scheduled for ' + RTRIM(DATENAME(weekday, an.StartDate) + ' ' + CONVERT(CHAR(32), an.StartDate, 107))
ELSE '"' + an.Title + '" will be published on ' + RTRIM(DATENAME(weekday, an.StartDate) + ' ' + CONVERT(CHAR(32), an.StartDate, 107))
END AS SubjectLine,
'', -- Empty HTML version
-- Build the body text
CASE WHEN EXISTS(SELECT 1 FROM dbo.BlogPosts WHERE ContentItemID = an.ContentItemID)
THEN REPLACE(REPLACE(REPLACE(
@BlogsEmailTemplate
, '{author}', ISNULL(an.AuthorFullName, an.DisplayName))
, '{title}', an.Title)
, '{date}', RTRIM(DATENAME(weekday, an.StartDate) + ' ' + CONVERT(CHAR(32), an.StartDate, 107)))
ELSE REPLACE(REPLACE(REPLACE(REPLACE(
@EmailTemplate
, '{author}', ISNULL(an.AuthorFullName, an.DisplayName))
, '{title}', an.Title)
, '{date}', RTRIM(DATENAME(weekday, an.StartDate) + ' ' + CONVERT(CHAR(32), an.StartDate, 107)))
, '{forumurl}', 'http://www.sqlservercentral.com/FindForumThread/' + CAST(an.ContentItemID AS VARCHAR(20)))
END AS BodyText,
'SQL Server Central', '<EMAIL>', 3, GETDATE(), 1
FROM @AuthorNotifications an WHERE an.RowID = @ThisRowID
-- Insert "EmailRecipient" record
INSERT INTO [EmailRecipients] ([EmailID], [UserID])
SELECT SCOPE_IDENTITY(), an.AuthorUserID
FROM @AuthorNotifications an WHERE an.RowID = @ThisRowID
FETCH NEXT FROM eachNotification INTO @ThisRowID
END
CLOSE eachNotification
DEALLOCATE eachNotification
-- Record the fact that notifications were sent
INSERT INTO AuthorScheduleNotificationsLog (ScheduleEntryID, ContentItemID, ScheduleStartDate)
SELECT ScheduleEntryID, ContentItemID, StartDate FROM @AuthorNotifications
COMMIT TRAN
END
GO
|
-- +migrate Up
CREATE TABLE rtokens (
token VARCHAR(511) NOT NULL UNIQUE PRIMARY KEY
);
-- +migrate Down
DROP TABLE rtokens; |
<gh_stars>100-1000
-- walcrash2.test
--
-- execsql {
-- PRAGMA page_size = 1024;
-- PRAGMA auto_vacuum = off;
-- PRAGMA journal_mode = WAL;
-- PRAGMA synchronous = NORMAL;
-- BEGIN;
-- CREATE TABLE t1(x);
-- CREATE TABLE t2(x);
-- CREATE TABLE t3(x);
-- CREATE TABLE t4(x);
-- CREATE TABLE t5(x);
-- CREATE TABLE t6(x);
-- CREATE TABLE t7(x);
-- COMMIT;
-- }
PRAGMA page_size = 1024;
PRAGMA auto_vacuum = off;
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
BEGIN;
CREATE TABLE t1(x);
CREATE TABLE t2(x);
CREATE TABLE t3(x);
CREATE TABLE t4(x);
CREATE TABLE t5(x);
CREATE TABLE t6(x);
CREATE TABLE t7(x);
COMMIT; |
--! Previous: sha1:383a30f958d7433b9b8861d5ac11f094f13ab977
--! Hash: sha1:6112bca18db9e35616eae5e69ba63022852fcdfc
--! Message: create-access-tokens
-- Create access_tokens table
-- Undo if rerunning
DROP TABLE IF EXISTS access_tokens;
-- Create table
CREATE TABLE access_tokens (
id SERIAL PRIMARY KEY,
expires TIMESTAMP WITH TIME ZONE NOT NULL,
scope TEXT NOT NULL,
token TEXT NOT NULL,
user_id INTEGER NOT NULL
);
-- Create unique index
CREATE UNIQUE INDEX access_tokens_token_key ON access_tokens (token);
-- Create foreign key constraint
ALTER TABLE access_tokens ADD CONSTRAINT access_tokens_user_id_fkey
FOREIGN KEY (user_id) REFERENCES users (id);
|
create table elastic_dispatcher_config (
config_id int not null auto_increment comment '配置id',
config_name varchar(50) comment '配置名称',
max_value int comment '最大值',
current_value int comment '当前值',
primary key (config_id),
unique key (config_name)
) comment '全局配置';
create table elastic_dispatcher_worker (
worker_id int not null auto_increment comment '工作者id',
worker_name varchar(100) not null comment '工作者名称',
max_threads int not null comment '最大工作线程数',
current_threads int not null comment '当前工作线程数',
primary key (worker_id),
unique key (worker_name)
) comment '工作者';
create table elastic_dispatcher_job (
job_id int not null auto_increment comment '任务id',
job_uuid varchar(36) not null comment '任务uuid',
job_no varchar(128) not null comment '外部任务编号',
worker_id int not null comment '工作者id',
job_info varchar(1000) not null comment '任务信息',
job_state int not null comment '任务状态(-1:取消,0:未开始,1:进行中,2:成功,-2:失败)',
expected_start timestamp not null default current_timestamp comment '期望开始日期',
acceptable_start timestamp not null default current_timestamp comment '可接受的开始日期',
expire_date timestamp not null default current_timestamp comment '超时时间',
actual_start timestamp null default null comment '实际开始时间',
actual_end timestamp null default null comment '实际结束时间',
max_retry int not null comment '最大重试次数',
retry_times int not null comment '重试次数',
fail_reason varchar(200) not null comment '失败原因',
create_date timestamp not null default current_timestamp comment '任务创建日期',
primary key (job_id),
unique key (job_uuid),
unique key (job_no),
key (job_state, expected_start, acceptable_start, create_date),
key (job_state, expire_date)
) comment '任务';
insert elastic_dispatcher_config (config_name,max_value,current_value) values ('threads', 100, 0); |
DROP TABLE IF EXISTS `runtime_data`;
CREATE TABLE `runtime_data`
(
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`test_plan_run_id` BIGINT(20) NOT NULL,
`session_id` VARCHAR(256) NULL,
`data` JSON DEFAULT NULL,
`created_date` DATETIME DEFAULT CURRENT_TIMESTAMP,
`updated_date` DATETIME DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `index_runtime_data_on_test_plan_run_id_and_session_id` (`test_plan_run_id`, `session_id`),
CONSTRAINT `fk_test_plan_run_id_in_runtime_data_to_test_plan_runs` FOREIGN KEY (`test_plan_run_id`) REFERENCES `test_plan_results` (`id`) ON DELETE CASCADE ON UPDATE NO ACTION
) ENGINE = InnoDB
DEFAULT CHARSET = utf8
COLLATE utf8_unicode_ci;
|
<gh_stars>0
ALTER TABLE status DROP waste_of_space;
ALTER TABLE status ADD waste_of_space text;
|
<reponame>hyms/basic
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 07, 2015 at 02:57 PM
-- Server version: 5.5.43-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `singularERP`
--
-- --------------------------------------------------------
--
-- Table structure for table `caja`
--
CREATE TABLE IF NOT EXISTS `caja` (
`idCaja` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(50) NOT NULL,
`descripcion` varchar(100) DEFAULT NULL,
`monto` double NOT NULL,
`fechaCreacion` datetime NOT NULL,
`fechaUltimoMovimiento` datetime DEFAULT NULL,
`enable` tinyint(4) DEFAULT NULL,
`fk_idServicio` int(11) DEFAULT NULL,
`fk_idSucursal` int(11) NOT NULL,
`fk_idCaja` int(11) DEFAULT NULL,
PRIMARY KEY (`idCaja`),
KEY `fk_caja_sucursal1_idx` (`fk_idSucursal`),
KEY `fk_caja_servicio1_idx` (`fk_idServicio`),
KEY `fk_caja_caja1_idx` (`fk_idCaja`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `caja`
--
INSERT INTO `caja` (`idCaja`, `nombre`, `descripcion`, `monto`, `fechaCreacion`, `fechaUltimoMovimiento`, `enable`, `fk_idServicio`, `fk_idSucursal`, `fk_idCaja`) VALUES
(1, 'administracion', NULL, 0, '2014-12-22 15:15:17', NULL, 1, NULL, 1, NULL),
(2, 'CTP Central', NULL, 0, '2014-12-22 15:15:17', NULL, 1, 2, 1, 1),
(3, 'CTP Cochabamba', 'cochabamnba', 0, '2015-01-05 15:02:35', '2015-01-05 15:02:42', 1, 2, 3, 1),
(4, 'CTP El Alto', 'el alto', 0, '2015-01-21 12:34:22', NULL, 1, 2, 2, 1),
(5, 'CTP SCZ', 'SCZ', 0, '2015-02-09 17:27:15', '2015-02-09 17:27:24', 1, 2, 4, 1);
-- --------------------------------------------------------
--
-- Table structure for table `cantidadPlacas`
--
CREATE TABLE IF NOT EXISTS `cantidadPlacas` (
`idCantidadPlacas` int(11) NOT NULL AUTO_INCREMENT,
`valor` double NOT NULL,
`enable` tinyint(4) NOT NULL,
PRIMARY KEY (`idCantidadPlacas`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `cantidadPlacas`
--
INSERT INTO `cantidadPlacas` (`idCantidadPlacas`, `valor`, `enable`) VALUES
(1, 1, 1),
(2, 25, 1),
(3, 61, 1),
(4, 121, 1),
(5, 201, 1);
-- --------------------------------------------------------
--
-- Table structure for table `cliente`
--
CREATE TABLE IF NOT EXISTS `cliente` (
`idCliente` int(11) NOT NULL AUTO_INCREMENT,
`fk_idTipoCliente` int(11) DEFAULT NULL,
`nombreCompleto` varchar(100) NOT NULL,
`nombreNegocio` varchar(100) NOT NULL,
`nombreResponsable` varchar(100) DEFAULT NULL,
`correo` varchar(150) DEFAULT NULL,
`fechaRegistro` datetime NOT NULL,
`telefono` varchar(30) NOT NULL,
`direccion` varchar(150) DEFAULT NULL,
`nitCi` varchar(20) DEFAULT NULL,
`codigoCliente` varchar(45) NOT NULL,
`enable` tinyint(4) NOT NULL,
`fk_idSucursal` int(11) DEFAULT NULL,
PRIMARY KEY (`idCliente`),
KEY `fk_cliente_tipoCliente1_idx` (`fk_idTipoCliente`),
KEY `fk_cliente_sucursal1_idx` (`fk_idSucursal`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Table structure for table `horaPlacas`
--
CREATE TABLE IF NOT EXISTS `horaPlacas` (
`idHoraPlacas` int(11) NOT NULL AUTO_INCREMENT,
`value` time NOT NULL,
`enable` tinyint(4) NOT NULL,
PRIMARY KEY (`idHoraPlacas`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
--
-- Dumping data for table `horaPlacas`
--
INSERT INTO `horaPlacas` (`idHoraPlacas`, `value`, `enable`) VALUES
(1, '08:00:00', 1),
(2, '20:00:00', 1);
-- --------------------------------------------------------
--
-- Table structure for table `movimientoCaja`
--
CREATE TABLE IF NOT EXISTS `movimientoCaja` (
`idMovimientoCaja` int(11) NOT NULL AUTO_INCREMENT,
`fk_idCajaOrigen` int(11) DEFAULT NULL,
`fk_idCajaDestino` int(11) DEFAULT NULL,
`time` datetime NOT NULL,
`fk_idUser` int(11) NOT NULL,
`monto` double NOT NULL,
`tipoMovimiento` tinyint(4) NOT NULL,
`observaciones` varchar(100) DEFAULT NULL,
`fechaCierre` datetime DEFAULT NULL,
`saldoCierre` double DEFAULT NULL,
`correlativoCierre` int(11) DEFAULT NULL,
`idParent` int(11) DEFAULT NULL,
`nroDoc` varchar(40) DEFAULT NULL,
PRIMARY KEY (`idMovimientoCaja`),
KEY `fk_movimientoCaja_caja1_idx` (`fk_idCajaDestino`),
KEY `fk_movimientoCaja_caja2_idx` (`fk_idCajaOrigen`),
KEY `fk_movimientoCaja_user1_idx` (`fk_idUser`),
KEY `fk_movimientoCaja_movimientoCaja1_idx` (`idParent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=21 ;
-- --------------------------------------------------------
--
-- Table structure for table `movimientoStock`
--
CREATE TABLE IF NOT EXISTS `movimientoStock` (
`idMovimientoStock` int(11) NOT NULL AUTO_INCREMENT,
`fk_idProducto` int(11) NOT NULL,
`fk_idStockOrigen` int(11) DEFAULT NULL,
`fk_idStockDestino` int(11) DEFAULT NULL,
`time` datetime NOT NULL,
`fk_idUser` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`observaciones` varchar(100) DEFAULT NULL,
`cierre` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`idMovimientoStock`),
KEY `fk_movimientoStock_producto1_idx` (`fk_idProducto`),
KEY `fk_movimientoStock_user1_idx` (`fk_idUser`),
KEY `fk_movimientoStock_productoStock1_idx` (`fk_idStockOrigen`),
KEY `fk_movimientoStock_productoStock2_idx` (`fk_idStockDestino`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=9 ;
-- --------------------------------------------------------
--
-- Table structure for table `OrdenCTP`
--
CREATE TABLE IF NOT EXISTS `OrdenCTP` (
`idOrdenCTP` int(11) NOT NULL AUTO_INCREMENT,
`fechaGenerada` datetime NOT NULL,
`fechaCobro` datetime DEFAULT NULL,
`cfSF` tinyint(4) DEFAULT NULL,
`tipoPago` tinyint(4) DEFAULT NULL,
`fechaPlazo` datetime DEFAULT NULL,
`codigoServicio` varchar(100) DEFAULT NULL,
`secuencia` int(11) NOT NULL,
`serie` int(11) NOT NULL,
`correlativo` int(11) NOT NULL,
`montoVenta` double DEFAULT NULL,
`montoDescuento` double DEFAULT NULL,
`estado` tinyint(4) NOT NULL,
`autorizado` varchar(100) DEFAULT NULL,
`observaciones` varchar(200) DEFAULT NULL,
`observacionesCaja` varchar(45) DEFAULT NULL,
`fk_idCliente` int(11) DEFAULT NULL,
`fk_idMovimientoCaja` int(11) DEFAULT NULL,
`fk_idSucursal` int(11) NOT NULL,
`fk_idUserD` int(11) DEFAULT NULL,
`fk_idUserV` int(11) DEFAULT NULL,
`fk_idUserD2` int(11) DEFAULT NULL,
`responsable` varchar(50) NOT NULL,
`telefono` varchar(20) DEFAULT NULL,
`observacionAdicional` varchar(200) DEFAULT NULL,
`factura` varchar(200) DEFAULT NULL,
`fk_idParent` int(11) DEFAULT NULL,
`tipoOrden` int(11) DEFAULT NULL,
PRIMARY KEY (`idOrdenCTP`),
KEY `fk_servicioVenta_movimientoCaja1_idx` (`fk_idMovimientoCaja`),
KEY `fk_servicioVenta_cliente1_idx` (`fk_idCliente`),
KEY `fk_servicioVenta_sucursal1_idx` (`fk_idSucursal`),
KEY `fk_servicioVenta_user1_idx` (`fk_idUserD`),
KEY `fk_servicioVenta_user2_idx` (`fk_idUserV`),
KEY `fk_OrdenCTP_OrdenCTP1_idx` (`fk_idParent`),
KEY `fk_OrdenCTP_user3_idx` (`fk_idUserD2`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
-- --------------------------------------------------------
--
-- Table structure for table `ordenDetalle`
--
CREATE TABLE IF NOT EXISTS `ordenDetalle` (
`idOrdenDetalleServicio` int(11) NOT NULL AUTO_INCREMENT,
`fk_idProductoStock` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`C` tinyint(4) DEFAULT NULL,
`M` tinyint(4) DEFAULT NULL,
`Y` tinyint(4) DEFAULT NULL,
`K` tinyint(4) DEFAULT NULL,
`trabajo` varchar(30) NOT NULL,
`pinza` decimal(10,0) NOT NULL,
`resolucion` decimal(10,0) NOT NULL,
`costo` double DEFAULT NULL,
`adicional` double DEFAULT NULL,
`total` double DEFAULT NULL,
`fk_idOrden` int(11) NOT NULL,
`fk_idMovimientoStock` int(11) DEFAULT NULL,
PRIMARY KEY (`idOrdenDetalleServicio`),
KEY `fk_detalleServicio_servicioVenta1_idx` (`fk_idOrden`),
KEY `fk_detalleServicio_productoStock1_idx` (`fk_idProductoStock`),
KEY `fk_detalleServicio_movimientoStock1_idx` (`fk_idMovimientoStock`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=11 ;
-- --------------------------------------------------------
--
-- Table structure for table `precioProductoOrden`
--
CREATE TABLE IF NOT EXISTS `precioProductoOrden` (
`idPrecioProductoOrden` int(11) NOT NULL AUTO_INCREMENT,
`fk_idProductoStock` int(11) NOT NULL,
`fk_idTipoCliente` int(11) NOT NULL,
`hora` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`precioSF` double NOT NULL,
`precioCF` double NOT NULL,
PRIMARY KEY (`idPrecioProductoOrden`),
KEY `fk_precioProductoServicio_tipoCliente1_idx` (`fk_idTipoCliente`),
KEY `fk_precioProductoOrden_productoStock1_idx` (`fk_idProductoStock`),
KEY `fk_precioProductoOrden_horaPlacas1_idx` (`hora`),
KEY `fk_precioProductoOrden_cantidadPlacas1_idx` (`cantidad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=61 ;
--
-- Table structure for table `producto`
--
CREATE TABLE IF NOT EXISTS `producto` (
`idProducto` int(11) NOT NULL AUTO_INCREMENT,
`codigo` varchar(50) NOT NULL,
`codigoPersonalizado` varchar(50) DEFAULT NULL,
`dimension` varchar(200) DEFAULT NULL,
`toBuy` tinyint(4) DEFAULT NULL,
`toSell` tinyint(4) DEFAULT NULL,
`importKey` varchar(15) DEFAULT NULL,
`cantidadPaquete` int(11) NOT NULL,
`material` varchar(50) NOT NULL,
`formato` varchar(50) NOT NULL,
PRIMARY KEY (`idProducto`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
--
-- Dumping data for table `producto`
--
INSERT INTO `producto` (`idProducto`, `codigo`, `codigoPersonalizado`, `dimension`, `toBuy`, `toSell`, `importKey`, `cantidadPaquete`, `material`, `formato`) VALUES
(1, 'P180', '', '(65x55x0.20)', 1, 1, '', 50, 'PLACAS CTP', 'MO020'),
(2, 'P183', '', '(45x37x0.15)', 1, 1, '', 100, 'PLACAS CTP', 'GTO46'),
(3, 'P184', '', '(51x40x0.15)', 1, 1, '', 100, 'PLACAS CTP', 'GTO52'),
(4, 'P185', '', '(52.5x49.5x0.15)', 1, 1, '', 100, 'PLACAS CTP', 'SM52'),
(5, 'P186', '', '(74.5x60.5x0.30)', 1, 1, '', 50, 'PLACAS CTP', 'ROLAND'),
(6, 'P187', '', '(79x103x0.30)', 1, 1, '', 30, 'PLACAS CTP', 'RESMA'),
(7, 'P198', '', '(74.5x93x0.30)', 1, 1, '', 30, 'PLACAS CTP', 'ROLAND +'),
(8, 'P199', '', '(84x69x0.30)', 1, 1, '', 40, 'PLACAS CTP', 'SOR');
-- --------------------------------------------------------
--
-- Table structure for table `productoStock`
--
CREATE TABLE IF NOT EXISTS `productoStock` (
`idProductoStock` int(11) NOT NULL AUTO_INCREMENT,
`fk_idProducto` int(11) NOT NULL,
`cantidad` int(11) NOT NULL,
`enable` tinyint(4) NOT NULL,
`alertaCantidad` int(11) NOT NULL,
`fk_idSucursal` int(11) DEFAULT NULL,
PRIMARY KEY (`idProductoStock`),
KEY `fk_productoStock_producto1_idx` (`fk_idProducto`),
KEY `fk_productoStock_sucursal1_idx` (`fk_idSucursal`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=19 ;
--
-- Dumping data for table `productoStock`
--
INSERT INTO `productoStock` (`idProductoStock`, `fk_idProducto`, `cantidad`, `enable`, `alertaCantidad`, `fk_idSucursal`) VALUES
(1, 1, 192, 1, 5, NULL),
(2, 2, 10, 1, 5, NULL),
(3, 3, 20, 1, 5, NULL),
(4, 4, 6, 1, 2, NULL),
(5, 5, 20, 1, 5, NULL),
(6, 6, 50, 1, 5, NULL),
(7, 7, 18, 1, 5, NULL),
(8, 8, 18, 1, 5, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `recibo`
--
CREATE TABLE IF NOT EXISTS `recibo` (
`idRecibo` int(11) NOT NULL AUTO_INCREMENT,
`codigo` varchar(100) NOT NULL,
`secuencia` int(11) NOT NULL,
`fk_idSucursal` int(11) NOT NULL,
`detalle` varchar(500) NOT NULL,
`nombre` varchar(50) NOT NULL,
`ciNit` varchar(20) NOT NULL,
`saldo` double NOT NULL,
`monto` double NOT NULL,
`acuenta` double NOT NULL,
`fechaRegistro` datetime NOT NULL,
`fk_idUser` int(11) NOT NULL,
`codigoVenta` varchar(100) DEFAULT NULL,
`fk_idServicio` int(11) NOT NULL,
`tipoRecibo` tinyint(4) NOT NULL,
`fk_idMovimientoCaja` int(11) NOT NULL,
`observaciones` varchar(200) DEFAULT NULL,
PRIMARY KEY (`idRecibo`),
KEY `fk_recibo_sucursal1_idx` (`fk_idSucursal`),
KEY `fk_recibo_user1_idx` (`fk_idUser`),
KEY `fk_recibo_servicio1_idx` (`fk_idServicio`),
KEY `fk_recibo_movimientoCaja1_idx` (`fk_idMovimientoCaja`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- Table structure for table `servicio`
--
CREATE TABLE IF NOT EXISTS `servicio` (
`idServicio` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(50) NOT NULL,
`descripcion` varchar(100) NOT NULL,
`enable` tinyint(4) NOT NULL,
`tableName` varchar(50) DEFAULT NULL,
PRIMARY KEY (`idServicio`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `servicio`
--
INSERT INTO `servicio` (`idServicio`, `nombre`, `descripcion`, `enable`, `tableName`) VALUES
(1, 'papeles', 'venta de material', 1, ''),
(2, 'CTP', 'servicio de CTP', 1, ''),
(3, 'imprenta', 'servicio de imprenta', 0, '');
-- --------------------------------------------------------
--
-- Table structure for table `sucursal`
--
CREATE TABLE IF NOT EXISTS `sucursal` (
`idSucursal` int(11) NOT NULL AUTO_INCREMENT,
`codigoSucursal` varchar(50) NOT NULL,
`nombre` varchar(50) NOT NULL,
`descripcion` varchar(100) NOT NULL,
`enable` tinyint(4) NOT NULL,
`central` tinyint(4) NOT NULL,
`gmap` varchar(100) DEFAULT NULL,
`fk_idParent` int(11) DEFAULT NULL,
`independiente` tinyint(4) DEFAULT NULL,
PRIMARY KEY (`idSucursal`),
KEY `fk_sucursal_sucursal1_idx` (`fk_idParent`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `sucursal`
--
INSERT INTO `sucursal` (`idSucursal`, `codigoSucursal`, `nombre`, `descripcion`, `enable`, `central`, `gmap`, `fk_idParent`, `independiente`) VALUES
(1, '01', 'la paz ', 'la paz', 1, 1, 'https://mapsengine.google.com/map/embed?mid=zrmEsoTG6JSM.k4EAih9attt4&z=18', NULL, 1),
(2, 'ea', 'El Alto', 'Villa dolores calle 5 Nro.', 1, 0, 'https://mapsengine.google.com/map/embed?mid=zrmEsoTG6JSM.kXWPEpETCSKk&z=18', NULL, 0),
(3, 'Cbba', 'Cochabamba', 'calle Ecuador 178, entre Junin y Ayacucho', 1, 0, 'https://mapsengine.google.com/map/embed?mid=zrmEsoTG6JSM.kWNpRrEvf8hk&z=18', NULL, 0),
(4, 'Scz', 'Santa Cruz', 'CALLE CAÑOTO 431, ENTRE AYACUCHO E INGAVI', 1, 0, 'https://mapsengine.google.com/map/embed?mid=zrmEsoTG6JSM.kCbDoK-i20lI&z=18', NULL, 0);
-- --------------------------------------------------------
--
-- Table structure for table `tipoCliente`
--
CREATE TABLE IF NOT EXISTS `tipoCliente` (
`idTipoCliente` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(45) NOT NULL,
PRIMARY KEY (`idTipoCliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `tipoCliente`
--
INSERT INTO `tipoCliente` (`idTipoCliente`, `nombre`) VALUES
(1, 'preferencial A'),
(2, 'Preferencial B'),
(3, 'nuevo');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`idUser` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(20) NOT NULL,
`password` varchar(150) NOT NULL,
`enable` tinyint(4) NOT NULL,
`role` tinyint(4) NOT NULL,
`apellido` varchar(30) NOT NULL,
`nombre` varchar(30) DEFAULT NULL,
`CI` varchar(10) NOT NULL,
`telefono` varchar(15) NOT NULL,
`email` varchar(50) DEFAULT NULL,
`salario` double DEFAULT NULL,
`fechaRegistro` datetime NOT NULL,
`fechaUltimoAcceso` datetime DEFAULT NULL,
`fechaAcceso` datetime NOT NULL,
`fk_idUser` int(11) DEFAULT NULL,
`fk_idSucursal` int(11) DEFAULT NULL,
PRIMARY KEY (`idUser`),
KEY `fk_user_user1_idx` (`fk_idUser`),
KEY `fk_user_sucursal1_idx` (`fk_idSucursal`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`idUser`, `username`, `password`, `enable`, `role`, `apellido`, `nombre`, `CI`, `telefono`, `email`, `salario`, `fechaRegistro`, `fechaUltimoAcceso`, `fechaAcceso`, `fk_idUser`, `fk_idSucursal`) VALUES
(1, 'helier', '<PASSWORD>', 1, 1, 'Cortez', 'Helier', '5999242', '73221183', '<EMAIL>', NULL, '2014-10-31 17:13:21', '2014-12-19 04:42:23', '2015-04-06 18:11:33', NULL, 1),
(2, 'erika', '<PASSWORD>146', 1, 1, 'Lecoña ', 'Erika', '4846615', '77771498', '', NULL, '2014-05-26 15:46:49', '2014-12-22 08:13:42', '2015-03-23 12:57:46', NULL, 1),
(3, 'erickparcm', '131eefef31381096aac8b8b1fbdaafdb', 1, 1, 'Paredes', 'Erick', '3320192 LP', '70577783', '<EMAIL>', NULL, '2014-10-31 17:13:21', '2014-12-18 10:08:07', '2015-03-19 09:34:01', NULL, 1),
(4, 'miriam', '27db41c5450aedffb560ecd99b5538d4', 1, 1, 'martinez', '', '123', '123', '', NULL, '2014-09-02 17:20:43', '2014-12-17 09:08:15', '2015-03-20 18:01:37', NULL, 1),
(5, 'elein', 'e10adc3949ba59abbe56e057f20f883e', 0, 3, 'CAÑAVERAL', 'ELEIN', '6874751', '00', '', NULL, '2014-10-20 13:08:10', '2014-12-22 11:15:59', '2015-03-18 08:58:35', NULL, 1),
(6, 'PEDROWU', 'e10adc3949ba59abbe56e057f20f883e', 1, 4, 'VARGAS', 'PEDRO', '6727077 ', '70150401', '<EMAIL>', NULL, '2014-10-30 17:26:30', '2014-12-17 10:43:07', '2015-03-23 11:20:33', NULL, 1),
(7, 'DEMVER', 'cda8d509636c44e5988f04a7dec453ec', 1, 5, 'ESCOBAR', 'IVAN', '7090245', '76571553', '<EMAIL>', NULL, '2014-10-30 17:31:44', '2014-11-25 08:59:43', '2015-03-23 12:23:33', NULL, 1),
(8, 'ABEL', 'e45c3160715aa0cd136b2d6b49742503', 1, 5, 'VALENCIA', 'ABEL', '6954338', '77544438', '', NULL, '2014-10-30 17:33:32', '2014-12-17 10:49:43', '2015-03-23 08:37:49', NULL, 1),
(9, 'MIGUEL', 'ff1888c2165bad08eeabb7627161c4e6', 1, 5, 'FLORES', 'MIGUEL', '6143162', '79599074', '<EMAIL>', NULL, '2014-10-30 17:37:56', '2014-11-21 20:01:11', '2015-03-21 13:43:48', NULL, 1),
(10, 'JOSE', 'e10adc3949ba59abbe56e057f20f883e', 1, 4, 'HUARACHI', '<NAME>', '8859653', '60600515', '<EMAIL>', NULL, '2014-10-31 12:04:06', '2014-10-31 16:35:45', '2015-03-10 14:44:59', NULL, 1),
(11, 'ISAAC', 'e38e28dbda189339e8cf6d5c15dcf56d', 1, 4, 'MELGAR', 'ISAAC ', '4690720', '77347155', '<EMAIL>', NULL, '2014-10-31 17:13:21', '2014-10-31 17:13:21', '2015-03-23 12:59:11', NULL, 1),
(12, 'edurey', '6a28dfa21f3ea9cf1b908b1e4dca6f0d', 1, 3, 'Reyes', 'Eduardo', '5991485', '70525751', '', NULL, '2014-11-11 20:07:34', '2014-11-13 08:37:26', '2014-11-13 08:37:26', NULL, 1),
(13, 'rolandocc', 'e06f1be5870ce756b542602183dede48', 1, 2, 'Condori', 'Rolando', '4882575', '79626069', '<EMAIL>', NULL, '2014-12-06 11:10:09', '2014-12-17 08:02:01', '2015-03-23 10:20:47', NULL, 2),
(14, 'mariaisabel', '6d69d84eaa84009f7355a53b724baf8f', 1, 2, '<NAME>', '<NAME>', '6591472', '60728786', '<EMAIL>', NULL, '2014-12-11 16:07:23', '2014-12-12 14:39:57', '2015-03-23 08:33:54', NULL, 3),
(15, 'sergio3d', 'cc963fa9947697594e7e9d460b213c5f', 1, 1, '<NAME>', '<NAME>', '6147456 L.', '77513007', '<EMAIL>', NULL, '2014-12-11 16:30:12', '2014-12-12 17:41:51', '2015-03-23 12:44:26', NULL, 3),
(16, 'leslie', 'e10adc3949ba59abbe56e057f20f883e', 1, 3, '<NAME>', 'LESLIE', '7031509', '79597391', '<EMAIL>', NULL, '2014-12-15 09:47:25', '2014-12-17 10:03:44', '2015-03-23 09:25:26', NULL, 2),
(17, 'sandy', 'e10adc3949ba59abbe56e057f20f883e', 0, 5, '<NAME>', 'Sandy', '8346121', '79503892', '', NULL, '2015-01-05 15:26:36', NULL, '2015-02-28 08:01:28', NULL, 3),
(18, 'jorge', '51908df75aa9185849df70b5d60f2007', 1, 2, '<NAME>', '<NAME>', '4893595', '78759643', '', NULL, '2015-01-05 15:28:08', NULL, '2015-03-23 08:11:08', NULL, 4),
(19, 'albarex', 'e10adc3949ba59abbe56e057f20f883e', 1, 4, 'Perez', 'Albaro', '6114734', '69824007', '', NULL, '2015-01-19 15:33:06', NULL, '2015-03-23 08:15:47', NULL, 1),
(20, 'dmiranda', 'e10adc3949ba59abbe56e057f20f883e', 1, 3, 'Miranda', 'Dayana', '9697330 Sc', '77632287', '<EMAIL>', NULL, '2015-02-09 16:46:32', NULL, '2015-03-23 09:45:46', NULL, 4),
(21, 'rocya', 'e10adc3949ba59abbe56e057f20f883e', 1, 3, 'Apaza', 'Rocy', '7022250 LP', '71270496', '', NULL, '2015-02-10 17:00:11', NULL, '2015-03-23 09:40:51', NULL, 1),
(22, 'erwin', 'fd8b14d90b493c6bcb9a5401b8c4c0be', 1, 5, 'cerrogrande', 'erwin', '8674358', '68578617', '', NULL, '2015-03-02 16:02:27', NULL, '2015-03-23 08:27:30', NULL, 3),
(23, 'diego', 'e10adc3949ba59abbe56e057f20f883e', 1, 5, 'villca', 'diego', '13472592', '79711509', '', NULL, '2015-03-02 16:04:15', NULL, '2015-03-17 09:00:32', NULL, 3),
(24, 'andrea', 'e10adc3949ba59abbe56e057f20f883e', 1, 5, 'cespedes', 'andrea', '9816239', '60042373', '', NULL, '2015-03-09 10:43:53', NULL, '2015-03-23 09:21:14', NULL, 4),
(25, 'eunice', 'e10adc3949ba59abbe56e057f20f883e', 0, 5, 'escobar', 'eunice', '8128611', '75523828', '', NULL, '2015-03-09 10:45:19', NULL, '2015-03-23 09:21:28', NULL, 4),
(26, 'GERMAN', '277e15a2f200970f8b598eb3907bee03', 1, 5, 'GONGORA', 'GERMAN', '7978545', '60761283', '', NULL, '2015-03-18 17:25:16', NULL, '2015-03-23 08:44:15', NULL, 3);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `caja`
--
ALTER TABLE `caja`
ADD CONSTRAINT `fk_caja_caja1` FOREIGN KEY (`fk_idCaja`) REFERENCES `caja` (`idCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_caja_servicio1` FOREIGN KEY (`fk_idServicio`) REFERENCES `servicio` (`idServicio`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_caja_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `cliente`
--
ALTER TABLE `cliente`
ADD CONSTRAINT `fk_cliente_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_cliente_tipoCliente1` FOREIGN KEY (`fk_idTipoCliente`) REFERENCES `tipoCliente` (`idTipoCliente`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `movimientoCaja`
--
ALTER TABLE `movimientoCaja`
ADD CONSTRAINT `fk_movimientoCaja_caja1` FOREIGN KEY (`fk_idCajaDestino`) REFERENCES `caja` (`idCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoCaja_caja2` FOREIGN KEY (`fk_idCajaOrigen`) REFERENCES `caja` (`idCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoCaja_movimientoCaja1` FOREIGN KEY (`idParent`) REFERENCES `movimientoCaja` (`idMovimientoCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoCaja_user1` FOREIGN KEY (`fk_idUser`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `movimientoStock`
--
ALTER TABLE `movimientoStock`
ADD CONSTRAINT `fk_movimientoStock_producto1` FOREIGN KEY (`fk_idProducto`) REFERENCES `producto` (`idProducto`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoStock_productoStock1` FOREIGN KEY (`fk_idStockOrigen`) REFERENCES `productoStock` (`idProductoStock`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoStock_productoStock2` FOREIGN KEY (`fk_idStockDestino`) REFERENCES `productoStock` (`idProductoStock`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_movimientoStock_user1` FOREIGN KEY (`fk_idUser`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `OrdenCTP`
--
ALTER TABLE `OrdenCTP`
ADD CONSTRAINT `fk_OrdenCTP_cliente1` FOREIGN KEY (`fk_idCliente`) REFERENCES `cliente` (`idCliente`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_OrdenCTP_movimientoCaja1` FOREIGN KEY (`fk_idMovimientoCaja`) REFERENCES `movimientoCaja` (`idMovimientoCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_OrdenCTP_OrdenCTP1` FOREIGN KEY (`fk_idParent`) REFERENCES `OrdenCTP` (`idOrdenCTP`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_OrdenCTP_user1` FOREIGN KEY (`fk_idUserD`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_OrdenCTP_user2` FOREIGN KEY (`fk_idUserV`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_OrdenCTP_user3` FOREIGN KEY (`fk_idUserD2`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_servicioVenta_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `ordenDetalle`
--
ALTER TABLE `ordenDetalle`
ADD CONSTRAINT `fk_detalleServicio_movimientoStock1` FOREIGN KEY (`fk_idMovimientoStock`) REFERENCES `movimientoStock` (`idMovimientoStock`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_detalleServicio_productoStock1` FOREIGN KEY (`fk_idProductoStock`) REFERENCES `productoStock` (`idProductoStock`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_detalleServicio_servicioVenta1` FOREIGN KEY (`fk_idOrden`) REFERENCES `OrdenCTP` (`idOrdenCTP`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `precioProductoOrden`
--
ALTER TABLE `precioProductoOrden`
ADD CONSTRAINT `fk_precioProductoOrden_cantidadPlacas1` FOREIGN KEY (`cantidad`) REFERENCES `cantidadPlacas` (`idCantidadPlacas`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_precioProductoOrden_horaPlacas1` FOREIGN KEY (`hora`) REFERENCES `horaPlacas` (`idHoraPlacas`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_precioProductoOrden_productoStock1` FOREIGN KEY (`fk_idProductoStock`) REFERENCES `productoStock` (`idProductoStock`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_precioProductoServicio_tipoCliente1` FOREIGN KEY (`fk_idTipoCliente`) REFERENCES `tipoCliente` (`idTipoCliente`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `productoStock`
--
ALTER TABLE `productoStock`
ADD CONSTRAINT `fk_productoStock_producto1` FOREIGN KEY (`fk_idProducto`) REFERENCES `producto` (`idProducto`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_productoStock_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `recibo`
--
ALTER TABLE `recibo`
ADD CONSTRAINT `fk_recibo_movimientoCaja1` FOREIGN KEY (`fk_idMovimientoCaja`) REFERENCES `movimientoCaja` (`idMovimientoCaja`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_recibo_servicio1` FOREIGN KEY (`fk_idServicio`) REFERENCES `servicio` (`idServicio`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_recibo_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION,
ADD CONSTRAINT `fk_recibo_user1` FOREIGN KEY (`fk_idUser`) REFERENCES `user` (`idUser`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `sucursal`
--
ALTER TABLE `sucursal`
ADD CONSTRAINT `fk_sucursal_sucursal1` FOREIGN KEY (`fk_idParent`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
--
-- Constraints for table `user`
--
ALTER TABLE `user`
ADD CONSTRAINT `fk_user_sucursal1` FOREIGN KEY (`fk_idSucursal`) REFERENCES `sucursal` (`idSucursal`) ON DELETE NO ACTION ON UPDATE NO ACTION;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
/*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 GENE_RELATIVE_LOCATION disable constraint SYS_C0021104;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004489;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004490;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004491;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004492;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004493;
alter table GENE_RELATIVE_LOCATION disable constraint SYS_C004494;
alter table GENE_RELATIVE_LOCATION disable primary key;
--EXIT;
|
<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*/
set echo on
delete from gene_tv where source='Entrez';
update gene_tv set entrez_id=null where source='Unigene';
commit;
update zstg_entrez_gene x set x.cabio_chr_id = (select c.CHROMOSOME_ID from chromosome c where c.CHROMOSOME_NUMBER = x.CHR and c.TAXON_ID = x.TAX_ID);
commit;
update gene_tv g set g.ENTREZ_ID =
(select distinct min(entrez_id) from zstg_entrez_gene x where
g.TAXON_ID = x.TAX_ID and g.CHROMOSOME_ID=x.CABIO_CHR_ID and
(g.SYMBOL = x.SYMBOL or g.HUGO_SYMBOL = x.SYMBOL)) where g.source='Unigene';
commit;
update gene_tv g set source='Unigene, Entrez' where source='Unigene' and entrez_id is not null;
commit;
delete from gene_nucleic_acid_sequence where gene_id not in (select distinct gene_id from gene_nucleic_acid_sequence);
commit;
update zstg_entrez_gene x set x.chr = x.chr_map_location where x.chr is null;
commit;
VAR V_MAXROW NUMBER;
COLUMN V_MAXROW NEW_VALUE V_MAXROW;
SELECT MAX(GENE_ID) + 1 AS V_MAXROW
FROM gene_tv;
DROP SEQUENCE genetv_ID;
CREATE SEQUENCE genetv_ID START WITH &V_MAXROW INCREMENT BY 1;
ALTER TRIGGER genetv_ID_trigger ENABLE;
insert into gene_tv(full_name, symbol, chromosome_id, taxon_id, hugo_symbol, source, entrez_id) select distinct description, symbol, cabio_chr_id, tax_id, symbol, 'Entrez', entrez_id from zstg_entrez_gene where cabio_chr_id is not null and symbol <> '-' and symbol in (select distinct symbol from zstg_entrez_gene minus (select distinct symbol from gene_tv union select distinct hugo_symbol from gene_tv));
commit;
SELECT MAX(ID) + 1 AS V_MAXROW FROM nucleic_acid_sequence;
DROP SEQUENCE nas_ID;
CREATE SEQUENCE nas_ID START WITH &V_MAXROW INCREMENT BY 1;
ALTER TRIGGER nas_ID_trigger ENABLE;
--insert into nucleic_acid_sequence
-- around 30,000 rows
/* insert into nucleic_acid_sequence(accession_number, version, sequence_type, value, length, description, discriminator) select substr(refseq_accession, 0, instr(refseq_accession,'.')-1), substr(refseq_accession, instr(refseq_accession,'.')+1), '1', seq, length(seq), description,
'MessengerRNA' from zstg_refseq_mrna where substr(refseq_accession, 0, instr(refseq_accession,'.')-1) in (select substr(refseq_accession, 0, instr(refseq_accession,'.')-1) from zstg_refseq_mrna minus select distinct accession_number from nucleic_acid_sequence);
*/
insert into nucleic_acid_sequence(accession_number, version, sequence_type, value, length, description, discriminator)
select substr(refseq_accession, 0, instr(refseq_accession,'.')-1), substr(refseq_accession, instr(refseq_accession,'.')+1), '1', seq,
length(seq), description, 'MessengerRNA'
from zstg_refseq_mrna
where substr(refseq_accession, 0, instr(refseq_accession,'.')-1)
in (select substr(refseq_accession, 0, instr(refseq_accession,'.')-1)
from zstg_refseq_mrna
minus
select distinct accession_number
from nucleic_acid_sequence)
and rowid in
(select min(rowid)
from zstg_refseq_mrna
where substr(refseq_accession, 0, instr(refseq_accession,'.')-1)
in (select substr(refseq_accession, 0, instr(refseq_accession,'.')-1)
from zstg_refseq_mrna
minus
select distinct accession_number
from nucleic_acid_sequence)
group by substr(refseq_accession, 0, instr(refseq_accession,'.')-1),
substr(refseq_accession, instr(refseq_accession,'.')+1), '1', length(seq), description, 'MessengerRNA');
commit;
-- creates 17126 rows
insert into gene_nucleic_acid_sequence(gene_id, gene_sequence_id)
select distinct g.GENE_ID, n.ID from gene_tv g, nucleic_acid_sequence n, zstg_gene2refseq z where g.ENTREZ_ID = z.GENEID and g.taxon_id=decode(z.tax_id,9606,5,10090,6) and substr(z.RNA_NUCLEOTIDE_ACC, 0, instr(z.RNA_NUCLEOTIDE_ACC,'.')-1) = n.ACCESSION_NUMBER minus select distinct gene_id, gene_sequence_id from gene_nucleic_acid_sequence;
commit;
exit;
|
<filename>schema/sdss5db/catalogdb/zari18/zari18ums_load.sql
\o zari18ums_load.out
\copy catalogdb.zari18ums from '/uufs/chpc.utah.edu/common/home/sdss50/sdsswork/target/catalogs/zari18/ums.csv' delimiter ',' null '---';
\o
|
<gh_stars>0
create table Employee (
id INT,
first_name VARCHAR(50),
email VARCHAR(50),
avatar VARCHAR(255)
);
insert into Employee (id, first_name, email, avatar) values (1, 'Edik', '<EMAIL>', 'https://robohash.org/illobeataeculpa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (2, 'Olivie', '<EMAIL>', 'https://robohash.org/verodolorsint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (3, 'Pembroke', '<EMAIL>', 'https://robohash.org/velitexquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (4, 'Lorenzo', '<EMAIL>', 'https://robohash.org/solutareprehenderitdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (5, 'Darius', '<EMAIL>', 'https://robohash.org/quiaadculpa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (6, 'Rubetta', '<EMAIL>', 'https://robohash.org/aperiametaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (7, 'Malinde', '<EMAIL>', 'https://robohash.org/quodquisquamest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (8, 'Hinda', '<EMAIL>', 'https://robohash.org/iddoloremexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (9, 'Toby', '<EMAIL>', 'https://robohash.org/distinctionesciuntut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (10, 'Ag', '<EMAIL>', 'https://robohash.org/ducimustotamaliquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (11, 'Juana', '<EMAIL>', 'https://robohash.org/etevenietporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (12, 'Melonie', '<EMAIL>', 'https://robohash.org/eligenditemporamagni.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (13, 'Danya', '<EMAIL>', 'https://robohash.org/laborumutet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (14, 'Caterina', '<EMAIL>', 'https://robohash.org/vitaevelitut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (15, 'Kikelia', '<EMAIL>', 'https://robohash.org/delectusutquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (16, 'Susy', '<EMAIL>', 'https://robohash.org/etsintexcepturi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (17, 'Van', '<EMAIL>', 'https://robohash.org/officiaquisaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (18, 'Drucill', '<EMAIL>', 'https://robohash.org/rerumquiatque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (19, 'Ada', '<EMAIL>', 'https://robohash.org/officiasedlaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (20, 'Dill', '<EMAIL>', 'https://robohash.org/reiciendissuscipitin.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (21, 'Lita', '<EMAIL>', 'https://robohash.org/quasquissimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (22, 'Maighdiln', '<EMAIL>', 'https://robohash.org/nihilvoluptatemat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (23, 'Brant', '<EMAIL>', 'https://robohash.org/enimquasiquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (24, 'Kym', '<EMAIL>', 'https://robohash.org/exercitationemnequearchitecto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (25, 'Linnea', '<EMAIL>', 'https://robohash.org/evenietquiaomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (26, 'Sharlene', '<EMAIL>', 'https://robohash.org/totammaximetempore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (27, 'Don', '<EMAIL>', 'https://robohash.org/quasvoluptatumdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (28, 'Ronny', '<EMAIL>', 'https://robohash.org/architectoetaperiam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (29, 'Warner', '<EMAIL>', 'https://robohash.org/quinullaatque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (30, 'Holly', '<EMAIL>', 'https://robohash.org/namsuntquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (31, 'Magdalena', '<EMAIL>', 'https://robohash.org/rerumetnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (32, 'Gawen', '<EMAIL>', 'https://robohash.org/esseerroromnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (33, 'Bernardina', '<EMAIL>', 'https://robohash.org/estaliaspraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (34, 'Kariotta', '<EMAIL>', 'https://robohash.org/autemvelitconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (35, 'Klara', '<EMAIL>', 'https://robohash.org/suscipitblanditiisoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (36, 'Inness', '<EMAIL>', 'https://robohash.org/quiquaeratunde.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (37, 'Nicolai', '<EMAIL>', 'https://robohash.org/nonrepellendussunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (38, 'Nisse', '<EMAIL>', 'https://robohash.org/etexpeditaest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (39, 'Correy', '<EMAIL>', 'https://robohash.org/facilisatquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (40, 'Corinne', '<EMAIL>', 'https://robohash.org/etaliasvitae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (41, 'Noreen', '<EMAIL>', 'https://robohash.org/quidemvitaesint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (42, 'Bjorn', '<EMAIL>', 'https://robohash.org/temporibusenimquidem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (43, 'Marlon', '<EMAIL>', 'https://robohash.org/explicaborerumdoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (44, 'Nat', '<EMAIL>', 'https://robohash.org/etsedhic.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (45, 'Robin', '<EMAIL>', 'https://robohash.org/omnisinest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (46, 'Gillian', '<EMAIL>', 'https://robohash.org/quiaaliasqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (47, 'Trudi', '<EMAIL>', 'https://robohash.org/etnihilrepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (48, 'Wynn', '<EMAIL>', 'https://robohash.org/possimusarchitectoquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (49, 'Corrinne', '<EMAIL>', 'https://robohash.org/cumqueullammolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (50, 'Winona', '<EMAIL>', 'https://robohash.org/porroestquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (51, 'Idaline', '<EMAIL>', 'https://robohash.org/eosetut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (52, 'Solly', '<EMAIL>', 'https://robohash.org/veniamundecorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (53, 'Ariella', '<EMAIL>', 'https://robohash.org/autinet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (54, 'Borden', '<EMAIL>', 'https://robohash.org/voluptaseosquibusdam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (55, 'Jodi', '<EMAIL>', 'https://robohash.org/utvoluptasdebitis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (56, 'Ninnetta', '<EMAIL>', 'https://robohash.org/laudantiummolestiasqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (57, 'Averill', '<EMAIL>', 'https://robohash.org/dolorescommodiet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (58, 'Oralla', '<EMAIL>', 'https://robohash.org/placeataccusantiumea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (59, 'Meghan', '<EMAIL>', 'https://robohash.org/etvoluptatemqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (60, 'Maurice', '<EMAIL>', 'https://robohash.org/atcommodiipsa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (61, 'Aleta', '<EMAIL>', 'https://robohash.org/nesciuntsimiliquelabore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (62, 'Aldwin', '<EMAIL>', 'https://robohash.org/maximeessequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (63, 'Kennan', '<EMAIL>', 'https://robohash.org/perferendisutex.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (64, 'Randolph', '<EMAIL>', 'https://robohash.org/eumamettempore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (65, 'Kimmy', '<EMAIL>', 'https://robohash.org/atqueenimillum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (66, 'Louis', '<EMAIL>', 'https://robohash.org/exautemid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (67, 'Kahlil', '<EMAIL>', 'https://robohash.org/consectetursapientead.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (68, 'Darsey', '<EMAIL>', 'https://robohash.org/adipisciquismollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (69, 'Letty', '<EMAIL>', 'https://robohash.org/dolorsimiliqueoccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (70, 'Gwyneth', '<EMAIL>', 'https://robohash.org/liberodolorrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (71, 'Hayward', '<EMAIL>', 'https://robohash.org/doloremmagniqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (72, 'Fanny', '<EMAIL>', 'https://robohash.org/eosnonin.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (73, 'Billy', '<EMAIL>', 'https://robohash.org/areiciendiseum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (74, 'Lavinie', '<EMAIL>', 'https://robohash.org/quiaremvero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (75, 'Raynard', '<EMAIL>', 'https://robohash.org/oditblanditiisunde.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (76, 'Ethel', '<EMAIL>', 'https://robohash.org/voluptatemquodeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (77, 'Hanan', '<EMAIL>', 'https://robohash.org/quosmagnamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (78, 'Cornela', '<EMAIL>', 'https://robohash.org/fugitveritatisipsum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (79, 'Cullin', '<EMAIL>', 'https://robohash.org/inciduntpariaturodit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (80, 'Donnamarie', '<EMAIL>', 'https://robohash.org/estdoloreaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (81, 'Bab', '<EMAIL>gers<EMAIL>', 'https://robohash.org/quibusdamcorporisab.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (82, 'Diannne', '<EMAIL>', 'https://robohash.org/nemomolestiaedelectus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (83, 'Cyrillus', '<EMAIL>', 'https://robohash.org/etveritatiscumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (84, 'Haley', '<EMAIL>', 'https://robohash.org/inveniamut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (85, 'Carey', '<EMAIL>', 'https://robohash.org/eaquiincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (86, 'Sascha', '<EMAIL>', 'https://robohash.org/dictasaepebeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (87, 'Doralynn', '<EMAIL>', 'https://robohash.org/idvoluptatesnam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (88, 'Web', '<EMAIL>', 'https://robohash.org/etreprehenderitqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (89, '<NAME>', '<EMAIL>', 'https://robohash.org/fugiatdoloribusquae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (90, 'Stephie', '<EMAIL>', 'https://robohash.org/autatquesed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (91, 'Lynne', '<EMAIL>', 'https://robohash.org/temporadolorcum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (92, 'Angeli', '<EMAIL>', 'https://robohash.org/utenimquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (93, 'Diego', '<EMAIL>', 'https://robohash.org/quiquirerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (94, 'Kimmy', '<EMAIL>', 'https://robohash.org/eligendiveritatisbeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (95, 'Myrtia', '<EMAIL>', 'https://robohash.org/sintquiinventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (96, 'Alida', '<EMAIL>', 'https://robohash.org/optioeaqueomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (97, 'Elisabeth', '<EMAIL>', 'https://robohash.org/cupiditatevoluptatemin.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (98, 'Shina', '<EMAIL>', 'https://robohash.org/quodvoluptatumculpa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (99, 'Stanleigh', '<EMAIL>', 'https://robohash.org/autaliassaepe.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (100, 'Bobette', '<EMAIL>', 'https://robohash.org/quiquodofficiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (101, 'Dalila', '<EMAIL>', 'https://robohash.org/estblanditiisneque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (102, 'Agneta', '<EMAIL>', 'https://robohash.org/accusamusquisest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (103, 'Kissee', '<EMAIL>', 'https://robohash.org/illovoluptatemfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (104, 'Dorelia', '<EMAIL>', 'https://robohash.org/natusreprehenderitaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (105, 'Perrine', '<EMAIL>', 'https://robohash.org/sitadipiscifuga.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (106, 'Gardiner', '<EMAIL>', 'https://robohash.org/quasdolornulla.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (107, 'Nyssa', '<EMAIL>', 'https://robohash.org/sednobisdebitis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (108, 'Rahel', '<EMAIL>', 'https://robohash.org/temporaconsequaturdolore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (109, 'Leupold', '<EMAIL>', 'https://robohash.org/quiaquirepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (110, 'Rubina', '<EMAIL>', 'https://robohash.org/debitisveniamquibusdam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (111, 'Nonna', '<EMAIL>', 'https://robohash.org/autaperiamenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (112, 'Valma', '<EMAIL>', 'https://robohash.org/amolestiaeautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (113, 'Allegra', '<EMAIL>', 'https://robohash.org/natusquiquae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (114, 'Bertie', '<EMAIL>', 'https://robohash.org/voluptatesanimivitae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (115, 'Amory', '<EMAIL>', 'https://robohash.org/optioenimsunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (116, 'Arturo', '<EMAIL>', 'https://robohash.org/mollitiaquaeratmaiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (117, 'Rem', '<EMAIL>', 'https://robohash.org/nostrumdelenitivoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (118, 'Lexy', '<EMAIL>', 'https://robohash.org/voluptatemofficiased.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (119, 'Nettie', '<EMAIL>', 'https://robohash.org/doloribusaccusantiumadipisci.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (120, 'Jennine', '<EMAIL>', 'https://robohash.org/consequunturodioomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (121, 'Norrie', '<EMAIL>', 'https://robohash.org/etlaboriosamquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (122, 'Maryjo', '<EMAIL>', 'https://robohash.org/etnamnulla.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (123, 'Beatrisa', '<EMAIL>', 'https://robohash.org/utblanditiissequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (124, 'Gunter', '<EMAIL>', 'https://robohash.org/accusantiumadipisciaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (125, 'Lane', '<EMAIL>', 'https://robohash.org/teneturarchitectoenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (126, 'Nickie', '<EMAIL>', 'https://robohash.org/utquinihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (127, 'Timoteo', '<EMAIL>', 'https://robohash.org/quamquisvero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (128, 'Lexie', '<EMAIL>', 'https://robohash.org/quisnihilreprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (129, 'Lexis', '<EMAIL>', 'https://robohash.org/enimtemporibusaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (130, 'Tremayne', '<EMAIL>', 'https://robohash.org/numquamnonrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (131, 'Marlena', '<EMAIL>', 'https://robohash.org/laborumamaxime.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (132, 'Bentlee', '<EMAIL>', 'https://robohash.org/adaliasnesciunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (133, 'Lezley', '<EMAIL>', 'https://robohash.org/voluptatibuseased.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (134, 'Eward', '<EMAIL>', 'https://robohash.org/animidoloremquefacilis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (135, 'Jayne', '<EMAIL>', 'https://robohash.org/omnisvoluptatumsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (136, 'Ortensia', '<EMAIL>', 'https://robohash.org/necessitatibusquiarepudiandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (137, 'Christoforo', '<EMAIL>', 'https://robohash.org/sapientenostrumet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (138, 'Vitoria', '<EMAIL>', 'https://robohash.org/sapienteeumminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (139, 'Abie', '<EMAIL>', 'https://robohash.org/reprehenderitducimuseligendi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (140, 'Melisandra', '<EMAIL>', 'https://robohash.org/officiaquiaasperiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (141, 'Phylis', '<EMAIL>', 'https://robohash.org/errordolorumdeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (142, 'Packston', '<EMAIL>', 'https://robohash.org/veniamnihilconsequuntur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (143, 'Ulrica', '<EMAIL>', 'https://robohash.org/nihilvoluptatecumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (144, 'Lorette', '<EMAIL>', 'https://robohash.org/fugitdoloresrem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (145, 'Ddene', '<EMAIL>', 'https://robohash.org/consequaturtemporafacilis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (146, 'Gigi', '<EMAIL>', 'https://robohash.org/enimquisiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (147, 'Kendell', '<EMAIL>', 'https://robohash.org/magnambeataea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (148, 'Danyelle', '<EMAIL>', 'https://robohash.org/eumvoluptatein.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (149, 'Anica', '<EMAIL>', 'https://robohash.org/enimetiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (150, 'Antonella', '<EMAIL>', 'https://robohash.org/autquiaconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (151, 'Osmund', '<EMAIL>', 'https://robohash.org/repellendusporroesse.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (152, 'Abe', '<EMAIL>', 'https://robohash.org/quibusdamautrepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (153, 'Minnnie', '<EMAIL>', 'https://robohash.org/pariatureosamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (154, 'Bjorn', '<EMAIL>', 'https://robohash.org/distinctiovoluptatibuset.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (155, 'Gilburt', '<EMAIL>', 'https://robohash.org/aspernaturtemporeodit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (156, 'Patten', '<EMAIL>', 'https://robohash.org/illorerumnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (157, 'Katherina', '<EMAIL>', 'https://robohash.org/asperioresquisvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (158, 'Sandy', '<EMAIL>', 'https://robohash.org/ullamliberoet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (159, 'Valaria', '<EMAIL>', 'https://robohash.org/consequaturdolorespossimus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (160, 'Melania', '<EMAIL>', 'https://robohash.org/etnonpraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (161, 'Joceline', '<EMAIL>', 'https://robohash.org/culpadeleniticumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (162, 'Joly', '<EMAIL>', 'https://robohash.org/eaimpeditquaerat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (163, 'Charis', '<EMAIL>', 'https://robohash.org/utfacilismagni.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (164, 'Mellisent', '<EMAIL>', 'https://robohash.org/occaecatiteneturratione.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (165, 'Ezra', '<EMAIL>', 'https://robohash.org/veritatissedut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (166, 'Alberik', '<EMAIL>', 'https://robohash.org/errorquibusdammolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (167, 'Carin', '<EMAIL>', 'https://robohash.org/aliquidcorruptisapiente.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (168, 'Alisun', '<EMAIL>', 'https://robohash.org/namestnemo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (169, 'Denise', '<EMAIL>', 'https://robohash.org/dolorvoluptatemrepellendus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (170, 'Kattie', '<EMAIL>', 'https://robohash.org/temporesimiliqueillo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (171, 'Darrelle', '<EMAIL>', 'https://robohash.org/eumenimullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (172, 'Bud', '<EMAIL>', 'https://robohash.org/porroexplicabopraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (173, 'Alvinia', '<EMAIL>', 'https://robohash.org/sedipsaprovident.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (174, 'Ester', '<EMAIL>', 'https://robohash.org/quivoluptatemin.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (175, 'Annice', '<EMAIL>', 'https://robohash.org/temporaillumqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (176, 'Cosetta', '<EMAIL>', 'https://robohash.org/aliasvoluptasqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (177, 'Tabb', '<EMAIL>', 'https://robohash.org/etquasivero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (178, 'Lorain', '<EMAIL>', 'https://robohash.org/etquiconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (179, 'Piotr', '<EMAIL>', 'https://robohash.org/eosametsequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (180, 'Carmelia', '<EMAIL>', 'https://robohash.org/ininminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (181, 'Roddie', '<EMAIL>', 'https://robohash.org/doloremdeseruntimpedit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (182, 'Estrella', '<EMAIL>', 'https://robohash.org/doloremdoloribusex.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (183, 'Lona', '<EMAIL>', 'https://robohash.org/quisquasnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (184, 'Teador', '<EMAIL>', 'https://robohash.org/consequatursimiliquequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (185, 'Kissiah', '<EMAIL>', 'https://robohash.org/porroquamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (186, 'Kalli', '<EMAIL>', 'https://robohash.org/temporaquamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (187, 'Bambi', '<EMAIL>', 'https://robohash.org/estetqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (188, 'Kevon', '<EMAIL>', 'https://robohash.org/verooccaecatiaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (189, 'Hildegarde', '<EMAIL>', 'https://robohash.org/nostrumetdebitis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (190, 'Tannie', '<EMAIL>', 'https://robohash.org/doloresetdicta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (191, 'Myrilla', '<EMAIL>', 'https://robohash.org/laudantiumconsecteturvel.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (192, 'Hestia', '<EMAIL>', 'https://robohash.org/harumipsamex.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (193, 'Jacquetta', '<EMAIL>', 'https://robohash.org/temporeverovelit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (194, 'Christine', '<EMAIL>', 'https://robohash.org/repellatducimusdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (195, 'Pebrook', '<EMAIL>', 'https://robohash.org/optioaccusantiumnumquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (196, 'Clayborn', '<EMAIL>', 'https://robohash.org/reprehenderitliberoconsequuntur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (197, 'Joelle', '<EMAIL>', 'https://robohash.org/minussintsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (198, 'Lek', '<EMAIL>', 'https://robohash.org/quiarchitectoest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (199, 'Coriss', '<EMAIL>', 'https://robohash.org/ineligendiquae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (200, 'Janet', '<EMAIL>', 'https://robohash.org/consequaturaliasaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (201, 'Hali', '<EMAIL>', 'https://robohash.org/sapienteveniamdolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (202, 'Shara', '<EMAIL>', 'https://robohash.org/blanditiisvelomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (203, 'Arvy', '<EMAIL>', 'https://robohash.org/earumdoloresmolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (204, 'Jermain', '<EMAIL>', 'https://robohash.org/delectuslaboriosamquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (205, 'Margit', '<EMAIL>', 'https://robohash.org/doloremdictatempora.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (206, 'Tyrone', '<EMAIL>', 'https://robohash.org/illoiustoporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (207, 'Ilysa', '<EMAIL>', 'https://robohash.org/etexpeditaincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (208, 'Christiane', '<EMAIL>', 'https://robohash.org/doloresrerumad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (209, 'Taber', '<EMAIL>', 'https://robohash.org/officiadoloresdelectus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (210, 'Trey', '<EMAIL>', 'https://robohash.org/suscipitmolestiasdeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (211, 'Man', '<EMAIL>', 'https://robohash.org/utrerumsint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (212, 'Kenn', '<EMAIL>', 'https://robohash.org/molestiaenonexercitationem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (213, 'Hermie', '<EMAIL>', 'https://robohash.org/nemofugitsapiente.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (214, 'Corry', '<EMAIL>', 'https://robohash.org/fugiatexpeditaiure.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (215, 'Carissa', '<EMAIL>', 'https://robohash.org/doloremipsaminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (216, 'Costa', '<EMAIL>', 'https://robohash.org/suscipitaspernaturassumenda.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (217, 'Gard', '<EMAIL>', 'https://robohash.org/delenitietpraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (218, 'Gerty', '<EMAIL>', 'https://robohash.org/sedsaepeiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (219, 'Jeremie', '<EMAIL>', 'https://robohash.org/debitisipsamaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (220, 'Alverta', '<EMAIL>', 'https://robohash.org/suntexercitationemsimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (221, 'Cristie', '<EMAIL>', 'https://robohash.org/consequaturnihilquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (222, 'Cooper', '<EMAIL>', 'https://robohash.org/adomniset.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (223, 'Marketa', '<EMAIL>', 'https://robohash.org/quiasuntquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (224, 'Germana', '<EMAIL>', 'https://robohash.org/doloribusvelitsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (225, 'Daryle', 'dbr<EMAIL>', 'https://robohash.org/atquibusdamvitae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (226, 'Waylon', '<EMAIL>', 'https://robohash.org/utblanditiisdistinctio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (227, 'Neysa', '<EMAIL>', 'https://robohash.org/consequatursedexcepturi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (228, 'Cynthie', '<EMAIL>', 'https://robohash.org/aspernaturveniamad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (229, 'Burt', '<EMAIL>', 'https://robohash.org/debitisquasofficia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (230, 'Mella', '<EMAIL>', 'https://robohash.org/autconsequunturdolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (231, 'Barnard', '<EMAIL>', 'https://robohash.org/magnamquasad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (232, 'Cecilla', '<EMAIL>', 'https://robohash.org/mollitiaullamvoluptatum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (233, 'Forbes', '<EMAIL>', 'https://robohash.org/quasieosamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (234, 'Jeanelle', '<EMAIL>', 'https://robohash.org/molestiaequieaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (235, 'Zandra', '<EMAIL>', 'https://robohash.org/excupiditateanimi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (236, 'Kit', '<EMAIL>', 'https://robohash.org/suscipitexplicabovoluptatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (237, 'Tammy', '<EMAIL>', 'https://robohash.org/utmaximeassumenda.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (238, 'Rourke', '<EMAIL>', 'https://robohash.org/quiveniamdeserunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (239, 'Natala', '<EMAIL>', 'https://robohash.org/doloresexcepturiplaceat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (240, 'Ingmar', '<EMAIL>', 'https://robohash.org/velofficiaquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (241, 'Prent', '<EMAIL>', 'https://robohash.org/consequaturteneturnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (242, 'Arie', '<EMAIL>', 'https://robohash.org/repellenduseumqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (243, 'Elsie', '<EMAIL>', 'https://robohash.org/voluptashicet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (244, 'Wandis', '<EMAIL>', 'https://robohash.org/verocommodivoluptates.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (245, 'Marleah', '<EMAIL>', 'https://robohash.org/repudiandaequodaperiam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (246, 'Raine', '<EMAIL>', 'https://robohash.org/rerumaperiammodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (247, 'Zoe', '<EMAIL>', 'https://robohash.org/hicetconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (248, 'Casie', '<EMAIL>', 'https://robohash.org/nihilvelmagni.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (249, 'Salomi', '<EMAIL>', 'https://robohash.org/voluptatemeossimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (250, 'Fernanda', '<EMAIL>', 'https://robohash.org/nobisteneturomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (251, 'Raymond', '<EMAIL>', 'https://robohash.org/utquivoluptates.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (252, 'Ronald', '<EMAIL>', 'https://robohash.org/rerumminimadolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (253, 'Lyn', '<EMAIL>', 'https://robohash.org/sitmaximedoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (254, 'Nealy', '<EMAIL>', 'https://robohash.org/exercitationemetrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (255, 'Ginni', '<EMAIL>', 'https://robohash.org/voluptatumpariaturalias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (256, 'Donny', '<EMAIL>', 'https://robohash.org/beataeetexercitationem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (257, 'Elianora', '<EMAIL>', 'https://robohash.org/assumendacupiditatevoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (258, 'Cindelyn', '<EMAIL>', 'https://robohash.org/quiautullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (259, 'Wendall', '<EMAIL>', 'https://robohash.org/mollitiaconsequaturporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (260, 'Neila', '<EMAIL>', 'https://robohash.org/esttemporibusblanditiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (261, 'Gallagher', '<EMAIL>', 'https://robohash.org/molestiasdebitisid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (262, 'Alisha', '<EMAIL>', 'https://robohash.org/voluptatemminimadolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (263, 'Correy', '<EMAIL>', 'https://robohash.org/eligendivoluptatemullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (264, 'Kit', '<EMAIL>', 'https://robohash.org/quisquametharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (265, 'Marti', '<EMAIL>', 'https://robohash.org/illoexaliquid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (266, 'Terri', '<EMAIL>', 'https://robohash.org/ducimusminusdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (267, 'Benny', '<EMAIL>', 'https://robohash.org/voluptatemdelenitirerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (268, 'Gaultiero', '<EMAIL>', 'https://robohash.org/auttemporibuscupiditate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (269, 'Raimundo', '<EMAIL>', 'https://robohash.org/quiquisnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (270, 'Ruddie', '<EMAIL>', 'https://robohash.org/perferendisidmagnam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (271, 'Gorden', '<EMAIL>', 'https://robohash.org/harumeumnesciunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (272, 'Kat', '<EMAIL>', 'https://robohash.org/odioconsecteturenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (273, 'Paula', '<EMAIL>', 'https://robohash.org/doloremnihileaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (274, 'Teddie', '<EMAIL>', 'https://robohash.org/sintharumofficiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (275, 'Rockie', '<EMAIL>', 'https://robohash.org/nequesuntexplicabo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (276, 'Jerrilyn', '<EMAIL>', 'https://robohash.org/corporisabquibusdam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (277, 'Allyn', '<EMAIL>', 'https://robohash.org/quisasperioresea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (278, 'Lona', '<EMAIL>', 'https://robohash.org/eumquaead.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (279, 'Kate', '<EMAIL>', 'https://robohash.org/etquiasuscipit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (280, 'Arabel', '<EMAIL>', 'https://robohash.org/etvoluptasquisquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (281, 'Rodolfo', '<EMAIL>', 'https://robohash.org/omnisnobisquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (282, 'Valaree', '<EMAIL>', 'https://robohash.org/insitdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (283, 'Trudi', '<EMAIL>', 'https://robohash.org/eumnumquamconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (284, 'Bertha', '<EMAIL>', 'https://robohash.org/delectustenetursaepe.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (285, 'Duke', '<EMAIL>', 'https://robohash.org/quireprehenderitmolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (286, 'Sonnie', '<EMAIL>', 'https://robohash.org/exnumquamiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (287, 'Clark', '<EMAIL>', 'https://robohash.org/perferendisofficiisnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (288, 'Lonnie', '<EMAIL>', 'https://robohash.org/adullamrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (289, 'Audrie', '<EMAIL>', 'https://robohash.org/laboriosamvoluptasaperiam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (290, 'Efren', '<EMAIL>', 'https://robohash.org/numquamassumendabeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (291, 'Appolonia', '<EMAIL>', 'https://robohash.org/saepevoluptasassumenda.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (292, 'Sophronia', '<EMAIL>', 'https://robohash.org/adnihildignissimos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (293, 'Valeda', '<EMAIL>', 'https://robohash.org/earumistecorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (294, 'Leese', '<EMAIL>', 'https://robohash.org/distinctiodolorvoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (295, 'Bunnie', '<EMAIL>', 'https://robohash.org/fugaconsecteturdistinctio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (296, 'Goraud', '<EMAIL>', 'https://robohash.org/aspernatureumquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (297, 'Maia', '<EMAIL>', 'https://robohash.org/nisialiquamest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (298, 'Dylan', '<EMAIL>', 'https://robohash.org/fugiatquasautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (299, 'Marylou', '<EMAIL>', 'https://robohash.org/pariaturrepellatsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (300, 'Jeth', '<EMAIL>', 'https://robohash.org/impeditnemout.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (301, 'Iormina', '<EMAIL>', 'https://robohash.org/ametconsecteturipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (302, 'Madelina', '<EMAIL>', 'https://robohash.org/saepeautfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (303, 'Mallory', '<EMAIL>', 'https://robohash.org/utautemet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (304, 'Goddard', '<EMAIL>', 'https://robohash.org/sedtemporaporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (305, 'Terra', '<EMAIL>', 'https://robohash.org/autsedlaboriosam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (306, 'Nerty', '<EMAIL>', 'https://robohash.org/quasiesseaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (307, 'Paxon', '<EMAIL>', 'https://robohash.org/iuredoloremquesint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (308, 'Maddalena', '<EMAIL>', 'https://robohash.org/rerumutrem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (309, 'Noak', '<EMAIL>', 'https://robohash.org/mollitiaestcommodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (310, 'Dmitri', '<EMAIL>', 'https://robohash.org/ipsaaccusantiumquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (311, 'Frieda', '<EMAIL>', 'https://robohash.org/doloresblanditiiset.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (312, 'Belinda', '<EMAIL>', 'https://robohash.org/asperioreseoseius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (313, 'Elaina', '<EMAIL>', 'https://robohash.org/estvoluptatumaspernatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (314, 'Benedikt', '<EMAIL>', 'https://robohash.org/quisessequia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (315, 'Valencia', '<EMAIL>', 'https://robohash.org/autvoluptatedolor.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (316, 'Tarah', '<EMAIL>', 'https://robohash.org/sitatqueex.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (317, 'Linea', '<EMAIL>', 'https://robohash.org/etmolestiaseveniet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (318, 'Owen', '<EMAIL>.edu', 'https://robohash.org/voluptatemnatuslaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (319, 'Marcello', '<EMAIL>', 'https://robohash.org/nostruminaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (320, 'Livia', '<EMAIL>', 'https://robohash.org/estrerumsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (321, 'Gibby', '<EMAIL>', 'https://robohash.org/aliquamquiquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (322, 'Rosie', '<EMAIL>', 'https://robohash.org/ipsamdeseruntut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (323, 'Shayne', '<EMAIL>', 'https://robohash.org/quibusdamtemporadistinctio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (324, 'Fancy', '<EMAIL>', 'https://robohash.org/numquamodiolaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (325, 'Gloria', '<EMAIL>', 'https://robohash.org/magnamomnisitaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (326, 'Terra', '<EMAIL>', 'https://robohash.org/fuganonat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (327, 'Jill', '<EMAIL>', 'https://robohash.org/etplaceatet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (328, 'Chiquita', '<EMAIL>', 'https://robohash.org/repellendusofficiisofficia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (329, 'Jori', '<EMAIL>', 'https://robohash.org/cumtemporanisi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (330, 'Enrichetta', '<EMAIL>', 'https://robohash.org/utinventoreeum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (331, 'Izaak', '<EMAIL>', 'https://robohash.org/aperiamsitoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (332, 'Mame', '<EMAIL>', 'https://robohash.org/teneturquamquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (333, 'Agneta', '<EMAIL>', 'https://robohash.org/ipsamida.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (334, 'Thebault', '<EMAIL>', 'https://robohash.org/doloremipsumfacere.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (335, 'Cyndia', '<EMAIL>', 'https://robohash.org/quibusdamminusfuga.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (336, 'Lonnard', '<EMAIL>', 'https://robohash.org/perferendisprovidentautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (337, 'Hercule', '<EMAIL>', 'https://robohash.org/fugitquisinventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (338, 'Willy', '<EMAIL>', 'https://robohash.org/suscipiteaqueveritatis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (339, 'Care', '<EMAIL>', 'https://robohash.org/eteasaepe.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (340, 'Costanza', '<EMAIL>', 'https://robohash.org/illoteneturaspernatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (341, 'Goldia', '<EMAIL>', 'https://robohash.org/estnobisquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (342, 'Alair', '<EMAIL>', 'https://robohash.org/quiaestquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (343, 'Alexandr', '<EMAIL>', 'https://robohash.org/commodietest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (344, 'Esme', '<EMAIL>', 'https://robohash.org/voluptasquasiperspiciatis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (345, 'Bret', '<EMAIL>', 'https://robohash.org/reiciendisnamperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (346, 'Ruddy', '<EMAIL>', 'https://robohash.org/sedinventorerepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (347, 'Nicolle', '<EMAIL>', 'https://robohash.org/sitdoloreasperiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (348, 'Gabie', '<EMAIL>', 'https://robohash.org/culpaassumendaest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (349, 'Bab', '<EMAIL>', 'https://robohash.org/etquidemcorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (350, 'Gardner', '<EMAIL>', 'https://robohash.org/quidistinctiomolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (351, 'Bettine', '<EMAIL>', 'https://robohash.org/repellatvelitdeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (352, 'Randie', '<EMAIL>', 'https://robohash.org/enimnonfacere.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (353, 'Holly', '<EMAIL>', 'https://robohash.org/evenieteumrepudiandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (354, 'Reinwald', '<EMAIL>', 'https://robohash.org/quisquamsitconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (355, 'Tommie', '<EMAIL>', 'https://robohash.org/officiautmodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (356, 'Rebecka', '<EMAIL>', 'https://robohash.org/excepturifugiatimpedit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (357, 'Lila', '<EMAIL>', 'https://robohash.org/utrepudiandaeneque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (358, 'Salomon', '<EMAIL>', 'https://robohash.org/quitemporein.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (359, 'Hadley', '<EMAIL>', 'https://robohash.org/isteeaquaerat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (360, 'Melisa', '<EMAIL>', 'https://robohash.org/adametatque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (361, 'Constancy', '<EMAIL>', 'https://robohash.org/quasautporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (362, 'Cathyleen', '<EMAIL>', 'https://robohash.org/consecteturoccaecatiet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (363, 'Claudell', '<EMAIL>', 'https://robohash.org/seddoloreaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (364, 'Miriam', '<EMAIL>', 'https://robohash.org/adipiscicommodinam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (365, 'Sherri', '<EMAIL>', 'https://robohash.org/sitexpeditasunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (366, 'Cozmo', '<EMAIL>', 'https://robohash.org/etporroreiciendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (367, 'Rey', '<EMAIL>', 'https://robohash.org/repudiandaesitut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (368, 'Wylma', '<EMAIL>', 'https://robohash.org/autvelitomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (369, 'Emmey', '<EMAIL>', 'https://robohash.org/praesentiummagnamaperiam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (370, 'Riannon', '<EMAIL>', 'https://robohash.org/iustomaximedolorum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (371, 'Lorenza', '<EMAIL>', 'https://robohash.org/consequunturnostrumsoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (372, 'Delinda', '<EMAIL>', 'https://robohash.org/aperiamutnostrum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (373, 'Fenelia', '<EMAIL>', 'https://robohash.org/quamarchitectonon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (374, 'Celestyn', '<EMAIL>', 'https://robohash.org/ipsaoditaliquid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (375, 'Frannie', '<EMAIL>', 'https://robohash.org/sintmagniomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (376, 'Euphemia', '<EMAIL>', 'https://robohash.org/nemoiurereprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (377, 'Angeline', '<EMAIL>', 'https://robohash.org/porrorecusandaeeos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (378, 'Ailey', '<EMAIL>', 'https://robohash.org/autcupiditateet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (379, 'Allie', '<EMAIL>', 'https://robohash.org/etcommodiodit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (380, 'Mindy', '<EMAIL>', 'https://robohash.org/minusmaximeminima.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (381, 'Lilyan', '<EMAIL>', 'https://robohash.org/quaeratsequiadipisci.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (382, 'Waly', '<EMAIL>', 'https://robohash.org/utnesciuntvel.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (383, 'Lonni', '<EMAIL>', 'https://robohash.org/etveritatisducimus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (384, 'Serge', '<EMAIL>', 'https://robohash.org/nesciuntquosoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (385, 'Jayson', '<EMAIL>', 'https://robohash.org/sintundeest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (386, 'Alon', '<EMAIL>', 'https://robohash.org/perspiciatissuntvoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (387, 'Willy', '<EMAIL>', 'https://robohash.org/teneturliberovoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (388, 'Bidget', '<EMAIL>', 'https://robohash.org/atiustomollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (389, 'Thomasin', '<EMAIL>', 'https://robohash.org/etexpeditaquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (390, 'Elfrida', '<EMAIL>', 'https://robohash.org/voluptateoptioeos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (391, 'Marita', '<EMAIL>', 'https://robohash.org/idfacerenecessitatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (392, 'Tamqrah', '<EMAIL>', 'https://robohash.org/ducimuscupiditatequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (393, 'Griffie', '<EMAIL>', 'https://robohash.org/consequaturadplaceat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (394, 'Michaeline', '<EMAIL>', 'https://robohash.org/porroliberoanimi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (395, 'Jeramey', '<EMAIL>', 'https://robohash.org/quosasperioresconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (396, 'Lianne', '<EMAIL>', 'https://robohash.org/placeateaqueimpedit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (397, 'Rhea', '<EMAIL>', 'https://robohash.org/assumendamolestiasdoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (398, 'Jacquette', '<EMAIL>', 'https://robohash.org/nondolorrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (399, 'Edy', '<EMAIL>', 'https://robohash.org/quitotamaccusantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (400, 'Forbes', '<EMAIL>', 'https://robohash.org/velvoluptasmolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (401, 'Pierson', '<EMAIL>', 'https://robohash.org/nonrerumiusto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (402, 'Maude', '<EMAIL>', 'https://robohash.org/nisieaeaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (403, 'Mellicent', '<EMAIL>', 'https://robohash.org/debitisenimipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (404, 'Giulio', '<EMAIL>', 'https://robohash.org/blanditiispraesentiumid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (405, 'Brinn', '<EMAIL>', 'https://robohash.org/laboreuttempora.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (406, 'Dunc', '<EMAIL>', 'https://robohash.org/autrerumaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (407, 'Tony', '<EMAIL>', 'https://robohash.org/nihilnullatotam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (408, 'Susi', '<EMAIL>', 'https://robohash.org/temporaquisquamiusto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (409, 'Letti', '<EMAIL>', 'https://robohash.org/explicabomolestiaeculpa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (410, 'Maitilde', '<EMAIL>', 'https://robohash.org/autemaccusamusipsum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (411, 'Mariette', '<EMAIL>', 'https://robohash.org/utvoluptatumesse.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (412, 'Lionello', '<EMAIL>', 'https://robohash.org/veritatisutomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (413, 'Herve', '<EMAIL>', 'https://robohash.org/commodiautquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (414, 'Doe', '<EMAIL>', 'https://robohash.org/quodestnobis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (415, 'Dimitri', '<EMAIL>', 'https://robohash.org/istesiteius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (416, 'Mab', '<EMAIL>', 'https://robohash.org/etestconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (417, 'Ev', '<EMAIL>', 'https://robohash.org/quoipsavoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (418, 'Ray', '<EMAIL>', 'https://robohash.org/quamvoluptatesvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (419, 'Noble', '<EMAIL>', 'https://robohash.org/etestoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (420, 'Judd', '<EMAIL>', 'https://robohash.org/eligendirationeexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (421, 'Dannye', '<EMAIL>', 'https://robohash.org/corruptiabenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (422, 'Daniele', '<EMAIL>', 'https://robohash.org/eosquaemolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (423, 'Dolores', '<EMAIL>', 'https://robohash.org/cupiditateautfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (424, 'Vivien', '<EMAIL>', 'https://robohash.org/suntexplicabotempora.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (425, 'Stern', '<EMAIL>', 'https://robohash.org/etestquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (426, 'Fletch', '<EMAIL>', 'https://robohash.org/etvelitdeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (427, 'Mattias', '<EMAIL>', 'https://robohash.org/voluptatibusexercitationemoccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (428, 'Goldi', '<EMAIL>', 'https://robohash.org/fugitquaseaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (429, 'Leonhard', '<EMAIL>', 'https://robohash.org/estquoscum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (430, 'Daryle', '<EMAIL>', 'https://robohash.org/dolordolorea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (431, 'Bernadina', '<EMAIL>', 'https://robohash.org/delectusextempora.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (432, 'Trudey', '<EMAIL>', 'https://robohash.org/culpaautneque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (433, 'Kevin', '<EMAIL>', 'https://robohash.org/eosvelitsapiente.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (434, 'Byram', '<EMAIL>', 'https://robohash.org/voluptasremet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (435, 'Bamby', '<EMAIL>', 'https://robohash.org/nonnisimaiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (436, 'Hendrik', '<EMAIL>', 'https://robohash.org/estrerumdolorum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (437, 'Sara', '<EMAIL>', 'https://robohash.org/ipsamdignissimosdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (438, 'Zahara', '<EMAIL>', 'https://robohash.org/modietut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (439, 'Dru', '<EMAIL>', 'https://robohash.org/rationeminusharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (440, 'Reine', '<EMAIL>', 'https://robohash.org/perspiciatisnumquamreprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (441, 'Wolfgang', '<EMAIL>', 'https://robohash.org/nametid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (442, 'Kip', '<EMAIL>', 'https://robohash.org/totamimpeditmodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (443, 'Raffaello', '<EMAIL>', 'https://robohash.org/veritatisullamqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (444, 'Lilyan', '<EMAIL>', 'https://robohash.org/magnamquaemaxime.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (445, 'Benoit', '<EMAIL>', 'https://robohash.org/etsitiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (446, 'Milo', '<EMAIL>', 'https://robohash.org/inciduntnonrepellendus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (447, 'Allard', '<EMAIL>', 'https://robohash.org/excepturidoloremquequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (448, 'Kele', '<EMAIL>', 'https://robohash.org/asperioresadperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (449, 'Arnoldo', '<EMAIL>', 'https://robohash.org/eumnonminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (450, 'Teodor', '<EMAIL>', 'https://robohash.org/inomnisperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (451, 'Lisabeth', '<EMAIL>', 'https://robohash.org/utquisoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (452, 'Wren', '<EMAIL>', 'https://robohash.org/repellatestnam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (453, 'Clarey', '<EMAIL>', 'https://robohash.org/eaperspiciatissequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (454, 'Mellie', '<EMAIL>', 'https://robohash.org/praesentiumexpeditacumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (455, 'Ber', '<EMAIL>', 'https://robohash.org/ipsumdoloresquaerat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (456, 'Emalee', '<EMAIL>', 'https://robohash.org/oditautquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (457, 'Elisha', '<EMAIL>', 'https://robohash.org/ullamiustocommodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (458, 'Roddie', '<EMAIL>', 'https://robohash.org/sitvoluptaset.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (459, 'Margarita', '<EMAIL>', 'https://robohash.org/nostrumcupiditatesoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (460, 'Editha', '<EMAIL>', 'https://robohash.org/ipsamvelsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (461, 'Elvina', '<EMAIL>', 'https://robohash.org/omnisaliquidnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (462, 'Selig', '<EMAIL>', 'https://robohash.org/voluptasrepellatatque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (463, 'Dorian', '<EMAIL>', 'https://robohash.org/enimliberoratione.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (464, 'Veronika', '<EMAIL>', 'https://robohash.org/eaestet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (465, 'Lonny', '<EMAIL>', 'https://robohash.org/hicnecessitatibustemporibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (466, 'Priscella', '<EMAIL>', 'https://robohash.org/idnesciuntea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (467, 'Biddie', '<EMAIL>', 'https://robohash.org/amettemporavel.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (468, 'Jacky', '<EMAIL>', 'https://robohash.org/aliquidmagnamsoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (469, 'Dagmar', '<EMAIL>', 'https://robohash.org/omnisnumquamexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (470, 'Lemar', '<EMAIL>', 'https://robohash.org/etsintcupiditate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (471, 'Nevil', '<EMAIL>', 'https://robohash.org/nihilnumquamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (472, 'Tildi', '<EMAIL>', 'https://robohash.org/nondolorumharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (473, 'Jenelle', '<EMAIL>', 'https://robohash.org/eaquecommodiesse.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (474, 'Cirillo', '<EMAIL>', 'https://robohash.org/minusquiavel.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (475, 'Corinna', '<EMAIL>', 'https://robohash.org/vitaeipsamsimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (476, 'Ker', '<EMAIL>', 'https://robohash.org/enimevenietoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (477, 'Terrill', '<EMAIL>', 'https://robohash.org/suntitaqueerror.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (478, 'Axe', '<EMAIL>', 'https://robohash.org/vitaeutullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (479, 'Kessia', '<EMAIL>', 'https://robohash.org/perferendisvoluptatematque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (480, 'Cayla', '<EMAIL>', 'https://robohash.org/oditnontotam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (481, 'Winfred', '<EMAIL>', 'https://robohash.org/veladipiscialias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (482, 'Beauregard', '<EMAIL>', 'https://robohash.org/sitrepellatet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (483, 'Algernon', '<EMAIL>', 'https://robohash.org/asperiorespossimusfacere.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (484, 'Nevil', '<EMAIL>', 'https://robohash.org/doloremrerumut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (485, 'Karlis', '<EMAIL>', 'https://robohash.org/aliquidquivoluptatum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (486, 'Delbert', '<EMAIL>', 'https://robohash.org/porroquodsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (487, 'Tudor', '<EMAIL>', 'https://robohash.org/etoditquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (488, 'Maryann', '<EMAIL>', 'https://robohash.org/quoabinventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (489, 'Malia', '<EMAIL>', 'https://robohash.org/cupiditatenumquamvel.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (490, 'Vikki', '<EMAIL>', 'https://robohash.org/ullamconsequaturrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (491, 'Patty', '<EMAIL>', 'https://robohash.org/deseruntquodaliquid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (492, 'Pansie', '<EMAIL>', 'https://robohash.org/estnostrumlibero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (493, 'Danila', '<EMAIL>', 'https://robohash.org/veniamsedqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (494, 'Burl', '<EMAIL>', 'https://robohash.org/suntexercitationemrepellendus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (495, 'Donna', '<EMAIL>', 'https://robohash.org/inciduntvoluptatemsimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (496, 'Park', '<EMAIL>', 'https://robohash.org/eaconsequunturarchitecto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (497, 'Fabien', '<EMAIL>', 'https://robohash.org/quissequiiusto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (498, 'Grantham', '<EMAIL>', 'https://robohash.org/voluptatemaliquamquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (499, 'Seana', '<EMAIL>', 'https://robohash.org/insuscipitenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (500, 'Laurella', '<EMAIL>', 'https://robohash.org/etrerumvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (501, 'Lazar', '<EMAIL>', 'https://robohash.org/voluptatemessedolore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (502, 'Barbee', '<EMAIL>', 'https://robohash.org/ipsamatquesit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (503, 'Hanson', '<EMAIL>', 'https://robohash.org/doloremvitaeut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (504, 'Bud', '<EMAIL>', 'https://robohash.org/voluptatemaliasminima.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (505, 'Tanny', '<EMAIL>', 'https://robohash.org/quosquoharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (506, 'Fionnula', '<EMAIL>', 'https://robohash.org/omnisametrem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (507, 'Pincas', '<EMAIL>', 'https://robohash.org/voluptatibussintdolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (508, 'Chevalier', '<EMAIL>', 'https://robohash.org/esseexqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (509, 'Ebonee', '<EMAIL>', 'https://robohash.org/etnullablanditiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (510, 'Gilbert', '<EMAIL>', 'https://robohash.org/quibusdamsapienteconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (511, 'Fionna', '<EMAIL>', 'https://robohash.org/doloremquibusdamquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (512, 'Clarette', '<EMAIL>', 'https://robohash.org/quivoluptatemminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (513, 'Sandor', '<EMAIL>', 'https://robohash.org/fugiatineos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (514, 'Douglas', '<EMAIL>', 'https://robohash.org/ipsaenimhic.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (515, 'Colline', '<EMAIL>', 'https://robohash.org/ametdelenitinatus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (516, 'Margi', '<EMAIL>', 'https://robohash.org/nihilquiacum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (517, 'Nichol', '<EMAIL>', 'https://robohash.org/voluptatumnonasperiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (518, 'Jocelyne', '<EMAIL>', 'https://robohash.org/eumesttotam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (519, 'Wanids', '<EMAIL>', 'https://robohash.org/nostrumearumdelectus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (520, 'Kristan', '<EMAIL>', 'https://robohash.org/omnisquonecessitatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (521, 'Paddie', '<EMAIL>', 'https://robohash.org/repellendusearumconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (522, 'Alejandra', '<EMAIL>', 'https://robohash.org/accusantiumomnisnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (523, 'Saidee', '<EMAIL>', 'https://robohash.org/aliaseaneque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (524, 'Bevvy', '<EMAIL>', 'https://robohash.org/etnequeexercitationem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (525, 'Ariel', '<EMAIL>', 'https://robohash.org/automniserror.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (526, 'Dunc', '<EMAIL>', 'https://robohash.org/accusamusconsequaturminima.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (527, 'Torrie', '<EMAIL>', 'https://robohash.org/quodtemporeest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (528, 'Thorsten', '<EMAIL>', 'https://robohash.org/quaeratpraesentiummollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (529, 'Kerby', '<EMAIL>', 'https://robohash.org/expeditarecusandaevoluptate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (530, 'Jedidiah', '<EMAIL>', 'https://robohash.org/autcupiditatevero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (531, 'Emlynn', '<EMAIL>', 'https://robohash.org/molestiaeearumaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (532, 'Pammy', '<EMAIL>', 'https://robohash.org/enimnemovero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (533, 'Rudd', '<EMAIL>', 'https://robohash.org/etconsecteturut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (534, 'Boonie', '<EMAIL>', 'https://robohash.org/eaillumpraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (535, 'Janel', '<EMAIL>', 'https://robohash.org/eadoloresunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (536, 'Estella', '<EMAIL>', 'https://robohash.org/sitminimaquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (537, 'Parker', '<EMAIL>', 'https://robohash.org/rerumsedunde.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (538, 'Annelise', '<EMAIL>', 'https://robohash.org/utconsequaturvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (539, 'Zorine', '<EMAIL>', 'https://robohash.org/providentnondebitis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (540, 'Ozzie', '<EMAIL>', 'https://robohash.org/repellateummolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (541, 'Bancroft', '<EMAIL>', 'https://robohash.org/inutporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (542, 'Jerry', '<EMAIL>', 'https://robohash.org/minusautdolorum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (543, 'Lemmie', '<EMAIL>', 'https://robohash.org/corporisetincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (544, 'Irvin', '<EMAIL>', 'https://robohash.org/veniamutmolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (545, 'Olympie', '<EMAIL>', 'https://robohash.org/autcommodiminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (546, 'Delmer', '<EMAIL>', 'https://robohash.org/cupiditateplaceatomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (547, 'Jaye', '<EMAIL>', 'https://robohash.org/dignissimosmodiperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (548, 'Doretta', '<EMAIL>', 'https://robohash.org/nihilmolestiaenam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (549, 'Claudell', '<EMAIL>', 'https://robohash.org/sintomnisrepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (550, 'Tamar', '<EMAIL>', 'https://robohash.org/autdoloreut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (551, 'Selma', '<EMAIL>', 'https://robohash.org/rationeidaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (552, 'Odell', '<EMAIL>', 'https://robohash.org/ipsumiustocorrupti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (553, 'Abbi', '<EMAIL>', 'https://robohash.org/suntaliasullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (554, 'Jameson', '<EMAIL>', 'https://robohash.org/dolorabcorrupti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (555, 'Idaline', '<EMAIL>', 'https://robohash.org/etvoluptatemdicta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (556, 'Burk', '<EMAIL>', 'https://robohash.org/praesentiumaccusantiumnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (557, 'Eldin', '<EMAIL>', 'https://robohash.org/faceredoloreaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (558, 'Rozanna', '<EMAIL>', 'https://robohash.org/estquasdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (559, 'Bronson', '<EMAIL>', 'https://robohash.org/veritatisetoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (560, 'Andi', '<EMAIL>', 'https://robohash.org/nihiletlabore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (561, 'Gena', '<EMAIL>', 'https://robohash.org/exametcumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (562, 'Doy', '<EMAIL>', 'https://robohash.org/voluptateseumquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (563, 'Lynea', '<EMAIL>', 'https://robohash.org/doloremquevoluptatemdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (564, 'Nahum', '<EMAIL>', 'https://robohash.org/accusantiumetincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (565, 'Locke', '<EMAIL>', 'https://robohash.org/quidemofficiadebitis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (566, 'Datha', '<EMAIL>', 'https://robohash.org/quamveritatissuscipit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (567, 'Consuelo', '<EMAIL>', 'https://robohash.org/nullaiurefacilis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (568, 'Aldo', '<EMAIL>', 'https://robohash.org/temporeducimusaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (569, 'Emmalee', '<EMAIL>', 'https://robohash.org/autautdeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (570, 'Pace', '<EMAIL>', 'https://robohash.org/nondelectusquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (571, 'Bill', '<EMAIL>', 'https://robohash.org/autquasiut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (572, 'Bevan', '<EMAIL>', 'https://robohash.org/deseruntinciduntaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (573, 'Ambrosio', '<EMAIL>', 'https://robohash.org/mollitiasaepeest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (574, 'Alfons', '<EMAIL>', 'https://robohash.org/autnihilfacere.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (575, 'Barron', '<EMAIL>', 'https://robohash.org/beataeassumendaaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (576, 'Shelba', '<EMAIL>', 'https://robohash.org/voluptateestsuscipit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (577, 'Cristobal', '<EMAIL>', 'https://robohash.org/velitetaliquid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (578, 'Bogey', '<EMAIL>', 'https://robohash.org/corrupticonsecteturdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (579, 'Ericha', '<EMAIL>', 'https://robohash.org/quoveliure.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (580, 'Janifer', '<EMAIL>', 'https://robohash.org/quibusdamnemodeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (581, 'Jere', '<EMAIL>', 'https://robohash.org/undelaborummaxime.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (582, 'Falito', '<EMAIL>', 'https://robohash.org/evenietrepellatsoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (583, 'Brendin', '<EMAIL>', 'https://robohash.org/quasincidunttempora.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (584, 'Amara', '<EMAIL>', 'https://robohash.org/eaqueearumnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (585, 'Reeba', '<EMAIL>', 'https://robohash.org/laboreoptiocupiditate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (586, 'Sella', '<EMAIL>', 'https://robohash.org/voluptatemnondoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (587, 'Haleigh', '<EMAIL>', 'https://robohash.org/utsintdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (588, 'Zarah', '<EMAIL>', 'https://robohash.org/autrepudiandaenihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (589, 'Halette', '<EMAIL>', 'https://robohash.org/quisolutaplaceat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (590, 'Dion', '<EMAIL>', 'https://robohash.org/fugaconsequunturquaerat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (591, 'Xever', '<EMAIL>', 'https://robohash.org/cumquesiteum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (592, 'Amy', '<EMAIL>', 'https://robohash.org/ipsamducimusconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (593, 'Mervin', '<EMAIL>', 'https://robohash.org/velquimaxime.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (594, 'Glynis', '<EMAIL>', 'https://robohash.org/eteosquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (595, 'Renate', '<EMAIL>', 'https://robohash.org/autnisieius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (596, 'Fifi', '<EMAIL>', 'https://robohash.org/quibusdametab.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (597, 'Moises', '<EMAIL>', 'https://robohash.org/perspiciatisautemquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (598, 'Ebba', '<EMAIL>', 'https://robohash.org/consecteturoptioquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (599, 'Janene', '<EMAIL>', 'https://robohash.org/sitipsumeius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (600, 'Bibby', '<EMAIL>', 'https://robohash.org/temporeautquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (601, 'Tadio', '<EMAIL>', 'https://robohash.org/estsuscipitmaiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (602, 'Robb', '<EMAIL>', 'https://robohash.org/maioresdoloribusid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (603, 'Celestina', '<EMAIL>', 'https://robohash.org/numquamutullam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (604, 'Lindon', '<EMAIL>', 'https://robohash.org/etdebitisat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (605, 'Lorrie', '<EMAIL>', 'https://robohash.org/nemoexlaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (606, 'Julie', '<EMAIL>', 'https://robohash.org/temporibusexmaxime.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (607, 'Lindy', '<EMAIL>', 'https://robohash.org/nequedelenitibeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (608, 'Issie', '<EMAIL>', 'https://robohash.org/commodiinearum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (609, 'Aubine', '<EMAIL>', 'https://robohash.org/blanditiismaximenihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (610, 'Adria', '<EMAIL>', 'https://robohash.org/liberoasperioresexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (611, 'Ailey', '<EMAIL>', 'https://robohash.org/velitnullapariatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (612, 'Elisa', '<EMAIL>', 'https://robohash.org/utinventorevelit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (613, 'Faith', '<EMAIL>', 'https://robohash.org/officiisetaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (614, 'Archie', '<EMAIL>', 'https://robohash.org/odioanimiomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (615, 'Mar', '<EMAIL>.edu', 'https://robohash.org/omniscupiditatenatus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (616, 'Melodee', '<EMAIL>', 'https://robohash.org/possimusofficiaea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (617, 'Valenka', '<EMAIL>', 'https://robohash.org/etnequenon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (618, 'Alessandro', '<EMAIL>', 'https://robohash.org/nullavoluptatemquas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (619, 'Tobe', '<EMAIL>', 'https://robohash.org/veritatisaperiamest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (620, 'Fons', '<EMAIL>', 'https://robohash.org/itaquevelitin.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (621, 'Erica', '<EMAIL>', 'https://robohash.org/nammolestiaecorrupti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (622, 'Toiboid', '<EMAIL>', 'https://robohash.org/oditquasaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (623, 'Yoshi', '<EMAIL>', 'https://robohash.org/mollitiaquibusdamnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (624, 'Byron', '<EMAIL>', 'https://robohash.org/facerevoluptatemveritatis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (625, 'Sly', '<EMAIL>', 'https://robohash.org/etminusqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (626, 'Leese', '<EMAIL>', 'https://robohash.org/pariaturutaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (627, 'Karlie', '<EMAIL>', 'https://robohash.org/liberobeataea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (628, 'Britta', '<EMAIL>', 'https://robohash.org/temporaquioccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (629, 'Albertine', '<EMAIL>', 'https://robohash.org/eiusidquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (630, 'Jeth', '<EMAIL>', 'https://robohash.org/autiderror.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (631, 'Rhodia', '<EMAIL>', 'https://robohash.org/sintfaceredeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (632, 'Erasmus', '<EMAIL>', 'https://robohash.org/accusamussintqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (633, 'Kora', '<EMAIL>', 'https://robohash.org/abetconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (634, 'Murray', '<EMAIL>', 'https://robohash.org/etiustoofficia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (635, 'Chere', '<EMAIL>', 'https://robohash.org/quaeratmaximedolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (636, 'Dunc', '<EMAIL>', 'https://robohash.org/quianostrumqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (637, 'Salaidh', '<EMAIL>', 'https://robohash.org/seddoloremporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (638, 'Ryann', '<EMAIL>', 'https://robohash.org/dolorconsequunturporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (639, 'Shoshanna', '<EMAIL>', 'https://robohash.org/quietcum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (640, 'Benjamen', '<EMAIL>', 'https://robohash.org/sapientesintsoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (641, 'Kristos', '<EMAIL>', 'https://robohash.org/voluptatemvitaeblanditiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (642, 'Melessa', '<EMAIL>', 'https://robohash.org/autvoluptatemsint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (643, 'Giordano', '<EMAIL>', 'https://robohash.org/autvoluptatumconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (644, 'Roley', 'rospellissey<EMAIL>', 'https://robohash.org/quiinaliquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (645, 'Leoline', '<EMAIL>', 'https://robohash.org/estofficiisquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (646, 'Ddene', '<EMAIL>', 'https://robohash.org/suscipitquaseligendi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (647, 'Andrei', '<EMAIL>', 'https://robohash.org/animiomnisofficiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (648, 'Damien', '<EMAIL>', 'https://robohash.org/ethictemporibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (649, 'Claiborn', '<EMAIL>', 'https://robohash.org/etnobissed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (650, 'Barbabas', '<EMAIL>', 'https://robohash.org/quicorruptieos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (651, 'Sherri', '<EMAIL>', 'https://robohash.org/quisquamutut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (652, 'Oswell', '<EMAIL>', 'https://robohash.org/optiovoluptasrerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (653, 'Muffin', '<EMAIL>', 'https://robohash.org/etsedfacilis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (654, 'Coretta', '<EMAIL>', 'https://robohash.org/fugiathicsint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (655, 'Llewellyn', '<EMAIL>', 'https://robohash.org/quisimiliquefuga.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (656, 'Nevins', '<EMAIL>', 'https://robohash.org/etaccusantiumoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (657, 'Laird', '<EMAIL>', 'https://robohash.org/autperspiciatiseos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (658, 'Pall', '<EMAIL>', 'https://robohash.org/dolorematquecommodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (659, 'Austine', '<EMAIL>', 'https://robohash.org/sedautreiciendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (660, 'Natalee', '<EMAIL>', 'https://robohash.org/evenietarchitectoaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (661, 'Orelee', '<EMAIL>', 'https://robohash.org/voluptasutbeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (662, 'Lanny', '<EMAIL>', 'https://robohash.org/utsintmolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (663, 'Sella', '<EMAIL>', 'https://robohash.org/inventorequiaquibusdam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (664, 'Dagny', '<EMAIL>', 'https://robohash.org/etestnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (665, 'Kahaleel', '<EMAIL>', 'https://robohash.org/autemeanesciunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (666, 'Maria', '<EMAIL>', 'https://robohash.org/quisliberorerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (667, 'Judas', '<EMAIL>', 'https://robohash.org/atquefacilisquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (668, 'Rebecca', '<EMAIL>', 'https://robohash.org/exercitationemvoluptasfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (669, 'Prentiss', '<EMAIL>', 'https://robohash.org/utaatque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (670, 'Jourdain', '<EMAIL>', 'https://robohash.org/doloremquequiarem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (671, 'Risa', '<EMAIL>', 'https://robohash.org/expeditaharumporro.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (672, 'Ewart', '<EMAIL>', 'https://robohash.org/oditvoluptatesint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (673, 'Brendin', '<EMAIL>', 'https://robohash.org/fugaconsequaturipsum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (674, 'Marsha', '<EMAIL>', 'https://robohash.org/dolorearumnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (675, 'York', '<EMAIL>', 'https://robohash.org/omnisvoluptatemfugit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (676, 'Talyah', '<EMAIL>', 'https://robohash.org/omniscorruptitenetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (677, 'Whitman', '<EMAIL>', 'https://robohash.org/voluptatesdoloruminventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (678, 'Stacee', '<EMAIL>', 'https://robohash.org/numquamrerumquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (679, 'Terza', '<EMAIL>', 'https://robohash.org/magnamnobisut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (680, 'Kaspar', '<EMAIL>', 'https://robohash.org/rerumrepellendusipsa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (681, 'Dru', '<EMAIL>', 'https://robohash.org/exutquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (682, 'Dulsea', '<EMAIL>', 'https://robohash.org/perferendisilloautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (683, 'Xenia', '<EMAIL>', 'https://robohash.org/sitnesciuntnobis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (684, 'Joline', '<EMAIL>', 'https://robohash.org/sedeaqueat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (685, 'Alvera', '<EMAIL>', 'https://robohash.org/placeatdoloresquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (686, 'Borg', '<EMAIL>', 'https://robohash.org/eossaepeconsequuntur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (687, 'Estelle', '<EMAIL>', 'https://robohash.org/repudiandaesaepequia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (688, 'Korey', '<EMAIL>', 'https://robohash.org/quisquamquamlaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (689, 'Benita', '<EMAIL>', 'https://robohash.org/utdebitisomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (690, 'Shem', '<EMAIL>', 'https://robohash.org/mollitiavoluptatesdeserunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (691, 'Ninnetta', '<EMAIL>', 'https://robohash.org/porroipsaquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (692, 'Jelene', '<EMAIL>', 'https://robohash.org/sitiurequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (693, 'Gorden', '<EMAIL>', 'https://robohash.org/aperiamveritatiseius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (694, 'Nero', '<EMAIL>', 'https://robohash.org/veroperferendisquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (695, 'Martie', '<EMAIL>', 'https://robohash.org/repellendussuntexcepturi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (696, 'Edlin', '<EMAIL>', 'https://robohash.org/quisetducimus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (697, 'Joline', '<EMAIL>', 'https://robohash.org/cumqueipsamcommodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (698, 'Powell', '<EMAIL>', 'https://robohash.org/hicporrorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (699, 'Tanitansy', '<EMAIL>', 'https://robohash.org/etmagnivoluptatem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (700, 'Bryce', '<EMAIL>', 'https://robohash.org/rerumautreprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (701, 'Nanine', '<EMAIL>', 'https://robohash.org/atetodio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (702, 'Boniface', '<EMAIL>', 'https://robohash.org/quiodiodolor.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (703, 'Almeria', '<EMAIL>', 'https://robohash.org/dignissimoseaquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (704, 'Glen', '<EMAIL>', 'https://robohash.org/perspiciatisesseperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (705, 'Boy', '<EMAIL>', 'https://robohash.org/quonullaaccusantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (706, 'Neel', '<EMAIL>', 'https://robohash.org/molestiasvelqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (707, 'Aldrich', '<EMAIL>', 'https://robohash.org/utsolutaest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (708, 'Rhianna', '<EMAIL>', 'https://robohash.org/laborevoluptatibussunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (709, 'Star', '<EMAIL>', 'https://robohash.org/ipsamquamest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (710, 'Cody', '<EMAIL>', 'https://robohash.org/harumfugitoccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (711, 'Merell', '<EMAIL>', 'https://robohash.org/voluptatumdolorvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (712, 'Meade', '<EMAIL>', 'https://robohash.org/rerumeosfacilis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (713, 'Bordy', '<EMAIL>', 'https://robohash.org/voluptatedignissimosharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (714, 'Viviyan', '<EMAIL>', 'https://robohash.org/quidemeosfacere.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (715, 'Sella', '<EMAIL>', 'https://robohash.org/quiarchitectodoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (716, 'Clem', '<EMAIL>', 'https://robohash.org/officiadoloreipsa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (717, 'Veriee', '<EMAIL>', 'https://robohash.org/nobisbeataeaspernatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (718, 'Kimberli', '<EMAIL>', 'https://robohash.org/excepturieteius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (719, 'Ilka', '<EMAIL>', 'https://robohash.org/establaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (720, 'Viola', '<EMAIL>', 'https://robohash.org/dolorvelitqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (721, 'Emma', '<EMAIL>', 'https://robohash.org/accusantiumetenim.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (722, 'Carolan', '<EMAIL>', 'https://robohash.org/nobistemporibusoccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (723, 'Olva', '<EMAIL>', 'https://robohash.org/sapientesolutaeius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (724, 'Maryellen', '<EMAIL>', 'https://robohash.org/excepturiomnisnulla.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (725, 'Jeremy', '<EMAIL>', 'https://robohash.org/veltemporibussequi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (726, 'Genovera', '<EMAIL>', 'https://robohash.org/porrosequiab.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (727, 'Gwennie', '<EMAIL>', 'https://robohash.org/estteneturquisquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (728, 'Roxy', '<EMAIL>', 'https://robohash.org/illumoditdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (729, 'Hendrika', '<EMAIL>', 'https://robohash.org/explicaboperspiciatissimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (730, 'Ilsa', '<EMAIL>', 'https://robohash.org/nesciuntcorporisrepellendus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (731, 'Leanna', '<EMAIL>', 'https://robohash.org/doloresidquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (732, 'Xena', '<EMAIL>', 'https://robohash.org/autdoloremipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (733, 'Rubie', '<EMAIL>', 'https://robohash.org/quiidnecessitatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (734, 'Carmelia', '<EMAIL>', 'https://robohash.org/nisietquod.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (735, 'Neddie', '<EMAIL>', 'https://robohash.org/quidemnecessitatibuseveniet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (736, 'Arlette', '<EMAIL>', 'https://robohash.org/facilisdoloresimpedit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (737, 'Hamid', '<EMAIL>', 'https://robohash.org/etharumincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (738, 'Andrei', '<EMAIL>', 'https://robohash.org/autducimusnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (739, 'Alicia', '<EMAIL>', 'https://robohash.org/impeditquovoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (740, 'Malcolm', '<EMAIL>', 'https://robohash.org/doloremtemporanumquam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (741, 'Frank', '<EMAIL>', 'https://robohash.org/easedalias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (742, 'Bethena', '<EMAIL>', 'https://robohash.org/quiasimiliquevoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (743, 'Tobe', '<EMAIL>', 'https://robohash.org/suscipitaliasut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (744, 'Elsa', '<EMAIL>', 'https://robohash.org/doloremqueametet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (745, 'Pammie', '<EMAIL>', 'https://robohash.org/iustoquidolor.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (746, 'Niccolo', '<EMAIL>', 'https://robohash.org/quoexplicabolaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (747, 'Vincents', '<EMAIL>', 'https://robohash.org/saepeipsaalias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (748, 'Elysee', '<EMAIL>', 'https://robohash.org/corporisetquia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (749, 'Toinette', '<EMAIL>', 'https://robohash.org/dolorquaeratquasi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (750, 'Susette', '<EMAIL>', 'https://robohash.org/pariaturasperioresbeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (751, 'Quincey', '<EMAIL>', 'https://robohash.org/isteullamid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (752, 'Ethel', '<EMAIL>', 'https://robohash.org/dolorlaboriosamsoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (753, 'Aylmer', '<EMAIL>', 'https://robohash.org/rationefacereesse.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (754, 'Clayton', '<EMAIL>', 'https://robohash.org/totammolestiaelaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (755, 'Marillin', '<EMAIL>', 'https://robohash.org/maioreseoset.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (756, 'Gradey', '<EMAIL>', 'https://robohash.org/sedvoluptasest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (757, 'Hana', '<EMAIL>', 'https://robohash.org/aliquamtemporenisi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (758, 'Eliot', '<EMAIL>', 'https://robohash.org/quisetnatus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (759, 'Caitlin', '<EMAIL>', 'https://robohash.org/idilload.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (760, 'Sara', 'spenr<EMAIL>', 'https://robohash.org/autestat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (761, 'Lee', '<EMAIL>', 'https://robohash.org/omnisquiaad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (762, 'Danyelle', '<EMAIL>', 'https://robohash.org/quasiintenetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (763, 'Rae', '<EMAIL>', 'https://robohash.org/veniamdelectussapiente.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (764, 'Sharla', '<EMAIL>', 'https://robohash.org/cupiditateanimidelectus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (765, 'Ulric', '<EMAIL>', 'https://robohash.org/rerummolestiaevero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (766, 'Kerrill', '<EMAIL>', 'https://robohash.org/rerumteneturvero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (767, 'Ash', '<EMAIL>', 'https://robohash.org/dolorumvoluptatemvoluptate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (768, 'Carolyne', '<EMAIL>', 'https://robohash.org/inventoreexpeditadignissimos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (769, 'Vite', '<EMAIL>', 'https://robohash.org/harumvoluptasaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (770, 'Bambie', '<EMAIL>', 'https://robohash.org/dictaconsecteturdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (771, 'Clio', '<EMAIL>', 'https://robohash.org/etautamet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (772, 'Vivien', '<EMAIL>', 'https://robohash.org/repellatcommodieius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (773, 'Eric', '<EMAIL>', 'https://robohash.org/aliassuntitaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (774, 'Antonietta', '<EMAIL>', 'https://robohash.org/doloribusnatusnisi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (775, 'Dorthy', '<EMAIL>', 'https://robohash.org/quamautema.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (776, 'Elna', '<EMAIL>', 'https://robohash.org/autdoloresipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (777, 'Chance', '<EMAIL>', 'https://robohash.org/estsintomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (778, 'Claudius', '<EMAIL>', 'https://robohash.org/autsequirerum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (779, 'Manya', '<EMAIL>', 'https://robohash.org/rerumquosimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (780, 'Kari', '<EMAIL>', 'https://robohash.org/facerevoluptatumcommodi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (781, 'Roobbie', '<EMAIL>', 'https://robohash.org/etcorporissoluta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (782, 'Clair', '<EMAIL>', 'https://robohash.org/voluptaseosiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (783, 'Shaun', '<EMAIL>', 'https://robohash.org/eaiuresit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (784, 'Alberta', '<EMAIL>', 'https://robohash.org/ullamsequimaiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (785, 'Trumann', '<EMAIL>', 'https://robohash.org/estintotam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (786, 'Colby', '<EMAIL>', 'https://robohash.org/liberopossimusautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (787, 'Toma', '<EMAIL>', 'https://robohash.org/velitaqueexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (788, 'Alleyn', '<EMAIL>', 'https://robohash.org/omnisquisquamlaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (789, 'Conrade', '<EMAIL>', 'https://robohash.org/rationesaepecum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (790, 'Thacher', '<EMAIL>', 'https://robohash.org/blanditiisnullaqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (791, 'Bradan', '<EMAIL>', 'https://robohash.org/nullanihiltotam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (792, 'Salaidh', '<EMAIL>', 'https://robohash.org/suntaliquamexplicabo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (793, 'Maiga', '<EMAIL>', 'https://robohash.org/remfacereomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (794, 'Darrelle', '<EMAIL>', 'https://robohash.org/sunteiusreprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (795, 'Bronnie', '<EMAIL>', 'https://robohash.org/doloresrerumfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (796, 'Bethina', '<EMAIL>', 'https://robohash.org/iurequopossimus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (797, 'Mariellen', '<EMAIL>', 'https://robohash.org/debitisetipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (798, 'Chicky', '<EMAIL>', 'https://robohash.org/minimaconsequaturofficiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (799, 'Charmaine', '<EMAIL>', 'https://robohash.org/voluptatemdebitisperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (800, 'Twyla', '<EMAIL>', 'https://robohash.org/temporesitbeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (801, 'Kingston', '<EMAIL>', 'https://robohash.org/inventoreaperferendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (802, 'Blakeley', '<EMAIL>', 'https://robohash.org/animilaudantiumid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (803, 'Ludwig', '<EMAIL>', 'https://robohash.org/distinctioperspiciatisdolorum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (804, 'Irene', '<EMAIL>', 'https://robohash.org/sedexab.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (805, 'Sandor', '<EMAIL>', 'https://robohash.org/molestiaeenimofficiis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (806, 'Wendall', '<EMAIL>', 'https://robohash.org/iustonihilmolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (807, 'Boris', '<EMAIL>', 'https://robohash.org/cumquequidemaliquid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (808, 'Leslie', '<EMAIL>', 'https://robohash.org/inventoreutillum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (809, 'Consolata', '<EMAIL>', 'https://robohash.org/laborumdoloresid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (810, 'Carol-jean', '<EMAIL>', 'https://robohash.org/nihilillumrepellendus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (811, 'Freeman', '<EMAIL>', 'https://robohash.org/ipsaautsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (812, 'Jerome', '<EMAIL>', 'https://robohash.org/autrerumcumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (813, 'Sorcha', '<EMAIL>', 'https://robohash.org/velitsuscipitfuga.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (814, 'Gerta', '<EMAIL>', 'https://robohash.org/similiquevoluptatesquae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (815, 'Bar', '<EMAIL>', 'https://robohash.org/cumqueconsequaturincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (816, 'Alena', '<EMAIL>', 'https://robohash.org/solutarerumodio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (817, 'Patten', '<EMAIL>', 'https://robohash.org/laborumautreiciendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (818, 'Christalle', '<EMAIL>', 'https://robohash.org/occaecativerolabore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (819, 'Tove', '<EMAIL>', 'https://robohash.org/dolorumpraesentiuminventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (820, 'Pia', '<EMAIL>', 'https://robohash.org/nonveritatisconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (821, 'Charita', '<EMAIL>', 'https://robohash.org/inventoreadillo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (822, 'Jedd', '<EMAIL>', 'https://robohash.org/voluptatibusquiqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (823, 'Cassandry', '<EMAIL>', 'https://robohash.org/ducimusporrodignissimos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (824, 'Tracy', '<EMAIL>', 'https://robohash.org/rationeautodio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (825, 'Bonnie', '<EMAIL>', 'https://robohash.org/officiisinautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (826, 'Cob', '<EMAIL>', 'https://robohash.org/etveniamalias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (827, 'Jae', '<EMAIL>', 'https://robohash.org/nonsimiliqueratione.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (828, 'Walt', '<EMAIL>', 'https://robohash.org/omnisducimusaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (829, 'Nikos', '<EMAIL>', 'https://robohash.org/nemodolorea.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (830, 'Katharyn', '<EMAIL>', 'https://robohash.org/sitdebitisvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (831, 'Avril', '<EMAIL>', 'https://robohash.org/placeatearumvelit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (832, 'Jonis', '<EMAIL>', 'https://robohash.org/doloresmolestiaeut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (833, 'Greggory', '<EMAIL>', 'https://robohash.org/harumatqueaccusantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (834, 'Merwin', '<EMAIL>', 'https://robohash.org/doloresasperioreseos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (835, 'Caril', '<EMAIL>', 'https://robohash.org/aliquidestsimilique.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (836, 'Alanson', '<EMAIL>', 'https://robohash.org/animiseddeleniti.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (837, 'Darryl', '<EMAIL>', 'https://robohash.org/nesciuntdoloremquis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (838, 'Kirby', '<EMAIL>', 'https://robohash.org/eossinthic.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (839, 'Shirlee', '<EMAIL>', 'https://robohash.org/quiillumsunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (840, 'Gwynne', '<EMAIL>', 'https://robohash.org/eligendieosdicta.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (841, 'Rollie', '<EMAIL>', 'https://robohash.org/quasdoloremnecessitatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (842, 'Eb', '<EMAIL>', 'https://robohash.org/commodiutaperiam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (843, 'Corenda', '<EMAIL>', 'https://robohash.org/ipsaeosinventore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (844, 'Rex', '<EMAIL>', 'https://robohash.org/sedutnisi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (845, 'Star', '<EMAIL>', 'https://robohash.org/aspernaturerrorbeatae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (846, 'Danyette', '<EMAIL>', 'https://robohash.org/sedinnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (847, 'Lammond', '<EMAIL>', 'https://robohash.org/consequaturrerumdelectus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (848, 'Sheryl', '<EMAIL>', 'https://robohash.org/voluptatequimollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (849, 'Doris', '<EMAIL>', 'https://robohash.org/estsitut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (850, 'Nikkie', '<EMAIL>', 'https://robohash.org/autemquamaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (851, 'Jaimie', '<EMAIL>', 'https://robohash.org/iustovoluptateslaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (852, 'Dot', '<EMAIL>', 'https://robohash.org/itaquevelitesse.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (853, 'Myra', '<EMAIL>', 'https://robohash.org/nemoundeomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (854, 'Ambros', '<EMAIL>', 'https://robohash.org/quisitdolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (855, 'Eryn', '<EMAIL>', 'https://robohash.org/utsintharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (856, 'Dilly', '<EMAIL>', 'https://robohash.org/laboredolornon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (857, 'Marillin', '<EMAIL>', 'https://robohash.org/exercitationemlaudantiumexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (858, 'Chrystel', '<EMAIL>', 'https://robohash.org/impeditipsumrecusandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (859, 'Talbot', '<EMAIL>', 'https://robohash.org/dignissimoseteos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (860, 'Fara', '<EMAIL>', 'https://robohash.org/repudiandaequiasapiente.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (861, 'Myrilla', '<EMAIL>', 'https://robohash.org/autquiadolorum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (862, 'Marne', '<EMAIL>', 'https://robohash.org/cumqueipsamrepellat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (863, 'Lane', '<EMAIL>', 'https://robohash.org/deseruntetut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (864, 'Mohandis', '<EMAIL>', 'https://robohash.org/delectusrepudiandaeautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (865, 'Angelika', '<EMAIL>', 'https://robohash.org/nostrumnonvoluptates.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (866, 'Vaclav', '<EMAIL>', 'https://robohash.org/deseruntnatusaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (867, 'Fairleigh', '<EMAIL>', 'https://robohash.org/totamlaboriosamquo.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (868, 'Aurlie', '<EMAIL>', 'https://robohash.org/eaesseut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (869, 'Joshia', 'jmicoo4<EMAIL>', 'https://robohash.org/quodutaspernatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (870, 'Jordan', '<EMAIL>', 'https://robohash.org/expeditaexplicabosunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (871, 'Kathryn', '<EMAIL>', 'https://robohash.org/errorutsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (872, 'Loren', '<EMAIL>', 'https://robohash.org/aliquamtotamaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (873, 'Charita', '<EMAIL>', 'https://robohash.org/ullamquidemet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (874, 'Vincents', '<EMAIL>', 'https://robohash.org/nequeinrepudiandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (875, 'Ellis', '<EMAIL>', 'https://robohash.org/eosasperioresdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (876, 'Alvy', '<EMAIL>', 'https://robohash.org/odiodoloribusquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (877, 'Orsola', '<EMAIL>', 'https://robohash.org/eteosplaceat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (878, 'Sheelah', '<EMAIL>', 'https://robohash.org/exercitationemestperspiciatis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (879, 'Syd', '<EMAIL>', 'https://robohash.org/expeditasuscipitomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (880, 'Carlynne', '<EMAIL>', 'https://robohash.org/voluptatumidconsequuntur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (881, 'Claus', '<EMAIL>', 'https://robohash.org/arerumnulla.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (882, 'Marie-jeanne', '<EMAIL>', 'https://robohash.org/fugadoloremsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (883, 'Nadeen', '<EMAIL>', 'https://robohash.org/harumdoloremaiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (884, 'Onfroi', '<EMAIL>', 'https://robohash.org/laborumundeeaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (885, 'Broddy', '<EMAIL>', 'https://robohash.org/beataeetad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (886, 'Edvard', '<EMAIL>', 'https://robohash.org/quiaaccusantiumtemporibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (887, 'Garald', '<EMAIL>', 'https://robohash.org/fugiatverovoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (888, 'Antin', '<EMAIL>', 'https://robohash.org/nihilconsequuntursaepe.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (889, 'Welbie', '<EMAIL>', 'https://robohash.org/nequequasiveniam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (890, 'Morna', '<EMAIL>', 'https://robohash.org/voluptasnumquamreiciendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (891, 'Theo', '<EMAIL>', 'https://robohash.org/dolordoloremquequam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (892, 'Electra', '<EMAIL>', 'https://robohash.org/consequunturnequeasperiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (893, 'Kellie', '<EMAIL>', 'https://robohash.org/totamcupiditateodit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (894, 'Agace', '<EMAIL>', 'https://robohash.org/iustocumqueunde.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (895, 'Carmela', '<EMAIL>', 'https://robohash.org/ullamlaborummollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (896, 'Renato', '<EMAIL>', 'https://robohash.org/sitadipisciquod.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (897, 'Adelle', '<EMAIL>', 'https://robohash.org/estetculpa.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (898, 'Nataniel', '<EMAIL>', 'https://robohash.org/quiaquoquidem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (899, 'Fonz', '<EMAIL>', 'https://robohash.org/cumquequaepraesentium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (900, 'Idaline', '<EMAIL>', 'https://robohash.org/quosestvitae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (901, 'Nico', '<EMAIL>', 'https://robohash.org/similiquedolorumut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (902, 'Audre', '<EMAIL>', 'https://robohash.org/magniidnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (903, 'Nikola', '<EMAIL>', 'https://robohash.org/veritatisconsequaturexpedita.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (904, 'Prudence', '<EMAIL>', 'https://robohash.org/molestiaequihic.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (905, 'Elke', '<EMAIL>', 'https://robohash.org/estoditofficia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (906, 'Amalle', '<EMAIL>', 'https://robohash.org/quidemdebitisimpedit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (907, 'Demetria', '<EMAIL>', 'https://robohash.org/consequunturquinobis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (908, 'Lothario', '<EMAIL>', 'https://robohash.org/repellendustotamsit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (909, 'Shanan', '<EMAIL>', 'https://robohash.org/fugiatsintmolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (910, 'Vilhelmina', '<EMAIL>', 'https://robohash.org/sapientequissit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (911, 'Fayina', '<EMAIL>', 'https://robohash.org/atexercitationema.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (912, 'Doralia', '<EMAIL>', 'https://robohash.org/cupiditateetdoloribus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (913, 'Ricky', '<EMAIL>', 'https://robohash.org/solutanihildeserunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (914, 'Georgianne', '<EMAIL>', 'https://robohash.org/facereabquos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (915, 'Nickolai', '<EMAIL>', 'https://robohash.org/teneturexplicabodolores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (916, 'Sioux', '<EMAIL>', 'https://robohash.org/sequiestnam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (917, 'Austina', '<EMAIL>', 'https://robohash.org/atundedistinctio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (918, 'Sheela', '<EMAIL>', 'https://robohash.org/nihiloditaut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (919, 'Moreen', '<EMAIL>', 'https://robohash.org/pariaturdeseruntest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (920, 'Lynette', '<EMAIL>', 'https://robohash.org/consequunturathic.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (921, 'Mario', '<EMAIL>', 'https://robohash.org/iustositeos.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (922, 'Shannon', '<EMAIL>', 'https://robohash.org/etesteaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (923, 'Worthy', '<EMAIL>', 'https://robohash.org/nonnihilipsam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (924, 'Andee', '<EMAIL>', 'https://robohash.org/voluptatemquisquamnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (925, 'Lainey', '<EMAIL>', 'https://robohash.org/evenietvelfugiat.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (926, 'Barbi', '<EMAIL>', 'https://robohash.org/voluptasfugaincidunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (927, 'Fiona', '<EMAIL>', 'https://robohash.org/optioenimqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (928, 'Iver', '<EMAIL>', 'https://robohash.org/doloreeaquenam.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (929, 'Ginny', '<EMAIL>', 'https://robohash.org/idquasivero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (930, 'Frederigo', '<EMAIL>', 'https://robohash.org/fugitmaioresvoluptas.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (931, 'Lezley', '<EMAIL>', 'https://robohash.org/eaquisquammollitia.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (932, 'Lacey', '<EMAIL>', 'https://robohash.org/doloribusatqueiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (933, 'Lacy', '<EMAIL>', 'https://robohash.org/nihilperspiciatisearum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (934, 'Elihu', '<EMAIL>', 'https://robohash.org/eumblanditiisdolorem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (935, 'Anjanette', '<EMAIL>', 'https://robohash.org/fugaametlabore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (936, 'Alane', '<EMAIL>', 'https://robohash.org/doloremestoptio.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (937, 'Jessie', '<EMAIL>', 'https://robohash.org/ididcorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (938, 'Noble', '<EMAIL>', 'https://robohash.org/consequunturofficiaerror.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (939, 'Ronnie', '<EMAIL>', 'https://robohash.org/atquefugitreprehenderit.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (940, 'Sheila-kathryn', '<EMAIL>', 'https://robohash.org/eadoloresvoluptate.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (941, 'Pier', '<EMAIL>', 'https://robohash.org/quicommodiasperiores.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (942, 'Ephrayim', '<EMAIL>', 'https://robohash.org/sedofficiislaborum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (943, 'Rosana', '<EMAIL>', 'https://robohash.org/quiearepudiandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (944, 'Darcy', '<EMAIL>', 'https://robohash.org/estautvero.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (945, 'Nikoletta', '<EMAIL>', 'https://robohash.org/velmolestiasnatus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (946, 'Goldi', '<EMAIL>', 'https://robohash.org/impeditvoluptatemexercitationem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (947, 'Bat', '<EMAIL>', 'https://robohash.org/aperiamsintsed.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (948, 'Jaimie', '<EMAIL>', 'https://robohash.org/exercitationemeumeius.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (949, 'Allard', '<EMAIL>', 'https://robohash.org/repellendusnonet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (950, 'Christopher', '<EMAIL>', 'https://robohash.org/autsitsunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (951, 'Kelsey', '<EMAIL>', 'https://robohash.org/exercitationemsedminus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (952, 'Lorettalorna', '<EMAIL>', 'https://robohash.org/evenietestnobis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (953, 'Marlyn', '<EMAIL>', 'https://robohash.org/sintquidoloremque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (954, 'Vinni', '<EMAIL>', 'https://robohash.org/quodsimiliqueconsequatur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (955, 'Blanca', '<EMAIL>', 'https://robohash.org/atqueasperioresvitae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (956, 'Howard', '<EMAIL>', 'https://robohash.org/nequetemporaid.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (957, 'Benito', '<EMAIL>', 'https://robohash.org/minimanihilcum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (958, 'Beatriz', '<EMAIL>', 'https://robohash.org/voluptatibusipsamvoluptates.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (959, 'Giff', '<EMAIL>', 'https://robohash.org/laborevoluptatibusiure.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (960, 'Peirce', '<EMAIL>', 'https://robohash.org/iddoloribusmolestiae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (961, 'Marc', '<EMAIL>', 'https://robohash.org/modiestrem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (962, 'Sib', '<EMAIL>', 'https://robohash.org/odiosintlaudantium.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (963, 'Earle', 'equeye<EMAIL>', 'https://robohash.org/aperiamoditoccaecati.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (964, 'Hadrian', '<EMAIL>', 'https://robohash.org/expeditamollitiaad.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (965, 'Steve', '<EMAIL>', 'https://robohash.org/esterrormolestias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (966, 'Horatio', '<EMAIL>', 'https://robohash.org/adipiscipariaturest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (967, 'Ambrosi', '<EMAIL>', 'https://robohash.org/fugiatautsint.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (968, 'Bobinette', '<EMAIL>', 'https://robohash.org/doloresquidemvoluptatibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (969, 'Frazer', '<EMAIL>', 'https://robohash.org/sedmagnamtemporibus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (970, 'Nance', '<EMAIL>', 'https://robohash.org/corruptisaepecorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (971, 'Merrel', '<EMAIL>', 'https://robohash.org/utnullased.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (972, 'Moises', '<EMAIL>', 'https://robohash.org/etoditest.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (973, 'Nels', '<EMAIL>', 'https://robohash.org/quaerattemporaet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (974, 'Bessy', '<EMAIL>', 'https://robohash.org/eumquasqui.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (975, 'Emelda', '<EMAIL>', 'https://robohash.org/distinctiopossimusdolor.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (976, 'Beverlee', '<EMAIL>', 'https://robohash.org/debitisexercitationemut.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (977, 'Clarissa', '<EMAIL>', 'https://robohash.org/eaqueconsequunturautem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (978, 'Fionna', '<EMAIL>', 'https://robohash.org/nihilmollitiasaepe.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (979, 'Miltie', '<EMAIL>', 'https://robohash.org/architectoquisreiciendis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (980, 'Tyne', '<EMAIL>', 'https://robohash.org/assumendaquinisi.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (981, 'Cleavland', '<EMAIL>', 'https://robohash.org/velitquiaccusamus.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (982, 'Allis', '<EMAIL>', 'https://robohash.org/ipsumdelectusdeserunt.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (983, 'Trip', '<EMAIL>', 'https://robohash.org/quaeratetcumque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (984, 'Janaya', '<EMAIL>', 'https://robohash.org/aspernaturblanditiiseaque.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (985, 'Dare', '<EMAIL>', 'https://robohash.org/etnamharum.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (986, 'Hank', '<EMAIL>', 'https://robohash.org/dignissimossimiliquedolor.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (987, 'Arlen', '<EMAIL>', 'https://robohash.org/remnoniusto.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (988, 'Almeta', '<EMAIL>', 'https://robohash.org/voluptatemdictafuga.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (989, 'Ban', '<EMAIL>', 'https://robohash.org/laboriosamutomnis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (990, 'Gerrard', '<EMAIL>', 'https://robohash.org/quaeetconsectetur.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (991, 'Benedicto', '<EMAIL>', 'https://robohash.org/doloresvitaeet.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (992, 'Oralia', '<EMAIL>', 'https://robohash.org/etipsumnihil.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (993, 'Wynn', '<EMAIL>', 'https://robohash.org/nonprovidenttempore.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (994, 'Corny', '<EMAIL>', 'https://robohash.org/doloremetnon.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (995, 'Harper', '<EMAIL>', 'https://robohash.org/quodfacereiste.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (996, 'Guthry', '<EMAIL>', 'https://robohash.org/mollitiacommodicorporis.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (997, 'Jesse', '<EMAIL>', 'https://robohash.org/veroitaqueexercitationem.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (998, 'Brok', '<EMAIL>', 'https://robohash.org/voluptatumporrorepudiandae.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (999, 'Man', '<EMAIL>', 'https://robohash.org/sedatquealias.png?size=200x200&set=set1');
insert into Employee (id, first_name, email, avatar) values (1000, 'Cosetta', '<EMAIL>', 'https://robohash.org/necessitatibuspraesentiumofficiis.png?size=200x200&set=set1');
|
<reponame>D4rksung/upc_tp3-bd
USE BDPetCenter
CREATE PROCEDURE dbo.usp_PlanificarHospedaje
@Anio INT
AS
BEGIN
SET NOCOUNT ON
DECLARE @FECHAS TABLE
(
Fecha DATE
)
DECLARE @FECHA_INI DATETIME,
@FECHA_FIN DATETIME
SET @FECHA_INI = LTRIM(STR(@Anio)) + '-01-01'
SET @FECHA_FIN = DATEADD(YEAR,1,@FECHA_INI)
WHILE @FECHA_INI < @FECHA_FIN
BEGIN
INSERT INTO @FECHAS VALUES (@FECHA_INI)
SET @FECHA_INI = DATEADD(DAY,1,@FECHA_INI)
END
INSERT INTO dbo.GHA_Lugar_Estado
(
CodigoLugar,
Estado_lugar,
Periodo,
FechaDia
)
SELECT
LU.CodigoLugar,
'DISPONIBLE',
@Anio,
FEC.Fecha
FROM dbo.GHA_Lugar LU (NOLOCK)
INNER JOIN @FECHAS FEC ON 1 = 1
SET NOCOUNT OFF
END |
/**********************************************************************************
* _author : <NAME>
* _mail : <EMAIL>
* _repo : https://git.tuxstash.de/gothseidank/labertasche
* _license : This project is under MIT License
**********************************************************************************
*
* This script generates sample data for the example implementation.
* Feed it into the automatically created database with either DBBeaver
* or the sqlite command line tool.
*
* Please note: Labertasche must have run once to create the database!
*
**********************************************************************************
*/
/* delete old data */
DELETE FROM t_comments;
DELETE FROM t_projects;
DELETE FROM t_email;
DELETE FROM t_comments;
DELETE FROM t_location;
/* Create example projects */
INSERT INTO t_projects (id_project, name)
VALUES
(1, 'default'),
(2, 'example.com'),
(3, 'tuxstash.de'),
(4, 'beispiel.de'),
(5, 'labertasche.tuxstash.de')
;
/* Create existing locations for each project */
INSERT INTO t_location (id_location, location, project_id)
VALUES
(1, '/blog/stramine/', 1),
(2, '/blog/readme/', 1),
(3, '/blog/article-1/', 2),
(4, '/blog/article-2/', 2),
(5, '/blog/article-3/', 3),
(6, '/blog/article-4/', 3),
(7, '/blog/article-5/', 4),
(8, '/blog/article-6/', 4),
(9, '/blog/article-7/', 5),
(10, '/blog/article-8/', 5)
;
/* Create some emails that are blocked and allowed */
INSERT INTO t_email (id_email, email, is_allowed, is_blocked, project_id)
VALUES
(1, "<EMAIL>", true, false, 1),
(2, "<EMAIL>", false, true, 1),
(3, "<EMAIL>", true, false, 2),
(4, "<EMAIL>", false, true, 2),
(5, "<EMAIL>", true, false, 3),
(6, "<EMAIL>", false, true, 3),
(7, "<EMAIL>", true, false, 4),
(8, "<EMAIL>", false, true, 4),
(9, "<EMAIL>", true, false, 5),
(10, "<EMAIL>", false, true, 5)
;
/* Create some comments */
INSERT INTO t_comments (comments_id, location_id, email, content, created_on, is_published, is_spam, spam_score, replied_to, confirmation, deletion, gravatar, project_id)
VALUES
(1, 1, '<EMAIL>', '1 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 1),
(2, 1, '<EMAIL>', '2 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 1, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 1),
(3, 2, '<EMAIL>', '3 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 1),
(4, 2, '<EMAIL>', '4 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 3, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 1),
(5, 3, '<EMAIL>', '5 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 2),
(6, 3, '<EMAIL>', '6 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 5, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 2),
(7, 4, '<EMAIL>', '7 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 2),
(8, 4, '<EMAIL>', '8 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 7, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 2),
(9, 5, '<EMAIL>', '9 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', false, true, 0.09, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 3),
(10, 5, '<EMAIL>', '10 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 9, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 3),
(11, 6, '<EMAIL>', '11 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.09, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 3),
(12, 6, '<EMAIL>', '12 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 11, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 3),
(13, 7, '<EMAIL>', '13 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 4),
(14, 7, '<EMAIL>', '14 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 13, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 4),
(15, 8, '<EMAIL>', '15 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 4),
(16, 8, '<EMAIL>', '16 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 16, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 4),
(17, 9, '<EMAIL>', '17 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 5),
(18, 9, '<EMAIL>', '18 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 18, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 5),
(19, 10, '<EMAIL>', '19 This is a test comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, NULL, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 5),
(20, 10, '<EMAIL>', '20 This is a reply to the previous comment and has no actual value. Please test all methods on this.', '2020-12-16 23:37:00.000000', true, false, 0.99, 19, NULL, NULL, 'd9eef4df0ae5bfc1a9a9b1e39a99c07f', 5)
;
|
<filename>db/sql/3329__create_table_vipunentk_f_Opettajat_taiteen_perusopetus_kelpoisuus_aine.sql
USE [VipunenTK]
GO
/****** Object: Table [dbo].[f_Opettajat_taiteen_perusopetus_kelpoisuus_aine] Script Date: 26.2.2020 21:02:51 ******/
DROP TABLE IF EXISTS [dbo].[f_Opettajat_taiteen_perusopetus_kelpoisuus_aine]
GO
/****** Object: Table [dbo].[f_Opettajat_taiteen_perusopetus_kelpoisuus_aine] Script Date: 26.2.2020 21:02:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[f_Opettajat_taiteen_perusopetus_kelpoisuus_aine](
[tilastointivuosi] [nvarchar](4) NULL,
[oppilaitoksen_kieli_id] [int] NULL,
[tyosuhteen_luonne_id] [int] NULL,
[tehtavatyyppi_id] [int] NULL,
[kelpoisuus_kunnossa_id] [int] NULL,
[tutkinto_puuttuu_id] [int] NULL,
[pedagogiset_opinnot_puuttuu_id] [int] NULL,
[paaasiallinen_taso_id] [int] NULL,
[paaasiallinen_ala_id] [int] NULL,
[paaasiallinen_aste_id] [int] NULL,
[sukupuoli_id] [int] NULL,
[oppilaitoksen_maakunta_id] [int] NULL,
[oppilaitoksen_kuntaryhmitys] [nvarchar](2) NULL,
[ika_id] [int] NULL,
[koko_osa_aikainen_id] [int] NULL,
[osa_aikaisuuden_syy_id] [int] NULL
) ON [PRIMARY]
GO
USE [ANTERO] |
-- CreateTable
CREATE TABLE "l_s_users" (
"id" BIGSERIAL NOT NULL,
"name" VARCHAR(30) NOT NULL,
"email" VARCHAR(50) NOT NULL,
"password" VARCHAR(16) NOT NULL,
"created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" TIMESTAMP(3) NOT NULL,
"room_id" INTEGER NOT NULL,
CONSTRAINT "l_s_users_pkey" PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "rooms" (
"id" SERIAL NOT NULL,
"room_num" INTEGER NOT NULL,
CONSTRAINT "rooms_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "l_s_users" ADD CONSTRAINT "l_s_users_room_id_fkey" FOREIGN KEY ("room_id") REFERENCES "rooms"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
<reponame>SteversJE/OSSILE
-- Return source membres list
Create or Replace function OSSILE/LIST_SOURCE_MEMBERS (
Library CHAR(10),
FILE char(10) ,
Member char(10) )
RETURNS TABLE (SRCNAME CHAR(10) ,
SRCTYPE CHAR(10),
srcDATCRT DATE ,
srcDATCHG DATE,
srcTEXT char(50)
)
specific list_src_mbr
language RPGLE
deterministic
no sql
external name 'OSSILE/LISTMEMBER'
parameter style DB2SQL
not fenced;
Create or Replace function OSSILE/LIST_SOURCE_MEMBERS (
Library CHAR(10),
FILE char(10) )
RETURNS TABLE (SRCNAME CHAR(10) ,
SRCTYPE CHAR(10),
srcDATCRT DATE ,
srcDATCHG DATE,
srcTEXT char(50)
)
specific list_src_mbr_all
language SQL
modifies SQL data
not fenced
set option commit=*none
begin
return select * from table(OSSILE/List_Source_members ( Library, File, '*ALL' )) AS x;
end;
Create or Replace function OSSILE/LIST_SOURCE_MEMBERS (
FILE char(10) )
RETURNS TABLE (SRCNAME CHAR(10) ,
SRCTYPE CHAR(10),
srcDATCRT DATE ,
srcDATCHG DATE,
srcTEXT char(50)
)
specific list_src_mbr_libl
language SQL
modifies SQL data
not fenced
set option commit=*none
begin
return select * from table(OSSILE/List_Source_members ( '*LIBL', File, '*ALL' )) AS x;
end;
|
<filename>src/test/resources/sql/drop_table/0dde8dbe.sql<gh_stars>10-100
-- file:inet.sql ln:7 expect:true
DROP TABLE INET_TBL
|
SELECT employee_id FROM employees WHERE job_id IS NULL order by employee_id;
|
<reponame>gypsydave5/marv<filename>test/migrations-dupe/002.test-3.sql
002.test-3.sql
|
<reponame>Jason0727/JShop-Admin
-- -----------------------------
-- 导出时间 `2017-10-27 20:09:37`
-- -----------------------------
-- -----------------------------
-- 表结构 `msx_crontab`
-- -----------------------------
DROP TABLE IF EXISTS `crontab`;
CREATE TABLE `crontab` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`type` varchar(10) NOT NULL COMMENT '类型',
`title` varchar(150) NOT NULL COMMENT '标题',
`content` text NOT NULL COMMENT '内容',
`schedule` varchar(100) NOT NULL COMMENT 'Cron 表达式',
`sleep` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '延迟秒数执行',
`maximums` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '最大执行次数 0为不限',
`executes` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '已经执行的次数',
`create_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
`update_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '更新时间',
`begin_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '开始时间',
`end_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '结束时间',
`execute_time` int(10) unsigned DEFAULT NULL COMMENT '最后执行时间',
`weigh` int(10) NOT NULL DEFAULT '0' COMMENT '权重',
`status` enum('completed','expired','disable','normal') NOT NULL DEFAULT 'normal' COMMENT '状态',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='定时任务表';
-- -----------------------------
-- 表结构 `msx_crontab_log`
-- -----------------------------
DROP TABLE IF EXISTS `crontab_log`;
CREATE TABLE `crontab_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(10) NOT NULL COMMENT '类型',
`cid` int(10) unsigned NOT NULL COMMENT '任务的ID',
`title` varchar(150) NOT NULL COMMENT '标题',
`remark` mediumtext COMMENT '备注',
`create_time` int(10) unsigned NOT NULL COMMENT '执行时间',
`status` tinyint(1) NOT NULL COMMENT '状态 0:失败 1:成功',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='定时任务日志表';
|
<reponame>ytyaru/Sqlite3.Syntax.Update.20190908140817<gh_stars>0
create table T(A text);
insert into T values('A');
insert into T values('B');
update T set A='C' where rowid=1;
select * from T;
|
-- Final Project (Timeline: 3/20/2012 - 3/20/2015)
-- Task 1: show volume growth, pull overall session and order volume, trended by quarter for the life of the business
use mavenfuzzyfactory;
select * from website_sessions;
select * from orders;
select
year(website_sessions.created_at) as yr,
quarter(website_sessions.created_at) qtr,
count(distinct website_sessions.website_session_id) as sessions,
count(distinct orders.order_id) as orders
from website_sessions
left join orders
on website_sessions.website_session_id = orders.website_session_id
where website_sessions.created_at between "2012-01-01" and "2014-12-31"
group by 1,2;
-- overall, sessions and orders are keep increasing since 2012 for each quarter.
-- Task 2: efficiency improvement, show quarterly figures of conv_rt, revenue per order, revenue per session
select
year(website_sessions.created_at) as yr,
quarter(website_sessions.created_at) qtr,
count(distinct orders.order_id)/count(distinct website_sessions.website_session_id) as session_to_order_conv_rt,
sum(price_usd)/count(distinct orders.order_id) as revenue_per_order,
sum(price_usd)/count(distinct website_sessions.website_session_id) as revenue_per_session
from website_sessions
left join orders
on website_sessions.website_session_id = orders.website_session_id
where website_sessions.created_at between "2012-01-01" and "2014-12-31"
group by 1,2;
-- conversion, revenue per order, revenue per session are all increasing from quarter to quarter.
-- Task 3: pull a quarterly view of orders from gsearch nonbrand, bsearch nonbrand, brand search overall, organic search, and direct type in
-- gsearch, bsearch, nonbrand - paid_nonbrand
-- gsearch, bserach, brand - paid_brand
-- source null, campaign null, http_referer null - direct_type_in
-- source null, campaign null, http_referer is not null - organic_search
-- socialbook - paid_social
select
utm_source,
utm_campaign,
http_referer
from website_sessions
where created_at between "2012-01-01" and "2014-12-31"
group by 1,2,3;
select
year(website_sessions.created_at) as yr,
quarter(website_sessions.created_at) as qtr,
count(distinct case when utm_source = "gsearch" and utm_campaign = "nonbrand" then orders.order_id else null end) as "gsearch_nonbrand",
count(distinct case when utm_source = "bsearch" and utm_campaign = "nonbrand" then orders.order_id else null end) as "bsearch_nonbrand",
count(distinct case when utm_campaign = "brand" then orders.order_id else null end) as "brand_search",
count(distinct case when utm_source is null and utm_campaign is null and http_referer is not null then orders.order_id else null end) as "organic_search",
count(distinct case when utm_source is null and utm_campaign is null and http_referer is null then orders.order_id else null end) as "direct_type_in"
from website_sessions
left join orders
on website_sessions.website_session_id = orders.website_session_id
where website_sessions.created_at between "2012-01-01" and "2014-12-31"
group by 1, 2;
-- overll increase from 2012 qtr 1 to 2014 qtr 4
-- Task 4: session to order conversion rate for those same channels by quarter, make a note of any period where we made major imrpovement
select
year(website_sessions.created_at) as yr,
quarter(website_sessions.created_at) as qtr,
count(distinct case when utm_source = "gsearch" and utm_campaign = "nonbrand" then orders.order_id else null end)
/count(distinct case when utm_source = "gsearch" and utm_campaign = "nonbrand" then website_sessions.website_session_id else null end) as "gsearch_nonbrand_conv_rt",
count(distinct case when utm_source = "bsearch" and utm_campaign = "nonbrand" then orders.order_id else null end)
/count(distinct case when utm_source = "bsearch" and utm_campaign = "nonbrand" then website_sessions.website_session_id else null end)as "bsearch_nonbrand_conv_rt",
count(distinct case when utm_campaign = "brand" then orders.order_id else null end)
/count(distinct case when utm_campaign = "brand" then website_sessions.website_session_id else null end) as "brand_search_conv_rt",
count(distinct case when utm_source is null and utm_campaign is null and http_referer is not null then orders.order_id else null end)
/count(distinct case when utm_source is null and utm_campaign is null and http_referer is not null then website_sessions.website_session_id else null end) as "organic_search_conv_rt",
count(distinct case when utm_source is null and utm_campaign is null and http_referer is null then orders.order_id else null end)
/count(distinct case when utm_source is null and utm_campaign is null and http_referer is null then website_sessions.website_session_id else null end)as "direct_type_in_conv_rt"
from website_sessions
left join orders
on website_sessions.website_session_id = orders.website_session_id
where website_sessions.created_at between "2012-01-01" and "2014-12-31"
group by 1, 2;
-- Task 5: since the days of selling a single product, please pull monthly trending for revenue and margin by product, along with total sales and revenue, note anything about seasonality.
select * from order_items;
select
distinct product_id
from order_items;
select
year(created_at) as yr,
month(created_at) as month,
sum(case when product_id = 1 then price_usd else null end) as prod1_rev, -- mrfuzzy
sum(case when product_id = 1 then price_usd - cogs_usd else null end) as prod1_margin,
sum(case when product_id = 2 then price_usd else null end) as prod2_rev, -- lovebear
sum(case when product_id = 2 then price_usd - cogs_usd else null end) as prod2_margin,
sum(case when product_id = 3 then price_usd else null end) as prod3_rev, -- birthdaybear
sum(case when product_id = 3 then price_usd - cogs_usd else null end) as prod3_margin,
sum(case when product_id = 4 then price_usd else null end) as prod4_rev, -- minibear
sum(case when product_id = 4 then price_usd - cogs_usd else null end) as prod4_margin,
count(distinct order_id) as total_sales,
sum(price_usd) as total_rev
from order_items
group by 1, 2
order by 1, 2;
-- product 2: launch from 2013 Jan, product 3: launch from 2013 Dec, product 4: launch from 2014 Feb
-- Task 6: pull monthly sessions to the /product page, and show % of the sessions clicking through another page has changed over time,
-- along with a view of how conversion from /product to placing an order has improved.
select
year(website_sessions.created_at) as yr,
month(website_sessions.created_at) as mo,
website_sessions.website_session_id,
website_pageviews.website_pageview_id as product_pg_id
from website_sessions
left join website_pageviews
on website_sessions.website_session_id = website_pageviews.website_session_id
where website_pageviews.pageview_url = "/products";
drop table if exists product_to_next_pg;
create temporary table product_to_next_pg
select
yr,mo,
products_pg.website_session_id,
products_pg.product_pg_id,
min(website_pageviews.website_pageview_id) as next_pg_id
from (select
year(website_sessions.created_at) as yr,
month(website_sessions.created_at) as mo,
website_sessions.website_session_id,
website_pageviews.website_pageview_id as product_pg_id
from website_sessions
left join website_pageviews
on website_sessions.website_session_id = website_pageviews.website_session_id
where website_pageviews.pageview_url = "/products")
as products_pg
left join website_pageviews
on products_pg.website_session_id = website_pageviews.website_session_id
and products_pg.product_pg_id < website_pageviews.website_pageview_id
group by 1, 2, 3, 4;
select
yr,mo,
count(distinct product_to_next_pg.next_pg_id)/count(distinct product_to_next_pg.product_pg_id) as products_clickthrough_rt,
count(distinct orders.order_id)/count(distinct product_to_next_pg.product_pg_id) as product_to_order_conv_rt
from product_to_next_pg
left join orders
on product_to_next_pg.website_session_id = orders.website_session_id
group by 1, 2;
-- Task 7: 4th product available as a primary product Dec 05 2014(it was previously only a cross-sell item). pull sales data, show how well each product
-- cross sells from one another?
select * from order_items;
drop table if exists primary_product;
create temporary table primary_product
select
order_id,
primary_product_id,
created_at as ordered_at
from orders
where created_at > "2014-12-05";
select * from primary_product;
select
primary_product.order_id,
primary_product.primary_product_id,
primary_product.ordered_at,
order_items.product_id as cross_sell_product_id
from primary_product
left join order_items
on primary_product.order_id = order_items.order_id
and order_items.is_primary_item = 0;
select
primary_product_id,
count(distinct order_id) as orders,
count(distinct case when cross_sell_product_id = 1 then order_id else null end) as _xsold_1,
count(distinct case when cross_sell_product_id = 2 then order_id else null end) as _xsold_2,
count(distinct case when cross_sell_product_id = 3 then order_id else null end) as _xsold_3,
count(distinct case when cross_sell_product_id = 4 then order_id else null end) as _xsold_4,
count(distinct case when cross_sell_product_id = 1 then order_id else null end)/count(distinct order_id) as p1_xsell_rt,
count(distinct case when cross_sell_product_id = 2 then order_id else null end)/count(distinct order_id) as p2_xsell_rt,
count(distinct case when cross_sell_product_id = 3 then order_id else null end)/count(distinct order_id) as p3_xsell_rt,
count(distinct case when cross_sell_product_id = 4 then order_id else null end)/count(distinct order_id) as p4_xsell_rt
from
(select
primary_product.order_id,
primary_product.primary_product_id,
primary_product.ordered_at,
order_items.product_id as cross_sell_product_id
from primary_product
left join order_items
on primary_product.order_id = order_items.order_id
and order_items.is_primary_item = 0)
as product_w_cross_sell
group by 1;
-- Task 8: Share some recommendations and opportunity going forward.
-- recommendation: 1. target month - hoilday season need to be targeted.
-- 2. product 4 is good cross-sell product with other products. Therefore, it may should create bundle sales between prod4 and other products to stimulate the sales.
-- 3. product variety - having positive response on sessions, orders, revenues and margin.
|
-- Copied from https://github.com/supabase/walrus/blob/5dd35b38cf80e3c99b0c91b7e0118b7993e45cf5/sql/setup.sql
/*
SETUP
*/
-- Set up Realtime
create schema if not exists realtime;
create publication supabase_realtime for all tables;
-- Extension namespacing
create schema extensions;
create extension if not exists "uuid-ossp" with schema extensions;
-- Developer role
create role authenticated nologin noinherit; -- "logged in" user: web_user, app_user, etc
grant usage on schema public to authenticated;
alter default privileges in schema public grant all on tables to authenticated;
alter default privileges in schema public grant all on functions to authenticated;
alter default privileges in schema public grant all on sequences to authenticated;
CREATE SCHEMA IF NOT EXISTS auth;
-- Gets the User ID from the request cookie
create or replace function auth.uid() returns uuid as $$
select
coalesce(
current_setting('request.jwt.claim.sub', true),
current_setting('request.jwt.claims', true)::jsonb ->> 'sub'
)::uuid;
$$ language sql stable;
-- Gets the User Role from the request cookie
create or replace function auth.role() returns text as $$
select
coalesce(
current_setting('request.jwt.claim.role', true),
current_setting('request.jwt.claims', true)::jsonb ->> 'role'
)::text;
$$ language sql stable;
-- Gets the User Email from the request cookie
create or replace function auth.email() returns text as $$
select
coalesce(
current_setting('request.jwt.claim.email', true),
current_setting('request.jwt.claims', true)::jsonb ->> 'email'
)::text;
$$ language sql stable;
ALTER ROLE postgres SET search_path = "$user", public, auth;
GRANT USAGE ON SCHEMA auth TO authenticated;
|
<reponame>silasjr/alura-nodejs
CREATE TABLE if not exists livros (
id BIGINT NOT NULL AUTO_INCREMENT ,
titulo varchar(100) NULL,
preco double NULL,
autor varchar(100) NULL,
PRIMARY KEY(id)
);
INSERT INTO livros
(titulo, preco, autor)
VALUES('NodeJS And Express', 29.9, 'Silas'),
('JavaEE 7', 69.9, 'Silas'),
('MongoDB', 49.9, 'Silas'),
('Nodejs and Angularjs', 19.9, 'Silas'),
('Angularjs JEDI', 19.9, 'Silas'),
('Vagrant and Puppet', 39.9, 'Silas'); |
/*
@author: <NAME>
@description: This library defines functions to expose extensions defined
in QICore as fluent functions in CQL, as well as common terminology and functions
used in writing CQL with FHIR and QICore profiles.
*/
library QICoreCommon
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1'
codesystem "LOINC": 'http://loinc.org'
codesystem "SNOMEDCT": 'http://snomed.info/sct'
codesystem "RoleCode": 'http://terminology.hl7.org/CodeSystem/v3-RoleCode'
codesystem "Diagnosis Role": 'http://terminology.hl7.org/CodeSystem/diagnosis-role'
codesystem "RequestIntent": 'http://terminology.hl7.org/CodeSystem/request-intent'
codesystem "MedicationRequestCategory": 'http://terminology.hl7.org/CodeSystem/medicationrequest-category'
codesystem "ConditionClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-clinical'
codesystem "ConditionVerificationStatusCodes": 'http://terminology.hl7.org/CodeSystem/condition-ver-status'
codesystem "AllergyIntoleranceClinicalStatusCodes": 'http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical'
codesystem "AllergyIntoleranceVerificationStatusCodes": 'http://terminology.hl7.org/CodeSystem/allergyintolerance-verification'
code "Birthdate": '21112-8' from "LOINC" display 'Birth date'
code "Dead": '419099009' from "SNOMEDCT" display 'Dead'
code "ER": 'ER' from "RoleCode" display 'Emergency room'
code "ICU": 'ICU' from "RoleCode" display 'Intensive care unit'
code "Billing": 'billing' from "Diagnosis Role" display 'Billing'
// Condition Clinical Status Codes - Consider value sets for these
code "active": 'active' from "ConditionClinicalStatusCodes"
code "recurrence": 'recurrence' from "ConditionClinicalStatusCodes"
code "relapse": 'relapse' from "ConditionClinicalStatusCodes"
code "inactive": 'inactive' from "ConditionClinicalStatusCodes"
code "remission": 'remission' from "ConditionClinicalStatusCodes"
code "resolved": 'resolved' from "ConditionClinicalStatusCodes"
// Condition Verification Status Codes - Consider value sets for these
code "unconfirmed": 'unconfirmed' from ConditionVerificationStatusCodes
code "provisional": 'provisional' from ConditionVerificationStatusCodes
code "differential": 'differential' from ConditionVerificationStatusCodes
code "confirmed": 'confirmed' from ConditionVerificationStatusCodes
code "refuted": 'refuted' from ConditionVerificationStatusCodes
code "entered-in-error": 'entered-in-error' from ConditionVerificationStatusCodes
code "allergy-active": 'active' from "AllergyIntoleranceClinicalStatusCodes"
code "allergy-inactive": 'inactive' from "AllergyIntoleranceClinicalStatusCodes"
code "allergy-resolved": 'resolved' from "AllergyIntoleranceClinicalStatusCodes"
// Allergy/Intolerance Verification Status Codes - Consider value sets for these
code "allergy-unconfirmed": 'unconfirmed' from AllergyIntoleranceVerificationStatusCodes
code "allergy-confirmed": 'confirmed' from AllergyIntoleranceVerificationStatusCodes
code "allergy-refuted": 'refuted' from AllergyIntoleranceVerificationStatusCodes
// MedicationRequest Category Codes
code "Community": 'community' from "MedicationRequestCategory" display 'Community'
code "Discharge": 'discharge' from "MedicationRequestCategory" display 'Discharge'
// Diagnosis Role Codes
code "AD": 'AD' from "Diagnosis Role" display 'Admission diagnosis'
code "DD": 'DD' from "Diagnosis Role" display 'Discharge diagnosis'
code "CC": 'CC' from "Diagnosis Role" display 'Chief complaint'
code "CM": 'CM' from "Diagnosis Role" display 'Comorbidity diagnosis'
code "pre-op": 'pre-op' from "Diagnosis Role" display 'pre-op diagnosis'
code "post-op": 'post-op' from "Diagnosis Role" display 'post-op diagnosis'
code "billing": 'billing' from "Diagnosis Role" display 'billing diagnosis'
context Patient
/* Candidates for FHIRCommon */
/*
@description: Returns true if the given MedicationRequest has a category of Community
*/
define fluent function isCommunity(medicationRequest MedicationRequest):
exists (medicationRequest.category C
where C ~ Community
)
/*
@description: Returns true if the given MedicationRequest has a category of Discharge
*/
define fluent function isDischarge(medicationRequest MedicationRequest):
exists (medicationRequest.category C
where C ~ Discharge
)
/*
@description: Normalizes a value that is a choice of timing-valued types to an equivalent interval
@comment: Normalizes a choice type of FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instance, FHIR.string, FHIR.Age, or FHIR.Range types
to an equivalent interval. This selection of choice types is a superset of the majority of choice types that are used as possible
representations for timing-valued elements in FHIR, allowing this function to be used across any resource. NOTE: Due to the
complexity of determining a single interval from a Timing or String type, this function will throw a run-time exception if it is used
with a Timing or String.
*/
define fluent function toInterval(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):
case
when choice is FHIR.dateTime then
Interval[FHIRHelpers.ToDateTime(choice as FHIR.dateTime), FHIRHelpers.ToDateTime(choice as FHIR.dateTime)]
when choice is FHIR.Period then
FHIRHelpers.ToInterval(choice as FHIR.Period)
when choice is FHIR.instant then
Interval[FHIRHelpers.ToDateTime(choice as FHIR.instant), FHIRHelpers.ToDateTime(choice as FHIR.instant)]
when choice is FHIR.Age then
Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age),
FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(choice as FHIR.Age) + 1 year)
when choice is FHIR.Range then
Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).low),
FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((choice as FHIR.Range).high) + 1 year)
when choice is FHIR.Timing then
Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute a single interval from a Timing type')
when choice is FHIR.string then
Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')
else
null as Interval<DateTime>
end
/*
@description: Returns an interval representing the normalized Abatement of a given Condition resource.
@comment: NOTE: Due to the complexity of determining an interval from a String, this function will throw
a run-time exception if used with a Condition instance that has a String as the abatement value.
*/
define fluent function abatementInterval(condition Condition):
if condition.abatement is FHIR.dateTime then
Interval[FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime), FHIRHelpers.ToDateTime(condition.abatement as FHIR.dateTime)]
else if condition.abatement is FHIR.Period then
FHIRHelpers.ToInterval(condition.abatement as FHIR.Period)
else if condition.abatement is FHIR.string then
Message(null as Interval<DateTime>, true, '1', 'Error', 'Cannot compute an interval from a String value')
else if condition.abatement is FHIR.Age then
Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age),
FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity(condition.abatement as FHIR.Age) + 1 year)
else if condition.abatement is FHIR.Range then
Interval[FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).low),
FHIRHelpers.ToDate(Patient.birthDate) + FHIRHelpers.ToQuantity((condition.abatement as FHIR.Range).high) + 1 year)
else if condition.abatement is FHIR.boolean then
Interval[end of condition.onset.toInterval(), condition.recordedDate)
else null
/*
@description: Returns an interval representing the normalized prevalence period of a given Condition resource.
@comment: Uses the ToInterval and ToAbatementInterval functions to determine the widest potential interval from
onset to abatement as specified in the given Condition.
*/
define fluent function prevalenceInterval(condition Condition):
if condition.clinicalStatus ~ "active"
or condition.clinicalStatus ~ "recurrence"
or condition.clinicalStatus ~ "relapse" then
Interval[start of condition.onset.toInterval(), end of condition.abatementInterval()]
else
Interval[start of condition.onset.toInterval(), end of condition.abatementInterval())
/*
@description: Given an interval, return true if the interval has a starting boundary specified (i.e. the start of the interval is not null and not the minimum DateTime value)
*/
define fluent function hasStart(period Interval<DateTime>):
period.low is not null
/*
@description: Given an interval, return true if the interval has an ending boundary specified (i.e. the end of the interval is not null and not the maximum DateTime value)
*/
define fluent function hasEnd(period Interval<DateTime>):
period.high is not null
/*
@description: Given an interval, return the ending point if the interval has an ending boundary specified, otherwise, return the starting point
*/
define fluent function latest(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):
(choice.toInterval()) period
return
if period.hasEnd() then
end of period
else
start of period
/*
@description: Given an interval, return the starting point if the interval has a starting boundary specified, otherwise, return the ending point
*/
define fluent function earliest(choice Choice<FHIR.dateTime, FHIR.Period, FHIR.Timing, FHIR.instant, FHIR.string, FHIR.Age, FHIR.Range>):
(choice.toInterval()) period
return
if period.hasStart() then
start of period
else
end of period
/* FHIR Extensions */
/*
@description: Returns any extensions defined on the given resource with the specified url.
@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access
content that is defined by extensions but not yet surfaced in the
CQL model info.
*/
define fluent function extensions(domainResource DomainResource, url String):
domainResource.extension E
where E.url = url
return E
/*
@description: Returns the single extension (if present) on the given resource with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define fluent function extension(domainResource DomainResource, url String):
singleton from domainResource.extensions(url)
/*
@description: Returns any extensions defined on the given element with the specified url.
@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access
content that is defined by extensions but not yet surfaced in the CQL model info.
*/
define fluent function extensions(element Element, url String):
element.extension E
where E.url = url
return E
/*
@description: Returns the single extension (if present) on the given element with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define fluent function extension(element Element, url String):
singleton from element.extensions(url)
/*
@description: Returns any modifier extensions defined on the given resource with the specified url.
@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access
content that is defined by extensions but not yet surfaced in the
CQL model info.
*/
define fluent function modifierExtensions(domainResource DomainResource, url String):
domainResource.modifierExtension E
where E.url = url
return E
/*
@description: Returns the single modifier extension (if present) on the given resource with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define fluent function modifierExtension(domainResource DomainResource, url String):
singleton from domainResource.modifierExtensions(url)
/*
@description: Returns any modifier extensions defined on the given element with the specified url.
@comment: NOTE: Extensions are not the preferred approach, but are used as a way to access
content that is defined by extensions but not yet surfaced in the CQL model info.
*/
define fluent function modifierExtensions(element BackboneElement, url String):
element.modifierExtension E
where E.url = url
return E
/*
@description: Returns the single modifier extension (if present) on the given element with the specified url.
@comment: This function uses singleton from to ensure that a run-time exception is thrown if there
is more than one extension on the given resource with the specified url.
*/
define fluent function modifierExtension(element BackboneElement, url String):
singleton from element.modifierExtensions(url)
/*
@description: Surfaces the [resolutionAge](http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge)
extension defined in FHIR.
@comment: This function returns the value of the extension as an Age.
@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge
*/
define fluent function resolutionAge(allergyIntolerance AllergyIntolerance):
allergyIntolerance.extension('http://hl7.org/fhir/StructureDefinition/allergyintolerance-resolutionAge').value as Age
/*
@description: Surfaces the [reasonRefuted](http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept.
@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted
*/
define fluent function reasonRefuted(allergyIntolerance AllergyIntolerance):
allergyIntolerance.extension('http://hl7.org/fhir/StructureDefinition/allergyintolerance-reasonRefuted').value as CodeableConcept
/*
@description: Surfaces the [duration](http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration)
extension defined in FHIR.
@comment: This function returns the value of the extension as a Duration.
@extension: http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration
*/
define fluent function duration(allergyIntolerance BackboneElement):
allergyIntolerance.extension('http://hl7.org/fhir/StructureDefinition/allergyintolerance-duration').value as Duration
/*
@description: Surfaces the [dueTo](http://hl7.org/fhir/StructureDefinition/condition-dueTo)
extension defined in FHIR.
@comment: This function returns the value of the extension as a choice of CodeableConcept or Reference.
@extension: http://hl7.org/fhir/StructureDefinition/condition-dueTo
*/
define fluent function dueTo(condition Condition):
condition.extension('http://hl7.org/fhir/StructureDefinition/condition-dueTo').value as Choice<CodeableConcept, Reference>
/*
@description: Surfaces the [occurredFollowing](http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing)
extension defined in FHIR.
@comment: This function returns the value of the extension as a choice of CodeableConcept or Reference
@extension: http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing
*/
define fluent function occurredFollowing(condition Condition):
condition.extension('http://hl7.org/fhir/StructureDefinition/condition-occurredFollowing').value as Choice<CodeableConcept, Reference>
/*
@description: Surfaces the [doNotPerform](http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform)
modifier extension defined in FHIR.
@comment: This function returns the value of the modifier extension as a boolean
@extension: http://hl7.org/fhir/StructureDefinition/request-doNotPerform
*/
define fluent function doNotPerform(requestResource DomainResource):
requestResource.modifierExtension('http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform').value as boolean
/*
@description: Surfaces the [statusReason](http://hl7.org/fhir/StructureDefinition/request-statusReason)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/StructureDefinition/request-statusReason
*/
define fluent function statusReason(requestResource DomainResource):
requestResource.extension('http://hl7.org/fhir/StructureDefinition/request-statusReason').value as CodeableConcept
/*
@description: Surfaces the [locationPerformed](http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed)
extension defined in FHIR.
@comment: This function returns the value of the extension as a Reference
@extension: http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed
*/
define fluent function locationPerformed(diagnosticReport DiagnosticReport):
diagnosticReport.extension('http://hl7.org/fhir/StructureDefinition/diagnosticReport-locationPerformed').value as Reference
/*
@description: Surfaces the [abatement](http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement)
extension defined in FHIR.
@comment: This function returns the value of the extension as a choice of date, Age, or boolean
@extension: http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement
*/
define fluent function abatement(familyMemberHistory FamilyMemberHistory):
familyMemberHistory.extension('http://hl7.org/fhir/StructureDefinition/familymemberhistory-abatement').value as Choice<date, Age, boolean>
/*
@description: Surfaces the [severity](http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity
*/
define fluent function severity(familyMemberHistory FamilyMemberHistory):
familyMemberHistory.extension('http://hl7.org/fhir/StructureDefinition/familymemberhistory-severity').value as CodeableConcept
/*
@description: Surfaces the [reasonRejected](http://hl7.org/fhir/StructureDefinition/goal-reasonRejected)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/StructureDefinition/goal-reasonRejected
*/
define fluent function reasonRejected(goal Goal):
goal.extension('http://hl7.org/fhir/StructureDefinition/goal-reasonRejected').value as CodeableConcept
/*
@description: Surfaces the [bodyPosition](http://hl7.org/fhir/StructureDefinition/observation-bodyPosition)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/StructureDefinition/observation-bodyPosition
*/
define fluent function bodyPosition(observation Observation):
observation.extension('http://hl7.org/fhir/StructureDefinition/observation-bodyPosition').value as CodeableConcept
/*
@description: Surfaces the [delta](http://hl7.org/fhir/StructureDefinition/observation-delta)
extension defined in FHIR.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/StructureDefinition/observation-delta
*/
define fluent function delta(observation Observation):
observation.extension('http://hl7.org/fhir/StructureDefinition/observation-delta').value as CodeableConcept
/*
@description: Surfaces the [preferred](http://hl7.org/fhir/StructureDefinition/iso21090-preferred) extension defined in USCore.
@comment: This function returns the value of the direct extension as a boolean
@extension: http://hl7.org/fhir/StructureDefinition/iso21090-preferred
*/
define fluent function preferred(contactPoint ContactPoint):
contactPoint.extension('http://hl7.org/fhir/StructureDefinition/iso21090-preferred').value as boolean
/*
@description: Surfaces the [approachBodyStructure](http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure)
extension defined in FHIR.
@comment: This function returns the value of the extension as a Reference
@extension: http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure
*/
define fluent function approachBodyStructure(procedure Procedure):
procedure.extension('http://hl7.org/fhir/StructureDefinition/procedure-approachBodyStructure').value as Reference
/*
@description: Surfaces the [incisionDateTime](http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime)
extension defined in FHIR.
@comment: This function returns the value of the extension as a dateTime
@extension: http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime
*/
define fluent function incisionDateTime(procedure Procedure):
procedure.extension('http://hl7.org/fhir/StructureDefinition/procedure-incisionDateTime').value as dateTime
/* USCore Extensions */
/*
@description: Surfaces the [ethnicity](http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity)
extension defined in USCore.
@comment: This function returns a tuple with elements for each subextension (ombCategory, detailed, and text).
@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity
*/
define fluent function ethnicity(patient Patient):
patient P
let ethnicityEx: P.extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-ethnicity')
return
{
ombCategory: ethnicityEx.extension('ombCategory').value as Coding,
detailed:
(ethnicityEx.extensions('detailed')) E
return E.value as Coding,
text: ethnicityEx.extension('text').value as string
}
/*
@description: Surfaces the [race](http://hl7.org/fhir/us/core/StructureDefinition/us-core-race) extension defined in USCore.
@comment: This function returns a tuple with elements for each subextension (ombCategory, detailed, and text).
@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-race
*/
define fluent function race(patient Patient):
patient P
let raceEx: P.extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-race')
return
{
ombCategory:
(raceEx.extensions('ombCategory')) E
return E.value as Coding,
detailed:
(raceEx.extensions('detailed')) E
return E.value as Coding,
text: raceEx.extension('text').value as string
}
/*
@description: Surfaces the [birthsex](http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex) extension defined in USCore.
@comment: This function returns the value of the birthsex extension as a code
@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex
*/
define fluent function birthsex(patient Patient):
patient.extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-birthsex').value as code
/*
@description: Surfaces the [direct](http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct) extension defined in USCore.
@comment: This function returns the value of the direct extension as a boolean
@extension: http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct
*/
define fluent function direct(contactPoint ContactPoint):
contactPoint.extension('http://hl7.org/fhir/us/core/StructureDefinition/us-core-direct').value as boolean
/* QICore Extensions */
/*
@description: Surfaces the [isElective](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective)
modifier extension defined in QICore.
@comment: This function returns the value of the isElective modifier extension as a boolean.
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective
*/
define fluent function isElective(serviceRequest ServiceRequest):
serviceRequest.modifierExtension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-isElective').value as boolean
/*
@description: Surfaces the [procedure](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure)
extension defined in QICore.
@comment: This function returns a tuple with elements for each subextension (type, rank, and procedure).
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure
*/
define fluent function procedure(encounter Encounter):
(encounter.extensions('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-procedure')) E
return {
type: E.extension('type').value as CodeableConcept,
rank: E.extension('rank').value as positiveInt,
procedure: E.extension('procedure').value as Reference
}
/*
@description: Surfaces the [doNotPerform](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason)
extension defined in QICore.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason
*/
define fluent function doNotPerformReason(requestResource DomainResource):
requestResource.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason').value as CodeableConcept
/*
@description: Surfaces the [recorded](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded)
extension defined in QICore.
@comment: This function returns the value of the extension as a dateTime
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded
*/
define fluent function recorded(domainResource DomainResource):
domainResource.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-recorded').value as dateTime
/*
@description: Surfaces the [notDone](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone)
modifier extension defined in QICore.
@comment: This function returns the value of the modifier extension as a boolean
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone
*/
define fluent function notDone(eventResource DomainResource):
eventResource.modifierExtension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDone').value as boolean
/*
@description: Surfaces the [notDoneReason](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason)
extension defined in QICore.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason
*/
define fluent function notDoneReason(eventResource DomainResource):
eventResource.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneReason').value as CodeableConcept
/*
@description: Surfaces the [notDoneValueSet](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet)
extension defined in QICore.
@comment: This function returns the value of the extension as a canonical
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet
*/
define fluent function notDoneValueSet(concept CodeableConcept):
concept.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet').value as canonical
/*
@description: Surfaces the [presentOnAdmission](http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission)
extension defined in QICore.
@comment: This function returns the value of the extension as a CodeableConcept
@extension: http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission
*/
define fluent function presentOnAdmission(element Element):
element.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-encounter-diagnosisPresentOnAdmission').value as CodeableConcept
|
alter table UTILITYLIBRARY_AUTHOR_BOOK_LINK rename to UTILITYLIBRARY_AUTHOR_BOOK_LINK__U74080 ;
|
# ************************************************************
# Sequel Pro SQL dump
# Version 5446
#
# https://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Database: wework
# Generation Time: 2021-08-12 08:30:51 +0000
# ************************************************************
/*!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 */;
SET NAMES utf8mb4;
/*!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 */;
# Dump of table account
# ------------------------------------------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`id` int(9) unsigned NOT NULL AUTO_INCREMENT,
`employee_id` int(11) NOT NULL,
`token` varchar(100) NOT NULL DEFAULT '',
`password` varchar(100) NOT NULL,
`authority` varchar(200) NOT NULL DEFAULT '',
`creation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `account_employee_id` (`employee_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table chat_data_contact_ship
# ------------------------------------------------------------
DROP TABLE IF EXISTS `chat_data_contact_ship`;
CREATE TABLE `chat_data_contact_ship` (
`history_id` int(11) DEFAULT NULL,
`msgid` varchar(100) NOT NULL DEFAULT '',
`user_id` varchar(50) DEFAULT NULL,
`action` varchar(10) DEFAULT NULL COMMENT '1: sender(发送者); 2: receiver(消息接收者)',
`user_type` tinyint(4) DEFAULT NULL COMMENT '1: 公司员工; 2: 客户',
`user_name` varchar(50) DEFAULT NULL,
`user_avatar` text,
`user_position` varchar(50) DEFAULT NULL,
`user_gender` tinyint(11) DEFAULT NULL COMMENT '性别 0-未知 1-男性 2-女性'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table chat_data_history
# ------------------------------------------------------------
DROP TABLE IF EXISTS `chat_data_history`;
CREATE TABLE `chat_data_history` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`seq` int(11) DEFAULT NULL,
`msgid` varchar(100) DEFAULT NULL,
`public_key_ver` int(11) DEFAULT NULL,
`encrypt_random_key` text,
`encrypt_chat_msg` longtext,
`creation_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `index_seq` (`seq`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='从企业微信拉取回的原始数据';
# Dump of table chat_data_parsed
# ------------------------------------------------------------
DROP TABLE IF EXISTS `chat_data_parsed`;
CREATE TABLE `chat_data_parsed` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`history_id` int(11) unsigned NOT NULL,
`msgid` varchar(100) DEFAULT NULL,
`action` varchar(100) DEFAULT '',
`msgtype` varchar(100) DEFAULT NULL,
`roomid` varchar(100) DEFAULT NULL,
`msgtime` datetime DEFAULT NULL,
`msg` text,
`media_url` text,
`extra_media` tinyint(4) NOT NULL DEFAULT '0',
`content` longtext,
`sender` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_cd_p_hid` (`history_id`),
KEY `index_c_d_p_roomid` (`roomid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='从原始内容(chat_data_ori)解析出来的数据';
# Dump of table chat_data_room
# ------------------------------------------------------------
DROP TABLE IF EXISTS `chat_data_room`;
CREATE TABLE `chat_data_room` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`history_id` int(11) DEFAULT NULL,
`from` varchar(64) DEFAULT '',
`to` varchar(64) DEFAULT '',
`roomid` varchar(64) DEFAULT NULL,
`room_name` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `index_c_d_h_id` (`history_id`),
KEY `index_c_d_r_roomid` (`roomid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table chat_data_room_user
# ------------------------------------------------------------
DROP TABLE IF EXISTS `chat_data_room_user`;
CREATE TABLE `chat_data_room_user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`history_id` int(11) DEFAULT NULL,
`room_user` varchar(64) DEFAULT '',
`room_id` varchar(64) DEFAULT NULL,
`room_name` varchar(100) DEFAULT NULL,
`remark` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `index_c_d_r_u_n` (`room_user`,`room_id`),
KEY `index_c_d_h_id` (`history_id`),
KEY `index_c_d_r_roomid` (`room_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table config
# ------------------------------------------------------------
DROP TABLE IF EXISTS `config`;
CREATE TABLE `config` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`module` varchar(100) NOT NULL DEFAULT '',
`code` varchar(100) NOT NULL DEFAULT '',
`value` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '0',
`creation_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`description` text,
PRIMARY KEY (`id`),
KEY `index_c_code` (`code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table contact_external
# ------------------------------------------------------------
DROP TABLE IF EXISTS `contact_external`;
CREATE TABLE `contact_external` (
`external_userid` varchar(50) NOT NULL DEFAULT '' COMMENT '外部联系人的userid',
`name` varchar(100) DEFAULT NULL,
`avatar` text,
`type` tinyint(4) DEFAULT NULL COMMENT '外部联系人的类型,1表示该外部联系人是微信用户,2表示该外部联系人是企业微信用户',
`gender` tinyint(4) DEFAULT NULL COMMENT '外部联系人性别 0-未知 1-男性 2-女性',
`position` varchar(50) DEFAULT NULL COMMENT '外部联系人的职位,如果外部企业或用户选择隐藏职位,则不返回,仅当联系人类型是企业微信用户时有此字段',
`corp_name` varchar(50) DEFAULT NULL COMMENT '外部联系人所在企业的简称,仅当联系人类型是企业微信用户时有此字段',
`corp_full_name` varchar(100) DEFAULT NULL COMMENT '外部联系人所在企业的主体名称,仅当联系人类型是企业微信用户时有此字段',
`context` longtext,
UNIQUE KEY `idx_contact_external_euid` (`external_userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table employee
# ------------------------------------------------------------
DROP TABLE IF EXISTS `employee`;
CREATE TABLE `employee` (
`id` int(9) unsigned NOT NULL AUTO_INCREMENT,
`userid` varchar(100) NOT NULL,
`name` varchar(100) NOT NULL,
`mobile` varchar(20) DEFAULT '',
`thumb_avatar` text,
`avatar` text,
`position` varchar(50) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`department` varchar(100) DEFAULT NULL,
`creation_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `cp_userid` (`userid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
# Dump of table u_contact
# ------------------------------------------------------------
DROP VIEW IF EXISTS `u_contact`;
CREATE TABLE `u_contact` (
`uid` VARCHAR(100) NOT NULL DEFAULT '',
`uname` VARCHAR(100) NULL DEFAULT NULL,
`uposition` VARCHAR(50) NULL DEFAULT NULL,
`thumb_avatar` TEXT NULL DEFAULT NULL,
`avatar` TEXT NULL DEFAULT NULL,
`utype` BIGINT(20) NOT NULL DEFAULT '0'
) ENGINE=MyISAM;
# Replace placeholder table for u_contact with correct view syntax
# ------------------------------------------------------------
DROP TABLE `u_contact`;
CREATE ALGORITHM=UNDEFINED DEFINER=`temp_account`@`%` SQL SECURITY INVOKER VIEW `u_contact`
AS SELECT
`employee`.`userid` AS `uid`,
`employee`.`name` AS `uname`,
`employee`.`position` AS `uposition`,
`employee`.`thumb_avatar` AS `thumb_avatar`,
`employee`.`avatar` AS `avatar`,1 AS `utype`
FROM `employee` union select `contact_external`.`external_userid` AS `uid`,`contact_external`.`name` AS `uname`,`contact_external`.`position` AS `uposition`,`contact_external`.`avatar` AS `thumb_avatar`,`contact_external`.`avatar` AS `avatar`,2 AS `utype` from `contact_external`;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_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 */;
|
<filename>openGaussBase/testcase/KEYWORDS/minute/Opengauss_Function_Keyword_Minute_Case0023.sql<gh_stars>0
-- @testpoint: opengauss关键字minute非保留),作为索引名,部分测试点合理报错
--前置条件,创建一个表
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop index if exists minute;
create index minute on explain_test(id);
drop index minute;
--关键字带双引号-成功
drop index if exists "minute";
create index "minute" on explain_test(id);
drop index "minute";
--关键字带单引号-合理报错
drop index if exists 'minute';
create index 'minute' on explain_test(id);
--关键字带反引号-合理报错
drop index if exists `minute`;
create index `minute` on explain_test(id);
--清理环境
drop table if exists explain_test;
|
<reponame>Raju-Challagundla/ITCS-8160-051-Group-18<gh_stars>0
-- USE CampusEats_Fall_2021;
DROP PROCEDURE IF EXISTS location_totalnumber_order;
-- Change statement delimiter from semicolon to double front slash
DELIMITER //
CREATE PROCEDURE location_totalnumber_order ( in l_id int, out sum_number_order int)
-- declare parameter within stored procedure
-- (
-- @l_id int ,
-- @sum_number_order int output
-- )
BEGIN
-- DECLARE sum_number_order INT; -- declare variable to be used during execution of stored procedure
SELECT COUNT(*)
INTO sum_number_order
-- the result will be placed in this variable sum_balance_due_var
FROM CampusEats_Fall_2021.orders
WHERE location_id = l_id;
-- Change statement delimiter from semicolon to double front slash
END //
DELIMITER ;
set @l_id=3;
CALL location_totalnumber_order(@l_id, @sum_number_order);
select @sum_number_order;
DROP PROCEDURE IF EXISTS max_restaurant_rating;
-- Change statement delimiter from semicolon to double front slash
DELIMITER //
CREATE PROCEDURE max_restaurant_rating ( in res_id int, out max_rest_rating float)
-- declare parameter within stored procedure
-- (
-- @l_id int ,
-- @max_rest_rating float output
-- )
BEGIN
-- DECLARE sum_number_order INT; -- declare variable to be used during execution of stored procedure
SELECT MAX(restaurant_rating)
INTO max_rest_rating
-- the result will be placed in this variable sum_balance_due_var
FROM CampusEats_Fall_2021.rating
WHERE restaurant_id = res_id;
-- Change statement delimiter from semicolon to double front slash
END //
DELIMITER ;
set @res_id=3;
CALL max_restaurant_rating(@res_id, @max_rest_rating);
select @max_rest_rating;
|
<gh_stars>0
#CREATE DATABSE
CREATE DATABASE TwitterMining;
use TwitterMining;
CREATE TABLE `termo` (
`id_termo` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ds_termo` MEDIUMTEXT DEFAULT NULL,
PRIMARY KEY (`id_termo`)
) ENGINE=InnoDB;
CREATE TABLE `pesquisa` (
`id_pesquisa` int(11) unsigned NOT NULL AUTO_INCREMENT,
`dt_pesquisa` datetime DEFAULT NULL,
`id_termo` int(11) unsigned DEFAULT NULL,
PRIMARY KEY (`id_pesquisa`),
CONSTRAINT `termo_pesquisa` FOREIGN KEY (`id_termo`) REFERENCES `termo` (`id_termo`)
) ENGINE=InnoDB;
CREATE TABLE `post` (
`id_post` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ds_post` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id_post`)
) ENGINE=InnoDB;
CREATE TABLE `pesquisa_post` (
`id_pesquisa_post` int(11) unsigned NOT NULL AUTO_INCREMENT,
`id_pesquisa` int(11) unsigned NOT NULL,
`id_post` int(11) unsigned NOT NULL,
PRIMARY KEY (`id_pesquisa_post`),
KEY `id_pesquisa` (`id_pesquisa`),
KEY `id_post` (`id_post`),
CONSTRAINT `pesquisa_fk` FOREIGN KEY (`id_pesquisa`) REFERENCES `pesquisa` (`id_pesquisa`),
CONSTRAINT `post_fk` FOREIGN KEY (`id_post`) REFERENCES `post` (`id_post`)
) ENGINE=InnoDB; |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 13, 2019 at 04:02 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.2.22
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: `remotetimer`
--
-- --------------------------------------------------------
--
-- Table structure for table `remotetimer_users`
--
CREATE TABLE `remotetimer_users` (
`id` int(11) NOT NULL,
`name` varchar(64) NOT NULL,
`password` varchar(64) NOT NULL,
`email` varchar(64) NOT NULL,
`token` varchar(64) NOT NULL,
`created_at` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `remotetimer_users`
--
INSERT INTO `remotetimer_users` (`id`, `name`, `password`, `email`, `token`, `created_at`) VALUES
(1, 'Teszt Elek', '<PASSWORD>', '<EMAIL>', '<PASSWORD>', '2019-11-12 13:19:58'),
(2, 'Mystique', '<PASSWORD>036dbd8313ed055', '<EMAIL>', '0dd19440af641744', '2019-11-13 14:47:15');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `remotetimer_users`
--
ALTER TABLE `remotetimer_users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `remotetimer_users`
--
ALTER TABLE `remotetimer_users`
MODIFY `id` int(11) 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 */;
|
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th4 22, 2019 lúc 08:41 AM
-- Phiên bản máy phục vụ: 10.1.37-MariaDB
-- Phiên bản PHP: 5.6.40
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Cơ sở dữ liệu: `page`
--
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `about`
--
CREATE TABLE `about` (
`id` int(10) UNSIGNED NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` 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;
--
-- Đang đổ dữ liệu cho bảng `about`
--
INSERT INTO `about` (`id`, `email`, `address`, `phone`, `created_at`, `updated_at`) VALUES
(1, '<EMAIL>', '92 Đại La - Hai Bà Trưng - Hà Nội', '0386138536', NULL, '2019-04-19 02:26:54');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `category`
--
CREATE TABLE `category` (
`id` int(10) UNSIGNED NOT NULL,
`parent_id` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`alias` 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;
--
-- Đang đổ dữ liệu cho bảng `category`
--
INSERT INTO `category` (`id`, `parent_id`, `name`, `slug`, `alias`, `created_at`, `updated_at`) VALUES
(3, 0, 'Áo len', 'ao-len', 'Ao len', '2019-03-05 20:01:17', '2019-03-05 20:01:17'),
(4, 1, 'Áo thể thao', 'ao-the-thao', 'Ao the thao', '2019-03-05 20:01:51', '2019-03-10 21:15:54'),
(5, 1, 'Quần jeans', 'quan-jeans', 'Quan jeans', '2019-03-05 20:02:19', '2019-03-10 21:17:04'),
(6, 0, 'Áo công sở', 'ao-cong-so', 'Ao cong so', '2019-03-05 20:02:43', '2019-03-05 20:02:43'),
(7, 0, 'Váy ngắn', 'vay-ngan', 'Vay ngan', '2019-03-05 20:02:57', '2019-03-05 20:02:57'),
(8, 1, 'Áo sơ mi', 'ao-so-mi', 'Ao so mi', '2019-03-05 20:03:14', '2019-03-10 21:16:29'),
(9, 1, 'Áo phông', 'ao-phong', 'Ao phong', '2019-03-05 20:03:31', '2019-03-10 21:16:38'),
(10, 0, 'Váy xòe', 'vay-xoe', 'Vay xoe', '2019-03-16 07:42:39', '2019-03-16 07:42:39');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `color`
--
CREATE TABLE `color` (
`id` int(10) UNSIGNED NOT NULL,
`value` 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;
--
-- Đang đổ dữ liệu cho bảng `color`
--
INSERT INTO `color` (`id`, `value`, `created_at`, `updated_at`) VALUES
(1, 'Green', NULL, NULL),
(2, 'Red', NULL, NULL),
(3, 'Violet', NULL, NULL),
(4, 'Yellow', NULL, NULL),
(5, 'Brown', NULL, NULL),
(6, 'Black', NULL, NULL),
(7, 'White', NULL, NULL),
(8, 'Blue ', NULL, NULL),
(9, 'Tawny ', NULL, NULL),
(10, 'Tawny ', NULL, NULL),
(11, 'Pink', NULL, NULL),
(12, 'Violet', NULL, NULL),
(13, 'Orange ', NULL, NULL),
(14, 'Beige ', NULL, NULL),
(15, 'Gray ', NULL, NULL),
(16, 'Beige ', NULL, NULL),
(17, 'Dark brown', NULL, NULL);
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `color_product`
--
CREATE TABLE `color_product` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`color_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `color_product`
--
INSERT INTO `color_product` (`id`, `product_id`, `color_id`, `created_at`, `updated_at`) VALUES
(33, 28, 1, '2019-03-10 20:46:53', '2019-03-10 20:46:53'),
(34, 28, 2, '2019-03-10 20:46:54', '2019-03-10 20:46:54'),
(35, 28, 6, '2019-03-10 20:46:54', '2019-03-10 20:46:54'),
(194, 47, 1, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(195, 47, 2, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(196, 47, 3, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(239, 18, 1, '2019-04-16 19:54:34', '2019-04-16 19:54:34'),
(240, 18, 3, '2019-04-16 19:54:34', '2019-04-16 19:54:34'),
(241, 18, 8, '2019-04-16 19:54:34', '2019-04-16 19:54:34'),
(242, 19, 2, '2019-04-16 19:54:43', '2019-04-16 19:54:43'),
(243, 20, 7, '2019-04-16 19:54:50', '2019-04-16 19:54:50'),
(244, 20, 8, '2019-04-16 19:54:50', '2019-04-16 19:54:50'),
(245, 23, 6, '2019-04-16 19:54:58', '2019-04-16 19:54:58'),
(246, 26, 3, '2019-04-16 19:55:05', '2019-04-16 19:55:05'),
(247, 31, 7, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(248, 31, 15, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(249, 31, 17, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(250, 35, 6, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(251, 35, 8, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(252, 35, 15, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(253, 36, 6, '2019-04-16 19:55:31', '2019-04-16 19:55:31'),
(254, 36, 7, '2019-04-16 19:55:31', '2019-04-16 19:55:31'),
(255, 41, 13, '2019-04-16 19:55:38', '2019-04-16 19:55:38'),
(256, 43, 7, '2019-04-16 19:55:46', '2019-04-16 19:55:46'),
(257, 44, 1, '2019-04-16 19:55:55', '2019-04-16 19:55:55'),
(258, 44, 8, '2019-04-16 19:55:55', '2019-04-16 19:55:55'),
(259, 46, 7, '2019-04-16 19:58:14', '2019-04-16 19:58:14'),
(260, 49, 1, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(261, 49, 4, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(262, 49, 6, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(263, 45, 8, '2019-04-16 19:58:34', '2019-04-16 19:58:34'),
(264, 45, 15, '2019-04-16 19:58:34', '2019-04-16 19:58:34'),
(265, 50, 7, '2019-04-21 18:55:25', '2019-04-21 18:55:25'),
(266, 50, 9, '2019-04-21 18:55:25', '2019-04-21 18:55:25');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `comment_product`
--
CREATE TABLE `comment_product` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`star` int(11) NOT NULL,
`content` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`com_product` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `comment_product`
--
INSERT INTO `comment_product` (`id`, `name`, `star`, `content`, `com_product`, `created_at`, `updated_at`) VALUES
(10, 'cccc', 1, 'như cc', 23, '2019-03-11 02:59:29', '2019-03-11 02:59:29'),
(17, '<NAME>', 2, 'dsadsad', 45, '2019-03-29 03:27:03', '2019-03-29 03:27:03'),
(18, 'babe', 5, 'xinh vãi', 50, '2019-04-21 19:01:16', '2019-04-21 19:01:16');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `customer`
--
CREATE TABLE `customer` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`birthday` date NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `customer`
--
INSERT INTO `customer` (`id`, `name`, `email`, `password`, `phone`, `address`, `birthday`, `created_at`, `updated_at`, `remember_token`) VALUES
(4, '<NAME>', '<EMAIL>', <PASSWORD>', '0981898596', 'Hà Nội', '1997-12-23', '2019-03-05 23:33:50', '2019-03-05 23:35:04', NULL),
(14, '<NAME>', '<EMAIL>', <PASSWORD>', '0123456789', 'Hà Nội', '2019-03-01', '2019-03-07 20:11:08', '2019-03-07 20:11:08', NULL),
(20, '<NAME>', '<EMAIL>', <PASSWORD>', '0123456789', 'Hà Nội', '2019-02-28', '2019-03-30 07:27:23', '2019-03-30 07:27:23', NULL),
(22, 'ductiep', '<EMAIL>', <PASSWORD>$cs<PASSWORD>pkavcgycKvKn4u5UukAmjD.UK<PASSWORD>EbtxYvVenK', '12345688963', 'sadadsadsa', '2015-02-14', '2019-03-31 02:37:49', '2019-03-31 02:37:49', NULL),
(24, '<NAME>', '<EMAIL>', '$2y$10$ggTuhqTiNz6TOLZOkiwsgeI5vFrPxO19ifx2y4DyGRfwtbHC2aP.S', '386138536', 'Yeen Basi', '2019-04-07', '2019-04-08 18:41:27', '2019-04-17 02:02:26', NULL),
(25, 'xuantung', '<EMAIL>', <PASSWORD>', '386138536', 'ầng 2 Tòa nhà N09B2, Khu Đô thị mới Dịch Vọng, phường Dịch Vọng, quận Cầu Giấy, Hà Nội', '2019-04-05', '2019-04-09 09:45:43', '2019-04-09 09:45:43', NULL);
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `feedback`
--
CREATE TABLE `feedback` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`cate_feedback` int(11) NOT NULL,
`content` 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;
--
-- Đang đổ dữ liệu cho bảng `feedback`
--
INSERT INTO `feedback` (`id`, `name`, `email`, `cate_feedback`, `content`, `created_at`, `updated_at`) VALUES
(4, 'babe', '<EMAIL>', 3, 'aaaaabbbbb aaaccccccc rt df gddefc', '2019-03-21 00:50:12', '2019-03-21 00:50:12'),
(5, 'Tùng', '<EMAIL>', 2, 'làm sao để có tiền', '2019-04-03 06:46:29', '2019-04-03 06:46:29');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `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_02_25_160010_create_table_category_table', 1),
(4, '2019_02_28_095440_create_customer_table', 1),
(5, '2019_03_01_040550_create_attribute_token_into_customer', 1),
(6, '2019_03_04_081021_create_test_table', 1),
(7, '2019_03_05_093932_create_product_table', 1),
(9, '2019_03_05_152214_create_size_table', 1),
(10, '2019_03_05_152311_create_image_table', 1),
(11, '2019_03_05_152707_create_product_color_table', 1),
(12, '2019_03_05_152739_create_product_size_table', 1),
(13, '2019_03_05_152836_create_product_image_table', 1),
(16, '2019_03_05_155234_create_about_table', 2),
(17, '2019_03_06_063752_create_color_table', 3),
(18, '2019_03_07_124849_create_attribute_file_into_product', 4),
(19, '2019_03_07_140435_create_color_product_table', 5),
(20, '2019_03_09_064034_create_attribute_price_defaul_into_product', 6),
(21, '2019_03_11_040242_create_attribute_parent_id_into_category', 7),
(22, '2019_03_11_083215_create_comment_product_table', 8),
(23, '2019_03_21_063139_create_table_feedback_table', 9),
(24, '2019_03_26_093611_create_order_table', 10),
(26, '2019_03_26_101853_create_order_detail_table', 11),
(27, '2019_04_06_151748_create_Posts_table', 12),
(28, '2019_04_08_105724_create_attribute_date_order_into_order', 13);
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `order`
--
CREATE TABLE `order` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`note` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment` int(11) NOT NULL,
`total` double NOT NULL,
`status` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`date_order` date DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `order`
--
INSERT INTO `order` (`id`, `name`, `email`, `address`, `phone`, `note`, `payment`, `total`, `status`, `created_at`, `updated_at`, `date_order`) VALUES
(120, '<NAME>', '<EMAIL>', 'Yên Bái', '12345688963', NULL, 1, 249000, 1, '2019-04-08 18:38:44', '2019-04-11 23:35:30', '2019-04-10'),
(121, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 249000, 1, '2019-04-08 18:41:56', '2019-04-08 18:42:51', '2019-04-08'),
(122, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 747000, 0, '2019-04-08 18:42:07', '2019-04-08 18:42:07', '2019-04-08'),
(123, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 2188800, 1, '2019-04-08 18:42:28', '2019-04-08 18:42:55', '2019-04-08'),
(124, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 2188800, 1, '2019-04-08 18:42:31', '2019-04-08 21:20:19', '2019-04-08'),
(125, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 360000, 0, '2019-04-08 20:49:51', '2019-04-08 20:49:51', '2019-04-10'),
(126, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 1494000, 0, '2019-04-08 20:50:13', '2019-04-08 20:50:13', '2019-04-10'),
(127, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 369600, 0, '2019-04-08 20:50:29', '2019-04-08 20:50:29', '2019-04-10'),
(128, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 525000, 1, '2019-04-08 20:50:42', '2019-04-08 20:51:49', '2019-04-10'),
(129, 'Tùng', '<EMAIL>', '<NAME>, Hà Nội', '386138536', NULL, 1, 1344000, 1, '2019-04-09 09:15:43', '2019-04-17 02:03:48', '2019-04-09'),
(130, 'sdsfsdfsdfsd', '<EMAIL>', 'fdfsdfsdfsd', '386138536', NULL, 1, 425000, 0, '2019-04-11 03:04:15', '2019-04-11 03:04:15', '2019-04-11'),
(131, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 2127000, 0, '2019-04-11 19:48:59', '2019-04-11 19:48:59', '2019-04-12'),
(132, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 1369000, 1, '2019-04-15 08:25:27', '2019-04-15 08:30:09', '2019-04-15'),
(133, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 249000, 1, '2019-04-16 19:01:30', '2019-04-16 19:02:06', '2019-04-17'),
(134, '<NAME>', 'xuantunzgdev<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 8206800, 1, '2019-04-16 19:17:47', '2019-04-16 19:18:28', '2019-04-17'),
(135, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 894600, 1, '2019-04-17 00:12:31', '2019-04-17 00:13:10', '2019-04-17'),
(136, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 308000, 1, '2019-04-18 00:32:59', '2019-04-18 00:34:44', '2019-04-18'),
(137, '<NAME>', '<EMAIL>', 'Yeen Basi', '386138536', NULL, 1, 249000, 1, '2019-04-18 01:35:30', '2019-04-18 01:37:13', '2019-04-18'),
(138, 'xaaaaaaaa', '<EMAIL>', 'ầng 2 Tòa nhà N09B2,', '386138536', 'aaaaa', 1, 6479991, 0, '2019-04-21 18:56:26', '2019-04-21 18:56:26', '2019-04-22');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `order_detail`
--
CREATE TABLE `order_detail` (
`id` int(10) UNSIGNED NOT NULL,
`order_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`pro_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pro_size` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pro_color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`pro_amount` int(11) NOT NULL,
`pro_price` double(8,2) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `order_detail`
--
INSERT INTO `order_detail` (`id`, `order_id`, `product_id`, `pro_name`, `pro_size`, `pro_color`, `pro_amount`, `pro_price`, `created_at`, `updated_at`) VALUES
(8, 30, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-26 20:53:09', '2019-03-26 20:53:09'),
(9, 31, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-26 20:53:39', '2019-03-26 20:53:39'),
(10, 31, 35, 'Bộ quần jeans nam chất lượng hàng đầu XuanTung XTL65HA', 'L', 'Black', 1, 600000.00, '2019-03-26 20:53:39', '2019-03-26 20:53:39'),
(11, 32, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-26 20:57:15', '2019-03-26 20:57:15'),
(12, 32, 35, 'Bộ quần jeans nam chất lượng hàng đầu XuanTung XTL65HA', 'L', 'Black', 1, 600000.00, '2019-03-26 20:57:15', '2019-03-26 20:57:15'),
(13, 33, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-26 23:23:32', '2019-03-26 23:23:32'),
(14, 33, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 1, 477000.00, '2019-03-26 23:23:32', '2019-03-26 23:23:32'),
(15, 34, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-27 00:29:15', '2019-03-27 00:29:15'),
(16, 34, 43, 'Váy xòe sành điệu', 'M', 'White', 2, 360000.00, '2019-03-27 00:29:15', '2019-03-27 00:29:15'),
(17, 35, 35, 'Bộ quần jeans nam chất lượng hàng đầu XuanTung XTL65HA', 'L', 'Black', 4, 600000.00, '2019-03-27 01:21:08', '2019-03-27 01:21:08'),
(18, 36, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-27 03:11:59', '2019-03-27 03:11:59'),
(19, 37, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-27 09:10:39', '2019-03-27 09:10:39'),
(20, 38, 41, 'Quần Áo thể Thao SANTO', 'X', 'Orange', 4, 532000.00, '2019-03-27 09:12:50', '2019-03-27 09:12:50'),
(21, 38, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-27 09:12:50', '2019-03-27 09:12:50'),
(22, 39, 41, 'Quần Áo thể Thao SANTO', 'X', 'Orange', 1, 532000.00, '2019-03-27 23:14:21', '2019-03-27 23:14:21'),
(23, 39, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 1, 477000.00, '2019-03-27 23:14:21', '2019-03-27 23:14:21'),
(24, 40, 36, 'Áo thể thao BAZAS chất như nước cất', 'X', 'White', 1, 425000.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(25, 40, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(26, 40, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(27, 40, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 1, 336000.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(28, 40, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'X', 'White', 1, 336000.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(29, 40, 19, 'Chân váy công sở HeraDG đỏ', 'M', 'Red', 1, 525000.00, '2019-03-28 19:15:19', '2019-03-28 19:15:19'),
(30, 41, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-28 20:40:40', '2019-03-28 20:40:40'),
(31, 41, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 1, 336000.00, '2019-03-28 20:40:40', '2019-03-28 20:40:40'),
(32, 42, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-03-28 20:40:51', '2019-03-28 20:40:51'),
(33, 43, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-28 20:41:05', '2019-03-28 20:41:05'),
(34, 44, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'X', 'White', 1, 336000.00, '2019-03-28 20:57:51', '2019-03-28 20:57:51'),
(35, 44, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-28 20:57:51', '2019-03-28 20:57:51'),
(36, 45, 19, 'Chân váy công sở HeraDG đỏ', 'M', 'Red', 1, 525000.00, '2019-03-28 20:58:12', '2019-03-28 20:58:12'),
(37, 46, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-28 21:11:25', '2019-03-28 21:11:25'),
(38, 47, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-28 21:11:46', '2019-03-28 21:11:46'),
(39, 47, 19, 'Chân váy công sở HeraDG đỏ', 'M', 'Red', 1, 525000.00, '2019-03-28 21:11:46', '2019-03-28 21:11:46'),
(40, 48, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-28 21:39:39', '2019-03-28 21:39:39'),
(41, 49, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 1, 336000.00, '2019-03-29 00:29:39', '2019-03-29 00:29:39'),
(42, 49, 49, 'SADsdsad', 'L', 'Yellow', 1, 308000.00, '2019-03-29 00:29:39', '2019-03-29 00:29:39'),
(43, 50, 35, 'Bộ quần jeans nam chất lượng hàng đầu XuanTung XTL65HA', 'L', 'Black', 1, 600000.00, '2019-03-29 00:32:55', '2019-03-29 00:32:55'),
(44, 50, 23, 'Chân váy công sở WJP17028 màu đen', 'M', 'Black', 1, 560000.00, '2019-03-29 00:32:55', '2019-03-29 00:32:55'),
(45, 51, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-29 00:33:13', '2019-03-29 00:33:13'),
(46, 51, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-29 00:33:13', '2019-03-29 00:33:13'),
(47, 52, 18, 'Đầm công sở xòe HeraDG xanh', 'L', 'Green', 4, 150000.00, '2019-03-29 02:45:56', '2019-03-29 02:45:56'),
(48, 53, 18, 'Đầm công sở xòe HeraDG xanh', 'L', 'Green', 5, 150000.00, '2019-03-29 02:46:59', '2019-03-29 02:46:59'),
(49, 54, 18, 'Đầm công sở xòe HeraDG xanh', 'L', 'Green', 1, 150000.00, '2019-03-29 02:47:50', '2019-03-29 02:47:50'),
(50, 54, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 3, 525000.00, '2019-03-29 02:47:50', '2019-03-29 02:47:50'),
(51, 55, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-29 03:14:20', '2019-03-29 03:14:20'),
(52, 55, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 1, 477000.00, '2019-03-29 03:14:21', '2019-03-29 03:14:21'),
(53, 56, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-29 03:20:07', '2019-03-29 03:20:07'),
(54, 57, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-30 02:24:37', '2019-03-30 02:24:37'),
(55, 57, 44, 'Áo phông nam Active', 'L', 'Blue', 3, 249000.00, '2019-03-30 02:24:37', '2019-03-30 02:24:37'),
(56, 58, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-30 07:36:51', '2019-03-30 07:36:51'),
(57, 59, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-30 07:38:16', '2019-03-30 07:38:16'),
(58, 60, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-30 07:38:24', '2019-03-30 07:38:24'),
(59, 61, 41, 'Quần Áo thể Thao SANTO', 'L', 'Orange', 1, 532000.00, '2019-03-30 07:38:39', '2019-03-30 07:38:39'),
(60, 62, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:39:39', '2019-03-30 07:39:39'),
(61, 63, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:39:40', '2019-03-30 07:39:40'),
(62, 64, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:39:40', '2019-03-30 07:39:40'),
(63, 65, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:39:49', '2019-03-30 07:39:49'),
(64, 66, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:42:13', '2019-03-30 07:42:13'),
(65, 67, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:42:57', '2019-03-30 07:42:57'),
(66, 68, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 07:51:31', '2019-03-30 07:51:31'),
(67, 69, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-30 08:46:28', '2019-03-30 08:46:28'),
(68, 70, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 08:54:03', '2019-03-30 08:54:03'),
(69, 70, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-30 08:54:03', '2019-03-30 08:54:03'),
(70, 71, 41, '<NAME>', 'L', 'Orange', 1, 532000.00, '2019-03-30 08:54:32', '2019-03-30 08:54:32'),
(71, 72, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-03-30 08:55:21', '2019-03-30 08:55:21'),
(72, 73, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 08:55:40', '2019-03-30 08:55:40'),
(73, 73, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-30 22:17:39', '2019-03-30 22:17:39'),
(74, 74, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-03-30 22:18:13', '2019-03-30 22:18:13'),
(75, 75, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-30 22:26:54', '2019-03-30 22:26:54'),
(76, 76, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 1, 336000.00, '2019-03-31 01:05:36', '2019-03-31 01:05:36'),
(77, 77, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-31 01:31:48', '2019-03-31 01:31:48'),
(78, 78, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-31 02:00:15', '2019-03-31 02:00:15'),
(79, 79, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-31 02:00:52', '2019-03-31 02:00:52'),
(80, 80, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-31 02:01:33', '2019-03-31 02:01:33'),
(81, 81, 26, 'Áo sơ mi nam dài tay Xuân Tùng', 'M', 'Violet', 1, 480000.00, '2019-03-31 02:03:02', '2019-03-31 02:03:02'),
(82, 82, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:10:17', '2019-03-31 02:10:17'),
(83, 82, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-31 02:10:17', '2019-03-31 02:10:17'),
(84, 83, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-03-31 02:12:24', '2019-03-31 02:12:24'),
(85, 83, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 1, 477000.00, '2019-03-31 02:12:24', '2019-03-31 02:12:24'),
(86, 84, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-03-31 02:15:04', '2019-03-31 02:15:04'),
(87, 84, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 1, 477000.00, '2019-03-31 02:15:05', '2019-03-31 02:15:05'),
(88, 85, 45, 'Quần jeans sành điệu', 'L', 'Blue', 4, 369600.00, '2019-03-31 02:17:34', '2019-03-31 02:17:34'),
(89, 85, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-31 02:17:34', '2019-03-31 02:17:34'),
(90, 86, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-31 02:19:51', '2019-03-31 02:19:51'),
(91, 87, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-31 02:20:32', '2019-03-31 02:20:32'),
(92, 88, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:23:18', '2019-03-31 02:23:18'),
(93, 89, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:23:34', '2019-03-31 02:23:34'),
(94, 90, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:26:18', '2019-03-31 02:26:18'),
(95, 91, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-31 02:27:42', '2019-03-31 02:27:42'),
(96, 92, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:29:51', '2019-03-31 02:29:51'),
(97, 93, 45, 'Quần jeans sành điệu', 'L', 'Blue', 5, 369600.00, '2019-03-31 02:33:40', '2019-03-31 02:33:40'),
(98, 93, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-31 02:33:40', '2019-03-31 02:33:40'),
(99, 94, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 02:35:57', '2019-03-31 02:35:57'),
(100, 94, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-03-31 02:35:57', '2019-03-31 02:35:57'),
(101, 95, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 3, 336000.00, '2019-03-31 02:41:48', '2019-03-31 02:41:48'),
(102, 95, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 1, 525000.00, '2019-03-31 02:41:48', '2019-03-31 02:41:48'),
(103, 96, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-03-31 03:19:01', '2019-03-31 03:19:01'),
(104, 96, 44, 'Áo phông nam Active', 'L', 'Blue', 4, 249000.00, '2019-03-31 03:19:01', '2019-03-31 03:19:01'),
(105, 96, 20, 'Áo sơ mi nam Fit Mattana', 'L', 'White', 1, 450000.00, '2019-03-31 03:19:01', '2019-03-31 03:19:01'),
(106, 97, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-31 04:09:05', '2019-03-31 04:09:05'),
(107, 97, 41, 'Quần Áo thể Thao SANTO', 'X', 'Orange', 3, 532000.00, '2019-03-31 04:09:05', '2019-03-31 04:09:05'),
(110, 99, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-03-31 23:41:11', '2019-03-31 23:41:11'),
(111, 101, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-31 23:48:23', '2019-03-31 23:48:23'),
(112, 101, 23, 'Chân váy công sở WJP17028 màu đen', 'M', 'Black', 1, 560000.00, '2019-03-31 23:48:23', '2019-03-31 23:48:23'),
(113, 102, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-03-31 23:49:28', '2019-03-31 23:49:28'),
(114, 102, 45, 'Quần jeans sành điệu', 'L', 'Blue', 3, 369600.00, '2019-03-31 23:49:28', '2019-03-31 23:49:28'),
(115, 102, 36, 'Áo thể thao BAZAS chất như nước cất', 'X', 'Black', 1, 425000.00, '2019-03-31 23:49:28', '2019-03-31 23:49:28'),
(116, 103, 45, 'Quần jeans sành điệu', 'L', 'Blue', 3, 369600.00, '2019-04-03 03:26:01', '2019-04-03 03:26:01'),
(117, 103, 23, 'Chân váy công sở WJP17028 màu đen', 'M', 'Black', 1, 560000.00, '2019-04-03 03:26:01', '2019-04-03 03:26:01'),
(118, 104, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-05 07:15:53', '2019-04-05 07:15:53'),
(119, 104, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 4, 525000.00, '2019-04-05 07:15:53', '2019-04-05 07:15:53'),
(120, 105, 36, 'Áo thể thao BAZAS chất như nước cất', 'X', 'Black', 1, 425000.00, '2019-04-05 08:26:10', '2019-04-05 08:26:10'),
(121, 105, 47, 'Nguy<NAME>', 'L', 'Green', 1, 420000.00, '2019-04-06 08:51:24', '2019-04-06 08:51:24'),
(122, 105, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-04-06 08:51:24', '2019-04-06 08:51:24'),
(123, 106, 47, '<NAME>', 'L', 'Green', 4, 420000.00, '2019-04-07 03:05:27', '2019-04-07 03:05:27'),
(124, 106, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 3, 336000.00, '2019-04-07 03:05:27', '2019-04-07 03:05:27'),
(125, 107, 36, 'Áo thể thao BAZAS chất như nước cất', 'X', 'Black', 1, 425000.00, '2019-04-07 03:07:13', '2019-04-07 03:07:13'),
(126, 108, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-04-07 19:47:28', '2019-04-07 19:47:28'),
(127, 109, 47, '<NAME>', 'L', 'Green', 1, 420000.00, '2019-04-07 19:47:58', '2019-04-07 19:47:58'),
(128, 110, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-04-07 23:05:57', '2019-04-07 23:05:57'),
(133, 113, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-08 04:09:25', '2019-04-08 04:09:25'),
(134, 114, 44, 'Áo phông nam Active', 'L', 'Green', 3, 249000.00, '2019-04-08 04:10:01', '2019-04-08 04:10:01'),
(135, 114, 45, 'Quần jeans sành điệu', 'L', 'Blue', 3, 369600.00, '2019-04-08 04:10:01', '2019-04-08 04:10:01'),
(136, 115, 44, 'Áo phông nam Active', 'L', 'Green', 2, 249000.00, '2019-04-08 18:15:56', '2019-04-08 18:15:56'),
(137, 116, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-04-08 18:25:16', '2019-04-08 18:25:16'),
(138, 117, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-08 18:25:46', '2019-04-08 18:25:46'),
(139, 117, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-04-08 18:25:46', '2019-04-08 18:25:46'),
(140, 118, 49, 'SADsdsad', 'L', 'Green', 2, 308000.00, '2019-04-08 18:28:31', '2019-04-08 18:28:31'),
(143, 120, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-08 18:38:44', '2019-04-08 18:38:44'),
(144, 121, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-08 18:41:56', '2019-04-08 18:41:56'),
(145, 122, 44, 'Áo phông nam Active', 'L', 'Green', 3, 249000.00, '2019-04-08 18:42:07', '2019-04-08 18:42:07'),
(146, 123, 45, 'Quần jeans sành điệu', 'L', 'Blue', 3, 369600.00, '2019-04-08 18:42:28', '2019-04-08 18:42:28'),
(147, 123, 43, 'Váy xòe sành điệu', 'L', 'White', 3, 360000.00, '2019-04-08 18:42:28', '2019-04-08 18:42:28'),
(148, 124, 45, 'Quần jeans sành điệu', 'L', 'Blue', 3, 369600.00, '2019-04-08 18:42:31', '2019-04-08 18:42:31'),
(149, 124, 43, 'Váy xòe sành điệu', 'L', 'White', 3, 360000.00, '2019-04-08 18:42:31', '2019-04-08 18:42:31'),
(150, 125, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-04-08 20:49:52', '2019-04-08 20:49:52'),
(151, 126, 44, 'Áo phông nam Active', 'L', 'Green', 6, 249000.00, '2019-04-08 20:50:13', '2019-04-08 20:50:13'),
(152, 127, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-04-08 20:50:29', '2019-04-08 20:50:29'),
(153, 128, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 1, 525000.00, '2019-04-08 20:50:42', '2019-04-08 20:50:42'),
(154, 129, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 'L', 'White', 4, 336000.00, '2019-04-09 09:15:44', '2019-04-09 09:15:44'),
(155, 130, 36, 'Áo thể thao BAZAS chất như nước cất', 'X', 'Black', 1, 425000.00, '2019-04-11 03:04:15', '2019-04-11 03:04:15'),
(156, 131, 46, 'Áo Sơ Mi Nam Cổ Trụ Tay L<NAME>', 'L', 'White', 1, 336000.00, '2019-04-11 19:48:59', '2019-04-11 19:48:59'),
(157, 131, 43, 'Váy xòe sành điệu', 'L', 'White', 1, 360000.00, '2019-04-11 19:49:00', '2019-04-11 19:49:00'),
(158, 131, 31, 'Áo thun thể thao nam AJ-01', 'L', 'White', 3, 477000.00, '2019-04-11 19:49:00', '2019-04-11 19:49:00'),
(159, 132, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-15 08:25:27', '2019-04-15 08:25:27'),
(160, 132, 23, 'Chân váy công sở WJP17028 màu đen', 'M', 'Black', 2, 560000.00, '2019-04-15 08:25:27', '2019-04-15 08:25:27'),
(161, 133, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-16 19:01:30', '2019-04-16 19:01:30'),
(162, 134, 45, 'Quần jeans sành điệu', 'L', 'Blue', 8, 369600.00, '2019-04-16 19:17:48', '2019-04-16 19:17:48'),
(163, 134, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 10, 525000.00, '2019-04-16 19:17:48', '2019-04-16 19:17:48'),
(164, 135, 19, 'Chân váy công sở HeraDG đỏ ddejp', 'M', 'Red', 1, 525000.00, '2019-04-17 00:12:31', '2019-04-17 00:12:31'),
(165, 135, 45, 'Quần jeans sành điệu', 'L', 'Blue', 1, 369600.00, '2019-04-17 00:12:32', '2019-04-17 00:12:32'),
(166, 136, 49, 'SADsdsad', 'L', 'Green', 1, 308000.00, '2019-04-18 00:32:59', '2019-04-18 00:32:59'),
(167, 137, 44, 'Áo phông nam Active', 'L', 'Green', 1, 249000.00, '2019-04-18 01:35:30', '2019-04-18 01:35:30'),
(168, 138, 50, 'Áo công sở đẹp chất như nước cất', 'L', 'White', 9, 719999.10, '2019-04-21 18:56:26', '2019-04-21 18:56:26');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `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;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `posts`
--
CREATE TABLE `posts` (
`id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`thumb` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`main_content` 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;
--
-- Đang đổ dữ liệu cho bảng `posts`
--
INSERT INTO `posts` (`id`, `title`, `slug`, `description`, `thumb`, `main_content`, `created_at`, `updated_at`) VALUES
(6, '<NAME>', 'xuam-tung', 'Trong đó có quy định sử dụng phòng ăn. Hiện tại phòng trong đang có công ty Mirai làm việc, thường xuyên có khách,', 'uploads/posts/gender.jpg', '<p>sadasdsa</p>', '2019-04-11 03:17:04', '2019-04-11 03:17:04'),
(7, 'Hồng ánh', 'hong-anh', 'Generate Lorem Ipsum placeholder text for use in your graphic, Generate Lorem Ipsum placeholder text for use in your graphic,', 'uploads/posts/human-right.jpg', '<p>sadasdsa</p>\r\n\r\n<p>sad</p>\r\n\r\n<p>sadsa</p>\r\n\r\n<p>sa</p>', '2019-04-11 03:17:24', '2019-04-11 03:17:58'),
(8, '1 bầu trời đầy nắng và gió', '1-bau-troi-day-nang-va-gio', 'không pít', 'uploads/posts/logo.png', '<p>xuân tùng ly1997</p>\r\n\r\n<p>thế đéi bàio</p>\r\n\r\n<p><img alt=\"\" src=\"http://localhost:8083/page/public/uploads/posts/images/anh6.jpg\" style=\"height:300px; width:222px\" /></p>\r\n\r\n<p>không thể tin nổi . mêu mêu</p>\r\n\r\n<p><img alt=\"\" src=\"http://localhost:8083/page/public/uploads/posts/images/image1.png\" style=\"height:363px; width:600px\" /></p>', '2019-04-11 19:09:56', '2019-04-11 19:09:56');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `product`
--
CREATE TABLE `product` (
`id` int(10) UNSIGNED NOT NULL,
`cate_id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` int(11) NOT NULL,
`default_price` double(8,2) NOT NULL,
`unit_price` double(8,2) NOT NULL,
`promotion_price` double(8,2) NOT NULL,
`producter` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`status` tinyint(4) NOT NULL,
`feauture` tinyint(4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`file` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `product`
--
INSERT INTO `product` (`id`, `cate_id`, `name`, `amount`, `default_price`, `unit_price`, `promotion_price`, `producter`, `description`, `status`, `feauture`, `created_at`, `updated_at`, `file`) VALUES
(18, 10, 'Đầm công sở xòe HeraDG xanh đẹp', 250, 100000.00, 150000.00, 0.00, 'HeraDG', '<ul>\r\n <li><strong>Chất liệu vải Cotton pha bền đẹp</strong></li>\r\n <li><strong>Thiết kế cổ V, tay lỡ, ngực 3 khuy cài</strong></li>\r\n <li><strong>Chiết eo nhẹ tôn dáng, eo phối đai</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>HeraDG là thương hiệu thời trang trung và cao cấp dành cho phái đẹp của Tổng công ty Đức Giang. Các sản phẩm mang thương hiệu HeraDG được thiết kế theo ba phong cách riêng biệt: Thời trang trẻ hiện đại, năng động; Thời trang công sở thanh lịch, duyên dáng và Thời trang cao cấp sang trọng, tinh tế, phù hợp với những nữ doanh nhân thành đạt. Với tiêu chí "Đẹp mãi cùng thời gian", nhãn hàng HeraDG sẽ mang đến cho phái đẹp những diện mạo tuyệt vời cùng phong cách trang phục được cập nhật theo xu hướng thời trang thế giới.</strong></p>', 1, 1, '2019-03-09 01:22:06', '2019-04-16 19:54:34', '3f6754d37754bb9c6959adedd3107ba94d7dafd7.jpg|e8104cbfa1028a470e3e85b13468485a8293627b.jpg'),
(19, 7, 'Chân váy công sở HeraDG đỏ ddejp', 110, 300000.00, 750000.00, 30.00, 'HeraDG', '<ul>\r\n <li><strong>Chất liệu vải kaki bền đẹp</strong></li>\r\n <li><strong>Thiết kế cạp cao, khóa kéo sau lưng</strong></li>\r\n <li><strong>Dáng ôm nhẹ, xẻ sau</strong></li>\r\n <li><strong>Vạt xếp lệch phối 3 khuy trang trí</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>HeraDG là thương hiệu thời trang trung và cao cấp dành cho phái đẹp của Tổng công ty <NAME>. Các sản phẩm mang thương hiệu HeraDG được thiết kế theo ba phong cách riêng biệt: Thời trang trẻ hiện đại, năng động; Thời trang công sở thanh lịch, duyên dáng và Thời trang cao cấp sang trọng, tinh tế, phù hợp với những nữ doanh nhân thành đạt. Với tiêu chí "Đẹp mãi cùng thời gian", nhãn hàng HeraDG sẽ mang đến cho phái đẹp những diện mạo tuyệt vời cùng phong cách trang phục được cập nhật theo xu hướng thời trang thế giới.</strong></p>\r\n\r\n<p><strong> </strong></p>', 1, 2, '2019-03-09 01:24:20', '2019-04-17 00:13:10', '9cbe9702dd70c83237faa23e0160b135ff6e878d.jpg|58df2f59a670970f402a3fd48a6573dda1b6e6c3.jpg|12605218d9b1fcc5bb9c6e215643cb06ee65e04a.jpg|93209525b0b5f84304452d39dc1621756295be56.jpg'),
(20, 8, 'Áo sơ mi nam Fit Mattana', 300, 300000.00, 500000.00, 10.00, 'Fit Mattana', '<p><strong>Áo sơ mi nam Classic Fit Mattana được may từ chất liệu cao cấp, mềm mại đem đến cảm giác thoải mái khi sử dụng. Thiết kế đơn giản, tinh tế, mang đến vẻ trẻ trung, mang đến sự thanh lịch, nam tính cho phái mạnh.</strong></p>\r\n\r\n<ul>\r\n <li><strong>Chất liệu 100% Cotton</strong></li>\r\n <li><strong>Áo sơ mi cổ đức, tay dài</strong></li>\r\n <li><strong>Dáng áo Classic Fit</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>Mattana là thương hiệu của NBC - Tổng công ty may mặc hàng đầu tại Việt Nam với bề dày lịch sử hơn 35 năm hình thành và phát triển. Tuy mang phong cách Châu Âu nhưng Mattana lại rất phù hợp với người tiêu dùng Việt Nam từ vóc dáng, chất liệu đến kỹ thuật cắt may. Đặc biệt, Mattana hiện có những dòng sản phẩm như: áo sơ mi được sản xuất trên dây chuyền công nghệ hiện đại nhất hiện nay, cổ áo, nẹp áo, măng séc phẳng, không bị dọp; vòng nách, sườn rất phẳng sau khi giặt; quần tây được sử dụng công nghệ ủi ép cao cấp, tạo độ sắc nét và giữ đứng ly quần trong quá trình sử dụng. Hiện nay, Mattana đã có mặt tại các tỉnh thành lớn và các trung tâm thương mại trên toàn quốc với chuỗi hệ thống hơn 100 cửa hàng phủ đều khắp cả nước.</strong></p>', 1, 1, '2019-03-09 01:29:22', '2019-04-16 19:54:50', '0ec690ed453d724b44069015cbbe6b2a7b0efb7d.jpg|b25757902d6d0a31ba114dd2baa17a8b635c3d85.jpg'),
(23, 7, 'Chân váy công sở WJP17028 màu đen', 200, 300000.00, 800000.00, 30.00, 'Aligro', '<ul>\r\n <li><strong>Chất liệu vải Cotton pha bền đẹp</strong></li>\r\n <li><strong>Thiết kế cạp cao, khóa kéo sau lưng</strong></li>\r\n <li><strong>Dáng chữ A</strong></li>\r\n <li><strong>Phối 5 khuy trang trí</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>HeraDG là thương hiệu thời trang trung và cao cấp dành cho phái đẹp của Tổng công ty Đức Giang. Các sản phẩm mang thương hiệu HeraDG được thiết kế theo ba phong cách riêng biệt: Thời trang trẻ hiện đại, năng động; Thời trang công sở thanh lịch, duyên dáng và Thời trang cao cấp sang trọng, tinh tế, phù hợp với những nữ doanh nhân thành đạt. Với tiêu chí "Đẹp mãi cùng thời gian", nhãn hàng HeraDG sẽ mang đến cho phái đẹp những diện mạo tuyệt vời cùng phong cách trang phục được cập nhật theo xu hướng thời trang thế giới.</strong></p>\r\n\r\n<p><strong> </strong></p>', 1, 1, '2019-03-09 01:37:19', '2019-04-16 19:54:58', '1aae561185f2d615c546806547f05630415bf60d.jpg|6ff76421b1f5eaf73bfb09472a74970464d45846.jpg'),
(26, 8, 'Áo sơ mi nam dài tay Xuân Tùng', 300, 320000.00, 480000.00, 0.00, 'Xuân Tùng', '<p><strong>Áo sơ mi nam ngắn tay Hasa họa tiết kẻ được may từ chất liệu vải bền đẹp, mềm mịn, kiểu dáng đơn giản, tinh tế, mang đến sự trẻ trung, hiện đại, nam tính cho phái mạnh.</strong></p>\r\n\r\n<ul>\r\n <li><strong>Chất liệu vải Cotton </strong></li>\r\n <li><strong>Áo sơ mi ngắn tay</strong></li>\r\n <li><strong>Dáng Regular Fit</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>Hasa là thương hiệu thời trang đã xuất hiện từ cách đây hơn 10 năm, trong quá trình phát triển của mình, các sản phẩm thời trang mang thương hiệu Hasa đã được xuất khẩu ra nhiều nước trên thế giới. Đặc biệt là các chủng loại mặt hàng dệt kim mang thương hiệu Hasa được Vinatex đánh giá rất cao, luôn luôn nằm trong nhóm những mặt hàng chủ chốt của Vinatex. Các sản phẩm thời trang mang thương hiệu Hasa bao gồm: Thời trang nam, thời trang nữ, thời trang thể thao, thời trang trẻ em. Hầu hết các mẫu thời trang Hasa cung cấp ra thị trường nhận được sự ủng hộ, sự đánh giá cao của khách hàng.</strong></p>', 1, 2, '2019-03-09 08:17:46', '2019-04-16 19:55:05', '4c4533cc3a01efad02a7e1a810c383b90706cf06.jpg|73519a8dd5c6e5533ba02f88ab41403bfd8dacdd.jpg|c2504b50c7d280028a9e515923366a2335e207ab.jpg'),
(31, 9, 'Áo thun thể thao nam AJ-01', 299, 330000.00, 530000.00, 10.00, 'Aligro', '<p><a href=\"http://sona.store/collections/ao-thun-nam-the-thao\"><strong>Áo thun thể thao nam</strong></a>: Chất liệu thun cotton mềm mại, thoáng mát, thấm hút tốt, không lo hầm bí khi mặc. Thiết kế đơn giản với 3 màu cơ bản, cổ tròn, tay ngắn mang lại cho phái mạnh phong cách nam tính và lịch lãm khi mặc hàng ngày</p>\r\n\r\n<p><strong>Điểm nổi bật của áo</strong></p>\r\n\r\n<ul>\r\n <li><strong>Áo thun thể thao tay ngắn</strong> có thiết kế cổ tròn, lại cho phái mạnh phong cách nam tính và lịch lãm khi mặc hàng ngày</li>\r\n <li>Form áo có độ fit, không quá ôm giúp bạn thoải mái khi mặc chơi thể thao hay các hoạt động hàng ngày</li>\r\n <li>Phía trước áo thun có in logo đơn giản</li>\r\n <li>Chất liệu thun cotton rất mềm mại, thoáng mát, thấm hút tốt, và có độ co giãn rất tốt</li>\r\n <li>Kết hợp hài hòa được với các trang phục từ bụi bặm cá tính như quần short, quần jean đến những phong cách đơn giản cổ điển như quần tây quần kaki,..</li>\r\n</ul>', 1, 2, '2019-03-17 23:52:31', '2019-04-16 19:55:15', 'Ao-under-armour-xam.jpg|images (2).jpg'),
(35, 5, 'Bộ quần jeans nam chất lượng hàng đầu XuanTung XTL65HA', 111, 400000.00, 600000.00, 0.00, 'XuanTung', '<ul>\r\n <li>Quần jean luôn đa dạng về mẫu mã, kiểu dáng cũng như màu sắc. Do đó, các bạn nam có thể tha hồ lựa chọn kiểu dáng ưng ý để khoe cá tính trẻ trung, năng động mỗi khi xuống phố. Mẫu Quần Jean với những đường rách ngẫu hứng phối wash nhẹ phía trước rất đẹp mắt.Thiết kế hiện đại, trẻ trung, form quần ống côn trang nhã. Màu xanh đen thông dụng, cho bạn nhiều lựa chọn khi phối đồ.Chất liệu jean cao cấp, đảm bảo chắc chắn, bền đẹp và vẫn có độ co dãn nhất định khi mặc. Hai túi trước và hai túi sau tiện lợi, có độ sâu rộng phù hợp. Bạn có thể vô tư lựa chọn vì quần có rất nhiều size.</li>\r\n <li>Điểm qua những nét nổi bật của sản phẩm:</li>\r\n <li>- Kiểu dáng thời trang,sành điệu.</li>\r\n <li>- Tổng thể màu xanh hài hòa phối rách táo bạo tạo sự năng động, cá tính.</li>\r\n <li>- Có hai túi xéo trước và hai túi sau rất tiện dụng.</li>\r\n <li>- Chất liệu jean cotton bền đẹp, chắc chắn, không phai màu, không co rút khi giặt.</li>\r\n</ul>', 1, 2, '2019-03-18 00:12:07', '2019-04-16 19:55:23', '61074bs.u2566.d20161108.t092937.287215.jpg|quan_jean_nam_basic_xuoc_nhe_4fda.jpg|quần-jean-nam-đẹp-màu-xanh-jean.jpg'),
(36, 4, 'Áo thể thao BAZAS chất như nước cất', 270, 285000.00, 425000.00, 0.00, 'BAZAS', '<p>Bộ Quần Áo Thể Thao Nam Đa Năng BAZAS BZ053</p>\r\n\r\n<p>Mã Sản phẩm:BZ053</p>\r\n\r\n<p>Chất liệu vải cao cấp<br />\r\n- Tay ngắn<br />\r\n- Không may lót</p>\r\n\r\n<p>Thoải mái trong mọi hoạt động với áo thun cổ tròn. Áo được làm từ chất liệu vải có độ co giãn cao, thấm hút tốt để bạn luôn thấy thoáng mát cả ngày.</p>\r\n\r\n<p>Bộ Quần Áo Thể Thao Nam Đa Năng SODOHA giúp bạn vận động ngoài trời thoái mái dễ dàng và rất hợp thời trang , vừa trẻ trung năng động , căng tràn sức sống tươi trẻ.</p>\r\n\r\n<p>Chất liệu vải cao cấp<br />\r\nTay ngắn Không may lót<br />\r\nThoải mái trong mọi hoạt động với áo thun cổ tròn</p>', 1, 1, '2019-03-18 00:21:00', '2019-04-16 19:55:31', '6da0012243a8b352429cfd728dd0af01.jpg|1475035832336_73870.jpg'),
(41, 4, 'Quần Áo thể Thao SANTO', 200, 380000.00, 560000.00, 5.00, 'SANTO', '<ul>\r\n <li><strong>Chất liệu vải Cotton pha bền đẹp</strong></li>\r\n <li><strong>Thiết kế cạp cao, khóa kéo sau lưng</strong></li>\r\n <li><strong>Dáng chữ A</strong></li>\r\n <li><strong>Phối 5 khuy trang trí</strong></li>\r\n <li><strong>Xuất xứ: Việt Nam</strong></li>\r\n</ul>\r\n\r\n<p><strong><strong>Thông tin thương hiệu</strong></strong></p>\r\n\r\n<p><strong>HeraDG là thương hiệu thời trang trung và cao cấp dành cho phái đẹp của Tổng công ty Đức Giang. Các sản phẩm mang thương hiệu HeraDG được thiết kế theo ba phong cách riêng biệt: Thời trang trẻ hiện đại, năng động; Thời trang công sở thanh lịch, duyên dáng và Thời trang cao cấp sang trọng, tinh tế, phù hợp với những nữ doanh nhân thành đạt. Với tiêu chí "Đẹp mãi cùng thời gian", nhãn hàng HeraDG sẽ mang đến cho phái đẹp những diện mạo tuyệt vời cùng phong cách trang phục được cập nhật theo xu hướng thời trang thế giới.</strong></p>', 1, 2, '2019-03-19 07:00:50', '2019-04-16 19:55:38', '6c05389525da08cedeed4d64ed5ae52b.jpg|17f9a70250272eeae57d18354a4d9249.jpg|e6ce145c33324c83e335579d6dae9669.jpg'),
(43, 10, 'Vá<NAME>òe sành điệu', 210, 280000.00, 360000.00, 0.00, 'ADICA', '<p>Váy/đầm hoa dáng xòe chưa bao giờ lỗi mốt bởi nó luôn mang đến cho chị em phái đẹp một sự cuốn hút hết sức nhẹ nhàng và tự nhiên. Bạn nên kết hợp đầm hoa dáng xòe với một đôi <strong><a href=\"https://bloganchoi.com/top-mau-giay-cao-got-cong-so-dep-gia-re/\" target=\"_blank\">giày cao gót</a><a href=\"https://bloganchoi.com/tuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man/\" target=\"_blank\"><img alt=\"Tuyển tập mẫu váy xòe 2017 khiến bao nàng mê mẩn - BlogAnChoi\" src=\"https://bloganchoi.com/wp-content/images/bac/others/transparent-1x1.gif?utm_source=dmca&utm_medium=copy&utm_term=Tuy%E1%BB%83n%20t%E1%BA%ADp%20m%E1%BA%ABu%20v%C3%A1y%20x%C3%B2e%202017%20khi%E1%BA%BFn%20bao%20n%C3%A0ng%20m%C3%AA%20m%E1%BA%A9n%20-%20BlogAnChoi&utm_content=https%3A%2F%2Fbloganchoi.com%2Ftuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man%2F&tags=https%3A%2F%2Fbloganchoi.com%2Ftuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man%2F%2Chttps%3A%2F%2Fbloganchoi.com%2Ftuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man%2F%2Chttps%3A%2F%2Fbloganchoi.com%2Ftuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man%2F%2Chttps%3A%2F%2Fbloganchoi.com%2Ftuyen-tap-mau-vay-xoe-2017-khien-bao-nang-me-man%2F&dmcacpp=1\" style=\"height:1px; width:1px\" /></a></strong>. Trong trường hợp nếu sử dụng thêm phụ kiện túi xách đi kèm hãy dùng những màu tối giản, tuyệt đối không nên dùng màu đối lập với họa tiết của hoa khiến tổng thể vẻ ngoài trở nên rối mắt.</p>\r\n\r\n<p>Nhẹ nhàng, bay bổng và đầy quyến rũ là cảm giác tuyệt vời mà mẫu váy xòe cột nơ này có thể mang đến cho bạn. Thật vậy, với chất liệu lụa Chiffon cát tuyết mềm mịn tự nhiên, váy xòe cột nơ phù hợp với các cô nàng có phong cách trẻ trung, năng động trong những buổi tiệc tùng hoặc đi dạo phố.</p>\r\n\r\n<p>Một tín đồ thời trang chính hiệu sẽ chẳng thể bỏ qua những mẫu váy xòe tay lỡ hội tụ các đường cắt cúp tinh tế, điểm nhấn nhẹ nhàng nhưng không kém phần độc đáo. Bên cạnh những mẫu váy/đầm tay lỡ dáng xòe dạng trơn thanh lịch, BlogAnChoi tin chắc rằng cũng sẽ có rất nhiều cô nàng mê mẩn trước các mẫu váy ren xòe thời thượng, quyến rũ.</p>', 1, 1, '2019-03-19 07:50:01', '2019-04-16 19:55:46', 'd1a37870-97bb-11e8-85b5-ed6f884ad44e.jpg|Đầm-Xòe-Trễ-Vai-Dễ-Thương-Dh018-1.jpg|images (7).jpg'),
(44, 9, 'Áo phông nam Active', 179, 165000.00, 249000.00, 0.00, 'Active', '<ul>\r\n <li><a href=\"https://canifa.com/nam/do-the-thao/ao-thun.html\" target=\"_blank\">Áo phông nam</a> Active, cổ tròn ngắn tay</li>\r\n <li>Thiết kế đơn giản không rối mắt, độ ôm vừa phải mà vẫn lên chuẩn form dáng</li>\r\n <li>Phần vai raglan giúp dáng áo trở nên khỏe khoắn và năng động hơn, đồng thời tạo cảm giác bám theo đường cong cơ thể, thể hiện được sự gợi cảm</li>\r\n <li>Chất liệu mỏng, nhẹ và thoáng mát giúp người mặc thoải mái vận động mà không phải bận tâm mối lo ngại mồ hôi</li>\r\n <li>thể hiện sự nam tính của bạn trong mọi tình huống</li>\r\n <li>Xem thêm: BST các mẫu <a href=\"https://canifa.com/nam/do-the-thao.html\" target=\"_blank\">Quần phông nam</a> CANIFA mới nhất 2018</li>\r\n</ul>', 1, 1, '2019-03-19 07:56:35', '2019-04-18 01:37:13', 'bo-si-ao-thun-nam-tommy.jpg|s7-1214453_lifestyle.jpg'),
(45, 5, 'Quần jeans sành điệu', 339, 300000.00, 420000.00, 12.00, 'Aligro', '<p>Chất liệu như denim vẫn luôn được đánh giá nhờ sự bền bỉ và trường tồn theo năm tháng. Lịch sử thời trang đã chứng minh được điều đó. Kể từ khi mà quần jeans nam được ra đời lần đầu tiên thì dường như các món đồ denim đã bao trùm các ngóc ngách của cuộc sống chúng ta.</p>\r\n\r\n<p>Và chưa một giây phúc nào trên cuộc sống này, nam giới cũng như nữ giới quên đi mẫu trang phục đa năng như thế này. Dù các xu hướng có qua đi rồi quay lại thì quần jeans vẫn ở đó. Chúng vẫn đẹp giản đơn trong chất liệu, kiểu dáng và tạo phong cách cho người mặc.</p>\r\n\r\n<p>Có hai yếu tố quyết định sự then chốt cho chiếc quần jeans nam đó chính là: sự đa năng và giá trị tinh thần. Đa năng ở đây chính là tạo sự thuận lợi cho nam giới trong các hoạt động hằng này. Còn giá trị tinh thần là biểu tượng đơn giản nhưng phô diễn được nét đẹp nam tính của đàn ông qua nhiều thế hệ khác nhau.</p>', 1, 2, '2019-03-19 07:59:45', '2019-04-17 00:13:10', 'jean-rach-nam-1m4G3-CmANZe_simg_ab1f47_350x350_maxb.jpg|quan_jeans_rach_nam_tre_trung_177_1516964061.jpg'),
(46, 8, 'Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans', 266, 280000.00, 420000.00, 20.00, 'Zavans', '<ul>\r\n <li><strong>Áo Sơ Mi Nam Cổ Trụ Tay Lỡ Zavans</strong> luôn là sự lựa chọn hàng đầu của giới công sở hiện nay, với kiểu dáng lịch thiệp, đường may đẹp và chất lượng vải cao cấp.</li>\r\n <li>Áo sơ mi giúp bạn nam trông lịch lãm và sang trọng hơn với thiết kế sang trọng, gia công sắc sảo.</li>\r\n <li>Form ôm gọn gàng, trẻ trung, tay dài thanh lịch.</li>\r\n <li>Sản phẩm may từ chất liệu Cotton nhập khẩu cao cấp, được biết đến với đặc tính thấm hút mồ hôi tốt, thoáng mát ngay cả trong điều kiện thời thiết nóng bức cho form áo đứng, sang trọng.</li>\r\n <li>Bề mặt vải mềm mịn. Vải còn có đặc tính chống bám bẩn và chống mài mòn tốt, đảm bảo sự bền đẹp với thời gian, dễ giặt, nhanh khô.</li>\r\n <li>Bạn có thể kết hợp cùng quần tây, jeans, kaki cho phong cách thời trang đa dạng.</li>\r\n</ul>', 1, 2, '2019-03-19 08:02:38', '2019-04-17 02:03:48', 'ao-hot-trend-1.jpg|top1.jpg'),
(47, 7, '<NAME>', 4, 300000.00, 420000.00, 0.00, 'aaaaaaa', '<p>aaaaaaaaaaa</p>', 1, 2, '2019-03-23 19:28:23', '2019-04-07 19:50:33', 'e8104cbfa1028a470e3e85b13468485a8293627b.jpg'),
(49, 8, 'SADsdsad', 279, 300000.00, 700000.00, 56.00, 'Aligro', '<p>ADSADS</p>\r\n\r\n<p>ASD</p>\r\n\r\n<p>SASDA</p>', 1, 1, '2019-03-25 02:38:13', '2019-04-18 00:34:44', '66b78a51ebe81c3c21f852c4ed5ba1a28eca9c3d.jpg'),
(50, 6, 'Áo công sở đẹp chất như nước cất', 100, 500000.00, 799999.00, 10.00, 'xiaomi', '<p><strong>Áo kiểu</strong> – là một trong những chiếc áo thường được các bạn gái công sở ưu tiên lựa chọn để phối đồ chung với nhau. Một chiếc áo kiểu mang đến cho các cô nàng sự tươi trẻ và khác lạ hơn, bởi nó được thiết kế một cách tinh tế, không bị bó buộc trong một khuôn khổ đơn điệu như áo thun, áo sơ mi thông thường. Và có thể thấy rằng, sự ưu việt nhất của những chiếc áo kiểu là có thể kết hợp được với hầu hết các món đồ khác như chân váy, quần tây, quần jeans,… để tạo ra sự phù hợp trong phong cách của chính mình.</p>\r\n\r\n<p>Hãy cùng Thời trang trẻ tham khảo những mẫu <strong>áo kiểu phong cách Hàn Quốc</strong> xinh đẹp dưới đây nhé!</p>\r\n\r\n<p>Sự đơn giản của chiếc áo cùng với chân váy ôm đã mang đến sự mảnh mai, tôn lên dáng người quyến rũ, kết hợp với các phụ kiện như vòng đeo cổ khiến các bạn gái vô cùng nữ tính và duyên dáng.</p>\r\n\r\n<p>Sự kết hợp giữa chiếc áo hiện đại cùng với chân váy ôm thể hiện sự trẻ trung, chiếc áo được thiết kế một cách đơn giản nhưng lạ mắt, mang đến sự độc đáo trong phong cách ăn mặc của các bạn nữ công sở.</p>\r\n\r\n<p>Không cầu kỳ trong từng đường nét, kiểu áo, nhưng việc hài hòa giữa màu áo với đường viền cổ và tay áo tạo nên sự uyển chuyển, với gam màu tươi sáng, chiếc áo này phù hợp với những cô nàng có làn da trắng, mang đến sự trẻ trung và dịu dàng hơn.</p>', 1, 2, '2019-04-21 18:55:25', '2019-04-21 18:55:25', 'ao-kieu-2.jpg-700x968.jpg|ao-kieu-3.jpg-700x968.jpg|ao-kieu-4.jpg-700x968.jpg');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `product_image`
--
CREATE TABLE `product_image` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`image_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `product_size`
--
CREATE TABLE `product_size` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(11) NOT NULL,
`size_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Đang đổ dữ liệu cho bảng `product_size`
--
INSERT INTO `product_size` (`id`, `product_id`, `size_id`, `created_at`, `updated_at`) VALUES
(48, 28, 4, '2019-03-10 20:46:54', '2019-03-10 20:46:54'),
(49, 28, 6, '2019-03-10 20:46:54', '2019-03-10 20:46:54'),
(269, 47, 1, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(270, 47, 3, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(271, 47, 4, '2019-03-24 20:29:29', '2019-03-24 20:29:29'),
(319, 18, 1, '2019-04-16 19:54:34', '2019-04-16 19:54:34'),
(320, 18, 2, '2019-04-16 19:54:34', '2019-04-16 19:54:34'),
(321, 19, 2, '2019-04-16 19:54:43', '2019-04-16 19:54:43'),
(322, 19, 4, '2019-04-16 19:54:43', '2019-04-16 19:54:43'),
(323, 20, 1, '2019-04-16 19:54:50', '2019-04-16 19:54:50'),
(324, 20, 5, '2019-04-16 19:54:50', '2019-04-16 19:54:50'),
(325, 23, 2, '2019-04-16 19:54:58', '2019-04-16 19:54:58'),
(326, 23, 3, '2019-04-16 19:54:58', '2019-04-16 19:54:58'),
(327, 23, 6, '2019-04-16 19:54:58', '2019-04-16 19:54:58'),
(328, 26, 2, '2019-04-16 19:55:06', '2019-04-16 19:55:06'),
(329, 26, 3, '2019-04-16 19:55:06', '2019-04-16 19:55:06'),
(330, 26, 4, '2019-04-16 19:55:06', '2019-04-16 19:55:06'),
(331, 31, 1, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(332, 31, 2, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(333, 31, 5, '2019-04-16 19:55:15', '2019-04-16 19:55:15'),
(334, 35, 1, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(335, 35, 2, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(336, 35, 3, '2019-04-16 19:55:23', '2019-04-16 19:55:23'),
(337, 36, 3, '2019-04-16 19:55:31', '2019-04-16 19:55:31'),
(338, 36, 1, '2019-04-16 19:55:31', '2019-04-16 19:55:31'),
(339, 36, 2, '2019-04-16 19:55:31', '2019-04-16 19:55:31'),
(340, 41, 1, '2019-04-16 19:55:38', '2019-04-16 19:55:38'),
(341, 41, 3, '2019-04-16 19:55:38', '2019-04-16 19:55:38'),
(342, 41, 4, '2019-04-16 19:55:38', '2019-04-16 19:55:38'),
(343, 43, 1, '2019-04-16 19:55:46', '2019-04-16 19:55:46'),
(344, 43, 2, '2019-04-16 19:55:46', '2019-04-16 19:55:46'),
(345, 44, 1, '2019-04-16 19:55:55', '2019-04-16 19:55:55'),
(346, 44, 3, '2019-04-16 19:55:55', '2019-04-16 19:55:55'),
(347, 46, 1, '2019-04-16 19:58:14', '2019-04-16 19:58:14'),
(348, 46, 3, '2019-04-16 19:58:14', '2019-04-16 19:58:14'),
(349, 49, 1, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(350, 49, 4, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(351, 49, 5, '2019-04-16 19:58:23', '2019-04-16 19:58:23'),
(352, 45, 1, '2019-04-16 19:58:34', '2019-04-16 19:58:34'),
(353, 45, 2, '2019-04-16 19:58:34', '2019-04-16 19:58:34'),
(354, 50, 1, '2019-04-21 18:55:25', '2019-04-21 18:55:25'),
(355, 50, 2, '2019-04-21 18:55:25', '2019-04-21 18:55:25'),
(356, 50, 3, '2019-04-21 18:55:25', '2019-04-21 18:55:25');
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `size`
--
CREATE TABLE `size` (
`id` int(10) UNSIGNED NOT NULL,
`value` 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;
--
-- Đang đổ dữ liệu cho bảng `size`
--
INSERT INTO `size` (`id`, `value`, `created_at`, `updated_at`) VALUES
(1, 'L', NULL, NULL),
(2, 'M', NULL, NULL),
(3, 'X', NULL, NULL),
(4, 'XX', NULL, NULL),
(5, 'XXL', NULL, NULL),
(6, 'MS', NULL, NULL),
(7, 'XXX', NULL, NULL),
(8, 'S', NULL, NULL),
(9, 'XL', NULL, NULL);
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `test`
--
CREATE TABLE `test` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` int(11) NOT NULL,
`price` double(8,2) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Cấu trúc bảng cho bảng `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`role` int(11) 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;
--
-- Đang đổ dữ liệu cho bảng `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `phone`, `address`, `role`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<PASSWORD>ung', '<EMAIL>', <PASSWORD>', '098989898', 'Lục yên - Yên Bái', 1, 'z093pEBeYcOYgRcVgD3OtXr0QDk65GN4dDVRH3TrSc6pIR7aM54tWVB3bqm6', '2013-03-04 17:00:00', NULL),
(2, 'HongAnh', '<EMAIL>', <PASSWORD>', '098989898', 'Hà Nội', 0, '8iv1PoubvuI2cabvn7oMqfDU4tvVczlI61DXBxylwVkGTHJT9KAOkjo38FWK', '2003-03-14 17:00:00', '2019-03-21 01:03:14'),
(5, 'Tùng <NAME>', '<EMAIL>', <PASSWORD>', '22222222223', 'Yên Bái', 0, '4sgVdW8FdbYF0PVvrukzyLj6XIA0ODnaEdlyCNPuBNLEsQeOjQ9xLqGBGZYu', '2019-03-06 10:03:11', '2019-03-19 01:59:54'),
(7, 'Tùng Xuân dz', '<EMAIL>', '$2y$10$v1ddkRArFZtjhkrA2PGd3eiy02PAXEKbfbpiOJKdLqE5DRq3EPEl.', '0123456789', 'Hà nội', 0, 'M15e6FPDvO87AXN890rukHiZkrlNGHPGZS0od4VwGFOp1Wu2t2KVWBSZledv', '2019-03-19 02:03:43', '2019-03-21 01:02:26'),
(8, 'aaaaaa', '<EMAIL>', <PASSWORD>$KknHhpTbD2aCYa7lldWzdO4SI<PASSWORD>IjCs<PASSWORD>v<PASSWORD>a', '0123456789', 'Yên Bái', 0, NULL, '2019-03-22 18:13:27', '2019-03-22 18:13:27'),
(9, '<NAME>', '<EMAIL>', <PASSWORD>', '241432323523', 'Hà Nội', 0, 'xnzDyIPUAcrnurj5p0gn8OGOzhHE0QIMCpqD4IvsZDZm6NWW19rXXdG2wHti', '2019-03-28 18:43:51', '2019-03-28 18:43:51'),
(10, '<NAME>', '<EMAIL>', <PASSWORD>', '0123456789', 'Hà nội', 0, NULL, '2019-03-28 21:38:41', '2019-03-28 21:38:48'),
(12, '<NAME>', '<EMAIL>', <PASSWORD>', '386138536', 'Cầu Giấy, Hà Nội', 0, 'PRhTitVCWvzrrpNzfpdOhLjUA7YsVVzLrOowR2k7l00N1HwvjVrOXKEVw1wc', '2019-04-07 23:40:33', '2019-04-07 23:40:33');
--
-- Chỉ mục cho các bảng đã đổ
--
--
-- Chỉ mục cho bảng `about`
--
ALTER TABLE `about`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `color`
--
ALTER TABLE `color`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `color_product`
--
ALTER TABLE `color_product`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `comment_product`
--
ALTER TABLE `comment_product`
ADD PRIMARY KEY (`id`),
ADD KEY `comment_product_com_product_foreign` (`com_product`);
--
-- Chỉ mục cho bảng `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `feedback`
--
ALTER TABLE `feedback`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `order`
--
ALTER TABLE `order`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `order_detail`
--
ALTER TABLE `order_detail`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Chỉ mục cho bảng `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`id`),
ADD KEY `product_cate_id_foreign` (`cate_id`);
--
-- Chỉ mục cho bảng `product_image`
--
ALTER TABLE `product_image`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `product_size`
--
ALTER TABLE `product_size`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `size`
--
ALTER TABLE `size`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `test`
--
ALTER TABLE `test`
ADD PRIMARY KEY (`id`);
--
-- Chỉ mục cho bảng `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT cho các bảng đã đổ
--
--
-- AUTO_INCREMENT cho bảng `about`
--
ALTER TABLE `about`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT cho bảng `category`
--
ALTER TABLE `category`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT cho bảng `color`
--
ALTER TABLE `color`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18;
--
-- AUTO_INCREMENT cho bảng `color_product`
--
ALTER TABLE `color_product`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=267;
--
-- AUTO_INCREMENT cho bảng `comment_product`
--
ALTER TABLE `comment_product`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT cho bảng `customer`
--
ALTER TABLE `customer`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT cho bảng `feedback`
--
ALTER TABLE `feedback`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT cho bảng `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT cho bảng `order`
--
ALTER TABLE `order`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=139;
--
-- AUTO_INCREMENT cho bảng `order_detail`
--
ALTER TABLE `order_detail`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=169;
--
-- AUTO_INCREMENT cho bảng `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT cho bảng `product`
--
ALTER TABLE `product`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
--
-- AUTO_INCREMENT cho bảng `product_image`
--
ALTER TABLE `product_image`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT cho bảng `product_size`
--
ALTER TABLE `product_size`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=357;
--
-- AUTO_INCREMENT cho bảng `size`
--
ALTER TABLE `size`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT cho bảng `test`
--
ALTER TABLE `test`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT cho bảng `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- Các ràng buộc cho các bảng đã đổ
--
--
-- Các ràng buộc cho bảng `comment_product`
--
ALTER TABLE `comment_product`
ADD CONSTRAINT `comment_product_com_product_foreign` FOREIGN KEY (`com_product`) REFERENCES `product` (`id`) ON DELETE CASCADE;
--
-- Các ràng buộc cho bảng `product`
--
ALTER TABLE `product`
ADD CONSTRAINT `product_cate_id_foreign` FOREIGN KEY (`cate_id`) REFERENCES `category` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
drop database BDPrimitiva;
create database BDPrimitiva;
create database BDPrimitiva;
create table users (
id int unique auto_increment primary key,
CodCon varchar(8) not null,
usuario varchar(191),
email varchar(191) unique,
password varchar(191),
remember_token varchar(100),
created_at timestamp,
updated_at timestamp,
condicion tinyint(1),
foreign key (CodCon) references TabCon(CodCon));
create table roles(
id int unique auto_increment primary key,
name varchar(191),
description varchar(191)
);
create table role_user(
id int unique auto_increment primary key,
user_id int,
role_id int
);
insert into roles(name, description) values('liderred', 'Usuario para ver los reportes del lider de casa de paz');
insert into roles(name, description) values('lidercdp', 'Usuario para el líder de casa de paz');
insert into roles(name, description) values('mentor', 'Usuario para ver todo relacionado a sus discìpulos');
--PROCEDURES
DELIMITER //
CREATE PROCEDURE mostrar_actividades()
BEGIN
SELECT CodAct, TipAct, LugAct, HorEnt, PriAct FROM TabActividades;
END
DELIMITER //
CREATE PROCEDURE insertar_actividades(
IN CodAct nvarchar(3),
IN FecReg datetime,
IN TipAct nvarchar(30),
IN LugAct nvarchar(100),
IN Tipo nvarchar(2),
IN DiaActOtro nvarchar(7),
IN DiaMes nvarchar(2),
IN DiaSem nvarchar(2),
IN FecIni datetime,
IN FecFin datetime,
IN HorEnt datetime,
IN MinTol real,
IN ConAsi bit,
IN PriAct bit
)
BEGIN
insert into TabActividades(`CodAct`, `FecReg`, `TipAct`, `LugAct`, `Tipo`, `DiaActOtro`, `DiaMes`, `DiaSem`, `FecIni`, `FecFin`, `HorEnt`, `MinTol`, `ConAsi`, `PriAct`)
values (CodAct, FecReg, TipAct, LugAct, Tipo, DiaActOtro, DiaMes, DiaSem, FecIni, FecFin, HorEnt, MinTol, ConAsi, PriAct);
END//
-- PROCEDIMIENTOS ALMACENADOS PARA CONGREGANTE --
DELIMITER //
CREATE PROCEDURE mostrar_miembros()
BEGIN
SELECT CodCon, ApeCon, NomCon, EstaEnProceso, FecNacCon, NumCel, TipCon, DirCon, ParticipaCasaPaz, FalCons, FalConsCP, FecReg, ID_RED FROM TabCon WHERE EstCon = 'ACTIVO' ORDER BY ApeCon ASC;
END//
----PROCEDIMIENTOS ALMACENADOS PARA CASAS DE PAZ
DELIMITER //
CREATE PROCEDURE mostrar_miembros_cdp(
IN CodCdp nvarchar(6)
)
BEGIN
SELECT c.CodCon, CONCAT(c.ApeCon, ' ', c.NomCon) As Nombres,
c.EstaEnProceso, c.DirCon, c.TipCon, YEAR(CURDATE())-YEAR(c.FecNacCon) + IF(DATE_FORMAT(CURDATE(),'%m-%d') > DATE_FORMAT(c.FecNacCon,'%m-%d'), 0 , -1 ) AS `EDAD_ACTUAL`, c.EstCon FROM TabMimCasPaz m INNER JOIN TabCon c ON m.CodCon = c.CodCon
WHERE m.CodCasPaz = CodCdp;
END//
use BDPrimitiva;
SELECT * FROM TabCasasDePaz WHERE ID_Red= '1'
SELECT * FROM TabRedes
|
<gh_stars>0
DROP SCHEMA IF EXISTS SocialMeals;
DROP USER IF EXISTS 'userSocialMeals'@'%';
CREATE SCHEMA SocialMeals;
CREATE USER 'userSocialMeals'@'%' IDENTIFIED BY 'pwSocialMeals';
GRANT ALL PRIVILEGES ON SocialMeals . * TO 'userSocialMeals'@'%'; |
\echo # Loading all the types necessary for match data.
|
-- =============================================
-- Author: <NAME>
-- Create date: 19/02/2017
-- Update date: 19/11/2017 <NAME> Change Concat to inner query
-- Description: Set Always on availability groups to Async
-- =============================================
CREATE PROCEDURE [VerDeploy].[usp_Util_SetAGToAsync]
@DatabaseName sysname = NULL,
@IsAGChangeToASync BIT OUTPUT
WITH EXECUTE AS CALLER
AS
BEGIN
SET NOCOUNT ON;
DECLARE @error NVARCHAR(2048);
DECLARE @Async NVARCHAR(MAX) = N'';
SELECT @Async += [Script] FROM (
SELECT DISTINCT IIF(drs.synchronization_state = 2,'
ALTER AVAILABILITY GROUP ' + QUOTENAME(ag.name) + ' MODIFY REPLICA ON N''' + ar.replica_server_name + ''' WITH (FAILOVER_MODE = MANUAL);
ALTER AVAILABILITY GROUP ' + QUOTENAME(ag.name) + ' MODIFY REPLICA ON N''' + ar.replica_server_name + ''' WITH (AVAILABILITY_MODE = ASYNCHRONOUS_COMMIT);','') AS [Script]
FROM sys.dm_hadr_database_replica_states AS drs
INNER JOIN sys.availability_databases_cluster AS adc ON drs.group_id = adc.group_id
AND drs.group_database_id = adc.group_database_id
INNER JOIN sys.availability_groups AS ag ON ag.group_id = drs.group_id
INNER JOIN sys.availability_replicas AS ar ON drs.group_id = ar.group_id
AND drs.replica_id = ar.replica_id
WHERE adc.database_name = @DatabaseName
AND ar.availability_mode = 1)T;
IF LEN(@Async) > 10
BEGIN
BEGIN TRY
EXEC sp_executesql @Async;
SET @IsAGChangeToASync = 1;
END TRY
BEGIN CATCH
SELECT @error = CONCAT(OBJECT_SCHEMA_NAME(@@PROCID) + '.' + OBJECT_NAME(@@PROCID),' :: ',ERROR_MESSAGE());
RAISERROR(@error,16,1);
RETURN -1;
END CATCH
END
ELSE
BEGIN
SET @IsAGChangeToASync = 0;
END
END |
-- MySQL dump 10.11
--
-- Host: 172.16.31.10 Database: bbp1
-- ------------------------------------------------------
-- Server version 5.0.92-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `login`
--
DROP TABLE IF EXISTS `login`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `login` (
`user` varchar(20) NOT NULL,
`pass` varchar(40) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `login`
--
LOCK TABLES `login` WRITE;
/*!40000 ALTER TABLE `login` DISABLE KEYS */;
INSERT INTO `login` VALUES ('admin','<PASSWORD>');
/*!40000 ALTER TABLE `login` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `news`
--
DROP TABLE IF EXISTS `news`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `news` (
`id` int(100) NOT NULL auto_increment,
`type` int(10) NOT NULL,
`date` varchar(100) NOT NULL,
`msg` text NOT NULL,
`url` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `news`
--
LOCK TABLES `news` WRITE;
/*!40000 ALTER TABLE `news` DISABLE KEYS */;
/*!40000 ALTER TABLE `news` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `property`
--
DROP TABLE IF EXISTS `property`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `property` (
`uid` int(100) NOT NULL,
`id` int(100) NOT NULL auto_increment,
`title` varchar(50) NOT NULL,
`location` varchar(100) NOT NULL,
`zone` varchar(50) NOT NULL,
`landmark` varchar(50) NOT NULL,
`area` varchar(50) NOT NULL,
`price` varchar(50) NOT NULL,
`aa` varchar(50) NOT NULL,
`ptype` varchar(50) NOT NULL,
`pfrom` varchar(50) NOT NULL,
`bank` varchar(50) NOT NULL,
`contact` varchar(200) NOT NULL,
`br` varchar(20) NOT NULL,
`date` varchar(20) NOT NULL,
`link` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=126 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `property`
--
LOCK TABLES `property` WRITE;
/*!40000 ALTER TABLE `property` DISABLE KEYS */;
INSERT INTO `property` VALUES (5,104,'Surya city','A.E.C.S. Layout','South Bangalore','bus depot','0 - 600','5 to 7 lakhs','BDA','Land','Owner','No','govt','Rent','18-3-2011','no.jpg'),(5,121,'White house','B.T.M. Layout','Central Bangalore','bus stop','1200','13 to 15 lakhs','Corporation','Residential House','Owner','Yes','obama','buy','5-4-2011','nc7o5k4n.jpg'),(8,124,'Land for sale','Anjanapura','South Bangalore','Near Metro','1200','9 to 11 lakhs','BMRDA','Land','Owner','Yes','hgdsje\r\nsdsjhs\r\n321472937','buy','10-4-2011','ewc2dohm.jpg'),(8,125,'House in Hebbal','Hebbal','North Bangalore','Amarjyothi layout','1200','Above 1 crore','Corporation','Residential House','Owner','Yes','Anand\r\n9845276059','buy','14-7-2011','no.jpg');
/*!40000 ALTER TABLE `property` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
DROP TABLE IF EXISTS `user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user` (
`id` int(100) NOT NULL auto_increment,
`email` varchar(40) NOT NULL,
`pass` varchar(40) NOT NULL,
`name` varchar(40) NOT NULL,
`address` varchar(100) NOT NULL,
`city` varchar(40) NOT NULL,
`con` varchar(40) NOT NULL,
`zip` varchar(6) NOT NULL,
`phone` varchar(20) NOT NULL,
`mobi` varchar(10) NOT NULL,
`cname` varchar(40) NOT NULL,
`site` varchar(40) NOT NULL,
`date` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user`
--
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES (5,'<EMAIL>','123456','Johnson','Ec2','Bangalore','India','560100','9482439921','9482439921','srivatech','web1','web2'),(8,'<EMAIL>','welcome','Anand','Anekal','Banglore ','India','516334','04362','9482439921','cname','web6','web7'),(9,'<EMAIL>','123456','johnson','sjsj','sjsj','jsjs','561230','','9482439921','','','22-11-2011'),(10,'z.h.o.ng.m.in.xr1.11.1.1.11.1@gmail.com\r','taishan2011','stiblyestilky','213 Rockwood Dr','|Hebron,Gaza City\r\n','','123456','123456','None','stiblyestilky','http://www.thenorthface-outlets.me.uk/\r\n','8-12-2011');
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2012-09-27 0:42:44
|
drop table organization_metadata;
|
-- Adminer 4.3.1 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `a_groups`;
CREATE TABLE `a_groups` (
`group_id` varchar(255) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`private_link` varchar(255) DEFAULT NULL,
`photo` varchar(255) DEFAULT NULL,
`msg_count` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `a_users`;
CREATE TABLE `a_users` (
`user_id` varchar(255) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`photo` varchar(255) DEFAULT NULL,
`private_msg_count` bigint(20) DEFAULT NULL,
`group_msg_count` bigint(20) DEFAULT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `groups_history`;
CREATE TABLE `groups_history` (
`group_id` varchar(255) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`name` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
KEY `group_id` (`group_id`),
CONSTRAINT `groups_history_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `a_groups` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `groups_setting`;
CREATE TABLE `groups_setting` (
`group_id` varchar(255) NOT NULL,
`max_warn` int(11) NOT NULL DEFAULT '3',
`welcome_message` text,
`history_notification` enum('true','false') DEFAULT 'false',
KEY `group_id` (`group_id`),
CONSTRAINT `groups_setting_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `a_groups` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `group_admins`;
CREATE TABLE `group_admins` (
`group_id` varchar(255) NOT NULL,
`user_id` varchar(255) NOT NULL,
`status` enum('creator','administrator') NOT NULL,
`privileges` text NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
KEY `group_id` (`group_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `group_admins_ibfk_3` FOREIGN KEY (`group_id`) REFERENCES `a_groups` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `group_admins_ibfk_4` FOREIGN KEY (`user_id`) REFERENCES `a_users` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `group_messages`;
CREATE TABLE `group_messages` (
`msg_uniq` varchar(255) NOT NULL,
`user_id` varchar(255) NOT NULL,
`group_id` varchar(255) NOT NULL,
`message_id` varchar(255) NOT NULL,
`reply_to_message_id` varchar(255) DEFAULT NULL,
`type` enum('text','photo','voice','video') NOT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`msg_uniq`),
KEY `user_id` (`user_id`),
KEY `group_id` (`group_id`),
CONSTRAINT `group_messages_ibfk_4` FOREIGN KEY (`user_id`) REFERENCES `a_users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `group_messages_ibfk_6` FOREIGN KEY (`group_id`) REFERENCES `a_groups` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `group_messages_data`;
CREATE TABLE `group_messages_data` (
`msg_uniq` varchar(255) NOT NULL,
`text` text,
`file` varchar(255) DEFAULT NULL,
KEY `msg_uniq` (`msg_uniq`),
CONSTRAINT `group_messages_data_ibfk_2` FOREIGN KEY (`msg_uniq`) REFERENCES `group_messages` (`msg_uniq`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `private_messages`;
CREATE TABLE `private_messages` (
`msg_uniq` varchar(255) NOT NULL,
`user_id` varchar(255) NOT NULL,
`message_id` varchar(255) NOT NULL,
`reply_to_message_id` varchar(255) DEFAULT NULL,
`type` enum('text','photo','voice','video') NOT NULL,
`created_at` datetime NOT NULL,
PRIMARY KEY (`msg_uniq`),
KEY `user_id` (`user_id`),
CONSTRAINT `private_messages_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `a_users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `private_messages_data`;
CREATE TABLE `private_messages_data` (
`msg_uniq` varchar(255) NOT NULL,
`text` text,
`file` varchar(255) DEFAULT NULL,
KEY `msg_uniq` (`msg_uniq`),
CONSTRAINT `private_messages_data_ibfk_2` FOREIGN KEY (`msg_uniq`) REFERENCES `private_messages` (`msg_uniq`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `users_history`;
CREATE TABLE `users_history` (
`user_id` varchar(255) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`photo` varchar(255) DEFAULT NULL,
`created_at` datetime NOT NULL,
KEY `user_id` (`user_id`),
CONSTRAINT `users_history_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `a_users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
DROP TABLE IF EXISTS `users_warn`;
CREATE TABLE `users_warn` (
`user_id` varchar(255) NOT NULL,
`group_id` varchar(255) NOT NULL,
`reasons` text NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
KEY `user_id` (`user_id`),
KEY `group_id` (`group_id`),
CONSTRAINT `users_warn_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `a_users` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT `users_warn_ibfk_4` FOREIGN KEY (`group_id`) REFERENCES `a_groups` (`group_id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- 2017-11-03 10:14:15
|
CREATE TABLE modifiers (
id SERIAL NOT NULL PRIMARY KEY,
displayName TEXT NOT NULL UNIQUE
);
INSERT INTO modifiers (displayName) VALUES
('CutClean'),
('Fast Smelting'),
('Beta Zombies'),
('Hasty Boys'),
('Veinminer'),
('Timber');
|
<reponame>jeffersonfantasia/SQL_Scripts
SELECT T.CHAVECTE,
T.DTENT,
T.DTEMISSAO,
T.CODFILIALNF,
T.NUMNOTA,
T.CODFORNEC,
F.FORNECEDOR,
T.VLTOTAL
FROM PCNFENT T, PCFORNEC F
WHERE T.CODFORNEC = F.CODFORNEC
AND ESPECIE = 'CT'
AND CODFORNEC IN (:CODFORNEC)
AND DTENT BETWEEN TO_DATE(:DTENTINICIAL, 'DD/MM/YYYY') AND TO_DATE(:DTENTFINAL, 'DD/MM/YYYY')
AND DTEMISSAO BETWEEN TO_DATE(:DTEMISSAOINICIAL, 'DD/MM/YYYY') AND TO_DATE(:DTEMISSAOFINAL, 'DD/MM/YYYY')
ORDER BY T.DTENT, T.DTEMISSAO;
|
CREATE TABLE [dbo].[CategoryTemp] (
[CategoryId] BIGINT NOT NULL,
[RecipeId] BIGINT NULL,
[DisplayOrder] BIGINT NULL,
[Description] VARCHAR (50) NULL
);
|
<filename>sql/620-Not Boring Movies.sql<gh_stars>1-10
-- 620. Not Boring Movies
-- mysql
-- 1st
select * from cinema where id%2=1 and description not like '%boring%' order by rating desc;
-- 2nd
select * from cinema where MOD(id,2)=1 and description not like '%boring%' order by rating desc; |
CREATE TABLE table_04(
Country VARCHAR(44)
,A2 VARCHAR(3)
,A3 VARCHAR(3)
,Number VARCHAR(3)
);
INSERT INTO table_04(Country,A2,A3,Number) VALUES
('AALAND ISLANDS','AX','ALA','248')
,('AFGHANISTAN','AF','AFG','004')
,('ALBANIA','AL','ALB','008')
,('ALGERIA','DZ','DZA','012')
,('AMERICAN SAMOA','AS','ASM','016')
,('ANDORRA','AD','AND','020')
,('ANGOLA','AO','AGO','024')
,('ANGUILLA','AI','AIA','660')
,('ANTARCTICA','AQ','ATA','010')
,('ANTIGUA AND BARBUDA','AG','ATG','028')
,('ARGENTINA','AR','ARG','032')
,('ARMENIA','AM','ARM','051')
,('ARUBA','AW','ABW','533')
,('AUSTRALIA','AU','AUS','036')
,('AUSTRIA','AT','AUT','040')
,('AZERBAIJAN','AZ','AZE','031')
,('BAHAMAS','BS','BHS','044')
,('BAHRAIN','BH','BHR','048')
,('BANGLADESH','BD','BGD','050')
,('BARBADOS','BB','BRB','052')
,('BELARUS','BY','BLR','112')
,('BELGIUM','BE','BEL','056')
,('BELIZE','BZ','BLZ','084')
,('BENIN','BJ','BEN','204')
,('BERMUDA','BM','BMU','060')
,('BHUTAN','BT','BTN','064')
,('BOLIVIA','BO','BOL','068')
,('BOSNIA AND HERZEGOWINA','BA','BIH','070')
,('BOTSWANA','BW','BWA','072')
,('BOUVET ISLAND','BV','BVT','074')
,('BRAZIL','BR','BRA','076')
,('BRITISH INDIAN OCEAN TERRITORY','IO','IOT','086')
,('<NAME>','BN','BRN','096')
,('BULGARIA','BG','BGR','100')
,('BURKINA FASO','BF','BFA','854')
,('BURUNDI','BI','BDI','108')
,('CAMBODIA','KH','KHM','116')
,('CAMEROON','CM','CMR','120')
,('CANADA','CA','CAN','124')
,('CAPE VERDE','CV','CPV','132')
,('CAYMAN ISLANDS','KY','CYM','136')
,('CENTRAL AFRICAN REPUBLIC','CF','CAF','140')
,('CHAD','TD','TCD','148')
,('CHILE','CL','CHL','152')
,('CHINA','CN','CHN','156')
,('CHRISTMAS ISLAND','CX','CXR','162')
,('COCOS (KEELING) ISLANDS','CC','CCK','166')
,('COLOMBIA','CO','COL','170')
,('COMOROS','KM','COM','174')
,('CONGO, Democratic Republic of (was Zaire)','CD','COD','180')
,('CONGO, Republic of','CG','COG','178')
,('COOK ISLANDS','CK','COK','184')
,('COSTA RICA','CR','CRI','188')
,('COTE D''IVOIRE','CI','CIV','384')
,('CROATIA (local name: Hrvatska)','HR','HRV','191')
,('CUBA','CU','CUB','192')
,('CYPRUS','CY','CYP','196')
,('CZECH REPUBLIC','CZ','CZE','203')
,('DENMARK','DK','DNK','208')
,('DJIBOUTI','DJ','DJI','262')
,('DOMINICA','DM','DMA','212')
,('DOMINICAN REPUBLIC','DO','DOM','214')
,('ECUADOR','EC','ECU','218')
,('EGYPT','EG','EGY','818')
,('EL SALVADOR','SV','SLV','222')
,('EQUATORIAL GUINEA','GQ','GNQ','226')
,('ERITREA','ER','ERI','232')
,('ESTONIA','EE','EST','233')
,('ETHIOPIA','ET','ETH','231')
,('FALKLAND ISLANDS (MALVINAS)','FK','FLK','238')
,('FAROE ISLANDS','FO','FRO','234')
,('FIJI','FJ','FJI','242')
,('FINLAND','FI','FIN','246')
,('FRANCE','FR','FRA','250')
,('FRENCH GUIANA','GF','GUF','254')
,('FRENCH POLYNESIA','PF','PYF','258')
,('FRENCH SOUTHERN TERRITORIES','TF','ATF','260')
,('GABON','GA','GAB','266')
,('GAMBIA','GM','GMB','270')
,('GEORGIA','GE','GEO','268')
,('GERMANY','DE','DEU','276')
,('GHANA','GH','GHA','288')
,('GIBRALTAR','GI','GIB','292')
,('GREECE','GR','GRC','300')
,('GREENLAND','GL','GRL','304')
,('GRENADA','GD','GRD','308')
,('GUADELOUPE','GP','GLP','312')
,('GUAM','GU','GUM','316')
,('GUATEMALA','GT','GTM','320')
,('GUINEA','GN','GIN','324')
,('GUINEA-BISSAU','GW','GNB','624')
,('GUYANA','GY','GUY','328')
,('HAITI','HT','HTI','332')
,('HEARD AND MC DONALD ISLANDS','HM','HMD','334')
,('HONDURAS','HN','HND','340')
,('HONG KONG','HK','HKG','344')
,('HUNGARY','HU','HUN','348')
,('ICELAND','IS','ISL','352')
,('INDIA','IN','IND','356')
,('INDONESIA','ID','IDN','360')
,('IRAN (ISLAMIC REPUBLIC OF)','IR','IRN','364')
,('IRAQ','IQ','IRQ','368')
,('IRELAND','IE','IRL','372')
,('ISRAEL','IL','ISR','376')
,('ITALY','IT','ITA','380')
,('JAMAICA','JM','JAM','388')
,('JAPAN','JP','JPN','392')
,('JORDAN','JO','JOR','400')
,('KAZAKHSTAN','KZ','KAZ','398')
,('KENYA','KE','KEN','404')
,('KIRIBATI','KI','KIR','296')
,('KOREA, DEMOCRATIC PEOPLE''S REPUBLIC OF','KP','PRK','408')
,('KOREA, REPUBLIC OF','KR','KOR','410')
,('KUWAIT','KW','KWT','414')
,('KYRGYZSTAN','KG','KGZ','417')
,('LAO PEOPLE''S DEMOCRATIC REPUBLIC','LA','LAO','418')
,('LATVIA','LV','LVA','428')
,('LEBANON','LB','LBN','422')
,('LESOTHO','LS','LSO','426')
,('LIBERIA','LR','LBR','430')
,('<NAME>','LY','LBY','434')
,('LIECHTENSTEIN','LI','LIE','438')
,('LITHUANIA','LT','LTU','440')
,('LUXEMBOURG','LU','LUX','442')
,('MACAU','MO','MAC','446')
,('MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF','MK','MKD','807')
,('MADAGASCAR','MG','MDG','450')
,('MALAWI','MW','MWI','454')
,('MALAYSIA','MY','MYS','458')
,('MALDIVES','MV','MDV','462')
,('MALI','ML','MLI','466')
,('MALTA','MT','MLT','470')
,('MARSHALL ISLANDS','MH','MHL','584')
,('MARTINIQUE','MQ','MTQ','474')
,('MAURITANIA','MR','MRT','478')
,('MAURITIUS','MU','MUS','480')
,('MAYOTTE','YT','MYT','175')
,('MEXICO','MX','MEX','484')
,('MICRONESIA, FEDERATED STATES OF','FM','FSM','583')
,('MOLDOVA, REPUBLIC OF','MD','MDA','498')
,('MONACO','MC','MCO','492')
,('MONGOLIA','MN','MNG','496')
,('MONTSERRAT','MS','MSR','500')
,('MOROCCO','MA','MAR','504')
,('MOZAMBIQUE','MZ','MOZ','508')
,('MYANMAR','MM','MMR','104')
,('NAMIBIA','NA','NAM','516')
,('NAURU','NR','NRU','520')
,('NEPAL','NP','NPL','524')
,('NETHERLANDS','NL','NLD','528')
,('NETHERLANDS ANTILLES','AN','ANT','530')
,('NEW CALEDONIA','NC','NCL','540')
,('NEW ZEALAND','NZ','NZL','554')
,('NICARAGUA','NI','NIC','558')
,('NIGER','NE','NER','562')
,('NIGERIA','NG','NGA','566')
,('NIUE','NU','NIU','570')
,('NORFOLK ISLAND','NF','NFK','574')
,('NORTHERN MARIANA ISLANDS','MP','MNP','580')
,('NORWAY','NO','NOR','578')
,('OMAN','OM','OMN','512')
,('PAKISTAN','PK','PAK','586')
,('PALAU','PW','PLW','585')
,('PALESTINIAN TERRITORY, Occupied','PS','PSE','275')
,('PANAMA','PA','PAN','591')
,('PAPUA NEW GUINEA','PG','PNG','598')
,('PARAGUAY','PY','PRY','600')
,('PERU','PE','PER','604')
,('PHILIPPINES','PH','PHL','608')
,('PITCAIRN','PN','PCN','612')
,('POLAND','PL','POL','616')
,('PORTUGAL','PT','PRT','620')
,('PUERTO RICO','PR','PRI','630')
,('QATAR','QA','QAT','634')
,('REUNION','RE','REU','638')
,('ROMANIA','RO','ROU','642')
,('RUSSIAN FEDERATION','RU','RUS','643')
,('RWANDA','RW','RWA','646')
,('SAINT HELENA','SH','SHN','654')
,('SAINT KITTS AND NEVIS','KN','KNA','659')
,('SAINT LUCIA','LC','LCA','662')
,('SAINT PIERRE AND MIQUELON','PM','SPM','666')
,('SAINT VINCENT AND THE GRENADINES','VC','VCT','670')
,('SAMOA','WS','WSM','882')
,('SAN MARINO','SM','SMR','674')
,('SAO TOME AND PRINCIPE','ST','STP','678')
,('SAUDI ARABIA','SA','SAU','682')
,('SENEGAL','SN','SEN','686')
,('SERBIA AND MONTENEGRO','CS','SCG','891')
,('SEYCHELLES','SC','SYC','690')
,('SIERRA LEONE','SL','SLE','694')
,('SINGAPORE','SG','SGP','702')
,('SLOVAKIA','SK','SVK','703')
,('SLOVENIA','SI','SVN','705')
,('SOLOMON ISLANDS','SB','SLB','090')
,('SOMALIA','SO','SOM','706')
,('SOUTH AFRICA','ZA','ZAF','710')
,('SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS','GS','SGS','239')
,('SPAIN','ES','ESP','724')
,('SRI LANKA','LK','LKA','144')
,('SUDAN','SD','SDN','736')
,('SURINAME','SR','SUR','740')
,('SVALBARD AND JAN MAYEN ISLANDS','SJ','SJM','744')
,('SWAZILAND','SZ','SWZ','748')
,('SWEDEN','SE','SWE','752')
,('SWITZERLAND','CH','CHE','756')
,('SYRIAN ARAB REPUBLIC','SY','SYR','760')
,('TAIWAN','TW','TWN','158')
,('TAJIKISTAN','TJ','TJK','762')
,('TANZANIA, UNITED REPUBLIC OF','TZ','TZA','834')
,('THAILAND','TH','THA','764')
,('TIMOR-LESTE','TL','TLS','626')
,('TOGO','TG','TGO','768')
,('TOKELAU','TK','TKL','772')
,('TONGA','TO','TON','776')
,('TRINIDAD AND TOBAGO','TT','TTO','780')
,('TUNISIA','TN','TUN','788')
,('TURKEY','TR','TUR','792')
,('TURKMENISTAN','TM','TKM','795')
,('TURKS AND CAICOS ISLANDS','TC','TCA','796')
,('TUVALU','TV','TUV','798')
,('UGANDA','UG','UGA','800')
,('UKRAINE','UA','UKR','804')
,('UNITED ARAB EMIRATES','AE','ARE','784')
,('UNITED KINGDOM','GB','GBR','826')
,('UNITED STATES','US','USA','840')
,('UNITED STATES MINOR OUTLYING ISLANDS','UM','UMI','581')
,('URUGUAY','UY','URY','858')
,('UZBEKISTAN','UZ','UZB','860')
,('VANUATU','VU','VUT','548')
,('VATICAN CITY STATE (HOLY SEE)','VA','VAT','336')
,('VENEZUELA','VE','VEN','862')
,('VIET NAM','VN','VNM','704')
,('VIRGIN ISLANDS (BRITISH)','VG','VGB','092')
,('VIRGIN ISLANDS (U.S.)','VI','VIR','850')
,('WALLIS AND FUTUNA ISLANDS','WF','WLF','876')
,('WESTERN SAHARA','EH','ESH','732')
,('YEMEN','YE','YEM','887')
,('ZAMBIA','ZM','ZMB','894')
,('ZIMBABWE','ZW','ZWE','716');
|
create or replace package com_fos_advanced_password
as
procedure render
( p_item apex_plugin.t_item
, p_plugin in apex_plugin.t_item
, p_plugin in apex_plugin.t_plugin
, p_param in apex_plugin.t_item_render_param
, p_result in out nocopy apex_plugin.t_item_render_result
);
procedure validate
( p_item apex_plugin.t_item
, p_plugin in apex_plugin.t_item
, p_plugin in apex_plugin.t_plugin
, p_param in apex_plugin.t_item_validation_param
, p_result in out nocopy apex_plugin.t_item_validation_result
);
end;
/
|
<reponame>instaql/instaql
-- Deploy projects/totp/procedures/generate_secret to pg
-- requires: totp:procedures/generate_secret
BEGIN;
-- XXX Add DDLs here.
COMMIT;
|
create or replace package paypal_util_pkg
as
/*
Purpose: Package handles PayPal REST API
Remarks: see https://developer.paypal.com/webapps/developer/docs/api/
see https://developer.paypal.com/webapps/developer/docs/integration/direct/make-your-first-call/
see https://devtools-paypal.com/hateoas/index.html
see https://www.youtube.com/watch?v=EdkQahMUvAY
Who Date Description
------ ---------- --------------------------------
MBR 23.08.2014 Created
MBR 06.03.2016 Procedure to set API base URL
*/
-- access token
type t_access_token is record (
access_token varchar2(4000),
token_type varchar2(255),
duration_seconds number,
created_date date,
expires_date date
);
-- payment
type t_payment is record (
payment_id varchar2(255),
intent varchar2(255),
state varchar2(255),
approval_url varchar2(4000)
);
-- payment experience flow config
type t_pe_flow_config is record (
landing_page_type varchar2(255)
);
-- payment experience input fields
type t_pe_input_fields is record (
allow_note boolean,
no_shipping pls_integer,
address_override pls_integer
);
-- payment experience presentation
type t_pe_presentation is record (
brand_name varchar2(255),
logo_image varchar2(255),
locale_code varchar2(255)
);
-- payment web experience profile
type t_payment_experience is record (
payment_experience_id varchar2(255),
payment_experience_name varchar2(255),
flow_config t_pe_flow_config,
input_fields t_pe_input_fields,
presentation t_pe_presentation
);
-- payment states
g_state_created constant varchar2(255) := 'created';
g_state_approved constant varchar2(255) := 'approved';
g_state_failed constant varchar2(255) := 'failed';
g_state_canceled constant varchar2(255) := 'canceled';
g_state_expired constant varchar2(255) := 'expired';
-- set API base URL
procedure set_api_base_url (p_sandbox_url in varchar2,
p_live_url in varchar2);
-- switch to sandbox (test) environment
procedure switch_to_sandbox;
-- set SSL wallet properties
procedure set_wallet (p_wallet_path in varchar2,
p_wallet_password in varchar2);
-- get access token for other API requests
function get_access_token (p_client_id in varchar2,
p_secret in varchar2) return t_access_token;
-- create payment
function create_payment (p_access_token in t_access_token,
p_amount in number,
p_currency in varchar2,
p_description in varchar2,
p_return_url in varchar2,
p_cancel_url in varchar2,
p_payment_experience_id in varchar2 := null) return t_payment;
-- execute payment
function execute_payment (p_access_token in t_access_token,
p_payment_id in varchar2,
p_payer_id in varchar2) return t_payment;
-- get payment
function get_payment (p_access_token in t_access_token,
p_payment_id in varchar2) return t_payment;
-- create payment experience
function create_payment_experience (p_access_token in t_access_token,
p_payment_experience in t_payment_experience) return varchar2;
-- delete payment experience
procedure delete_payment_experience (p_access_token in t_access_token,
p_payment_experience_id in varchar2);
end paypal_util_pkg;
/
|
<reponame>Shuttl-Tech/antlr_psql<gh_stars>10-100
-- file:insert_conflict.sql ln:379 expect:true
insert into testoids values(1, '1') on conflict (key) do update set data = excluded.data RETURNING *
|
<filename>Trader.Data.Sql.Database/Procedures/SetOrder.sql
CREATE PROCEDURE [dbo].[SetOrder]
@Symbol NVARCHAR(100),
@OrderId BIGINT,
@OrderListId BIGINT,
@ClientOrderId NVARCHAR(100),
@Price DECIMAL (18,8),
@OriginalQuantity DECIMAL (18,8),
@ExecutedQuantity DECIMAL (18,8),
@CummulativeQuoteQuantity DECIMAL (18,8),
@OriginalQuoteOrderQuantity DECIMAL (18,8),
@Status INT,
@TimeInForce INT,
@Type INT,
@Side INT,
@StopPrice DECIMAL (18,8),
@IcebergQuantity DECIMAL (18,8),
@Time DATETIME2(7),
@UpdateTime DATETIME2(7),
@IsWorking BIT
AS
SET XACT_ABORT ON;
SET NOCOUNT ON;
DECLARE @SymbolId INT;
EXECUTE [dbo].[GetOrAddSymbol] @Name = @Symbol, @Id = @SymbolId OUT;
WITH [Source] AS
(
SELECT
@SymbolId AS [SymbolId],
@OrderId AS [OrderId],
@OrderListId AS [OrderListId],
@ClientOrderId AS [ClientOrderId],
@Price AS [Price],
@OriginalQuantity AS [OriginalQuantity],
@ExecutedQuantity AS [ExecutedQuantity],
@CummulativeQuoteQuantity AS [CummulativeQuoteQuantity],
@OriginalQuoteOrderQuantity AS [OriginalQuoteOrderQuantity],
@Status AS [Status],
@TimeInForce AS [TimeInForce],
@Type AS [Type],
@Side AS [Side],
@StopPrice AS [StopPrice],
@IcebergQuantity AS [IcebergQuantity],
@Time AS [Time],
@UpdateTime AS [UpdateTime],
@IsWorking AS [IsWorking]
)
MERGE INTO [dbo].[Order] WITH (UPDLOCK, HOLDLOCK) AS [T]
USING [Source] AS [S]
ON [S].[SymbolId] = [T].[SymbolId]
AND [S].[OrderId] = [T].[OrderId]
WHEN NOT MATCHED BY TARGET THEN
INSERT
(
[SymbolId],
[OrderId],
[OrderListId],
[ClientOrderId],
[Price],
[OriginalQuantity],
[ExecutedQuantity],
[CummulativeQuoteQuantity],
[OriginalQuoteOrderQuantity],
[Status],
[TimeInForce],
[Type],
[Side],
[StopPrice],
[IcebergQuantity],
[Time],
[UpdateTime],
[IsWorking]
)
VALUES
(
[SymbolId],
[OrderId],
[OrderListId],
[ClientOrderId],
[Price],
[OriginalQuantity],
[ExecutedQuantity],
[CummulativeQuoteQuantity],
[OriginalQuoteOrderQuantity],
[Status],
[TimeInForce],
[Type],
[Side],
[StopPrice],
[IcebergQuantity],
[Time],
[UpdateTime],
[IsWorking]
)
WHEN MATCHED AND [T].[IsTransient] = 1 AND [S].[UpdateTime] >= [T].[UpdateTime] THEN
UPDATE SET
[OrderListId] = [S].[OrderListId],
[ClientOrderId] = [S].[ClientOrderId],
[Price] = [S].[Price],
[OriginalQuantity] = [S].[OriginalQuantity],
[ExecutedQuantity] = [S].[ExecutedQuantity],
[CummulativeQuoteQuantity] = [S].[CummulativeQuoteQuantity],
[OriginalQuoteOrderQuantity] = [S].[OriginalQuoteOrderQuantity],
[Status] = [S].[Status],
[TimeInForce] = [S].[TimeInForce],
[Type] = [S].[Type],
[Side] = [S].[Side],
[StopPrice] = [S].[StopPrice],
[IcebergQuantity] = [S].[IcebergQuantity],
[Time] = [S].[Time],
[UpdateTime] = [S].[UpdateTime],
[IsWorking] = [S].[IsWorking]
;
RETURN 0
GO
|
<reponame>RMTT/gpupgrade<gh_stars>10-100
-- Copyright (c) 2017-2021 VMware, Inc. or its affiliates
-- SPDX-License-Identifier: Apache-2.0
-- Columns having an index on a tsquery column can't be altered, so generate a drop statement for them
SELECT $$DROP INDEX $$ || pg_catalog.quote_ident(n.nspname) || '.' || pg_catalog.quote_ident(xc.relname) || ';'
FROM
pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON c.relnamespace = n.oid
JOIN pg_index x ON c.oid = x.indrelid
JOIN pg_class xc ON x.indexrelid = xc.oid
WHERE
EXISTS (
SELECT 1 FROM pg_catalog.pg_attribute
WHERE attrelid = c.oid
AND attnum = ANY(x.indkey)
AND atttypid = 'pg_catalog.tsquery'::pg_catalog.regtype
AND NOT attisdropped
)
AND c.relkind = 'r'
AND xc.relkind = 'i'
AND n.nspname NOT LIKE 'pg_temp_%'
AND n.nspname NOT LIKE 'pg_toast_temp_%'
AND n.nspname NOT IN ('pg_catalog',
'information_schema')
AND c.oid NOT IN
(SELECT DISTINCT parchildrelid
FROM pg_catalog.pg_partition_rule);
-- generates alter statement to modify tsquery datatype to text datatype
WITH distcols AS
(
SELECT localoid, unnest(attrnums) attnum
FROM gp_distribution_policy
),
partitionedKeys AS
(
SELECT DISTINCT parrelid, unnest(paratts) att_num
FROM pg_catalog.pg_partition p
)
SELECT
'DO $$ BEGIN ALTER TABLE ' ||
pg_catalog.quote_ident(n.nspname) || '.' || pg_catalog.quote_ident(c.relname) ||
' ALTER COLUMN ' || pg_catalog.quote_ident(a.attname) ||
' TYPE VARCHAR(63); EXCEPTION WHEN feature_not_supported THEN PERFORM pg_temp.notsupported(''' ||
c.oid::pg_catalog.regclass || '''); END $$;'
FROM
pg_catalog.pg_class c,
pg_catalog.pg_namespace n,
pg_catalog.pg_attribute a
LEFT JOIN distcols
ON a.attnum = distcols.attnum
AND a.attrelid = distcols.localoid
LEFT JOIN partitionedKeys
ON a.attnum = partitionedKeys.att_num
AND a.attrelid = partitionedKeys.parrelid
WHERE
-- exclude table entries which has a distribution key using tsquery data type
distcols.attnum IS NULL
-- exclude partition tables entries which has partition columns using tsquery data type
AND partitionedKeys.parrelid IS NULL
-- exclude inherited columns
AND a.attinhcount = 0
AND c.relkind = 'r'
AND c.oid = a.attrelid
AND NOT a.attisdropped
AND a.atttypid = 'pg_catalog.tsquery'::pg_catalog.regtype
AND c.relnamespace = n.oid
AND n.nspname NOT LIKE 'pg_temp_%'
AND n.nspname NOT LIKE 'pg_toast_temp_%'
AND n.nspname NOT IN ('pg_catalog',
'information_schema')
-- exclude child partitions
AND c.oid NOT IN
(SELECT DISTINCT parchildrelid
FROM pg_catalog.pg_partition_rule)
;
|
<filename>DB NEW/warnasol.sql
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 27 Des 2019 pada 12.40
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.2.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `warnasol`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `cart`
--
CREATE TABLE `cart` (
`id_cart` varchar(20) NOT NULL,
`tanggal` datetime NOT NULL,
`kode` varchar(11) NOT NULL,
`nama` varchar(50) NOT NULL,
`harga` varchar(10) NOT NULL,
`qty` varchar(10) NOT NULL,
`jumlah` varchar(10) NOT NULL,
`session` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `cart`
--
INSERT INTO `cart` (`id_cart`, `tanggal`, `kode`, `nama`, `harga`, `qty`, `jumlah`, `session`) VALUES
('20180206152934', '2018-02-06 15:29:34', '58', 'Oseng Kacan', '6000', '1', '6000', '20170820071826');
-- --------------------------------------------------------
--
-- Struktur dari tabel `customer`
--
CREATE TABLE `customer` (
`kd_cus` varchar(20) NOT NULL,
`nama` varchar(30) NOT NULL,
`alamat` varchar(50) NOT NULL,
`no_telp` varchar(15) NOT NULL,
`username` varchar(15) NOT NULL,
`password` text NOT NULL,
`gambar` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `customer`
--
INSERT INTO `customer` (`kd_cus`, `nama`, `alamat`, `no_telp`, `username`, `password`, `gambar`) VALUES
('20170820071826', '<PASSWORD>', '<PASSWORD>', '<PASSWORD>', '<PASSWORD>', '<PASSWORD>', '../admin/gambar_customer/images.jpg'),
('20180205073805', 'niqoweb', 'niqoweb', 'niqoweb', 'niqoweb', '6414e69bf25357d8d63353f469b35a7416963ab1', ''),
('20191227111858', '<NAME>', 'kaligandu', '085602290504', 'ekanoviana', '<PASSWORD>', '');
-- --------------------------------------------------------
--
-- Struktur dari tabel `konfirmasi`
--
CREATE TABLE `konfirmasi` (
`id_kon` int(6) NOT NULL,
`nopo` varchar(20) NOT NULL,
`kd_cus` varchar(20) NOT NULL,
`bayar_via` varchar(30) NOT NULL,
`tanggal` datetime NOT NULL,
`jumlah` int(10) NOT NULL,
`bukti_transfer` varchar(50) NOT NULL,
`status` enum('Bayar','Belum') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `konfirmasi`
--
INSERT INTO `konfirmasi` (`id_kon`, `nopo`, `kd_cus`, `bayar_via`, `tanggal`, `jumlah`, `bukti_transfer`, `status`) VALUES
(20, '20180205073805', '20180205073805', '0', '2018-02-05 07:38:37', 26000, '0', 'Belum'),
(22, '20170820071826', '20170820071826', 'Cash On Delivery (CO', '2018-02-05 09:44:53', 21000, '0', 'Belum');
-- --------------------------------------------------------
--
-- Struktur dari tabel `po`
--
CREATE TABLE `po` (
`nopo` varchar(20) NOT NULL,
`tanggalkirim` date NOT NULL,
`status` enum('Proses','Selesai','Terkirim','') NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `po_terima`
--
CREATE TABLE `po_terima` (
`id` int(10) NOT NULL,
`nopo` varchar(20) NOT NULL,
`kd_cus` varchar(20) NOT NULL,
`kode` int(4) NOT NULL,
`tanggal` datetime NOT NULL,
`qty` int(8) NOT NULL,
`total` int(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `po_terima`
--
INSERT INTO `po_terima` (`id`, `nopo`, `kd_cus`, `kode`, `tanggal`, `qty`, `total`) VALUES
(38, '20180205073805', '20180205073805', 17, '2018-02-05 07:38:23', 2, 26000),
(39, '20170820071826', '20170820071826', 57, '2018-02-05 09:44:15', 1, 6000),
(40, '20170820071826', '20170820071826', 54, '2018-02-05 09:44:19', 1, 15000);
-- --------------------------------------------------------
--
-- Struktur dari tabel `produk`
--
CREATE TABLE `produk` (
`kode` int(10) NOT NULL,
`nama` varchar(30) NOT NULL,
`jenis` varchar(20) NOT NULL,
`harga` int(10) NOT NULL,
`keterangan` text NOT NULL,
`stok` int(3) NOT NULL,
`gambar` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `produk`
--
INSERT INTO `produk` (`kode`, `nama`, `jenis`, `harga`, `keterangan`, `stok`, `gambar`) VALUES
(17, 'Simply Pink', 'Hand Bouquet', 175000, 'Sofie bouquet yang tampak lembut dengan perpaduan warna pastel dalam pemilihan bunganya. ', 18, 'gambar_produk/wed11.jpg'),
(18, 'Sweet Viola', 'Hand Bouquet', 393000, 'Viola Bouquet dengan nuansa soft purple yang tampak cantik dan mewah.', 10, 'gambar_produk/wed2.jpg'),
(19, 'Romantic Blue', 'Hand Bouquet', 345000, 'Romantic blue yang terdiri dari bunga-bunga berwarna soft namun memberikan nuansa romantic.', 12, 'gambar_produk/wed3.jpg'),
(20, 'Soft Lavender', 'Hand Bouquet', 342500, 'Perpaduan bunga berwarna soft yang tampak elegan dilengkapi dengan hiasan bunga lavender', 7, 'gambar_produk/wed4.jpg'),
(21, 'Rustic Flow', 'Hand Bouquet', 278000, 'Bouqet yang bernuansa sederhana, namun tampak sangat elok dipandang', 5, 'gambar_produk/wed5.jpg'),
(22, 'Tiny Baby\'s Breath', 'Hand Bouquet', 315000, 'Bouqet yang berisi bunga baby\'s breath ini tampak mungil dan imut, namun berkesan sangat modern', 7, 'gambar_produk/wed6.jpg'),
(23, 'Lovable White', 'Hand Bouquet', 325000, 'Bouquet bernuansa putih yang tampak lembut dan manis', 13, 'gambar_produk/wed7.jpg'),
(24, 'Beloved Rose', 'Hand Bouquet', 352500, 'Perpaduan dari berbagai bunga yang tampak romantis untuk orang yang manis', 4, 'gambar_produk/wed8.jpg'),
(25, 'Kindly Florie', 'Hand Bouquet', 299500, 'Bouquet dengan perpaduan berbagai bunga namun bernuansa soft dan kindly', 9, 'gambar_produk/wed9.jpg'),
(26, 'Pretty Flow', 'Hand Bouquet', 387000, 'Bouquet yang berisikan banyak macam bunga dan tampak sangat pretty dengan warna-warninya', 19, 'gambar_produk/wed10.jpg');
-- --------------------------------------------------------
--
-- Struktur dari tabel `produk_funeral`
--
CREATE TABLE `produk_funeral` (
`kode` int(11) NOT NULL,
`nama` varchar(30) NOT NULL,
`jenis` varchar(20) NOT NULL,
`harga` int(10) NOT NULL,
`keterangan` text NOT NULL,
`stok` int(3) NOT NULL,
`gambar` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `produk_funeral`
--
INSERT INTO `produk_funeral` (`kode`, `nama`, `jenis`, `harga`, `keterangan`, `stok`, `gambar`) VALUES
(1, 'Red Sorrow', 'Funeral Flower', 375000, 'rangkaian bunga yang didominasi warna merah gelap yang melambangkan kesedihan', 2, 'gambar_produk/funeral 1.jpg'),
(2, 'Wistful Yellow', 'Funeral Flower', 315000, 'karangan bunga yang penuh dengan warna kuning yang bernuansa kesedihan', 5, 'gambar_produk/funeral 2.jpg'),
(3, 'Miserable Rose', 'Funeral Flower', 289500, 'karangan bunga yang terdiri dari bunga mawar warna merah gelap dan perpaduan dengan warna hitam tampak memberi kesan duka cita', 6, 'gambar_produk/funeral 3.jpg'),
(4, 'Pathetic Flow', 'Funeral Flower', 320000, 'rangkaian bunga yang terdiri dari perpaduan warna merah dan kuning serta disusun sedemikian rupa memberikan kesan duka cita', 0, 'gambar_produk/funeral 4.jpg'),
(5, 'White Mournful', 'Funeral Flower', 335000, 'perpaduan bunga warna putih yang dirangkai sedemikian rupa memberi kesan kesedihan yang mendalam', 2, 'gambar_produk/funeral 5.jpg'),
(6, 'White Mirthless', 'Funeral Flower', 295000, 'karangan bunga bernuansa putih yang tampak sayu dan memberi kesan duka cita', 6, 'gambar_produk/funeral 6.jpg'),
(7, 'Ruthful Orange', 'Funeral Flower', 380000, 'karangan bunga bernuansa orange dan dilengkapi dengan foto mendiang memberi kesan duka cita yang tak terlupakan', 0, 'gambar_produk/funeral 7.jpg'),
(8, 'Woeful Rose', 'Funeral Flower', 395000, 'karangan bunga yang disusun dari mawar merah dan mawar putih tampak memberi kesan kesedihan ', 8, 'gambar_produk/funeral 8.jpg'),
(9, 'Simply Plaintive', 'Funeral Flower', 180000, 'bunga warna putih yang simple dipadukan dengan hiasan daun dan kain hitam yang berkesan duka cita', 12, 'gambar_produk/funeral 9.jpg'),
(10, 'Cheerless Voila', 'Funeral Flower', 260000, 'bunga bernuansa ungu yang tampak pilu memberi kesan kesedihan yang mendalam', 3, 'gambar_produk/funeral 10.jpg');
-- --------------------------------------------------------
--
-- Struktur dari tabel `produk_graduate`
--
CREATE TABLE `produk_graduate` (
`kode` int(11) NOT NULL,
`nama` varchar(30) NOT NULL,
`jenis` varchar(20) NOT NULL,
`harga` int(10) NOT NULL,
`keterangan` text NOT NULL,
`stok` int(3) NOT NULL,
`gambar` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `produk_graduate`
--
INSERT INTO `produk_graduate` (`kode`, `nama`, `jenis`, `harga`, `keterangan`, `stok`, `gambar`) VALUES
(1, 'Cheerfull Salm', 'Graduation Bouquet', 175000, 'sekumpulan bunga mawar berwarna soft dan dihiasi dengan nuansa warna salm yang tampak kalem', 27, 'gambar_produk/grad1.jpg'),
(2, 'Snazzy Flow', 'Graduation Bouquet', 215000, 'Bouquet yang sangat cantik yang berisikan bermacam-macam bunga yang berwarna-warni', 25, 'gambar_produk/grad2.jpg'),
(3, 'Happy Sunflow', 'Graduation Bouquet', 187500, 'Bouquet yang tampak ceria yang dilengkapi dengan bunga matahari yang sangat manis', 21, 'gambar_produk/grad3.jpg'),
(4, 'Sweet Tulip', 'Graduation Bouquet', 225000, 'Bouquet yang kalem dan lucu ini berisikan bunga tulip yang bernuansa soft', 18, 'gambar_produk/grad4.jpg'),
(5, 'Pinky Baby\'s Breath', 'Graduation Bouquet', 195000, 'Bouquet yang lucu ini terdiri dari bunga baby\'s breath yang mewah dan dilengkapi dengan beberapa tangkai mawar berwarna pink', 23, 'gambar_produk/grad5.jpg'),
(6, 'Lovable Rose', 'Graduation Bouquet', 245000, 'Sekumpulan mawar pink yang tampak cantik dijadikan sebuah bouquet', 29, 'gambar_produk/grad6.jpg'),
(7, 'Sweet Lavender', 'Graduation Bouquet', 168000, 'Bouquet bernuansa ungu yang terdiri dari bunga lavender dan bunga-bunga ungu lainnya', 17, 'gambar_produk/grad7.jpg'),
(8, 'Memorable Rose', 'Graduation Bouquet', 265500, 'Bouquet yang tampak manis berisikan mawar merah yang tentunya akan memorable :-)', 27, 'gambar_produk/grad8.jpg'),
(9, 'Simply Carnetion', 'Graduation Bouquet', 187500, 'Bouquet yang berkesan simple dan elegan, dilengkapi dengan bunga anyelir yang manis', 19, 'gambar_produk/grad9.jpg'),
(10, 'Pretty Viola', 'Graduation Bouquet', 210000, 'Bouquet bernuansa violet yang dilengkapi dengan bermacam-macam bunga berwarna ungu yang tampak pretty', 15, 'gambar_produk/grad10.jpg');
-- --------------------------------------------------------
--
-- Struktur dari tabel `produk_tangkai`
--
CREATE TABLE `produk_tangkai` (
`kode` int(11) NOT NULL,
`nama` varchar(30) NOT NULL,
`jenis` varchar(20) NOT NULL,
`harga` int(11) NOT NULL,
`keterangan` text NOT NULL,
`stok` int(3) NOT NULL,
`gambar` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `produk_tangkai`
--
INSERT INTO `produk_tangkai` (`kode`, `nama`, `jenis`, `harga`, `keterangan`, `stok`, `gambar`) VALUES
(1, 'Tulip', 'Single Flower', 23000, 'tersedia dalam berbagai warna : putih, pink, merah, biru, kuning', 57, 'gambar_produk/tangkai1tulip.jpg'),
(2, 'Lily', 'Single Flower', 21500, 'Bunga Lily yang cantik ini tersedia dalam beberapa warna : kuning, pink, putih, merah', 63, 'gambar_produk/tangkai2lily.jpg'),
(3, 'Rose', 'Single Flower', 24500, 'bunga mawar merah yang tampak mempesona dan memberikan kesan romantis', 78, 'gambar_produk/tangkai3rose.jpg'),
(4, 'Wildflow', 'Single Flower', 18000, 'bunga wildflow yang mungil ini tampak lucu dan menggemaskan', 43, 'gambar_produk/tangkai4wildflowers.jpg'),
(5, 'Carnation', 'Single Flower', 17000, 'bunga anyelir yang sederhana namun tampak mempesona', 45, 'gambar_produk/tangkai5carnation.jpg'),
(6, 'Daisy', 'Single Flower', 20500, 'bunga daisy yang ceria ini tersedia dalam berbagai warna : putih, kuning, pink, salm, merah', 78, 'gambar_produk/tangkai6daisy.jpg'),
(7, 'Orchid', 'Single Flower', 16500, 'bunga orchid yang kecil mungil ini tampak unik dengan bentuknya', 67, 'gambar_produk/tangkai7orchid.jpg'),
(8, 'Lavender', 'Single Flower', 18500, 'bunga lavender yang kecil dan imut, tapi tampak sangat romantis dan menawan', 53, 'gambar_produk/tangkai8lavender.jpg'),
(9, 'Sunflower', 'Single Flower', 23500, 'bunga matahari yang menawan ini tampak sangat ceria dan meningkatkan mood', 57, 'gambar_produk/tangkai9sunflow.jpg'),
(10, 'Dahlia', 'Single Flower', 19000, 'bunga dahlia yang tampak mewah ini tersedia dalam beberapa warna : pink, kuning, putih, biru, merah', 79, 'gambar_produk/tangkai10dahlia.jpg');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tmp_po_terima`
--
CREATE TABLE `tmp_po_terima` (
`id` int(10) NOT NULL,
`nopo` varchar(10) NOT NULL,
`kd_cus` varchar(10) NOT NULL,
`kode` int(4) NOT NULL,
`tanggal` date NOT NULL,
`qty` int(8) NOT NULL,
`total` int(8) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE `user` (
`user_id` int(10) NOT NULL,
`username` varchar(30) NOT NULL,
`password` text NOT NULL,
`fullname` varchar(30) NOT NULL,
`gambar` varchar(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `user`
--
INSERT INTO `user` (`user_id`, `username`, `password`, `fullname`, `gambar`) VALUES
(1, 'hakko', '<PASSWORD>', '<PASSWORD>ko Bio Richard', 'gambar_admin/hakkoblogs.jpg');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id_cart`);
--
-- Indeks untuk tabel `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`kd_cus`);
--
-- Indeks untuk tabel `konfirmasi`
--
ALTER TABLE `konfirmasi`
ADD PRIMARY KEY (`id_kon`);
--
-- Indeks untuk tabel `po`
--
ALTER TABLE `po`
ADD PRIMARY KEY (`nopo`);
--
-- Indeks untuk tabel `po_terima`
--
ALTER TABLE `po_terima`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `produk`
--
ALTER TABLE `produk`
ADD PRIMARY KEY (`kode`);
--
-- Indeks untuk tabel `produk_funeral`
--
ALTER TABLE `produk_funeral`
ADD PRIMARY KEY (`kode`);
--
-- Indeks untuk tabel `produk_graduate`
--
ALTER TABLE `produk_graduate`
ADD PRIMARY KEY (`kode`);
--
-- Indeks untuk tabel `produk_tangkai`
--
ALTER TABLE `produk_tangkai`
ADD PRIMARY KEY (`kode`);
--
-- Indeks untuk tabel `tmp_po_terima`
--
ALTER TABLE `tmp_po_terima`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `konfirmasi`
--
ALTER TABLE `konfirmasi`
MODIFY `id_kon` int(6) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23;
--
-- AUTO_INCREMENT untuk tabel `po_terima`
--
ALTER TABLE `po_terima`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- AUTO_INCREMENT untuk tabel `produk`
--
ALTER TABLE `produk`
MODIFY `kode` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27;
--
-- AUTO_INCREMENT untuk tabel `produk_funeral`
--
ALTER TABLE `produk_funeral`
MODIFY `kode` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT untuk tabel `produk_graduate`
--
ALTER TABLE `produk_graduate`
MODIFY `kode` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT untuk tabel `produk_tangkai`
--
ALTER TABLE `produk_tangkai`
MODIFY `kode` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT untuk tabel `tmp_po_terima`
--
ALTER TABLE `tmp_po_terima`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT untuk tabel `user`
--
ALTER TABLE `user`
MODIFY `user_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 */;
|
CREATE DATABASE IF NOT EXISTS db1;
USE db1;
CREATE TABLE IF NOT EXISTS t1(a int, b varchar);
INSERT INTO t1 VALUES(1, 'v1'),(2,'v2');
SELECT * FROM t1;
DROP TABLE t1;
DROP DATABASE db1;
|
-- #创建一张新闻表,
-- 1:表名 xz_news
-- 2:几列 4列
-- 3:列名 id / title / img_url / ctime / point/content
-- 4:类型 int varchar(255) varchar(255) /datatime / int /varchar(2000)
-- 5:添加20条
CREATE TABLE xz_news(
id INT AUTO_INCREMENT PRIMARY KEY ,
title VARCHAR(255),
img_url VARCHAR(255),
ctime DATATIME,
point Int,
content VARCHAR(2000)
) |
<gh_stars>0
ALTER TABLE cron_scripts
DROP COLUMN frequency_s;
|
<filename>src/test/resources/com/foundationdb/sql/unparser/alter-table-27.sql
ALTER TABLE test.t DROP PRIMARY KEY |
<filename>packaging/dbscripts/upgrade/03_05_0050_event_notification_methods.sql<gh_stars>1-10
-- DROP event_notification_methods - redundant table
ALTER TABLE event_subscriber DROP CONSTRAINT fk_event_subscriber_event_notification_methods;
DROP TABLE event_notification_methods ;
-- save EventNotificationMethod as string with constraint.
ALTER TABLE event_subscriber ADD COLUMN notification_method CHARACTER VARYING(32) DEFAULT 'EMAIL'
CHECK (notification_method IN ('EMAIL', 'SNMP_TRAP'));
ALTER TABLE event_subscriber DROP CONSTRAINT pk_event_subscriber;
ALTER TABLE event_subscriber
ADD CONSTRAINT pk_event_subscriber PRIMARY KEY (subscriber_id, event_up_name, notification_method, tag_name);
ALTER TABLE event_subscriber DROP COLUMN method_id;
ALTER TABLE event_subscriber ALTER notification_method SET NOT NULL;
------------------------------------------------------------------------------------------
-- Remove the connection between a subscription address and the subscribing system user --
------------------------------------------------------------------------------------------
-- Up to this change if a subscriber had no email it's address was taken from the users table
-- this behaviour is removed from here on.
UPDATE event_subscriber AS es
SET method_address = u.email
FROM event_subscriber AS es2
INNER JOIN users u ON es2.subscriber_id = u.user_id
WHERE (es.method_address is NULL OR trim(both from es.method_address) = '');
-- change events history table
ALTER TABLE event_notification_hist DROP COLUMN subscriber_id;
|
select *
from {{ var('item') }}
|
<reponame>test-coverage-enforce-bot/wso2-ode<filename>schema-updates/update02.sql
create table ODE_JOB_BAK as select * from ODE_JOB;
alter table ODE_JOB add instanceId number(37);
alter table ODE_JOB add mexId varchar(255);
alter table ODE_JOB add processId varchar(255);
alter table ODE_JOB add type varchar(255);
alter table ODE_JOB add channel varchar(255);
alter table ODE_JOB add correlatorId varchar(255);
alter table ODE_JOB add correlationKeySet varchar(255);
alter table ODE_JOB add retryCount int;
alter table ODE_JOB add inMem int;
alter table ODE_JOB add priority int;
alter table ODE_JOB add detailsExt blob;
update ODE_JOB oj set detailsExt = (select details from ODE_JOB where jobid = oj.jobid);
alter table ODE_JOB drop column details;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.