sql stringlengths 6 1.05M |
|---|
ALTER TABLE WebHookEvents ADD COLUMN newWebHookId VARCHAR(100);
UPDATE WebHookEvents SET newWebHookId = webHookId;
ALTER TABLE WebHooks ADD COLUMN newWebHookId VARCHAR(100);
UPDATE WebHooks SET newWebHookId = webHookId;
ALTER TABLE WebHookEvents ALTER COLUMN newWebHookId SET NOT NULL;
ALTER TABLE WebHooks ALTER COLUMN newWebHookId SET NOT NULL;
ALTER TABLE WebHookEvents DROP COLUMN webHookId;
ALTER TABLE WebHooks DROP COLUMN webHookId;
ALTER TABLE WebHookEvents RENAME COLUMN newWebHookId TO webHookId;
ALTER TABLE WebHooks RENAME COLUMN newWebHookId TO webHookId;
ALTER TABLE WebHooks ADD PRIMARY KEY (webHookId);
ALTER TABLE WebHookEvents ADD FOREIGN KEY (webHookId) REFERENCES WebHooks;
|
<filename>backend/web/uploads/staylance.sql
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 27, 2015 at 03:10 PM
-- Server version: 5.5.46-0ubuntu0.14.04.2
-- PHP Version: 5.5.9-1ubuntu4.14
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: `staylance`
--
-- --------------------------------------------------------
--
-- Table structure for table `about_host`
--
CREATE TABLE IF NOT EXISTS `about_host` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`about` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`video` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `about_hosts_area`
--
CREATE TABLE IF NOT EXISTS `about_hosts_area` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`doctor` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bus_staion` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`shop` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bus_top` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`town` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`airport` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`cash_machine` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`train_station` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`what_to_do` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`travel_tips` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`car` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `about_hosts_life`
--
CREATE TABLE IF NOT EXISTS `about_hosts_life` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`life_agenda` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`best_thing_in_life` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`music` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`film` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`food` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`book` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`do_not_like` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`counteries_travelled` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`counteries_like_to_travell` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`favourite_country` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`why_host` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`travel_qoute` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`anything_special` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`anything_else` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `available_date_ranges`
--
CREATE TABLE IF NOT EXISTS `available_date_ranges` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`hosts_availability_id` int(11) NOT NULL,
`start_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`end_date` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `cms_pages`
--
CREATE TABLE IF NOT EXISTS `cms_pages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `cms_pages`
--
INSERT INTO `cms_pages` (`id`, `created_at`, `updated_at`, `status`) VALUES
(1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0),
(2, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0),
(3, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 1),
(4, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0);
-- --------------------------------------------------------
--
-- Table structure for table `cms_pagesLang`
--
CREATE TABLE IF NOT EXISTS `cms_pagesLang` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`page_id` int(11) NOT NULL,
`language` varchar(6) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`),
KEY `page_id` (`page_id`),
KEY `language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=12 ;
--
-- Dumping data for table `cms_pagesLang`
--
INSERT INTO `cms_pagesLang` (`id`, `page_id`, `language`, `title`, `content`) VALUES
(1, 1, 'ru', '', ''),
(2, 1, 'en', 'Inner Page', 'my only'),
(3, 2, 'de', 'this german', 'asfasf'),
(4, 2, 'es', 'this is spanish', 'sadasd'),
(5, 2, 'en', 'Inner Page', 'fgdfshdsfhdfgh'),
(6, 3, 'de', 'this germanTitle', '<p> adsfdfsdfsdfsdfsadsafsdfsfsagadfsasdfsadfsad</p>'),
(7, 3, 'es', 'this is spanishTile', '<p> zcZCzCZXczewfwq faasdcsaczxczffrrg</p>'),
(8, 3, 'en', 'djkslahfhklsdfh', '<p> fsfdasf dfgfgfs dfgsdfg sdvsdvsdvs sfvsdfgdsfgdsxc sdsadfasfdsadfasdfsadfdf</p>'),
(9, 4, 'de', 'German Title', '<p>yugbkygkg kgk gk gkg kgjk</p>'),
(10, 4, 'es', 'Spanish Title', '<p>hjbhb hjb k gkjghkj hkjkh kh kgkgkh k hkjk k gh kgkgk</p>'),
(11, 4, 'en', 'English Page Title', '<p>jjh jhg gkg gkg kgh gk</p>');
-- --------------------------------------------------------
--
-- Table structure for table `hosts`
--
CREATE TABLE IF NOT EXISTS `hosts` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`profile_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`birthday` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`adress` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`mobile_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`home_phone` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`facebook` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`host_type` int(11) NOT NULL,
`about_host` int(11) NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ;
--
-- Dumping data for table `hosts`
--
INSERT INTO `hosts` (`id`, `user_id`, `name`, `profile_name`, `birthday`, `adress`, `mobile_phone`, `home_phone`, `facebook`, `host_type`, `about_host`, `created_at`, `updated_at`) VALUES
(1, 2, '<NAME>', 'Rehan', '34', '306 R', '+923016582582', '+923016582582', 'rehan', 1, 1, 1448288401, 1448288401),
(2, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582582', 'www.facebook.com/rehanbsit', 1, 2, 1448360873, 1448360873),
(3, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582582', 'www.facebook.com/rehanbsit', 1, 2, 1448361064, 1448361064),
(4, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582582', 'www.facebook.com/rehanbsit', 1, 2, 1448361201, 1448361201),
(5, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582582', 'www.facebook.com/rehanbsit', 1, 2, 1448361213, 1448361213),
(6, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582580', 'www.facebook.com/rehanbsit', 1, 2, 1448361238, 1448361238),
(7, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582580', 'www.facebook.com/rehanbsit', 1, 2, 1448361335, 1448361335),
(8, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582580', 'www.facebook.com/rehanbsit', 1, 2, 1448361436, 1448361436),
(9, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582580', 'www.facebook.com/rehanbsit', 1, 2, 1448361467, 1448361467),
(10, 8, 'Rehan', '<NAME>', '10/04/1994', '306 R block johar town lahore', '03016582582', '03016582580', 'www.facebook.com/rehanbsit', 1, 2, 1448361517, 1448361517);
-- --------------------------------------------------------
--
-- Table structure for table `hosts_accommodation`
--
CREATE TABLE IF NOT EXISTS `hosts_accommodation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`number_of_places` int(11) NOT NULL,
`type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bedrooms` int(11) NOT NULL,
`bedroom_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`beds` int(11) NOT NULL,
`bathroom` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bathroom_facilities` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_artistic_help`
--
CREATE TABLE IF NOT EXISTS `hosts_artistic_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`painting` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`sculpting` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`bother` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_availability`
--
CREATE TABLE IF NOT EXISTS `hosts_availability` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`number_of_staylancers` int(11) NOT NULL,
`can_not_host` int(11) NOT NULL,
`availabe_dates` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`help` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`share` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`pay` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_average_weekdays`
--
CREATE TABLE IF NOT EXISTS `hosts_average_weekdays` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`breakfast` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`lunch` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`dinner` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`more_information` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`smoking` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`anything_else` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_foods`
--
CREATE TABLE IF NOT EXISTS `hosts_foods` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`food_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`food_category` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`drinks` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_food_details`
--
CREATE TABLE IF NOT EXISTS `hosts_food_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`food_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`additional_charge` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`breakfast_per_day` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`lunch_per_day` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`dinner_per_day` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`breakfast_per_week` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`lunch_per_week` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`dinner_per_week` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`breakfast_per_month` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`lunch_per_month` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`dinner_per_month` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`additional_information` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_general_help`
--
CREATE TABLE IF NOT EXISTS `hosts_general_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`gardening` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`farming` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`housework` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`maintenance` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`other_housework` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_children` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_elderly` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`computer` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`internet` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`digial_marketing` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`computer_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`language` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`music` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`learning_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`volunteering` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_languages`
--
CREATE TABLE IF NOT EXISTS `hosts_languages` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`language` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`type` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_other_services`
--
CREATE TABLE IF NOT EXISTS `hosts_other_services` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) DEFAULT NULL,
`wifi_included_with_stay` int(11) DEFAULT NULL,
`wifi_possible_for_extra_charges` int(11) DEFAULT NULL,
`wifi_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`laundry_included_with_stay` int(11) DEFAULT NULL,
`laundry_possible_for_extra_charges` int(11) DEFAULT NULL,
`laundry_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`bicycle_included_with_stay` int(11) DEFAULT NULL,
`bicycle_possible_for_extra_charges` int(11) DEFAULT NULL,
`bicycle_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`collection_included_with_stay` int(11) DEFAULT NULL,
`collection_possible_for_extra_charges` int(11) DEFAULT NULL,
`collection_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`car_included_with_stay` int(11) DEFAULT NULL,
`car_possible_for_extra_charges` int(11) DEFAULT NULL,
`car_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`anything_else_included_with_stay` int(11) DEFAULT NULL,
`anything_else_possible_for_extra_charges` int(11) DEFAULT NULL,
`anything_else_any_extra_charges` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_professional_help`
--
CREATE TABLE IF NOT EXISTS `hosts_professional_help` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`chef` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`builder` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`painter` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`carpenter` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`landscraper` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`plumber` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`tiler` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`house_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_children` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_elderly` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`caring_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`computer` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`internet` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`digial_marketing` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`computer_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`language` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`music` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`learning_other` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`volunteering` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `hosts_skill_details`
--
CREATE TABLE IF NOT EXISTS `hosts_skill_details` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`host_id` int(11) NOT NULL,
`kills_detail` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`created_at` int(11) DEFAULT NULL,
`updated_at` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Table structure for table `migration`
--
CREATE TABLE IF NOT EXISTS `migration` (
`version` varchar(180) NOT NULL,
`apply_time` int(11) DEFAULT NULL,
PRIMARY KEY (`version`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `migration`
--
INSERT INTO `migration` (`version`, `apply_time`) VALUES
('m000000_000000_base', 1447761492),
('m130524_201442_init', 1447761496),
('m151102_071431_modification_in_user_table', 1447761497),
('m151102_111521_create_hosts_table', 1447761497),
('m151103_102505_create_hosts_availability_table', 1447761497),
('m151103_102716_create_available_date_ranges_table', 1447761497),
('m151104_061234_create_about_host_table', 1447761497),
('m151105_080440_create_hosts_languages_table', 1447761497),
('m151105_131341_create_hosts_average_weekday_table', 1447761498),
('m151106_071740_create_about_hosts_area_table', 1447761498),
('m151106_091003_create_hosts_accommodation_table', 1447761498),
('m151106_113209_create_hosts_other_services_table', 1447761498),
('m151110_053230_create_hosts_foods_table', 1447761498),
('m151110_062559_create_hosts_food_details_table', 1447761498),
('m151110_095414_create_about_hosts_life_table', 1447761498),
('m151110_121956_create_hosts_general_help_table', 1447761499),
('m151110_132313_create_hosts_professional_help_table', 1447761499),
('m151110_135831_create_hosts_artistic_help_table', 1447761499),
('m151110_150032_create_hosts_skill_details_table', 1447761499);
-- --------------------------------------------------------
--
-- Table structure for table `post`
--
CREATE TABLE IF NOT EXISTS `post` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`enabled` tinyint(1) NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=6 ;
--
-- Dumping data for table `post`
--
INSERT INTO `post` (`id`, `created_at`, `updated_at`, `enabled`) VALUES
(1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 78),
(2, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 78),
(5, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 78);
-- --------------------------------------------------------
--
-- Table structure for table `postLang`
--
CREATE TABLE IF NOT EXISTS `postLang` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`post_id` int(11) NOT NULL,
`language` varchar(6) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text NOT NULL,
PRIMARY KEY (`id`),
KEY `post_id` (`post_id`),
KEY `language` (`language`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `postLang`
--
INSERT INTO `postLang` (`id`, `post_id`, `language`, `title`, `content`) VALUES
(2, 1, 'en', 'Rehan Aziz', 'ssadadad'),
(5, 5, 'ru', 'hjghjghjg', ''),
(6, 5, 'en', 'Englishjhjkhjk', '');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`gender` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`firstname` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`lastname` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`username` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL,
`password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`birthday` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` smallint(6) NOT NULL DEFAULT '10',
`user_role` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` int(11) NOT NULL,
`updated_at` int(11) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`),
UNIQUE KEY `password_reset_token` (`password_reset_token`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=12 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `gender`, `firstname`, `lastname`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `birthday`, `status`, `user_role`, `created_at`, `updated_at`) VALUES
(1, 'Mr.', 'Rehan', 'Aziz', '<EMAIL>', 'YlJUBS2bQyX2uTdDWYLAjT2DqNckNI7m', '$2y$13$lH4N3UI/W4mxwup/mgd0..qZUE.JZWSrrgMJLnWQwSbT8xONOUpVC', NULL, '<EMAIL>', '10-04-1994', 12, 'host', 1448000341, 1448358118),
(8, 'Mr.', 'Rehan', 'Aziz', '<EMAIL>', 'P4q5wD5e9hBCu6LwjOzt6uX5vhdl2a25', '$2y$13$J7HAY0Hp4k2s3rd8uDjPh.Z1xgJ4QOT4YH3lRCBLQly.qE.ukQra2', NULL, '<EMAIL>', '10-04-1994', 10, 'host', 1448360802, 1448361517),
(11, 'Mr.', 'Rehan', 'admin', '<EMAIL>', 'TYxfQfzLl8Yoi9XH7vKanE8YrDcLm6Lr', '$2y$13$GIXQLak716T2aBSPLrZrz.ZyL6HQYxNuNYsfhfE.jr35qObg6UXxG', NULL, '<EMAIL>', '78', 10, 'staylance', 1448364060, 1448364141);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `cms_pagesLang`
--
ALTER TABLE `cms_pagesLang`
ADD CONSTRAINT `cms_pagesLang_ibfk_1` FOREIGN KEY (`page_id`) REFERENCES `cms_pages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `postLang`
--
ALTER TABLE `postLang`
ADD CONSTRAINT `postlang_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `post` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- @testpoint:ts_token_type函数测试
--testpoint1:获取default分析器的记号类型(23种)
SELECT ts_token_type('default');
--testpoint2:获取ngram分析器的记号类型(6种)
SELECT ts_token_type('ngram');
--testpoint3:获取pound分析器的记号类型(6种)
SELECT ts_token_type('pound');
--清理环境 no need to clean
|
-- @testpoint:opengauss关键字cursor_name(非保留),作为用户名
--关键字cursor_name作为用户名不带引号,创建成功
drop user if exists cursor_name;
CREATE USER cursor_name PASSWORD '<PASSWORD>';
drop user cursor_name;
--关键字cursor_name作为用户名加双引号,创建成功
drop user if exists "cursor_name";
CREATE USER "cursor_name" PASSWORD '<PASSWORD>';
drop user "cursor_name";
--关键字cursor_name作为用户名加单引号,合理报错
CREATE USER 'cursor_name' PASSWORD '<PASSWORD>';
--关键字cursor_name作为用户名加反引号,合理报错
CREATE USER `cursor_name` PASSWORD '<PASSWORD>';
|
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 30, 2020 at 10:56 PM
-- Server version: 5.7.24
-- PHP Version: 5.6.37
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: `sipbm`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_pemeriksaan`
--
CREATE TABLE `tbl_pemeriksaan` (
`id_pemeriksaan` int(11) NOT NULL,
`id_koleksi` int(11) DEFAULT NULL,
`id_ruang_koleksi` int(11) DEFAULT NULL,
`kondisi_kerusakan` text,
`gambar_kerusakan` varchar(255) DEFAULT NULL,
`status_pemeriksaan` enum('1','2') DEFAULT NULL,
`time_pemeriksaan` datetime DEFAULT NULL,
`id_users` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tbl_pemeriksaan`
--
INSERT INTO `tbl_pemeriksaan` (`id_pemeriksaan`, `id_koleksi`, `id_ruang_koleksi`, `kondisi_kerusakan`, `gambar_kerusakan`, `status_pemeriksaan`, `time_pemeriksaan`, `id_users`) VALUES
(1, 4, 2, 'aaa', '3.jpg', '2', '2020-12-30 22:13:47', 7),
(2, 6, 2, '11', '31.jpg', '1', '2020-12-30 22:35:42', 12);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_pemeriksaan`
--
ALTER TABLE `tbl_pemeriksaan`
ADD PRIMARY KEY (`id_pemeriksaan`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_pemeriksaan`
--
ALTER TABLE `tbl_pemeriksaan`
MODIFY `id_pemeriksaan` 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 */;
|
CREATE TABLE own_query AS
SELECT title, author, price, amount
FROM supply
WHERE author NOT IN (SELECT DISTINCT author FROM book);
SELECT * FROM own_query;
|
<reponame>pirocorp/Databases-Basics-MS-SQL-Server
SELECT DISTINCT e.Id,
e.FirstName,
e.LastName
FROM Employees AS e
INNER JOIN Orders AS o ON o.EmployeeId = e.Id
ORDER BY e.Id |
<reponame>BauweraertsWouter/programmeren3<gh_stars>0
INSERT INTO team VALUES (1, 'Lotto–Soudal', 'LTS', 1985);
INSERT INTO team VALUES (2, 'Etixx–Quick-Step', 'EQS', 2003);
INSERT INTO rider VALUES (1, '<NAME>', '1986-11-06', 1);
INSERT INTO rider VALUES (2, '<NAME>', '1985-02-19', 1);
INSERT INTO rider VALUES (3, '<NAME>', '1991-05-10', 1);
INSERT INTO rider VALUES (4, '<NAME>', '1988-05-11', 2);
INSERT INTO rider VALUES (5, '<NAME>', '1985-04-23', 2);
INSERT INTO rider VALUES (6, '<NAME>', '1985-12-11', 2);
|
/* redostats.sql
see the critical stats for redo and archive logs
SDR-Oracle
Note: this script is the v8-compatible version
*/
set pages 0
set lines 132
set pause off
set feedback off
set verify off
col dsnbr noprint
/* is the archiver falling behind, count should be 1 or 0 */
select decode(count(*),0,'Archiver is current',
1,'Archiver is archiving ' || count(*) || ' log...',
'Archiver has fallen behind by ' || count(*) || ' logs!')
from v$log
where status != 'CURRENT'
and archived = 'NO';
/* what is the current log COL:<ufs mt pt>:<log name>:<seq #>:<# members> */
select 'Current Online Log:' || chr(9) ||
substr(f.member,1,(instr(f.member,'/',1,2) -1))
|| '/.../' ||
substr(f.member,(instr(f.member,'/',-1,1)+1))
|| chr(9) || 'Sequence #' ||
l.sequence#
from v$logfile f, v$log l
where l.group# = f.group#
and l.status = 'CURRENT'
and l.archived = 'NO'
and rownum = 1;
/* what are the previous online logs */
select lc_1.sequence# dsnbr,
'Previous Online Logs:' || chr(9) ||
substr(f.member,1,(instr(f.member,'/',1,2) -1))
|| '/.../' ||
substr(f.member,(instr(f.member,'/',-1,1)+1))
|| chr(9) || 'Sequence #' ||
lc_1.sequence#
from v$log lc, v$log lc_1, v$logfile f
where lc.sequence# = (select max(l.sequence#) from v$log l)
and lc_1.sequence# = lc.sequence# -1
and f.group# = lc_1.group#
union
select lc_2.sequence# dsnbr,
' ' || chr(9) ||
substr(f.member,1,(instr(f.member,'/',1,2) -1))
|| '/.../' ||
substr(f.member,(instr(f.member,'/',-1,1)+1))
|| chr(9) || 'Sequence #' ||
lc_2.sequence#
from v$log lc, v$log lc_2, v$logfile f
where lc.sequence# = (select max(l.sequence#) from v$log l)
and lc_2.sequence# = lc.sequence# -2
and f.group# = lc_2.group#
union
select lc_3.sequence# dsnbr,
' ' || chr(9) ||
substr(f.member,1,(instr(f.member,'/',1,2) -1))
|| '/.../' ||
substr(f.member,(instr(f.member,'/',-1,1)+1))
|| chr(9) || 'Sequence #' ||
lc_3.sequence#
from v$log lc, v$log lc_3, v$logfile f
where lc.sequence# = (select max(l.sequence#) from v$log l)
and lc_3.sequence# = lc.sequence# -3
and f.group# = lc_3.group#
order by 1 desc;
/* what is the latest archived log LAL:<archlog name>:<seq #> */
select 'Latest Archived Log:' || chr(9) ||
substr(h.name,(instr(h.name,'/',-1,1)+1))
|| chr(9) || 'Sequence #' ||
max(h.sequence#)
from v$archived_log h
where h.sequence# = (select max(l.sequence#)
from v$log l
where l.archived = 'YES'
and l.status = 'INACTIVE')
group by 'Latest Archived Log:' || chr(9) ||
substr(h.name,(instr(h.name,'/',-1,1)+1));
/* how many minutes since the last log switch MSL:<elapsed minutes> */
select 'Elapsed Minutes Since Last Log Switch:' || chr(9) ||
trunc((sysdate - first_time) * 24 * 60)
from v$log
where status = 'CURRENT'
and sequence# = (select max(sequence#) + 1
from v$log_history);
/* what are the last 3 individual switch intervals L3I:<1>:<2>:<3> */
select 'Prior 3 Actual Switch Intervals:' || chr(9) || '[' ||
round((lc.first_time - lc_1.first_time) * 24 * 60,1)
|| ']' || chr(9) || '[' ||
round((lc_1.first_time - lc_2.first_time) * 24 * 60,1)
|| ']' || chr(9) || '[' ||
round((lc_2.first_time - lc_3.first_time) * 24 * 60,1)
|| ']'
from v$log lc, v$log_history lc_1, v$log_history lc_2, v$log_history lc_3
where lc.sequence# = (select max(l.sequence#) from v$log l)
and lc_1.sequence# = lc.sequence# -1
and lc_2.sequence# = lc.sequence# -2
and lc_3.sequence# = lc.sequence# -3;
/* what is the avg interval for last 3 log switches L3S:<minutes> */
select 'Prior 3 Average Switch Interval:' || chr(9) ||
round( (
round((lc.first_time - lc_1.first_time) * 24 * 60,2) +
round((lc_1.first_time - lc_2.first_time) * 24 * 60,2) +
round((lc_2.first_time - lc_3.first_time) * 24 * 60,2) ) / 3, 1)
from v$log lc, v$log_history lc_1, v$log_history lc_2, v$log_history lc_3
where lc.sequence# = (select max(l.sequence#) from v$log l)
and lc_1.sequence# = lc.sequence# -1
and lc_2.sequence# = lc.sequence# -2
and lc_3.sequence# = lc.sequence# -3;
set pages 24 |
<gh_stars>0
-- **************************** DATABASE EXAM ********************************
-- ************************ Konare Trade Bank(KTB) ****************************
CREATE DATABASE `konare_trade_bank`;
USE `konare_trade_bank`;
-- bank database
-- Section 1. DDL -------------------------------------------------------------
-- ----------------------------------------------------------------------------
CREATE TABLE deposit_types (
deposit_type_id INT PRIMARY KEY,
name VARCHAR(20)
);
CREATE TABLE deposits (
deposit_id INT PRIMARY KEY AUTO_INCREMENT,
amount DECIMAL(10 , 2 ),
start_date DATE,
end_date DATE,
deposit_type_id INT,
customer_id INT,
FOREIGN KEY (deposit_type_id)
REFERENCES deposit_types (deposit_type_id),
FOREIGN KEY (customer_id)
REFERENCES customers (customer_id)
);
CREATE TABLE employees_deposits (
employee_id INT,
deposit_id INT,
PRIMARY KEY (employee_id , deposit_id),
FOREIGN KEY (employee_id)
REFERENCES employees (employee_id),
FOREIGN KEY (deposit_id)
REFERENCES deposits (deposit_id)
);
CREATE TABLE credit_history (
credit_history_id INT PRIMARY KEY,
mark CHAR(1),
start_date DATE,
end_date DATE,
customer_id INT,
FOREIGN KEY (customer_id)
REFERENCES customers (customer_id)
);
CREATE TABLE payments (
payment_id INT PRIMARY KEY,
`date` DATE,
amount DECIMAL(10 , 2 ),
loan_id INT,
FOREIGN KEY (loan_id)
REFERENCES loans (loan_id)
);
CREATE TABLE users (
user_id INT PRIMARY KEY,
user_name VARCHAR(20),
`password` VARCHAR(20),
customer_id INT UNIQUE,
FOREIGN KEY (customer_id)
REFERENCES customers (customer_id)
);
ALTER TABLE employees
ADD manager_id INT,
ADD FOREIGN KEY (manager_id) REFERENCES employees(employee_id);
-- Section 2. DML -------------------------------------------------------------
-- 1. Insert data into the following tables --------------------------------
INSERT INTO `employees_deposits`
VALUES
(15, 4),
(20, 15),
(8, 7),
(4, 8),
(3, 13),
(3, 8),
(4, 10),
(10, 1),
(13, 4),
(14, 9);
INSERT INTO `deposit_types`
VALUES
(1, 'Time Deposit'),
(2, 'Call Deposit'),
(3, 'Free Deposit');
INSERT INTO `deposits`(`amount`,
`start_date`,
`end_date`,
`deposit_type_id`,
`customer_id`)
SELECT
(CASE
WHEN c.date_of_birth > '1980-01-01' THEN 1000
ELSE 1500
END
+
CASE
WHEN c.gender = 'M' THEN 100
ELSE 200
END) AS 'amount',
DATE(NOW()) AS 'start_date',
NULL AS 'end_date',
(CASE
WHEN c.customer_id > 15 THEN 3
WHEN c.customer_id % 2 = 0 THEN 2
ELSE 1
END) AS 'deposit_type_id',
c.customer_id AS 'customer_id'
FROM `customers` AS c
WHERE c.customer_id < 20;
-- 2. Update Employees -----------------------------------------------------
-- ----------------------------------------------------------------------------
UPDATE `employees`
SET
manager_id = (CASE
WHEN employee_id BETWEEN 2 AND 10 THEN 1
WHEN employee_id BETWEEN 12 AND 20 THEN 11
WHEN employee_id BETWEEN 22 AND 30 THEN 21
WHEN employee_id IN (11 , 21) THEN 1
END);
-- 3. Delete Records -------------------------------------------------------
-- ----------------------------------------------------------------------------
DELETE FROM `employees_deposits`
WHERE
deposit_id = 9 OR employee_id = 3;
-- Section 3. Querying -------------------------------------------------------
-- For this section put your queries in judge
-- and use SQL Server prepare DB and run queries.
-- 1. Employees’ Salary -----------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
e.employee_id, e.hire_date, e.salary, e.branch_id
FROM
`employees` AS e
WHERE
e.salary > 2000
AND e.hire_date > '2009-06-15';
-- 2.Customer Age -------------------------------------------------------------
-- ----------------------------------------------------------------------------
-- TODO...
SELECT
c.first_name,
c.date_of_birth,
FLOOR(TIMESTAMPDIFF(DAY,c.date_of_birth,'2016-10-01') / 360) AS 'age'
FROM
`customers` AS c
WHERE
FLOOR(TIMESTAMPDIFF(DAY,c.date_of_birth,'2016-10-01') / 360)
BETWEEN 40 AND 50;
-- 3.Customer City ------------------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
c.customer_id,
c.first_name,
c.last_name,
c.gender,
ci.city_name
FROM
`customers` AS c
JOIN
`cities` AS ci ON ci.city_id = c.city_id
WHERE
(c.last_name LIKE 'Bu%' OR c.first_name LIKE '%a')
AND CHAR_LENGTH(ci.city_name) >= 8
ORDER BY c.customer_id ASC;
-- 4.Employee Accounts --------------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
e.employee_id, e.first_name, a.account_number
FROM
`employees` AS e
JOIN
`employees_accounts` AS ac ON ac.employee_id = e.employee_id
JOIN
`accounts` AS a ON a.account_id = ac.account_id
WHERE
YEAR(a.start_date) > 2012
ORDER BY e.first_name DESC
LIMIT 5;
-- 5.Employee Cities ----------------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
c.city_name,
b.name,
COUNT(e.employee_id) AS 'employees_count'
FROM
`cities` AS c
JOIN
`branches` AS b ON b.city_id = c.city_id
JOIN
`employees` AS e ON e.branch_id = b.branch_id
WHERE
c.city_id NOT IN (4 , 5)
GROUP BY c.city_name , b.name
HAVING employees_count >= 3;
-- 6.Loan Statistics ----------------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
SUM(lo.amount) AS 'total_loan_amount',
MAX(lo.interest) AS 'max_interest',
MIN(e.salary) AS 'min_employee_salary'
FROM
`employees` AS e
JOIN
`employees_loans` AS el ON el.employee_id = e.employee_id
JOIN
`loans` AS lo ON lo.loan_id = el.loan_id;
-- 7.Unite People -------------------------------------------------------------
-- ----------------------------------------------------------------------------
/*
SELECT *
FROM
(SELECT e.first_name, c.city_name
FROM `employees` AS e
JOIN `branches` AS b ON b.branch_id = e.branch_id
JOIN `cities` AS c ON c.city_id = b.city_id
LIMIT 3) AS `table1`,
(SELECT cu.first_name, ci.city_name
FROM `customers` AS cu
JOIN `cities` AS ci ON ci.city_id = cu.city_id
LIMIT 3) AS `table2`;
*/
-- 8.Customers without Accounts -----------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
c.customer_id, c.height
FROM
`customers` AS c
WHERE
c.customer_id NOT IN (SELECT
customer_id
FROM
accounts)
AND (c.height BETWEEN 1.74 AND 2.04);
-- 9.Customers without Accounts -----------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
c.customer_id, l.amount
FROM
customers AS c
JOIN
loans AS l ON l.customer_id = c.customer_id
WHERE
l.amount > (SELECT
AVG(lo.amount)
FROM
`loans` AS lo
JOIN
`customers` AS cu ON cu.customer_id = lo.customer_id
WHERE
cu.gender LIKE 'M')
ORDER BY c.last_name ASC
LIMIT 5;
-- 10.Oldest Account ----------------------------------------------------------
-- ----------------------------------------------------------------------------
SELECT
c.customer_id, c.first_name, a.start_date
FROM
`customers` AS c
JOIN
`accounts` AS a ON a.customer_id = c.customer_id
ORDER BY a.start_date ASC
LIMIT 1;
-- Section 4. Programmability -------------------------------------------------
-- For this section put your queries in judge
-- and use SQL Server run skeleton, run queries and check DB.
-- 1.String Joiner Function ---------------------------------------------------
-- ----------------------------------------------------------------------------
DELIMITER $$
CREATE FUNCTION udf_concat_string(str1 VARCHAR(255), str2 VARCHAR(255))
RETURNS VARCHAR(255)
BEGIN
DECLARE reverse_str1 VARCHAR(255);
DECLARE reverse_str2 VARCHAR(255);
SET reverse_str1 := REVERSE(str1);
SET reverse_str2 := REVERSE(str2);
RETURN CONCAT(reverse_str1, reverse_str2);
END $$
DELIMITER ;
-- 2.Unexpired Loans Procedure ------------------------------------------------
-- ----------------------------------------------------------------------------
DELIMITER $$
CREATE PROCEDURE usp_customers_with_unexpired_loans(customer_id INT)
BEGIN
SELECT
c.customer_id AS 'CustimerID',
c.first_name AS 'FirstName',
l.loan_id AS 'LoanID'
FROM
`customers` AS c
JOIN
`loans` AS l ON l.customer_id = c.customer_id
WHERE
c.customer_id = customer_id
AND l.expiration_date IS NULL;
END
DELIMITER ;
-- 3.Take Loan Procedure ------------------------------------------------------
-- ----------------------------------------------------------------------------
DELIMITER $$
CREATE PROCEDURE usp_take_loan(customer_id INT,loan_amount DECIMAL(10,2),interest DECIMAL(4,2),start_date DATE)
BEGIN
START TRANSACTION;
INSERT INTO `loans`(`customer_id`, `amount`, `interest`, `start_date`)
VALUES (customer_id, loan_amount, interest, start_date);
IF (loan_amount NOT BETWEEN 0.01 AND 100000)
THEN
ROLLBACK;
SIGNAL SQLSTATE '45000'
SET MESSAGE_TEXT = 'Invalid Loan Amount.';
ELSE
COMMIT;
END IF;
END $$
DELIMITER ;
-- 4.Trigger Hire Employee ----------------------------------------------------
-- ----------------------------------------------------------------------------
DELIMITER $$
CREATE TRIGGER tr_hire_employee
AFTER INSERT
ON `employees`
FOR EACH ROW
BEGIN
UPDATE `employees_loans` AS el
SET el.employee_id = NEW.employee_id
WHERE el.employee_id + 1 = NEW.employee_id;
END $$
DELIMITER ;
-- 1.Delete Trigger -----------------------------------------------------------
-- ----------------------------------------------------------------------------
CREATE TABLE account_logs(
account_id INT,
account_number CHAR(12) NOT NULL,
start_date DATE NOT NULL,
customer_id INT NOT NULL
);
DELIMITER $$
CREATE TRIGGER tr_account_logs
AFTER DELETE
ON `accounts`
FOR EACH ROW
BEGIN
INSERT INTO `account_logs`(account_id ,account_number,start_date,customer_id)
VALUES (OLD.account_id, OLD.account_number, OLD.start_date, OLD.customer_id);
END $$
DELIMITER ;
|
<reponame>majalengkadev/workshop-blog
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 31, 2018 at 03:29 AM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `myblog`
--
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` int(100) NOT NULL,
`judul` varchar(100) NOT NULL,
`konten` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`id`, `judul`, `konten`) VALUES
(1, 'Artikel Pertama Updated', 'artikel ini ya yang pertama Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum'),
(2, 'Artikel Kedua', 'Ini adalah artikel kedua Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum'),
(3, 'Artike ke tiga', 'Dan ini adalah artikel yang ketiga Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum'),
(5, 'Bismillah', 'semoga berhasil'),
(6, 'Bismillah', 'semoga berhasil'),
(7, 'Bismillah', 'semoga berhasil'),
(8, 'Semoga berhasil', 'aku adalah');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Encompass.Imaging.ServiceBus', 'SBUS', 'STAR.Encompass.Imaging.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Encompass.Imaging.ServiceBus - dev backup', 'SBUS', 'STAR.Encompass.Imaging.ServiceBus - dev backup Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Encompass.Imaging.ServiceBus - prod configed', 'SBUS', 'STAR.Encompass.Imaging.ServiceBus - prod configed Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Encompass.LoanMonitor.ServiceBus', 'SBUS', 'STAR.Encompass.LoanMonitor.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Enterprise.ServiceBus.Documents', 'SBUS', 'STAR.Enterprise.ServiceBus.Documents Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Origination.ConsentMonitor.ServiceBus', 'SBUS', 'STAR.Origination.ConsentMonitor.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.CCAM.ServiceBus', 'SBUS', 'STAR.Originations.CCAM.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.DisclosureMonitor.ServiceBus', 'SBUS', 'STAR.Originations.DisclosureMonitor.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.Leads.ServiceBus', 'SBUS', 'STAR.Originations.Leads.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ODS', 'SBUS', 'STAR.Originations.ODS Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus', 'SBUS', 'STAR.Originations.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.Credit', 'SBUS', 'STAR.Originations.ServiceBus.Credit Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.Delivery.Review', 'SBUS', 'STAR.Originations.ServiceBus.Delivery.Review Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.Documents', 'SBUS', 'STAR.Originations.ServiceBus.Documents Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.Encompass', 'SBUS', 'STAR.Originations.ServiceBus.Encompass Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.ERDB', 'SBUS', 'STAR.Originations.ServiceBus.ERDB Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.EReport', 'SBUS', 'STAR.Originations.ServiceBus.EReport Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.LendingSpace', 'SBUS', 'STAR.Originations.ServiceBus.LendingSpace Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.ServiceBus.ODS.Leads', 'SBUS', 'STAR.Originations.ServiceBus.ODS.Leads Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (7, 'STAR.Originations.VendorServices.ServiceBus', 'SBUS', 'STAR.Originations.VendorServices.ServiceBus Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (1, 'GLS', 'WEB', 'GLS Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (1, 'GLS Redirector', 'WEB', 'GLS Redirector Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (1, 'Pricer', 'WEB', 'Pricer Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (1, 'Pricer Redirector', 'WEB', 'Pricer Redirector Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'DUFileToLnSpace', 'UNKNOWN', 'DUFileToLnSpace Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'EscrowFPS', 'WEB', 'EscrowFPS Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'GLAdmin', 'WEB', 'GLAdmin Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'GLAdmin Redirector', 'WEB', 'GLAdmin Redirector Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'GLReports', 'WEB', 'GLReports Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'GLReports Redirector', 'WEB', 'GLReports Redirector Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'JustLendAdmin', 'WEB', 'JustLendAdmin Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'PricerUnlockAgent', 'WEB', 'PricerUnlockAgent Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'sCal.NationstarMtg.net', 'WEB', 'sCal.NationstarMtg.net Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'WX.NationstarMtg.net', 'WEB', 'WX.NationstarMtg.net Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (2, 'WX2.NationstarMtg.net', 'WEB', 'WX2.NationstarMtg.net Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'ClientServicesWiki', 'WEB', 'ClientServicesWiki Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'CLT', 'WEB', 'CLT Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'CMA', 'WEB', 'CMA Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'CMP', 'WEB', 'CMP Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'FAP', 'WEB', 'FAP Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'LMS.Leads', 'WEB', 'LMS.Leads Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'Pricer', 'WEB', 'Pricer Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'RESPA', 'WEB', 'RESPA Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'ROAM.SMP', 'WEB', 'ROAM.SMP Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Encompass.LoanMonitor.UI', 'WEB', 'STAR.Encompass.LoanMonitor.UI Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.HCM.Admin.Web', 'WEB', 'STAR.HCM.Admin.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.HCM.Web', 'WEB', 'STAR.HCM.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.BlitzDocs.Web', 'WEB', 'STAR.Originations.BlitzDocs.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.Delivery.Review.Website', 'WEB', 'STAR.Originations.Delivery.Review.Website Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.Galex.Website', 'WEB', 'STAR.Originations.Galex.Website Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.Leads.Creator', 'WEB', 'STAR.Originations.Leads.Creator Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.LoanDocuments.Web', 'WEB', 'STAR.Originations.LoanDocuments.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.MVC.VendorIntegrationPortal', 'WEB', 'STAR.Originations.MVC.VendorIntegrationPortal Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'STAR.Originations.Rusty.Website', 'WEB', 'STAR.Originations.Rusty.Website Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (5, 'Training.ReleaseManagement.Web', 'WEB', 'Training.ReleaseManagement.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'EncompassMegaManipulator', 'UNKNOWN', 'EncompassMegaManipulator Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'EncompassPricingDataFiles', 'UNKNOWN', 'EncompassPricingDataFiles Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'Services.NationstarMtg.net', 'WCF', 'Services.NationstarMtg.net Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.CapitalMarkets.Services', 'WCF', 'STAR.CapitalMarkets.Services Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.DevOps.ServiceBus.Monitoring.Api', 'UNKNOWN', 'STAR.DevOps.ServiceBus.Monitoring.Api Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Encompass.Gateway', 'WCF', 'STAR.Encompass.Gateway Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Encompass.Servicing.WCF', 'WCF', 'STAR.Encompass.Servicing.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Encompass.Treasury.WCF', 'WCF', 'STAR.Encompass.Treasury.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Encompass.WCF', 'WCF', 'STAR.Encompass.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Enterprise.Data.DataServices', 'WCF', 'STAR.Enterprise.Data.DataServices Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Enterprise.WCF.DataStandardization', 'WCF', 'STAR.Enterprise.WCF.DataStandardization Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Enterprise.WCF.DocumentStamp', 'WCF', 'STAR.Enterprise.WCF.DocumentStamp Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Enterprise.WCF.Smtp', 'WCF', 'STAR.Enterprise.WCF.Smtp Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Enterprise.WCF.Templating', 'WCF', 'STAR.Enterprise.WCF.Templating Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'Star.HCM.Admin.Web', 'WCF', 'Star.HCM.Admin.Web Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.HCM.API', 'WCF', 'STAR.HCM.API Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.HCM.Services', 'WCF', 'STAR.HCM.Services Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.LMS.Leads.WCF', 'WCF', 'STAR.LMS.Leads.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Delivery.Review.WCF', 'WCF', 'STAR.Originations.Delivery.Review.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'Star.Originations.DocMagic.WebAPI', 'WCF', 'Star.Originations.DocMagic.WebAPI Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Galex.WCF', 'WCF', 'STAR.Originations.Galex.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Leads.WCF', 'WCF', 'STAR.Originations.Leads.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.LoanPartyAllocation.WCF', 'WCF', 'STAR.Originations.LoanPartyAllocation.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.LoanServices.WCF', 'WCF', 'STAR.Originations.LoanServices.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.ODS.WCF', 'WCF', 'STAR.Originations.ODS.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Pricing.WCF', 'WCF', 'STAR.Originations.Pricing.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Rusty.WCF', 'WCF', 'STAR.Originations.Rusty.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.Seagull.WCF', 'WCF', 'STAR.Originations.Seagull.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.UserManagement.WCF', 'WCF', 'STAR.Originations.UserManagement.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.WCF', 'WCF', 'STAR.Originations.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Originations.WCF.Router', 'WCF', 'STAR.Originations.WCF.Router Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.OriginationsODS.BusinessRules', 'WCF', 'STAR.OriginationsODS.BusinessRules Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.Pricing', 'WCF', 'STAR.Pricing Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.ROAM.SMP.WCF', 'WCF', 'STAR.ROAM.SMP.WCF Notes')
insert into [Links].[ApplicationLink] ([ApplicationGroupId], [Name], [AppTypeCode], [Notes]) values (8, 'STAR.ScheduledTask.TaskControlManager', 'WCF', 'STAR.ScheduledTask.TaskControlManager Notes')
|
/*==============================================================*/
/* DBMS name: MySQL 5.0 */
/* Created on: 2019/7/16 22:43:28 */
/*==============================================================*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
drop database if exists hero_auth;
create database hero_auth;
use hero_auth;
drop table if exists Action;
drop table if exists File;
drop table if exists Menu;
drop table if exists Operation;
drop table if exists OperationActionRelation;
drop table if exists Permission;
drop table if exists Role;
drop table if exists RolePermission;
drop table if exists UserGroup;
drop table if exists UserGroupRole;
drop table if exists UserInfo;
drop table if exists UserRole;
drop table if exists UserUserGroupRelation;
/*==============================================================*/
/* Table: Action */
/*==============================================================*/
create table Action
(
Id bigint not null auto_increment comment '主键',
ServiceId varchar(100) not null comment '服务id',
ServiceHost varchar(50) not null comment '服务主机',
Application varchar(50) not null comment '所属应用服务',
Name varchar(50) comment '名称',
WebApi varchar(50) not null comment 'webapi',
DisableNetwork bit comment '是否禁用外网',
EnableAuthorization bit comment '是否需要认证',
AllowPermission bit comment '是否需要鉴权',
Developer varchar(50) comment '开发者',
Date date comment '开发日期',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id),
unique key AK_Key_2 (ServiceId)
);
alter table Action comment '功能表';
/*==============================================================*/
/* Table: File */
/*==============================================================*/
create table File
(
Id bigint not null auto_increment comment '主键',
PermissionId bigint not null comment 'PermissionId',
Name varchar(50) not null comment '名称',
FIleName varchar(50) not null,
FilePath varchar(100) not null,
Memo varchar(100) comment '备注',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table File comment '文件表';
/*==============================================================*/
/* Table: Menu */
/*==============================================================*/
create table Menu
(
Id bigint not null auto_increment comment '主键',
PermissionId bigint not null comment 'PermissionId',
ParentId bigint comment '父级菜单Id',
Code varchar(200) not null comment '编码',
Level int not null comment '层级',
Name varchar(50) not null comment '菜单名称',
Anchor varchar(50) not null comment '前端菜单页面锚点',
Mold int not null comment '菜单类型',
Icon varchar(100) comment 'icon图标',
FrontEndComponent varchar(100) comment '前端组件',
Sort int comment '排序',
Memo varchar(100) comment '备注',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table Menu comment '菜单表';
/*==============================================================*/
/* Table: Operation */
/*==============================================================*/
create table Operation
(
Id bigint not null auto_increment comment '主键',
PermissionId bigint not null comment 'PermissionId',
MenuId bigint not null comment '菜单Id',
Name varchar(50) not null comment '名称',
Code varchar(200) not null comment '编码',
Level int not null comment '所属层级',
Icon varchar(50) comment '图标',
Mold int not null comment '操作类型:1.增2.删3.改4.查5.其他操作',
Sort int comment '排序',
Status int not null comment '状态',
Memo varchar(100) comment '备注',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table Operation comment '操作表';
/*==============================================================*/
/* Table: OperationActionRelation */
/*==============================================================*/
create table OperationActionRelation
(
Id bigint not null auto_increment comment '主键',
OperationId bigint not null comment '操作Id',
ActionId bigint not null comment 'ActionId',
ServiceId varchar(100) not null comment '服务Id',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id)
);
alter table OperationActionRelation comment '操作功能关系表';
/*==============================================================*/
/* Table: Permission */
/*==============================================================*/
create table Permission
(
Id bigint not null auto_increment comment '主键',
Name varchar(50) not null comment '权限名称',
Mold int not null comment '权限类型 1.菜单 2. 操作 3. 页面元素 4. 文件',
Memo varchar(100) comment '备注',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table Permission comment '权限表';
/*==============================================================*/
/* Table: Role */
/*==============================================================*/
create table Role
(
Id bigint not null auto_increment comment '主键',
DeptId bigint comment '组织机构Id',
Name varchar(50) not null comment '角色名称',
Memo varchar(100) comment '备注',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table Role comment '角色表';
/*==============================================================*/
/* Table: RolePermission */
/*==============================================================*/
create table RolePermission
(
Id bigint not null auto_increment comment '主键',
RoleId bigint not null,
PerssionId char(10) not null,
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id)
);
alter table RolePermission comment '角色权限表';
/*==============================================================*/
/* Table: UserGroup */
/*==============================================================*/
create table UserGroup
(
Id bigint not null auto_increment comment '主键',
ParentId bigint not null comment '父用户组Id',
Code varchar(200),
Name varchar(50) not null comment '用户组名称',
Level int not null,
Memo varchar(200),
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table UserGroup comment '用户组表';
/*==============================================================*/
/* Table: UserGroupRole */
/*==============================================================*/
create table UserGroupRole
(
Id bigint not null auto_increment comment '主键',
UserGroupId bigint not null,
RoleId bigint not null,
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id)
);
alter table UserGroupRole comment '用户组角色关系表';
/*==============================================================*/
/* Table: UserInfo */
/*==============================================================*/
create table UserInfo
(
Id bigint not null auto_increment comment '主键',
UserName varchar(50) not null comment '用户名',
DeptId bigint not null comment '所属部门Id',
PositionId bigint comment '职位Id',
Password varchar(100) not null comment '密码',
ChineseName varchar(50) not null comment '中文名',
Email varchar(50) not null comment '电子邮件',
Phone varchar(22) not null comment '联系电话',
Gender int comment '性别',
Birth date comment '生日',
NativePlace varchar(50) comment '籍贯',
Address varchar(100) comment '住址',
Folk varchar(50) comment '民族',
PoliticalStatus int comment '政治面貌',
GraduateInstitutions varchar(50) comment '毕业院校',
Education varchar(50) comment '学历',
Major varchar(50) comment '专业',
Resume varchar(500) comment '简历',
Memo varchar(500) comment '备注',
LastLoginTime datetime comment '最后登录时间',
LoginFailedCount int not null comment '登录失败次数',
Status int not null comment '状态',
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
IsDeleted int comment '软删除标识',
DeleteBy bigint comment '删除用户',
DeleteTime datetime comment '删除时间',
primary key (Id)
);
alter table UserInfo comment '用户表';
/*==============================================================*/
/* Table: UserRole */
/*==============================================================*/
create table UserRole
(
Id bigint not null auto_increment comment '主键',
UserId bigint not null,
RoleId bigint not null,
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id)
);
alter table UserRole comment '用户角色关系表';
/*==============================================================*/
/* Table: UserUserGroupRelation */
/*==============================================================*/
create table UserUserGroupRelation
(
Id bigint not null auto_increment comment '主键',
UserId bigint not null,
UserGroupId bigint not null,
CreateBy bigint comment '创建人',
CreateTime datetime comment '创建日期',
UpdateBy bigint comment '修改人',
UpdateTime datetime comment '修改日期',
primary key (Id)
);
alter table UserUserGroupRelation comment '用户与用户关系表';
INSERT INTO `hero_auth`.`UserInfo`(`Id`, `UserName`, `DeptId`, `PositionId`, `Password`, `ChineseName`, `Email`, `Phone`, `Gender`, `Birth`, `NativePlace`, `Address`, `Folk`, `PoliticalStatus`, `GraduateInstitutions`, `Education`, `Major`, `Resume`, `Memo`, `LastLoginTime`, `LoginFailedCount`, `Status`, `CreateBy`, `CreateTime`, `UpdateBy`, `UpdateTime`, `IsDeleted`, `DeleteBy`, `DeleteTime`) VALUES (1, 'liuhl', 1, 1, 'a6dd7c6107a1d4b30c33fa8a12964e7c', '刘洪亮1', '<EMAIL>', '13128291911', 0, '1989-09-11', '', '', '', 0, '', '', '', '', '', '0001-01-01 00:00:00', 0, 1, NULL, '2019-09-11 14:16:04', NULL, NULL, 0, NULL, NULL);
INSERT INTO `hero_auth`.`Role`(`Id`, `DeptId`, `Name`, `Memo`, `Status`, `CreateBy`, `CreateTime`, `UpdateBy`, `UpdateTime`, `IsDeleted`, `DeleteBy`, `DeleteTime`) VALUES (1, 0, '超级管理员', '负责hero系统维护', 1, NULL, '2019-09-11 14:14:18', NULL, NULL, 0, NULL, NULL);
INSERT INTO `hero_auth`.`Role`(`Id`, `DeptId`, `Name`, `Memo`, `Status`, `CreateBy`, `CreateTime`, `UpdateBy`, `UpdateTime`, `IsDeleted`, `DeleteBy`, `DeleteTime`) VALUES (2, 0, '管理员', '负责hero系统维护', 1, NULL, '2019-09-11 14:15:46', NULL, NULL, 0, NULL, NULL);
INSERT INTO `hero_auth`.`UserRole`(`Id`, `UserId`, `RoleId`, `CreateBy`, `CreateTime`, `UpdateBy`, `UpdateTime`) VALUES (1, 1, 1, NULL, '2019-09-11 14:16:04', NULL, NULL);
INSERT INTO `hero_auth`.`UserRole`(`Id`, `UserId`, `RoleId`, `CreateBy`, `CreateTime`, `UpdateBy`, `UpdateTime`) VALUES (2, 1, 2, NULL, '2019-09-11 14:16:04', NULL, NULL);
|
<reponame>TodorChapkanov/CSharp-Databases-Basics---MS-SQL<filename>Functions and Procedures/Functions and Procedures/03_Town Names Starting With.sql
CREATE PROC usp_GetTownsStartingWith
@BeginWith VARCHAR(10)
AS
SELECT t.Name FROM Towns AS t
WHERE t.Name LIKE (@BeginWith + '%')
EXEC usp_GetTownsStartingWith 'SA'
DROP PROC usp_GetTownsStartingWith |
CREATE SEQUENCE serial START 1; |
<gh_stars>1-10
CREATE TABLE `payments` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `purchase_id` INT(10) UNSIGNED NULL, `payment_id` VARCHAR(255) NOT NULL, `method` VARCHAR(255) NOT NULL, `status` VARCHAR(20) NOT NULL, `raw_response` TEXT, `is_deleted` INT(1) UNSIGNED NOT NULL, `created_at` DATETIME, `updated_at` DATETIME, PRIMARY KEY (`id`))
CREATE TABLE `brands` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(254) NOT NULL, `is_deleted` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`))
CREATE TABLE `addresses` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `country_id` int(11) UNSIGNED NULL, `city_id` int(11) UNSIGNED NULL, `email` varchar(100) NULL, `first_name` varchar(100) NULL, `last_name` varchar(100) NULL, `phone` varchar(100) NULL, `zip` varchar(100) NULL, `line1` varchar(100) NULL, `line2` varchar(100) NULL, `state` varchar(100) NULL, `fax` varchar(100) NULL, `is_deleted` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`))
CREATE TABLE `brand_refund_items` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `brand_refund_id` INT(10) UNSIGNED NULL, `purchase_item_id` INT(10) UNSIGNED NULL, `amount` DECIMAL(10,2) NULL, `is_deleted` INT(1) UNSIGNED NOT NULL, PRIMARY KEY (`id`))
CREATE TABLE `purchases` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `creator_id` INT(11) UNSIGNED NOT NULL, `billing_address_id` INT(11) UNSIGNED NOT NULL, `number` VARCHAR(40) NOT NULL, `currency` VARCHAR(3) NOT NULL, `monetary` TEXT, `is_deleted` INT(1) UNSIGNED NOT NULL DEFAULT 0, `is_frozen` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, `created_at` DATETIME, `updated_at` DATETIME, PRIMARY KEY (`id`), KEY `fk_user_id` (`creator_id`))
CREATE TABLE `variations` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(254) NOT NULL, `price` DECIMAL(10,2) NOT NULL, `product_id` INT(10) UNSIGNED NULL, `is_deleted` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`))
CREATE TABLE `brand_refunds` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `creator_id` INT(10) UNSIGNED NULL, `brand_purchase_id` INT(10) UNSIGNED NULL, `amount` DECIMAL(10,2) NULL, `created_at` DATETIME, `raw_response` TEXT, `reason` TEXT, `is_deleted` INT(1) UNSIGNED NOT NULL, `transaction_status` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`))
CREATE TABLE `purchase_items` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `brand_purchase_id` INT(10) UNSIGNED NULL, `reference_id` INT(10) UNSIGNED NULL, `reference_model` VARCHAR(40) NULL, `price` DECIMAL(10,2) NULL, `quantity` INT(11) NULL, `model` VARCHAR(255) NULL, `is_payable` INT(1) UNSIGNED NOT NULL, `is_discount` INT(1) UNSIGNED NOT NULL, `is_deleted` INT(1) UNSIGNED NOT NULL, `is_frozen` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, `created_at` DATETIME, `updated_at` DATETIME, PRIMARY KEY (`id`))
CREATE TABLE `products` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(254) NOT NULL, `price` DECIMAL(10,2) NOT NULL, `currency` VARCHAR(3) NOT NULL, `brand_id` INT(10) UNSIGNED NULL, `is_deleted` int(1) NOT NULL DEFAULT 0, PRIMARY KEY (`id`))
CREATE TABLE `locations` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `short_name` varchar(10) NOT NULL, `type` varchar(100) NOT NULL, PRIMARY KEY (`id`))
CREATE TABLE `brand_purchases` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `number` VARCHAR(40) NOT NULL, `brand_id` INT(10) UNSIGNED NULL, `purchase_id` INT(10) UNSIGNED NULL, `is_deleted` INT(1) UNSIGNED NOT NULL, `is_frozen` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, `created_at` DATETIME, `updated_at` DATETIME, PRIMARY KEY (`id`))
CREATE TABLE `users` ( `id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, `email` VARCHAR(254) NOT NULL, `password` VARCHAR(64) NOT NULL, `logins` INT(10) UNSIGNED NOT NULL DEFAULT '0', `last_login` INT(10) UNSIGNED, `facebook_uid` VARCHAR(100), `twitter_uid` VARCHAR(100), `last_login_ip` VARCHAR(40), PRIMARY KEY (`id`), UNIQUE KEY `uniq_email` (`email`))
CREATE TABLE `locations_branches` ( `ansestor_id` int(11) UNSIGNED NOT NULL, `descendant_id` int(11) UNSIGNED NOT NULL, `depth` int(11) UNSIGNED NOT NULL)
|
<reponame>VanHakobyan/ISTC_Coding_School
-- --------------------------------------------------
-- Entity Designer DDL Script for SQL Server 2005, 2008, 2012 and Azure
-- --------------------------------------------------
-- Date Created: 10/05/2019 11:31:19
-- Generated from EDMX file: E:\Source\repos\VanHakobyan\ISTC_Coding_School\ISTC.FourthStage.Database\ISTC.FourthStage.Database.EF.ModelFirst\ModelFirst.edmx
-- --------------------------------------------------
SET QUOTED_IDENTIFIER OFF;
GO
USE [ModelFirstContainer];
GO
IF SCHEMA_ID(N'dbo') IS NULL EXECUTE(N'CREATE SCHEMA [dbo]');
GO
-- --------------------------------------------------
-- Dropping existing FOREIGN KEY constraints
-- --------------------------------------------------
IF OBJECT_ID(N'[dbo].[FK_StudentFaculty]', 'F') IS NOT NULL
ALTER TABLE [dbo].[Students] DROP CONSTRAINT [FK_StudentFaculty];
GO
-- --------------------------------------------------
-- Dropping existing tables
-- --------------------------------------------------
IF OBJECT_ID(N'[dbo].[Students]', 'U') IS NOT NULL
DROP TABLE [dbo].[Students];
GO
IF OBJECT_ID(N'[dbo].[Faculties]', 'U') IS NOT NULL
DROP TABLE [dbo].[Faculties];
GO
-- --------------------------------------------------
-- Creating all tables
-- --------------------------------------------------
-- Creating table 'Students'
CREATE TABLE [dbo].[Students] (
[Id] int IDENTITY(1,1) NOT NULL,
[Name] nvarchar(max) NOT NULL,
[Age] nvarchar(max) NOT NULL,
[FacultyId] int NOT NULL
);
GO
-- Creating table 'Faculties'
CREATE TABLE [dbo].[Faculties] (
[Id] int IDENTITY(1,1) NOT NULL,
[Name] nvarchar(max) NOT NULL,
[Deccan] nvarchar(max) NOT NULL
);
GO
-- --------------------------------------------------
-- Creating all PRIMARY KEY constraints
-- --------------------------------------------------
-- Creating primary key on [Id] in table 'Students'
ALTER TABLE [dbo].[Students]
ADD CONSTRAINT [PK_Students]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- Creating primary key on [Id] in table 'Faculties'
ALTER TABLE [dbo].[Faculties]
ADD CONSTRAINT [PK_Faculties]
PRIMARY KEY CLUSTERED ([Id] ASC);
GO
-- --------------------------------------------------
-- Creating all FOREIGN KEY constraints
-- --------------------------------------------------
-- Creating foreign key on [FacultyId] in table 'Students'
ALTER TABLE [dbo].[Students]
ADD CONSTRAINT [FK_StudentFaculty]
FOREIGN KEY ([FacultyId])
REFERENCES [dbo].[Faculties]
([Id])
ON DELETE NO ACTION ON UPDATE NO ACTION;
GO
-- Creating non-clustered index for FOREIGN KEY 'FK_StudentFaculty'
CREATE INDEX [IX_FK_StudentFaculty]
ON [dbo].[Students]
([FacultyId]);
GO
-- --------------------------------------------------
-- Script has ended
-- -------------------------------------------------- |
--
ALTER TABLE `video` ADD `comments` text;
--//@UNDO
ALTER TABLE `video` DROP `comments`;
-- |
<filename>resources/sqlite/migrations/V3__RemoveFTS.sql<gh_stars>100-1000
-- Remove FTS.
DROP TABLE IF EXISTS events_fts;
DROP TRIGGER IF EXISTS events_delete; |
<gh_stars>1-10
/*!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 */;
DROP TABLE IF EXISTS `creature_respawn`;
CREATE TABLE `creature_respawn` (
`guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Global Unique Identifier',
`respawnTime` int(10) unsigned NOT NULL DEFAULT '0',
`instanceId` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Instance Identifier',
PRIMARY KEY (`guid`,`instanceId`),
KEY `idx_instance` (`instanceId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Grid Loading System';
LOCK TABLES `creature_respawn` WRITE;
/*!40000 ALTER TABLE `creature_respawn` DISABLE KEYS */;
INSERT INTO `creature_respawn` VALUES (2645,1315790219,0),(3082,1315789904,0),(3319,1316119399,0),(3683,1315790265,0),(3859,1315790753,0),(3860,1315790785,0),(3862,1315790818,0),(3897,1315790777,0),(3899,1315790803,0),(3900,1315790775,0),(3903,1315790771,0),(5385,1316119565,0),(5447,1316120855,0),(5510,1316117266,0),(5537,1316122374,0),(5668,1315702357,0),(6050,1315699907,0),(6051,1315699885,0),(6056,1315699887,0),(6076,1315699914,0),(7316,1316127781,0),(8534,1316125879,0),(9854,1315691830,0),(9871,1315692740,0),(9873,1315692764,0),(12321,1316125880,0),(12358,1316129588,0),(13519,1316225687,0),(17338,1306846893,0),(29975,1316226638,0),(29976,1316226647,0),(29977,1316226685,0),(29979,1316226646,0),(29988,1316226655,0),(32046,1315778116,0),(32212,1316226637,0),(32214,1316226649,0),(32232,1316226640,0),(32233,1316226674,0),(32236,1316226636,0),(32250,1316226624,0),(32275,1316226640,0),(32284,1316226655,0),(44600,1315778126,0),(44687,1315778118,0),(47180,1322271322,0),(47983,1322271679,0),(48264,1315778296,0),(55369,1306846895,0),(55372,1306846923,0),(56863,1306846914,0),(56872,1306846914,0),(56873,1306846916,0),(56874,1306846905,0),(56875,1306846903,0),(56876,1306846841,0),(57444,1314122406,0),(57445,1314122428,0),(58134,1306845599,0),(58294,1306845224,0),(58702,1306846903,0),(58789,1306845591,0),(58790,1306845584,0),(58797,1306845480,0),(58800,1306845608,0),(65699,1316222605,0),(65879,1306864336,0),(65880,1306864360,0),(65881,1306864305,0),(65882,1306864332,0),(65883,1306864282,0),(65884,1306864300,0),(65902,1306864520,0),(66379,1306866143,0),(66380,1306866161,0),(66389,1306864269,0),(66390,1306864221,0),(66520,1306864204,0),(69359,1306845614,0),(69360,1306845614,0),(69368,1306845252,0),(69376,1306845241,0),(69383,1306845614,0),(69384,1306845613,0),(69404,1306845228,0),(69878,1316466240,0),(69879,1316466214,0),(70197,1316469653,0),(70200,1316469655,0),(70201,1316469659,0),(70204,1316469679,0),(70205,1316469647,0),(70208,1316469661,0),(70209,1316469687,0),(70212,1316469669,0),(70537,1316469653,0),(70538,1316469679,0),(70542,1316469654,0),(71701,1316469665,0),(71705,1316469643,0),(71832,1316469656,0),(80061,1315513672,0),(80454,1315515331,0),(80677,1315516092,0),(80683,1315516122,0),(81085,1315514527,0),(81370,1315516651,0),(81414,1315516659,0),(83999,1316222309,0),(90403,1315512163,0),(92276,1316221750,0),(92280,1316221750,0),(93965,1316222756,0),(93982,1316222548,0),(97122,1316314975,0),(97125,1316314219,0),(98279,1306853016,0),(99113,1316902947,0),(107918,1307625893,0),(119061,1307237939,0),(128495,1322021418,0),(128496,1322022249,0),(128497,1322022095,0),(128498,1322022228,0),(128499,1322022184,0),(128771,1322022333,0),(128772,1322022353,0),(128786,1322022222,0),(128787,1322022297,0),(128790,1322022407,0),(128793,1322022235,0),(128948,1322022464,0),(128949,1322022347,0),(128957,1322022433,0),(128992,1322022384,0),(129000,1322022362,0),(129007,1308861151,0),(129010,1308861151,0),(129011,1308861151,0),(129022,1308861151,0),(129024,1308861156,0),(129032,1308861143,0),(129038,1308861151,0),(129039,1308861167,0),(129040,1308861167,0),(129045,1308861143,0),(129047,1308861186,0),(129048,1308861167,0),(129049,1308861143,0),(129050,1308861143,0),(129054,1308861167,0),(129055,1308861186,0),(129056,1308861138,0),(129058,1308861138,0),(129059,1308861138,0),(129060,1308861138,0),(129061,1308861143,0),(129062,1308861143,0),(129063,1308861143,0),(129064,1308861143,0),(129065,1308861143,0),(129066,1308861143,0),(129067,1308861143,0),(129068,1308861143,0),(129071,1308861186,0),(129072,1308861186,0),(129073,1308861133,0),(129074,1308861133,0),(129076,1308861133,0),(129077,1308861133,0),(129078,1308861133,0),(129079,1308861138,0),(129082,1308861167,0),(129083,1308861133,0),(129084,1308861133,0),(129085,1308861138,0),(129086,1308861138,0),(129087,1308861138,0),(129088,1308861138,0),(129089,1308861133,0),(129090,1308861133,0),(129091,1308861133,0),(129092,1308861133,0),(129093,1308861133,0),(129094,1308861133,0),(129095,1308861133,0),(129096,1308861133,0),(129178,1308861151,0),(129180,1308861138,0),(129202,1322022299,0),(129203,1322022477,0),(129204,1322022281,0),(129206,1322022293,0),(129207,1322022306,0),(129208,1322022312,0),(129209,1322022380,0),(129210,1322022308,0),(129211,1322022319,0),(129212,1322022299,0),(129213,1322022324,0),(129218,1322022307,0),(129219,1322022376,0),(129257,1322022248,0),(129267,1322022573,0),(129271,1322022540,0),(129274,1322022546,0),(129279,1322022391,0),(129283,1322022254,0),(129284,1322022135,0),(129285,1322022533,0),(129297,1322022285,0),(129298,1322022069,0),(129299,1322022444,0),(129305,1322022227,0),(129517,1322022373,0),(129518,1322022271,0),(129544,1322022242,0),(129555,1322022273,0),(130118,1322022228,0),(130119,1322022227,0),(130120,1322022228,0),(130559,1322022551,0),(130565,1322022551,0),(130566,1322022551,0),(130569,1322022551,0),(130599,1322022551,0),(130609,1322022551,0),(130616,1322022551,0),(130654,1322022539,0),(130660,1322021248,0),(130661,1322021250,0),(130682,1322021537,0),(130683,1322021536,0),(130689,1322021536,0),(130690,1322021264,0),(130695,1322021262,0),(130716,1322022551,0),(130717,1322022551,0),(130718,1322022551,0),(130719,1322022551,0),(130720,1322022551,0),(130734,1322022551,0),(130741,1322022551,0),(130794,1322021252,0),(130795,1322021532,0),(130796,1322021260,0),(130797,1322021534,0),(130798,1322021264,0),(130826,1322021540,0),(130827,1312688586,0),(130828,1322021536,0),(130829,1322021244,0),(130830,1322021538,0),(130885,1322022010,0),(130886,1322021968,0),(130887,1322022269,0),(130888,1322022232,0),(130889,1322022153,0),(130890,1322022104,0),(130891,1322022056,0),(130902,1322022720,0),(130926,1322022311,0),(130937,1322022299,0),(131002,1316902521,0),(131005,1316902507,0),(131008,1316902510,0),(131050,1316902526,0),(131092,1316902538,0),(134312,1315894962,0),(134313,1315894958,0),(134314,1315894971,0),(134315,1315894986,0),(134316,1315894957,0),(134317,1315894939,0),(238987,1316128671,0),(239063,1316128695,0),(239109,1316128680,0),(239111,1316129576,0),(239112,1316128699,0),(239144,1316129570,0),(239296,1316127797,0),(239334,1316126281,0),(239361,1316128890,0),(239398,1316128664,0),(239418,1313340115,0),(239475,1316129573,0),(239484,1316129590,0),(239514,1316128674,0),(239518,1316129299,0),(239545,1316129344,0),(239574,1316129342,0),(239635,1316128684,0),(239677,1316128663,0),(239681,1313340365,0),(239683,1316129591,0),(239811,1316128697,0),(239900,1316129299,0),(239926,1316129299,0),(239955,1316129573,0),(240035,1316128704,0),(240052,1316129583,0),(240198,1316128764,0),(240247,1316128693,0),(240337,1316129573,0),(240436,1316128675,0),(240468,1316127795,0),(240509,1316128896,0),(240608,1316129573,0),(240638,1316129206,0),(240676,1316128691,0),(240690,1316129178,0),(240715,1316127817,0),(240720,1316129572,0),(240995,1316127775,0),(241006,1316129342,0),(241007,1316128906,0),(241024,1316129342,0),(241122,1316128717,0),(241126,1316129570,0),(241173,1316127785,0),(241229,1316127779,0),(241242,1316128906,0),(241412,1316129368,0),(241525,1316129299,0),(241607,1316129574,0),(241830,1316129297,0),(241854,1316128914,0),(241970,1316128918,0),(241982,1316128657,0),(242147,1316128919,0),(242241,1316129570,0),(242243,1316129578,0),(242445,1316127804,0),(242521,1316126285,0),(242588,1316128684,0),(242652,1316129570,0),(242654,1316127789,0),(242699,1315624996,0),(242711,1310257065,0),(242729,1313292210,0),(242767,1310257044,0),(242797,1314124197,0),(242838,1315625139,0),(242872,1315624958,0),(242896,1310257048,0),(242937,1315624797,0),(243060,1315624927,0),(243095,1315624942,0),(243174,1315625148,0),(243189,1313290309,0),(243190,1310257096,0),(243200,1315625150,0),(243256,1310257082,0),(243260,1310257048,0),(243307,1315624810,0),(243344,1315624936,0),(243349,1315625000,0),(243352,1315624941,0),(243422,1315625228,0),(243453,1315624967,0),(243462,1313289980,0),(243470,1314124206,0),(243486,1310257084,0),(243538,1315625109,0),(243594,1315624311,0),(243618,1315625007,0),(243620,1315624605,0),(243660,1314124203,0),(243668,1310257079,0),(243695,1315624929,0),(243706,1314124204,0),(243721,1314124188,0),(243765,1315624314,0),(243774,1314124186,0),(243789,1313292178,0),(243790,1315625115,0),(243792,1310257054,0),(243818,1315625002,0),(243833,1315625169,0),(243842,1315624947,0),(243852,1315624979,0),(243888,1314124203,0),(243903,1314124193,0),(243925,1315625118,0),(243954,1315624347,0),(244040,1315624958,0),(244042,1315624935,0),(244059,1315624848,0),(244065,1310257071,0),(244092,1315624946,0),(244094,1315624971,0),(244127,1314124195,0),(244136,1315625136,0),(244148,1310257046,0),(244182,1315624939,0),(244204,1310257045,0),(244254,1310257087,0),(244256,1313292196,0),(244272,1314124208,0),(244279,1315625155,0),(244283,1315624934,0),(244289,1315625124,0),(244315,1314124192,0),(244328,1315624964,0),(244339,1315625153,0),(244362,1308012931,0),(244384,1315624925,0),(244456,1310257042,0),(244457,1310257067,0),(244488,1315624958,0),(244515,1308012935,0),(244517,1310257016,0),(244530,1315624950,0),(244561,1310257061,0),(244565,1308013179,0),(244576,1310257094,0),(244580,1315624928,0),(244648,1315624613,0),(244667,1315625149,0),(244774,1315624932,0),(244833,1315625119,0),(244836,1308012958,0),(244842,1315624954,0),(244861,1310257108,0),(244908,1315624991,0),(244927,1310257042,0),(244947,1315624599,0),(244996,1308012936,0),(245023,1315624309,0),(245037,1315625115,0),(245062,1308013010,0),(245069,1310257051,0),(245087,1315624661,0),(245096,1315624954,0),(245109,1314117148,0),(245131,1313358478,0),(245172,1313358456,0),(245193,1313358578,0),(245225,1313358591,0),(245282,1313360108,0),(245327,1313358442,0),(245477,1313359911,0),(245713,1313358552,0),(245818,1313358524,0),(245854,1314117388,0),(245948,1313358547,0),(246005,1313359818,0),(246063,1313358504,0),(246171,1313360145,0),(246566,1313360154,0),(246589,1313359942,0),(246603,1314117590,0),(246655,1313358364,0),(246665,1313360129,0),(246745,1314117604,0),(246805,1313358312,0),(246817,1313358568,0),(246848,1313358366,0),(246862,1313358608,0),(246946,1313358336,0),(247010,1314117624,0),(249777,1315778612,0),(250377,1315778594,0),(251038,1315778610,0),(251340,1313265824,0),(251456,1315778603,0),(252292,1313265684,0),(252353,1321565958,0),(252379,1321565910,0),(252700,1312412749,0),(252710,1307149845,0),(252718,1312412685,0),(252732,1315517070,0),(252785,1321566094,0),(252832,1312512013,0),(252842,1315514703,0),(252881,1312412509,0),(253018,1312412519,0),(253087,1312412516,0),(253104,1315517056,0),(253143,1312412519,0),(253171,1312412518,0),(253183,1312412527,0),(253249,1315517059,0),(253324,1312414834,0),(253350,1315517037,0),(253365,1321566092,0),(253384,1312412510,0),(253552,1312412511,0),(253627,1312412517,0),(253816,1321566113,0),(253856,1312412596,0),(253866,1312414954,0),(253932,1312412508,0),(254017,1315515727,0),(254032,1312412607,0),(254046,1312412590,0),(254122,1315346851,0),(254126,1312412508,0),(254127,1312412616,0),(254135,1315517077,0),(254143,1306888274,0),(254442,1306888060,0),(254514,1307149845,0),(254530,1312412666,0),(254555,1306888059,0),(254562,1315515761,0),(254614,1312412578,0),(254629,1312412579,0),(254657,1312412553,0),(254696,1315516489,0),(254701,1312412532,0),(254722,1312412510,0),(254762,1312412516,0),(254769,1312412513,0),(254876,1312412650,0),(254976,1312412641,0),(255044,1312412526,0),(255115,1312412525,0),(255166,1312512011,0),(255170,1307237244,0),(255206,1321566104,0),(255235,1315515738,0),(255237,1307237247,0),(255245,1315516957,0),(258695,1322271596,0),(259416,1322271602,0),(259474,1322271595,0),(263499,1313268509,0),(267819,1313268883,0),(268015,1315778446,0),(268672,1315778444,0),(269220,1315778393,0),(269465,1308365367,0),(269679,1315778454,0),(281635,1316226342,0),(283204,1316467948,0),(283815,1313268118,0),(284094,1313268112,0),(284107,1313268112,0),(284306,1313268158,0),(284531,1313268105,0),(285056,1316467940,0),(285120,1313268081,0),(285139,1313268576,0),(285264,1313268580,0),(285330,1313268718,0),(285392,1313268650,0),(285494,1313268545,0),(285601,1313268621,0),(285688,1313268577,0),(285699,1313268719,0),(285874,1313268555,0),(286005,1313268636,0),(286020,1313268561,0),(286047,1313268580,0),(286063,1313268638,0),(286067,1313268545,0),(286109,1313268545,0),(286654,1315626491,0),(286660,1315626425,0),(286678,1315625828,0),(286834,1315626288,0),(287019,1315626298,0),(287751,1315625860,0),(290815,1315623439,0),(290849,1315623451,0),(290867,1315623466,0),(290906,1315624150,0),(291000,1315623663,0),(291018,1307662035,0),(291101,1315624357,0),(291169,1315623662,0),(291171,1315623663,0),(291188,1315624362,0),(291225,1315623455,0),(291355,1315624353,0),(291435,1315623469,0),(291445,1315623447,0),(291558,1315623458,0),(291563,1315623668,0),(291593,1315624156,0),(293928,1313271727,0),(294042,1313267790,0),(294416,1313271730,0),(294798,1313271673,0),(294830,1313267868,0),(294920,1313267865,0),(295025,1313269227,0),(295037,1313271663,0),(295123,1313267714,0),(295324,1313267816,0),(295898,1316225993,0),(295955,1316225659,0),(296472,1316226011,0),(296949,1316225631,0),(297332,1316226665,0),(298069,1316226681,0),(298125,1316226720,0),(298310,1316226681,0),(298388,1316226809,0),(298526,1316226643,0),(298655,1316226685,0),(299096,1316226712,0),(299101,1316226621,0),(299193,1316226686,0),(303364,1317252719,0),(305308,1315621147,0),(306184,1306823845,0),(308832,1315790102,0),(308844,1315790242,0),(308926,1315790889,0),(308943,1315789831,0),(309002,1315790086,0),(309029,1315790900,0),(309043,1315790080,0),(309075,1315790110,0),(309194,1315789830,0),(309336,1315789853,0),(309338,1315790068,0),(309408,1315790347,0),(309506,1315790165,0),(309817,1315790057,0),(309846,1315789880,0),(309983,1315790917,0),(310024,1315790060,0),(310095,1315790040,0),(310209,1315790089,0),(310242,1315790067,0),(310420,1316119589,0),(310515,1316122505,0),(310567,1316119573,0),(310735,1316119595,0),(310895,1316119624,0),(310925,1316120944,0),(310995,1316121151,0),(311039,1316122570,0),(311052,1316119622,0),(311230,1316119604,0),(311355,1315516567,0),(311408,1315623097,0),(311415,1315516568,0),(311448,1315515864,0),(311498,1315623116,0),(311559,1315699966,0),(311648,1315699883,0),(311649,1315623006,0),(311728,1315516565,0),(311846,1315699913,0),(311905,1315623129,0),(311932,1313272559,0),(312009,1315699965,0),(312056,1315699883,0),(312223,1315623003,0),(312280,1307313080,0),(312288,1313272549,0),(312374,1313272560,0),(312456,1315699967,0),(312479,1315699945,0),(312545,1315623137,0),(323543,1314666932,0),(323545,1314666884,0),(323547,1314666871,0),(323767,1314666894,0),(501959,1306808467,0),(503494,1306815055,0),(503495,1306815060,0),(503501,1306815046,0),(503502,1306815033,0),(504609,1306814896,0),(504610,1306814882,0),(504611,1306814837,0),(504612,1306814777,0),(504613,1306814845,0),(504617,1306814943,0),(1050173,1310864189,0),(1050211,1310864251,0),(1050213,1310864119,0),(1050215,1310864152,0),(1050219,1310864206,0),(1050435,1310864132,0),(1065553,1317253845,0),(6386592,1306814831,0),(6386600,1306815059,0),(6386602,1306819788,0),(6386609,1306819449,0),(6386613,1306815050,0),(6386623,1306814822,0),(6386630,1306819777,0),(6386780,1306814922,0),(6386782,1306819630,0),(6386788,1306815078,0),(6386790,1306819617,0),(6386793,1306814915,0),(6386797,1306815035,0),(6386808,1306814905,0),(6393129,1306808714,0),(6393130,1306813419,0),(6393133,1306808715,0),(6393136,1306808701,0),(6393137,1306808723,0),(6393138,1306808717,0),(6393139,1306808706,0),(6393140,1306808713,0),(6393142,1306808705,0),(6393143,1306808708,0),(6393144,1306808705,0),(6393145,1306808712,0),(6393155,1306808692,0),(6393182,1306813405,0),(6393186,1306813412,0),(6393236,1306813395,0),(6393549,1306809501,0),(6393550,1306813835,0),(6393553,1306809533,0),(6393557,1306809518,0),(6393558,1306809530,0),(6393559,1306809505,0),(6393560,1306809514,0),(6393563,1306809490,0),(6393564,1306809554,0),(6393566,1306809739,0),(6393570,1306809757,0),(6393574,1306809762,0),(6393600,1306814063,0),(6393602,1306814076,0),(6393603,1306814303,0),(6393605,1306809775,0),(6393606,1306814077,0),(6393608,1306814444,0),(6393609,1306814507,0),(6393611,1306814508,0),(6393613,1306809792,0),(6393614,1306809414,0),(6393618,1306809459,0),(6393625,1306814119,0),(6393626,1306814126,0),(6393627,1306814463,0),(6393632,1306814298,0),(6393634,1306814056,0),(6393641,1306814309,0),(6393642,1306814175,0),(6393644,1306814208,0),(6393646,1306814113,0),(6393648,1306814239,0),(6393649,1306814226,0),(6393650,1306814295,0),(6393651,1306814057,0),(6393652,1306814128,0),(6393656,1306814045,0),(6393659,1306814472,0),(6393668,1306814221,0),(6393670,1306814216,0),(6393671,1306814186,0),(6394462,1306844168,0),(6394463,1306848866,0),(6394464,1306844170,0),(6394466,1306844160,0),(6394469,1306844153,0),(6394470,1306844175,0),(6394471,1306844168,0),(6394472,1306844163,0),(6394473,1306844177,0),(6394474,1306844180,0),(6394475,1306844171,0),(6394476,1306844158,0),(6394477,1306844168,0),(6394478,1306844178,0),(6394480,1306844197,0),(6394483,1306844255,0),(6394484,1306844200,0),(6394485,1306844196,0),(6394486,1306844163,0),(6394487,1306844187,0),(6394488,1306844197,0),(6394513,1306848911,0),(6394515,1306848871,0),(6394518,1306844179,0),(6394519,1306848913,0),(6394521,1306848917,0),(6394530,1306844146,0),(6394540,1306848882,0),(6394547,1306848859,0),(6394564,1306848883,0),(6394569,1306848859,0),(6394572,1306848882,0),(6396907,1310840311,0),(6396908,1310845004,0),(6396911,1310840306,0),(6396914,1310840286,0),(6396915,1310840309,0),(6396916,1310840294,0),(6396917,1310840299,0),(6396918,1310840289,0),(6396919,1310840301,0),(6396920,1310840288,0),(6396921,1310840286,0),(6396922,1310840301,0),(6396923,1310840299,0),(6396928,1310840323,0),(6396932,1310840292,0),(6396933,1310840297,0),(6396983,1311108413,0),(6396984,1311108424,0),(6396985,1311108399,0),(6396990,1311108510,0),(6396992,1311108448,0),(6396995,1311108435,0),(6396996,1311108404,0),(6396999,1311108395,0),(6397000,1311108417,0),(6397001,1311108451,0),(6397002,1311108426,0),(6397003,1311108437,0),(6397004,1311108412,0),(6397006,1311108549,0),(6397007,1311108524,0),(6397008,1311108456,0),(6397009,1311108449,0),(6397010,1311108402,0),(6397014,1311108399,0),(6397017,1311108409,0),(6397022,1311108404,0),(6397026,1311108519,0),(6397027,1311108411,0),(6397028,1311108504,0),(6397029,1311108447,0),(6399141,1307567878,0),(6399142,1307567661,0),(6399143,1307567657,0),(6399144,1307567688,0),(6399145,1307567709,0),(6399147,1307567735,0),(6399148,1307567662,0),(6399149,1307567678,0),(6399152,1307567665,0),(6399167,1307566280,0),(6399168,1307566278,0),(6399171,1307566281,0),(6399172,1307566288,0),(6399186,1307566626,0),(6399190,1307567849,0),(6399191,1307567626,0),(6399200,1307566626,0),(6399209,1307566275,0),(6399210,1307566293,0),(6399270,1307571694,0),(6399272,1307571574,0),(6399273,1307570955,0),(6399277,1307571274,0),(6399280,1307571282,0),(6399284,1307566318,0),(6399287,1307566254,0),(6399295,1307571023,0),(6399296,1307571045,0),(6399297,1307570933,0),(6399302,1307570928,0),(6399308,1307570961,0),(6399311,1307570941,0),(6399312,1307571073,0),(6399316,1307571019,0),(6399319,1307571124,0),(6399320,1307570933,0),(6399321,1307571296,0),(6399322,1307571042,0),(6399326,1307570938,0),(6399334,1307570946,0),(6399338,1307571115,0),(6399340,1307571094,0),(6399375,1307567605,0),(6399376,1307567606,0),(6399377,1307567846,0),(6399378,1307567665,0),(6399379,1307567850,0),(6399383,1307567609,0),(6399384,1307567864,0),(6399385,1307567881,0),(6399386,1307567593,0),(6399387,1307567692,0),(6399410,1307567705,0),(6416300,1309645817,0),(6416301,1309645785,0),(6416302,1309645804,0),(6416303,1309645794,0),(6416304,1309645810,0),(6416415,1310509593,0),(6416416,1310509599,0),(6416417,1310509506,0),(6416418,1310509513,0),(6416419,1310509471,0),(6416420,1310509457,0),(6416421,1310509608,0),(6416424,1310509578,0),(6416425,1310509560,0),(6416428,1310509608,0),(6416437,1310509483,0),(6416438,1310509505,0),(6416445,1310509602,0),(6416446,1310509503,0),(6416447,1310509495,0),(6416448,1310509513,0),(6416456,1310509485,0),(6416457,1310509547,0),(6416458,1310509546,0),(6416481,1310509537,0),(6416482,1310509458,0),(6416483,1310509528,0),(6416484,1310509517,0),(6416534,1310509467,0),(6416535,1310509466,0),(6416542,1310509596,0),(6416594,1310509565,0),(6416599,1310509463,0),(6416600,1310509455,0),(6416601,1310509455,0),(6416602,1310509538,0),(6430882,1311642527,0),(6430883,1311642539,0),(6430886,1311642567,0),(6430887,1311642560,0),(6430888,1311642580,0),(6433109,1309563760,0),(6433110,1309563734,0),(6433113,1309563689,0),(6433114,1309563708,0),(6433115,1309563703,0),(6433116,1309563695,0),(6433128,1309563873,0),(6433129,1309563863,0),(6433130,1309563810,0),(6433131,1309563847,0),(6433132,1309563867,0),(6440696,1308875048,0),(6441049,1308875105,0),(6441053,1308875081,0),(6441092,1308878465,0),(6441339,1308875128,0),(6441482,1308875073,0),(6441994,1309214612,0),(6442006,1309213421,0),(6442007,1309213424,0),(6442008,1309213453,0),(6442010,1309215252,0),(6442011,1309214611,0),(6442015,1309215274,0),(6442016,1309215260,0),(6442017,1309214781,0),(6443147,1322091761,0),(6443596,1309211624,0),(6443597,1309211599,0),(6443598,1309211607,0),(6443599,1309211615,0),(6443600,1309211629,0),(6443667,1309211715,0),(6443893,1310819764,0),(6532830,1317252410,0),(6584721,1316129187,0),(6584722,1316129183,0),(6584723,1316129188,0),(6584727,1316128708,0),(6584728,1316128690,0),(6584729,1316128684,0),(6584730,1316128702,0),(6584731,1316128730,0),(6584732,1316128723,0),(6584733,1316128736,0),(6584734,1316129222,0),(6597863,1317253830,0),(6597864,1317253866,0),(6598630,1315707220,0),(6598633,1315707221,0),(6598639,1315707223,0),(6598657,1315707263,0),(6598810,1320787812,0),(6598811,1320787812,0),(6598812,1320787812,0),(6598814,1320787817,0),(6598815,1320787829,0),(6598816,1320787829,0),(6598820,1320787808,0),(6598821,1320787829,0),(6598824,1320787825,0),(6598825,1320787825,0),(6598826,1320787805,0),(6598829,1320787808,0),(6598830,1320787808,0),(6598831,1320787812,0),(6598832,1320787815,0),(6598833,1320787808,0),(6598834,1320787829,0),(6598835,1320787825,0),(6598838,1320787829,0),(6598839,1320787815,0),(6598840,1320787812,0),(6598851,1320787815,0),(6598878,1320787812,0),(6598879,1320787829,0),(6598880,1320787825,0),(6598881,1320787805,0),(6598883,1320787805,0),(6598884,1320787805,0),(6598885,1320787805,0),(6598886,1320787805,0),(6598887,1320787805,0),(6598888,1320787825,0),(6598890,1320787825,0),(6598927,1320787808,0),(6598928,1320787812,0),(6598930,1320787808,0),(6598932,1320787805,0),(6598933,1320787808,0),(6598934,1320787808,0),(6598935,1320787812,0),(6598936,1320787829,0),(6598938,1320787825,0),(6598939,1320787808,0),(6598940,1320787808,0),(6598941,1320787808,0),(6598997,1320788112,0),(6598998,1320788108,0),(6598999,1320788108,0),(6599000,1320788129,0),(6599001,1320788129,0),(6599002,1320788129,0),(6599003,1320788134,0),(6599005,1320788131,0),(6599006,1320788112,0),(6599007,1320788112,0),(6599008,1320788112,0),(6599009,1320788112,0),(6599023,1320788112,0),(6599025,1320788125,0),(6610281,1311637764,0),(6610284,1311637599,0),(6610285,1311637623,0),(6610286,1311637540,0),(6623704,1320787812,0),(6623705,1320787812,0),(6623706,1320787829,0),(6623707,1320787829,0),(6623708,1320787831,0),(6623709,1320787834,0),(6624391,1313803504,0),(6624392,1313803517,0),(6624393,1313803492,0),(6624394,1313803491,0),(6624395,1313803486,0),(6624396,1313803491,0),(6624397,1313803494,0),(6624398,1313803495,0),(6624399,1313803488,0),(6624400,1313803497,0),(6624401,1313803481,0),(6624402,1313803474,0),(6624403,1313803488,0),(6624404,1313803515,0),(6624405,1313803502,0),(6624406,1313803511,0),(6624407,1313803482,0),(6624408,1313803474,0),(6624409,1313803485,0),(6624410,1313803485,0),(6624411,1313803493,0),(6624441,1313803515,0),(6630869,1313794266,0),(6631741,1314124184,0),(6631742,1314124182,0),(6631743,1314124206,0),(6631962,1314124198,0),(6631963,1314124190,0),(6631988,1315704554,0),(6631989,1315703675,0),(6631990,1315704597,0),(6631991,1315703646,0),(6631992,1315703774,0),(6631993,1315703753,0),(6631994,1315703701,0),(6631995,1315704569,0),(6631997,1315703448,0),(6632000,1315703406,0),(6632002,1315703703,0),(6632003,1315703668,0),(6632004,1315703676,0),(6632005,1315703664,0),(6632006,1315703598,0),(6632007,1315704564,0),(6632008,1315704562,0),(6632009,1315704546,0),(6632010,1315704543,0),(6632011,1315704583,0),(6632012,1315704650,0),(6632016,1315703639,0),(6632017,1315703630,0),(6632018,1315703691,0),(6632019,1315703694,0),(6632020,1315703746,0),(6632021,1315703534,0),(6632022,1315703525,0),(6632023,1315703671,0),(6632024,1315703617,0),(6632025,1315703615,0),(6632026,1315703704,0),(6632027,1315703759,0),(6632028,1315703739,0),(6632031,1315703756,0),(6632033,1315703787,0),(6632034,1315703720,0),(6632102,1314575975,0),(6632104,1314575980,0),(6632107,1314575982,0),(6632927,1314536622,0),(6632930,1314536621,0),(6632932,1314536617,0),(6632933,1314536606,0),(6632934,1314536611,0),(6650428,1321070126,0),(6650429,1321070138,0),(6657571,1321070132,0),(6657572,1321070117,0),(6682922,1321069941,0),(6682924,1321070111,0),(6682926,1321070123,0),(6682934,1321069931,0),(6682936,1321070098,0),(7002026,1315790769,0),(7002029,1315790758,0),(7002030,1315790799,0),(7002032,1315790763,0),(7002067,1315790827,0),(7002069,1315790779,0),(7002070,1315790751,0),(7002234,1315790218,0),(7002394,1315790183,0),(7003001,1315789977,0),(7003191,1315790175,0),(7011010,1315692790,0),(7011011,1315692742,0),(7011031,1315691826,0),(7011528,1315694686,0),(7011666,1315694689,0),(7031372,1315707567,0),(7081336,1315704559,0),(7081337,1315704561,0),(7081339,1315703742,0),(7081341,1315703506,0),(7081348,1315703740,0),(7081355,1315703760,0),(7081356,1315707296,0),(7081357,1315707227,0),(7129476,1315894957,0),(7129477,1315894938,0),(7129478,1315894971,0),(7129480,1315894952,0),(7129481,1315894937,0),(7212412,1315708142,0),(7212413,1315708412,0),(7212415,1315707377,0),(7216801,1315704441,0),(7216877,1315704833,0),(7216878,1315704822,0),(7216879,1315704820,0),(7216880,1315704828,0),(7216881,1315704826,0),(7216882,1315704829,0),(7216883,1315704825,0),(7216928,1315704829,0),(7216929,1315704832,0),(7216930,1315704819,0),(7216931,1315704822,0),(7216932,1315704820,0),(7216933,1315704818,0),(7216934,1315704826,0),(7221985,1315513051,0),(7222014,1315513053,0),(7222022,1315513056,0),(7222033,1315513137,0),(7222035,1315513279,0),(7222037,1315513085,0),(7222041,1315513051,0),(7222043,1315513247,0),(7222050,1315513245,0),(7222054,1315513213,0),(7222059,1315513256,0),(7222060,1315513245,0),(7222063,1315513321,0),(7222067,1315513251,0),(7222071,1315513075,0),(7222072,1315513082,0),(7222073,1315513281,0),(7222074,1315513320,0),(7222077,1315513063,0),(7222080,1315513321,0),(7222082,1315513223,0),(7222084,1315513278,0),(7222085,1315513295,0),(7222089,1315513254,0),(7222100,1315513238,0),(7222101,1315513260,0),(7222109,1315513209,0),(7222111,1315513462,0),(7222112,1315513405,0),(7222116,1315513236,0),(7222127,1315513221,0),(7222130,1315513219,0),(7222135,1315513248,0),(7222142,1315513210,0),(7222144,1315513230,0),(7222148,1315513212,0),(7222151,1315513246,0),(7222152,1315513241,0),(7222153,1315513212,0),(7222155,1315513206,0),(7222160,1315513309,0),(7222161,1315513459,0),(7222164,1315513403,0),(7222167,1315513520,0),(7222168,1315513618,0),(7222169,1315513514,0),(7222170,1315513408,0),(7222171,1315513585,0),(7222172,1315513506,0),(7222174,1315513461,0),(7222175,1315513734,0),(7222176,1315513388,0),(7222178,1315513508,0),(7222179,1315513566,0),(7222181,1315513454,0),(7222183,1315513635,0),(7222185,1315513492,0),(7222186,1315513568,0),(7222187,1315513409,0),(7222189,1315513401,0),(7222190,1315513431,0),(7222192,1315513615,0),(7222193,1315513687,0),(7222194,1315513425,0),(7222196,1315513385,0),(7222197,1315513400,0),(7222198,1315513405,0),(7222201,1315513480,0),(7222203,1315513516,0),(7222206,1315513538,0),(7222207,1315513715,0),(7222235,1315513068,0),(7222236,1315513259,0),(7222315,1315513189,0),(7223988,1315513048,0),(7224546,1315513585,0),(7224547,1315513628,0),(7224548,1315513533,0),(7224549,1315513806,0),(7224551,1315513377,0),(7233722,1322171301,0),(7233723,1322171604,0),(7234731,1322171545,0),(7234732,1322171547,0),(7234733,1322171549,0),(7234734,1322171551,0),(7234735,1322171552,0),(7234736,1322171548,0),(7236454,1322171287,0),(7236455,1322171587,0),(7236494,1322170816,0),(7236495,1322170776,0),(7236496,1322170745,0),(7236497,1322170724,0),(7236508,1322170711,0),(7236509,1322170681,0),(7236523,1322170560,0),(7236524,1322170576,0),(7236525,1322170545,0),(7236526,1322170579,0);
/*!40000 ALTER TABLE `creature_respawn` 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 */;
|
{% if master_ip in ansible_all_ipv4_addresses %}
create user {{mysql_rple_user}}@'%' identified by '{{mysql_rple_password}}';
grant replication slave,replication client on *.* to {{mysql_rple_user}}@'%';
{% else %}
select sleep(10);
change master to
master_host='{{master_ip}}',
master_port={{mysql_port}},
master_user='{{mysql_rple_user}}',
master_password='{{<PASSWORD>}}',
master_auto_position=1;
start slave;
{% endif %}
|
<filename>migrations/sqls/20200902102305-non-chargable-change-reasons-up.sql
create type water.change_reason_type as enum (
'new_chargeable_charge_version',
'new_non_chargeable_charge_version'
);
alter table water.change_reasons
add column type water.change_reason_type;
update water.change_reasons
set type = 'new_chargeable_charge_version'::water.change_reason_type;
alter table water.change_reasons
alter column type set not null;
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Held by Environment Agency', 100, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Aggregate licence', 101, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Chloride content more than 8000 milligrams per litre', 100, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Abatement (S126)', 102, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Power generation less than 5 megawatts (S125)', 100, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Temporary trade', 103, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Temporary type licence', 104, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Transfer type licence', 105, now(), now(), 'new_non_chargeable_charge_version');
insert into water.change_reasons (description, position, date_created, date_updated, type)
values ('Shell licence ', 106, now(), now(), 'new_non_chargeable_charge_version');
|
<filename>AC3 M1 RA 1901100 1901194.sql
CREATE TABLE ClienteC (
ID INT NOT NULL IDENTITY(1,1)
, Nome VARCHAR(50) NOT NULL
, Endereco VARCHAR(255) NULL
, CONSTRAINT PK_Cliente PRIMARY KEY ( ID )
)
GO
CREATE TABLE TelefoneT (
Id_cliente INT NOT NULL
, Numero INT NOT NULL
, CONSTRAINT PK_Telefone PRIMARY KEY ( Id_cliente, Numero )
, CONSTRAINT FK_TelefoneCliente FOREIGN KEY ( ID_cliente ) REFERENCES Cliente ( ID )
)
GO
CREATE TABLE Produto (
ID INT NOT NULL IDENTITY(1,1)
, Nome VARCHAR(50) NOT NULL
, CONSTRAINT PK_Produto PRIMARY KEY ( ID )
)
GO
CREATE TABLE PedidoP (
Numero INT NOT NULL IDENTITY(1,1)
, DataHora DATETIME NOT NULL
, Id_cliente INT NOT NULL
, CONSTRAINT PK_Pedido PRIMARY KEY (Numero )
, CONSTRAINT FK_PedidoCliente FOREIGN KEY ( ID_cliente ) REFERENCES Cliente ( ID )
)
GO
CREATE TABLE ItemPedidoP (
NumeroPedido INT NOT NULL
, ID_produto INT NOT NULL
, Qtde INT NOT NULL
, CONSTRAINT PK_PedidoP PRIMARY KEY (NumeroPedido, ID_produto)
, CONSTRAINT FK_ItemPedidoPedidoP FOREIGN KEY ( NumeroPedido) REFERENCES PedidoP ( Numero )
, CONSTRAINT FK_ItemPedidoProdutoP FOREIGN KEY ( ID_produto) REFERENCES Produto ( ID )
)
ALTER TABLE [SALAS\1901100].Produto
ADD PRECOTABELADO DECIMAL(6,2) NULL
ALTER TABLE [SALAS\1901100].ItemPedidoP
ADD PRECOVENDA DECIMAL(6,2) NULL
SELECT * FROM [SALAS\1901100].Produto
SELECT SUSER_NAME()
ALTER TABLE ITEMPEDIDOP
ADD CONSTRAINT CKqtd CHECK (QTDE > 0)
ALTER TABLE PEDIDOP
ADD CONSTRAINT DF_DTPED DEFAULT (GETDATE()) FOR DataHora
ALTER TABLE PRODUTO
ADD CONSTRAINT UN_NOMPROD UNIQUE (NOME)
|
----empty script as up.sql for this contains dropping redundant tables |
# --- !Ups
CREATE SEQUENCE "company_id_seq" INCREMENT BY 1 START WITH 4;
CREATE SEQUENCE "child_id_seq" INCREMENT BY 1 START WITH 1;
CREATE TABLE company
(
id integer NOT NULL DEFAULT nextval('company_id_seq'::regclass),
name character varying NOT NULL,
value integer NOT NULL,
parent boolean NOT NULL,
CONSTRAINT pkcompany PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE company
OWNER TO postgres;
CREATE TABLE child
(
id integer NOT NULL DEFAULT nextval('child_id_seq'::regclass),
child integer NOT NULL,
parent integer NOT NULL,
CONSTRAINT pkchild PRIMARY KEY (id)
)
WITH (
OIDS=FALSE
);
ALTER TABLE child
OWNER TO postgres;
# --- !Downs
ALTER TABLE agent_position DROP CONSTRAINT company_id_seq;
ALTER TABLE agent_position DROP CONSTRAINT child_id_seq;
DROP TABLE company;
DROP TABLE child;
/******************** Drop Sequence ************************/
DROP SEQUENCE "child_id_seq";
DROP SEQUENCE "company_id_seq"; |
CREATE DATABASE EducationProject;
CREATE TABLE matiere (
id SERIAL PRIMARY KEY NOT NULL,
nom VARCHAR(40) NOT NULL DEFAULT '',
volumeHoraire VARCHAR(5) NULL DEFAULT '',
description VARCHAR(255) NULL DEFAULT '',
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW()
);
COMMENT ON COLUMN matiere.nom is 'C''est le nom de la matière.';
COMMENT ON COLUMN matiere.volumeHoraire is 'C''est le volume horaire d''une matière.';
COMMENT ON COLUMN matiere.description is 'C''est la description d''une matière.';
CREATE TABLE classe (
id SERIAL PRIMARY KEY NOT NULL,
nom VARCHAR(40) NOT NULL DEFAULT '',
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW()
);
COMMENT ON COLUMN classe.nom is 'C''est le nom de la classe.';
CREATE TABLE enseignant (
id SERIAL PRIMARY KEY NOT NULL,
nom VARCHAR(40) NOT NULL DEFAULT '',
prenom VARCHAR(40) NOT NULL DEFAULT '',
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW()
);
COMMENT ON COLUMN enseignant.nom is 'C''est le nom de l''enseignant';
COMMENT ON COLUMN enseignant.prenom is 'C''est le prénom de l''enseignant';
CREATE TABLE salle (
id SERIAL PRIMARY KEY NOT NULL,
nom VARCHAR(40) NOT NULL DEFAULT '',
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW()
);
COMMENT ON COLUMN salle.nom is 'C''est le nom de la salle';
CREATE TABLE options (
id INTEGER PRIMARY KEY NOT NULL,
splitPlanning INTEGER NOT NULL DEFAULT 60,
startHourPlanning TIME NOT NULL DEFAULT '08:00:00',
endHourPlanning TIME NOT NULL DEFAULT '17:00:00'
);
COMMENT ON COLUMN options.splitPlanning is 'Temps de découpage du planning';
COMMENT ON COLUMN options.startHourPlanning is 'Heure de début du planning';
COMMENT ON COLUMN options.endHourPlanning is 'Heure de fin du planning';
INSERT INTO options(id, splitplanning, starthourplanning, endhourplanning) VALUES (1, 60, '08:00:00', '17:00:00');
CREATE TABLE jour(
id INT PRIMARY KEY NOT NULL,
nom VARCHAR(20) NOT NULL
);
INSERT INTO jour (id, nom) VALUES (1, 'Lundi');
INSERT INTO jour (id, nom) VALUES (2, 'Mardi');
INSERT INTO jour (id, nom) VALUES (3, 'Mercredi');
INSERT INTO jour (id, nom) VALUES (4, 'Jeudi');
INSERT INTO jour (id, nom) VALUES (5, 'Vendredi');
INSERT INTO jour (id, nom) VALUES (6, 'Samedi');
CREATE TABLE timeslot (
id SERIAL PRIMARY KEY NOT NULL,
startHour TIME NOT NULL,
endHour TIME NOT NULL
);
COMMENT ON COLUMN timeslot.startHour is 'Heure de début';
COMMENT ON COLUMN timeslot.endHour is 'Heure de fin';
CREATE TABLE slot (
id SERIAL PRIMARY KEY NOT NULL,
comment VARCHAR(50),
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW(),
couleurFond VARCHAR(15) NOT NULL DEFAULT '',
couleurPolice VARCHAR(15) NOT NULL DEFAULT '',
idTimeslot INT NOT NULL,
idMatiere INT NOT NULL,
idEnseignant INT,
idSalle INT,
idJour INT NOT NULL,
FOREIGN KEY(idTimeslot) REFERENCES timeslot(id),
FOREIGN KEY(idMatiere) REFERENCES matiere(id),
FOREIGN KEY(idEnseignant) REFERENCES enseignant(id),
FOREIGN KEY(idSalle) REFERENCES salle(id),
FOREIGN KEY(idJour) REFERENCES jour(id)
);
COMMENT ON COLUMN slot.comment is 'Commentaire du slot : groupes multiples, autres tâches etc.';
COMMENT ON COLUMN slot.couleurFond is 'C''est la couleur de fond de la matière.';
COMMENT ON COLUMN slot.couleurPolice is 'C''est la couleur de la police de la matière.';
CREATE TABLE planning (
id SERIAL PRIMARY KEY NOT NULL,
nom VARCHAR(50) NOT NULL,
creationDate TIMESTAMP NOT NULL DEFAULT NOW(),
modificationDate TIMESTAMP NOT NULL DEFAULT NOW(),
wednesdayUsed BOOLEAN NOT NULL DEFAULT true,
saturdayUsed BOOLEAN NOT NULL DEFAULT false,
idClasse INT NOT NULL,
FOREIGN KEY(idClasse) REFERENCES classe(id)
);
CREATE TABLE planning_has_slots(
idPlanning INT NOT NULL,
idSlot INT NOT NULL,
PRIMARY KEY(idPlanning, idSlot),
FOREIGN KEY(idPlanning) REFERENCES planning(id),
FOREIGN KEY(idSlot) REFERENCES slot(id)
);
|
use sequence_safe_mode_test;
insert into t1 (uid, name) values (10003, 'Buenos Aires');
alter table t1 add column age int;
alter table t1 add index age(age);
alter table t1 add column level int;
alter table t1 add index level(level);
insert into t1 (uid, name, age) values (10005, 'Buenos Aires', 200);
insert into t2 (uid, name) values (20005, '<NAME>');
insert into t1 (uid, name, age) values (10006, 'Buenos Aires', 200);
alter table t2 add column age int;
alter table t2 add index age(age);
alter table t2 add column level int;
alter table t2 add index level(level);
insert into t1 (uid, name, age) values (10007, 'Buenos Aires', 300);
insert into t2 (uid, name, age) values (20006, '<NAME>', 301);
insert into t1 (uid, name, age) values (10008, 'Buenos Aires', 400);
insert into t2 (uid, name, age) values (20007, '<NAME>', 401);
update t1 set age = 404 where uid = 10005;
|
<reponame>106319819/xone<gh_stars>1-10
INSERT INTO account VALUES (1,NULL,'2019-03-17 15:47:16','2019-03-17 15:47:16','webmaster','0','E10ADC3949BA59ABBE56E057F20F883E',1);
INSERT INTO module VALUES (1,NULL,'2019-03-17 15:52:28','2019-03-17 15:52:28','iconfont icon-shuzhuangtu_o','组织管理',0,NULL,0,1,1,1,'/organization/index'),(2,NULL,'2019-03-17 15:53:37','2019-03-17 15:53:37','iconfont icon-qunzu_o','人员管理',0,NULL,0,1,1,1,'/person/index'),(3,NULL,'2019-03-17 15:54:14','2019-03-17 15:54:14',NULL,'子系统管理',0,NULL,0,1,1,1,'/system/index'),(4,NULL,'2019-03-17 15:54:47','2019-03-17 15:54:47',NULL,'模块管理',0,NULL,0,1,1,1,'/module/index'),(5,NULL,'2019-03-17 15:55:25','2019-03-17 15:55:25',NULL,'角色管理',0,NULL,0,1,1,1,'/role/index');
INSERT INTO organization VALUES (1,'','2019-03-17 15:46:50','2019-03-17 15:46:50','1',0,'1','组织','',0,0,0);
INSERT INTO person VALUES (1,NULL,'2019-03-17 15:47:16','2019-03-17 15:47:16',NULL,NULL,NULL,NULL,'web','webmaster',NULL,'master',NULL,'CHN',NULL,NULL,1);
INSERT INTO person_relations VALUES (1,NULL,'2019-03-17 15:47:16','2019-03-17 15:47:16',1,1,1);
INSERT INTO role VALUES (1,NULL,'2019-03-17 15:56:01','2019-03-17 15:56:01','系统管理员',NULL,NULL);
INSERT INTO role_module VALUES (1,NULL,'2019-03-17 15:56:17','2019-03-17 15:56:17',1,1),(6,NULL,'2019-03-17 15:56:17','2019-03-17 15:56:17',2,1),(7,NULL,'2019-03-17 15:56:17','2019-03-17 15:56:17',3,1),(8,NULL,'2019-03-17 15:56:17','2019-03-17 15:56:17',4,1),(9,NULL,'2019-03-17 15:56:17','2019-03-17 15:56:17',5,1);
INSERT INTO role_person VALUES (1,NULL,'2019-03-17 15:56:32','2019-03-17 15:56:32',1,1);
INSERT INTO sub_system VALUES (1,NULL,'2019-03-17 15:48:23','2019-03-17 15:48:23','SYSTEM_ADMIN','系统管理子系统',0);
INSERT INTO sub_system_relations VALUES (1,NULL,'2019-03-17 15:48:23','2019-03-17 15:48:23',1,1,1);
|
-- This file and its contents are licensed under the Apache License 2.0.
-- Please see the included NOTICE for copyright information and
-- LICENSE-APACHE for a copy of the license.
\set PREFIX 'EXPLAIN (VERBOSE, COSTS OFF)'
-- Create a two dimensional hypertable
CREATE TABLE hyper (time timestamptz, device int, temp float);
SELECT * FROM create_hypertable('hyper', 'time', 'device', 2);
-- Create a similar PostgreSQL partitioned table
CREATE TABLE pg2dim (time timestamptz, device int, temp float) PARTITION BY HASH (device);
CREATE TABLE pg2dim_h1 PARTITION OF pg2dim FOR VALUES WITH (MODULUS 2, REMAINDER 0) PARTITION BY RANGE(time);
CREATE TABLE pg2dim_h2 PARTITION OF pg2dim FOR VALUES WITH (MODULUS 2, REMAINDER 1) PARTITION BY RANGE(time);
CREATE TABLE pg2dim_h1_t1 PARTITION OF pg2dim_h1 FOR VALUES FROM ('2018-01-01 00:00') TO ('2018-09-01 00:00');
CREATE TABLE pg2dim_h1_t2 PARTITION OF pg2dim_h1 FOR VALUES FROM ('2018-09-01 00:00') TO ('2018-12-01 00:00');
CREATE TABLE pg2dim_h2_t1 PARTITION OF pg2dim_h2 FOR VALUES FROM ('2018-01-01 00:00') TO ('2018-09-01 00:00');
CREATE TABLE pg2dim_h2_t2 PARTITION OF pg2dim_h2 FOR VALUES FROM ('2018-09-01 00:00') TO ('2018-12-01 00:00');
-- Create a 1-dimensional partitioned table for comparison
CREATE TABLE pg1dim (time timestamptz, device int, temp float) PARTITION BY HASH (device);
CREATE TABLE pg1dim_h1 PARTITION OF pg1dim FOR VALUES WITH (MODULUS 2, REMAINDER 0);
CREATE TABLE pg1dim_h2 PARTITION OF pg1dim FOR VALUES WITH (MODULUS 2, REMAINDER 1);
INSERT INTO hyper VALUES
('2018-02-19 13:01', 1, 2.3),
('2018-02-19 13:02', 3, 3.1),
('2018-10-19 13:01', 1, 7.6),
('2018-10-19 13:02', 3, 9.0);
INSERT INTO pg2dim VALUES
('2018-02-19 13:01', 1, 2.3),
('2018-02-19 13:02', 3, 3.1),
('2018-10-19 13:01', 1, 7.6),
('2018-10-19 13:02', 3, 9.0);
INSERT INTO pg1dim VALUES
('2018-02-19 13:01', 1, 2.3),
('2018-02-19 13:02', 3, 3.1),
('2018-10-19 13:01', 1, 7.6),
('2018-10-19 13:02', 3, 9.0);
SELECT * FROM test.show_subtables('hyper');
SELECT * FROM pg2dim_h1_t1;
SELECT * FROM pg2dim_h1_t2;
SELECT * FROM pg2dim_h2_t1;
SELECT * FROM pg2dim_h2_t2;
-- Compare partitionwise aggreate enabled/disabled. First run queries
-- on PG partitioned tables for reference.
-- All partition keys covered by GROUP BY
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT device, avg(temp)
FROM pg1dim
GROUP BY 1
ORDER BY 1;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT device, avg(temp)
FROM pg1dim
GROUP BY 1
ORDER BY 1;
-- All partition keys not covered by GROUP BY (partial partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT device, avg(temp)
FROM pg2dim
GROUP BY 1
ORDER BY 1;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT device, avg(temp)
FROM pg2dim
GROUP BY 1
ORDER BY 1;
-- All partition keys covered by GROUP BY (full partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT time, device, avg(temp)
FROM pg2dim
GROUP BY 1, 2
ORDER BY 1, 2;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT time, device, avg(temp)
FROM pg2dim
GROUP BY 1, 2
ORDER BY 1, 2;
-- All partition keys not covered by GROUP BY because of date_trunc
-- expression on time (partial partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT date_trunc('month', time), device, avg(temp)
FROM pg2dim
GROUP BY 1, 2
ORDER BY 1, 2;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT date_trunc('month', time), device, avg(temp)
FROM pg2dim
GROUP BY 1, 2
ORDER BY 1, 2;
-- Now run on hypertable
-- All partition keys not covered by GROUP BY (partial partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT device, avg(temp)
FROM hyper
GROUP BY 1
ORDER BY 1;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT device, avg(temp)
FROM hyper
GROUP BY 1
ORDER BY 1;
-- All partition keys covered (full partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT time, device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT time, device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
-- Partial aggregation since date_trunc(time) is not a partition key
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT date_trunc('month', time), device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT date_trunc('month', time), device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
-- Also test time_bucket
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT time_bucket('1 month', time), device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT time_bucket('1 month', time), device, avg(temp)
FROM hyper
GROUP BY 1, 2
ORDER BY 1, 2;
-- Test partitionwise joins, mostly to see that we do not break
-- anything
CREATE TABLE hyper_meta (time timestamptz, device int, info text);
SELECT * FROM create_hypertable('hyper_meta', 'time', 'device', 2);
INSERT INTO hyper_meta VALUES
('2018-02-19 13:01', 1, 'device_1'),
('2018-02-19 13:02', 3, 'device_3');
SET enable_partitionwise_join = 'off';
:PREFIX
SELECT h.time, h.device, h.temp, hm.info
FROM hyper h, hyper_meta hm
WHERE h.device = hm.device;
:PREFIX
SELECT pg2.time, pg2.device, pg2.temp, pg1.temp
FROM pg2dim pg2, pg1dim pg1
WHERE pg2.device = pg1.device;
SET enable_partitionwise_join = 'on';
:PREFIX
SELECT h.time, h.device, h.temp, hm.info
FROM hyper h, hyper_meta hm
WHERE h.device = hm.device;
:PREFIX
SELECT pg2.time, pg2.device, pg2.temp, pg1.temp
FROM pg2dim pg2, pg1dim pg1
WHERE pg2.device = pg1.device;
-- Test hypertable with time partitioning function
CREATE OR REPLACE FUNCTION time_func(unixtime float8)
RETURNS TIMESTAMPTZ LANGUAGE PLPGSQL IMMUTABLE AS
$BODY$
DECLARE
retval TIMESTAMPTZ;
BEGIN
retval := to_timestamp(unixtime);
RETURN retval;
END
$BODY$;
CREATE TABLE hyper_timepart (time float8, device int, temp float);
SELECT * FROM create_hypertable('hyper_timepart', 'time', 'device', 2, time_partitioning_func => 'time_func');
-- Planner won't pick push-down aggs on table with time function
-- unless a certain amount of data
SELECT setseed(1);
INSERT INTO hyper_timepart
SELECT x, ceil(random() * 8), random() * 20
FROM generate_series(0,5000-1) AS x;
-- All partition keys covered (full partitionwise)
SET enable_partitionwise_aggregate = 'off';
:PREFIX
SELECT time, device, avg(temp)
FROM hyper_timepart
GROUP BY 1, 2
ORDER BY 1, 2
LIMIT 10;
:PREFIX
SELECT time_func(time), device, avg(temp)
FROM hyper_timepart
GROUP BY 1, 2
ORDER BY 1, 2
LIMIT 10;
-- Grouping on original time column should be pushed-down
SET enable_partitionwise_aggregate = 'on';
:PREFIX
SELECT time, device, avg(temp)
FROM hyper_timepart
GROUP BY 1, 2
ORDER BY 1, 2
LIMIT 10;
-- Applying the time partitioning function should also allow push-down
-- on open dimensions
:PREFIX
SELECT time_func(time), device, avg(temp)
FROM hyper_timepart
GROUP BY 1, 2
ORDER BY 1, 2
LIMIT 10;
-- Should also work to use partitioning function on closed dimensions
:PREFIX
SELECT time_func(time), _timescaledb_internal.get_partition_hash(device), avg(temp)
FROM hyper_timepart
GROUP BY 1, 2
ORDER BY 1, 2
LIMIT 10;
|
ALTER TABLE AUDIT_BASE ADD COLUMN TENANT_ID VARCHAR(64);
ALTER TABLE AUDIT_EXTRA ADD COLUMN TENANT_ID VARCHAR(64);
|
CREATE DATABASE IF NOT EXISTS `ngr` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_bin */;
USE `ngr`;
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
SET NAMES utf8 ;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `c_api_group`
--
DROP TABLE IF EXISTS `c_api_group`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_api_group` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`group_name` varchar(32) NOT NULL COMMENT '路由服务组名称',
`group_context` varchar(250) DEFAULT NULL COMMENT '路由规则上下文PATH',
`upstream_domain_name` varchar(64) DEFAULT NULL COMMENT '后端服务内网域名',
`upstream_service_id` varchar(64) NOT NULL DEFAULT '0' COMMENT '后端服务(后端服务基于服务发现与注册机制才会用到,网关实现动态负载均衡策略)',
`enable_balancing` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用动态负载均衡(即支持后端服务动态发现,1: 启用,0:禁用)',
`need_auth` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要授权0不需要1需要',
`lb_algo` tinyint(4) DEFAULT NULL COMMENT '负载均衡算法: 1. 轮训 2.客户端IP_HASH',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用,用于实现降级,1:启用,0:禁用',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
`host_id` int(12) NOT NULL,
`gen_trace_id` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否生成全局id,1:是,0:否',
`enable_rewrite` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否重新上下文(1:重写,0:不重写)',
`rewrite_to` varchar(250) DEFAULT NULL COMMENT '重写后的上下文PATH',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_host_group_context` (`host_id`,`group_context`)
) ENGINE=InnoDB AUTO_INCREMENT=832 DEFAULT CHARSET=utf8 COMMENT='API路由配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_api_group`
--
LOCK TABLES `c_api_group` WRITE;
/*!40000 ALTER TABLE `c_api_group` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_api_group` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_co_parameter`
--
DROP TABLE IF EXISTS `c_co_parameter`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_co_parameter` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`plugin_name` varchar(50) NOT NULL COMMENT '插件名称',
`biz_id` int(12) unsigned NOT NULL COMMENT '业务ID',
`property_type` varchar(50) NOT NULL COMMENT '特征类型: URI,IP,Referer,UserAgent,Header,Query_String,PostParam,JsonParam,Host',
`property_name` varchar(50) NOT NULL COMMENT '特征属性名称,如token,username,若类型是ip,uri, user_agent特征类型也是特征名称',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_param_biz_type_name` (`plugin_name`,`biz_id`,`property_type`,`property_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='关联参数信息表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_co_parameter`
--
LOCK TABLES `c_co_parameter` WRITE;
/*!40000 ALTER TABLE `c_co_parameter` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_co_parameter` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_err_resp_template`
--
DROP TABLE IF EXISTS `c_err_resp_template`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_err_resp_template` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`plugin_name` varchar(50) NOT NULL COMMENT '插件名: api_router,group_rate_limit,waf,property_rate_limit',
`biz_id` int(12) NOT NULL COMMENT '业务id',
`content_type` varchar(100) NOT NULL COMMENT '内容类型:application/json,application/xml,text/html,text/plain',
`message` varchar(1500) NOT NULL COMMENT '内容',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`http_status` varchar(4) DEFAULT NULL COMMENT 'http状态码',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_plugin_biz_id` (`plugin_name`,`biz_id`)
) ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8 COMMENT='自定义响应信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_err_resp_template`
--
LOCK TABLES `c_err_resp_template` WRITE;
/*!40000 ALTER TABLE `c_err_resp_template` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_err_resp_template` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_gateway`
--
DROP TABLE IF EXISTS `c_gateway`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_gateway` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gateway_code` varchar(50) NOT NULL COMMENT '网关code',
`gateway_desc` varchar(150) NOT NULL COMMENT '网关描述',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`limit_count` int(12) unsigned NOT NULL COMMENT '限速的次数',
`limit_period` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '限速的周期',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_gateway_code` (`gateway_code`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='网关信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_gateway`
--
LOCK TABLES `c_gateway` WRITE;
/*!40000 ALTER TABLE `c_gateway` DISABLE KEYS */;
INSERT INTO `c_gateway` VALUES (1,'GatewayService','架构基础服务网关','0000-00-00 00:00:00','0000-00-00 00:00:00',100000,1);
/*!40000 ALTER TABLE `c_gateway` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_global_property`
--
DROP TABLE IF EXISTS `c_global_property`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_global_property` (
`id` int(12) NOT NULL,
`param_name` varchar(100) NOT NULL COMMENT '配置参数名',
`param_value` varchar(100) NOT NULL COMMENT '配置参数值',
`enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用 1:启用 0:禁用',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间',
PRIMARY KEY (`id`),
KEY `uk_property_name` (`param_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='全局配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_global_property`
--
LOCK TABLES `c_global_property` WRITE;
/*!40000 ALTER TABLE `c_global_property` DISABLE KEYS */;
INSERT INTO `c_global_property` VALUES (1,'GLOBAL_RATE_LIMIT_COUNT','7000',1,'2018-04-12 11:53:17','2018-08-22 11:12:26'),(2,'GLOBAL_RATE_LIMIT_PERIOD','1',1,'2018-04-12 11:53:47','2018-08-22 11:12:26'),(3,'AUTH_SERVER_DOMAIN_NAME','http://test.com:1188',1,'2018-05-08 10:15:09','2018-06-08 02:27:30'),(4,'AUTH_SERVER_NGR_APP_ID','114',1,'2018-04-12 11:53:47','2019-08-03 04:28:14'),(5,'AUTH_SERVER_NGR_APP_KEY','%$Husersyste_A)SI_gateway_)(IKQAJ%)',1,'2018-04-12 11:53:47','2019-08-03 04:28:14'),(6,'BALANCE_RETRIES_COUNT','6',1,'2018-08-06 18:03:30','2018-08-06 10:03:30'),(7,'BALANCE_CONNECTION_TIMEOUT','600000',1,'2018-08-06 18:03:30','2018-10-09 10:25:28'),(8,'BALANCE_SEND_TIMEOUT','600000',1,'2018-08-06 18:03:31','2018-10-09 10:13:03'),(9,'BALANCE_READ_TIMEOUT','600000',1,'2018-08-06 18:03:31','2018-10-09 10:13:03');
/*!40000 ALTER TABLE `c_global_property` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_gray_divide`
--
DROP TABLE IF EXISTS `c_gray_divide`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_gray_divide` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gray_divide_name` varchar(100) NOT NULL COMMENT '灰度分流器名称',
`group_id` int(12) unsigned NOT NULL COMMENT 'c_api_group的主键',
`gray_domain` varchar(100) NOT NULL DEFAULT '' COMMENT '分流器域名服务',
`selector_id` int(12) unsigned NOT NULL COMMENT '选择器主键',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用,1:启用,0:禁用',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`seq_num` int(4) unsigned NOT NULL DEFAULT '0' COMMENT '序号',
PRIMARY KEY (`id`),
KEY `c_gray_divide_group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='灰度分流器表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_gray_divide`
--
LOCK TABLES `c_gray_divide` WRITE;
/*!40000 ALTER TABLE `c_gray_divide` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_gray_divide` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_group_rate_limit`
--
DROP TABLE IF EXISTS `c_group_rate_limit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_group_rate_limit` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`group_id` int(12) NOT NULL COMMENT 'API组ID',
`rate_limit_count` int(12) NOT NULL COMMENT '限流值',
`rate_limit_period` int(12) NOT NULL COMMENT '限流时间单位: 1s,60s, 3600s, 3600*24s',
`enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用1:启用 0.禁用',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `uk_group_id` (`group_id`)
) ENGINE=InnoDB AUTO_INCREMENT=64 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_group_rate_limit`
--
LOCK TABLES `c_group_rate_limit` WRITE;
/*!40000 ALTER TABLE `c_group_rate_limit` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_group_rate_limit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_group_target`
--
DROP TABLE IF EXISTS `c_group_target`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_group_target` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`group_id` int(12) unsigned NOT NULL COMMENT '组ID',
`host` varchar(50) NOT NULL COMMENT 'IP地址',
`port` varchar(10) NOT NULL COMMENT '端口',
`weight` int(4) DEFAULT NULL COMMENT '权重',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`gray_divide_id` int(12) unsigned NOT NULL DEFAULT '0' COMMENT '灰度分流器主键,默认是0,表示非灰度节点',
`is_only_ab` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否仅用于AB分流(1:仅用于AB分流)',
`enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用,1:启用,0:禁用',
PRIMARY KEY (`id`,`created_at`),
UNIQUE KEY `uk_gid_host_port` (`group_id`,`host`,`port`)
) ENGINE=InnoDB AUTO_INCREMENT=980 DEFAULT CHARSET=utf8 COMMENT='API服务组目标节点配置';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_group_target`
--
LOCK TABLES `c_group_target` WRITE;
/*!40000 ALTER TABLE `c_group_target` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_group_target` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_host`
--
DROP TABLE IF EXISTS `c_host`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_host` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gateway_id` int(12) NOT NULL COMMENT '所属网关id',
`host` varchar(50) NOT NULL COMMENT '主机(host)',
`host_desc` varchar(150) NOT NULL COMMENT '主机描述',
`enable` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用,用于实现降级,1:启用,0:禁用',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`limit_count` int(12) unsigned NOT NULL COMMENT '限速的次数',
`limit_period` int(10) unsigned NOT NULL DEFAULT '1' COMMENT '限速的周期',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_host` (`host`)
) ENGINE=InnoDB AUTO_INCREMENT=156 DEFAULT CHARSET=utf8 COMMENT='主机信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_host`
--
LOCK TABLES `c_host` WRITE;
/*!40000 ALTER TABLE `c_host` DISABLE KEYS */;
INSERT INTO `c_host` VALUES (1,1,'gateway.local','gateway.local',1,'2019-07-23 12:17:27','2019-08-03 04:26:50',10000,1),(2,1,'127.0.0.1','127.0.0.1',1,'2019-07-23 15:18:12','2019-08-03 04:26:50',10000,1),(155,1,'localhost','localhost',1,'2019-07-23 15:19:08','2019-07-23 07:19:08',10000,1);
/*!40000 ALTER TABLE `c_host` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_plugin`
--
DROP TABLE IF EXISTS `c_plugin`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_plugin` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`plugin_name` varchar(50) NOT NULL COMMENT '插件名称(英文),唯一',
`plugin_desc` varchar(100) NOT NULL COMMENT '插件描述',
`with_selector` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否需要关联选择器使用1:是 0:否',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用1:启用 0.禁用',
`is_built_in` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否内建插件(内建插件不能禁用)1:是 0.否',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `uk_plugin_name` (`plugin_name`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 COMMENT='网关功能插件配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_plugin`
--
LOCK TABLES `c_plugin` WRITE;
/*!40000 ALTER TABLE `c_plugin` DISABLE KEYS */;
INSERT INTO `c_plugin` VALUES (1,'global_rate_limit','全局限流插件',0,1,1,'2018-05-09 20:51:30','2018-07-07 08:06:35'),(2,'property_rate_limit','根据请求参数特征限流防刷插件',0,1,0,'2018-05-09 20:51:30','2018-08-23 02:37:23'),(3,'waf','防火墙插件',1,1,0,'2018-05-09 20:51:30','2019-07-23 07:36:16'),(4,'group_rate_limit','API组限流控制插件',0,1,1,'2018-05-09 20:51:30','2018-05-30 11:20:59'),(5,'api_router','API路由器插件',0,1,1,'2018-05-09 20:51:30','2018-05-09 12:51:30'),(6,'stat_dashboard','运行概况统计报表',0,1,1,'2018-05-09 20:51:30','2018-05-30 11:20:59'),(7,'statsd_metrics','statsd打点',0,0,0,'2018-05-09 20:51:30','2019-07-23 07:36:46'),(8,'global_access_control','全局控制',0,1,1,'2018-05-16 18:46:04','2018-05-29 07:36:49'),(10,'anti_sql_injection','sql防控器',0,1,0,'2018-10-16 12:47:45','2018-10-16 04:47:45');
/*!40000 ALTER TABLE `c_plugin` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_rel_gray_target`
--
DROP TABLE IF EXISTS `c_rel_gray_target`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_rel_gray_target` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`gray_divide_id` int(12) unsigned NOT NULL COMMENT 'c_gray_divide主键',
`target_id` int(12) unsigned NOT NULL COMMENT 'c_group_target主键',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='AB分流与target关系表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_rel_gray_target`
--
LOCK TABLES `c_rel_gray_target` WRITE;
/*!40000 ALTER TABLE `c_rel_gray_target` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_rel_gray_target` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_selector`
--
DROP TABLE IF EXISTS `c_selector`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_selector` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`selector_name` varchar(50) NOT NULL COMMENT '选择器名称',
`selector_type` int(4) NOT NULL COMMENT '选择器类型:1单条件选择器 2多条件取与 3. 多条件取或',
`enable` tinyint(1) NOT NULL COMMENT '是否启用',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=156 DEFAULT CHARSET=utf8 COMMENT='选择器配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_selector`
--
LOCK TABLES `c_selector` WRITE;
/*!40000 ALTER TABLE `c_selector` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_selector` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `c_selector_condition`
--
DROP TABLE IF EXISTS `c_selector_condition`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `c_selector_condition` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`selector_id` int(12) NOT NULL COMMENT '选择器ID',
`param_type` varchar(50) NOT NULL COMMENT '选择条件参数类型:IP,USER_AGENT,QUEYRSTRING, HEADER,REQ_BODY,URL等',
`condition_opt_type` varchar(50) NOT NULL COMMENT '选择条件匹配类型:equals(相等),not equals(不相等),match 正则,not math,>,<,>=,<=',
`param_name` varchar(256) NOT NULL COMMENT '条件参数名称,当param_type为header,queryString,req_body时必须有',
`param_value` varchar(256) NOT NULL COMMENT '条件参数匹配值',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=184 DEFAULT CHARSET=utf8 COMMENT='选择条件配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `c_selector_condition`
--
LOCK TABLES `c_selector_condition` WRITE;
/*!40000 ALTER TABLE `c_selector_condition` DISABLE KEYS */;
/*!40000 ALTER TABLE `c_selector_condition` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `p_anti_sql_injection`
--
DROP TABLE IF EXISTS `p_anti_sql_injection`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `p_anti_sql_injection` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`group_id` int(12) unsigned NOT NULL COMMENT 'c_api_group的主键',
`path` varchar(300) NOT NULL COMMENT '服务路径',
`remark` varchar(300) NOT NULL COMMENT '描述',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用,1:启用,0:禁用',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
`database_type` varchar(30) DEFAULT NULL COMMENT '数据库类型',
PRIMARY KEY (`id`),
KEY `index_anti_sql_injection_group_id` (`group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='防sql注入表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `p_anti_sql_injection`
--
LOCK TABLES `p_anti_sql_injection` WRITE;
/*!40000 ALTER TABLE `p_anti_sql_injection` DISABLE KEYS */;
/*!40000 ALTER TABLE `p_anti_sql_injection` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `p_prl_property_detial`
--
DROP TABLE IF EXISTS `p_prl_property_detial`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `p_prl_property_detial` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`prl_id` int(12) unsigned NOT NULL COMMENT '特征限速id',
`property_type` varchar(50) NOT NULL COMMENT '特征类型: URI,IP,Referer,UserAgent,Header,Query_String,PostParam,JsonParam',
`property_name` varchar(50) NOT NULL COMMENT '特征属性名称,如token,username,若类型是ip,uri, user_agent特征类型也是特别名称',
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_prl_name_type` (`prl_id`,`property_type`,`property_name`)
) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=utf8 COMMENT='特征信息';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `p_prl_property_detial`
--
LOCK TABLES `p_prl_property_detial` WRITE;
/*!40000 ALTER TABLE `p_prl_property_detial` DISABLE KEYS */;
/*!40000 ALTER TABLE `p_prl_property_detial` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `p_property_rate_limit`
--
DROP TABLE IF EXISTS `p_property_rate_limit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `p_property_rate_limit` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`rate_limit_count` int(12) NOT NULL COMMENT '限流值',
`rate_limit_period` varchar(50) NOT NULL COMMENT '限流单位: 1s, 60s,3600s,3600*24s',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用1:启用 0.禁用',
`is_blocked` tinyint(1) NOT NULL COMMENT '是否防刷阻止请求1:阻塞,0:非阻塞''',
`block_time` int(12) DEFAULT NULL COMMENT '防刷阻止请求时间,以分钟为单位,建议最多24小时',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`rate_type` tinyint(1) DEFAULT NULL COMMENT '限流类型:0. 全天,1. 时间段',
`effect_s_time` varchar(10) DEFAULT NULL COMMENT '影响开始时间(HH:mm:ss)',
`effect_e_time` varchar(10) DEFAULT NULL COMMENT '影响结束时间(HH:mm:ss)',
`host_id` int(12) unsigned NOT NULL DEFAULT '0' COMMENT '主机主键',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='特征限流防刷配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `p_property_rate_limit`
--
LOCK TABLES `p_property_rate_limit` WRITE;
/*!40000 ALTER TABLE `p_property_rate_limit` DISABLE KEYS */;
/*!40000 ALTER TABLE `p_property_rate_limit` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `p_waf`
--
DROP TABLE IF EXISTS `p_waf`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `p_waf` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL COMMENT '防火墙名称',
`is_allowed` tinyint(1) NOT NULL COMMENT '1:allowed 0:deny',
`enable` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否启用',
`selector_id` int(12) NOT NULL COMMENT '此防火墙使用的选择器ID',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`host_id` int(12) unsigned NOT NULL DEFAULT '0' COMMENT '主机主键',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8 COMMENT='防火墙插件使用配置表';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `p_waf`
--
LOCK TABLES `p_waf` WRITE;
/*!40000 ALTER TABLE `p_waf` DISABLE KEYS */;
/*!40000 ALTER TABLE `p_waf` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `u_admin_user`
--
DROP TABLE IF EXISTS `u_admin_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `u_admin_user` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(60) NOT NULL DEFAULT '' COMMENT '用户名',
`nickname` varchar(60) NOT NULL DEFAULT '' COMMENT '姓名或者昵称',
`password` varchar(200) NOT NULL DEFAULT '' COMMENT '密码',
`is_admin` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否是管理员账户:0否,1是',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '创建或者更新时间',
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`mobile` varchar(15) DEFAULT NULL COMMENT '手机',
`email` varchar(30) DEFAULT NULL COMMENT '邮箱',
`superior` varchar(30) DEFAULT NULL COMMENT '上级姓名或者昵称',
`enable` tinyint(1) DEFAULT '1' COMMENT '启禁用: 1:启用,0:禁用',
PRIMARY KEY (`id`),
UNIQUE KEY `uk_username` (`username`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='Backend admin users information';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `u_admin_user`
--
LOCK TABLES `u_admin_user` WRITE;
/*!40000 ALTER TABLE `u_admin_user` DISABLE KEYS */;
INSERT INTO `u_admin_user` VALUES (1,'admin','17837406a010ece7ee83bf1981b6d936a2454526f87d4e0f8036ab28a3648117',1,'2019-07-16 07:41:13','2019-07-15 23:41:13','17811982250','<EMAIL>','',1),(3,'api_user','66023c3b61ef3c49c96b55370d7ec640eb929d5ef0ada9a552de0e1e28d663e7',1,'2019-07-16 07:41:31','2019-07-15 23:41:31','17811982250','<EMAIL>','',1);
/*!40000 ALTER TABLE `u_admin_user` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `u_user_log`
--
DROP TABLE IF EXISTS `u_user_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
SET character_set_client = utf8mb4 ;
CREATE TABLE `u_user_log` (
`id` int(12) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`username` varchar(60) CHARACTER SET utf8 NOT NULL COMMENT '操作用户',
`module` varchar(50) CHARACTER SET utf8 NOT NULL COMMENT '组件:(api_router:路由、property_rate_limit:特征...)',
`module_desc` varchar(150) CHARACTER SET utf8 NOT NULL COMMENT '组件描述:(api_router:路由、property_rate_limit:特征...)',
`operation_type` varchar(20) CHARACTER SET utf8 NOT NULL COMMENT '操作类型:(MODIFY:修改、ADD:增加、DELETE:删除)',
`operation_desc` varchar(20) CHARACTER SET utf8 NOT NULL COMMENT '操作类型描述:(MODIFY:修改、ADD:增加、DELETE:删除)',
`in_param` text CHARACTER SET utf8 NOT NULL COMMENT '入参',
`create_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='用户操作记录';
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `u_user_log`
--
LOCK TABLES `u_user_log` WRITE;
/*!40000 ALTER TABLE `u_user_log` DISABLE KEYS */;
/*!40000 ALTER TABLE `u_user_log` 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 */;
|
<reponame>venkateshprasad123/wb
--****************************************************************
--
-- Copyright Contributors to the GenevaERS Project.
-- SPDX-License-Identifier: Apache-2.0
--
--***********************************************************************
--*
--* Licensed under the Apache License, Version 2.0 (the "License");
--* you may not use this file except in compliance with the License.
--* You may obtain a copy of the License at
--*
--* http://www.apache.org/licenses/LICENSE-2.0
--*
--* Unless required by applicable law or agreed to in writing, software
--* distributed under the License is distributed on an "AS IS" BASIS,
--* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
--* or implied.
--* See the License for the specific language governing permissions and
--* limitations under the License.
--***********************************************************************
CREATE OR REPLACE FUNCTION :schemaV.insertlookupsrcfield (
IN XIN TEXT)
RETURNS VOID
AS $$
--DECLARE PDOC XML;
DECLARE root_xpath TEXT = '/Root/Record/';
DECLARE DOC XML;
BEGIN
DOC = XMLPARSE (DOCUMENT XIN);
INSERT INTO LOOKUPSRCKEY (
ENVIRONID,
LOOKUPSTEPID,
KEYSEQNBR,
FLDTYPE,
LRFIELDID,
LRLFASSOCID,
LOOKUPID,
VALUEFMTCD,
SIGNED,
VALUELEN,
DECIMALCNT,
FLDCONTENTCD,
ROUNDING,
JUSTIFYCD,
MASK,
SYMBOLICNAME,
VALUE,
CREATEDTIMESTAMP,
CREATEDUSERID,
LASTMODTIMESTAMP,
LASTMODUSERID)
SELECT X.ENVIRONID,
X.LOOKUPSTEPID,
X.KEYSEQNBR,
X.FLDTYPE,
X.LRFIELDID,
X.LRLFASSOCID,
X.LOOKUPID,
X.VALUEFMTCD,
X.SIGNED,
X.VALUELEN,
X.DECIMALCNT,
X.FLDCONTENTCD,
X.ROUNDING,
X.JUSTIFYCD,
X.MASK,
X.SYMBOLICNAME,
X.VALUE,
CURRENT_TIMESTAMP,
X.CREATEDUSERID,
CURRENT_TIMESTAMP,
X.LASTMODUSERID
FROM XMLTABLE('//Root/Record' passing DOC
COLUMNS
ENVIRONID INT PATH 'ENVIRONID',
LOOKUPSTEPID INT PATH 'LOOKUPSTEPID',
KEYSEQNBR INT PATH 'KEYSEQNBR',
FLDTYPE INT PATH 'FLDTYPE',
LRFIELDID INT PATH 'LRFIELDID',
LRLFASSOCID INT PATH 'LRLFASSOCID',
LOOKUPID INT PATH 'LOOKUPID',
VALUEFMTCD VARCHAR(5) PATH 'VALUEFMTCD',
SIGNED SMALLINT PATH 'SIGNED',
VALUELEN INT PATH 'VALUELEN',
DECIMALCNT INT PATH 'DECIMALCNT',
FLDCONTENTCD VARCHAR(5) PATH 'FLDCONTENTCD',
ROUNDING INT PATH 'ROUNDING',
JUSTIFYCD VARCHAR(5) PATH 'JUSTIFYCD',
MASK VARCHAR(48) PATH 'MASK',
SYMBOLICNAME VARCHAR(254) PATH 'SYMBOLICNAME',
VALUE VARCHAR(254) PATH 'VALUE',
CREATEDUSERID VARCHAR(8) PATH 'CREATEDUSERID',
LASTMODUSERID VARCHAR(8) PATH 'LASTMODUSERID') as X;
END
$$
LANGUAGE plpgsql; |
AUTOCOMMIT OFF;
-- MODULE DML069
-- SQL Test Suite, V6.0, Interactive SQL, dml069.sql
-- 59-byte ID
-- TEd Version #
-- AUTHORIZATION HU
set schema HU;
--O SELECT USER FROM HU.ECCO;
VALUES USER;
-- RERUN if USER value does not match preceding AUTHORIZATION comment
-- date_time print
-- NO_TEST:0404 2 FETCHes (different target types) on same cursor!
-- Testing cursors
-- ***************************************************************
-- NO_TEST:0405 2 cursors open from different schemas (coded join)!
-- Testing cursors
-- ***************************************************************
-- TEST:0406 Subquery from different schema!
--O DELETE FROM CUGINI.VTABLE;
DELETE FROM VTABLE;
-- Making sure the table is empty
-- setup
--O INSERT INTO CUGINI.VTABLE VALUES (80, 100, 100, 100, 100.0);
INSERT INTO VTABLE VALUES (80, 100, 100, 100, 100.0);
--O INSERT INTO CUGINI.VTABLE VALUES (40, 200, 100, 100, 100.0);
INSERT INTO VTABLE VALUES (40, 200, 100, 100, 100.0);
SELECT PNUM
FROM WORKS
WHERE EMPNUM = 'E1' AND HOURS IN
--O (SELECT COL1 FROM CUGINI.VTABLE
(SELECT COL1 FROM VTABLE
WHERE COL1 > 50);
-- PASS:0406 If PNUM = 'P3'?
-- restore
ROLLBACK WORK;
-- END TEST >>> 0406 <<< END TEST
-- *************************************************************
-- NO_TEST:0407 SELECT INTO :XX ... WHERE :XX = !
-- Testing host variables
-- **************************************************************
-- TEST:0408 UPDATE references column value BEFORE update!
DELETE FROM WORKS1;
-- Making sure the table is empty
-- setup
INSERT INTO WORKS1 SELECT * FROM WORKS;
UPDATE WORKS1
SET PNUM = EMPNUM, EMPNUM = PNUM, HOURS = (HOURS + 3) * HOURS;
SELECT *
FROM WORKS1
WHERE EMPNUM = 'P2'
ORDER BY EMPNUM, PNUM ASC;
-- PASS:0408 If FOR ROW #1, EMPNO1 = 'P2', PNUM1 = 'E1', HOURS1 = 460?
-- PASS:0408 If FOR ROW #2, EMPNO1 = 'P2', PNUM1 = 'E2',HOURS1 = 6640?
-- PASS:0408 If FOR ROW #3, EMPNO1 = 'P2', PNUM1 = 'E3', HOURS1 = 460?
-- PASS:0408 If FOR ROW #4, EMPNO1 = 'P2', PNUM1 = 'E4', HOURS1 = 460?
-- restore
ROLLBACK WORK;
-- END TEST >>> 0408 <<< END TEST
-- *************************************************////END-OF-MODULE
|
-- MySQL dump 10.13 Distrib 5.5.44, for debian-linux-gnu (x86_64)
--
-- Host: 192.168.100.10 Database: onboard-opensource
-- ------------------------------------------------------
-- Server version 5.5.44
/*!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 `activity`
--
DROP TABLE IF EXISTS `activity`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`subject` varchar(20) NOT NULL,
`target` varchar(200) DEFAULT NULL,
`content` varchar(500) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`action` varchar(100) NOT NULL,
`attachId` int(11) NOT NULL,
`attachType` varchar(30) NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`creatorName` varchar(50) NOT NULL,
`projectName` varchar(50) NOT NULL,
`trash` tinyint(1) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_activity_company` (`companyId`),
CONSTRAINT `activity_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `activity_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_activity_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=631778 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `attach_todo`
--
DROP TABLE IF EXISTS `attach_todo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attach_todo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachType` varchar(100) NOT NULL,
`attachId` int(11) NOT NULL,
`todoId` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=345 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `attachment`
--
DROP TABLE IF EXISTS `attachment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`name` varchar(200) NOT NULL DEFAULT '',
`size` bigint(20) NOT NULL,
`contentType` varchar(100) NOT NULL DEFAULT '',
`creatorId` int(11) NOT NULL,
`attachId` int(11) NOT NULL,
`attachType` varchar(30) NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`targetType` varchar(100) DEFAULT '',
`targetId` int(11) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_attachment_company` (`companyId`),
CONSTRAINT `attachment_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `attachment_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_attachment_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=36542223 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `bug`
--
DROP TABLE IF EXISTS `bug`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bug` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(100) NOT NULL,
`title` varchar(100) NOT NULL,
`description` text,
`createdTime` datetime NOT NULL,
`completedTime` datetime DEFAULT NULL,
`status` int(11) NOT NULL,
`priority` int(11) NOT NULL,
`assigneeId` int(11) DEFAULT NULL,
`deleted` bit(1) NOT NULL DEFAULT b'0',
`dueTime` datetime DEFAULT NULL,
`idInProject` int(11) DEFAULT '0',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `bug_fk_companyId` (`companyId`),
KEY `bug_fk_projectId` (`projectId`),
KEY `bug_fk_creatorId` (`creatorId`),
CONSTRAINT `bug_fk_companyId` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `bug_fk_creatorId` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `bug_fk_projectId` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `changelog`
--
DROP TABLE IF EXISTS `changelog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `changelog` (
`ID` decimal(20,0) NOT NULL,
`APPLIED_AT` varchar(25) NOT NULL,
`DESCRIPTION` varchar(255) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ci_build_trigger`
--
DROP TABLE IF EXISTS `ci_build_trigger`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ci_build_trigger` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`trigger_type` varchar(255) DEFAULT NULL,
`trigger_value` varchar(255) DEFAULT NULL,
`project_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_bdl5qcde5hx2aiv4b2ycmhip5` (`project_id`),
CONSTRAINT `FK_bdl5qcde5hx2aiv4b2ycmhip5` FOREIGN KEY (`project_id`) REFERENCES `ci_project` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ci_builds`
--
DROP TABLE IF EXISTS `ci_builds`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ci_builds` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`build_result` longtext,
`created` datetime DEFAULT NULL,
`project_index` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`test_result` longtext,
`ci_project_id` int(11) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`buildResultStatus` varchar(255) DEFAULT NULL,
`jenkinsBuildId` varchar(255) NOT NULL DEFAULT '0' COMMENT 'related jenkins build id',
`hasTestReport` bit(1) NOT NULL DEFAULT b'0',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `FK_54coqxagbf799hbuyo7vtqcwp` (`ci_project_id`),
CONSTRAINT `FK_54coqxagbf799hbuyo7vtqcwp` FOREIGN KEY (`ci_project_id`) REFERENCES `ci_project` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `ci_project`
--
DROP TABLE IF EXISTS `ci_project`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ci_project` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`companyId` int(11) DEFAULT NULL,
`branch` varchar(255) DEFAULT NULL,
`build_command` longtext,
`build_version` varchar(255) DEFAULT NULL,
`docker_container_id` varchar(255) DEFAULT NULL,
`language_version` varchar(255) DEFAULT NULL,
`project_type` varchar(255) DEFAULT NULL,
`repository` varchar(255) DEFAULT NULL,
`status` int(11) NOT NULL,
`test_command` longtext,
`test_version` varchar(255) DEFAULT NULL,
`last_build_id` int(11) DEFAULT NULL,
`last_failed_build_id` int(11) DEFAULT NULL,
`last_success_build_id` int(11) DEFAULT NULL,
`keepContainerUp` bit(1) NOT NULL DEFAULT b'0',
`exposedPort` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `collection`
--
DROP TABLE IF EXISTS `collection`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `collection` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`projectName` varchar(50) NOT NULL DEFAULT '',
`projectId` int(11) NOT NULL,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) NOT NULL DEFAULT '',
`attachId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL,
`title` varchar(200) NOT NULL DEFAULT '',
`attachType` varchar(20) NOT NULL DEFAULT '',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `comment`
--
DROP TABLE IF EXISTS `comment`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comment` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
`creatorId` int(11) NOT NULL,
`attachId` int(11) NOT NULL,
`attachType` varchar(30) NOT NULL DEFAULT '',
`deleted` tinyint(1) NOT NULL,
`projectId` int(11) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`creatorName` varchar(50) NOT NULL DEFAULT 'name',
`companyId` int(11) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `creatorId` (`creatorId`),
KEY `FK_comment_company` (`companyId`),
CONSTRAINT `comment_ibfk_1` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_comment_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39207996 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `commit_review`
--
DROP TABLE IF EXISTS `commit_review`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `commit_review` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) NOT NULL,
`file` varchar(500) NOT NULL,
`line` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`projectId` int(11) NOT NULL,
`commitId` varchar(40) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`line_type` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `commit_todo`
--
DROP TABLE IF EXISTS `commit_todo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `commit_todo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`commitId` varchar(500) NOT NULL,
`todoId` int(11) NOT NULL,
`repoId` int(11) NOT NULL,
`attachType` varchar(255) DEFAULT 'todo',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1807 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `company`
--
DROP TABLE IF EXISTS `company`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`creatorId` int(11) DEFAULT NULL,
`created` datetime NOT NULL,
`updated` datetime DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`privileged` bit(1) NOT NULL DEFAULT b'0' COMMENT '如果没有特权,默认为0。特权团队,比如说onboard,值为1',
`money` int(11) NOT NULL DEFAULT '0',
`lastPayTime` datetime DEFAULT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `creatorId` (`creatorId`),
CONSTRAINT `company_ibfk_1` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1234590 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `company_application`
--
DROP TABLE IF EXISTS `company_application`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `company_application` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`teamName` varchar(255) NOT NULL DEFAULT '',
`contactEmail` varchar(255) NOT NULL,
`contactName` varchar(255) DEFAULT NULL,
`description` varchar(4096) DEFAULT NULL,
`teamSize` varchar(50) NOT NULL DEFAULT '',
`codeHost` varchar(255) DEFAULT '',
`code` varchar(40) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `company_limit`
--
DROP TABLE IF EXISTS `company_limit`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `company_limit` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`projectCount` int(11) DEFAULT NULL,
`diskSize` int(11) DEFAULT NULL,
`repositorySize` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `company_log`
--
DROP TABLE IF EXISTS `company_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `company_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`content` int(11) DEFAULT NULL,
`created` datetime DEFAULT NULL,
`creatorId` int(11) DEFAULT NULL,
`changes` int(11) DEFAULT NULL,
`type` int(11) DEFAULT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `company_privilege`
--
DROP TABLE IF EXISTS `company_privilege`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `company_privilege` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`userId` int(10) NOT NULL,
`companyId` int(10) NOT NULL,
`isAdmin` bit(1) DEFAULT b'0' COMMENT '??????',
`canCreateProject` bit(1) DEFAULT b'0' COMMENT '???????',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1144 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `department`
--
DROP TABLE IF EXISTS `department`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `department` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`companyId` int(11) NOT NULL,
`customOrder` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `group_ibfk_1` (`companyId`),
CONSTRAINT `department_ibfk_1` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=140 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `discussion`
--
DROP TABLE IF EXISTS `discussion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discussion` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`subject` varchar(200) NOT NULL DEFAULT '',
`content` text,
`creatorId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`bcId` int(11) DEFAULT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_discussion_company` (`companyId`),
CONSTRAINT `discussion_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `discussion_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_discussion_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1906893 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document`
--
DROP TABLE IF EXISTS `document`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`content` mediumtext,
`creatorId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`isHomePage` tinyint(1) NOT NULL,
`docType` tinyint(4) DEFAULT '0',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_document_company` (`companyId`),
CONSTRAINT `document_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `document_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_document_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1012 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `document_history`
--
DROP TABLE IF EXISTS `document_history`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_history` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`documentId` int(11) NOT NULL,
`version` varchar(64) DEFAULT NULL,
`updaterId` int(11) NOT NULL,
`updaterName` varchar(50) NOT NULL,
`created` datetime NOT NULL,
`note` tinytext,
`projectId` int(11) NOT NULL,
`title` varchar(100) NOT NULL,
`content` mediumtext,
PRIMARY KEY (`id`),
KEY `FK_document_history_user_idx` (`updaterId`),
KEY `FK_document_history_document_idx` (`documentId`),
KEY `FK_document_history_project_idx` (`projectId`)
) ENGINE=MyISAM AUTO_INCREMENT=371864972 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `event`
--
DROP TABLE IF EXISTS `event`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `event` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`summary` varchar(100) NOT NULL,
`description` varchar(200) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`startTime` datetime NOT NULL,
`endTime` datetime NOT NULL,
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`companyId` int(11) DEFAULT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `creatorId` (`creatorId`),
KEY `event_ibfk_1` (`projectId`),
KEY `FK_event_company` (`companyId`),
CONSTRAINT `event_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `FK_event_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=107 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `git_user_email`
--
DROP TABLE IF EXISTS `git_user_email`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `git_user_email` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`email` varchar(255) NOT NULL,
`companyId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `github_info`
--
DROP TABLE IF EXISTS `github_info`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `github_info` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`code` varchar(100) DEFAULT NULL,
`token` varchar(100) DEFAULT NULL,
`userName` varchar(100) DEFAULT NULL,
`userEmail` varchar(100) DEFAULT NULL,
`deleted` tinyint(1) DEFAULT '0',
`onboardUserId` int(11) DEFAULT NULL,
`type` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `help_tip`
--
DROP TABLE IF EXISTS `help_tip`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `help_tip` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(100) NOT NULL,
`question` text NOT NULL,
`answer` text NOT NULL,
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`deleted` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `invitation`
--
DROP TABLE IF EXISTS `invitation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invitation` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`token` varchar(50) NOT NULL DEFAULT '',
`created` datetime NOT NULL,
`email` varchar(100) NOT NULL DEFAULT '',
`companyId` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `userId` (`userId`),
KEY `companyId` (`companyId`),
CONSTRAINT `invitation_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`),
CONSTRAINT `invitation_ibfk_2` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=28426482 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `invitation_projects`
--
DROP TABLE IF EXISTS `invitation_projects`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invitation_projects` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`invitationId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `invitationId` (`invitationId`),
CONSTRAINT `invitation_projects_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `invitation_projects_ibfk_2` FOREIGN KEY (`invitationId`) REFERENCES `invitation` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1412 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `iteration`
--
DROP TABLE IF EXISTS `iteration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iteration` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`created` datetime NOT NULL,
`status` varchar(45) NOT NULL,
`startTime` datetime DEFAULT NULL,
`endTime` datetime DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
`updated` datetime NOT NULL,
`deleted` tinyint(1) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=746 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `iteration_object`
--
DROP TABLE IF EXISTS `iteration_object`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iteration_object` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iterationId` int(11) NOT NULL,
`objectType` varchar(255) NOT NULL,
`objectId` int(11) NOT NULL,
`completed` bit(1) DEFAULT NULL,
`completedTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=585 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `iteration_story`
--
DROP TABLE IF EXISTS `iteration_story`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iteration_story` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iterationId` int(11) DEFAULT NULL,
`storyId` int(11) DEFAULT NULL,
`status` varchar(45) DEFAULT NULL,
`completedTime` varchar(45) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `iteration_todo`
--
DROP TABLE IF EXISTS `iteration_todo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `iteration_todo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iterationId` int(11) NOT NULL,
`todoId` int(11) NOT NULL,
`status` varchar(45) NOT NULL,
`completedTime` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5451 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `keyword`
--
DROP TABLE IF EXISTS `keyword`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `keyword` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`keyword` varchar(50) NOT NULL,
`times` bigint(50) NOT NULL DEFAULT '0',
`attachType` varchar(30) NOT NULL,
`attachId` int(11) NOT NULL,
`deleted` bit(1) NOT NULL DEFAULT b'0',
`tfidf` double DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27296 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `notification`
--
DROP TABLE IF EXISTS `notification`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`isRead` tinyint(1) NOT NULL,
`activityId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `notification.userId` (`userId`),
KEY `notification.companyId` (`companyId`),
KEY `notification.activityId` (`activityId`),
CONSTRAINT `notification?activityId` FOREIGN KEY (`activityId`) REFERENCES `activity` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `notification?companyId` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `notification?userId` FOREIGN KEY (`userId`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=2029 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `project`
--
DROP TABLE IF EXISTS `project`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`description` varchar(500) DEFAULT NULL,
`archived` tinyint(1) NOT NULL DEFAULT '0',
`creatorId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`colorId` int(11) NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `companyId` (`companyId`),
KEY `creatorId` (`creatorId`),
CONSTRAINT `project_ibfk_1` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `project_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5533076 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `project_privilege`
--
DROP TABLE IF EXISTS `project_privilege`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_privilege` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`userId` int(10) NOT NULL,
`projectId` int(10) NOT NULL,
`isAdmin` bit(1) DEFAULT b'0' COMMENT '????????',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
CONSTRAINT `projectId` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1968 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `project_todo_id`
--
DROP TABLE IF EXISTS `project_todo_id`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_todo_id` (
`projectId` int(11) NOT NULL,
`todoId` int(11) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=426 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `project_todo_status`
--
DROP TABLE IF EXISTS `project_todo_status`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `project_todo_status` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`status` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=992 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `pull_request`
--
DROP TABLE IF EXISTS `pull_request`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pull_request` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`description` text,
`source` varchar(500) NOT NULL,
`destination` varchar(500) NOT NULL,
`title` varchar(500) NOT NULL,
`deleted` tinyint(1) NOT NULL,
`status` int(11) NOT NULL DEFAULT '0' COMMENT 'declined, merged, open',
`creatorId` int(11) NOT NULL,
`todoId` int(11) NOT NULL,
`creatorName` varchar(50) NOT NULL DEFAULT 'name',
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`projectId` int(11) NOT NULL,
`scopeId` int(11) NOT NULL DEFAULT '0',
`sourceHash` varchar(500) NOT NULL,
`destinationHash` varchar(500) NOT NULL,
`repositoryId` int(11) NOT NULL,
`companyId` int(11) NOT NULL DEFAULT '1',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `creatorId` (`creatorId`),
KEY `todoId` (`todoId`),
KEY `projectId` (`projectId`),
KEY `pf_repository_id` (`repositoryId`),
KEY `pr_company_id` (`companyId`),
CONSTRAINT `pf_repository_id` FOREIGN KEY (`repositoryId`) REFERENCES `repository` (`id`),
CONSTRAINT `pr_company_id` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `pr_creator_id` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `pr_project_id` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `pr_todo_id` FOREIGN KEY (`todoId`) REFERENCES `todo` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22106 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `pull_request_push`
--
DROP TABLE IF EXISTS `pull_request_push`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pull_request_push` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pullRequestId` int(11) NOT NULL,
`pushId` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=204 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `pull_request_reviewer`
--
DROP TABLE IF EXISTS `pull_request_reviewer`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pull_request_reviewer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`pullRequestId` int(11) NOT NULL,
`reviewerId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `pullRequestId` (`pullRequestId`),
KEY `reviewerId` (`reviewerId`),
KEY `projectId` (`projectId`),
CONSTRAINT `prr_project_id` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `prr_pull_request_id` FOREIGN KEY (`pullRequestId`) REFERENCES `pull_request` (`id`),
CONSTRAINT `prr_reviewer_id` FOREIGN KEY (`reviewerId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3303 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `push`
--
DROP TABLE IF EXISTS `push`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `push` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`since` varchar(500) DEFAULT NULL,
`until` varchar(500) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) NOT NULL,
`repositoryId` int(11) DEFAULT NULL,
`branchName` varchar(500) DEFAULT NULL,
`projectId` int(11) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5711 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `repo_branch_privilege`
--
DROP TABLE IF EXISTS `repo_branch_privilege`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `repo_branch_privilege` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`repositoryId` int(11) NOT NULL,
`userId` int(11) NOT NULL,
`refName` varchar(100) CHARACTER SET utf8 NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `repository`
--
DROP TABLE IF EXISTS `repository`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `repository` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`slug` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`name` varchar(128) COLLATE utf8_bin NOT NULL,
`deleted` tinyint(1) NOT NULL,
`projectId` int(11) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`updatedBranch` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`companyId` int(11) NOT NULL DEFAULT '1',
`lastCommitId` varchar(128) COLLATE utf8_bin DEFAULT '1',
`lastCommitShortMessage` varchar(4096) COLLATE utf8_bin DEFAULT NULL,
`lastCommitUsername` varchar(128) COLLATE utf8_bin DEFAULT NULL,
`lastCommitTimestamp` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `uk_slug_project_id` (`slug`,`projectId`),
KEY `idx_repository_project_id` (`projectId`),
KEY `fk_repository_company` (`companyId`),
CONSTRAINT `fk_repository_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
CONSTRAINT `fk_repository_project` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=222 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `repository_privilege`
--
DROP TABLE IF EXISTS `repository_privilege`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `repository_privilege` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`companyId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`repositoryId` int(11) NOT NULL,
`defaultOwner` int(11) NOT NULL,
`action` varchar(45) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=234 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `repository_privilege_user`
--
DROP TABLE IF EXISTS `repository_privilege_user`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `repository_privilege_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`repositoryRrivilegeId` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=53 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `review`
--
DROP TABLE IF EXISTS `review`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `review` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`content` text,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) NOT NULL,
`file` varchar(500) NOT NULL,
`line` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL,
`projectId` int(11) NOT NULL,
`pullRequestId` int(11) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`line_type` varchar(50) DEFAULT NULL,
`since` varchar(500) DEFAULT NULL,
`until` varchar(500) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `creatorId` (`creatorId`),
KEY `projectId` (`projectId`),
KEY `pullRequestId` (`pullRequestId`),
CONSTRAINT `review_creator_id` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `review_project_id` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `review_pull_request_id` FOREIGN KEY (`pullRequestId`) REFERENCES `pull_request` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=29032010 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `sshkey`
--
DROP TABLE IF EXISTS `sshkey`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sshkey` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`keytext` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`title` varchar(255) NOT NULL DEFAULT '',
`md5` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `userId` (`userId`),
CONSTRAINT `sshkey_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=89 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `step`
--
DROP TABLE IF EXISTS `step`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `step` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachType` varchar(255) NOT NULL,
`attachId` int(11) NOT NULL,
`content` varchar(255) NOT NULL,
`dueDate` datetime DEFAULT NULL,
`createdTime` datetime DEFAULT NULL,
`updatedTime` datetime DEFAULT NULL,
`creatorId` int(11) DEFAULT NULL,
`creatorName` varchar(255) DEFAULT NULL,
`assigneeId` int(11) DEFAULT NULL,
`status` varchar(255) DEFAULT NULL,
`startTime` datetime DEFAULT NULL,
`completedTime` datetime DEFAULT NULL,
`completerId` int(11) DEFAULT NULL,
`idInProject` int(11) DEFAULT '0',
`projectId` int(11) DEFAULT '0',
`companyId` int(11) DEFAULT '0',
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=135 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `story`
--
DROP TABLE IF EXISTS `story`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `story` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`pre` text,
`post` text,
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`completedTime` datetime DEFAULT NULL,
`completed` tinyint(1) NOT NULL,
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`description` varchar(200) DEFAULT NULL,
`acceptanceLevel` text,
`priority` int(11) NOT NULL DEFAULT '1',
`parentStoryId` int(11) NOT NULL DEFAULT '0',
`completable` tinyint(1) NOT NULL DEFAULT '1',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=240 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `story_todo`
--
DROP TABLE IF EXISTS `story_todo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `story_todo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`storyId` int(11) NOT NULL,
`todoId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=88 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `subscriber`
--
DROP TABLE IF EXISTS `subscriber`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subscriber` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`subscribeId` int(11) NOT NULL,
`subscribeType` varchar(30) NOT NULL DEFAULT '',
`companyId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `only_one_subscriber` (`userId`,`subscribeId`,`subscribeType`),
KEY `userId` (`userId`),
KEY `FK_subscriber_company` (`companyId`),
CONSTRAINT `FK_subscriber_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `subscriber_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=47835 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `suggestion`
--
DROP TABLE IF EXISTS `suggestion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `suggestion` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`content` varchar(2000) DEFAULT NULL,
`email` varchar(200) DEFAULT NULL,
`created` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tag`
--
DROP TABLE IF EXISTS `tag`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tagname` varchar(50) NOT NULL,
`projectId` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `tag_projectId` (`projectId`),
CONSTRAINT `tag_projectId` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=118 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `tag_attach`
--
DROP TABLE IF EXISTS `tag_attach`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tag_attach` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tagId` int(11) NOT NULL,
`attachId` int(11) NOT NULL,
`attachType` varchar(45) NOT NULL,
PRIMARY KEY (`id`),
KEY `tagId` (`tagId`),
CONSTRAINT `tagId` FOREIGN KEY (`tagId`) REFERENCES `tag` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=198 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `todo`
--
DROP TABLE IF EXISTS `todo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `todo` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL DEFAULT '0',
`todolistId` int(11) DEFAULT NULL,
`content` varchar(200) NOT NULL,
`position` double NOT NULL DEFAULT '0',
`completed` tinyint(1) NOT NULL,
`dueDate` datetime DEFAULT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`assigneeId` int(11) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`companyId` int(11) DEFAULT NULL,
`doing` tinyint(1) NOT NULL DEFAULT '0',
`projectTodoId` int(11) DEFAULT NULL,
`todoType` varchar(45) NOT NULL DEFAULT 'task',
`description` text,
`estimate` int(11) DEFAULT NULL,
`spendTime` int(11) DEFAULT NULL,
`priority` int(11) NOT NULL DEFAULT '1',
`status` varchar(45) DEFAULT NULL,
`startTime` datetime DEFAULT NULL,
`completeTime` datetime DEFAULT NULL,
`completerId` int(11) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `todoListId` (`todolistId`),
KEY `creatorId` (`creatorId`),
KEY `assigneeId` (`assigneeId`),
KEY `FK_todo_company` (`companyId`),
KEY `projectId` (`projectId`),
CONSTRAINT `FK_todo_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `todo_ibfk_1` FOREIGN KEY (`todolistId`) REFERENCES `todolist` (`id`),
CONSTRAINT `todo_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`),
CONSTRAINT `todo_ibfk_3` FOREIGN KEY (`assigneeId`) REFERENCES `user` (`id`),
CONSTRAINT `todo_ibfk_4` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=54331252 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `todo_duration`
--
DROP TABLE IF EXISTS `todo_duration`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `todo_duration` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) DEFAULT NULL,
`companyId` int(11) NOT NULL,
`todoId` int(11) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`startTime` datetime NOT NULL,
`endTime` datetime NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `todolist`
--
DROP TABLE IF EXISTS `todolist`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `todolist` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`name` varchar(50) NOT NULL,
`description` varchar(200) DEFAULT NULL,
`position` double NOT NULL DEFAULT '0',
`creatorId` int(11) NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`deleted` tinyint(1) NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`bcId` int(11) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`archived` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'todolist归档',
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_todolist_company` (`companyId`),
CONSTRAINT `FK_todolist_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `todolist_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `todolist_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3458942 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `topic`
--
DROP TABLE IF EXISTS `topic`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `topic` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`title` varchar(50) NOT NULL,
`excerpt` varchar(200) NOT NULL,
`lastUpdatorId` int(11) NOT NULL,
`lastUpdatorName` varchar(50) DEFAULT NULL,
`refId` int(11) NOT NULL,
`refType` varchar(50) NOT NULL DEFAULT '',
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`bcId` int(11) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`stick` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `lastUpdatorId` (`lastUpdatorId`),
KEY `FK_topic_company` (`companyId`),
CONSTRAINT `FK_topic_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `topic_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `topic_ibfk_2` FOREIGN KEY (`lastUpdatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4535125 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `trash`
--
DROP TABLE IF EXISTS `trash`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `trash` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`attachType` varchar(100) NOT NULL,
`attachId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`deletedTime` datetime NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `upload`
--
DROP TABLE IF EXISTS `upload`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `upload` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`projectId` int(11) NOT NULL,
`content` varchar(200) DEFAULT NULL,
`creatorId` int(11) NOT NULL,
`deleted` tinyint(1) NOT NULL,
`created` datetime NOT NULL,
`updated` datetime NOT NULL,
`creatorName` varchar(50) DEFAULT NULL,
`companyId` int(11) DEFAULT NULL,
`creatorAvatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
PRIMARY KEY (`id`),
KEY `projectId` (`projectId`),
KEY `creatorId` (`creatorId`),
KEY `FK_upload_company` (`companyId`),
CONSTRAINT `FK_upload_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `upload_ibfk_1` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `upload_ibfk_2` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7443637 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- 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(11) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
`description` varchar(500) DEFAULT NULL,
`email` varchar(50) NOT NULL,
`activated` tinyint(1) NOT NULL,
`avatar` varchar(200) NOT NULL DEFAULT '/avatar/default.png',
`created` datetime DEFAULT NULL,
`updated` datetime DEFAULT NULL,
`password` varchar(50) NOT NULL DEFAULT '',
`newPassword` varchar(80) DEFAULT NULL,
`username` varchar(50) DEFAULT NULL,
`isManager` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=793998 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_company`
--
DROP TABLE IF EXISTS `user_company`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_company` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`companyId` int(11) NOT NULL,
`groupId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `userId` (`userId`),
KEY `companyId` (`companyId`),
CONSTRAINT `user_company_ibfk_1` FOREIGN KEY (`userId`) REFERENCES `user` (`id`),
CONSTRAINT `user_company_ibfk_2` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1232 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `user_project`
--
DROP TABLE IF EXISTS `user_project`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_project` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`projectId` int(11) NOT NULL,
`companyId` int(11) DEFAULT NULL,
`customOrder` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `userId` (`userId`,`projectId`),
KEY `projectId` (`projectId`),
KEY `FK_user_project_company` (`companyId`),
CONSTRAINT `FK_user_project_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `user_project_ibfk_2` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2909 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Table structure for table `worklog`
--
DROP TABLE IF EXISTS `worklog`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `worklog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`todoId` int(11) DEFAULT NULL,
`projectId` int(11) NOT NULL,
`startTime` datetime NOT NULL,
`endTime` datetime NOT NULL,
`description` text NOT NULL,
`creatorId` int(11) NOT NULL,
`companyId` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `worklog_ibfk_1` (`todoId`),
KEY `worklog_ibfk_2` (`projectId`),
KEY `worklog_ibfk_3` (`creatorId`),
KEY `FK_worklog_company` (`companyId`),
CONSTRAINT `FK_worklog_company` FOREIGN KEY (`companyId`) REFERENCES `company` (`id`),
CONSTRAINT `worklog_ibfk_1` FOREIGN KEY (`todoId`) REFERENCES `todo` (`id`),
CONSTRAINT `worklog_ibfk_2` FOREIGN KEY (`projectId`) REFERENCES `project` (`id`),
CONSTRAINT `worklog_ibfk_3` FOREIGN KEY (`creatorId`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
/*!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 2015-09-17 13:02:10
|
--SET spark.sql.cbo.enabled=true
--SET spark.sql.maxMetadataStringLength = 500
CREATE TABLE explain_temp1(a INT, b INT) USING PARQUET;
CREATE TABLE explain_temp2(c INT, d INT) USING PARQUET;
ANALYZE TABLE explain_temp1 COMPUTE STATISTICS FOR ALL COLUMNS;
ANALYZE TABLE explain_temp2 COMPUTE STATISTICS FOR ALL COLUMNS;
EXPLAIN COST WITH max_store_sales AS
(
SELECT max(csales) tpcds_cmax
FROM (
SELECT sum(b) csales
FROM explain_temp1 WHERE a < 100
) x
),
best_ss_customer AS
(
SELECT c
FROM explain_temp2
WHERE d > (SELECT * FROM max_store_sales)
)
SELECT c FROM best_ss_customer;
DROP TABLE explain_temp1;
DROP TABLE explain_temp2;
|
CREATE TABLE post (
id INTEGER PRIMARY KEY AUTOINCREMENT,
nombre varchar(20) NOT NULL,
raza varchar(50) NOT NULL,
sexo char(1),
caracteristicas varchar(100) NOT NULL);
INSERT INTO post (nombre, raza, sexo, caracteristicas) VALUES ('Cori', 'Cruza de husky con labarador', 'F', 'color cafe y mancha en el ojo izquierdo');
INSERT INTO post (nombre, raza, sexo, fecha_de_nacimiento, caracteristicas) VALUES ('Jeanayne', 'Maltes', 'F', 'Blanca, con la nariz decolorida'); |
<reponame>CUBRID/cubrid-testcase<gh_stars>0
--+ holdcas on;
prepare st from 'select repeat (''abc'',ceil(?))';
execute st using 3.3;
prepare st from 'select repeat (''abc'',ceil(ceil(ceil(ceil(ceil(ceil(ceil(?))))))))';
execute st using 3.3;
prepare st from 'select repeat(? + ?, ceil(?))';
execute st using '1','6','3.3';
set system parameters 'plus_as_concat=no';
prepare st from 'select repeat(? + ?, ceil(?))';
execute st using '1','6','3.3';
set system parameters 'plus_as_concat=yes';
prepare st from 'select repeat(? + ?, ceil(?))';
execute st using '1',6,'3.3';
prepare st from 'select repeat(? + ?, ceil(?))';
execute st using 1,6,'3.3';
prepare st from 'select repeat(? + ?, ceil(?))';
execute st using 'a','b','3.3';
prepare st from 'select if(ceil(?)=''4'',1,0)';
execute st using '3.3';
prepare st from 'select if(ceil(?)=''3'',1,0)';
execute st using '3';
prepare st from 'select if(ceil(?)=''3'',ceil(?),0)';
execute st using '3','3';
prepare st from 'select if(ceil(?)=''3'',ceil(?),0)';
execute st using '3','3.3';
commit;
--+ holdcas off;
|
UPDATE node
SET properties = json_set(properties, '$.Age', 25)
WHERE node_id = 1;
UPDATE node
SET properties = json_set(properties, '$.Sex', '男')
WHERE json_extract(properties, '$.Name')='张三'; |
<filename>laravelpro-unimart (1).sql
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 12, 2021 at 05:46 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 8.0.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `laravelpro-unimart`
--
-- --------------------------------------------------------
--
-- Table structure for table `banners`
--
CREATE TABLE `banners` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`thumbnail` text COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `banners`
--
INSERT INTO `banners` (`id`, `title`, `thumbnail`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Php Master', 'uploads/banner/banner.png', NULL, '2021-03-21 18:28:01', '2021-03-21 18:28:01'),
(2, 'Trại web', 'uploads/banner/banner-2.png', NULL, '2021-03-21 18:29:55', '2021-03-21 18:29:55');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `locations`
--
CREATE TABLE `locations` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` int(11) NOT NULL DEFAULT 0,
`type` tinyint(4) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `locations`
--
INSERT INTO `locations` (`id`, `name`, `parent_id`, `type`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 0, 1, NULL, NULL),
(2, 'TP. Quy Nhơn', 1, 2, NULL, NULL),
(3, 'Thị xã An Nhơn', 1, 2, NULL, NULL),
(4, 'Thị xã Hoài Nhơn', 1, 2, NULL, NULL),
(5, 'Huyện An Lão', 1, 2, NULL, NULL),
(6, 'Huyện Hoài Ân', 1, 2, NULL, NULL),
(7, '<NAME>', 1, 2, NULL, NULL),
(8, '<NAME>', 1, 2, NULL, NULL),
(9, '<NAME>', 1, 2, NULL, NULL),
(10, '<NAME>', 1, 2, NULL, NULL),
(11, '<NAME>', 1, 2, NULL, NULL),
(12, '<NAME>', 1, 2, NULL, NULL),
(13, '<NAME>', 1, 3, NULL, NULL),
(14, '<NAME>', 7, 3, NULL, NULL),
(15, '<NAME>', 7, 3, NULL, NULL),
(16, '<NAME>', 7, 3, NULL, NULL),
(17, '<NAME>', 7, 3, NULL, NULL),
(18, '<NAME>', 7, 3, NULL, NULL),
(19, '<NAME>', 7, 3, NULL, NULL),
(20, '<NAME>', 7, 3, NULL, NULL),
(21, '<NAME> ', 7, 3, NULL, NULL),
(22, '<NAME> ', 7, 3, NULL, NULL),
(23, '<NAME>', 7, 3, NULL, NULL),
(24, '<NAME>', 7, 3, NULL, NULL),
(25, '<NAME>', 7, 3, NULL, NULL),
(26, '<NAME>', 7, 3, NULL, NULL),
(27, '<NAME>', 7, 3, NULL, NULL),
(28, '<NAME>', 7, 3, NULL, NULL),
(29, '<NAME>', 7, 3, NULL, NULL),
(30, '<NAME>', 7, 3, NULL, NULL),
(31, '<NAME>', 2, 3, NULL, NULL),
(32, '<NAME>', 2, 3, NULL, NULL),
(33, '<NAME>', 2, 3, NULL, NULL),
(34, '<NAME> ', 2, 3, NULL, NULL),
(35, '<NAME>', 2, 3, NULL, NULL),
(36, '<NAME>', 2, 3, NULL, NULL),
(37, '<NAME> ', 2, 3, NULL, NULL),
(38, '<NAME>', 2, 3, NULL, NULL),
(39, '<NAME>', 2, 3, NULL, NULL),
(40, '<NAME>', 2, 3, NULL, NULL),
(41, '<NAME>', 2, 3, NULL, NULL),
(42, '<NAME>', 2, 3, NULL, NULL),
(43, '<NAME>', 2, 3, NULL, NULL),
(44, '<NAME>', 2, 3, NULL, NULL),
(45, '<NAME>', 2, 3, NULL, NULL),
(46, '<NAME>', 2, 3, NULL, NULL),
(47, '<NAME>', 2, 3, NULL, NULL),
(48, '<NAME>', 2, 3, NULL, NULL),
(49, '<NAME>', 2, 3, NULL, NULL),
(50, '<NAME>', 2, 3, NULL, NULL),
(51, '<NAME>', 2, 3, NULL, NULL),
(52, '<NAME>', 3, 3, NULL, NULL),
(53, '<NAME>', 3, 3, NULL, NULL),
(54, '<NAME>', 3, 3, NULL, NULL),
(55, '<NAME>', 3, 3, NULL, NULL),
(56, '<NAME>', 3, 3, NULL, NULL),
(57, '<NAME>', 3, 3, NULL, NULL),
(58, '<NAME>', 3, 3, NULL, NULL),
(59, '<NAME>', 3, 3, NULL, NULL),
(60, '<NAME>', 3, 3, NULL, NULL),
(61, '<NAME> ', 3, 3, NULL, NULL),
(62, '<NAME>', 3, 3, NULL, NULL),
(63, '<NAME>', 3, 3, NULL, NULL),
(64, '<NAME>', 3, 3, NULL, NULL),
(65, '<NAME>', 3, 3, NULL, NULL),
(66, '<NAME>', 3, 3, NULL, NULL),
(67, '<NAME>', 4, 3, NULL, NULL),
(68, '<NAME>', 4, 3, NULL, NULL),
(69, '<NAME>', 4, 3, NULL, NULL),
(70, '<NAME>', 4, 3, NULL, NULL),
(71, '<NAME>', 4, 3, NULL, NULL),
(72, '<NAME>', 4, 3, NULL, NULL),
(73, '<NAME>', 4, 3, NULL, NULL),
(74, '<NAME>', 4, 3, NULL, NULL),
(75, '<NAME>', 4, 3, NULL, NULL),
(76, '<NAME>', 4, 3, NULL, NULL),
(77, '<NAME>', 4, 3, NULL, NULL),
(78, '<NAME>', 4, 3, NULL, NULL),
(79, '<NAME>', 4, 3, NULL, NULL),
(80, '<NAME>', 4, 3, NULL, NULL),
(81, '<NAME>', 4, 3, NULL, NULL),
(82, '<NAME>', 4, 3, NULL, NULL),
(83, '<NAME>', 4, 3, NULL, NULL),
(84, '<NAME>', 5, 3, NULL, NULL),
(85, '<NAME>', 5, 3, NULL, NULL),
(86, '<NAME>', 5, 3, NULL, NULL),
(87, '<NAME>', 5, 3, NULL, NULL),
(88, '<NAME>', 5, 3, NULL, NULL),
(89, '<NAME>', 5, 3, NULL, NULL),
(90, '<NAME>', 5, 3, NULL, NULL),
(91, '<NAME>', 5, 3, NULL, NULL),
(92, '<NAME>', 5, 3, NULL, NULL),
(93, '<NAME>', 5, 3, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(6, '2014_10_12_000000_create_users_table', 1),
(7, '2014_10_12_100000_create_password_resets_table', 1),
(8, '2019_08_19_000000_create_failed_jobs_table', 1),
(9, '2021_02_24_151101_add_soft_delete_to_users', 1),
(10, '2021_03_02_012423_create_roles_table', 1),
(11, '2021_03_02_013244_add_role_id_to_users_table', 2),
(12, '2021_03_03_144634_add_soft_delete_to_roles_table', 3),
(13, '2021_03_06_011320_create_pages_table', 4),
(18, '2021_03_12_164831_create_product_cats_table', 5),
(23, '2021_03_12_165031_create_products_table', 6),
(24, '2021_03_18_055418_create_post_cats_table', 7),
(26, '2021_03_18_055728_create_posts_table', 8),
(28, '2021_03_19_075138_create_sliders_table', 9),
(31, '2021_03_22_010754_create_banners_table', 11),
(34, '2021_03_25_142424_create_product_images_table', 13),
(35, '2021_03_27_053615_create_product_types_table', 14),
(36, '2021_04_01_035850_create_locations_table', 15),
(37, '2021_03_19_161335_create_orders_table', 16);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` bigint(20) UNSIGNED NOT NULL,
`code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`customer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_number` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`number_order` int(11) NOT NULL,
`image` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`total` char(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`province` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`district` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`ward` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`way` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('0','1','2','3') COLLATE utf8mb4_unicode_ci NOT NULL,
`note` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `code`, `customer`, `phone_number`, `email`, `product_id`, `number_order`, `image`, `total`, `province`, `district`, `ward`, `way`, `status`, `note`, `deleted_at`, `created_at`, `updated_at`) VALUES
(56, 'ISMART14', 'Glory Arena', '0334618697', '<EMAIL>', '14', 1, 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '1', 'ádđ', NULL, NULL, '2021-04-09 07:06:58'),
(57, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 1, 'uploads/product/samsung2.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(58, 'ISMART14', 'Glory Arena', '0334618697', '<EMAIL>', '14', 1, 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(59, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 1, 'uploads/product/samsung2.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '1', 'ádđ', NULL, NULL, '2021-04-09 07:06:44'),
(60, 'ISMART14', 'Glory Arena', '0334618697', '<EMAIL>', '14', 1, 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(61, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 1, 'uploads/product/samsung2.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(62, 'ISMART14', 'Glory Arena', '0334618697', '<EMAIL>', '14', 1, 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '1', 'ádđ', NULL, NULL, '2021-04-09 07:07:05'),
(63, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 1, 'uploads/product/samsung2.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(64, 'ISMART14', 'Glory Arena', '0334618697', '<EMAIL>', '14', 1, 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(65, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 1, 'uploads/product/samsung2.jpg', '21.780.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4 nguyen van cu', '0', 'ádđ', NULL, NULL, NULL),
(66, 'ISMART8', '<NAME>', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thắng', '6369Ngãi An', '0', 'sssss', NULL, NULL, NULL),
(67, 'ISMART17', '<NAME>', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thắng', '6369Ngãi An', '0', 'sssss', NULL, NULL, NULL),
(68, 'ISMART8', 'Glory Arena', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(69, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(70, 'ISMART8', 'Glory Arena', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(71, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(72, 'ISMART8', 'Glory Arena', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(73, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(74, 'ISMART8', 'Glory Arena', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(75, 'ISMART17', 'Glory Arena', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Thành', NULL, '0', 'sâsasa', NULL, NULL, NULL),
(76, 'ISMART8', 'Ph<NAME>', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4', '0', 'dadsds', NULL, NULL, NULL),
(77, 'ISMART17', 'Pham Th<NAME>', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '12/4', '0', 'dadsds', NULL, NULL, NULL),
(78, 'ISMART8', 'Pham Thành Luân', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'OKE', NULL, NULL, NULL),
(79, 'ISMART17', 'Pham Thành Luân', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'OKE', NULL, NULL, NULL),
(80, 'ISMART8', 'Pham Thành Luân', '0334618697', '<EMAIL>', '8', 4, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'OKE', NULL, NULL, NULL),
(81, 'ISMART17', 'Pham Thành Luân', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '99.030.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'OKE', NULL, NULL, NULL),
(82, 'ISMART8', '<NAME>', '0334618697', '<EMAIL>', '8', 5, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '116.820.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'sđsdsds', NULL, NULL, NULL),
(83, 'ISMART17', '<NAME>', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '116.820.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'sđsdsds', NULL, NULL, NULL),
(84, 'ISMART8', '<NAME>', '0334618697', '<EMAIL>', '8', 5, 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '116.820.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'sđsdsds', NULL, NULL, NULL),
(85, 'ISMART17', '<NAME>', '0334618697', '<EMAIL>', '17', 3, 'uploads/product/samsung2.jpg', '116.820.000', 'Bình Định', 'Huyện Phù Cát', 'Xã Cát Khánh', '636 Ngãi An', '0', 'sđsdsds', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `pages`
--
CREATE TABLE `pages` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci NOT NULL,
`thumbnail` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('pending','public') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `pages`
--
INSERT INTO `pages` (`id`, `name`, `slug`, `content`, `thumbnail`, `status`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 'Blog', 'blog', '<p>Đây là nơi tập trung bài viết</p>', 'public/uploads/pagesiphone-xr-hopmoi-den-600x600-2-600x600.jpg', 'public', 1, '2021-03-06 09:13:21', '2021-04-09 09:16:33'),
(6, 'Giới thiệu', 'gioi-thieu', '<p>Giới thiệu về Ismart</p>', NULL, NULL, 1, '2021-04-09 19:32:48', '2021-04-09 19:32:48');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `posts`
--
CREATE TABLE `posts` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`post_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci NOT NULL,
`thumbnail` text COLLATE utf8mb4_unicode_ci NOT NULL,
`page_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`post_id` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`status` enum('0','1') COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `posts`
--
INSERT INTO `posts` (`id`, `title`, `post_desc`, `content`, `thumbnail`, `page_id`, `post_id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES
(6, 'Ấn tượng đầu tiên về Nokia C10: Chỉ 2 triệu* nhưng đã có màn hình 6.5 inch HD+, pin 3.000 mAh và chạy Android 11 (Go Edition)', '<h2>Trong sự kiện ra mắt sản phẩm mới vào ngày hôm nay (08/04/2021), <a title=\"Nokia\" href=\"https://www.thegioididong.com/dtdd-nokia\" target=\"_blank\" rel=\"noopener\" type=\"Nokia\">Nokia</a> đã chính thức tung ra 6 mẫu <a title=\"smartphone\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\" type=\"smartphone\">smartphone </a>mới và trong đó có chiếc <a title=\"Nokia C10\" href=\"https://www.thegioididong.com/dtdd/nokia-c10\" target=\"_blank\" rel=\"noopener\" type=\"Nokia C10\">Nokia C10</a> là mẫu giá rẻ nhất trong 6 thiết bị. Sau đây sẽ là tất cả những ấn tượng đầu tiên của mình về Nokia C10.</h2>\r\n<p><em>Lưu ý: Giá bán của Nokia C10 hiện vẫn chưa được công bố cho đến thời điểm hiện tại nhưng the chuyên tr dự kiến sẽ vào khoảng 75 Euro (khoảng 2 triệu đồng). Thiết bị sẽ có mặt tại một số thị trường trên toàn cầu bắt đầu từ tháng 6/2021 với hai tùy chọn màu tím, xám và có các tùy chọn cấu hình là 1 GB/16 GB, 1 GB/32 GB và 2 GB/16 GB.</em></p>\r\n<p>Xem thêm: <a title=\"Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP\" href=\"https://www.thegioididong.com/tin-tuc/dien-thoai-pho-thong-gia-re-nokia-400-4g-lo-anh-thuc-te-1338961\" target=\"_blank\" rel=\"noopener\" type=\"Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP\">Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP</a></p>', '<h2>Trong sự kiện ra mắt sản phẩm mới vào ngày hôm nay (08/04/2021), <a title=\"Nokia\" href=\"https://www.thegioididong.com/dtdd-nokia\" target=\"_blank\" rel=\"noopener\" type=\"Nokia\">Nokia</a> đã chính thức tung ra 6 mẫu <a title=\"smartphone\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\" type=\"smartphone\">smartphone </a>mới và trong đó có chiếc <a title=\"Nokia C10\" href=\"https://www.thegioididong.com/dtdd/nokia-c10\" target=\"_blank\" rel=\"noopener\" type=\"Nokia C10\">Nokia C10</a> là mẫu giá rẻ nhất trong 6 thiết bị. Sau đây sẽ là tất cả những ấn tượng đầu tiên của mình về Nokia C10.</h2>\r\n<p><em>Lưu ý: Giá bán của Nokia C10 hiện vẫn chưa được công bố cho đến thời điểm hiện tại nhưng the chuyên tr dự kiến sẽ vào khoảng 75 Euro (khoảng 2 triệu đồng). Thiết bị sẽ có mặt tại một số thị trường trên toàn cầu bắt đầu từ tháng 6/2021 với hai tùy chọn màu tím, xám và có các tùy chọn cấu hình là 1 GB/16 GB, 1 GB/32 GB và 2 GB/16 GB.</em></p>\r\n<p>Xem thêm: <a title=\"Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP\" href=\"https://www.thegioididong.com/tin-tuc/dien-thoai-pho-thong-gia-re-nokia-400-4g-lo-anh-thuc-te-1338961\" target=\"_blank\" rel=\"noopener\" type=\"Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP\">Điện thoại phổ thông giá rẻ Nokia 400 4G lộ ảnh thực tế với hệ điều hành rất mới mẻ mang tên GAFP</a></p>\r\n<h3><strong>Nokia C10 sở hữu màn hình kích thước lớn 6.5 inch cùng độ phân giải HD+</strong></h3>\r\n<p>Với một chiếc smartphone giá chỉ 2 triệu như Nokia C10 mà đã có màn hình 6.5 inch cùng độ phân giải HD+ là đã quá bá đạo rồi các bạn ạ. Chắc chắn thiết bị sẽ mang đến một trải nghiệm hiển thị tốt trong tầm giá, dư sức xử lý được các tác vụ cơ bản như xem phim, gọi video call, nhắn tin, lướt web,...</p>\r\n<div class=\"imgwrap\"><img class=\" lazyloaded\" title=\"Nokia C10 sở hữu màn hình kích thước lớn 6.5 inch cùng độ phân giải là HD+.\" src=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-man-hinh_800x450.png\" alt=\"Nokia C10 sở hữu màn hình kích thước lớn 6.5 inch cùng độ phân giải là HD+.\" data-original=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-man-hinh_800x450.png\" /></div>\r\n<div class=\"captionnews\">Nokia C10 sở hữu màn hình kích thước lớn 6.5 inch cùng độ phân giải là HD+. (Nguồn: HMD Global).</div>\r\n<p>Về mặt thiết kế, màn hình của Nokia C10 sử dụng màn hình giọt nước (kiểu thiết kế quen thuộc trên những chiếc smartphone giá rẻ) chứa camera selfie và bên cạnh là đèn flash LED hỗ trợ chụp thiếu sáng (phải nói là lâu lắm rồi mình mới thấy cái đèn flash ở camera trước). Các viền màn hình xung quanh chiếc Nokia C10 có hơi dày chút và ở phần cạnh dưới cùng của màn hình sẽ là logo Nokia quen thuộc, khiến cho thiết bị trở nên nổi bật và bắt mắt hơn.</p>\r\n<h3><strong>Nokia C10 chạy Android 11 (Go Edition) cho hiệu suất xử lý tăng thêm 20%</strong></h3>\r\n<p>Đây chính là điểm ấn tượng thứ hai của mình về chiếc Nokia C10 khi mà máy đã được trang bị hệ điều hành Android 11 (Go Edition) mới nhất đến từ Google. Dành cho các bạn nào chưa biết thì phiên bản Android 11 Go Edition sẽ dành cho các thiết bị cấp thấp (có bộ nhớ RAM từ 2 GB trở xuống) và mang lại những cải tiến về hiệu suất cùng các tính năng bảo mật mới.</p>\r\n<div class=\"imgwrap\"><img class=\" lazyloaded\" title=\"Hệ điều hành Android 11 (Go Edition) chuyên dành cho các thiết bị mức RAM thấp.\" src=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/android-11-go-edition-nokia-c10_800x450.png\" alt=\"Hệ điều hành Android 11 (Go Edition) chuyên dành cho các thiết bị mức RAM thấp. (Nguồn: HMD Global).\" data-original=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/android-11-go-edition-nokia-c10_800x450.png\" /></div>\r\n<div class=\"captionnews\">Hệ điều hành Android 11 (Go Edition) chuyên dành cho các thiết bị mức RAM thấp. (Nguồn: HMD Global).</div>\r\n<p>Nokia chia sẻ rằng với hệ điều hành này thì chiếc Nokia C10 của chúng ta sẽ được cải thiện 20% về mặt hiệu suất, các tác vụ cơ bản sẽ được xử lý một cách mượt mà, nhanh chóng. Không những thế, Nokia C10 còn được nhà sản xuất cập nhật bảo mật theo từng quý trong vòng 2 năm, phải nói là Nokia hỗ trợ phần mềm quá tận tâm đi ấy chứ.</p>\r\n<p>Tiện đây thì mình cũng điểm nhanh qua về những thông số cấu hình khác của Nokia C10:</p>\r\n<ul>\r\n<li>CPU: Unisoc SC7331e (bao gồm 4 nhân và xung nhịp tối đa là 1.3 GHz).</li>\r\n<li>GPU: Mali-400 MP2.</li>\r\n<li>RAM: Hai tùy chọn là 1 GB hoặc 2 GB.</li>\r\n<li>Bộ nhớ trong: 16 GB hoặc 32 GB (có hỗ trợ khe cắm thẻ nhớ microSD với dung lượng tối đa lên tới 256 GB).</li>\r\n<li>Pin: 3.000 mAh (sạc 5 W).</li>\r\n</ul>\r\n<div class=\"imgwrap\"><img class=\" lazyloaded\" title=\"Những thông số nổi bật của Nokia C10 (bên trái) và Nokia C20 (bên phải). (Nguồn: Pricebaba).\" src=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-cau-hinh_800x450.png\" alt=\"Những thông số nổi bật của Nokia C10 (bên trái) và Nokia C20 (bên phải). (Nguồn: Pricebaba).\" data-original=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-cau-hinh_800x450.png\" /></div>\r\n<div class=\"captionnews\">Những thông số nổi bật của Nokia C10 (bên trái) và Nokia C20 (bên phải). (Nguồn: Pricebaba).</div>\r\n<p>Nhìn chung thì Nokia C10 có bộ thông số tương đối ổn so với mức giá của thiết bị. Với cấu hình đó thì mình nghĩ máy chỉ chơi được một số tựa game nhẹ nhàng như Fruit Ninja, Temple Run hay là Angry Birds mà thôi. Còn các tác vụ cơ bản hàng ngày trong học tập, công việc của mỗi người thì không thể làm khó được Nokia C10.</p>\r\n<h3><strong>Thiết kế của Nokia C10: Trẻ trung, cá tính và bền bỉ</strong></h3>\r\n<p>Những chiếc smartphone đến từ Nokia luôn được nhiều người dùng đánh giá cao bởi tính bền bỉ và Nokia C10 vẫn tiếp tục phát huy điểm mạnh ấy. Chiếc máy chắc chắn sẽ có phần thân, mặt lưng được làm từ nhựa nhưng mình tin là sẽ không có cảm giác ọp ẹp, kém chất lượng.</p>\r\n<div class=\"youtube\"><img src=\"https://www.thegioididong.com/tin-tuc/an-tuong-dau-tien-ve-nokia-c10-1341891\" alt=\"\" /></div>\r\n<div class=\"captionnews\">Đoạn intro giới thiệu Nokia C10 do Nokia đăng tải. (Nguồn: Nokia).</div>\r\n<p>Nếu bạn để ý kĩ trong video giới thiệu Nokia C10 bên trên thì sẽ thấy mặt lưng của thiết bị có họa tiết vân nổi (theo dạng gợn sóng). Điều này không chỉ giúp cho chiếc máy của chúng ta trở nên nổi bật hơn mà còn hạn chế việc bám bụi bẩn, mồ hôi hoặc dấu vân tay. Bên cạnh đó, Nokia C10 còn sở hữu camera đơn (kèm đèn flash LED được đặt trong một cục hình tròn) với độ phân giải 5 MP.</p>\r\n<div class=\"imgwrap\"><img class=\" lazyloaded\" title=\"Mặt lưng của Nokia C10 được làm hoa văn vân nổi tạo độ bám khi cầm trên tay, có 1 camera kèm đèn flash LED. (Nguồn: HMD Global).\" src=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-mat-lung_800x450.png\" alt=\"Mặt lưng của Nokia C10 được làm hoa văn vân nổi tạo độ bám khi cầm trên tay, có 1 camera kèm đèn flash LED. (Nguồn: HMD Global).\" data-original=\"https://cdn.tgdd.vn/Files/2021/04/08/1341891/nokia-c10-mat-lung_800x450.png\" /></div>\r\n<div class=\"captionnews\">Mặt lưng của Nokia C10 được làm hoa văn vân nổi tạo độ bám khi cầm trên tay, có 1 camera kèm đèn flash LED. (Nguồn: HMD Global).</div>\r\n<p>Chiếc Nokia C10 năm nay cũng mang đến cho người dùng 2 tùy chọn màu sắc cực cá tính, đó là tím và xám. Mình cảm thấy khá hứng thú với phiên bản màu tím của Nokia C10, chưa rõ máy trong thực tế sẽ như thế nào nhưng mình tin là màu sắc mới này sẽ khiến Nokia C10 trông nổi bật hơn rất nhiều khi cầm trên tay.</p>', 'uploads/product/nokia-c10-man-hinh_800x450.png', 1, 1, '1', NULL, '2021-04-09 08:27:19', '2021-04-09 08:28:29'),
(7, 'Nghe Đồn Là: iPhone 13 (iPhone 12s) sẽ có màu cam mới lạ, Touch ID dưới màn hình, tai thỏ bé hơn... (Đang cập nhật)', '<h2>Sau một thời gian dài chờ đợi thì mẫu điện thoại <a title=\"điện thoại iPhone \" href=\"https://www.thegioididong.com/apple\" target=\"_blank\" rel=\"noopener\" type=\"điện thoại iPhone \">Apple</a> - <a title=\"iPhone 12\" href=\"https://www.thegioididong.com/dtdd/iphone-12\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 12\">iPhone 12</a> cũng đã được ra mắt vào ngày 14/10 năm ngoái. Dẫu biết rằng iPhone 12 đã thực hiện rất nhiều cải tiến, nhưng chắc chắn rằng vẫn sẽ có những hạn chế nhất định. Từ đó, mọi ánh nhìn bắt đầu đổ dồn về chiếc Apple <a title=\"iPhone\" href=\"https://www.thegioididong.com/dtdd-apple-iphone\" target=\"_blank\" rel=\"noopener\" type=\"iPhone\">iPhone</a> tiếp theo đến từ nhà Táo. Liệu <a title=\"iPhone 13\" href=\"https://www.thegioididong.com/dtdd/iphone-13\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 13\">iPhone 13</a> sẽ có được những thay đổi đủ để thỏa mãn đại đa số người dùng? Chúng ta hãy cùng <a title=\"tổng hợp những rò rỉ iPhone 13\" href=\"http://www.thegioididong.com/tin-tuc/tong-hop-ro-ri-iphone-13-1303018\" target=\"_blank\" rel=\"noopener\" type=\"tổng hợp những rò rỉ iPhone 13\">tổng hợp những thông tin nghe đồn về iPhone 13</a> trong bài viết này nhé.</h2>', '<h2>au một thời gian dài chờ đợi thì mẫu điện thoại <a title=\"điện thoại iPhone \" href=\"https://www.thegioididong.com/apple\" target=\"_blank\" rel=\"noopener\" type=\"điện thoại iPhone \">Apple</a> - <a title=\"iPhone 12\" href=\"https://www.thegioididong.com/dtdd/iphone-12\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 12\">iPhone 12</a> cũng đã được ra mắt vào ngày 14/10 năm ngoái. Dẫu biết rằng iPhone 12 đã thực hiện rất nhiều cải tiến, nhưng chắc chắn rằng vẫn sẽ có những hạn chế nhất định. Từ đó, mọi ánh nhìn bắt đầu đổ dồn về chiếc Apple <a title=\"iPhone\" href=\"https://www.thegioididong.com/dtdd-apple-iphone\" target=\"_blank\" rel=\"noopener\" type=\"iPhone\">iPhone</a> tiếp theo đến từ nhà Táo. Liệu <a title=\"iPhone 13\" href=\"https://www.thegioididong.com/dtdd/iphone-13\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 13\">iPhone 13</a> sẽ có được những thay đổi đủ để thỏa mãn đại đa số người dùng? Chúng ta hãy cùng <a title=\"tổng hợp những rò rỉ iPhone 13\" href=\"http://www.thegioididong.com/tin-tuc/tong-hop-ro-ri-iphone-13-1303018\" target=\"_blank\" rel=\"noopener\" type=\"tổng hợp những rò rỉ iPhone 13\">tổng hợp những thông tin nghe đồn về iPhone 13</a> trong bài viết này nhé.</h2>\r\n<p><em>Lưu ý: Bài viết sẽ thường xuyên được cập nhật thông tin mới nhất về những rò rỉ của iPhone 13 trên thị trường. Các bạn hãy lưu bài viết này để thường xuyên theo dõi những rò rỉ iPhone 13 nổi bật nhất cho đến khi sản phẩm này chính thức ra mắt nhé.</em></p>\r\n<div class=\"imgwrap\"><img title=\"iPhone 13 liệu sẽ có những cải tiến gì mới đây?\" src=\"https://cdn.tgdd.vn/Files/2020/10/29/1303018/w_800x450.jpg\" alt=\"iPhone 13 liệu sẽ có những cải tiến gì mới đây?\" data-original=\"https://cdn.tgdd.vn/Files/2020/10/29/1303018/w_800x450.jpg\" /></div>\r\n<div class=\"captionnews\">Cải tiến mới mẻ nào sẽ xuất hiện trên iPhone 13? Nguồn ảnh: The Verge.</div>\r\n<p>Xem thêm: <a title=\"Vì sao nên chọn iPhone hàng đổi trả tại Thế Giới Di Động và những lưu ý giúp bạn tìm được sản phẩm ưng ý nhất! \" href=\"https://www.thegioididong.com/tin-tuc/vi-sao-nen-chon-iphone-hang-doi-tra-tai-the-gioi-di-dong-1327808\" target=\"_blank\" rel=\"noopener\" type=\"Vì sao nên chọn iPhone hàng đổi trả tại Thế Giới Di Động và những lưu ý giúp bạn tìm được sản phẩm ưng ý nhất! \">Vì sao nên chọn iPhone hàng đổi trả tại Thế Giới Di Động và những lưu ý giúp bạn tìm được sản phẩm ưng ý nhất!</a></p>\r\n<h3><strong>Thông tin nghe đồn là về iPhone 13 mới nhất (cập nhật ngày 5/4/2021)</strong></h3>\r\n<p><strong>Lộ hình ảnh rò rỉ về mô hình bí ẩn được cho là iPhone 13 Pro (iPhone 12s Pro) với tai thỏ nhỏ hơn và nhiều điểm thay đổi so với tiền nhiệm iPhone 12 Pro </strong></p>\r\n<div class=\"youtube\"><img src=\"https://www.thegioididong.com/tin-tuc/nghe-don-la-iphone-13-1303018\" alt=\"\" /></div>\r\n<div class=\"captionnews\">Hình ảnh rò rỉ được cho là iPhone 13 Pro (iPhone 12s Pro) với nhiều nâng cấp so với tiền nhiệm.</div>\r\n<p>Thông tin được chia sẻ bởi Leaker nổi tiếng của Nhật Bản - Mac Otakara. Vừa mới đây, Mac Otakara đã chia sẻ video được cho là về mô hình 3D của iPhone 13‌ Pro (iPhone 12s Pro). Chính xác hơn chúng ta sẽ có phần notch tai thỏ được thiết kế lại với loa thoại và hệ thống camera nằm ở vị trí khác so với iPhone 12 Pro.</p>\r\n<p>Theo những rò rỉ xuất hiện trong video, phần notch (tai thỏ) trên iPhone mới sẽ nhỏ hơn nhưng cao hơn một chút so với phần notch của <a title=\"iPhone 12 Pro\" href=\"https://www.thegioididong.com/dtdd/iphone-12-pro-max\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 12 Pro\">iPhone 12 Pro</a>. Điều này là kết quả của việc loa thoại sẽ được đặt lên trên, tạo khoảng trống cho các thành phần Face ID được đặt gần nhau hơn. Hơn nữa, camera trước sẽ di chuyển vị trí từ bên phải sang bên trái của notch tai thỏ.</p>\r\n<p>Thông tin chi tiết: <a title=\"iPhone 13 Pro (iPhone 12s Pro) lộ mô hình với tai thỏ nhỏ hơn, nhiều điểm thay đổi so với iPhone 12 Pro\" href=\"https://www.thegioididong.com/tin-tuc/mo-hinh-iphone-13-pro-lo-dien-voi-notch-tai-tho-nho-gon-1340875?fbclid=IwAR02SkOFVn6B6cewQ3Ssz68P2-9KD3Y1FK8T_b3gp7goeGvq1sXQQmSsNY8\" target=\"_blank\" rel=\"noopener\" type=\"iPhone 13 Pro (iPhone 12s Pro) lộ mô hình với tai thỏ nhỏ hơn, nhiều điểm thay đổi so với iPhone 12 Pro\">iPhone 13 Pro (iPhone 12s Pro) lộ mô hình với tai thỏ nhỏ hơn, nhiều điểm thay đổi so với iPhone 12 Pro</a></p>\r\n<p><strong>Xuất hiện màu mới màu Orange color (Màu cam) trên iPhone 12s </strong></p>\r\n<p>Mới đây chuyên trang thông tin về các sản phẩm của Apple EverythingApplePro đã đăng tải về một bức ảnh concept mới của thiết bị được cho là iPhone 12s với màu Orange (màu cam) vô cùng mới lạ và nổi bật hơn bao giờ hết. Nói là Orange vậy chứ mình thấy màu cam này ngả về màu vàng, kiểu màu Gold trước đây nhưng đậm hơn ấy.</p>\r\n<div class=\"imgwrap\"><img class=\" lazyloaded\" title=\"Màu Orange trên iPhone 12s\" src=\"https://cdn.tgdd.vn/Files/2020/10/29/1303018/167067343_4212889008744496_3647926076733388682_n_800x600.jpg\" alt=\"Màu Orange trên iPhone 12s\" data-original=\"https://cdn.tgdd.vn/Files/2020/10/29/1303018/167067343_4212889008744496_3647926076733388682_n_800x600.jpg\" /></div>\r\n<div class=\"captionnews\">Màu Orange trên iPhone 12s. Nguồn: EverythingApplePro.</div>\r\n<p>Tuy đây chỉ là một trong những concept chưa chính thức của iPhone 12s, nhưng mình thật sự thấy phấn khích trước màu sắc mới này trên iPhone 12s và hi vọng đây sẽ là một trong những màu sắc mới của iPhone 12s Series. Mình tin rằng màu sắc này trên iPhone 12s sẽ mang lại sự mới lạ và cảm hứng cho người dùng công nghệ và các iFans.</p>\r\n<p><strong>1. Xuất hiện thêm một concept với về iPhone 13 Pro</strong></p>\r\n<p>Thêm một concept iPhone 13 Pro (iPhone 12s Pro) mới vừa xuất hiện, lần này đến từ nhà thiết kế <a title=\"4RMD\" href=\"https://www.youtube.com/channel/UCJCqcSqCAubV2rKfwItSGIg\" target=\"_blank\" rel=\"nofollow noopener\" type=\"4RMD\">4RMD</a>. Không chỉ cung cấp cho người xem cái nhìn rõ nét hơn về thế hệ iPhone sắp tới, 4RMD còn tiết lộ nhiều thông số cấu hình của bản Pro.Tất nhiên bản concept cũng dựa theo những tin đồn đã từng xuất hiện trước đó, như loại bỏ cổng sạc Lightning và chuyển hoàn toàn sang sạc không dây.</p>', 'uploads/post/w_800x450.jpg', 1, 1, '1', NULL, '2021-04-09 08:32:35', '2021-04-09 08:32:35'),
(8, 'Cửa hàng công nghệ ISMART được thành lập tháng 9 năm 2020, là cửa hàng chuyên buôn bán các sản phẩm chất lượng chính hãng và các phụ kiện chuyên dụng cho các sản phẩm điện thoại, laptop …', '<p>ISMART luôn tập trung xây dựng dịch vụ khách hàng khác biệt với chất lượng vượt trội, phù hợp với văn hoá, đặt khách hàng làm trung tâm trong mọi suy nghĩ và hành động của cửa hàng.ISMART sẽ cung cấp tới mọi tầng lớp khách hàng những trải nghiệm mua sắm tích cực, thông qua các sản phẩm Kỹ thuật số chính hãng chất lượng cao, giá cả cạnh tranh đi kèm dịch vụ chăm sóc khách hàng thân thiện, được đảm bảo bởi uy tín của doanh nghiệp.</p>', '<p>Cửa hàng công nghệ ISMART được thành lập tháng 9 năm 2020, là cửa hàng chuyên buôn bán các sản phẩm chất lượng chính hãng và các phụ kiện chuyên dụng cho các sản phẩm điện thoại, laptop …</p>\r\n<p>ISMART luôn tập trung xây dựng dịch vụ khách hàng khác biệt với chất lượng vượt trội, phù hợp với văn hoá, đặt khách hàng làm trung tâm trong mọi suy nghĩ và hành động của cửa hàng.ISMART sẽ cung cấp tới mọi tầng lớp khách hàng những trải nghiệm mua sắm tích cực, thông qua các sản phẩm Kỹ thuật số chính hãng chất lượng cao, giá cả cạnh tranh đi kèm dịch vụ chăm sóc khách hàng thân thiện, được đảm bảo bởi uy tín của doanh nghiệp.</p>\r\n<p><img class=\"border-0\" src=\"http://thanh.unitopcv.com/unimart/public/storage/photos/20/cac-phien-ban-dien-thoai-iphone-11.jpg\" alt=\"\" /></p>\r\n<p>Thế mạnh làm nên thương hiệu ISmart khác biệt chính là: Sự chuyên môn hóa trong từng bộ phận, tính trách nhiệm cao cùng những giám sát kỹ thuật làm việc nghiêm túc, Luôn đi đầu trong việc gây dựng uy tín, trách nhiệm để đảm bảo chất lượng sản phẩm,cam kết đặt KHÁCH HÀNG LÀM TRUNG TÂM trong mọi suy nghĩ và hành động của mình. Ngoài ra, các bộ phận thường xuyên trao đổi công việc, chia sẻ những khó khăn, sáng kiến xây dựng nên một tập thể ISMART luôn luôn năng động, thấu hiểu khách hàng, chuyên nghiệp hơn trong từng dự án chúng tôi tham gia.</p>\r\n<p>Với phương châm “ Hợp tác để cùng thành công cùng phát triển”, và định hướng “Liên tục cải tiến” mang đến cho khách hàng sự thân thiện và tích cực trong các hoạt động, dịch vụ, trách nhiệm của từng cá nhân. ISMART đã luôn nỗ lực cả về nhân lực, vật lực, xây dựng uy tín thương hiệu, niềm tin với khách hàng trong từng sản phẩm chúng tôi cung cấp.</p>\r\n<p>Sự tin tưởng và ủng hộ của khách hàng trong suốt thời gian qua là nguồn động viên to lớn trên bước đường phát triển của ISMART. Chúng tôi xin hứa sẽ không ngừng hoàn thiện, phục vụ khách hàng tốt nhất để luôn xứng đáng với niềm tin ấy.</p>', 'uploads/product/cac-phien-ban.jpg', 6, 1, '1', NULL, '2021-04-09 19:50:26', '2021-04-09 19:51:09');
-- --------------------------------------------------------
--
-- Table structure for table `post_cats`
--
CREATE TABLE `post_cats` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `post_cats`
--
INSERT INTO `post_cats` (`id`, `name`, `parent_id`, `created_at`, `updated_at`) VALUES
(1, 'Công Nghệ', 0, '2021-03-17 23:55:18', '2021-03-18 00:16:18'),
(3, 'Sản phẩm mơi', 1, '2021-03-19 00:15:44', '2021-03-19 00:15:44');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci NOT NULL,
`price` int(11) NOT NULL DEFAULT 0,
`price_old` int(11) DEFAULT NULL,
`product_desc` text CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci DEFAULT NULL,
`product_detail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci NOT NULL,
`thumbnail` text CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci DEFAULT NULL,
`status` enum('0','1','2') CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci NOT NULL,
`selling_products` enum('0','1') COLLATE utf8mb4_unicode_ci NOT NULL,
`product_cat` bigint(20) UNSIGNED NOT NULL DEFAULT 0,
`user_id` bigint(20) UNSIGNED NOT NULL,
`cat_id` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `name`, `price`, `price_old`, `product_desc`, `product_detail`, `thumbnail`, `status`, `selling_products`, `product_cat`, `user_id`, `cat_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(3, 'IPhone 12 64GB', 21990000, 24990000, '<p>Apple đã trang bị con chip mới nhất của hãng (tính đến 11/2020) cho iPhone 12 đó là <a title=\"Tìm hiểu chip A14 Bionic là gì?\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-chip-apple-a14-bionic-tren-iphone-12-va-ipad-1290695\" target=\"_blank\" rel=\"noopener\">A14 Bionic</a>, được sản xuất trên tiến trình 5 nm với hiệu suất ổn định hơn so với chip A13 được trang bị trên phiên bản tiền nhiệm</p>', '<h3>Hiệu năng vượt xa mọi giới hạn</h3>\r\n<p>Apple đã trang bị con chip mới nhất của hãng (tính đến 11/2020) cho iPhone 12 đó là <a title=\"Tìm hiểu chip A14 Bionic là gì?\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-chip-apple-a14-bionic-tren-iphone-12-va-ipad-1290695\" target=\"_blank\" rel=\"noopener\">A14 Bionic</a>, được sản xuất trên tiến trình 5 nm với hiệu suất ổn định hơn so với chip A13 được trang bị trên phiên bản tiền nhiệm <a title=\"Tham khảo điện thoại iPhone 11 chính hãng tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd/iphone-11\" target=\"_blank\" rel=\"noopener\">iPhone 11</a>.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/213031/iphone-12-144220-044259.jpg\"><img class=\"lazy\" title=\"Chip A14 Bionic mạnh mẽ | iPhone 12\" src=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-144220-044259.jpg\" alt=\"Chip A14 Bionic mạnh mẽ | iPhone 12\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-144220-044259.jpg\" /></a></p>\r\n<p>Xem thêm: <a title=\"Tìm hiểu về chip Apple A14 Bionic trên iPhone 12 và iPad Air 2020\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-chip-apple-a14-bionic-tren-iphone-12-va-ipad-1290695\" target=\"_blank\" rel=\"noopener\">Tìm hiểu về chip Apple A14 Bionic trên iPhone 12 và iPad Air 2020</a></p>\r\n<p>Với CPU Apple A14 Bionic, bạn có thể dễ dàng trải nghiệm mọi tựa game với những pha chuyển cảnh mượt mà hay hàng loạt hiệu ứng đồ họa tuyệt đẹp ở mức đồ họa cao mà không lo tình trạng giật lag.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/213031/iphone-12-18.jpg\"><img class=\"lazy\" title=\"Chiến game siêu mượt, đồ họa tuyệt đẹp | iPhone 12\" src=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-18.jpg\" alt=\"Chiến game siêu mượt, đồ họa tuyệt đẹp | iPhone 12\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-18.jpg\" /></a></p>\r\n<p>Chưa hết, Apple còn gây bất ngờ đến người dùng với hệ thống 5G lần đầu tiên được trang bị trên những chiếc <a title=\"Tham khảo iPhone kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-apple-iphone\" target=\"_blank\" rel=\"noopener\">iPhone</a>, cho tốc độ truyền tải dữ liệu nhanh hơn, ổn định hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/213031/iphone-12-20.jpg\"><img class=\"lazy\" title=\"Kết nối 5G truyền tải dữ liệu nhanh chóng | iPhone 12\" src=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-20.jpg\" alt=\"Kết nối 5G truyền tải dữ liệu nhanh chóng | iPhone 12\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-20.jpg\" /></a></p>\r\n<p>iPhone 12 sẽ chạy trên hệ điều hành <a title=\"Tìm hiểu thêm những tính năng trên iOS 14\" href=\"https://www.thegioididong.com/hoi-dap/ios-14-va-5-tinh-nang-moi-thu-vi-khong-the-bo-qua-tren-1268933\" target=\"_blank\" rel=\"noopener\">iOS 14</a> với nhiều tính năng hấp dẫn như hỗ trợ Widget cũng như những nâng cấp tối ưu phần mềm đáng kể mang lại những trải nghiệm thú vị mới lạ đến người dùng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/213031/iphone-12-13.jpg\"><img class=\"lazy\" title=\"Khám phá những tính năng mới hấp dẫn trên iOS 14 | iPhone 12\" src=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-13.jpg\" alt=\"Khám phá những tính năng mới hấp dẫn trên iOS 14 | iPhone 12\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-13.jpg\" /></a></p>\r\n<h3>Cụm camera không ngừng cải tiến</h3>\r\n<p>iPhone 12 được trang bị hệ thống camera kép bao gồm <a title=\"Tham khảo điện thoại có camera góc rộng tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd-camera-goc-rong\" target=\"_blank\" rel=\"noopener\">camera góc rộng</a> và camera siêu rộng có cùng độ phân giải là 12 MP, chế độ ban đêm (<a title=\"Tìm hiểu chế độ chụp đêm Night Mode là gì?\" href=\"https://www.thegioididong.com/hoi-dap/che-do-chup-dem-night-mode-la-gi-907873\" target=\"_blank\" rel=\"noopener\">Night Mode</a>) trên bộ đôi camera này cũng đã được nâng cấp về phần cứng lẫn thuật toán xử lý, khi chụp những bức ảnh thiếu sáng bạn sẽ nhận được kết quả ấn tượng với màu sắc, độ chi tiết rõ nét đáng kinh ngạc.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/213031/iphone-12-040321-030344.jpg\"><img class=\"lazy\" title=\"Cụm camera sau| iPhone 12\" src=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-040321-030344.jpg\" alt=\"Cụm camera sau| iPhone 12\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/213031/iphone-12-040321-030344.jpg\" /></a></p>\r\n<p>Bạn có thể khám phá thêm những tính năng của camera trên iPhone 12 như chế độ smart HDR 3 giúp cân bằng yếu tố ánh sáng trong ảnh, làm nổi bật chi tiết đối tượng và cây cối trong khi vẫn giữ được màu sắc phong phú của bầu trời ngay cả vào buổi trưa nắng gắt.</p>', 'uploads/product/iphone-12-xanh-duong-new-600x600-600x600.jpg', '0', '1', 13, 1, 2, NULL, '2021-03-13 21:15:07', '2021-03-29 08:33:12'),
(8, 'IPhone 12 mini 64GB', 17790000, 19000000, '<h2><a href=\"https://www.thegioididong.com/dtdd/iphone-12-mini\">iPhone 12 Mini 64 GB</a> tuy là phiên bản thấp nhất trong bộ 4 <a href=\"https://www.thegioididong.com/dtdd/iphone-12\">iPhone 12</a> vừa mới được ra mắt cách đây không lâu, nhưng vẫn sở hữu những ưu điểm vượt trội về kích thước nhỏ gọn, tiện lợi, hiệu năng đỉnh cao, tính năng sạc nhanh cùng bộ camera chất lượng cao.</h2>', '<h3 dir=\"ltr\">Thiết kế sang trọng, cao cấp</h3>\r\n<p dir=\"ltr\">Điểm nhấn đầu tiên phải kể đến ở dòng máy này chính là viền máy không còn được thiết kế bo cong các cạnh, mà thay vào đó là phần cạnh máy được vát phẳng vô cùng mạnh mẽ và cá tính.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/225380/iphone-12-mini-055121-085135.jpg\"><img class=\"lazy\" title=\"iPhone 12 Mini 64 GB | Thiết kế sang trọng, tỉ mỉ\" src=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055121-085135.jpg\" alt=\"iPhone 12 Mini 64 GB | Thiết kế sang trọng, tỉ mỉ\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055121-085135.jpg\" /></a></p>\r\n<p dir=\"ltr\">Lần đầu tiên <a title=\"Tham khảo thêm các dòng sản phẩm Apple\" href=\"https://www.thegioididong.com/apple\" target=\"_blank\" rel=\"noopener\">Apple</a> sử dụng khung nhôm cao cấp trong ngành hàng không vũ trụ trên iPhone 12 Mini đem đến cho người dùng thiết kế cứng cáp nhưng trọng lượng không quá nặng.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/225380/iphone-12-mini-050121-090102.jpg\"><img class=\"lazy\" title=\"iPhone 12 Mini 64GB | Khung nhôm cao cấp từ ngành hàng không\" src=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-050121-090102.jpg\" alt=\"iPhone 12 Mini 64GB | Khung nhôm cao cấp từ ngành hàng không\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-050121-090102.jpg\" /></a></p>\r\n<p dir=\"ltr\">Máy nổi bật với hệ thống camera hình vuông độc đáo, kết hợp cùng mặt lưng bằng kính bóng bẩy cho cảm giác cầm nắm vô cùng thích.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/225380/iphone-12-mini-064320-074303.jpg\"><img class=\"lazy\" title=\"iPhone 12 Mini 64GB | Mặt lưng bóng bẩy, nhiều màu sắc chọn lựa\" src=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-064320-074303.jpg\" alt=\"iPhone 12 Mini 64GB | Mặt lưng bóng bẩy, nhiều màu sắc chọn lựa\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-064320-074303.jpg\" /></a></p>\r\n<p dir=\"ltr\">Ngoài ra, iPhone 12 Mini cũng đem tới cho người dùng nhiều màu sắc cho bạn tha hồ lựa chọn. Đặc biệt, Apple vừa bổ sung màu xanh dương vốn tươi tắn nhẹ nhàng nổi bật để lôi kéo sự chú ý, là một sự lựa chọn mới mẻ ấn tượng ngay từ cái nhìn đầu tiên. </p>\r\n<h3 dir=\"ltr\">Màn hình OLED Super Retina XDR siêu sắc nét</h3>\r\n<p dir=\"ltr\">Phía trước vẫn là màn hình kiểu dáng tai thỏ quen thuộc, với phần viền màn hình được tinh gọn hơn một cách đáng kể mang đến cảm giác màn hình lớn hơn dù iPhone 12 Mini có kích cỡ màn hình chỉ 5.4 inch.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/225380/iphone-12-mini-055121-085143.jpg\"><img class=\"lazy\" title=\"iPhone 12 Mini 64GB | Màn hình tinh gọn kiểu dáng tai thỏ quen thuộc\" src=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055121-085143.jpg\" alt=\"iPhone 12 Mini 64GB | Màn hình tinh gọn kiểu dáng tai thỏ quen thuộc\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055121-085143.jpg\" /></a></p>\r\n<p dir=\"ltr\">Màn hình kích cỡ 5.4 inch là điểm thuận lợi bởi máy khá nhỏ gọn, có thể dễ dàng đặt trong túi áo, quần hơn so với 6.1 inch trên điện thoại <a title=\"Tham khảo giá điện thoại iPhone 12 Pro chính hãng\" href=\"https://www.thegioididong.com/dtdd/iphone-12-pro\" target=\"_blank\" rel=\"noopener\">iPhone 12 Pro</a> hay 6.7 inch trên <a title=\"Tham khảo giá điện thoại iPhone 12 Pro Max chính hãng\" href=\"https://www.thegioididong.com/dtdd/iphone-12-pro-max\" target=\"_blank\" rel=\"noopener\">iPhone 12 Pro Max</a>.</p>\r\n<p dir=\"ltr\">Màn hình của iPhone 12 Mini sử dụng tấm OLED Super Retina XDR tràn viền có độ phân giải Full HD+ (1080 x 2340 Pixels), từng chi tiết chuyển động trên màn hình đều hiện lên rõ nét, tươi sáng và không gặp phải tình trạng nhòe màu sắc được thể hiện trọn vẹn hơn bao giờ hết.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/225380/iphone-12-mini-055321-085321.jpg\"><img class=\"lazy\" title=\"iPhone 12 Mini 64GB | Màn hình OLED Super Retina XDR tràn viền độ phân giải 1080 x 2340 Pixels\" src=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055321-085321.jpg\" alt=\"iPhone 12 Mini 64GB | Màn hình OLED Super Retina XDR tràn viền độ phân giải 1080 x 2340 Pixels\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/225380/iphone-12-mini-055321-085321.jpg\" /></a></p>\r\n<p dir=\"ltr\">Hơn nữa, Apple còn trang bị mặt kính Ceramic Shield vật liệu kết hợp giữa thủy tinh và gốm cao cấp với khả năng chịu va đập gấp 4 lần so với các đời trước, bảo vệ máy một cách tối đa, cùng với đó là khả năng <a title=\"Tham khảo điện thoại chống nước, chống bụi tại Thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-chong-nuoc-bui\" target=\"_blank\" rel=\"noopener\">kháng nước</a> chuẩn IP68.</p>', 'uploads/product/iphone-mini-do-new-600x600-600x600.jpg', '2', '1', 13, 1, 2, NULL, '2021-03-15 01:04:53', '2021-03-29 08:32:59'),
(10, 'dấddsadsa', 22900000, NULL, '<p>dsaadadsdas</p>', '<p>dấdsaadsdsa</p>', 'uploads/product/iphone-12-pro-max-vang.jpg', '1', '0', 5, 1, 3, '2021-03-17 09:38:08', '2021-03-17 01:05:25', '2021-03-17 09:38:08'),
(14, 'IPhone SE 128GB 2020', 12490000, 14490000, '<p> Mạnh mẽ</p>', '<p>manh mẽ chưa từng có</p>', 'uploads/product/iphone-se-128gb-2020-den-600x600.jpg', '2', '0', 13, 1, 2, NULL, '2021-03-26 23:50:05', '2021-04-10 21:19:32'),
(16, 'Laptop HP 348 G7 i5', 15000000, 19500000, '<div>CPU: 10th Gen Intel® Core™ i5 1035G1 Processor (6MB Cache, up to 3.6 GHz)</div>\r\n<div>RAM: 8GB DDR4 SDRAM 3200Mhz Max 32GB</div>\r\n<div>Đĩa cứng: M.2 PCIe NVMe Solid State Drive (M.2 SSD) 256GB</div>\r\n<div>Màn hình: Cảm ứng đa điểm IPS, micro-edge, WLED-backlit, multitouch-enabled, edge-to-edge glass, 250 nits, 45% NTSC 14 inch 1920 x 1080 ( Full HD )</div>\r\n<div>Card đồ họa: Share Intel® UHD Graphics</div>\r\n<div>Audio</div>\r\n<div>Audio:Intel® HD Audio</div>\r\n<div>Speaker:2 stereo speaker</div>\r\n<div>Giao tiếp</div>\r\n<div>Kết nối mạng:Intel® Wi-Fi 6™ AX201 802.11AX (2 x 2)</div>\r\n<div>Bluetooth:Bluetooth 5.0</div>\r\n<div>HDMI:1x cổng</div>', '<div>Laptop HP PAVILION 14-2in1 DW 0023DX có thể sử dụng linh hoạt với nhiều chế độ, thiết kế mỏng nhẹ để bạn dễ dàng mang đi bất cứ đâu. Chính vì thế thời lượng pin dài sẽ là điều kiện cần cho tính di động của laptop thêm hoàn hảo. HP Pavilion x360 14 dw0061TU sở hữu thời lượng pin lên tới 11 tiếng 30 phút, thoải mái cho bạn hoạt động cả ngày dài ở ngoài trời mà không cần đến nguồn sạc.</div>\r\n<div> </div>\r\n<div>Chiếc laptop lai 4 trong 1, thỏa sức sáng tạo</div>\r\n<div> </div>\r\n<div>Laptop HP PAVILION 14-2in1 DW 0023DX sở hữu màn hình cảm ứng cùng khả năng xoay lật 360 độ, nhờ thế bạn có thể sử dụng linh hoạt thay vì chỉ mỗi chế độ máy tính xách tay thông thường. Màn hình cảm ứng cho phép bạn thao tác trực tiếp lên màn hình như một chiếc máy tính bảng, thậm chí sử dụng bút cảm ứng để viết vẽ, tự do sáng tạo.</div>\r\n<div> </div>\r\n<div>Ngoài ra bạn còn có thể xoay ngược máy để xem phim, hoặc gập chéo theo dạng lều để trình chiếu. Dù là công việc hay giải trí, khả năng xoay gập của HP x360 14 cũng giúp bạn có được trải nghiệm dễ dàng hơn.</div>\r\n<div> </div>\r\n<div>Chất lượng hiển thị tuyệt vời, cảm ứng siêu nhạy</div>\r\n<div> </div>\r\n<div>Ngoài việc hỗ trợ cảm ứng đa điểm, cho phép tương tác trực tiếp lên màn hình, màn hình Laptop HP PAVILION 14-2in1 DW 0023DX còn có chất lượng hiển thị tuyệt vời. Thiết kế 3 cạnh siêu mỏng giúp hình ảnh nổi bật hơn trước mắt bạn. Trong khi đó độ phân giải Full HD sắc nét cùng tấm nền chống chói cho màn hình đẹp ở mọi góc nhìn, sẵn sàng cho mọi nội dung dù là hình ảnh, văn bản hay video.</div>', 'uploads/product/Laptop1.jpg', '1', '0', 16, 1, 3, NULL, '2021-03-28 09:24:39', '2021-03-28 09:30:08'),
(17, 'SamSung A52 128GB', 9290000, 12900000, '<p>6.5\", Chip Snapdragon 720G</p>\r\n<p>RAM 8 GB, ROM 256 GB</p>\r\n<p>Camera sau: Chính 64 MP Phụ 12 MP, 5 MP, 5 MP</p>\r\n<p>Camera trước: 32 MP</p>\r\n<p>Pin 4500 mAh, Sạc nhanh</p>', '<h3>Thiết kế đặc trưng dòng Galaxy A</h3>\r\n<p>Chiếc <a title=\"Tham khảo các sản phẩm điện thoại tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\">điện thoại</a> sở hữu màn hình Infinity-O đầy hiện đại, 4 máy ảnh mặt sau được sắp xếp gọn gàng bên trong mô-đun hình chữ nhật thân thuộc và các cạnh viền bo cong nhẹ nhàng, uyển chuyển quanh thân máy, tạo cảm giác dễ chịu khi cầm nắm sử dụng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/236085/amsung-galaxy-a52-02.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A52 | Thiết kế mặt sau\" src=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-02.jpg\" alt=\"Samsung Galaxy A52 | Thiết kế mặt sau\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-02.jpg\" /></a></p>\r\n<p>Series Samsung Galaxy A lần này đã được Samsung thiết kế cho bộ màu sắc cực kỳ tinh tế là: Màu xanh, tím, đen và trắng. Bạn có thể hóa thân đầy năng động, nhẹ nhàng, lịch lãm hay sang trọng một cách đa dạng bằng cách lựa chọn cho mình một trong những màu sắc ưng ý nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/236085/amsung-galaxy-a52-13.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A52 | Đạt chuẩn kháng nước IP67\" src=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-13.jpg\" alt=\"Samsung Galaxy A52 | Đạt chuẩn kháng nước IP67\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-13.jpg\" /></a></p>\r\n<p>Smartphone bền bỉ theo thời gian khi trang bị mặt kính cường lực rắn chắc, bảo vệ máy khỏi các va đập, trầy xước. Ngoài ra, người dùng có thể thoải mái tham gia một số hoạt động có liên quan tới nước dưới độ sâu 1 mét khoảng 30 phút trong sự bảo vệ của chuẩn kháng nước và bụi IP67.</p>\r\n<h3>Hiển thị sắc nét sắc, sống động</h3>\r\n<p>Tấm nền <a title=\"Màn hình Super AMOLED là gì?\" href=\"https://www.thegioididong.com/hoi-dap/man-hinh-super-amoled-la-gi-905770\" target=\"_blank\" rel=\"noopener\">Super AMOLED</a> độ phân giải <a title=\"Độ phân giải màn hình qHD, HD, FullHD, 2K, 4K là gì?\" href=\"https://www.thegioididong.com/tin-tuc/do-phan-giai-man-hinh-qhd-hd-fullhd-2k-4k-la-gi--592178#fullhd\" target=\"_blank\" rel=\"noopener\">Full HD+</a> được trang bị trên Galaxy A52 có khả năng tiết kiệm điện, cung cấp hình ảnh với màu sắc rực rỡ, độ tương phản màu sắc cao sẽ mang đến cho bạn những phút giây giải trí đúng chất, khiến bạn chìm đắm bất tận bằng các công nghệ tiên tiến nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/236085/amsung-galaxy-a52-01.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A52 | Tấm nền Super AMOLED cho sắc màu rực rỡ\" src=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-01.jpg\" alt=\"Samsung Galaxy A52 | Tấm nền Super AMOLED cho sắc màu rực rỡ\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-01.jpg\" /></a></p>\r\n<p>Để có những trải nghiệm tuyệt vời thì ngoài khả năng hiển thị hình ảnh đẹp ra còn phải có một không gian lớn, Galaxy A52 sở hữu màn hình có kích thước 6.5 inch khá rộng rãi cho người dùng những trải nghiệm bắt mắt, rõ ràng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/236085/amsung-galaxy-a52-08.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A52 | Hỗ trợ tần số quét cao 90 Hz\" src=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-08.jpg\" alt=\"Samsung Galaxy A52 | Hỗ trợ tần số quét cao 90 Hz\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-08.jpg\" /></a></p>\r\n<p>Tần số quét của A52 cũng đã được nâng lên 90 Hz, giúp cho những chuyển động được mượt mà hơn, giờ đây bạn chỉ cần chạm nhẹ và Galaxy A52 lướt uyển chuyển theo tay bạn.</p>\r\n<h3>Hiệu năng mạnh mẽ với con chip chuyên game</h3>\r\n<p>Galaxy A52 mang trong mình con chip <a title=\"Khám phá Snapdragon 720G, vi xử lý chuyên game cho smartphone\" href=\"https://www.thegioididong.com/hoi-dap/snapdragon-720g-1246562\" target=\"_blank\" rel=\"noopener\">Snapdragon 720G 8 nhân</a> sản xuất dựa trên quy trình 8 nm, chipset được cải tiến các thông số cao cấp, để so sánh thì Snapdragon 720G sẽ là mạnh hơn Exynos 9611 ở phiên bản tiền nhiệm cả CPU lẫn GPU. Hiệu năng sức mạnh, mượt mà của chiếc điện thoại là điều mà không một người dùng chuyên hoạt động gaming nào có thể bỏ qua.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/236085/amsung-galaxy-a52-14.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A52 | Trang bị chip Snapdragon 720G\" src=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-14.jpg\" alt=\"Samsung Galaxy A52 | Trang bị chip Snapdragon 720G\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/236085/amsung-galaxy-a52-14.jpg\" /></a></p>\r\n<p>Là một trong những dòng chip chuyên game, Snapdragon 720G có khả năng xử lý đồ họa trơn tru, đi kèm các tính năng Elite Gaming của Qualcomm như HDR gaming,... Tốc độ xử lý đạt 2.3 GHz, mọi thứ đều hoàn hảo cho một gaming chính hiệu tự tin thể hiện.</p>', 'uploads/product/samsung2.jpg', '2', '1', 18, 1, 2, NULL, '2021-03-29 08:09:29', '2021-04-10 21:24:28'),
(18, 'IPhone 11 256GB', 21990000, 22990000, '<p>6.1\", Chip Apple A13 Bionic</p>\r\n<p>RAM 4 GB, ROM 256 GB</p>\r\n<p>Camera sau: 2 camera 12 MP</p>\r\n<p>Camera trước: 12 MP</p>\r\n<p>Pin 3110 mAh, Sạc nhanh</p>', '<h2><a title=\"Tham khảo iPhone 11 256GB chính hãng\" href=\"https://www.thegioididong.com/dtdd/iphone-11-256gb\" target=\"_blank\" rel=\"noopener\">iPhone 11 256GB</a> là chiếc máy có mức giá \"dễ chịu\" trong bộ 3 <a title=\"Tham khảo giá điện thoại smartphone iPhone chính hãng\" href=\"https://www.thegioididong.com/dtdd-apple-iphone\" target=\"_blank\" rel=\"noopener\">iPhone</a> vừa được Apple giới thiệu và nếu bạn muốn được trải nghiệm những nâng cấp về camera mới hay hiệu năng hàng đầu mà lại không muốn bỏ ra quá nhiều tiền thì đây thực sự là lựa chọn hàng đầu dành cho bạn.</h2>\r\n<h3>Hiệu năng vẫn tương đương phiên bản Pro Max</h3>\r\n<p>Mặc dù có mức giá rẻ hơn nhưng không vì vậy mà iPhone 11 bị cắt giảm đi về mặt cấu hình.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd9-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Hiệu năng mạnh mẽ\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd9-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Hiệu năng mạnh mẽ\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd9-1.jpg\" /></a></p>\r\n<p>Máy vẫn sẽ sở hữu cho mình con chip <a title=\"Tìm hiểu về chip Apple A13 Bionic\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-chip-apple-a13-bionic-tren-iphone-11-n-1197492\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu về chip Apple A13 Bionic\">Apple A13 Bionic</a> mạnh mẽ cùng 4 GB RAM tương đương với người anh em đắt tiền <a title=\"Tham khảo điện thoại iPhone 11 Pro Max 64GB chính hãng\" href=\"https://www.thegioididong.com/dtdd/iphone-11-pro-max\" target=\"_blank\" rel=\"noopener\">iPhone 11 Pro Max</a>.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd4.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Trải nghiệm chơi game trên iPhone 11\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd4.jpg\" alt=\"Điện thoại iPhone 11 256GB | Trải nghiệm chơi game trên iPhone 11\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd4.jpg\" /></a></p>\r\n<p>Phiên bản này sẽ có bộ nhớ lên tới 256 GB thoải mái cho bạn cài đặt game ứng dụng hay lưu trữ video độ phân giải cao.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd44.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Trải nghiệm chơi game trên iPhone 11\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd44.jpg\" alt=\"Điện thoại iPhone 11 256GB | Trải nghiệm chơi game trên iPhone 11\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd44.jpg\" /></a></p>\r\n<p>Hiệu năng của những chiếc iPhone luôn được đánh giá rất cao và hiện tại để tìm được một đối thủ có thể đánh bại iPhone 11 256GB là điều không hề dễ dàng chút nào.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd6-2.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Điểm hiệu năng Antutu Benchmark\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd6-2.jpg\" alt=\"Điện thoại iPhone 11 256GB | Điểm hiệu năng Antutu Benchmark\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd6-2.jpg\" /></a></p>\r\n<p>Trong sự kiện ra mắt sản phẩm, Apple đã cho biết Apple A13 là CPU nhanh nhất trên giới <a title=\"Tham khảo giá điện thoại smartphone chính hãng\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\">smartphone</a> hiện nay và bạn sẽ cảm thấy rất hài lòng với nó.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd40.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Giao diện chụp ảnh\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd40.jpg\" alt=\"Điện thoại iPhone 11 256GB | Giao diện chụp ảnh\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd40.jpg\" /></a></p>\r\n<p>Với việc trang bị con chip mạnh đến vậy hoàn toàn dễ dàng giúp <a title=\"Tham khảo các mẫu điện thoại chơi game tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd-choi-game\" target=\"_blank\" rel=\"noopener\">điện thoại chơi game</a> tốt ở mức cấu hình max setting với mọi tựa game từ nhẹ nhàng như Temple Run hay thậm chí PUBG Mobile và nặng hơn thế thì chiếc iPhone 11 256GB đều đáp ứng một cách rất mượt mà và nhanh chóng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd34.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Giao diện màn hình chính\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd34.jpg\" alt=\"Điện thoại iPhone 11 256GB | Giao diện màn hình chính\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd34.jpg\" /></a></p>\r\n<p><em>iOS 13 mới</em></p>\r\n<p>iPhone 11 256GB chạy sẵn phiên bản <a title=\"Tìm hiểu những tính năng mới trên iOS 13\" href=\"https://www.thegioididong.com/hoi-dap/tat-ca-nhung-tinh-nang-moi-duoc-cap-nhat-tren-ios-1171206\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu những tính năng mới trên iOS 13\">iOS 13</a> mới được Apple tối ưu hiệu và giật lag sẽ là điều mà bạn khó có thể bắt gặp.</p>\r\n<h3>Camera cải tiến lớn</h3>\r\n<p>So với <a title=\"Tham khảo điện thoại iPhone Xr chính hãng\" href=\"https://www.thegioididong.com/dtdd/iphone-xr-128gb\" target=\"_blank\" rel=\"noopener\">iPhone Xr</a> năm ngoái thì iPhone 11 năm nay thực sự là một \"cuộc cách mạng của Appe\" về camera.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd4-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Cụm camera kép ở mặt sau\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd4-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Cụm camera kép ở mặt sau\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd4-1.jpg\" /></a></p>\r\n<p>Chúng ta sẽ có thêm một ống kính góc siêu rộng mới cũng với độ phân giải 12 MP và thêm nhiều chế độ chụp ảnh mới cho bạn khám phá.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd9-2.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh chụp bằng camera sau\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd9-2.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh chụp bằng camera sau\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd9-2.jpg\" /></a></p>\r\n<p><em>Ảnh chụp với camera sau</em></p>\r\n<p>Đầu tiên là chế độ chụp ảnh góc siêu rộng, đây sẽ là lần đầu tiên 1 chiếc iPhone có thể chụp những toàn nhà cao tầng đầy đủ chi tiết một cách đơn giản mà không cần di chuyển ra xa.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd12-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh chụp đủ sáng\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd12-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh chụp đủ sáng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd12-1.jpg\" /></a></p>\r\n<p><em>Ảnh chụp góc thông thường</em></p>\r\n<p>Với sự trợ giúp của camera thứ 2 thì iPhone 11 cũng đã có thể chụp xóa phông với vật thể, điều mà nhiều người cảm thấy thiếu sót trên chiếc iPhone Xr.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd13-2.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh chụp bằng camera sau\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd13-2.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh chụp bằng camera sau\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd13-2.jpg\" /></a></p>\r\n<p><em>Ảnh chụp góc siêu rộng bằng camera sau</em></p>\r\n<p>Tuy nhiên, chế độ chụp đêm mới chính là điểm nhấn trên camera của bộ 3 iPhone năm nay.</p>\r\n<p>Khi chụp ảnh trong môi trường thiếu sáng iPhone 11 sẽ tự động kích hoạt chế độ Night Mode và bạn sẽ nhận thấy sự khác biệt ngay tức thì.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd10-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh chụp có chế độ Night Mode\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd10-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh chụp có chế độ Night Mode\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd10-1.jpg\" /></a></p>\r\n<p><em>Ảnh chụp có chế độ Night Mode</em></p>\r\n<p>Ảnh chụp ra có độ sáng cao và ít nhiều hơn hẳn, thậm chí nhiều trường hợp ảnh còn sáng hơn so với mắt thường bạn có thể quan sát.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd11-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh chụp điều kiện đủ sáng\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd11-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh chụp điều kiện đủ sáng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd11-1.jpg\" /></a></p>\r\n<p><em>Ảnh chụp điều kiện đủ sáng</em></p>\r\n<p>Camera selfie cũng được cải tiến và đã được nâng cấp lên độ phân giải 12 MP, tạo điều kiện cho các bức ảnh góc rộng hơn khi bạn xoay điện thoại sang ngang.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd8-2.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Ảnh selfie bằng camera trước\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd8-2.jpg\" alt=\"Điện thoại iPhone 11 256GB | Ảnh selfie bằng camera trước\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd8-2.jpg\" /></a></p>\r\n<p><em>Ảnh chụp selfie trên iPhone 11</em></p>\r\n<p>Ngoài ra thì bạn cũng có thể chụp ảnh selfie ở chế độ chuyển động chậm (mà Apple đang gọi với định nghĩa mới là Slofies).</p>\r\n<h3>Màu sắc mới, thiết kế đẹp hơn</h3>\r\n<p>Nếu bạn là người dùng ưa thích những màu sắc nổi bật, thể hiện được cá tính riêng của bản thân thì chiếc iPhone này là dành cho bạn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd41.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thiết kế nhiều màu sắc\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd41.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thiết kế nhiều màu sắc\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd41.jpg\" /></a></p>\r\n<p>Chúng ta sẽ có màu sắc mới như màu tím mộng mơ hay màu xanh tươi mát rất thu hút người nhìn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd6-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thiết kế camera kép thời thượng\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd6-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thiết kế camera kép thời thượng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd6-1.jpg\" /></a></p>\r\n<p>Không chỉ có màu sắc mới mà chúng ta cũng sẽ có một mặt lưng bằng kính bền hơn, khả năng <a title=\"Tham khảo giá điện thoại smartphone chống nước chống bụi\" href=\"https://www.thegioididong.com/dtdd-chong-nuoc-bui\" target=\"_blank\" rel=\"noopener\">chống nước</a> tốt hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd5-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thiết kế cạnh viền\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd5-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thiết kế cạnh viền\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd5-1.jpg\" /></a></p>\r\n<p>iPhone 11 năm nay cũng rất dễ để nhận ra khi nó được thiết kế cụm camera hình vuông to bản ở mặt sau, ít lồi hơn và \"không thể nhầm\" lẫn đi đâu được.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd3-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thiết kế hiện đại\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd3-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thiết kế hiện đại\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd3-1.jpg\" /></a></p>\r\n<p>Máy vẫn sở hữu màn hình kích thước 6.1 inch và công nghệ màn hình True-Tone, giúp điều chỉnh độ sáng màn hình phù hợp.</p>\r\n<h3>Thời lượng pin đã tốt nay còn tốt hơn</h3>\r\n<p>iPhone Xr năm ngoái đã làm người dùng rất hài lòng về thời lượng pin thì tin vui là iPhone 11 thậm chí còn làm tốt hơn thế.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd45.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thời lượng pin\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd45.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thời lượng pin\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd45.jpg\" /></a></p>\r\n<p>Theo công bố của Apple thì chiếc iPhone này cho thời gian sử dụng nhiều hơn 1 tiếng so với iPhone Xr trước đó.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd2-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Giao diện màn hình chính\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd2-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Giao diện màn hình chính\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd2-1.jpg\" /></a></p>\r\n<p>Vì vậy mà bạn hoàn toàn có thể sử dụng chiếc máy này từ sáng sớm đến tối khuya mà không cần phải lo lắng về mức dung lượng pin còn lại.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd39.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Thời lượng pin\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd39.jpg\" alt=\"Điện thoại iPhone 11 256GB | Thời lượng pin\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd39.jpg\" /></a></p>\r\n<p>Hơn thế nữa, với chiếc <a title=\"Tham khảo điện thoại pin trâu kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-pin-khung\" target=\"_blank\" rel=\"noopener\">điện thoại pin trâu</a> này nếu nhu cầu của bạn không quá cao thì chiếc máy này còn có thể cho thời gian sử dụng qua đến ngày thứ 2.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd39-1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Giao diện Dark Mode\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd39-1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Giao diện Dark Mode\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd39-1.jpg\" /></a></p>\r\n<p>Tất nhiên chiếc máy này cũng sẽ hỗ trợ <a title=\"Tham khảo giá điện thoại smartphone sạc pin nhanh\" href=\"https://www.thegioididong.com/dtdd-sac-pin-nhanh\" target=\"_blank\" rel=\"noopener\">sạc nhanh</a> và <a title=\"Tham khảo điện thoại có sạc không dây tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd-sac-khong-day\" target=\"_blank\" rel=\"noopener\">sạc không dây</a> như <a title=\"Tham khảo giá điện thoại iPhone 11 Pro\" href=\"https://www.thegioididong.com/dtdd/iphone-11-pro\" target=\"_blank\" rel=\"noopener\" type=\"Tham khảo giá điện thoại iPhone 11 Pro\">iPhone 11 Pro</a> hay bản Pro Max.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/210648/iphone-11-256gb-tgdd1.jpg\"><img class=\"lazy\" title=\"Điện thoại iPhone 11 256GB | Màn hình Super Retina XDR\" src=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd1.jpg\" alt=\"Điện thoại iPhone 11 256GB | Màn hình Super Retina XDR\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/210648/iphone-11-256gb-tgdd1.jpg\" /></a></p>\r\n<p>Tổng kết lại thì iPhone 11 năm nay thực sự là một chiếc máy rất đáng để sở hữu, và thậm chí nhiều người dùng còn cho rằng đây là chiếc iPhone đáng tiền nhất trong bộ 3 iPhone 2019 của Apple.</p>', 'uploads/product/iphone-11-256gb-black-400x400.jpg', '2', '1', 13, 1, 2, NULL, '2021-04-10 08:58:10', '2021-04-10 08:58:34');
INSERT INTO `products` (`id`, `name`, `price`, `price_old`, `product_desc`, `product_detail`, `thumbnail`, `status`, `selling_products`, `product_cat`, `user_id`, `cat_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(19, 'iPhone XR 128GB', 14490000, 15490000, '<p>6.1\", Chip Apple A12 Bionic</p>\r\n<p>RAM 3 GB, ROM 128 GB</p>\r\n<p>Camera sau: 12 MP</p>\r\n<p>Camera trước: 7 MP</p>\r\n<p>Pin 3110 mAh, Sạc nhanh</p>', '<h2>Được xem là phiên bản <a title=\"Tham khảo các dòng điện thoại iPhone\" href=\"https://www.thegioididong.com/dtdd-apple-iphone\" target=\"_blank\" rel=\"noopener\" type=\"Tham khảo các dòng điện thoại iPhone\">iPhone</a> giá rẻ đầy hoàn hảo, <a title=\"Chi tiết điện thoại iPhone XR 128GB\" href=\"https://www.thegioididong.com/dtdd/iphone-xr-128gb\" target=\"_blank\" rel=\"noopener\" type=\"Chi tiết điện thoại iPhone XR 128GB\">iPhone Xr 128GB</a> khiến người dùng có nhiều sự lựa chọn hơn về màu sắc đa dạng nhưng vẫn sở hữu cấu hình mạnh mẽ và thiết kế sang trọng.</h2>\r\n<h3>Màn hình tràn viền công nghệ LCD - True Tone</h3>\r\n<p>Thay vì sở hữu màn hình OLED truyền thống, chiếc <a title=\"Tham khảo các dòng điện thoại tại Thegioididong.com\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\" type=\"Tham khảo các dòng điện thoại tại Thegioididong.com\">smartphone</a> này sở hữu màn hình LCD.</p>\r\n<p>Bù lại với công nghệ <a title=\"Tìm hiểu công nghệ màn hình True Tone\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-cong-nghe-man-hinh-true-tone-992705\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu công nghệ màn hình True Tone\">True Tone</a> cùng màn hình tràn viền rộng tới 6.1 inch, mọi trải nghiệm trên máy vẫn đem lại sự thích thú và hoàn hảo, như dòng cao cấp khác của Apple.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-1-1.jpg\"><img class=\"lazy\" title=\"Màn hình điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-1-1.jpg\" alt=\"Màn hình điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-1-1.jpg\" /></a></p>\r\n<p>Ngoài ra, Apple cũng giới thiệu rằng, iPhone Xr được trang bị một loại công nghệ mới có tên Liquid Retina. Máy có độ phân giải 1792 x 828 Pixels cùng 1.4 triệu điểm ảnh.</p>\r\n<h3>Mượt mà mọi trải nghiệm nhờ <a title=\"Tìm hiểu chip Apple A12\" href=\"https://www.thegioididong.com/tin-tuc/chi-tiet-chip-apple-a12-bionic-ben-trong-iphone-xs-xs-max-1116982\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu chip Apple A12\">chip Apple A12</a></h3>\r\n<p>Với mỗi lần ra mắt, Apple lại giới thiệu một con chip mới và Apple A12 Bionic là con chip đầu tiên sản xuất với tiến trình 7nm được tích hợp trên iPhone Xr.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-a12.jpg\"><img class=\"lazy\" title=\"Chip A12 trên điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-a12.jpg\" alt=\"Chip A12 trên điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-a12.jpg\" /></a></p>\r\n<p>Apple A12 được tích hợp trí tuệ thông minh nhân tạo, mọi phản hồi trên máy đều nhanh chóng và gần như là ngay lập tức, kể cả khi bạn chơi game hay thao tác bình thường.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-6-1.jpg\"><img class=\"lazy\" title=\"iOS trên điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-6-1.jpg\" alt=\"iOS trên điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-6-1.jpg\" /></a></p>\r\n<p>Hơn nữa với AI trên Apple A12, iPhone Xr có thể ghi nhớ được thao tác hằng ngày của bạn để hoàn thiện và hỗ trợ người dùng tốt hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-14.jpg\"><img class=\"lazy\" title=\"Điểm Antutu Benchmark điện thoại iPhone Xr\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-14.jpg\" alt=\"Điểm Antutu Benchmark điện thoại iPhone Xr\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-14.jpg\" /></a></p>\r\n<p>Thực tế khi chơi game trên iPhone Xr, môi trường và hiệu ứng trong game rất thật. Hơn nữa trên chiếc iPhone còn hỗ trợ thực tế tăng cường: Chơi game thực tế ảo với nhiều người cùng chơi, trải nghiệm cùng 1 môi trường với nhau.</p>\r\n<p>Xem thêm: <a title=\"Đánh giá iPhone Xr\" href=\"https://www.thegioididong.com/tin-tuc/chuyen-gia-reviewer-tren-the-gioi-danh-gia-iphone-xr-1126644\" target=\"_blank\" rel=\"noopener\" type=\"Đánh giá iPhone Xr\">Đánh giá iPhone Xr: Các chuyên gia và reviewer công nghệ nói gì?</a></p>\r\n<h3>Dàn loa cho âm thanh đa chiều</h3>\r\n<p>Trước đây để trải nghiệm tối đa âm thanh thì tai nghe là thiết bị không thể thiếu. Nhưng với iPhone thế hệ mới, công nghệ âm thanh đa chiều từ loa sẽ giúp bạn hoà vào âm nhạc cũng như các bộ phim thú vị hay chơi game hào hứng nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-3-1.jpg\"><img class=\"lazy\" title=\"Cụm loa dưới điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-3-1.jpg\" alt=\"Cụm loa dưới điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-3-1.jpg\" /></a></p>\r\n<h3>Camera với hiệu ứng bokeh cực đẹp</h3>\r\n<p>Nếu ai đó khẳng định chỉ <a title=\"Tìm hiểu về cẩm kép trên điện thoại\" href=\"https://www.thegioididong.com/tin-tuc/camera-kep-la-gi-co-phai-la-xu-huong-tren-smartphone-2017-953888\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu về cẩm kép trên điện thoại\">camera kép</a> mới xoá phông thì đó là một sai lầm. iPhone Xr có khả năng tạo hiệu ứng bokeh tuyệt đỉnh, làm nổi bật chân dung người chụp mà hình ảnh vẫn rất sắc nét, chi tiết.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-12-1.jpg\"><img class=\"lazy\" title=\"Ảnh chụp từ camera điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-12-1.jpg\" alt=\"Ảnh chụp từ camera điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-12-1.jpg\" /></a></p>\r\n<p>iPhone Xr hỗ trợ người chụp ảnh từ cơ bản đến cả nâng cao chuyên nghiệp, đem lại sự hài lòng tối đa.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-9-org-1.jpg\"><img class=\"lazy\" title=\"Ảnh chụp từ camera trước điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-9-org-1.jpg\" alt=\"Ảnh chụp từ camera trước điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-9-org-1.jpg\" /></a></p>\r\n<p>Máy còn có tính năng Smart HDR: Dù bạn chụp ảnh có độ sáng tối khác biệt nhiều nhưng vẫn giữ đc chủ thể.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/191483/iphone-xr-128gb-9-1.jpg\"><img class=\"lazy\" title=\"Ảnh chụp từ camera điện thoại iPhone Xr chính hãng\" src=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-9-1.jpg\" alt=\"Ảnh chụp từ camera điện thoại iPhone Xr chính hãng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/191483/iphone-xr-128gb-9-1.jpg\" /></a></p>\r\n<p>Camera selfie của máy mang công nghệ <a title=\"Tìm hiểu về công nghệ TrueDepth\" href=\"https://www.thegioididong.com/tin-tuc/mot-su-that-bat-ngo-ve-camera-truedepth-tren-iphone-x-1021510\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu về công nghệ TrueDepth\">TrueDepth</a> mới nhất cùng <a title=\"Tìm hiểu về Animoji trên điện thoại Apple\" href=\"https://www.thegioididong.com/tin-tuc/giai-thich-su-khac-nhau-giua-ar-emoji-cua-samsung-va-animoji-cua-apple-1070052\" target=\"_blank\" rel=\"noopener\" type=\"Tìm hiểu về Animoji trên điện thoại Apple\">Animoji</a> thông minh hơn, mọi cảm xúc và biểu cảm của bạn trở nên hoàn hảo và thú vị.</p>', 'uploads/product/iphone-xr-128gb-400x400.jpg', '2', '1', 13, 1, 2, NULL, '2021-04-10 09:06:42', '2021-04-10 21:20:31'),
(20, 'Samsung Galaxy S21 5G', 20990000, 21990000, '<p>6.2\", Chip Exynos 2100</p>\r\n<p>RAM 8 GB, ROM 128 GB</p>\r\n<p>Camera sau: Chính 12 MP Phụ 64 MP, 12 MP</p>\r\n<p>Camera trước: 10 MP</p>\r\n<p>Pin 4000 mAh, Sạc nhanh</p>', '<h3>Đón năm mới rộn ràng cùng với series Galaxy S21 đến từ <a title=\"Tham khảo sản phẩm Samsung kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/samsung\" target=\"_blank\" rel=\"noopener\">Samsung</a>. Phiên bản tiêu chuẩn cho series lần này là <a title=\"Tham khảo điện thoại Galaxy S21 tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd/samsung-galaxy-s21\" target=\"_blank\" rel=\"noopener\">Samsung Galaxy S21 5G</a>, nổi bật với thiết kế tràn viền, cụm camera ấn tượng cho đến hiệu năng mạnh mẽ hàng đầu.</h3>\r\n<h3>“Bộ cánh” mới nổi bật và sang trọng</h3>\r\n<p>Nổi bật với cụm camera sau được thiết kế đầy mới lạ, phần khuôn hình chữ nhật chứa bộ 3 camera ôm trọn cạnh trái của chiếc <a title=\"Tham khảo điện thoại kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\">smartphone</a>, viền khuôn cong uyển chuyển, hạn chế tối đa độ nhô ra so với mặt lưng, mang lại cái nhìn tổng thể hài hòa, độc đáo.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_19.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Thiết kế nổi bật với cụm camera chữ nhật\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_19.jpg\" alt=\"Samsung Galaxy S21 5G | Thiết kế nổi bật với cụm camera chữ nhật\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_19.jpg\" /></a></p>\r\n<p>Galaxy S21 có 3 màu sắc chính là: Tím, bạc và đen. Cho người dùng thoải mái lựa chọn để phù hợp với phong cách của bản thân nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_20.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Với 3 màu sắc chính là: Tím, trắng và xám\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_20.jpg\" alt=\"Samsung Galaxy S21 5G | Với 3 màu sắc chính là: Tím, trắng và xám\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_20.jpg\" /></a></p>\r\n<p>Samsung Galaxy S21 hỗ trợ đầy đủ tính năng bảo mật sinh trắc học, bảo mật tối đa điện thoại của bạn bằng công nghệ <a title=\"Tham khảo sản phẩm điện thoại bảo mật vân tay tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd-bao-mat-van-tay\" target=\"_blank\" rel=\"noopener\">mở khóa vân tay</a> siêu âm đặt dưới màn hình và <a title=\"Tham khảo các sản phẩm điện thoại bảo mật khuôn mặt tại Thế Giới Di Động\" href=\"https://www.thegioididong.com/dtdd-bao-mat-khuon-mat\" target=\"_blank\" rel=\"noopener\">bảo mật khuôn mặt</a>. Kết hợp với tính năng chạm 2 lần sáng màn hình giờ đây bạn có thể bật, mở khóa điện thoại cực kì nhanh chóng, tiện lợi và an toàn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_4.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Trang bị mở khóa vân tay siêu âm đặt dưới màn hình và bảo mật khuôn mặt\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_4.jpg\" alt=\"Samsung Galaxy S21 5G | Trang bị mở khóa vân tay siêu âm đặt dưới màn hình và bảo mật khuôn mặt\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_4.jpg\" /></a></p>\r\n<p>Galaxy S21 là chiếc <a title=\"Tham khảo điện thoại kháng nước, bụi kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-chong-nuoc-bui\" target=\"_blank\" rel=\"noopener\">điện thoại kháng nước, bụi</a> đạt chuẩn IP68, chuẩn cao nhất hiện tại. Máy có thể sống sót ở độ sâu 1.5m lên đến 30 phút, giúp hạn chế được khả năng hư hỏng thiết bị khi bị nước đổ vào, trời mưa hoặc không may làm rơi xuống nước.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_17.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Kháng nước, bụi đạt chuẩn IP68\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_17.jpg\" alt=\"Samsung Galaxy S21 5G | Kháng nước, bụi đạt chuẩn IP68\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_17.jpg\" /></a></p>\r\n<h3>Màn hình vô cực Infinity-O siêu mượt</h3>\r\n<p>Galaxy S21 được trang bị màn hình <a title=\"Tìm hiểu màn hình Dynamic AMOLED 2X trên smartphone\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-man-hinh-dynamic-amoled-2x-tren-smartphone-1245213\" target=\"_blank\" rel=\"noopener\">Dynamic AMOLED 2X</a>, hỗ trợ HDR10+ tiên tiến do Samsung phát triển, có thể đạt được độ sáng cao nhất lên đến 1300 nits, ngay cả khi dưới ánh sáng mặt trời Galaxy S21 vẫn cho hình ảnh sống động, rõ ràng đến không ngờ, sẽ nâng trải nghiệm thị giác của bạn lên một tầm cao mới.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_7.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Trang bị màn hình Dynamic AMOLED 2X, hỗ trợ HDR10+ tiên tiến\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_7.jpg\" alt=\"Samsung Galaxy S21 5G | Trang bị màn hình Dynamic AMOLED 2X, hỗ trợ HDR10+ tiên tiến\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_7.jpg\" /></a></p>\r\n<p>Galaxy S21 sở hữu màn hình kích thước 6.2 inch độ phân giải <a title=\"Độ phân giải màn hình qHD, HD, FullHD, 2K, 4K là gì?\" href=\"https://www.thegioididong.com/tin-tuc/do-phan-giai-man-hinh-qhd-hd-fullhd-2k-4k-la-gi--592178#fullhd\" target=\"_blank\" rel=\"noopener\">Full HD+</a> có tần số quét 120 Hz, gấp đôi so với thế hệ trước. Không chỉ phản hồi cực nhạy, mà màn hình còn tối ưu tần số quét trong mỗi lần bạn thực hiện thao tác chạm, cho mọi thao tác chạm của bạn đều mịn màng, nhanh nhạy và có độ chính xác cao nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/220833/galaxy_s21_5g_11.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy S21 5G | Màn hình kích thước 6.2 inch độ phân giải Full HD+ có tần số quét 120 Hz\" src=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_11.jpg\" alt=\"Samsung Galaxy S21 5G | Màn hình kích thước 6.2 inch độ phân giải Full HD+ có tần số quét 120 Hz\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/220833/galaxy_s21_5g_11.jpg\" /></a></p>\r\n<p>Bên cạnh đó, Galaxy S21 đã nhận được chứng nhận cho dải màu sắc trên di động, 100% phạm vi bao phủ DCI-P3 (chuẩn điện ảnh) cho hình ảnh không bị nhạt màu mà được hiển thị sống động, bất chấp mọi điều kiện ánh sáng.</p>', 'uploads/product/samsung-galaxy-s21-tim-600x600-600x600.jpg', '1', '1', 18, 1, 2, NULL, '2021-04-10 20:11:33', '2021-04-10 20:11:33'),
(21, 'Samsung Galaxy A72', 11490000, 12490000, '<p>6.7\", Chip Snapdragon 720G</p>\r\n<p>RAM 8 GB, ROM 256 GB</p>\r\n<p>Camera sau: Chính 64 MP</p>\r\n<p>Phụ 12 MP, 8 MP, 5 MP</p>\r\n<p>Camera trước: 32 MP</p>\r\n<p>Pin 5000 mAh, Sạc nhanh</p>', '<h3>Sau khi thành công ở phân khúc <a title=\"Tham khảo các sản phẩm điện thoại tại Th<NAME> Di Động\" href=\"https://www.thegioididong.com/dtdd\" target=\"_blank\" rel=\"noopener\">smartphone</a> cao cấp với <a title=\"Tham khảo thông tin Galaxy S21 tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd/samsung-galaxy-s21\" target=\"_blank\" rel=\"noopener\">Galaxy S21</a> series, <a title=\"Tham khảo sản phẩm Samsung chính hãng tại Thegioididong.com \" href=\"https://thegioididong.com/samsung\" target=\"_blank\" rel=\"noopener\">Samsung</a> tiếp tục tấn công phân khúc tầm trung với sự ra mắt của <a title=\"Tham khảo điện thoại Samsung Galaxy A72 chính hãng tại Thegioididong.com \" href=\"https://www.thegioididong.com/dtdd/samsung-galaxy-a72\" target=\"_blank\" rel=\"noopener\">Samsung Galaxy A72</a> thuộc <a title=\"Tham khảo Galaxy A kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-samsung-galaxy-a\" target=\"_blank\" rel=\"noopener\">Galaxy A</a> series, sở hữu nhiều màu sắc trẻ trung, hệ thống camera nhiều tính năng cũng như nâng cấp hiệu năng vô cùng lớn mang đến những trải nghiệm hoàn toàn mới.</h3>\r\n<h3>Thiết kế trẻ trung, thời thượng</h3>\r\n<p>Galaxy A72 cuốn hút người dùng ngay ánh nhìn đầu tiên với đường cong mềm mại, bóng bẩy. Cụm 4 camera sau nằm gọn trong mô-đun hình chữ nhật quen thuộc cùng với đèn LED flash, màu sắc của phần mô-đun và mặt lưng được thiết kế cùng màu giúp cho tổng thể trở nên đồng bộ, hài hòa hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226101/samsung-galaxy-a72-800x533.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A72 | Thiết kế trẻ trung, thời thượng\" src=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533.jpg\" alt=\"Samsung Galaxy A72 | Thiết kế trẻ trung, thời thượng\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533.jpg\" /></a></p>\r\n<p>Galaxy A72 sở hữu nhiều màu sắc trẻ trung để người dùng có thể lựa chọn như: Tím, trắng, xanh dương và đen. Bộ màu lần này của Galaxy A72 nhấn mạnh nét thanh lịch, duyên dáng và không kém phần lịch thiệp, sang trọng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226101/samsung-galaxy-a72-800x533-1.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A72 | Sở hữu nhiều màu sắc trẻ trung\" src=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-1.jpg\" alt=\"Samsung Galaxy A72 | Sở hữu nhiều màu sắc trẻ trung\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-1.jpg\" /></a></p>\r\n<p>Bên cạnh phần tạo hình mảnh mai cho cảm giác cầm nắm thoải mái thì Galaxy A72 lại có sức chống chịu vô cùng bền bỉ, máy có khả năng kháng bụi, nước chuẩn IP67, có thể kháng nước ở độ sâu 1 mét tối đa trong 30 phút. Nhờ vậy bạn có thể yên tâm sử dụng Galaxy A72 trong mọi hoàn cảnh, môi trường.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226101/samsung-galaxy-a72-800x533-2.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A72 | Kháng nước chuẩn IP67\" src=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-2.jpg\" alt=\"Samsung Galaxy A72 | Kháng nước chuẩn IP67\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-2.jpg\" /></a></p>\r\n<h3>Giải trí đa sắc màu trên màn hình tuyệt đỉnh</h3>\r\n<p>Galaxy A72 được trang bị tấm nền Super AMOLED cho màu sắc rực rỡ, có độ tương phản cao và khả năng mở rộng góc nhìn, kết hợp với kích thước 6.7 inch người dùng có thể trải nghiệm những hoạt động giải trí hay làm việc một cách thoải mái nhất.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226101/samsung-galaxy-a72-800x533-3.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A72 | Giải trí đa sắc màu trên màn hình tuyệt đỉnh\" src=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-3.jpg\" alt=\"Samsung Galaxy A72 | Giải trí đa sắc màu trên màn hình tuyệt đỉnh\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-3.jpg\" /></a></p>\r\n<p>Độ phân giải Full HD+ cho trải nghiệm hình ảnh của bạn thêm phần đẹp mắt. Độ sáng tối đa hỗ trợ đến 800 nits, tốc độ làm mới 90 Hz cho những chuyển động, thao tác trên màn hình trở nên mượt mà, uyển chuyển hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226101/samsung-galaxy-a72-800x533-4.jpg\"><img class=\"lazy\" title=\"Samsung Galaxy A72 | Độ sáng tối đa lên đến 800 nits\" src=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-4.jpg\" alt=\"Samsung Galaxy A72 | Độ sáng tối đa lên đến 800 nits\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226101/samsung-galaxy-a72-800x533-4.jpg\" /></a></p>\r\n<p>Màn hình của Galaxy A72 còn có khả năng tối ưu hoá năng lượng sử dụng giúp tiết kiệm pin. Công nghệ Eye Comfort Shield2 giảm thiểu ánh sáng xanh gây hại cho mắt. Bên cạnh đó, để tránh các tác nhân ảnh hưởng đến màn hình như va đập, trầy xước thì Galaxy A72 đã được trang bị kính cường lực hoàn toàn có thể hạn chế được vấn đề trên.</p>', 'uploads/product/samsung-galaxy-a72-thumb-balck-600x600-600x600.jpg', '1', '1', 18, 1, 2, NULL, '2021-04-10 20:21:34', '2021-04-10 20:21:34'),
(22, 'Samsung Galaxy Z Fold2 5G', 50000000, 50990000, '<p>Chính 7.59\" Phụ 6.23\", Chip Snapdragon 865</p>\r\n<p>RAM 12 GB, ROM 256 GB</p>\r\n<p>Camera sau: 3 camera 12 MP</p>\r\n<p>Camera trước: Trong 10 MPNgoài 10 MP</p>\r\n<p>Pin 4500 mAh, Sạc nhanh</p>', '<h3>Thiết kế cải tiến hướng đến sự hoàn thiện</h3>\r\n<p>Samsung Galaxy Z Fold 2 vẫn giữ nguyên cơ chế màn hình gập ở thế hệ tiền nhiệm. Như một quyển sách, chiếc điện thoại mở ra để hiển thị màn hình lớn bên trong. Bên ngoài là một màn hình phụ <a title=\"Tham khảo các mẫu điện thoại màn hình tràn viền tại Thegioididong.com\" href=\"https://www.thegioididong.com/dtdd-man-hinh-tran-vien\" target=\"_blank\" rel=\"noopener\" type=\"Tham khảo các mẫu điện thoại màn hình tràn viền tại Thegioididong.com\">tràn viền</a> với thiết kế đục lỗ. </p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226099/samsung-galaxy-z-fold-2-302920-012935.jpg\"><img class=\"lazy\" title=\"Màn hình gập cao cấp nhất | Galaxy Z Fold 2\" src=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012935.jpg\" alt=\"Màn hình gập cao cấp nhất | Galaxy Z Fold 2\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012935.jpg\" /></a></p>\r\n<p>Những chất liệu cao cấp nhất đã được Samsung ưu ái trang bị lên Galaxy Z Fold 2, khung máy được làm từ nhôm, vuông vức hơn, giúp cho siêu phẩm màn hình gập mới của Samsung có một diện mạo nam tính và sang trọng hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226099/samsung-galaxy-z-fold-2-302920-012942.jpg\"><img class=\"lazy\" title=\"Thiết kế cải tiến, sang trọng hơn | Galaxy Z Fold 2\" src=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012942.jpg\" alt=\"Thiết kế cải tiến, sang trọng hơn | Galaxy Z Fold 2\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012942.jpg\" /></a></p>\r\n<p>Mặt lưng của thiết bị được hoàn thiện từ kính cao cấp, có độ bóng mờ giúp giảm để lại dấu vân tay. Bên cạnh màu đen truyền thống, màu vàng đồng - gam màu mới lần đầu được Samsung giới thiệu trên Galaxy Z Fold 2 cũng rất ấn tượng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226099/samsung-galaxy-z-fold-2-302920-012949.jpg\"><img class=\"lazy\" title=\"Gam màu vàng đồng mới ấn tượng | Galaxy Z Fold 2\" src=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012949.jpg\" alt=\"Gam màu vàng đồng mới ấn tượng | Galaxy Z Fold 2\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012949.jpg\" /></a></p>\r\n<p>Đáng chú ý là phần bản lề trên Galaxy Z Fold 2 đã được Samsung cải tiến giúp cho thao tác gập mở máy trở nên sắc sảo. Giờ đây người dùng có thể mở và sử dụng máy linh hoạt ở nhiều góc độ khác nhau tương tự như mẫu smartphone <a title=\"Tham khảo giá bán điện thoại Samsung Galaxy Z Flip chính hãng tại Thegioididong.com\" href=\"https://www.thegioididong.com/dtdd/samsung-galaxy-z-flip\" target=\"_blank\" rel=\"noopener\" type=\"Tham khảo giá bán điện thoại Samsung Galaxy Z Flip chính hãng tại Thegioididong.com\">Samsung Galaxy Z Flip</a>.</p>\r\n<p>Với độ mỏng chỉ 6.9 mm khi mở ra, gập lại thì máy lại càng gọn gàng hơn, giúp cho việc sử dụng bằng 1 tay trên màn hình phụ trở nên tối ưu hơn.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226099/samsung-galaxy-z-fold-2-305720-025722.jpg\"><img class=\"lazy\" title=\"Thuận tiện cho sử dụng một tay | Galaxy Z Fold 2\" src=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-305720-025722.jpg\" alt=\"Thuận tiện cho sử dụng một tay | Galaxy Z Fold 2\" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-305720-025722.jpg\" /></a></p>\r\n<p>Cạnh dưới của máy là loa ngoài, mic thoại và một cổng sạc. Thật đáng tiếc khi Samsung tiếp tục loại bỏ jack 3.5 mm trên những mẫu điện thoại cao cấp của mình.</p>\r\n<h3>Màn hình lớn và bền hơn thế hệ cũ</h3>\r\n<p>Màn hình phụ của Galaxy Z Fold 2 với thiết kế tràn viền Infinity-O, dùng camera đục lỗ trong màn hình giúp cho kích thước được mở rộng lên đến 6.23 inch, cho phép hiển thông tin nhiều hơn. Giờ đây bạn có thể sử dụng đầy đủ các tính năng như một màn hình độc lập, mà không bị giới hạn như thế hệ trước.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/42/226099/samsung-galaxy-z-fold-2-302920-012956.jpg\"><img class=\"lazy\" title=\" Màn hình phụ với thiết kế tràn viền Infinity-O Samsung | Galaxy Z Fold 2 \" src=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012956.jpg\" alt=\" Màn hình phụ với thiết kế tràn viền Infinity-O Samsung | Galaxy Z Fold 2 \" data-original=\"https://cdn.tgdd.vn/Products/Images/42/226099/samsung-galaxy-z-fold-2-302920-012956.jpg\" /></a></p>\r\n<p>Khi mở ra, bên trong hé lộ một màn hình chính 7.59 inch. Giống như màn hình phụ, Samsung đã thay thế phần khuyết tai thỏ khá lớn trên thế hệ cũ bằng camera đục lỗ. Đặc biệt, hỗ trợ tần số quét khủng 120 Hz cho thao tác chuyển động mượt mà giúp tăng trải nghiệm khi sử dụng, chơi game.</p>', 'uploads/product/samsung-galaxy-z-fold-2-vang-dong-600x600.jpg', '2', '1', 18, 1, 2, NULL, '2021-04-10 20:34:16', '2021-04-10 21:20:00'),
(23, 'Dell Vostro 3500 i3 1115G4', 12690000, 13690000, '<p>Màn hình: 15.6\", Full HD (1920 x 1080)</p>\r\n<p>CPU: Intel Core i3 Tiger Lake, 3.00 GHz</p>\r\n<p>Đồ họa: Intel UHD Graphics</p>\r\n<p>Nặng: 1.98 kg, 3-cell Li-ion, 42 Wh</p>', '<h3>Trang bị bộ vi xử lí mạnh mẽ</h3>\r\n<p>Dell Vostro 3500 được sở hữu bộ chip <a title=\"Xem thêm các sản phẩm laptop Intel Core i3 đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop?g=core-i3\" target=\"_blank\" rel=\"noopener\">Intel Core i3</a> <strong>1115G4</strong> thuộc <a title=\"Xem thêm các sản phẩm laptop Intel thế hệ 11 đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-cpu-intel-gen-11\" target=\"_blank\" rel=\"noopener\">thế hệ 11</a> Tiger Lake cho tốc độ xử lí các tác vụ cơ bản như Office, Zoom, Google Meet,... nhanh chóng, tiết kiệm năng lượng với tốc độ CPU trung bình là <strong>3.00 GHz</strong>. Công nghệ <strong>Turbo Boost</strong> giúp máy có thể ép xung lên tới <strong>4.1 GHz</strong> khi chạy những ứng dụng nặng.</p>\r\n<p>Bộ nhớ<a title=\"Xem thêm các sản phẩm laptop RAM 8 GB đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-8-gb\" target=\"_blank\" rel=\"noopener\"> RAM 8 GB</a> <strong>DDR4</strong> cho laptop có khả năng đa nhiệm tốt, xử lí được nhiều ứng dụng cùng một lúc, chẳng hạn như bạn có thể vừa soạn thảo văn bản, xử lí file Excel lớn, vừa dùng trình duyệt web nghe nhạc thư giãn mà không phải lo lắng máy bị giật, lag. Bên cạnh đó, có sẵn một khe RAM trống thoải mái nâng cấp lên đến <strong>16 GB</strong>, phù hợp với nhu cầu của từng người dùng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235656/dell-vostro-3500-i3-v5i3001w-4-1.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Cấu hình\" src=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-4-1.jpg\" alt=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Cấu hình\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-4-1.jpg\" /></a></p>\r\n<p><a title=\"Xem thêm các sản phẩm laptop SSD 256 GB đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop?g=ssd-256-gb\" target=\"_blank\" rel=\"noopener\">SSD 256 GB</a> <strong>NVMe PCle</strong> mang đến cho máy tốc độ đọc, truy xuất dữ liệu ngay tức thì, khởi động máy nhanh chóng đồng thời có không gian lưu trữ nhiều tài liệu, ứng dụng, phục vụ các nhu cầu làm việc, học tập, giải trí khác nhau.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235656/dell-vostro-3500-i3-v5i3001w-5-1.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - SSD\" src=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-5-1.jpg\" alt=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - SSD\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-5-1.jpg\" /></a></p>\r\n<h3>Thiết kế đặc trưng, thanh lịch</h3>\r\n<p>Vostro 3400 vẫn giữ thiết kế đặc trưng của <a title=\"Xem thêm các sản phẩm laptop Dell đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-dell\" target=\"_blank\" rel=\"noopener\">laptop Dell</a> với lớp vỏ nhựa màu đen bao bọc và những đường nét bo cong tỉ mỉ, phù hợp với mọi đối tượng. Máy có <strong>độ dày 19.9 mm</strong> và <strong>trọng lượng 1.98 kg</strong> có thể nói là khá gọn nhẹ trong việc mang theo bên mình đi đến lớp, học nhóm, công tác, hội nghị,...</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235656/dell-vostro-3500-i3-v5i3001w-2-1.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Thiết kế\" src=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-2-1.jpg\" alt=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Thiết kế\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-2-1.jpg\" /></a></p>\r\n<p><a title=\"Xem thêm các sản phẩm Laptop đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop\" target=\"_blank\" rel=\"noopener\">Laptop</a> có đầy đủ cổng giao tiếp phổ biến hiện nay, bao gồm: 2 cổng <strong>USB 3.2</strong>, <strong>HDMI</strong>, <strong>LAN (RJ45)</strong>, <strong>USB 2.0</strong>, <strong>khẻ the nhớ SD</strong> và <strong>USB Type-C</strong> đa năng hiện đại dễ dàng kết nối các thiết vị ngoại vi, nâng cao hiệu quả công việc.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235656/dell-vostro-3500-i3-v5i3001w-8-1.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Cổng kết nối\" src=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-8-1.jpg\" alt=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Cổng kết nối\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-8-1.jpg\" /></a></p>\r\n<p>Chuẩn không dây <strong>Wi-Fi 802.11 a/b/g/n/ac</strong> và <strong>Bluetooth v5.0</strong> với tốc độ kết nối <strong>50 Mbps</strong> cho tốc độ đường truyền ổn định ngay khi đang ở nơi đông người.</p>\r\n<h3>Màn hình rộng rãi, hình ảnh chất lượng</h3>\r\n<p><a title=\"Xem thêm các sản phẩm laptop Dell Vostro đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-dell-vostro\" target=\"_blank\" rel=\"noopener\">Dell Vostro</a> có màn hình lớn kích thước <a title=\"Xem thêm các sản phẩm laptop trên 15 inch đang kinh doanh tại thegioididong.com \" href=\"https://www.thegioididong.com/laptop-tren-15-inch\" target=\"_blank\" rel=\"noopener\">15.6 inch</a> độ phân giải <strong>Full HD (1920 x 1080)</strong> sắc nét, mang đến trải nghiệm hình ảnh sống động, độ nét cao, không gian làm việc rộng rãi, hiển thị trực quan hơn. Màn hình mỏng, tiết kiệm điện năng hơn với <a title=\"Công nghệ LED Backlight là gì\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-cong-nghe-led-backlit-led-backlight-1183188\" target=\"_blank\" rel=\"noopener\">công nghệ LED Backlight</a>.</p>\r\n<p>Nhờ công nghệ <a title=\"Chống chói Anti Glare là gì\" href=\"https://www.thegioididong.com/laptop-man-hinh-chong-choi\" target=\"_blank\" rel=\"noopener\">chống chói Anti Glare</a> và màn hình góc rộng <strong>WVA</strong> lên đến <strong>178 độ</strong>, giúp việc quan sát từ nhiều góc nhìn chính xác và dễ dàng hơn kể cả ở trong điều kiện ánh sáng mạnh.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235656/dell-vostro-3500-i3-v5i3001w-06.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Màn hình\" src=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-06.jpg\" alt=\"Laptop Dell Vostro 3500 i3 (V5I3001W) - Màn hình\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235656/dell-vostro-3500-i3-v5i3001w-06.jpg\" /></a></p>\r\n<p>Với công nghệ <a title=\"Công nghệ Realtek High Definition Audio là gì\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-cong-nghe-am-thanh-realtek-high-defini-1181909\" target=\"_blank\" rel=\"noopener\">Realtek High Definition Audio</a> cùng hệ thống loa cho âm thanh to rõ, chân thực, thoả sức nghe nhạc, xem phim, chơi game.</p>', 'uploads/product/dell-vostro-3500-i3-v5i3001w-thumb-400x400.jpg', '1', '0', 17, 1, 3, NULL, '2021-04-10 21:06:46', '2021-04-10 21:06:46');
INSERT INTO `products` (`id`, `name`, `price`, `price_old`, `product_desc`, `product_detail`, `thumbnail`, `status`, `selling_products`, `product_cat`, `user_id`, `cat_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(24, 'Dell Vostro 3500 i5 1135G7', 17490000, 18490000, '<p>Màn hình: 15.6\", Full HD (1920 x 1080)</p>\r\n<p>CPU: Intel Core i5 Tiger Lake, 2.40 GHz</p>\r\n<p>Đồ họa: NVIDIA GeForce MX330, 2GB</p>\r\n<p>Nặng: 1.98 kg, 3-cell Li-ion, 42 Wh</p>', '<h3>Hiệu năng mạnh mẽ với card đồ họa rời NVIDIA GeForce MX330</h3>\r\n<div>\r\n<p>Dell đem đến bộ vi xử lí <a title=\"Xem thêm các laptop Core i5 đang bán tại Dienmayxanh.com\" href=\"https://www.dienmayxanh.com/laptop?g=core-i5\" target=\"_blank\" rel=\"noopener\"><strong>Core i5</strong></a> Tiger Lake <a title=\"Xem thêm các laptop Intel Gen 11 đang bán tại Dienmayxanh.com\" href=\"https://www.dienmayxanh.com/laptop?g=cpu-intel-the-he-11-moi\" target=\"_blank\" rel=\"noopener\"><strong>thế hệ 11</strong></a> xử lí tốt các tác vụ nặng như thiết kế đồ hoạ, chỉnh sửa hình ảnh, video,... Con chip này đủ sức “cân” mọi ứng dụng văn phòng, học tập phổ biến, làm việc trực tuyến lẫn các ứng dụng đồ họa 2D với <strong>4 nhân</strong>, <strong>8 luồng </strong>với tốc độ cơ bản là <strong>2.40 GHz</strong> và được đẩy lên đến tối đa<strong> 4.2 GHz </strong>khi ép xung.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bcau-hinh.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Cấu hình\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bcau-hinh.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Cấu hình\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bcau-hinh.jpg\" /></a></p>\r\n<p>Mẫu laptop này của Dell còn được trang bị <a title=\"Xem thêm mẫu Laptop có card đồ hoạ rời đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-card-do-hoa-roi\" target=\"_blank\" rel=\"noopener\">card đồ hoạ rời</a> <a title=\"NVIDIA GeForce MX330 là gì\" href=\"https://www.thegioididong.com/hoi-dap/nvidia-geforce-mx330-tren-laptop-la-gi-1264163\" target=\"_blank\" rel=\"noopener\">NVIDIA GeForce MX330 2GB</a> giúp bạn có thể chơi tốt mọi game eSports và sẵn sàng cho các tựa game bom tấn AAA như: Counter-Strike: Global Offensive, Dota 2, Gears Tactics, Nioh 2,... ở mức trung bình hay thoải mái thử sức với các tác vụ đồ hoạ cơ bản với<strong> kiến trúc Turing</strong> cùng<strong> 384 nhân đồ hoạ.</strong></p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bcard.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Card đồ họa\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bcard.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Card đồ họa\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bcard.jpg\" /></a></p>\r\n<p>Bộ nhớ <strong><a title=\"Laptop được trang bị RAM 8GB đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-8-gb\" target=\"_blank\" rel=\"noopener\">RAM 8 GB</a></strong> cho việc trải nghiệm laptop mượt mà, thao tác được nhiều phần mềm cùng một lúc như vừa mở phần mềm thiết kế, vừa nghe nhạc, lướt web. Máy còn hỗ trợ nâng cấp RAM lên đến <strong>16 GB </strong>giúp bạn có thể nâng cấp hiệu năng của máy đáp ứng nhu cầu công việc của mình.</p>\r\n<p>Nhờ có <strong><a title=\"Xem thêm các sản phẩm laptop có SSD tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-o-cung-ssd\" target=\"_blank\" rel=\"noopener\">ổ cứng SSD</a> 256 GB</strong>, mọi thao tác đều được xử lí nhanh, mở máy chỉ trong giây lát. Đi kèm là không gian lưu trữ <strong><a title=\"Xem thêm các laptop có SSD 256 GB\" href=\"https://www.thegioididong.com/laptop?g=ssd-256-gb\" target=\"_blank\" rel=\"noopener\">256 GB</a></strong> giúp bạn thoải mái lưu các tựa phim, file Photoshop nặng.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bssd.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - SSD\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bssd.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - SSD\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bssd.jpg\" /></a></p>\r\n</div>\r\n<h3>Kiểu dáng đơn giản nhưng vô cùng mạnh mẽ</h3>\r\n<p>Thiết kế của <a title=\"Xem thêm các mẫu laptop Dell Vostro đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-dell-vostro\" target=\"_blank\" rel=\"noopener\">laptop Dell Vostro</a> tuy đơn giản nhưng lại đậm cá tính và vô cùng mạnh mẽ. Với trọng lượng chỉ <strong>1.98 kg </strong>và độ dày <strong>19.9 mm,</strong> vỏ ngoài bằng nhựa nhám, mịn giúp cầm máy chắc, dễ dàng cầm theo bên mình để giải trí, chơi game mọi lúc mọi nơi.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bthiet-ke.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Thiết kế\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bthiet-ke.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Thiết kế\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bthiet-ke.jpg\" /></a></p>\r\n<p>Trên <a title=\"Xem thêm mẫu Laptop đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop\" target=\"_blank\" rel=\"noopener\">laptop</a> có đầy đủ những kết nối phục vụ công việc và hoạt động chơi game của bạn gồm 3 cổng <strong>USB 3.2, HDMI, LAN, USB Type-C, USB 2.0</strong> và khe cắm thẻ nhớ <strong>Micro SD</strong> giúp bạn truyền dữ liệu nhanh chóng, thỏa sức kết nối với bất kỳ thiết bị ngoại vi nào.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bckn.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Cổng kết nối\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bckn.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Cổng kết nối\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bckn.jpg\" /></a></p>\r\n<p>Ngoài ra, Dell Vostro còn có khả năng kết nối không dây với Bluetooth v5.0 với tốc độ kết nối lên đến <strong>50 Mbps</strong> và Wi-Fi 802.11 a/b/gn/ac cho việc kết nối ổn định, mượt mà. Bên cạnh đó, trên <a title=\"Xem thêm mẫu Laptop Dell đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-dell\" target=\"_blank\" rel=\"noopener\">laptop Dell</a> này được trang bị một <strong>Webcam HD</strong> giúp việc gọi điện video, chia sẻ với người thân, họp hay học trực tuyến cực kỳ hiệu quả.</p>\r\n<h3>Đắm chìm trong những thước phim với hình ảnh sống động</h3>\r\n<p>Màn hình laptop Dell Vostro này có kích thước <strong><a title=\"Xem thêm Laptop màn hình 15.6 inch đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-tren-15-inch\" target=\"_blank\" rel=\"noopener\">15.6 inch</a></strong> với độ phân giải <strong><a title=\"Xem thêm Laptop màn hình Full HD đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop-full-hd\" target=\"_blank\" rel=\"noopener\">Full HD</a> </strong>cho hình ảnh sắc nét, sống động, đưa bạn đến không gian game mãn nhãn, đắm chìm trong cuộc phiêu lưu ly kỳ, hấp dẫn. <a title=\"Công nghệ WVA là gì\" href=\"https://www.thegioididong.com/hoi-dap/wide-viewing-angle-la-gi-uu-nhuoc-diem-1302188\" target=\"_blank\" rel=\"noopener\">Wide View Angle (WVA)</a> mang đến cho màn hình một góc nhìn rộng lên đến <strong>178 độ</strong> giúp bạn có sự trải nghiệm hình ảnh không bị biến dạng dù quan sát màn hình ở nhiều vị trí khác nhau.</p>\r\n<p>Bên cạnh đó, với công nghệ <a title=\"Tìm hiểu về màn hình chống chói Anti Glare\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-man-hinh-chong-choi-anti-glare-1182688\" target=\"_blank\" rel=\"noopener\">chống chói Anti-Glare</a> giúp bạn làm việc thuận tiện trong môi trường nhiều ánh sáng mà không sợ màn hình bị chói lóa. Hơn nữa <a title=\"Tìm hiểu về công nghệ LED Backlit (LED Backlight)\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-cong-nghe-led-backlit-led-backlight-1183188\" target=\"_blank\" rel=\"noopener\">LED Backlit</a> giúp laptop bạn ít bị tiêu thụ điện năng, phần nào giúp bạn bảo vệ được môi trường xung quanh.</p>\r\n<p><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/235540/dell-vostro-3500-i5-v3500bman-hinh.jpg\"><img class=\"lazy\" title=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Màn hình\" src=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bman-hinh.jpg\" alt=\"Laptop Dell Vostro 3500 i5 (P90F006V3500B) - Màn hình\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/235540/dell-vostro-3500-i5-v3500bman-hinh.jpg\" /></a></p>\r\n<p>Laptop sử dụng công nghệ âm thanh <a title=\"Tìm hiểu về Realtek High Definition Audio\" href=\"https://www.dienmayxanh.com/kinh-nghiem-hay/cong-nghe-am-thanh-realtek-high-definition-audio-l-1191434\" target=\"_blank\" rel=\"noopener\">Realtek High Definition Audio</a> cung cấp bộ tùy chỉnh chuyên sâu, khuếch đại âm thanh to rõ nhưng không bị rè, nhiễu.</p>', 'uploads/product/3-400x400.jpg', '1', '0', 17, 1, 3, NULL, '2021-04-10 21:12:56', '2021-04-10 21:12:56'),
(25, 'HP Pavilion 15 eg0070TU i5', 17990000, 18990000, '<p>Màn hình: 15.6\", Full HD (1920 x 1080)</p>\r\n<p>CPU: Intel Core i5 Tiger Lake, 2.40 GHz</p>\r\n<p>Đồ họa: Intel Iris Xe Graphics</p>\r\n<p>Nặng: 1.685 kg, 3-cell Li-ion, 40.04 Wh</p>', '<h3 dir=\"ltr\">Cấu hình mạnh mẽ, xử lý trơn tru mọi công việc</h3>\r\n<p dir=\"ltr\">Chiếc<a title=\"Xem thêm các mẫu laptop đang kinh doanh tại thegioididong.com\" href=\"https://www.thegioididong.com/laptop\" target=\"_blank\" rel=\"noopener\"> laptop </a>này được trang bị con chip <a title=\"Xem thêm các laptop Core i5 đang bán tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop?g=core-i5\" target=\"_blank\" rel=\"noopener\">Intel Core i5 </a>Tiger Lake <a title=\"Xem thêm các laptop Intel Gen 11 đang bán tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-cpu-intel-gen-11\" target=\"_blank\" rel=\"noopener\">thế hệ 11</a> mới nhất hiện nay, con chip có 4 nhân 8 luồng cho xung nhịp trung bình là <strong> 2.40 GHz</strong> khi xử lý các tác vụ nhẹ nhàng như làm việc với Word hay xem phim, lướt web giải trí và đạt xung nhịp tối đa lên đến<strong> 4.2 GHz</strong> nhờ công nghệ Turbo Boost để xử lý các tác vụ nặng hơn như Photoshop, render video,...</p>\r\n<p dir=\"ltr\">Bên cạnh đó chip Intel Core i5 còn sử dụng lõi <strong>Willow Cove </strong>giúp tiêu tốn ít năng lượng hơn, kéo dài thời lượng pin làm việc hiệu quả hơn.</p>\r\n<p dir=\"ltr\">Card tích hợp Intel Iris Xe Graphics mang đến hình ảnh rực rỡ, cho hiệu năng đồ họa cao. Khi card đồ họa này kết hợp cùng chip gen 11 sẽ đem đến khả năng chơi được các tựa game như Children of Morta, Corruption 2029, Little Nightmares,... ở mức đồ họa trung bình, khá.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034841.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Intel\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034841.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Intel\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034841.jpg\" /></a></p>\r\n<p dir=\"ltr\">Trang bị<strong> <a title=\"Laptop được trang bị RAM 8 GB đang kinh doanh tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-8-gb\" target=\"_blank\" rel=\"noopener\">RAM 8 GB</a></strong> có<strong> tốc độ Bus RAM</strong> lên đến <strong>3200 MHz</strong> đem đến khả năng đa nhiệm tốt, bạn có thể mở cùng lúc nhiều ứng dụng mà vẫn không bị giảm tốc độ xử lý của máy, bạn có thể vừa mở Photoshop để chỉnh sửa hình ảnh vừa mở Google để tra cứu thông tin mà không lo máy bị đứng hay phản hồi chậm. Laptop HP còn hỗ trợ <strong>32 GB</strong> giúp dễ dàng nâng cấp khi cần, phục vụ công việc tốt hơn.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034848.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - RAM\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034848.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - RAM\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034848.jpg\" /></a></p>\r\n<p dir=\"ltr\">Sở hữu ổ cứng <strong><a title=\"https://www.thegioididong.com/laptop?g=ssd-512-gbXem thêm các laptop có SSD 512 GB\" href=\"https://www.thegioididong.com/laptop?g=ssd-512-gb\" target=\"_blank\" rel=\"noopener\">SSD 512</a> GB M.2 PCIe</strong> không chỉ cho tốc độ đọc, ghi dữ liệu nhanh hơn ổ cứng HDD mà con cho thời gian khởi động máy và vào ứng dụng chỉ mất khoảng vài giây. Dung lượng <strong>512 GB</strong> cho không gian lưu trữ rộng rãi, bạn có thể thoải mái lưu trữ tài liệu học tập hay những bộ phim yêu thích mà không lo ổ cứng bị đầy làm giảm tốc độ máy.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034856.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - SSD\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034856.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - SSD\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034856.jpg\" /></a></p>\r\n<h3 dir=\"ltr\">Kiểu dáng sang trọng, màu sắc đẹp mắt</h3>\r\n<p dir=\"ltr\">Chiếc<a title=\"Xem thêm các sản phẩm HP Probook đang bán tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-hp-compaq-pavilion\" target=\"_blank\" rel=\"noopener\"> laptop HP Pavilion</a> này được bao phủ bởi gam màu bạc sang trọng, nổi bật thu hút từ ánh nhìn đầu tiên, vỏ máy được làm từ nhựa - nắp lưng bằng kim loại vừa đẹp mắt vừa giúp tản nhiệt hiệu quả. Máy có kích thước khá nhỏ gọn chỉ lớn khổ giấy A4 một chút, khối lượng chỉ <strong>1.685 kg</strong> và mỏng<strong> 17.9 mm</strong> bạn có thể cho vào balo mang theo khi di chuyển thuận tiện cho công việc.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164921-034903.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Thiết kế\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164921-034903.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Thiết kế\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164921-034903.jpg\" /></a></p>\r\n<p dir=\"ltr\">Các cổng kết nối như: USB 3.2, USB Type-C, HDMI, khe thẻ nhớ được sắp xếp gọn gàng 2 bên thân máy. Hỗ trợ bạn kết nối dễ dàng với các thiết bị ngoại vi mà không cần adapter chuyển đổi vừa cồng kềnh vừa tốn kém.</p>\r\n<p dir=\"ltr\">Ngoài ra laptop cũng tích hợp giao thức không dây Wi-Fi 802.11 a/b/g/n/ac cho tốc độ truyền tải, kết nối internet tại những nơi đông người như quán cà phê đều nhanh chóng. Bluetooth v5.0 cho tốc độ đường truyền lên đến <strong>50 Mbps</strong> và phạm vi phát sóng lên đến <strong>300 m </strong>khi không có vật cản.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034834.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Cổng kết nối\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034834.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Cổng kết nối\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-164821-034834.jpg\" /></a></p>\r\n<h3 dir=\"ltr\">Màu sắc rực rỡ, hình ảnh sắc nét</h3>\r\n<p dir=\"ltr\"><a title=\"Xem thêm các sản phẩm laptop HP đang bán tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-hp-compaq\" target=\"_blank\" rel=\"noopener\">Laptop HP</a> sở hữu màn hình có độ phân giải<strong> <a title=\"Xem thêm laptop có độ phân giải Full HD tại Điện Máy XANH\" href=\"https://www.thegioididong.com/laptop-full-hd\" target=\"_blank\" rel=\"noopener\">Full HD</a></strong> có kích thước lớn lên đến<strong> <a title=\"Xem thêm một số laptop màn hình 15.6 inch đang được kinh doanh tại Thegioididong.com\" href=\"https://www.thegioididong.com/laptop-tren-15-inch\" target=\"_blank\" rel=\"noopener\">15.6 inch</a></strong>, hình ảnh hiển thị sắc nét màu sắc chân thực trên một không gian rộng giúp bạn có trải nghiệm nhập vai hơn. Màn hình được tang bị thêm tấm nền IPS cho góc nhìn rộng lên <strong>178 độ,</strong> thoải mái quan sát màn hình ở bất kỳ góc nào.</p>\r\n<p dir=\"ltr\">Công nghệ LED Backlit tiết kiệm điện năng tiêu thụ tối đa giúp thời lượng pin kéo dài, làm việc lâu hơn cho một lần sạc.</p>\r\n<p dir=\"ltr\"><a class=\"preventdefault\" href=\"https://www.thegioididong.com/images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-165321-035320.jpg\"><img class=\"lazy\" title=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Màn hình\" src=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-165321-035320.jpg\" alt=\"Laptop HP Pavilion 15 eg0070TU i5 (1135G7) - Màn hình\" data-original=\"https://cdn.tgdd.vn/Products/Images/44/233627/hp-pavilion-15-eg0070tu-i5-2l9h3pa-165321-035320.jpg\" /></a></p>\r\n<p dir=\"ltr\">Công nghệ âm thanh <a title=\"Tìm hiểu về Bang & Olufsen audio\" href=\"https://www.thegioididong.com/hoi-dap/tim-hieu-ve-bang-olufsen-va-cong-nghe-am-thanh-cua-955118\" target=\"_blank\" rel=\"noopener\">Bang & Olufsen</a> có khả năng lọc tiếng ồn hiệu quả, giúp âm thanh to và rõ ràng hơn. </p>', 'uploads/product/hp-pavilion-15-eg0070tu-i5-2l9h3pa-151521-051520-400x400.jpg', '0', '0', 16, 1, 3, NULL, '2021-04-10 21:19:10', '2021-04-10 21:19:10');
-- --------------------------------------------------------
--
-- Table structure for table `product_cats`
--
CREATE TABLE `product_cats` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_vietnamese_ci NOT NULL,
`parent_id` bigint(20) NOT NULL DEFAULT 0,
`cat_id` bigint(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 `product_cats`
--
INSERT INTO `product_cats` (`id`, `name`, `slug`, `parent_id`, `cat_id`, `created_at`, `updated_at`) VALUES
(5, 'Điện thoại', 'dien-thoai', 0, 2, '2021-03-12 21:08:00', '2021-03-29 03:43:42'),
(13, 'IPhone', 'iphone', 5, 2, '2021-03-23 19:14:46', '2021-03-29 03:43:50'),
(15, 'Laptop', 'laptop', 0, 3, '2021-03-27 19:17:31', '2021-03-29 03:44:13'),
(16, 'HP', 'hp', 15, 3, '2021-03-28 09:24:57', '2021-03-29 03:44:30'),
(17, 'Dell', 'dell', 15, 3, '2021-03-28 09:25:11', '2021-03-29 03:44:47'),
(18, 'SamSung', 'samsung', 5, 2, '2021-03-28 09:25:31', '2021-03-29 03:43:59'),
(19, 'Oppo', 'oppo', 5, 2, '2021-03-28 09:25:46', '2021-03-29 03:44:06'),
(20, 'Nokia', 'nokia', 5, 2, '2021-03-29 03:41:33', '2021-03-29 03:41:33');
-- --------------------------------------------------------
--
-- Table structure for table `product_images`
--
CREATE TABLE `product_images` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` text COLLATE utf8mb4_unicode_ci NOT NULL,
`product_id` int(11) NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_images`
--
INSERT INTO `product_images` (`id`, `name`, `image`, `product_id`, `deleted_at`, `created_at`, `updated_at`) VALUES
(4, 'IPhone 12 64GB Anh 1', 'uploads/product/images/iphone-11-xanhla-anh2.jpg', 3, NULL, '2021-03-25 23:17:50', '2021-03-25 23:17:50'),
(5, 'IPhone 12 64GB Anh2', 'uploads/product/images/iphone-12-den-anh1.jpg', 3, NULL, '2021-03-25 23:18:31', '2021-03-25 23:18:31'),
(6, 'IPhone 12 64GB Anh3', 'uploads/product/images/iphone-mini-do-new-600x600-600x600.jpg', 3, NULL, '2021-03-25 23:19:44', '2021-03-25 23:37:24'),
(7, 'iphone11anh1', 'uploads/product/images/iphone-11-xanhla-anh2.jpg', 18, NULL, '2021-04-10 09:01:17', '2021-04-10 09:01:17'),
(8, 'IPhone XR 128GB 1', 'uploads/product/images/iphone-xr-mau-do-product-red-didongviet.jpg', 19, NULL, '2021-04-10 09:07:50', '2021-04-10 09:11:14'),
(9, 'IPhone XR 128GB 2', 'uploads/product/images/iphone-xr-hopmoi-den-600x600-2-600x600.jpg', 19, NULL, '2021-04-10 09:09:04', '2021-04-10 09:09:04'),
(10, 'Samsung Galaxy S21 5G', 'uploads/product/images/dien-thoai-samsung-galaxy-s21-plus-den-1.jpg', 20, NULL, '2021-04-10 20:15:48', '2021-04-10 20:15:48'),
(11, 'Samsung Galaxy A72 anh1', 'uploads/product/images/samsung-galaxy-a72-thumb-violet-600x600-200x200.jpg', 21, NULL, '2021-04-10 20:22:29', '2021-04-10 20:22:29'),
(12, 'Samsung Galaxy A72 anh2', 'uploads/product/images/samsung-galaxy-a72-thumb-blue-600x600-200x200.jpg', 21, NULL, '2021-04-10 20:23:39', '2021-04-10 20:25:16'),
(13, 'Samsung Galaxy A72 anh3', 'uploads/product/images/samsung-galaxy-a72-thumb-white-600x600-200x200.jpg', 21, NULL, '2021-04-10 20:25:00', '2021-04-10 20:25:00'),
(14, 'Samsung Galaxy Z Fold2 5G anh1', 'uploads/product/images/samsung-galaxy-z-fold-2-den-200x200.jpg', 22, NULL, '2021-04-10 20:35:32', '2021-04-10 20:35:32'),
(15, 'Samsung Galaxy A52 anh1', 'uploads/product/images/samsung-galaxy-a52-8gb-256gb-thumb-black-600x600-200x200.jpg', 17, NULL, '2021-04-10 21:25:52', '2021-04-10 21:25:52');
-- --------------------------------------------------------
--
-- Table structure for table `product_types`
--
CREATE TABLE `product_types` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_types`
--
INSERT INTO `product_types` (`id`, `name`, `deleted_at`, `created_at`, `updated_at`) VALUES
(2, 'Điện thoại', NULL, '2021-03-26 23:21:07', '2021-03-26 23:21:07'),
(3, 'Laptop', NULL, '2021-03-26 23:22:03', '2021-03-26 23:22:03');
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`, `deleted_at`) VALUES
(1, 'Admintrator', '2021-03-01 19:34:47', '2021-03-01 19:34:47', NULL),
(2, 'Subcriber', '2021-03-01 19:36:16', '2021-03-01 19:36:16', NULL),
(5, 'Editor', '2021-03-03 09:31:35', '2021-03-03 09:47:10', '2021-03-03 09:47:10');
-- --------------------------------------------------------
--
-- Table structure for table `sliders`
--
CREATE TABLE `sliders` (
`id` bigint(20) UNSIGNED NOT NULL,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`thumbnail` text COLLATE utf8mb4_unicode_ci NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sliders`
--
INSERT INTO `sliders` (`id`, `title`, `thumbnail`, `deleted_at`, `created_at`, `updated_at`) VALUES
(1, 'Slider-1', 'uploads/product/slider-01.png', NULL, '2021-03-19 01:49:18', '2021-03-19 08:42:23'),
(3, 'Slider-2', 'uploads/slider/slider-02-Oppo.png', NULL, '2021-03-19 08:46:35', '2021-03-21 18:35:22'),
(4, 'Slider-3', 'uploads/slider/slider-03.png', NULL, '2021-03-19 08:46:52', '2021-03-19 08:50:31');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`role_id` bigint(20) UNSIGNED 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`, `deleted_at`, `role_id`) VALUES
(1, '<NAME>', 'phamtri<EMAIL>', '2021-03-01 19:02:52', '$2y$10$vpga5Jt7jMgx2N6lQ6.4Z.T1wXFxiEYgF16ScHtdezVfpPBqZjZtG', 'ntkCF7wY0XaYnWVDO5Kf2dl3AabtmoFRYPhDhXCG1swAdgbClyEYG9jnNqhq', '2021-03-01 19:02:20', '2021-03-01 19:02:52', NULL, 1),
(15, '<NAME>', '<EMAIL>', NULL, '$2y$10$crZDIZUljEYbPeMq0koTReteQAYAkYzw/kHXtzy49x1VmjE/RhqMC', NULL, '2021-03-02 00:56:46', '2021-03-17 09:36:35', NULL, 1),
(21, '<NAME>', '<EMAIL>', NULL, '$2y$10$OyWeAJNfoKe.SUcFXwUYpek9tWsOaOL9F2SZxgPykkTDg1a958Oga', NULL, '2021-03-02 09:05:21', '2021-03-17 09:36:35', NULL, 2);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `banners`
--
ALTER TABLE `banners`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `locations`
--
ALTER TABLE `locations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pages`
--
ALTER TABLE `pages`
ADD PRIMARY KEY (`id`),
ADD KEY `pages_user_id_foreign` (`user_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `posts`
--
ALTER TABLE `posts`
ADD PRIMARY KEY (`id`),
ADD KEY `posts_page_id_foreign` (`page_id`),
ADD KEY `posts_post_id_foreign` (`post_id`);
--
-- Indexes for table `post_cats`
--
ALTER TABLE `post_cats`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `products_product_cat_foreign` (`product_cat`),
ADD KEY `products_user_id_foreign` (`user_id`);
--
-- Indexes for table `product_cats`
--
ALTER TABLE `product_cats`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_types`
--
ALTER TABLE `product_types`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`),
ADD KEY `users_role_id_foreign` (`role_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `banners`
--
ALTER TABLE `banners`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `locations`
--
ALTER TABLE `locations`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=94;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;
--
-- AUTO_INCREMENT for table `pages`
--
ALTER TABLE `pages`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `posts`
--
ALTER TABLE `posts`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `post_cats`
--
ALTER TABLE `post_cats`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `product_cats`
--
ALTER TABLE `product_cats`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `product_types`
--
ALTER TABLE `product_types`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `pages`
--
ALTER TABLE `pages`
ADD CONSTRAINT `pages_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `posts`
--
ALTER TABLE `posts`
ADD CONSTRAINT `posts_page_id_foreign` FOREIGN KEY (`page_id`) REFERENCES `pages` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `posts_post_id_foreign` FOREIGN KEY (`post_id`) REFERENCES `post_cats` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_product_cat_foreign` FOREIGN KEY (`product_cat`) REFERENCES `product_cats` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `products_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`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 */;
|
<reponame>jsamborski310/Employee-Tracker
INSERT INTO department (id, name)
VALUES (1, "Human Resources"),
(2, "Creative"),
(3, "Software Engineering"),
(4, "Marketing"),
(5, "IT");
INSERT INTO role (id, title, salary, department_id)
VALUES (1, "UX Designer", 130000.00, 2),
(2, "Architect", 150000.00, 3),
(3, "Content Marketing Specialist", 110000.00, 4),
(4, "Creative Director", 150000.00, 4),
(5, "Help Desk Support", 70000.00, 5),
(6, "Recruiter", 115000.00, 1);
INSERT INTO employee (id, first_name, last_name, role_id, manager_id)
VALUES (1, "Mark", "Thompson", 2, NULL),
(2, "Leslie", "Williams", 5, NULL),
(3, "Stephanie", "Martinez", 4, 1),
(4, "Evori", "Dawson", 3, 2),
(5, "Cameron", "Sanchez", 1, 3),
(6, "Richard", "Smith", 6, 1);
|
<reponame>pjunyent/Kalkun<filename>media/db/pgsql_pbk_gammu.sql
-- --------------------------------------------------------
-- pbk & pbk_groups tables have been removed from gammu-smsd Databse
-- in schema version 16 (corresponding to gammu 1.37.90)
-- This will create them as they used to be created by gammu.
CREATE TABLE pbk (
"ID" serial PRIMARY KEY,
"GroupID" integer NOT NULL DEFAULT '-1',
"Name" text NOT NULL,
"Number" text NOT NULL
);
CREATE TABLE pbk_groups (
"Name" text NOT NULL,
"ID" serial PRIMARY KEY
);
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Gép: 1172.16.17.32
-- Létrehozás ideje: 2021. Sze 12. 21:48
-- Kiszolgáló verziója: 10.4.18-MariaDB
-- PHP verzió: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Adatbázis: `zengo_test`
--
-- --------------------------------------------------------
--
-- Tábla szerkezet ehhez a táblához `city`
--
CREATE TABLE `city` (
`id` int(11) NOT NULL,
`city_name` varchar(255) COLLATE utf8_hungarian_ci NOT NULL,
`county_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
--
-- A tábla adatainak kiíratása `city`
--
INSERT INTO `city` (`id`, `city_name`, `county_id`) VALUES
(2, 'Szombathely', 17),
(14, 'Tótkomlós', 3),
(39, 'Pécs', 1),
(40, 'Orfű', 1),
(41, 'Kecskemét', 2),
(42, 'Miskolc', 4),
(43, 'Szeged', 5),
(44, 'Sándorfalva', 5),
(45, 'Algyő', 5),
(46, 'Székesfehérvár', 6);
-- --------------------------------------------------------
--
-- Tábla szerkezet ehhez a táblához `county`
--
CREATE TABLE `county` (
`id` int(11) NOT NULL,
`county_name` varchar(255) COLLATE utf8_hungarian_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
--
-- A tábla adatainak kiíratása `county`
--
INSERT INTO `county` (`id`, `county_name`) VALUES
(1, 'Baranya'),
(2, 'Bács-Kiskun'),
(3, 'Békés'),
(4, 'Borsod-Abaúj-Zemplén'),
(5, 'Csongrád-Csanád'),
(6, 'Fejér'),
(7, 'Győr-Moson-Sopron'),
(8, 'Hajdú-Bihar'),
(9, 'Heves'),
(10, 'Jász-Nagykun-Szolnok'),
(11, 'Komárom-Esztergom'),
(12, 'Nógrád'),
(13, 'Pest'),
(14, 'Somogy'),
(15, 'Szabolcs-Szatmár-Bereg'),
(16, 'Tolna'),
(17, 'Vas'),
(18, 'Veszprém'),
(19, 'Zala');
--
-- Indexek a kiírt táblákhoz
--
--
-- A tábla indexei `city`
--
ALTER TABLE `city`
ADD PRIMARY KEY (`id`),
ADD KEY `county_id` (`county_id`);
--
-- A tábla indexei `county`
--
ALTER TABLE `county`
ADD PRIMARY KEY (`id`);
--
-- A kiírt táblák AUTO_INCREMENT értéke
--
--
-- AUTO_INCREMENT a táblához `city`
--
ALTER TABLE `city`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- AUTO_INCREMENT a táblához `county`
--
ALTER TABLE `county`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21;
--
-- Megkötések a kiírt táblákhoz
--
--
-- Megkötések a táblához `city`
--
ALTER TABLE `city`
ADD CONSTRAINT `county_id` FOREIGN KEY (`county_id`) REFERENCES `county` (`id`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>api/db/schema.sql
DROP DATABASE IF EXISTS power_to_play;
CREATE DATABASE power_to_play;
USE power_to_play;
CREATE TABLE games (
`id` INT AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`platform` VARCHAR(255) NOT NULL,
`image` VARCHAR(255),
PRIMARY KEY (`id`),
INDEX `name` (`name`),
INDEX `platform` (`platform`)
);
CREATE TABLE times_for_games (
`id` INT AUTO_INCREMENT,
`power_to_play_time_minutes` INT(255),
`votes` INT(255) DEFAULT 0,
`description` VARCHAR(255),
PRIMARY KEY (`id`),
`game` INT(255) NOT NULL REFERENCES games(`id`)
);
INSERT INTO games (`name`, `platform`, `image`)
VALUES ('gta5', 'ps4', 'https://images.g2a.com/newlayout/323x433/1x1x0/387a113709aa/59e5efeb5bafe304c4426c47');
INSERT INTO times_for_games (`power_to_play_time_minutes`, `description`, `game`)
VALUES (5, 'from press start to control of character', 1); |
-- Deploy steps:task_ordering to pg
-- requires: appschema
BEGIN;
ALTER TABLE "task" ADD COLUMN "order" integer;
COMMIT;
|
-- MySQL dump 10.13 Distrib 5.6.38, for Linux (x86_64)
--
-- Host: localhost Database: uscricke_db1
-- ------------------------------------------------------
-- Server version 5.6.38
/*!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 `account_transactions`
--
DROP TABLE IF EXISTS `account_transactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_transactions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`type` enum('debit','credit') COLLATE utf8mb4_unicode_ci NOT NULL,
`sub_type` enum('opening_balance','fund_transfer','deposit') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`amount` decimal(22,4) NOT NULL,
`reff_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`operation_date` datetime NOT NULL,
`created_by` int(11) NOT NULL,
`transaction_id` int(11) DEFAULT NULL,
`transaction_payment_id` int(11) DEFAULT NULL,
`transfer_transaction_id` int(11) DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `account_transactions_account_id_index` (`account_id`),
KEY `account_transactions_transaction_id_index` (`transaction_id`),
KEY `account_transactions_transaction_payment_id_index` (`transaction_payment_id`),
KEY `account_transactions_transfer_transaction_id_index` (`transfer_transaction_id`),
KEY `account_transactions_created_by_index` (`created_by`),
KEY `account_transactions_type_index` (`type`),
KEY `account_transactions_sub_type_index` (`sub_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account_transactions`
--
LOCK TABLES `account_transactions` WRITE;
/*!40000 ALTER TABLE `account_transactions` DISABLE KEYS */;
/*!40000 ALTER TABLE `account_transactions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `account_types`
--
DROP TABLE IF EXISTS `account_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `account_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_account_type_id` int(11) DEFAULT NULL,
`business_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `account_types_parent_account_type_id_index` (`parent_account_type_id`),
KEY `account_types_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `account_types`
--
LOCK TABLES `account_types` WRITE;
/*!40000 ALTER TABLE `account_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `account_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `accounts`
--
DROP TABLE IF EXISTS `accounts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `accounts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`account_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`account_details` text COLLATE utf8mb4_unicode_ci,
`account_type_id` int(11) DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_by` int(11) NOT NULL,
`is_closed` tinyint(1) NOT NULL DEFAULT '0',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `accounts_business_id_index` (`business_id`),
KEY `accounts_account_type_id_index` (`account_type_id`),
KEY `accounts_created_by_index` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `accounts`
--
LOCK TABLES `accounts` WRITE;
/*!40000 ALTER TABLE `accounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `accounts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `activity_log`
--
DROP TABLE IF EXISTS `activity_log`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `activity_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`log_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`subject_id` int(11) DEFAULT NULL,
`subject_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`business_id` int(11) DEFAULT NULL,
`causer_id` int(11) DEFAULT NULL,
`causer_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`properties` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `activity_log_log_name_index` (`log_name`)
) ENGINE=InnoDB AUTO_INCREMENT=190 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `activity_log`
--
LOCK TABLES `activity_log` WRITE;
/*!40000 ALTER TABLE `activity_log` DISABLE KEYS */;
INSERT INTO `activity_log` (`id`, `log_name`, `description`, `subject_id`, `subject_type`, `business_id`, `causer_id`, `causer_type`, `properties`, `created_at`, `updated_at`) VALUES (1,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-12 08:06:12','2021-06-12 08:06:12'),(2,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-06-12 08:12:35','2021-06-12 08:12:35'),(3,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-12 08:14:40','2021-06-12 08:14:40'),(4,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-12 13:51:40','2021-06-12 13:51:40'),(5,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-21 05:21:00','2021-06-21 05:21:00'),(6,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-06-21 07:26:44','2021-06-21 07:26:44'),(7,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-21 07:26:48','2021-06-21 07:26:48'),(8,'default','added',4,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":125}}','2021-06-21 07:33:41','2021-06-21 07:33:41'),(9,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-06-21 07:38:04','2021-06-21 07:38:04'),(10,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-21 07:38:16','2021-06-21 07:38:16'),(11,'default','added',4,'App\\Contact',1,1,'App\\User','[]','2021-06-21 07:41:07','2021-06-21 07:41:07'),(12,'default','added',5,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":125}}','2021-06-21 07:41:22','2021-06-21 07:41:22'),(13,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-21 15:07:35','2021-06-21 15:07:35'),(14,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-23 04:45:31','2021-06-23 04:45:31'),(15,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-24 03:39:49','2021-06-24 03:39:49'),(16,'default','added',6,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":625}}','2021-06-24 03:45:39','2021-06-24 03:45:39'),(17,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-24 04:00:49','2021-06-24 04:00:49'),(18,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-24 16:30:12','2021-06-24 16:30:12'),(19,'default','added',7,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":500}}','2021-06-24 16:48:37','2021-06-24 16:48:37'),(20,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-06-24 16:51:12','2021-06-24 16:51:12'),(21,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-27 02:49:50','2021-06-27 02:49:50'),(22,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-06-27 04:13:12','2021-06-27 04:13:12'),(23,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-01 00:40:22','2021-07-01 00:40:22'),(24,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-07-01 02:51:00','2021-07-01 02:51:00'),(25,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-01 02:51:12','2021-07-01 02:51:12'),(26,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-02 08:15:42','2021-07-02 08:15:42'),(27,'default','added',677,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":48.39999999999999857891452847979962825775146484375}}','2021-07-02 08:18:00','2021-07-02 08:18:00'),(28,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-02 08:28:05','2021-07-02 08:28:05'),(29,'default','added',678,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":66}}','2021-07-02 08:29:45','2021-07-02 08:29:45'),(30,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-02 08:34:41','2021-07-02 08:34:41'),(31,'default','added',679,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":142}}','2021-07-02 08:35:40','2021-07-02 08:35:40'),(32,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-02 08:52:18','2021-07-02 08:52:18'),(33,'default','added',680,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":238}}','2021-07-02 08:53:22','2021-07-02 08:53:22'),(34,'default','added',681,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":32}}','2021-07-02 08:53:58','2021-07-02 08:53:58'),(35,'default','added',682,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":80}}','2021-07-02 08:55:08','2021-07-02 08:55:08'),(36,'default','added',683,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":32}}','2021-07-02 08:55:25','2021-07-02 08:55:25'),(37,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-02 12:34:02','2021-07-02 12:34:02'),(38,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-03 03:37:30','2021-07-03 03:37:30'),(39,'default','sell_deleted',7,'App\\Transaction',1,1,'App\\User','{\"id\":7,\"invoice_no\":\"0004\",\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":\"500.0000\"}}','2021-07-03 03:49:11','2021-07-03 03:49:11'),(40,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-03 18:54:01','2021-07-03 18:54:01'),(41,'default','added',684,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-03 18:56:23','2021-07-03 18:56:23'),(42,'default','added',685,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":22.440000000000001278976924368180334568023681640625}}','2021-07-03 19:05:26','2021-07-03 19:05:26'),(43,'default','added',5,'App\\Contact',1,1,'App\\User','[]','2021-07-03 19:06:58','2021-07-03 19:06:58'),(44,'default','added',686,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":95}}','2021-07-03 19:07:01','2021-07-03 19:07:01'),(45,'default','added',687,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell_return\",\"final_total\":95}}','2021-07-03 19:18:54','2021-07-03 19:18:54'),(46,'default','added',6,'App\\Contact',1,1,'App\\User','[]','2021-07-03 19:24:04','2021-07-03 19:24:04'),(47,'default','added',688,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"purchase\",\"status\":\"received\",\"payment_status\":\"due\",\"final_total\":60}}','2021-07-03 19:24:12','2021-07-03 19:24:12'),(48,'default','added',689,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":24}}','2021-07-03 19:32:24','2021-07-03 19:32:24'),(49,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-04 10:38:01','2021-07-04 10:38:01'),(50,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-06 15:44:03','2021-07-06 15:44:03'),(51,'default','added',690,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":40}}','2021-07-06 15:45:55','2021-07-06 15:45:55'),(52,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-08 18:55:42','2021-07-08 18:55:42'),(53,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-09 03:15:30','2021-07-09 03:15:30'),(54,'default','added',691,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":48}}','2021-07-09 03:21:56','2021-07-09 03:21:56'),(55,'default','added',692,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":12}}','2021-07-09 03:48:44','2021-07-09 03:48:44'),(56,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-09 19:19:21','2021-07-09 19:19:21'),(57,'default','added',694,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":1920}}','2021-07-09 20:27:35','2021-07-09 20:27:35'),(58,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-10 03:45:01','2021-07-10 03:45:01'),(59,'default','added',695,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-10 16:31:26','2021-07-10 16:31:26'),(60,'default','added',696,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-10 16:32:33','2021-07-10 16:32:33'),(61,'default','added',698,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":88}}','2021-07-10 16:39:41','2021-07-10 16:39:41'),(62,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-10 18:45:20','2021-07-10 18:45:20'),(63,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-11 02:34:15','2021-07-11 02:34:15'),(64,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-11 04:07:01','2021-07-11 04:07:01'),(65,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-11 06:47:45','2021-07-11 06:47:45'),(66,'default','added',703,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":125}}','2021-07-11 12:23:00','2021-07-11 12:23:00'),(67,'default','added',704,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":125}}','2021-07-11 12:24:17','2021-07-11 12:24:17'),(68,'default','added',705,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-11 13:39:31','2021-07-11 13:39:31'),(69,'default','added',706,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-11 13:41:52','2021-07-11 13:41:52'),(70,'default','added',707,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-07-11 14:17:53','2021-07-11 14:17:53'),(71,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-12 04:43:36','2021-07-12 04:43:36'),(72,'default','added',708,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":368}}','2021-07-13 06:51:44','2021-07-13 06:51:44'),(73,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-13 15:17:54','2021-07-13 15:17:54'),(74,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-14 15:13:48','2021-07-14 15:13:48'),(75,'default','added',709,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":37}}','2021-07-14 15:14:10','2021-07-14 15:14:10'),(76,'default','added',710,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":37}}','2021-07-14 15:16:49','2021-07-14 15:16:49'),(77,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-14 17:41:53','2021-07-14 17:41:53'),(78,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-31 08:24:58','2021-07-31 08:24:58'),(79,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-31 08:27:29','2021-07-31 08:27:29'),(80,'default','added',712,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"due\",\"final_total\":20}}','2021-07-31 08:34:48','2021-07-31 08:34:48'),(81,'default','added',713,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"draft\",\"sub_status\":\"quotation\",\"final_total\":20}}','2021-07-31 08:35:33','2021-07-31 08:35:33'),(82,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-31 14:00:11','2021-07-31 14:00:11'),(83,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-07-31 14:26:58','2021-07-31 14:26:58'),(84,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-08-06 18:12:25','2021-08-06 18:12:25'),(85,'default','added',714,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-08-06 18:13:06','2021-08-06 18:13:06'),(86,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-08-17 08:26:30','2021-08-17 08:26:30'),(87,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-08-31 11:52:28','2021-08-31 11:52:28'),(88,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-08-31 16:49:02','2021-08-31 16:49:02'),(89,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-08-31 16:55:41','2021-08-31 16:55:41'),(90,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-01 09:59:57','2021-09-01 09:59:57'),(91,'default','added',7,'App\\Contact',1,1,'App\\User','[]','2021-09-01 10:20:53','2021-09-01 10:20:54'),(92,'default','edited',7,'App\\Contact',1,1,'App\\User','[]','2021-09-01 10:22:33','2021-09-01 10:22:33'),(93,'default','added',8,'App\\Contact',1,1,'App\\User','[]','2021-09-01 10:24:43','2021-09-01 10:24:43'),(94,'default','added',715,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"purchase\",\"status\":\"ordered\",\"payment_status\":\"due\",\"final_total\":800}}','2021-09-01 10:30:06','2021-09-01 10:30:06'),(95,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-13 11:01:17','2021-09-13 11:01:17'),(96,'default','added',716,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-09-13 11:07:38','2021-09-13 11:07:38'),(97,'default','added',2,'App\\User',1,1,'App\\User','{\"name\":\"<NAME>\"}','2021-09-13 11:10:57','2021-09-13 11:10:57'),(98,'default','added',717,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-09-13 11:12:00','2021-09-13 11:12:00'),(99,'default','added',718,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-09-13 11:14:56','2021-09-13 11:14:56'),(100,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-09-13 11:21:20','2021-09-13 11:21:20'),(101,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-14 06:43:02','2021-09-14 06:43:02'),(102,'default','added',719,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":248}}','2021-09-14 06:45:57','2021-09-14 06:45:57'),(103,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-14 07:53:42','2021-09-14 07:53:42'),(104,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-14 08:18:18','2021-09-14 08:18:18'),(105,'default','added',3,'App\\User',1,1,'App\\User','{\"name\":\"<NAME>\"}','2021-09-14 09:13:30','2021-09-14 09:13:30'),(106,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-09-14 09:14:10','2021-09-14 09:14:10'),(107,'default','login',3,'App\\User',1,3,'App\\User','[]','2021-09-14 09:14:29','2021-09-14 09:14:29'),(108,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-14 09:15:25','2021-09-14 09:15:25'),(109,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-25 13:07:48','2021-09-25 13:07:48'),(110,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-25 13:19:52','2021-09-25 13:19:52'),(111,'default','login',4,'App\\User',2,4,'App\\User','[]','2021-09-25 13:22:17','2021-09-25 13:22:17'),(112,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-09-25 13:25:23','2021-09-25 13:25:23'),(113,'default','login',4,'App\\User',2,4,'App\\User','[]','2021-09-25 13:25:36','2021-09-25 13:25:36'),(114,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-27 07:30:25','2021-09-27 07:30:25'),(115,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-09-27 07:32:17','2021-09-27 07:32:17'),(116,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-27 15:29:22','2021-09-27 15:29:22'),(117,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-27 15:33:41','2021-09-27 15:33:41'),(118,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-09-28 15:23:39','2021-09-28 15:23:39'),(119,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-17 12:18:55','2021-10-17 12:18:55'),(120,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-18 14:24:57','2021-10-18 14:24:57'),(121,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-19 15:56:27','2021-10-19 15:56:27'),(122,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-22 15:55:26','2021-10-22 15:55:26'),(123,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-25 16:37:44','2021-10-25 16:37:44'),(124,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-26 12:52:05','2021-10-26 12:52:05'),(125,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-26 12:54:30','2021-10-26 12:54:30'),(126,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-26 13:44:44','2021-10-26 13:44:44'),(127,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-26 14:10:55','2021-10-26 14:10:55'),(128,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-27 13:51:27','2021-10-27 13:51:27'),(129,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-10-27 15:15:52','2021-10-27 15:15:52'),(130,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-27 16:47:30','2021-10-27 16:47:30'),(131,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-10-27 16:48:03','2021-10-27 16:48:03'),(132,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-10-28 11:23:36','2021-10-28 11:23:36'),(133,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-02 09:34:24','2021-11-02 09:34:25'),(134,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-03 15:35:10','2021-11-03 15:35:10'),(135,'default','added',720,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":48}}','2021-11-03 15:42:13','2021-11-03 15:42:13'),(136,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-04 07:16:45','2021-11-04 07:16:45'),(137,'default','added',723,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"draft\",\"final_total\":20}}','2021-11-05 15:19:22','2021-11-05 15:19:22'),(138,'default','added',724,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"draft\",\"sub_status\":\"quotation\",\"final_total\":20}}','2021-11-05 15:19:28','2021-11-05 15:19:28'),(139,'default','added',725,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":20}}','2021-11-05 15:52:36','2021-11-05 15:52:36'),(140,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-08 15:37:44','2021-11-08 15:37:44'),(141,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-08 15:45:55','2021-11-08 15:45:55'),(142,'default','edited',1,'App\\User',1,1,'App\\User','{\"name\":\" <NAME>\"}','2021-11-08 15:48:24','2021-11-08 15:48:24'),(143,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-08 15:52:04','2021-11-08 15:52:04'),(144,'default','added',5,'App\\User',1,1,'App\\User','{\"name\":\" USCRIC POS Admin\"}','2021-11-08 15:55:47','2021-11-08 15:55:47'),(145,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-08 15:56:11','2021-11-08 15:56:11'),(146,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-08 15:56:25','2021-11-08 15:56:25'),(147,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-08 16:39:10','2021-11-08 16:39:10'),(148,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-08 16:41:09','2021-11-08 16:41:09'),(149,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-08 16:41:22','2021-11-08 16:41:22'),(150,'default','edited',5,'App\\User',1,1,'App\\User','{\"name\":\" USCRIC POS Admin\"}','2021-11-08 16:43:29','2021-11-08 16:43:29'),(151,'default','edited',5,'App\\User',1,1,'App\\User','{\"name\":\" USCRIC POS Admin\"}','2021-11-08 16:44:40','2021-11-08 16:44:40'),(152,'default','edited',5,'App\\User',1,5,'App\\User','{\"name\":\" USCRIC POS Admin\"}','2021-11-08 16:47:08','2021-11-08 16:47:08'),(153,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-08 16:47:47','2021-11-08 16:47:47'),(154,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-08 16:52:50','2021-11-08 16:52:50'),(155,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-08 16:53:30','2021-11-08 16:53:30'),(156,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-08 16:55:35','2021-11-08 16:55:35'),(157,'default','added',727,'App\\Transaction',1,5,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":12}}','2021-11-08 17:06:54','2021-11-08 17:06:54'),(158,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-08 17:31:24','2021-11-08 17:31:24'),(159,'default','added',728,'App\\Transaction',1,5,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":24}}','2021-11-09 12:23:34','2021-11-09 12:23:34'),(160,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-09 16:11:32','2021-11-09 16:11:32'),(161,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-09 16:14:16','2021-11-09 16:14:16'),(162,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-09 16:25:42','2021-11-09 16:25:42'),(163,'default','added',729,'App\\Transaction',1,5,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":24}}','2021-11-10 12:08:13','2021-11-10 12:08:13'),(164,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-11 14:56:40','2021-11-11 14:56:40'),(165,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-12 03:20:50','2021-11-12 03:20:50'),(166,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-13 10:44:43','2021-11-13 10:44:43'),(167,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-13 10:53:50','2021-11-13 10:53:50'),(168,'default','contact_deleted',5,'App\\Contact',1,5,'App\\User','[]','2021-11-13 13:56:26','2021-11-13 13:56:26'),(169,'default','contact_deleted',4,'App\\Contact',1,5,'App\\User','[]','2021-11-13 13:56:36','2021-11-13 13:56:36'),(170,'default','deleted',2,'App\\User',1,5,'App\\User','{\"name\":\"<NAME>\",\"id\":2}','2021-11-13 13:57:13','2021-11-13 13:57:13'),(171,'default','contact_deleted',6,'App\\Contact',1,5,'App\\User','[]','2021-11-13 14:03:24','2021-11-13 14:03:24'),(172,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-14 02:32:06','2021-11-14 02:32:06'),(173,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-14 02:41:05','2021-11-14 02:41:05'),(174,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-14 07:05:25','2021-11-14 07:05:25'),(175,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-14 09:46:48','2021-11-14 09:46:48'),(176,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 05:23:08','2021-11-15 05:23:08'),(177,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 14:10:33','2021-11-15 14:10:33'),(178,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 16:11:36','2021-11-15 16:11:36'),(179,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 16:19:50','2021-11-15 16:19:50'),(180,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 17:50:11','2021-11-15 17:50:11'),(181,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-15 17:56:21','2021-11-15 17:56:21'),(182,'default','logout',1,'App\\User',1,1,'App\\User','[]','2021-11-16 04:00:01','2021-11-16 04:00:01'),(183,'default','login',5,'App\\User',1,5,'App\\User','[]','2021-11-16 04:00:13','2021-11-16 04:00:13'),(184,'default','edited',1,'App\\User',1,5,'App\\User','{\"name\":\" USCRIC POS ADMIN\"}','2021-11-16 04:01:58','2021-11-16 04:01:58'),(185,'default','logout',5,'App\\User',1,5,'App\\User','[]','2021-11-16 04:02:12','2021-11-16 04:02:12'),(186,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-16 04:02:23','2021-11-16 04:02:23'),(187,'default','login',1,'App\\User',1,1,'App\\User','[]','2021-11-16 05:11:37','2021-11-16 05:11:37'),(188,'default','added',10,'App\\Contact',1,1,'App\\User','[]','2021-11-16 08:18:04','2021-11-16 08:18:04'),(189,'default','added',54,'App\\Transaction',1,1,'App\\User','{\"attributes\":{\"type\":\"sell\",\"status\":\"final\",\"payment_status\":\"paid\",\"final_total\":28}}','2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `activity_log` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `barcodes`
--
DROP TABLE IF EXISTS `barcodes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `barcodes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`width` double(22,4) DEFAULT NULL,
`height` double(22,4) DEFAULT NULL,
`paper_width` double(22,4) DEFAULT NULL,
`paper_height` double(22,4) DEFAULT NULL,
`top_margin` double(22,4) DEFAULT NULL,
`left_margin` double(22,4) DEFAULT NULL,
`row_distance` double(22,4) DEFAULT NULL,
`col_distance` double(22,4) DEFAULT NULL,
`stickers_in_one_row` int(11) DEFAULT NULL,
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`is_continuous` tinyint(1) NOT NULL DEFAULT '0',
`stickers_in_one_sheet` int(11) DEFAULT NULL,
`business_id` int(10) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `barcodes_business_id_foreign` (`business_id`),
CONSTRAINT `barcodes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `barcodes`
--
LOCK TABLES `barcodes` WRITE;
/*!40000 ALTER TABLE `barcodes` DISABLE KEYS */;
INSERT INTO `barcodes` (`id`, `name`, `description`, `width`, `height`, `paper_width`, `paper_height`, `top_margin`, `left_margin`, `row_distance`, `col_distance`, `stickers_in_one_row`, `is_default`, `is_continuous`, `stickers_in_one_sheet`, `business_id`, `created_at`, `updated_at`) VALUES (1,'20 Labels per Sheet','Sheet Size: 8.5\" x 11\", Label Size: 4\" x 1\", Labels per sheet: 20',4.0000,1.0000,8.5000,11.0000,0.5000,0.1250,0.0000,0.1875,2,0,0,20,NULL,'2017-12-18 00:43:44','2017-12-18 00:43:44'),(2,'30 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2.625\" x 1\", Labels per sheet: 30',2.6250,1.0000,8.5000,11.0000,0.5000,0.1880,0.0000,0.1250,3,0,0,30,NULL,'2017-12-18 00:34:39','2017-12-18 00:40:40'),(3,'32 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1.25\", Labels per sheet: 32',2.0000,1.2500,8.5000,11.0000,0.5000,0.2500,0.0000,0.0000,4,0,0,32,NULL,'2017-12-18 00:25:40','2017-12-18 00:25:40'),(4,'40 Labels per sheet','Sheet Size: 8.5\" x 11\", Label Size: 2\" x 1\", Labels per sheet: 40',2.0000,1.0000,8.5000,11.0000,0.5000,0.2500,0.0000,0.0000,4,0,0,40,NULL,'2017-12-18 00:28:40','2017-12-18 00:28:40'),(5,'50 Labels per Sheet','Sheet Size: 8.5\" x 11\", Label Size: 1.5\" x 1\", Labels per sheet: 50',1.5000,1.0000,8.5000,11.0000,0.5000,0.5000,0.0000,0.0000,5,0,0,50,NULL,'2017-12-18 00:21:10','2017-12-18 00:21:10'),(6,'Continuous Rolls - 31.75mm x 25.4mm','Label Size: 31.75mm x 25.4mm, Gap: 3.18mm',1.2500,1.0000,1.2500,0.0000,0.1250,0.0000,0.1250,0.0000,1,0,1,NULL,NULL,'2017-12-18 00:21:10','2017-12-18 00:21:10');
/*!40000 ALTER TABLE `barcodes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `bookings`
--
DROP TABLE IF EXISTS `bookings`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bookings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`contact_id` int(10) unsigned NOT NULL,
`waiter_id` int(10) unsigned DEFAULT NULL,
`table_id` int(10) unsigned DEFAULT NULL,
`correspondent_id` int(11) DEFAULT NULL,
`business_id` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`booking_start` datetime NOT NULL,
`booking_end` datetime NOT NULL,
`created_by` int(10) unsigned NOT NULL,
`booking_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`booking_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `bookings_contact_id_foreign` (`contact_id`),
KEY `bookings_business_id_foreign` (`business_id`),
KEY `bookings_created_by_foreign` (`created_by`),
KEY `bookings_table_id_index` (`table_id`),
KEY `bookings_waiter_id_index` (`waiter_id`),
KEY `bookings_location_id_index` (`location_id`),
KEY `bookings_booking_status_index` (`booking_status`),
KEY `bookings_correspondent_id_index` (`correspondent_id`),
CONSTRAINT `bookings_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `bookings_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
CONSTRAINT `bookings_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bookings`
--
LOCK TABLES `bookings` WRITE;
/*!40000 ALTER TABLE `bookings` DISABLE KEYS */;
INSERT INTO `bookings` (`id`, `contact_id`, `waiter_id`, `table_id`, `correspondent_id`, `business_id`, `location_id`, `booking_start`, `booking_end`, `created_by`, `booking_status`, `booking_note`, `created_at`, `updated_at`) VALUES (1,1,NULL,NULL,2,1,1,'2021-11-16 21:08:00','2021-11-16 21:50:00',1,'booked',NULL,'2021-11-03 15:38:51','2021-11-03 15:38:51');
/*!40000 ALTER TABLE `bookings` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `brands`
--
DROP TABLE IF EXISTS `brands`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `brands` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`created_by` int(10) unsigned NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `brands_business_id_foreign` (`business_id`),
KEY `brands_created_by_foreign` (`created_by`),
CONSTRAINT `brands_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `brands_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `brands`
--
LOCK TABLES `brands` WRITE;
/*!40000 ALTER TABLE `brands` DISABLE KEYS */;
INSERT INTO `brands` (`id`, `business_id`, `name`, `description`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,'Brush teeth','Unique',1,'2021-11-13 13:59:49','2021-09-14 09:06:49','2021-11-13 13:59:49'),(2,1,'Abc','Biryanis',3,'2021-11-13 13:59:53','2021-09-14 09:15:38','2021-11-13 13:59:53'),(3,1,'GM',NULL,5,NULL,'2021-11-15 16:20:01','2021-11-15 16:23:15'),(4,1,'KOOKABURRA',NULL,5,NULL,'2021-11-15 16:20:13','2021-11-15 16:23:29'),(5,1,'SHREY',NULL,5,NULL,'2021-11-15 16:24:53','2021-11-15 16:24:53'),(6,1,'SG',NULL,5,NULL,'2021-11-15 16:25:03','2021-11-15 16:25:03'),(7,1,'NEWBERRY',NULL,5,NULL,'2021-11-15 16:26:37','2021-11-15 16:26:37'),(8,1,'Addidas',NULL,5,NULL,'2021-11-15 16:26:46','2021-11-15 16:26:46'),(9,1,'SS',NULL,5,NULL,'2021-11-15 16:27:00','2021-11-15 16:27:00'),(10,1,'Aero',NULL,5,NULL,'2021-11-15 16:29:35','2021-11-15 16:29:35'),(11,1,'Masuri',NULL,5,NULL,'2021-11-15 16:29:43','2021-11-15 16:29:43'),(12,1,'New Balance',NULL,5,NULL,'2021-11-15 16:29:58','2021-11-15 16:29:58'),(13,1,'DSC',NULL,5,NULL,'2021-11-15 16:30:18','2021-11-15 16:30:18');
/*!40000 ALTER TABLE `brands` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `business`
--
DROP TABLE IF EXISTS `business`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `business` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`currency_id` int(10) unsigned NOT NULL,
`start_date` date DEFAULT NULL,
`tax_number_1` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tax_label_1` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tax_number_2` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tax_label_2` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code_label_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code_label_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`default_sales_tax` int(10) unsigned DEFAULT NULL,
`default_profit_percent` double(5,2) NOT NULL DEFAULT '0.00',
`owner_id` int(10) unsigned NOT NULL,
`time_zone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Asia/Kolkata',
`fy_start_month` tinyint(4) NOT NULL DEFAULT '1',
`accounting_method` enum('fifo','lifo','avco') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fifo',
`default_sales_discount` decimal(5,2) DEFAULT NULL,
`sell_price_tax` enum('includes','excludes') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'includes',
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sku_prefix` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enable_product_expiry` tinyint(1) NOT NULL DEFAULT '0',
`expiry_type` enum('add_expiry','add_manufacturing') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'add_expiry',
`on_product_expiry` enum('keep_selling','stop_selling','auto_delete') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'keep_selling',
`stop_selling_before` int(11) NOT NULL COMMENT 'Stop selling expied item n days before expiry',
`enable_tooltip` tinyint(1) NOT NULL DEFAULT '1',
`purchase_in_diff_currency` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Allow purchase to be in different currency then the business currency',
`purchase_currency_id` int(10) unsigned DEFAULT NULL,
`p_exchange_rate` decimal(20,3) NOT NULL DEFAULT '1.000',
`transaction_edit_days` int(10) unsigned NOT NULL DEFAULT '30',
`stock_expiry_alert_days` int(10) unsigned NOT NULL DEFAULT '30',
`keyboard_shortcuts` text COLLATE utf8mb4_unicode_ci,
`pos_settings` text COLLATE utf8mb4_unicode_ci,
`essentials_settings` longtext COLLATE utf8mb4_unicode_ci,
`woocommerce_api_settings` text COLLATE utf8mb4_unicode_ci,
`woocommerce_skipped_orders` text COLLATE utf8mb4_unicode_ci,
`woocommerce_wh_oc_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`woocommerce_wh_ou_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`woocommerce_wh_od_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`woocommerce_wh_or_secret` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`weighing_scale_setting` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'used to store the configuration of weighing scale',
`enable_brand` tinyint(1) NOT NULL DEFAULT '1',
`enable_category` tinyint(1) NOT NULL DEFAULT '1',
`enable_sub_category` tinyint(1) NOT NULL DEFAULT '1',
`enable_price_tax` tinyint(1) NOT NULL DEFAULT '1',
`enable_purchase_status` tinyint(1) DEFAULT '1',
`enable_lot_number` tinyint(1) NOT NULL DEFAULT '0',
`default_unit` int(11) DEFAULT NULL,
`enable_sub_units` tinyint(1) NOT NULL DEFAULT '0',
`enable_racks` tinyint(1) NOT NULL DEFAULT '0',
`enable_row` tinyint(1) NOT NULL DEFAULT '0',
`enable_position` tinyint(1) NOT NULL DEFAULT '0',
`enable_editing_product_from_purchase` tinyint(1) NOT NULL DEFAULT '1',
`sales_cmsn_agnt` enum('logged_in_user','user','cmsn_agnt') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`item_addition_method` tinyint(1) NOT NULL DEFAULT '1',
`enable_inline_tax` tinyint(1) NOT NULL DEFAULT '1',
`currency_symbol_placement` enum('before','after') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'before',
`enabled_modules` text COLLATE utf8mb4_unicode_ci,
`date_format` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'm/d/Y',
`time_format` enum('12','24') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '24',
`ref_no_prefixes` text COLLATE utf8mb4_unicode_ci,
`theme_color` char(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` int(11) DEFAULT NULL,
`enable_rp` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`rp_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'rp is the short form of reward points',
`amount_for_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
`min_order_total_for_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
`max_rp_per_order` int(11) DEFAULT NULL COMMENT 'rp is the short form of reward points',
`redeem_amount_per_unit_rp` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
`min_order_total_for_redeem` decimal(22,4) NOT NULL DEFAULT '1.0000' COMMENT 'rp is the short form of reward points',
`min_redeem_point` int(11) DEFAULT NULL COMMENT 'rp is the short form of reward points',
`max_redeem_point` int(11) DEFAULT NULL COMMENT 'rp is the short form of reward points',
`rp_expiry_period` int(11) DEFAULT NULL COMMENT 'rp is the short form of reward points',
`rp_expiry_type` enum('month','year') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'year' COMMENT 'rp is the short form of reward points',
`email_settings` text COLLATE utf8mb4_unicode_ci,
`sms_settings` text COLLATE utf8mb4_unicode_ci,
`custom_labels` text COLLATE utf8mb4_unicode_ci,
`common_settings` text COLLATE utf8mb4_unicode_ci,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `business_owner_id_foreign` (`owner_id`),
KEY `business_currency_id_foreign` (`currency_id`),
KEY `business_default_sales_tax_foreign` (`default_sales_tax`),
CONSTRAINT `business_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`),
CONSTRAINT `business_default_sales_tax_foreign` FOREIGN KEY (`default_sales_tax`) REFERENCES `tax_rates` (`id`),
CONSTRAINT `business_owner_id_foreign` FOREIGN KEY (`owner_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `business`
--
LOCK TABLES `business` WRITE;
/*!40000 ALTER TABLE `business` DISABLE KEYS */;
INSERT INTO `business` (`id`, `name`, `currency_id`, `start_date`, `tax_number_1`, `tax_label_1`, `tax_number_2`, `tax_label_2`, `code_label_1`, `code_1`, `code_label_2`, `code_2`, `default_sales_tax`, `default_profit_percent`, `owner_id`, `time_zone`, `fy_start_month`, `accounting_method`, `default_sales_discount`, `sell_price_tax`, `logo`, `sku_prefix`, `enable_product_expiry`, `expiry_type`, `on_product_expiry`, `stop_selling_before`, `enable_tooltip`, `purchase_in_diff_currency`, `purchase_currency_id`, `p_exchange_rate`, `transaction_edit_days`, `stock_expiry_alert_days`, `keyboard_shortcuts`, `pos_settings`, `essentials_settings`, `woocommerce_api_settings`, `woocommerce_skipped_orders`, `woocommerce_wh_oc_secret`, `woocommerce_wh_ou_secret`, `woocommerce_wh_od_secret`, `woocommerce_wh_or_secret`, `weighing_scale_setting`, `enable_brand`, `enable_category`, `enable_sub_category`, `enable_price_tax`, `enable_purchase_status`, `enable_lot_number`, `default_unit`, `enable_sub_units`, `enable_racks`, `enable_row`, `enable_position`, `enable_editing_product_from_purchase`, `sales_cmsn_agnt`, `item_addition_method`, `enable_inline_tax`, `currency_symbol_placement`, `enabled_modules`, `date_format`, `time_format`, `ref_no_prefixes`, `theme_color`, `created_by`, `enable_rp`, `rp_name`, `amount_for_unit_rp`, `min_order_total_for_rp`, `max_rp_per_order`, `redeem_amount_per_unit_rp`, `min_order_total_for_redeem`, `min_redeem_point`, `max_redeem_point`, `rp_expiry_period`, `rp_expiry_type`, `email_settings`, `sms_settings`, `custom_labels`, `common_settings`, `is_active`, `created_at`, `updated_at`) VALUES (1,'US Cric Store POS',2,'2021-06-12',NULL,'GST',NULL,NULL,NULL,NULL,NULL,NULL,NULL,25.00,1,'Asia/Kolkata',1,'fifo',0.00,'includes',NULL,NULL,0,'add_expiry','keep_selling',0,1,0,NULL,1.000,30,30,'{\"pos\":{\"express_checkout\":\"shift+e\",\"pay_n_ckeckout\":\"shift+p\",\"draft\":\"shift+d\",\"cancel\":\"shift+c\",\"recent_product_quantity\":\"f2\",\"weighing_scale\":null,\"edit_discount\":\"shift+i\",\"edit_order_tax\":\"shift+t\",\"add_payment_row\":\"shift+r\",\"finalize_payment\":\"shift+f\",\"add_new_product\":\"f4\"}}','{\"amount_rounding_method\":\"1\",\"enable_msp\":\"1\",\"disable_order_tax\":\"1\",\"is_pos_subtotal_editable\":\"1\",\"enable_weighing_scale\":\"1\",\"show_pricing_on_product_sugesstion\":\"1\",\"cash_denominations\":null,\"disable_pay_checkout\":0,\"disable_draft\":0,\"disable_express_checkout\":0,\"hide_product_suggestion\":0,\"hide_recent_trans\":0,\"disable_discount\":0}',NULL,'{\"woocommerce_app_url\":\"https:\\/\\/medigrowmart.com\",\"woocommerce_consumer_key\":\"<KEY>\",\"woocommerce_consumer_secret\":\"cs_6e350bb1e487a8210faea3732bcdeafe923d146a\",\"location_id\":\"1\",\"enable_auto_sync\":\"1\",\"default_tax_class\":\"standard\",\"product_tax_type\":\"exc\",\"default_selling_price_group\":null,\"sync_description_as\":\"both\",\"product_fields_for_create\":[\"category\",\"quantity\",\"weight\",\"description\"],\"manage_stock_for_create\":\"none\",\"in_stock_for_create\":\"none\",\"product_fields_for_update\":[\"name\",\"price\",\"category\",\"quantity\",\"weight\",\"description\"],\"manage_stock_for_update\":\"none\",\"in_stock_for_update\":\"none\",\"order_statuses\":{\"pending\":\"draft\",\"processing\":\"final\",\"on-hold\":\"draft\",\"completed\":\"final\",\"cancelled\":\"draft\",\"refunded\":\"draft\",\"failed\":\"draft\",\"shipped\":\"quotation\"},\"woocommerce_wh_oc_secret\":\"cs_6e350bb1e487a8210faea3732bcdeafe923d146a\",\"woocommerce_wh_ou_secret\":\"cs_6e350bb1e487a8210faea3732bcdeafe923d146a\",\"woocommerce_wh_od_secret\":\"cs_6e350bb1e487a8210faea3732bcdeafe923d146a\",\"woocommerce_wh_or_secret\":\"cs_6e350bb1e487a8210faea3732bcdeafe923d146a\"}',NULL,'cs_6e350bb1e487a8210faea3732bcdeafe923d146a','cs_6e350bb1e487a8210faea3732bcdeafe923d146a','cs_6e350bb1e487a8210faea3732bcdeafe923d146a','cs_6e350bb1e487a8210faea3732bcdeafe923d146a','{\"label_prefix\":null,\"product_sku_length\":\"4\",\"qty_length\":\"3\",\"qty_length_decimal\":\"2\"}',1,1,1,1,1,1,1,1,0,0,0,1,NULL,0,0,'before','[\"purchases\",\"add_sale\",\"pos_sale\",\"stock_transfers\",\"stock_adjustment\",\"expenses\",\"account\",\"tables\",\"service_staff\",\"booking\"]','d/m/Y','12','{\"purchase\":\"PO\",\"purchase_return\":null,\"purchase_order\":null,\"stock_transfer\":\"ST\",\"stock_adjustment\":\"SA\",\"sell_return\":\"CN\",\"expense\":\"EP\",\"contacts\":\"CO\",\"purchase_payment\":\"PP\",\"sell_payment\":\"SP\",\"expense_payment\":null,\"business_location\":\"BL\",\"username\":null,\"subscription\":null,\"draft\":null,\"sales_order\":null}','black',NULL,0,'Reward card',1.0000,1.0000,50000000,1.0000,1.0000,1,1000000000,1,'year','{\"mail_driver\":\"smtp\",\"mail_host\":null,\"mail_port\":null,\"mail_username\":null,\"mail_password\":null,\"mail_encryption\":null,\"mail_from_address\":null,\"mail_from_name\":null}','{\"sms_service\":\"twilio\",\"nexmo_key\":null,\"nexmo_secret\":null,\"nexmo_from\":null,\"twilio_sid\":null,\"twilio_token\":null,\"twilio_from\":null,\"url\":null,\"send_to_param_name\":\"to\",\"msg_param_name\":\"text\",\"request_method\":\"post\",\"header_1\":null,\"header_val_1\":null,\"header_2\":null,\"header_val_2\":null,\"header_3\":null,\"header_val_3\":null,\"param_1\":null,\"param_val_1\":null,\"param_2\":null,\"param_val_2\":null,\"param_3\":null,\"param_val_3\":null,\"param_4\":null,\"param_val_4\":null,\"param_5\":null,\"param_val_5\":null,\"param_6\":null,\"param_val_6\":null,\"param_7\":null,\"param_val_7\":null,\"param_8\":null,\"param_val_8\":null,\"param_9\":null,\"param_val_9\":null,\"param_10\":null,\"param_val_10\":null}','{\"payments\":{\"custom_pay_1\":\"Paytm \\/ PhonePe\",\"custom_pay_2\":null,\"custom_pay_3\":null,\"custom_pay_4\":null,\"custom_pay_5\":null,\"custom_pay_6\":null,\"custom_pay_7\":null},\"contact\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null,\"custom_field_7\":null,\"custom_field_8\":null,\"custom_field_9\":null,\"custom_field_10\":null},\"product\":{\"custom_field_1\":\"Old\\/new Stock\",\"custom_field_2\":\"MRP\",\"custom_field_3\":null,\"custom_field_4\":null},\"location\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"user\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"purchase\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"sell\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null},\"shipping\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null},\"types_of_service\":{\"custom_field_1\":null,\"custom_field_2\":null,\"custom_field_3\":null,\"custom_field_4\":null,\"custom_field_5\":null,\"custom_field_6\":null}}','{\"enable_product_warranty\":\"1\",\"default_credit_limit\":null,\"default_datatable_page_entries\":\"25\"}',1,'2021-06-12 08:05:38','2021-11-15 16:42:25');
/*!40000 ALTER TABLE `business` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `business_locations`
--
DROP TABLE IF EXISTS `business_locations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `business_locations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`location_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(256) COLLATE utf8mb4_unicode_ci NOT NULL,
`landmark` text COLLATE utf8mb4_unicode_ci,
`country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`city` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`zip_code` char(7) COLLATE utf8mb4_unicode_ci NOT NULL,
`invoice_scheme_id` int(10) unsigned NOT NULL,
`invoice_layout_id` int(10) unsigned NOT NULL,
`sale_invoice_layout_id` int(11) DEFAULT NULL,
`selling_price_group_id` int(11) DEFAULT NULL,
`print_receipt_on_invoice` tinyint(1) DEFAULT '1',
`receipt_printer_type` enum('browser','printer') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'browser',
`printer_id` int(11) DEFAULT NULL,
`mobile` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`website` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`featured_products` text COLLATE utf8mb4_unicode_ci,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`default_payment_accounts` text COLLATE utf8mb4_unicode_ci,
`custom_field1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `business_locations_business_id_index` (`business_id`),
KEY `business_locations_invoice_scheme_id_foreign` (`invoice_scheme_id`),
KEY `business_locations_invoice_layout_id_foreign` (`invoice_layout_id`),
KEY `business_locations_sale_invoice_layout_id_index` (`sale_invoice_layout_id`),
KEY `business_locations_selling_price_group_id_index` (`selling_price_group_id`),
KEY `business_locations_receipt_printer_type_index` (`receipt_printer_type`),
KEY `business_locations_printer_id_index` (`printer_id`),
CONSTRAINT `business_locations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `business_locations_invoice_layout_id_foreign` FOREIGN KEY (`invoice_layout_id`) REFERENCES `invoice_layouts` (`id`) ON DELETE CASCADE,
CONSTRAINT `business_locations_invoice_scheme_id_foreign` FOREIGN KEY (`invoice_scheme_id`) REFERENCES `invoice_schemes` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `business_locations`
--
LOCK TABLES `business_locations` WRITE;
/*!40000 ALTER TABLE `business_locations` DISABLE KEYS */;
INSERT INTO `business_locations` (`id`, `business_id`, `location_id`, `name`, `landmark`, `country`, `state`, `city`, `zip_code`, `invoice_scheme_id`, `invoice_layout_id`, `sale_invoice_layout_id`, `selling_price_group_id`, `print_receipt_on_invoice`, `receipt_printer_type`, `printer_id`, `mobile`, `alternate_number`, `email`, `website`, `featured_products`, `is_active`, `default_payment_accounts`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,'BL0001','US Cricket Store','ABC','ABC','ABC','ABC','100000',1,1,1,NULL,1,'browser',NULL,NULL,NULL,NULL,'',NULL,1,'{\"cash\":{\"is_enabled\":\"1\",\"account\":null},\"card\":{\"is_enabled\":\"1\",\"account\":null},\"cheque\":{\"is_enabled\":\"1\",\"account\":null},\"bank_transfer\":{\"is_enabled\":\"1\",\"account\":null},\"other\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_1\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_2\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_3\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_4\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_5\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_6\":{\"is_enabled\":\"1\",\"account\":null},\"custom_pay_7\":{\"is_enabled\":\"1\",\"account\":null}}',NULL,NULL,NULL,NULL,NULL,'2021-06-12 08:05:38','2021-11-15 17:55:22');
/*!40000 ALTER TABLE `business_locations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cash_register_transactions`
--
DROP TABLE IF EXISTS `cash_register_transactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cash_register_transactions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cash_register_id` int(10) unsigned NOT NULL,
`amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`pay_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type` enum('debit','credit') COLLATE utf8mb4_unicode_ci NOT NULL,
`transaction_type` enum('initial','sell','transfer','refund') COLLATE utf8mb4_unicode_ci NOT NULL,
`transaction_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cash_register_transactions_cash_register_id_foreign` (`cash_register_id`),
KEY `cash_register_transactions_transaction_id_index` (`transaction_id`),
KEY `cash_register_transactions_type_index` (`type`),
KEY `cash_register_transactions_transaction_type_index` (`transaction_type`),
CONSTRAINT `cash_register_transactions_cash_register_id_foreign` FOREIGN KEY (`cash_register_id`) REFERENCES `cash_registers` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cash_register_transactions`
--
LOCK TABLES `cash_register_transactions` WRITE;
/*!40000 ALTER TABLE `cash_register_transactions` DISABLE KEYS */;
INSERT INTO `cash_register_transactions` (`id`, `cash_register_id`, `amount`, `pay_method`, `type`, `transaction_type`, `transaction_id`, `created_at`, `updated_at`) VALUES (1,3,28.0000,'cash','credit','sell',54,'2021-11-16 08:18:27','2021-11-16 08:18:27'),(2,3,0.0000,'cash','credit','sell',54,'2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `cash_register_transactions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `cash_registers`
--
DROP TABLE IF EXISTS `cash_registers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cash_registers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`location_id` int(11) DEFAULT NULL,
`user_id` int(10) unsigned DEFAULT NULL,
`status` enum('close','open') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open',
`closed_at` datetime DEFAULT NULL,
`closing_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`total_card_slips` int(11) NOT NULL DEFAULT '0',
`total_cheques` int(11) NOT NULL DEFAULT '0',
`denominations` text COLLATE utf8mb4_unicode_ci,
`closing_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cash_registers_business_id_foreign` (`business_id`),
KEY `cash_registers_user_id_foreign` (`user_id`),
KEY `cash_registers_location_id_index` (`location_id`),
CONSTRAINT `cash_registers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `cash_registers_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `cash_registers`
--
LOCK TABLES `cash_registers` WRITE;
/*!40000 ALTER TABLE `cash_registers` DISABLE KEYS */;
INSERT INTO `cash_registers` (`id`, `business_id`, `location_id`, `user_id`, `status`, `closed_at`, `closing_amount`, `total_card_slips`, `total_cheques`, `denominations`, `closing_note`, `created_at`, `updated_at`) VALUES (1,1,1,1,'close','2021-07-01 08:20:53',1375.0000,0,0,NULL,NULL,'2021-06-12 13:52:00','2021-07-01 02:50:53'),(2,1,1,1,'close','2021-07-04 00:50:06',1680.8400,0,0,NULL,NULL,'2021-07-02 08:16:00','2021-07-03 19:20:06'),(3,1,1,1,'open',NULL,0.0000,0,0,NULL,NULL,'2021-07-03 19:20:00','2021-07-03 19:20:18'),(4,1,1,3,'open',NULL,0.0000,0,0,NULL,NULL,'2021-09-14 09:19:00','2021-09-14 09:19:25'),(6,1,5,5,'open',NULL,0.0000,0,0,NULL,NULL,'2021-11-08 16:43:00','2021-11-08 16:43:45');
/*!40000 ALTER TABLE `cash_registers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `categories`
--
DROP TABLE IF EXISTS `categories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(10) unsigned NOT NULL,
`short_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` int(11) NOT NULL,
`created_by` int(10) unsigned NOT NULL,
`woocommerce_cat_id` int(11) DEFAULT NULL,
`category_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `categories_business_id_foreign` (`business_id`),
KEY `categories_created_by_foreign` (`created_by`),
KEY `categories_parent_id_index` (`parent_id`),
KEY `categories_woocommerce_cat_id_index` (`woocommerce_cat_id`),
CONSTRAINT `categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `categories_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=34 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `categories`
--
LOCK TABLES `categories` WRITE;
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` (`id`, `name`, `business_id`, `short_code`, `parent_id`, `created_by`, `woocommerce_cat_id`, `category_type`, `description`, `slug`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,'BAT',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:15:10','2021-11-15 16:15:10'),(2,'BALLS',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:15:38','2021-11-15 16:15:38'),(3,'BAT EQUIP',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:16:09','2021-11-15 16:16:09'),(4,'SHOES',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:16:24','2021-11-15 16:16:24'),(5,'KEEPERS',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:16:42','2021-11-15 16:16:42'),(6,'BAGS',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:16:57','2021-11-15 16:16:57'),(7,'ACCESSORIES',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:17:31','2021-11-15 16:17:31'),(8,'CLOTHING',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:17:45','2021-11-15 16:17:45'),(9,'Hats and Caps',1,NULL,8,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:18:55','2021-11-15 16:18:55'),(10,'Whites',1,NULL,8,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:19:19','2021-11-15 16:19:19'),(11,'Bat Care',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:20:47','2021-11-15 16:20:47'),(12,'Grips',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:21:00','2021-11-15 16:21:00'),(13,'Scoreboard',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:21:14','2021-11-15 16:21:14'),(14,'Umpiring Tools',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:21:56','2021-11-15 16:21:56'),(15,'Robo Arm',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:22:25','2021-11-15 16:22:25'),(16,'Training',1,NULL,8,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:22:42','2021-11-15 16:22:42'),(17,'Socks',1,NULL,7,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:22:57','2021-11-15 16:22:57'),(18,'Duffle Bags',1,NULL,6,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:24:00','2021-11-15 16:24:00'),(19,'Wheel Bags',1,NULL,6,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:24:18','2021-11-15 16:24:18'),(20,'Backpacks',1,NULL,6,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:24:38','2021-11-15 16:24:38'),(21,'Keeping Inners',1,NULL,5,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:26:01','2021-11-15 16:26:01'),(22,'Keeping Pads',1,NULL,5,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:26:14','2021-11-15 16:26:14'),(23,'Gloves',1,NULL,3,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:27:41','2021-11-15 16:27:41'),(24,'Batting Pads',1,NULL,3,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:27:53','2021-11-15 16:27:53'),(25,'Helmets',1,NULL,3,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:28:05','2021-11-15 16:28:05'),(26,'Protection',1,NULL,3,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 16:29:19','2021-11-15 16:29:19'),(27,'Adult',1,NULL,2,5,NULL,'product','Balls',NULL,'2021-11-15 16:36:43','2021-11-15 16:32:00','2021-11-15 16:36:43'),(28,'Kids',1,NULL,2,5,NULL,'product','Balls',NULL,'2021-11-15 16:37:16','2021-11-15 16:32:19','2021-11-15 16:37:16'),(29,'Bats',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 17:10:21','2021-11-15 17:10:21'),(30,'English Willow',1,NULL,29,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 17:10:21','2021-11-15 17:10:21'),(31,'Training Balls',1,NULL,2,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 17:40:10','2021-11-15 17:40:10'),(32,'Leather Balls',1,NULL,2,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 17:40:10','2021-11-15 17:40:10'),(33,'Batting Inners',1,NULL,0,5,NULL,'product',NULL,NULL,NULL,'2021-11-15 17:40:10','2021-11-15 17:40:10');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `categorizables`
--
DROP TABLE IF EXISTS `categorizables`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `categorizables` (
`category_id` int(11) NOT NULL,
`categorizable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`categorizable_id` bigint(20) unsigned NOT NULL,
KEY `categorizables_categorizable_type_categorizable_id_index` (`categorizable_type`,`categorizable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `categorizables`
--
LOCK TABLES `categorizables` WRITE;
/*!40000 ALTER TABLE `categorizables` DISABLE KEYS */;
/*!40000 ALTER TABLE `categorizables` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `contacts`
--
DROP TABLE IF EXISTS `contacts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `contacts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`supplier_business_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`prefix` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`middle_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`tax_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address_line_1` text COLLATE utf8mb4_unicode_ci,
`address_line_2` text COLLATE utf8mb4_unicode_ci,
`zip_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`dob` date DEFAULT NULL,
`mobile` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`landline` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alternate_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pay_term_number` int(11) DEFAULT NULL,
`pay_term_type` enum('days','months') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`credit_limit` decimal(22,4) DEFAULT NULL,
`created_by` int(10) unsigned NOT NULL,
`balance` decimal(22,4) NOT NULL DEFAULT '0.0000',
`total_rp` int(11) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`total_rp_used` int(11) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`total_rp_expired` int(11) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`shipping_address` text COLLATE utf8mb4_unicode_ci,
`shipping_custom_field_details` longtext COLLATE utf8mb4_unicode_ci,
`is_export` tinyint(1) NOT NULL DEFAULT '0',
`export_custom_field_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`export_custom_field_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`export_custom_field_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`export_custom_field_4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`export_custom_field_5` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`export_custom_field_6` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`position` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`customer_group_id` int(11) DEFAULT NULL,
`custom_field1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field5` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field6` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field7` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field8` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field9` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field10` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `contacts_business_id_foreign` (`business_id`),
KEY `contacts_created_by_foreign` (`created_by`),
KEY `contacts_type_index` (`type`),
KEY `contacts_contact_status_index` (`contact_status`),
CONSTRAINT `contacts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `contacts_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `contacts`
--
LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
INSERT INTO `contacts` (`id`, `business_id`, `type`, `supplier_business_name`, `name`, `prefix`, `first_name`, `middle_name`, `last_name`, `email`, `contact_id`, `contact_status`, `tax_number`, `city`, `state`, `country`, `address_line_1`, `address_line_2`, `zip_code`, `dob`, `mobile`, `landline`, `alternate_number`, `pay_term_number`, `pay_term_type`, `credit_limit`, `created_by`, `balance`, `total_rp`, `total_rp_used`, `total_rp_expired`, `is_default`, `shipping_address`, `shipping_custom_field_details`, `is_export`, `export_custom_field_1`, `export_custom_field_2`, `export_custom_field_3`, `export_custom_field_4`, `export_custom_field_5`, `export_custom_field_6`, `position`, `customer_group_id`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `custom_field5`, `custom_field6`, `custom_field7`, `custom_field8`, `custom_field9`, `custom_field10`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,'customer',NULL,'Walk-In Customer',NULL,NULL,NULL,NULL,NULL,'CO0001','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'',NULL,NULL,NULL,NULL,0.0000,1,0.0000,0,0,0,1,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(4,1,'customer',NULL,' <NAME>',NULL,'Tias',NULL,'Bera','<EMAIL>','CO0002','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8622024378',NULL,NULL,NULL,NULL,NULL,1,0.0000,125,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-13 13:56:36','2021-06-21 07:41:07','2021-11-13 13:56:36'),(5,1,'customer',NULL,' Tias ',NULL,'Tias',NULL,NULL,NULL,'CO0003','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8622024378',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-13 13:56:26','2021-07-03 19:06:58','2021-11-13 13:56:26'),(6,1,'supplier',NULL,' abc ',NULL,'abc',NULL,NULL,NULL,'CO0004','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2525252525',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-13 14:03:24','2021-07-03 19:24:04','2021-11-13 14:03:24'),(7,1,'supplier','Test Business',' Dev Datta',NULL,'Dev',NULL,'Datta','<EMAIL>','Test Dev Supplier','active',NULL,'Kolkata','West Bengal','India','Golf Green','Jadavpur','700095',NULL,'8918525196',NULL,NULL,NULL,'months',NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-01 10:20:53','2021-09-01 10:22:33'),(8,1,'customer','Test Business',' ',NULL,NULL,NULL,NULL,NULL,'Test Sourav Customer','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'8240716064',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-09-01 10:24:43','2021-09-01 10:24:43'),(10,1,'customer',NULL,' Tias ',NULL,'Tias',NULL,NULL,NULL,'CO0007','active',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'123456789',NULL,NULL,NULL,NULL,NULL,1,0.0000,0,0,0,0,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-16 08:18:04','2021-11-16 08:18:04');
/*!40000 ALTER TABLE `contacts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `currencies`
--
DROP TABLE IF EXISTS `currencies`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `currencies` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`country` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`currency` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`symbol` varchar(25) COLLATE utf8mb4_unicode_ci NOT NULL,
`thousand_separator` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`decimal_separator` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=142 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `currencies`
--
LOCK TABLES `currencies` WRITE;
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
INSERT INTO `currencies` (`id`, `country`, `currency`, `code`, `symbol`, `thousand_separator`, `decimal_separator`, `created_at`, `updated_at`) VALUES (1,'Albania','Leke','ALL','Lek',',','.',NULL,NULL),(2,'America','Dollars','USD','$',',','.',NULL,NULL),(3,'Afghanistan','Afghanis','AF','؋',',','.',NULL,NULL),(4,'Argentina','Pesos','ARS','$',',','.',NULL,NULL),(5,'Aruba','Guilders','AWG','ƒ',',','.',NULL,NULL),(6,'Australia','Dollars','AUD','$',',','.',NULL,NULL),(7,'Azerbaijan','New Manats','AZ','ман',',','.',NULL,NULL),(8,'Bahamas','Dollars','BSD','$',',','.',NULL,NULL),(9,'Barbados','Dollars','BBD','$',',','.',NULL,NULL),(10,'Belarus','Rubles','BYR','p.',',','.',NULL,NULL),(11,'Belgium','Euro','EUR','€',',','.',NULL,NULL),(12,'Beliz','Dollars','BZD','BZ$',',','.',NULL,NULL),(13,'Bermuda','Dollars','BMD','$',',','.',NULL,NULL),(14,'Bolivia','Bolivianos','BOB','$b',',','.',NULL,NULL),(15,'Bosnia and Herzegovina','Convertible Marka','BAM','KM',',','.',NULL,NULL),(16,'Botswana','Pula\'s','BWP','P',',','.',NULL,NULL),(17,'Bulgaria','Leva','BG','лв',',','.',NULL,NULL),(18,'Brazil','Reais','BRL','R$',',','.',NULL,NULL),(19,'Britain [United Kingdom]','Pounds','GBP','£',',','.',NULL,NULL),(20,'Brunei Darussalam','Dollars','BND','$',',','.',NULL,NULL),(21,'Cambodia','Riels','KHR','៛',',','.',NULL,NULL),(22,'Canada','Dollars','CAD','$',',','.',NULL,NULL),(23,'Cayman Islands','Dollars','KYD','$',',','.',NULL,NULL),(24,'Chile','Pesos','CLP','$',',','.',NULL,NULL),(25,'China','Yuan Renminbi','CNY','¥',',','.',NULL,NULL),(26,'Colombia','Pesos','COP','$',',','.',NULL,NULL),(27,'Costa Rica','Colón','CRC','₡',',','.',NULL,NULL),(28,'Croatia','Kuna','HRK','kn',',','.',NULL,NULL),(29,'Cuba','Pesos','CUP','₱',',','.',NULL,NULL),(30,'Cyprus','Euro','EUR','€','.',',',NULL,NULL),(31,'Czech Republic','Koruny','CZK','Kč',',','.',NULL,NULL),(32,'Denmark','Kroner','DKK','kr',',','.',NULL,NULL),(33,'Dominican Republic','Pesos','DOP ','RD$',',','.',NULL,NULL),(34,'East Caribbean','Dollars','XCD','$',',','.',NULL,NULL),(35,'Egypt','Pounds','EGP','£',',','.',NULL,NULL),(36,'El Salvador','Colones','SVC','$',',','.',NULL,NULL),(37,'England [United Kingdom]','Pounds','GBP','£',',','.',NULL,NULL),(38,'Euro','Euro','EUR','€','.',',',NULL,NULL),(39,'Falkland Islands','Pounds','FKP','£',',','.',NULL,NULL),(40,'Fiji','Dollars','FJD','$',',','.',NULL,NULL),(41,'France','Euro','EUR','€','.',',',NULL,NULL),(42,'Ghana','Cedis','GHS','¢',',','.',NULL,NULL),(43,'Gibraltar','Pounds','GIP','£',',','.',NULL,NULL),(44,'Greece','Euro','EUR','€','.',',',NULL,NULL),(45,'Guatemala','Quetzales','GTQ','Q',',','.',NULL,NULL),(46,'Guernsey','Pounds','GGP','£',',','.',NULL,NULL),(47,'Guyana','Dollars','GYD','$',',','.',NULL,NULL),(48,'Holland [Netherlands]','Euro','EUR','€','.',',',NULL,NULL),(49,'Honduras','Lempiras','HNL','L',',','.',NULL,NULL),(50,'Hong Kong','Dollars','HKD','$',',','.',NULL,NULL),(51,'Hungary','Forint','HUF','Ft',',','.',NULL,NULL),(52,'Iceland','Kronur','ISK','kr',',','.',NULL,NULL),(53,'India','Rupees','INR','₹',',','.',NULL,NULL),(54,'Indonesia','Rupiahs','IDR','Rp',',','.',NULL,NULL),(55,'Iran','Rials','IRR','﷼',',','.',NULL,NULL),(56,'Ireland','Euro','EUR','€','.',',',NULL,NULL),(57,'Isle of Man','Pounds','IMP','£',',','.',NULL,NULL),(58,'Israel','New Shekels','ILS','₪',',','.',NULL,NULL),(59,'Italy','Euro','EUR','€','.',',',NULL,NULL),(60,'Jamaica','Dollars','JMD','J$',',','.',NULL,NULL),(61,'Japan','Yen','JPY','¥',',','.',NULL,NULL),(62,'Jersey','Pounds','JEP','£',',','.',NULL,NULL),(63,'Kazakhstan','Tenge','KZT','лв',',','.',NULL,NULL),(64,'Korea [North]','Won','KPW','₩',',','.',NULL,NULL),(65,'Korea [South]','Won','KRW','₩',',','.',NULL,NULL),(66,'Kyrgyzstan','Soms','KGS','лв',',','.',NULL,NULL),(67,'Laos','Kips','LAK','₭',',','.',NULL,NULL),(68,'Latvia','Lati','LVL','Ls',',','.',NULL,NULL),(69,'Lebanon','Pounds','LBP','£',',','.',NULL,NULL),(70,'Liberia','Dollars','LRD','$',',','.',NULL,NULL),(71,'Liechtenstein','Switzerland Francs','CHF','CHF',',','.',NULL,NULL),(72,'Lithuania','Litai','LTL','Lt',',','.',NULL,NULL),(73,'Luxembourg','Euro','EUR','€','.',',',NULL,NULL),(74,'Macedonia','Denars','MKD','ден',',','.',NULL,NULL),(75,'Malaysia','Ringgits','MYR','RM',',','.',NULL,NULL),(76,'Malta','Euro','EUR','€','.',',',NULL,NULL),(77,'Mauritius','Rupees','MUR','₨',',','.',NULL,NULL),(78,'Mexico','Pesos','MXN','$',',','.',NULL,NULL),(79,'Mongolia','Tugriks','MNT','₮',',','.',NULL,NULL),(80,'Mozambique','Meticais','MZ','MT',',','.',NULL,NULL),(81,'Namibia','Dollars','NAD','$',',','.',NULL,NULL),(82,'Nepal','Rupees','NPR','₨',',','.',NULL,NULL),(83,'Netherlands Antilles','Guilders','ANG','ƒ',',','.',NULL,NULL),(84,'Netherlands','Euro','EUR','€','.',',',NULL,NULL),(85,'New Zealand','Dollars','NZD','$',',','.',NULL,NULL),(86,'Nicaragua','Cordobas','NIO','C$',',','.',NULL,NULL),(87,'Nigeria','Nairas','NGN','₦',',','.',NULL,NULL),(88,'North Korea','Won','KPW','₩',',','.',NULL,NULL),(89,'Norway','Krone','NOK','kr',',','.',NULL,NULL),(90,'Oman','Rials','OMR','﷼',',','.',NULL,NULL),(91,'Pakistan','Rupees','PKR','₨',',','.',NULL,NULL),(92,'Panama','Balboa','PAB','B/.',',','.',NULL,NULL),(93,'Paraguay','Guarani','PYG','Gs',',','.',NULL,NULL),(94,'Peru','Nuevos Soles','PE','S/.',',','.',NULL,NULL),(95,'Philippines','Pesos','PHP','Php',',','.',NULL,NULL),(96,'Poland','Zlotych','PL','zł',',','.',NULL,NULL),(97,'Qatar','Rials','QAR','﷼',',','.',NULL,NULL),(98,'Romania','New Lei','RO','lei',',','.',NULL,NULL),(99,'Russia','Rubles','RUB','руб',',','.',NULL,NULL),(100,'Saint Helena','Pounds','SHP','£',',','.',NULL,NULL),(101,'Saudi Arabia','Riyals','SAR','﷼',',','.',NULL,NULL),(102,'Serbia','Dinars','RSD','Дин.',',','.',NULL,NULL),(103,'Seychelles','Rupees','SCR','₨',',','.',NULL,NULL),(104,'Singapore','Dollars','SGD','$',',','.',NULL,NULL),(105,'Slovenia','Euro','EUR','€','.',',',NULL,NULL),(106,'Solomon Islands','Dollars','SBD','$',',','.',NULL,NULL),(107,'Somalia','Shillings','SOS','S',',','.',NULL,NULL),(108,'South Africa','Rand','ZAR','R',',','.',NULL,NULL),(109,'South Korea','Won','KRW','₩',',','.',NULL,NULL),(110,'Spain','Euro','EUR','€','.',',',NULL,NULL),(111,'Sri Lanka','Rupees','LKR','₨',',','.',NULL,NULL),(112,'Sweden','Kronor','SEK','kr',',','.',NULL,NULL),(113,'Switzerland','Francs','CHF','CHF',',','.',NULL,NULL),(114,'Suriname','Dollars','SRD','$',',','.',NULL,NULL),(115,'Syria','Pounds','SYP','£',',','.',NULL,NULL),(116,'Taiwan','New Dollars','TWD','NT$',',','.',NULL,NULL),(117,'Thailand','Baht','THB','฿',',','.',NULL,NULL),(118,'Trinidad and Tobago','Dollars','TTD','TT$',',','.',NULL,NULL),(119,'Turkey','Lira','TRY','TL',',','.',NULL,NULL),(120,'Turkey','Liras','TRL','£',',','.',NULL,NULL),(121,'Tuvalu','Dollars','TVD','$',',','.',NULL,NULL),(122,'Ukraine','Hryvnia','UAH','₴',',','.',NULL,NULL),(123,'United Kingdom','Pounds','GBP','£',',','.',NULL,NULL),(124,'United States of America','Dollars','USD','$',',','.',NULL,NULL),(125,'Uruguay','Pesos','UYU','$U',',','.',NULL,NULL),(126,'Uzbekistan','Sums','UZS','лв',',','.',NULL,NULL),(127,'Vatican City','Euro','EUR','€','.',',',NULL,NULL),(128,'Venezuela','Bolivares Fuertes','VEF','Bs',',','.',NULL,NULL),(129,'Vietnam','Dong','VND','₫',',','.',NULL,NULL),(130,'Yemen','Rials','YER','﷼',',','.',NULL,NULL),(131,'Zimbabwe','Zimbabwe Dollars','ZWD','Z$',',','.',NULL,NULL),(132,'Iraq','Iraqi dinar','IQD','د.ع',',','.',NULL,NULL),(133,'Kenya','Kenyan shilling','KES','KSh',',','.',NULL,NULL),(134,'Bangladesh','Taka','BDT','৳',',','.',NULL,NULL),(135,'Algerie','Algerian dinar','DZD','د.ج',' ','.',NULL,NULL),(136,'United Arab Emirates','United Arab Emirates dirham','AED','د.إ',',','.',NULL,NULL),(137,'Uganda','Uganda shillings','UGX','USh',',','.',NULL,NULL),(138,'Tanzania','Tanzanian shilling','TZS','TSh',',','.',NULL,NULL),(139,'Angola','Kwanza','AOA','Kz',',','.',NULL,NULL),(140,'Kuwait','Kuwaiti dinar','KWD','KD',',','.',NULL,NULL),(141,'Bahrain','Bahraini dinar','BHD','BD',',','.',NULL,NULL);
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `customer_groups`
--
DROP TABLE IF EXISTS `customer_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `customer_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(5,2) NOT NULL,
`price_calculation_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT 'percentage',
`selling_price_group_id` int(11) DEFAULT NULL,
`created_by` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `customer_groups_business_id_foreign` (`business_id`),
KEY `customer_groups_created_by_index` (`created_by`),
KEY `customer_groups_price_calculation_type_index` (`price_calculation_type`),
KEY `customer_groups_selling_price_group_id_index` (`selling_price_group_id`),
CONSTRAINT `customer_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `customer_groups`
--
LOCK TABLES `customer_groups` WRITE;
/*!40000 ALTER TABLE `customer_groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `customer_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `dashboard_configurations`
--
DROP TABLE IF EXISTS `dashboard_configurations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `dashboard_configurations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`created_by` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`color` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`configuration` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `dashboard_configurations_business_id_foreign` (`business_id`),
CONSTRAINT `dashboard_configurations_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `dashboard_configurations`
--
LOCK TABLES `dashboard_configurations` WRITE;
/*!40000 ALTER TABLE `dashboard_configurations` DISABLE KEYS */;
/*!40000 ALTER TABLE `dashboard_configurations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `discount_variations`
--
DROP TABLE IF EXISTS `discount_variations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discount_variations` (
`discount_id` int(11) NOT NULL,
`variation_id` int(11) NOT NULL,
KEY `discount_variations_discount_id_index` (`discount_id`),
KEY `discount_variations_variation_id_index` (`variation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `discount_variations`
--
LOCK TABLES `discount_variations` WRITE;
/*!40000 ALTER TABLE `discount_variations` DISABLE KEYS */;
/*!40000 ALTER TABLE `discount_variations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `discounts`
--
DROP TABLE IF EXISTS `discounts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `discounts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(11) NOT NULL,
`brand_id` int(11) DEFAULT NULL,
`category_id` int(11) DEFAULT NULL,
`location_id` int(11) DEFAULT NULL,
`priority` int(11) DEFAULT NULL,
`discount_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`discount_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`starts_at` datetime DEFAULT NULL,
`ends_at` datetime DEFAULT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`applicable_in_spg` tinyint(1) DEFAULT '0',
`applicable_in_cg` tinyint(1) DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `discounts_business_id_index` (`business_id`),
KEY `discounts_brand_id_index` (`brand_id`),
KEY `discounts_category_id_index` (`category_id`),
KEY `discounts_location_id_index` (`location_id`),
KEY `discounts_priority_index` (`priority`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `discounts`
--
LOCK TABLES `discounts` WRITE;
/*!40000 ALTER TABLE `discounts` DISABLE KEYS */;
/*!40000 ALTER TABLE `discounts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `document_and_notes`
--
DROP TABLE IF EXISTS `document_and_notes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `document_and_notes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`notable_id` int(11) NOT NULL,
`notable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`heading` text COLLATE utf8mb4_unicode_ci,
`description` text COLLATE utf8mb4_unicode_ci,
`is_private` tinyint(1) NOT NULL DEFAULT '0',
`created_by` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `document_and_notes_business_id_index` (`business_id`),
KEY `document_and_notes_notable_id_index` (`notable_id`),
KEY `document_and_notes_created_by_index` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `document_and_notes`
--
LOCK TABLES `document_and_notes` WRITE;
/*!40000 ALTER TABLE `document_and_notes` DISABLE KEYS */;
/*!40000 ALTER TABLE `document_and_notes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_allowances_and_deductions`
--
DROP TABLE IF EXISTS `essentials_allowances_and_deductions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_allowances_and_deductions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`description` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` enum('allowance','deduction') COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` decimal(22,4) NOT NULL,
`amount_type` enum('fixed','percent') COLLATE utf8mb4_unicode_ci NOT NULL,
`applicable_date` date DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_allowances_and_deductions_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_allowances_and_deductions`
--
LOCK TABLES `essentials_allowances_and_deductions` WRITE;
/*!40000 ALTER TABLE `essentials_allowances_and_deductions` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_allowances_and_deductions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_attendances`
--
DROP TABLE IF EXISTS `essentials_attendances`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_attendances` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`business_id` int(11) NOT NULL,
`clock_in_time` datetime DEFAULT NULL,
`clock_out_time` datetime DEFAULT NULL,
`essentials_shift_id` int(11) DEFAULT NULL,
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`clock_in_note` text COLLATE utf8mb4_unicode_ci,
`clock_out_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_attendances_user_id_index` (`user_id`),
KEY `essentials_attendances_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_attendances`
--
LOCK TABLES `essentials_attendances` WRITE;
/*!40000 ALTER TABLE `essentials_attendances` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_attendances` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_document_shares`
--
DROP TABLE IF EXISTS `essentials_document_shares`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_document_shares` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`document_id` int(11) NOT NULL,
`value_type` enum('user','role') COLLATE utf8mb4_unicode_ci NOT NULL,
`value` int(11) NOT 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 `essentials_document_shares`
--
LOCK TABLES `essentials_document_shares` WRITE;
/*!40000 ALTER TABLE `essentials_document_shares` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_document_shares` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_documents`
--
DROP TABLE IF EXISTS `essentials_documents`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_documents` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(191) 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 `essentials_documents`
--
LOCK TABLES `essentials_documents` WRITE;
/*!40000 ALTER TABLE `essentials_documents` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_documents` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_holidays`
--
DROP TABLE IF EXISTS `essentials_holidays`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_holidays` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`business_id` int(11) NOT NULL,
`location_id` int(11) DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_holidays_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_holidays`
--
LOCK TABLES `essentials_holidays` WRITE;
/*!40000 ALTER TABLE `essentials_holidays` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_holidays` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_kb`
--
DROP TABLE IF EXISTS `essentials_kb`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_kb` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`business_id` bigint(20) unsigned NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`kb_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`parent_id` bigint(20) unsigned DEFAULT NULL COMMENT 'id from essentials_kb table',
`share_with` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'public, private, only_with',
`created_by` bigint(20) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_kb_parent_id_foreign` (`parent_id`),
CONSTRAINT `essentials_kb_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `essentials_kb` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_kb`
--
LOCK TABLES `essentials_kb` WRITE;
/*!40000 ALTER TABLE `essentials_kb` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_kb` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_kb_users`
--
DROP TABLE IF EXISTS `essentials_kb_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_kb_users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`kb_id` int(11) NOT NULL,
`user_id` int(11) NOT 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 `essentials_kb_users`
--
LOCK TABLES `essentials_kb_users` WRITE;
/*!40000 ALTER TABLE `essentials_kb_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_kb_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_leave_types`
--
DROP TABLE IF EXISTS `essentials_leave_types`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_leave_types` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`leave_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`max_leave_count` int(11) DEFAULT NULL,
`leave_count_interval` enum('month','year') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`business_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_leave_types_business_id_index` (`business_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_leave_types`
--
LOCK TABLES `essentials_leave_types` WRITE;
/*!40000 ALTER TABLE `essentials_leave_types` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_leave_types` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_leaves`
--
DROP TABLE IF EXISTS `essentials_leaves`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_leaves` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`essentials_leave_type_id` int(11) DEFAULT NULL,
`business_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`ref_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('pending','approved','cancelled') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reason` text COLLATE utf8mb4_unicode_ci,
`status_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_leaves_essentials_leave_type_id_index` (`essentials_leave_type_id`),
KEY `essentials_leaves_business_id_index` (`business_id`),
KEY `essentials_leaves_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_leaves`
--
LOCK TABLES `essentials_leaves` WRITE;
/*!40000 ALTER TABLE `essentials_leaves` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_leaves` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_messages`
--
DROP TABLE IF EXISTS `essentials_messages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_messages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
`location_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_messages`
--
LOCK TABLES `essentials_messages` WRITE;
/*!40000 ALTER TABLE `essentials_messages` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_messages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_reminders`
--
DROP TABLE IF EXISTS `essentials_reminders`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_reminders` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`date` date NOT NULL,
`time` time NOT NULL,
`end_time` time DEFAULT NULL,
`repeat` enum('one_time','every_day','every_week','every_month') COLLATE utf8mb4_unicode_ci NOT 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 `essentials_reminders`
--
LOCK TABLES `essentials_reminders` WRITE;
/*!40000 ALTER TABLE `essentials_reminders` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_reminders` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_shifts`
--
DROP TABLE IF EXISTS `essentials_shifts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_shifts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` enum('fixed_shift','flexible_shift') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'fixed_shift',
`business_id` int(11) NOT NULL,
`start_time` time DEFAULT NULL,
`end_time` time DEFAULT NULL,
`holidays` 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 `essentials_shifts`
--
LOCK TABLES `essentials_shifts` WRITE;
/*!40000 ALTER TABLE `essentials_shifts` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_shifts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_to_dos`
--
DROP TABLE IF EXISTS `essentials_to_dos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_to_dos` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`task` text COLLATE utf8mb4_unicode_ci NOT NULL,
`date` datetime DEFAULT NULL,
`end_date` datetime DEFAULT NULL,
`task_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`estimated_hours` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`priority` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_to_dos_status_index` (`status`),
KEY `essentials_to_dos_priority_index` (`priority`),
KEY `essentials_to_dos_created_by_index` (`created_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_to_dos`
--
LOCK TABLES `essentials_to_dos` WRITE;
/*!40000 ALTER TABLE `essentials_to_dos` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_to_dos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_todo_comments`
--
DROP TABLE IF EXISTS `essentials_todo_comments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_todo_comments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`comment` text COLLATE utf8mb4_unicode_ci NOT NULL,
`task_id` int(11) NOT NULL,
`comment_by` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `essentials_todo_comments_task_id_index` (`task_id`),
KEY `essentials_todo_comments_comment_by_index` (`comment_by`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_todo_comments`
--
LOCK TABLES `essentials_todo_comments` WRITE;
/*!40000 ALTER TABLE `essentials_todo_comments` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_todo_comments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_todos_users`
--
DROP TABLE IF EXISTS `essentials_todos_users`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_todos_users` (
`todo_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_todos_users`
--
LOCK TABLES `essentials_todos_users` WRITE;
/*!40000 ALTER TABLE `essentials_todos_users` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_todos_users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_user_allowance_and_deductions`
--
DROP TABLE IF EXISTS `essentials_user_allowance_and_deductions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_user_allowance_and_deductions` (
`user_id` int(11) NOT NULL,
`allowance_deduction_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `essentials_user_allowance_and_deductions`
--
LOCK TABLES `essentials_user_allowance_and_deductions` WRITE;
/*!40000 ALTER TABLE `essentials_user_allowance_and_deductions` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_user_allowance_and_deductions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `essentials_user_shifts`
--
DROP TABLE IF EXISTS `essentials_user_shifts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `essentials_user_shifts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`essentials_shift_id` int(11) NOT NULL,
`start_date` date DEFAULT NULL,
`end_date` date 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 `essentials_user_shifts`
--
LOCK TABLES `essentials_user_shifts` WRITE;
/*!40000 ALTER TABLE `essentials_user_shifts` DISABLE KEYS */;
/*!40000 ALTER TABLE `essentials_user_shifts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `expense_categories`
--
DROP TABLE IF EXISTS `expense_categories`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `expense_categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(10) unsigned NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `expense_categories_business_id_foreign` (`business_id`),
CONSTRAINT `expense_categories_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `expense_categories`
--
LOCK TABLES `expense_categories` WRITE;
/*!40000 ALTER TABLE `expense_categories` DISABLE KEYS */;
/*!40000 ALTER TABLE `expense_categories` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `group_sub_taxes`
--
DROP TABLE IF EXISTS `group_sub_taxes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `group_sub_taxes` (
`group_tax_id` int(10) unsigned NOT NULL,
`tax_id` int(10) unsigned NOT NULL,
KEY `group_sub_taxes_group_tax_id_foreign` (`group_tax_id`),
KEY `group_sub_taxes_tax_id_foreign` (`tax_id`),
CONSTRAINT `group_sub_taxes_group_tax_id_foreign` FOREIGN KEY (`group_tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
CONSTRAINT `group_sub_taxes_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `group_sub_taxes`
--
LOCK TABLES `group_sub_taxes` WRITE;
/*!40000 ALTER TABLE `group_sub_taxes` DISABLE KEYS */;
/*!40000 ALTER TABLE `group_sub_taxes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invoice_layouts`
--
DROP TABLE IF EXISTS `invoice_layouts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_layouts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`header_text` text COLLATE utf8mb4_unicode_ci,
`invoice_no_prefix` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quotation_no_prefix` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invoice_heading` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_heading_line1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_heading_line2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_heading_line3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_heading_line4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_heading_line5` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invoice_heading_not_paid` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invoice_heading_paid` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quotation_heading` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_total_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`discount_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`tax_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`round_off_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_due_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`paid_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_client_id` tinyint(1) NOT NULL DEFAULT '0',
`client_id_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`client_tax_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`date_time_format` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_time` tinyint(1) NOT NULL DEFAULT '1',
`show_brand` tinyint(1) NOT NULL DEFAULT '0',
`show_sku` tinyint(1) NOT NULL DEFAULT '1',
`show_cat_code` tinyint(1) NOT NULL DEFAULT '1',
`show_expiry` tinyint(1) NOT NULL DEFAULT '0',
`show_lot` tinyint(1) NOT NULL DEFAULT '0',
`show_image` tinyint(1) NOT NULL DEFAULT '0',
`show_sale_description` tinyint(1) NOT NULL DEFAULT '0',
`sales_person_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_sales_person` tinyint(1) NOT NULL DEFAULT '0',
`table_product_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`table_qty_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`table_unit_price_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`table_subtotal_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cat_code_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_logo` tinyint(1) NOT NULL DEFAULT '0',
`show_business_name` tinyint(1) NOT NULL DEFAULT '0',
`show_location_name` tinyint(1) NOT NULL DEFAULT '1',
`show_landmark` tinyint(1) NOT NULL DEFAULT '1',
`show_city` tinyint(1) NOT NULL DEFAULT '1',
`show_state` tinyint(1) NOT NULL DEFAULT '1',
`show_zip_code` tinyint(1) NOT NULL DEFAULT '1',
`show_country` tinyint(1) NOT NULL DEFAULT '1',
`show_mobile_number` tinyint(1) NOT NULL DEFAULT '1',
`show_alternate_number` tinyint(1) NOT NULL DEFAULT '0',
`show_email` tinyint(1) NOT NULL DEFAULT '0',
`show_tax_1` tinyint(1) NOT NULL DEFAULT '1',
`show_tax_2` tinyint(1) NOT NULL DEFAULT '0',
`show_barcode` tinyint(1) NOT NULL DEFAULT '0',
`show_payments` tinyint(1) NOT NULL DEFAULT '0',
`show_customer` tinyint(1) NOT NULL DEFAULT '0',
`customer_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`show_reward_point` tinyint(1) NOT NULL DEFAULT '0',
`highlight_color` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`footer_text` text COLLATE utf8mb4_unicode_ci,
`module_info` text COLLATE utf8mb4_unicode_ci,
`common_settings` text COLLATE utf8mb4_unicode_ci,
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`business_id` int(10) unsigned NOT NULL,
`design` varchar(190) COLLATE utf8mb4_unicode_ci DEFAULT 'classic',
`cn_heading` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'cn = credit note',
`cn_no_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cn_amount_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`table_tax_headings` text COLLATE utf8mb4_unicode_ci,
`show_previous_bal` tinyint(1) NOT NULL DEFAULT '0',
`prev_bal_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`change_return_label` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_custom_fields` text COLLATE utf8mb4_unicode_ci,
`contact_custom_fields` text COLLATE utf8mb4_unicode_ci,
`location_custom_fields` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `invoice_layouts_business_id_foreign` (`business_id`),
CONSTRAINT `invoice_layouts_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invoice_layouts`
--
LOCK TABLES `invoice_layouts` WRITE;
/*!40000 ALTER TABLE `invoice_layouts` DISABLE KEYS */;
INSERT INTO `invoice_layouts` (`id`, `name`, `header_text`, `invoice_no_prefix`, `quotation_no_prefix`, `invoice_heading`, `sub_heading_line1`, `sub_heading_line2`, `sub_heading_line3`, `sub_heading_line4`, `sub_heading_line5`, `invoice_heading_not_paid`, `invoice_heading_paid`, `quotation_heading`, `sub_total_label`, `discount_label`, `tax_label`, `total_label`, `round_off_label`, `total_due_label`, `paid_label`, `show_client_id`, `client_id_label`, `client_tax_label`, `date_label`, `date_time_format`, `show_time`, `show_brand`, `show_sku`, `show_cat_code`, `show_expiry`, `show_lot`, `show_image`, `show_sale_description`, `sales_person_label`, `show_sales_person`, `table_product_label`, `table_qty_label`, `table_unit_price_label`, `table_subtotal_label`, `cat_code_label`, `logo`, `show_logo`, `show_business_name`, `show_location_name`, `show_landmark`, `show_city`, `show_state`, `show_zip_code`, `show_country`, `show_mobile_number`, `show_alternate_number`, `show_email`, `show_tax_1`, `show_tax_2`, `show_barcode`, `show_payments`, `show_customer`, `customer_label`, `show_reward_point`, `highlight_color`, `footer_text`, `module_info`, `common_settings`, `is_default`, `business_id`, `design`, `cn_heading`, `cn_no_label`, `cn_amount_label`, `table_tax_headings`, `show_previous_bal`, `prev_bal_label`, `change_return_label`, `product_custom_fields`, `contact_custom_fields`, `location_custom_fields`, `created_at`, `updated_at`) VALUES (1,'Default',NULL,'Invoice No.',NULL,'Invoice',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'Subtotal','Discount','Tax','Total',NULL,'Total Due','Total Paid',0,NULL,NULL,'Date',NULL,1,0,0,1,0,0,0,0,NULL,0,'Product','Quantity','Unit Price','Subtotal',NULL,NULL,0,0,1,1,1,1,1,1,1,0,0,1,0,0,1,1,'Customer',0,'#000000',NULL,NULL,'{\"due_date_label\":null,\"total_quantity_label\":null,\"item_discount_label\":null,\"num_to_word_format\":\"international\"}',1,1,'classic',NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,'2021-06-12 08:05:38','2021-07-11 13:43:27');
/*!40000 ALTER TABLE `invoice_layouts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `invoice_schemes`
--
DROP TABLE IF EXISTS `invoice_schemes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `invoice_schemes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`scheme_type` enum('blank','year') COLLATE utf8mb4_unicode_ci NOT NULL,
`prefix` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`start_number` int(11) DEFAULT NULL,
`invoice_count` int(11) NOT NULL DEFAULT '0',
`total_digits` int(11) DEFAULT NULL,
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `invoice_schemes_business_id_foreign` (`business_id`),
KEY `invoice_schemes_scheme_type_index` (`scheme_type`),
CONSTRAINT `invoice_schemes_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `invoice_schemes`
--
LOCK TABLES `invoice_schemes` WRITE;
/*!40000 ALTER TABLE `invoice_schemes` DISABLE KEYS */;
INSERT INTO `invoice_schemes` (`id`, `business_id`, `name`, `scheme_type`, `prefix`, `start_number`, `invoice_count`, `total_digits`, `is_default`, `created_at`, `updated_at`) VALUES (1,1,'Default','blank','',1,42,4,1,'2021-06-12 08:05:38','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `invoice_schemes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `media`
--
DROP TABLE IF EXISTS `media`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `media` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`uploaded_by` int(11) DEFAULT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`woocommerce_media_id` int(11) DEFAULT NULL,
`model_media_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`model_id` bigint(20) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `media_model_type_model_id_index` (`model_type`,`model_id`),
KEY `media_business_id_index` (`business_id`),
KEY `media_uploaded_by_index` (`uploaded_by`),
KEY `media_woocommerce_media_id_index` (`woocommerce_media_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `media`
--
LOCK TABLES `media` WRITE;
/*!40000 ALTER TABLE `media` DISABLE KEYS */;
/*!40000 ALTER TABLE `media` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `migrations`
--
DROP TABLE IF EXISTS `migrations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=321 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` (`id`, `migration`, `batch`) VALUES (1,'2014_10_12_000000_create_users_table',1),(2,'2014_10_12_100000_create_password_resets_table',1),(3,'2016_06_01_000001_create_oauth_auth_codes_table',1),(4,'2016_06_01_000002_create_oauth_access_tokens_table',1),(5,'2016_06_01_000003_create_oauth_refresh_tokens_table',1),(6,'2016_06_01_000004_create_oauth_clients_table',1),(7,'2016_06_01_000005_create_oauth_personal_access_clients_table',1),(8,'2017_07_05_071953_create_currencies_table',1),(9,'2017_07_05_073658_create_business_table',1),(10,'2017_07_22_075923_add_business_id_users_table',1),(11,'2017_07_23_113209_create_brands_table',1),(12,'2017_07_26_083429_create_permission_tables',1),(13,'2017_07_26_110000_create_tax_rates_table',1),(14,'2017_07_26_122313_create_units_table',1),(15,'2017_07_27_075706_create_contacts_table',1),(16,'2017_08_04_071038_create_categories_table',1),(17,'2017_08_08_115903_create_products_table',1),(18,'2017_08_09_061616_create_variation_templates_table',1),(19,'2017_08_09_061638_create_variation_value_templates_table',1),(20,'2017_08_10_061146_create_product_variations_table',1),(21,'2017_08_10_061216_create_variations_table',1),(22,'2017_08_19_054827_create_transactions_table',1),(23,'2017_08_31_073533_create_purchase_lines_table',1),(24,'2017_10_15_064638_create_transaction_payments_table',1),(25,'2017_10_31_065621_add_default_sales_tax_to_business_table',1),(26,'2017_11_20_051930_create_table_group_sub_taxes',1),(27,'2017_11_20_063603_create_transaction_sell_lines',1),(28,'2017_11_21_064540_create_barcodes_table',1),(29,'2017_11_23_181237_create_invoice_schemes_table',1),(30,'2017_12_25_122822_create_business_locations_table',1),(31,'2017_12_25_160253_add_location_id_to_transactions_table',1),(32,'2017_12_25_163227_create_variation_location_details_table',1),(33,'2018_01_04_115627_create_sessions_table',1),(34,'2018_01_05_112817_create_invoice_layouts_table',1),(35,'2018_01_06_112303_add_invoice_scheme_id_and_invoice_layout_id_to_business_locations',1),(36,'2018_01_08_104124_create_expense_categories_table',1),(37,'2018_01_08_123327_modify_transactions_table_for_expenses',1),(38,'2018_01_09_111005_modify_payment_status_in_transactions_table',1),(39,'2018_01_09_111109_add_paid_on_column_to_transaction_payments_table',1),(40,'2018_01_25_172439_add_printer_related_fields_to_business_locations_table',1),(41,'2018_01_27_184322_create_printers_table',1),(42,'2018_01_30_181442_create_cash_registers_table',1),(43,'2018_01_31_125836_create_cash_register_transactions_table',1),(44,'2018_02_07_173326_modify_business_table',1),(45,'2018_02_08_105425_add_enable_product_expiry_column_to_business_table',1),(46,'2018_02_08_111027_add_expiry_period_and_expiry_period_type_columns_to_products_table',1),(47,'2018_02_08_131118_add_mfg_date_and_exp_date_purchase_lines_table',1),(48,'2018_02_08_155348_add_exchange_rate_to_transactions_table',1),(49,'2018_02_09_124945_modify_transaction_payments_table_for_contact_payments',1),(50,'2018_02_12_113640_create_transaction_sell_lines_purchase_lines_table',1),(51,'2018_02_12_114605_add_quantity_sold_in_purchase_lines_table',1),(52,'2018_02_13_183323_alter_decimal_fields_size',1),(53,'2018_02_14_161928_add_transaction_edit_days_to_business_table',1),(54,'2018_02_15_161032_add_document_column_to_transactions_table',1),(55,'2018_02_17_124709_add_more_options_to_invoice_layouts',1),(56,'2018_02_19_111517_add_keyboard_shortcut_column_to_business_table',1),(57,'2018_02_19_121537_stock_adjustment_move_to_transaction_table',1),(58,'2018_02_20_165505_add_is_direct_sale_column_to_transactions_table',1),(59,'2018_02_21_105329_create_system_table',1),(60,'2018_02_23_100549_version_1_2',1),(61,'2018_02_23_125648_add_enable_editing_sp_from_purchase_column_to_business_table',1),(62,'2018_02_26_103612_add_sales_commission_agent_column_to_business_table',1),(63,'2018_02_26_130519_modify_users_table_for_sales_cmmsn_agnt',1),(64,'2018_02_26_134500_add_commission_agent_to_transactions_table',1),(65,'2018_02_27_121422_add_item_addition_method_to_business_table',1),(66,'2018_02_27_170232_modify_transactions_table_for_stock_transfer',1),(67,'2018_03_05_153510_add_enable_inline_tax_column_to_business_table',1),(68,'2018_03_06_210206_modify_product_barcode_types',1),(69,'2018_03_13_181541_add_expiry_type_to_business_table',1),(70,'2018_03_16_113446_product_expiry_setting_for_business',1),(71,'2018_03_19_113601_add_business_settings_options',1),(72,'2018_03_26_125334_add_pos_settings_to_business_table',1),(73,'2018_03_26_165350_create_customer_groups_table',1),(74,'2018_03_27_122720_customer_group_related_changes_in_tables',1),(75,'2018_03_29_110138_change_tax_field_to_nullable_in_business_table',1),(76,'2018_03_29_115502_add_changes_for_sr_number_in_products_and_sale_lines_table',1),(77,'2018_03_29_134340_add_inline_discount_fields_in_purchase_lines',1),(78,'2018_03_31_140921_update_transactions_table_exchange_rate',1),(79,'2018_04_03_103037_add_contact_id_to_contacts_table',1),(80,'2018_04_03_122709_add_changes_to_invoice_layouts_table',1),(81,'2018_04_09_135320_change_exchage_rate_size_in_business_table',1),(82,'2018_04_17_123122_add_lot_number_to_business',1),(83,'2018_04_17_160845_add_product_racks_table',1),(84,'2018_04_20_182015_create_res_tables_table',1),(85,'2018_04_24_105246_restaurant_fields_in_transaction_table',1),(86,'2018_04_24_114149_add_enabled_modules_business_table',1),(87,'2018_04_24_133704_add_modules_fields_in_invoice_layout_table',1),(88,'2018_04_27_132653_quotation_related_change',1),(89,'2018_05_02_104439_add_date_format_and_time_format_to_business',1),(90,'2018_05_02_111939_add_sell_return_to_transaction_payments',1),(91,'2018_05_14_114027_add_rows_positions_for_products',1),(92,'2018_05_14_125223_add_weight_to_products_table',1),(93,'2018_05_14_164754_add_opening_stock_permission',1),(94,'2018_05_15_134729_add_design_to_invoice_layouts',1),(95,'2018_05_16_183307_add_tax_fields_invoice_layout',1),(96,'2018_05_18_191956_add_sell_return_to_transaction_table',1),(97,'2018_05_21_131349_add_custom_fileds_to_contacts_table',1),(98,'2018_05_21_131607_invoice_layout_fields_for_sell_return',1),(99,'2018_05_21_131949_add_custom_fileds_and_website_to_business_locations_table',1),(100,'2018_05_22_123527_create_reference_counts_table',1),(101,'2018_05_22_154540_add_ref_no_prefixes_column_to_business_table',1),(102,'2018_05_24_132620_add_ref_no_column_to_transaction_payments_table',1),(103,'2018_05_24_161026_add_location_id_column_to_business_location_table',1),(104,'2018_05_25_180603_create_modifiers_related_table',1),(105,'2018_05_29_121714_add_purchase_line_id_to_stock_adjustment_line_table',1),(106,'2018_05_31_114645_add_res_order_status_column_to_transactions_table',1),(107,'2018_06_05_103530_rename_purchase_line_id_in_stock_adjustment_lines_table',1),(108,'2018_06_05_111905_modify_products_table_for_modifiers',1),(109,'2018_06_06_110524_add_parent_sell_line_id_column_to_transaction_sell_lines_table',1),(110,'2018_06_07_152443_add_is_service_staff_to_roles_table',1),(111,'2018_06_07_182258_add_image_field_to_products_table',1),(112,'2018_06_13_133705_create_bookings_table',1),(113,'2018_06_15_173636_add_email_column_to_contacts_table',1),(114,'2018_06_27_182835_add_superadmin_related_fields_business',1),(115,'2018_07_10_101913_add_custom_fields_to_products_table',1),(116,'2018_07_17_103434_add_sales_person_name_label_to_invoice_layouts_table',1),(117,'2018_07_17_163920_add_theme_skin_color_column_to_business_table',1),(118,'2018_07_24_160319_add_lot_no_line_id_to_transaction_sell_lines_table',1),(119,'2018_07_25_110004_add_show_expiry_and_show_lot_colums_to_invoice_layouts_table',1),(120,'2018_07_25_172004_add_discount_columns_to_transaction_sell_lines_table',1),(121,'2018_07_26_124720_change_design_column_type_in_invoice_layouts_table',1),(122,'2018_07_26_170424_add_unit_price_before_discount_column_to_transaction_sell_line_table',1),(123,'2018_07_28_103614_add_credit_limit_column_to_contacts_table',1),(124,'2018_08_08_110755_add_new_payment_methods_to_transaction_payments_table',1),(125,'2018_08_08_122225_modify_cash_register_transactions_table_for_new_payment_methods',1),(126,'2018_08_14_104036_add_opening_balance_type_to_transactions_table',1),(127,'2018_09_04_155900_create_accounts_table',1),(128,'2018_09_06_114438_create_selling_price_groups_table',1),(129,'2018_09_06_154057_create_variation_group_prices_table',1),(130,'2018_09_07_102413_add_permission_to_access_default_selling_price',1),(131,'2018_09_07_134858_add_selling_price_group_id_to_transactions_table',1),(132,'2018_09_10_112448_update_product_type_to_single_if_null_in_products_table',1),(133,'2018_09_10_152703_create_account_transactions_table',1),(134,'2018_09_10_173656_add_account_id_column_to_transaction_payments_table',1),(135,'2018_09_19_123914_create_notification_templates_table',1),(136,'2018_09_22_110504_add_sms_and_email_settings_columns_to_business_table',1),(137,'2018_09_24_134942_add_lot_no_line_id_to_stock_adjustment_lines_table',1),(138,'2018_09_26_105557_add_transaction_payments_for_existing_expenses',1),(139,'2018_09_27_111609_modify_transactions_table_for_purchase_return',1),(140,'2018_09_27_131154_add_quantity_returned_column_to_purchase_lines_table',1),(141,'2018_10_02_131401_add_return_quantity_column_to_transaction_sell_lines_table',1),(142,'2018_10_03_104918_add_qty_returned_column_to_transaction_sell_lines_purchase_lines_table',1),(143,'2018_10_03_185947_add_default_notification_templates_to_database',1),(144,'2018_10_09_153105_add_business_id_to_transaction_payments_table',1),(145,'2018_10_16_135229_create_permission_for_sells_and_purchase',1),(146,'2018_10_22_114441_add_columns_for_variable_product_modifications',1),(147,'2018_10_22_134428_modify_variable_product_data',1),(148,'2018_10_30_181558_add_table_tax_headings_to_invoice_layout',1),(149,'2018_10_31_122619_add_pay_terms_field_transactions_table',1),(150,'2018_10_31_161328_add_new_permissions_for_pos_screen',1),(151,'2018_10_31_174752_add_access_selected_contacts_only_to_users_table',1),(152,'2018_10_31_175627_add_user_contact_access',1),(153,'2018_10_31_180559_add_auto_send_sms_column_to_notification_templates_table',1),(154,'2018_11_02_171949_change_card_type_column_to_varchar_in_transaction_payments_table',1),(155,'2018_11_08_105621_add_role_permissions',1),(156,'2018_11_26_114135_add_is_suspend_column_to_transactions_table',1),(157,'2018_11_28_104410_modify_units_table_for_multi_unit',1),(158,'2018_11_28_170952_add_sub_unit_id_to_purchase_lines_and_sell_lines',1),(159,'2018_11_29_115918_add_primary_key_in_system_table',1),(160,'2018_12_03_185546_add_product_description_column_to_products_table',1),(161,'2018_12_06_114937_modify_system_table_and_users_table',1),(162,'2018_12_13_160007_add_custom_fields_display_options_to_invoice_layouts_table',1),(163,'2018_12_14_103307_modify_system_table',1),(164,'2018_12_18_133837_add_prev_balance_due_columns_to_invoice_layouts_table',1),(165,'2018_12_18_170656_add_invoice_token_column_to_transaction_table',1),(166,'2018_12_20_133639_add_date_time_format_column_to_invoice_layouts_table',1),(167,'2018_12_21_120659_add_recurring_invoice_fields_to_transactions_table',1),(168,'2018_12_24_154933_create_notifications_table',1),(169,'2019_01_08_112015_add_document_column_to_transaction_payments_table',1),(170,'2019_01_10_124645_add_account_permission',1),(171,'2019_01_16_125825_add_subscription_no_column_to_transactions_table',1),(172,'2019_01_28_111647_add_order_addresses_column_to_transactions_table',1),(173,'2019_02_13_173821_add_is_inactive_column_to_products_table',1),(174,'2019_02_19_103118_create_discounts_table',1),(175,'2019_02_21_120324_add_discount_id_column_to_transaction_sell_lines_table',1),(176,'2019_02_21_134324_add_permission_for_discount',1),(177,'2019_03_04_170832_add_service_staff_columns_to_transaction_sell_lines_table',1),(178,'2019_03_09_102425_add_sub_type_column_to_transactions_table',1),(179,'2019_03_09_124457_add_indexing_transaction_sell_lines_purchase_lines_table',1),(180,'2019_03_12_120336_create_activity_log_table',1),(181,'2019_03_15_132925_create_media_table',1),(182,'2019_05_08_130339_add_indexing_to_parent_id_in_transaction_payments_table',1),(183,'2019_05_10_132311_add_missing_column_indexing',1),(184,'2019_05_14_091812_add_show_image_column_to_invoice_layouts_table',1),(185,'2019_05_25_104922_add_view_purchase_price_permission',1),(186,'2019_06_17_103515_add_profile_informations_columns_to_users_table',1),(187,'2019_06_18_135524_add_permission_to_view_own_sales_only',1),(188,'2019_06_19_112058_add_database_changes_for_reward_points',1),(189,'2019_06_28_133732_change_type_column_to_string_in_transactions_table',1),(190,'2019_07_13_111420_add_is_created_from_api_column_to_transactions_table',1),(191,'2019_07_15_165136_add_fields_for_combo_product',1),(192,'2019_07_19_103446_add_mfg_quantity_used_column_to_purchase_lines_table',1),(193,'2019_07_22_152649_add_not_for_selling_in_product_table',1),(194,'2019_07_29_185351_add_show_reward_point_column_to_invoice_layouts_table',1),(195,'2019_08_08_162302_add_sub_units_related_fields',1),(196,'2019_08_26_133419_update_price_fields_decimal_point',1),(197,'2019_09_02_160054_remove_location_permissions_from_roles',1),(198,'2019_09_03_185259_add_permission_for_pos_screen',1),(199,'2019_09_04_163141_add_location_id_to_cash_registers_table',1),(200,'2019_09_04_184008_create_types_of_services_table',1),(201,'2019_09_06_131445_add_types_of_service_fields_to_transactions_table',1),(202,'2019_09_09_134810_add_default_selling_price_group_id_column_to_business_locations_table',1),(203,'2019_09_12_105616_create_product_locations_table',1),(204,'2019_09_17_122522_add_custom_labels_column_to_business_table',1),(205,'2019_09_18_164319_add_shipping_fields_to_transactions_table',1),(206,'2019_09_19_170927_close_all_active_registers',1),(207,'2019_09_23_161906_add_media_description_cloumn_to_media_table',1),(208,'2019_10_18_155633_create_account_types_table',1),(209,'2019_10_22_163335_add_common_settings_column_to_business_table',1),(210,'2019_10_29_132521_add_update_purchase_status_permission',1),(211,'2019_11_09_110522_add_indexing_to_lot_number',1),(212,'2019_11_19_170824_add_is_active_column_to_business_locations_table',1),(213,'2019_11_21_162913_change_quantity_field_types_to_decimal',1),(214,'2019_11_25_160340_modify_categories_table_for_polymerphic_relationship',1),(215,'2019_12_02_105025_create_warranties_table',1),(216,'2019_12_03_180342_add_common_settings_field_to_invoice_layouts_table',1),(217,'2019_12_05_183955_add_more_fields_to_users_table',1),(218,'2019_12_06_174904_add_change_return_label_column_to_invoice_layouts_table',1),(219,'2019_12_11_121307_add_draft_and_quotation_list_permissions',1),(220,'2019_12_12_180126_copy_expense_total_to_total_before_tax',1),(221,'2019_12_19_181412_make_alert_quantity_field_nullable_on_products_table',1),(222,'2019_12_25_173413_create_dashboard_configurations_table',1),(223,'2020_01_08_133506_create_document_and_notes_table',1),(224,'2020_01_09_113252_add_cc_bcc_column_to_notification_templates_table',1),(225,'2020_01_16_174818_add_round_off_amount_field_to_transactions_table',1),(226,'2020_01_28_162345_add_weighing_scale_settings_in_business_settings_table',1),(227,'2020_02_18_172447_add_import_fields_to_transactions_table',1),(228,'2020_03_13_135844_add_is_active_column_to_selling_price_groups_table',1),(229,'2020_03_16_115449_add_contact_status_field_to_contacts_table',1),(230,'2020_03_26_124736_add_allow_login_column_in_users_table',1),(231,'2020_04_13_154150_add_feature_products_column_to_business_loactions',1),(232,'2020_04_15_151802_add_user_type_to_users_table',1),(233,'2020_04_22_153905_add_subscription_repeat_on_column_to_transactions_table',1),(234,'2020_04_28_111436_add_shipping_address_to_contacts_table',1),(235,'2020_06_01_094654_add_max_sale_discount_column_to_users_table',1),(236,'2020_06_12_162245_modify_contacts_table',1),(237,'2020_06_22_103104_change_recur_interval_default_to_one',1),(238,'2020_07_09_174621_add_balance_field_to_contacts_table',1),(239,'2020_07_23_104933_change_status_column_to_varchar_in_transaction_table',1),(240,'2020_09_07_171059_change_completed_stock_transfer_status_to_final',1),(241,'2020_09_21_123224_modify_booking_status_column_in_bookings_table',1),(242,'2020_09_22_121639_create_discount_variations_table',1),(243,'2020_10_05_121550_modify_business_location_table_for_invoice_layout',1),(244,'2020_10_16_175726_set_status_as_received_for_opening_stock',1),(245,'2020_10_23_170823_add_for_group_tax_column_to_tax_rates_table',1),(246,'2020_11_04_130940_add_more_custom_fields_to_contacts_table',1),(247,'2020_11_10_152841_add_cash_register_permissions',1),(248,'2020_11_17_164041_modify_type_column_to_varchar_in_contacts_table',1),(249,'2020_12_18_181447_add_shipping_custom_fields_to_transactions_table',1),(250,'2020_12_22_164303_add_sub_status_column_to_transactions_table',1),(251,'2020_12_24_153050_add_custom_fields_to_transactions_table',1),(252,'2020_12_28_105403_add_whatsapp_text_column_to_notification_templates_table',1),(253,'2020_12_29_165925_add_model_document_type_to_media_table',1),(254,'2021_02_08_175632_add_contact_number_fields_to_users_table',1),(255,'2021_02_11_172217_add_indexing_for_multiple_columns',1),(256,'2021_02_23_122043_add_more_columns_to_customer_groups_table',1),(257,'2021_02_24_175551_add_print_invoice_permission_to_all_roles',1),(258,'2021_03_03_162021_add_purchase_order_columns_to_purchase_lines_and_transactions_table',1),(259,'2021_03_11_120229_add_sales_order_columns',1),(260,'2021_03_16_120705_add_business_id_to_activity_log_table',1),(261,'2021_03_16_153427_add_code_columns_to_business_table',1),(262,'2021_03_18_173308_add_account_details_column_to_accounts_table',1),(263,'2021_03_18_183119_add_prefer_payment_account_columns_to_transactions_table',1),(264,'2021_03_22_120810_add_more_types_of_service_custom_fields',1),(265,'2021_03_24_183132_add_shipping_export_custom_field_details_to_contacts_table',1),(266,'2021_03_25_170715_add_export_custom_fields_info_to_transactions_table',1),(267,'2021_04_15_063449_add_denominations_column_to_cash_registers_table',1),(268,'2018_10_10_110400_add_module_version_to_system_table',2),(269,'2018_10_10_122845_add_woocommerce_api_settings_to_business_table',2),(270,'2018_10_10_162041_add_woocommerce_category_id_to_categories_table',2),(271,'2018_10_11_173839_create_woocommerce_sync_logs_table',2),(272,'2018_10_16_123522_add_woocommerce_tax_rate_id_column_to_tax_rates_table',2),(273,'2018_10_23_111555_add_woocommerce_attr_id_column_to_variation_templates_table',2),(274,'2018_12_03_163945_add_woocommerce_permissions',2),(275,'2019_02_18_154414_change_woocommerce_sync_logs_table',2),(276,'2019_04_19_174129_add_disable_woocommerce_sync_column_to_products_table',2),(277,'2019_06_08_132440_add_woocommerce_wh_oc_secret_column_to_business_table',2),(278,'2019_10_01_171828_add_woocommerce_media_id_columns',2),(279,'2020_09_07_124952_add_woocommerce_skipped_orders_fields_to_business_table',3),(280,'2021_02_16_190608_add_woocommerce_module_indexing',4),(281,'2018_10_01_151252_create_documents_table',5),(282,'2018_10_02_151803_create_document_shares_table',5),(283,'2018_10_09_134558_create_reminders_table',5),(284,'2018_11_16_170756_create_to_dos_table',5),(285,'2019_02_22_120329_essentials_messages',5),(286,'2019_02_22_161513_add_message_permissions',5),(287,'2019_03_29_164339_add_essentials_version_to_system_table',5),(288,'2019_05_17_153306_create_essentials_leave_types_table',5),(289,'2019_05_17_175921_create_essentials_leaves_table',5),(290,'2019_05_21_154517_add_essentials_settings_columns_to_business_table',5),(291,'2019_05_21_181653_create_table_essentials_attendance',5),(292,'2019_05_30_110049_create_essentials_payrolls_table',5),(293,'2019_06_04_105723_create_essentials_holidays_table',5),(294,'2019_06_28_134217_add_payroll_columns_to_transactions_table',5),(295,'2019_08_26_103520_add_approve_leave_permission',5),(296,'2019_08_27_103724_create_essentials_allowance_and_deduction_table',5),(297,'2019_08_27_105236_create_essentials_user_allowances_and_deductions',5),(298,'2019_09_20_115906_add_more_columns_to_essentials_to_dos_table',5),(299,'2019_09_23_120439_create_essentials_todo_comments_table',5),(300,'2019_12_05_170724_add_hrm_columns_to_users_table',5),(301,'2019_12_09_105809_add_allowance_and_deductions_permission',5),(302,'2020_03_28_152838_create_essentials_shift_table',5),(303,'2020_03_30_162029_create_user_shifts_table',5),(304,'2020_03_31_134558_add_shift_id_to_attendance_table',5),(305,'2020_11_05_105157_modify_todos_date_column_type',5),(306,'2020_11_11_174852_add_end_time_column_to_essentials_reminders_table',5),(307,'2020_11_26_170527_create_essentials_kb_table',5),(308,'2020_11_30_112615_create_essentials_kb_users_table',5),(309,'2018_06_27_185405_create_packages_table',6),(310,'2018_06_28_182803_create_subscriptions_table',6),(311,'2018_07_17_182021_add_rows_to_system_table',6),(312,'2018_07_19_131721_add_options_to_packages_table',6),(313,'2018_08_17_155534_add_min_termination_alert_days',6),(314,'2018_08_28_105945_add_business_based_username_settings_to_system_table',6),(315,'2018_08_30_105906_add_superadmin_communicator_logs_table',6),(316,'2018_11_02_130636_add_custom_permissions_to_packages_table',6),(317,'2018_11_05_161848_add_more_fields_to_packages_table',6),(318,'2018_12_10_124621_modify_system_table_values_null_default',6),(319,'2019_05_10_135434_add_missing_database_column_indexes',6),(320,'2019_08_16_115300_create_superadmin_frontend_pages_table',6);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `model_has_permissions`
--
DROP TABLE IF EXISTS `model_has_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_permissions` (
`permission_id` int(10) unsigned NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
KEY `model_has_permissions_model_type_model_id_index` (`model_type`,`model_id`),
CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `model_has_permissions`
--
LOCK TABLES `model_has_permissions` WRITE;
/*!40000 ALTER TABLE `model_has_permissions` DISABLE KEYS */;
INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES (80,'App\\User',1),(80,'App\\User',2),(80,'App\\User',3),(82,'App\\User',5),(94,'App\\User',5),(97,'App\\User',5);
/*!40000 ALTER TABLE `model_has_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `model_has_roles`
--
DROP TABLE IF EXISTS `model_has_roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `model_has_roles` (
`role_id` int(10) unsigned NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`role_id`,`model_id`,`model_type`),
KEY `model_has_roles_model_type_model_id_index` (`model_type`,`model_id`),
CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `model_has_roles`
--
LOCK TABLES `model_has_roles` WRITE;
/*!40000 ALTER TABLE `model_has_roles` DISABLE KEYS */;
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES (1,'App\\User',1),(3,'App\\User',2),(1,'App\\User',3),(1,'App\\User',5);
/*!40000 ALTER TABLE `model_has_roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notification_templates`
--
DROP TABLE IF EXISTS `notification_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notification_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`template_for` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_body` text COLLATE utf8mb4_unicode_ci,
`sms_body` text COLLATE utf8mb4_unicode_ci,
`whatsapp_text` text COLLATE utf8mb4_unicode_ci,
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cc` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bcc` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`auto_send` tinyint(1) NOT NULL DEFAULT '0',
`auto_send_sms` tinyint(1) NOT NULL DEFAULT '0',
`auto_send_wa_notif` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notification_templates`
--
LOCK TABLES `notification_templates` WRITE;
/*!40000 ALTER TABLE `notification_templates` DISABLE KEYS */;
INSERT INTO `notification_templates` (`id`, `business_id`, `template_for`, `email_body`, `sms_body`, `whatsapp_text`, `subject`, `cc`, `bcc`, `auto_send`, `auto_send_sms`, `auto_send_wa_notif`, `created_at`, `updated_at`) VALUES (1,1,'new_sale','<p>Dear {contact_name},</p>\n\n <p>Your invoice number is {invoice_number}<br />\n Total amount: {total_amount}<br />\n Paid amount: {received_amount}</p>\n\n <p>Thank you for shopping with us.</p>\n\n <p>{business_logo}</p>\n\n <p> </p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(2,1,'payment_received','<p>Dear {contact_name},</p>\n\n <p>We have received a payment of {received_amount}</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, We have received a payment of {received_amount}. {business_name}',NULL,'Payment Received, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(3,1,'payment_reminder','<p>Dear {contact_name},</p>\n\n <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}',NULL,'Payment Reminder, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(4,1,'new_booking','<p>Dear {contact_name},</p>\n\n <p>Your booking is confirmed</p>\n\n <p>Date: {start_time} to {end_time}</p>\n\n <p>Table: {table}</p>\n\n <p>Location: {location}</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}',NULL,'Booking Confirmed - {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(5,1,'new_order','<p>Dear {contact_name},</p>\n\n <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}',NULL,'New Order, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(6,1,'payment_paid','<p>Dear {contact_name},</p>\n\n <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n Kindly note it down.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','We have paid amount {paid_amount} again invoice number {order_ref_number}.\n Kindly note it down. {business_name}',NULL,'Payment Paid, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(7,1,'items_received','<p>Dear {contact_name},</p>\n\n <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}',NULL,'Items received, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(8,1,'items_pending','<p>Dear {contact_name},<br />\n This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}',NULL,'Items Pending, from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(9,1,'new_quotation','<p>Dear {contact_name},</p>\n\n <p>Your quotation number is {invoice_number}<br />\n Total amount: {total_amount}</p>\n\n <p>Thank you for shopping with us.</p>\n\n <p>{business_logo}</p>\n\n <p> </p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(10,2,'new_sale','<p>Dear {contact_name},</p>\n\n <p>Your invoice number is {invoice_number}<br />\n Total amount: {total_amount}<br />\n Paid amount: {received_amount}</p>\n\n <p>Thank you for shopping with us.</p>\n\n <p>{business_logo}</p>\n\n <p> </p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(11,2,'payment_received','<p>Dear {contact_name},</p>\n\n <p>We have received a payment of {received_amount}</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, We have received a payment of {received_amount}. {business_name}',NULL,'Payment Received, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(12,2,'payment_reminder','<p>Dear {contact_name},</p>\n\n <p>This is to remind you that you have pending payment of {due_amount}. Kindly pay it as soon as possible.</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, You have pending payment of {due_amount}. Kindly pay it as soon as possible. {business_name}',NULL,'Payment Reminder, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(13,2,'new_booking','<p>Dear {contact_name},</p>\n\n <p>Your booking is confirmed</p>\n\n <p>Date: {start_time} to {end_time}</p>\n\n <p>Table: {table}</p>\n\n <p>Location: {location}</p>\n\n <p>{business_logo}</p>','Dear {contact_name}, Your booking is confirmed. Date: {start_time} to {end_time}, Table: {table}, Location: {location}',NULL,'Booking Confirmed - {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(14,2,'new_order','<p>Dear {contact_name},</p>\n\n <p>We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','Dear {contact_name}, We have a new order with reference number {order_ref_number}. Kindly process the products as soon as possible. {business_name}',NULL,'New Order, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(15,2,'payment_paid','<p>Dear {contact_name},</p>\n\n <p>We have paid amount {paid_amount} again invoice number {order_ref_number}.<br />\n Kindly note it down.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','We have paid amount {paid_amount} again invoice number {order_ref_number}.\n Kindly note it down. {business_name}',NULL,'Payment Paid, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(16,2,'items_received','<p>Dear {contact_name},</p>\n\n <p>We have received all items from invoice reference number {order_ref_number}. Thank you for processing it.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','We have received all items from invoice reference number {order_ref_number}. Thank you for processing it. {business_name}',NULL,'Items received, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(17,2,'items_pending','<p>Dear {contact_name},<br />\n This is to remind you that we have not yet received some items from invoice reference number {order_ref_number}. Please process it as soon as possible.</p>\n\n <p>{business_name}<br />\n {business_logo}</p>','This is to remind you that we have not yet received some items from invoice reference number {order_ref_number} . Please process it as soon as possible.{business_name}',NULL,'Items Pending, from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(18,2,'new_quotation','<p>Dear {contact_name},</p>\n\n <p>Your quotation number is {invoice_number}<br />\n Total amount: {total_amount}</p>\n\n <p>Thank you for shopping with us.</p>\n\n <p>{business_logo}</p>\n\n <p> </p>','Dear {contact_name}, Thank you for shopping with us. {business_name}',NULL,'Thank you from {business_name}',NULL,NULL,0,0,0,'2021-09-25 13:21:19','2021-09-25 13:21:19');
/*!40000 ALTER TABLE `notification_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `notifications`
--
DROP TABLE IF EXISTS `notifications`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notifications` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` bigint(20) unsigned NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `notifications`
--
LOCK TABLES `notifications` WRITE;
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_access_tokens`
--
DROP TABLE IF EXISTS `oauth_access_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) DEFAULT NULL,
`client_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_access_tokens`
--
LOCK TABLES `oauth_access_tokens` WRITE;
/*!40000 ALTER TABLE `oauth_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_access_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_auth_codes`
--
DROP TABLE IF EXISTS `oauth_auth_codes`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) NOT NULL,
`client_id` int(10) unsigned NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime 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 `oauth_auth_codes`
--
LOCK TABLES `oauth_auth_codes` WRITE;
/*!40000 ALTER TABLE `oauth_auth_codes` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_auth_codes` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_clients`
--
DROP TABLE IF EXISTS `oauth_clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_clients_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_clients`
--
LOCK TABLES `oauth_clients` WRITE;
/*!40000 ALTER TABLE `oauth_clients` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_clients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_personal_access_clients`
--
DROP TABLE IF EXISTS `oauth_personal_access_clients`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_personal_access_clients` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`client_id` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_personal_access_clients_client_id_index` (`client_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_personal_access_clients`
--
LOCK TABLES `oauth_personal_access_clients` WRITE;
/*!40000 ALTER TABLE `oauth_personal_access_clients` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_personal_access_clients` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `oauth_refresh_tokens`
--
DROP TABLE IF EXISTS `oauth_refresh_tokens`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `oauth_refresh_tokens`
--
LOCK TABLES `oauth_refresh_tokens` WRITE;
/*!40000 ALTER TABLE `oauth_refresh_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_refresh_tokens` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `packages`
--
DROP TABLE IF EXISTS `packages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `packages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`location_count` int(11) NOT NULL COMMENT 'No. of Business Locations, 0 = infinite option.',
`user_count` int(11) NOT NULL,
`product_count` int(11) NOT NULL,
`bookings` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable bookings',
`kitchen` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable kitchen',
`order_screen` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable order_screen',
`tables` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Enable/Disable tables',
`invoice_count` int(11) NOT NULL,
`interval` enum('days','months','years') COLLATE utf8mb4_unicode_ci NOT NULL,
`interval_count` int(11) NOT NULL,
`trial_days` int(11) NOT NULL,
`price` decimal(22,4) NOT NULL,
`custom_permissions` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`created_by` int(11) NOT NULL,
`sort_order` int(11) NOT NULL DEFAULT '0',
`is_active` tinyint(1) NOT NULL,
`is_private` tinyint(1) NOT NULL DEFAULT '0',
`is_one_time` tinyint(1) NOT NULL DEFAULT '0',
`enable_custom_link` tinyint(1) NOT NULL DEFAULT '0',
`custom_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_link_text` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`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 `packages`
--
LOCK TABLES `packages` WRITE;
/*!40000 ALTER TABLE `packages` DISABLE KEYS */;
INSERT INTO `packages` (`id`, `name`, `description`, `location_count`, `user_count`, `product_count`, `bookings`, `kitchen`, `order_screen`, `tables`, `invoice_count`, `interval`, `interval_count`, `trial_days`, `price`, `custom_permissions`, `created_by`, `sort_order`, `is_active`, `is_private`, `is_one_time`, `enable_custom_link`, `custom_link`, `custom_link_text`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,'Pack 1','0',0,0,0,0,0,0,0,0,'years',365,0,0.0000,'{\"essentials_module\":\"1\",\"woocommerce_module\":\"1\"}',1,1,1,0,1,0,'','',NULL,'2021-09-25 13:14:40','2021-09-25 13:14:40');
/*!40000 ALTER TABLE `packages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `password_resets`
--
DROP TABLE IF EXISTS `password_resets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `password_resets`
--
LOCK TABLES `password_resets` WRITE;
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `permissions`
--
DROP TABLE IF EXISTS `permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `permissions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=99 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `permissions`
--
LOCK TABLES `permissions` WRITE;
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES (1,'profit_loss_report.view','web','2021-06-12 08:02:48',NULL),(2,'direct_sell.access','web','2021-06-12 08:02:48',NULL),(3,'product.opening_stock','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(4,'crud_all_bookings','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(5,'crud_own_bookings','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(6,'access_default_selling_price','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(7,'purchase.payments','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(8,'sell.payments','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(9,'edit_product_price_from_sale_screen','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(10,'edit_product_discount_from_sale_screen','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(11,'roles.view','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(12,'roles.create','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(13,'roles.update','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(14,'roles.delete','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(15,'account.access','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(16,'discount.access','web','2021-06-12 08:02:48','2021-06-12 08:02:48'),(17,'view_purchase_price','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(18,'view_own_sell_only','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(19,'edit_product_discount_from_pos_screen','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(20,'edit_product_price_from_pos_screen','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(21,'access_shipping','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(22,'purchase.update_status','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(23,'list_drafts','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(24,'list_quotations','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(25,'view_cash_register','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(26,'close_cash_register','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(27,'print_invoice','web','2021-06-12 08:02:49','2021-06-12 08:02:49'),(28,'user.view','web','2021-06-12 08:02:49',NULL),(29,'user.create','web','2021-06-12 08:02:49',NULL),(30,'user.update','web','2021-06-12 08:02:49',NULL),(31,'user.delete','web','2021-06-12 08:02:49',NULL),(32,'supplier.view','web','2021-06-12 08:02:49',NULL),(33,'supplier.create','web','2021-06-12 08:02:49',NULL),(34,'supplier.update','web','2021-06-12 08:02:49',NULL),(35,'supplier.delete','web','2021-06-12 08:02:49',NULL),(36,'customer.view','web','2021-06-12 08:02:49',NULL),(37,'customer.create','web','2021-06-12 08:02:49',NULL),(38,'customer.update','web','2021-06-12 08:02:49',NULL),(39,'customer.delete','web','2021-06-12 08:02:49',NULL),(40,'product.view','web','2021-06-12 08:02:49',NULL),(41,'product.create','web','2021-06-12 08:02:49',NULL),(42,'product.update','web','2021-06-12 08:02:49',NULL),(43,'product.delete','web','2021-06-12 08:02:49',NULL),(44,'purchase.view','web','2021-06-12 08:02:49',NULL),(45,'purchase.create','web','2021-06-12 08:02:49',NULL),(46,'purchase.update','web','2021-06-12 08:02:49',NULL),(47,'purchase.delete','web','2021-06-12 08:02:49',NULL),(48,'sell.view','web','2021-06-12 08:02:49',NULL),(49,'sell.create','web','2021-06-12 08:02:49',NULL),(50,'sell.update','web','2021-06-12 08:02:49',NULL),(51,'sell.delete','web','2021-06-12 08:02:49',NULL),(52,'purchase_n_sell_report.view','web','2021-06-12 08:02:49',NULL),(53,'contacts_report.view','web','2021-06-12 08:02:49',NULL),(54,'stock_report.view','web','2021-06-12 08:02:49',NULL),(55,'tax_report.view','web','2021-06-12 08:02:49',NULL),(56,'trending_product_report.view','web','2021-06-12 08:02:49',NULL),(57,'register_report.view','web','2021-06-12 08:02:49',NULL),(58,'sales_representative.view','web','2021-06-12 08:02:49',NULL),(59,'expense_report.view','web','2021-06-12 08:02:49',NULL),(60,'business_settings.access','web','2021-06-12 08:02:49',NULL),(61,'barcode_settings.access','web','2021-06-12 08:02:49',NULL),(62,'invoice_settings.access','web','2021-06-12 08:02:49',NULL),(63,'brand.view','web','2021-06-12 08:02:49',NULL),(64,'brand.create','web','2021-06-12 08:02:49',NULL),(65,'brand.update','web','2021-06-12 08:02:49',NULL),(66,'brand.delete','web','2021-06-12 08:02:49',NULL),(67,'tax_rate.view','web','2021-06-12 08:02:49',NULL),(68,'tax_rate.create','web','2021-06-12 08:02:49',NULL),(69,'tax_rate.update','web','2021-06-12 08:02:49',NULL),(70,'tax_rate.delete','web','2021-06-12 08:02:49',NULL),(71,'unit.view','web','2021-06-12 08:02:49',NULL),(72,'unit.create','web','2021-06-12 08:02:49',NULL),(73,'unit.update','web','2021-06-12 08:02:49',NULL),(74,'unit.delete','web','2021-06-12 08:02:49',NULL),(75,'category.view','web','2021-06-12 08:02:49',NULL),(76,'category.create','web','2021-06-12 08:02:49',NULL),(77,'category.update','web','2021-06-12 08:02:49',NULL),(78,'category.delete','web','2021-06-12 08:02:49',NULL),(79,'expense.access','web','2021-06-12 08:02:49',NULL),(80,'access_all_locations','web','2021-06-12 08:02:49',NULL),(81,'dashboard.data','web','2021-06-12 08:02:49',NULL),(82,'location.1','web','2021-06-12 08:05:38','2021-06-12 08:05:38'),(83,'woocommerce.syc_categories','web','2021-06-12 08:18:25','2021-06-12 08:18:25'),(84,'woocommerce.sync_products','web','2021-06-12 08:18:25','2021-06-12 08:18:25'),(85,'woocommerce.sync_orders','web','2021-06-12 08:18:25','2021-06-12 08:18:25'),(86,'woocommerce.map_tax_rates','web','2021-06-12 08:18:25','2021-06-12 08:18:25'),(87,'woocommerce.access_woocommerce_api_settings','web','2021-06-12 08:18:25','2021-06-12 08:18:25'),(88,'selling_price_group.1','web','2021-06-21 07:52:13','2021-06-21 07:52:13'),(89,'essentials.create_message','web','2021-06-27 04:59:22','2021-06-27 04:59:22'),(90,'essentials.view_message','web','2021-06-27 04:59:22','2021-06-27 04:59:22'),(91,'essentials.approve_leave','web','2021-06-27 04:59:22','2021-06-27 04:59:22'),(92,'essentials.assign_todos','web','2021-06-27 04:59:22','2021-06-27 04:59:22'),(93,'essentials.add_allowance_and_deduction','web','2021-06-27 04:59:22','2021-06-27 04:59:22'),(94,'location.2','web','2021-09-25 13:17:38','2021-09-25 13:17:38'),(95,'location.3','web','2021-09-25 13:21:19','2021-09-25 13:21:19'),(96,'location.4','web','2021-09-25 13:23:52','2021-09-25 13:23:52'),(97,'location.5','web','2021-11-08 15:54:09','2021-11-08 15:54:09'),(98,'location.6','web','2021-11-15 17:35:54','2021-11-15 17:35:54');
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `printers`
--
DROP TABLE IF EXISTS `printers`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `printers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection_type` enum('network','windows','linux') COLLATE utf8mb4_unicode_ci NOT NULL,
`capability_profile` enum('default','simple','SP2000','TEP-200M','P822D') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'default',
`char_per_line` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`port` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`path` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_by` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `printers_business_id_foreign` (`business_id`),
CONSTRAINT `printers_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `printers`
--
LOCK TABLES `printers` WRITE;
/*!40000 ALTER TABLE `printers` DISABLE KEYS */;
/*!40000 ALTER TABLE `printers` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `product_locations`
--
DROP TABLE IF EXISTS `product_locations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_locations` (
`product_id` int(11) NOT NULL,
`location_id` int(11) NOT NULL,
KEY `product_locations_product_id_index` (`product_id`),
KEY `product_locations_location_id_index` (`location_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product_locations`
--
LOCK TABLES `product_locations` WRITE;
/*!40000 ALTER TABLE `product_locations` DISABLE KEYS */;
INSERT INTO `product_locations` (`product_id`, `location_id`) VALUES (1,1),(2,1),(3,1),(4,1),(5,1),(6,1),(7,1),(8,1),(9,1),(10,1),(11,1),(12,1),(13,1),(14,1),(15,1),(16,1),(17,1),(18,1),(19,1),(20,1),(21,1),(22,1),(23,1),(24,1),(25,1),(26,1),(27,1),(28,1),(29,1),(30,1),(31,1),(32,1),(33,1),(34,1),(35,1),(36,1),(37,1),(38,1),(39,1),(40,1),(41,1),(42,1),(43,1),(44,1),(45,1),(46,1),(47,1),(48,1),(49,1),(50,1),(51,1),(52,1),(53,1);
/*!40000 ALTER TABLE `product_locations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `product_racks`
--
DROP TABLE IF EXISTS `product_racks`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_racks` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`rack` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`row` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`position` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `product_racks_business_id_index` (`business_id`),
KEY `product_racks_location_id_index` (`location_id`),
KEY `product_racks_product_id_index` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product_racks`
--
LOCK TABLES `product_racks` WRITE;
/*!40000 ALTER TABLE `product_racks` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_racks` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `product_variations`
--
DROP TABLE IF EXISTS `product_variations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `product_variations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`variation_template_id` int(11) DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`is_dummy` tinyint(1) NOT NULL DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `product_variations_name_index` (`name`),
KEY `product_variations_product_id_index` (`product_id`),
CONSTRAINT `product_variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `product_variations`
--
LOCK TABLES `product_variations` WRITE;
/*!40000 ALTER TABLE `product_variations` DISABLE KEYS */;
INSERT INTO `product_variations` (`id`, `variation_template_id`, `name`, `product_id`, `is_dummy`, `created_at`, `updated_at`) VALUES (1,NULL,'DUMMY',1,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(2,NULL,'DUMMY',2,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(3,NULL,'DUMMY',3,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(4,NULL,'DUMMY',4,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(5,NULL,'DUMMY',5,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(6,NULL,'DUMMY',6,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(7,NULL,'DUMMY',7,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(8,NULL,'DUMMY',8,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(9,NULL,'DUMMY',9,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(10,NULL,'DUMMY',10,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(11,NULL,'DUMMY',11,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(12,NULL,'DUMMY',12,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(13,NULL,'DUMMY',13,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(14,NULL,'DUMMY',14,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(15,NULL,'DUMMY',15,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(16,NULL,'DUMMY',16,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(17,NULL,'DUMMY',17,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(18,NULL,'DUMMY',18,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(19,NULL,'DUMMY',19,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(20,NULL,'DUMMY',20,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(21,NULL,'DUMMY',21,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(22,NULL,'DUMMY',22,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(23,NULL,'DUMMY',23,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(24,NULL,'DUMMY',24,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(25,NULL,'DUMMY',25,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(26,NULL,'DUMMY',26,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(27,NULL,'DUMMY',27,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(28,NULL,'DUMMY',28,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(29,NULL,'DUMMY',29,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(30,NULL,'DUMMY',30,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(31,NULL,'DUMMY',31,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(32,NULL,'DUMMY',32,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(33,NULL,'DUMMY',33,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(34,NULL,'DUMMY',34,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(35,NULL,'DUMMY',35,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(36,NULL,'DUMMY',36,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(37,NULL,'DUMMY',37,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(38,NULL,'DUMMY',38,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(39,NULL,'DUMMY',39,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(40,NULL,'DUMMY',40,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(41,NULL,'DUMMY',41,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(42,NULL,'DUMMY',42,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(43,NULL,'DUMMY',43,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(44,NULL,'DUMMY',44,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(45,NULL,'DUMMY',45,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(46,NULL,'DUMMY',46,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(47,NULL,'DUMMY',47,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(48,NULL,'DUMMY',48,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(49,NULL,'DUMMY',49,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(50,NULL,'DUMMY',50,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(51,NULL,'DUMMY',51,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(52,NULL,'DUMMY',52,1,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(53,1,'Stock',53,0,'2021-11-16 07:38:54','2021-11-16 07:38:54');
/*!40000 ALTER TABLE `product_variations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `products`
--
DROP TABLE IF EXISTS `products`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(10) unsigned NOT NULL,
`type` enum('single','variable','modifier','combo') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`unit_id` int(11) unsigned DEFAULT NULL,
`sub_unit_ids` text COLLATE utf8mb4_unicode_ci,
`brand_id` int(10) unsigned DEFAULT NULL,
`category_id` int(10) unsigned DEFAULT NULL,
`sub_category_id` int(10) unsigned DEFAULT NULL,
`tax` int(10) unsigned DEFAULT NULL,
`tax_type` enum('inclusive','exclusive') COLLATE utf8mb4_unicode_ci NOT NULL,
`enable_stock` tinyint(1) NOT NULL DEFAULT '0',
`alert_quantity` decimal(22,4) DEFAULT NULL,
`sku` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`barcode_type` enum('C39','C128','EAN13','EAN8','UPCA','UPCE') COLLATE utf8mb4_unicode_ci DEFAULT 'C128',
`expiry_period` decimal(4,2) DEFAULT NULL,
`expiry_period_type` enum('days','months') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enable_sr_no` tinyint(1) NOT NULL DEFAULT '0',
`weight` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_custom_field1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_custom_field2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_custom_field3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_custom_field4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`woocommerce_media_id` int(11) DEFAULT NULL,
`product_description` text COLLATE utf8mb4_unicode_ci,
`created_by` int(10) unsigned NOT NULL,
`woocommerce_product_id` int(11) DEFAULT NULL,
`woocommerce_disable_sync` tinyint(1) NOT NULL DEFAULT '0',
`warranty_id` int(11) DEFAULT NULL,
`is_inactive` tinyint(1) NOT NULL DEFAULT '0',
`not_for_selling` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `products_brand_id_foreign` (`brand_id`),
KEY `products_category_id_foreign` (`category_id`),
KEY `products_sub_category_id_foreign` (`sub_category_id`),
KEY `products_tax_foreign` (`tax`),
KEY `products_name_index` (`name`),
KEY `products_business_id_index` (`business_id`),
KEY `products_unit_id_index` (`unit_id`),
KEY `products_created_by_index` (`created_by`),
KEY `products_warranty_id_index` (`warranty_id`),
KEY `products_type_index` (`type`),
KEY `products_tax_type_index` (`tax_type`),
KEY `products_barcode_type_index` (`barcode_type`),
KEY `products_woocommerce_product_id_index` (`woocommerce_product_id`),
KEY `products_woocommerce_media_id_index` (`woocommerce_media_id`),
CONSTRAINT `products_brand_id_foreign` FOREIGN KEY (`brand_id`) REFERENCES `brands` (`id`) ON DELETE CASCADE,
CONSTRAINT `products_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `products_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
CONSTRAINT `products_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
CONSTRAINT `products_sub_category_id_foreign` FOREIGN KEY (`sub_category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE,
CONSTRAINT `products_tax_foreign` FOREIGN KEY (`tax`) REFERENCES `tax_rates` (`id`),
CONSTRAINT `products_unit_id_foreign` FOREIGN KEY (`unit_id`) REFERENCES `units` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=54 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `products`
--
LOCK TABLES `products` WRITE;
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` (`id`, `name`, `business_id`, `type`, `unit_id`, `sub_unit_ids`, `brand_id`, `category_id`, `sub_category_id`, `tax`, `tax_type`, `enable_stock`, `alert_quantity`, `sku`, `barcode_type`, `expiry_period`, `expiry_period_type`, `enable_sr_no`, `weight`, `product_custom_field1`, `product_custom_field2`, `product_custom_field3`, `product_custom_field4`, `image`, `woocommerce_media_id`, `product_description`, `created_by`, `woocommerce_product_id`, `woocommerce_disable_sync`, `warranty_id`, `is_inactive`, `not_for_selling`, `created_at`, `updated_at`) VALUES (1,'GM DIAMOND 707 SH',1,'single',1,NULL,NULL,29,30,NULL,'inclusive',1,0.0000,'0001','C128',NULL,NULL,0,'','','','','','',NULL,'1. MADE WITH BEST QUALITY ENGLISH WILLOW. 2.SHORTENED L540 BLADE DESIGN FOR DYNAMIC SWEETSPOT.\n3.POWERARC BOW FACE PROFILE TRADITIONAL FULL BLADE PROFILE\n4.FLOWING CONTOURED SPINE. 5. MID SWELL POSITION FOR PERFECT STROKEPLAY \n',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(2,'GM CHROMA 909 (2021) SH',1,'single',1,NULL,NULL,29,30,NULL,'inclusive',1,0.0000,'0002','C128',NULL,NULL,0,'','','','','','',NULL,'1. Made with Made from top of the line grade A English Willow. \n From the Chroma range of GM Cricket. Fuller profile specially re-designed for T-20 Cricket.\n Massive Edges .\n Flatter Face with Mid to Low Profile.\n 7-10 Grains.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(3,'GM DIAMOND 303 JUNIOR',1,'single',1,NULL,NULL,29,30,NULL,'inclusive',1,0.0000,'0003','C128',NULL,NULL,0,'','','','','','',NULL,'1. Made with English Willow\nShort Handle bat ( SH )\nPreferred playing with Leather Ball.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(4,'New Balance DC 590 English Willow Cricket Bat Size SH',1,'single',1,NULL,NULL,29,30,NULL,'inclusive',1,0.0000,'0004','C128',NULL,NULL,0,'','','','','','',NULL,'1. Made with Grade 3 English willow 2. 6piece Singapore cane handle. 3. Large Edges and sweet spot.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(5,'New Balance TC 550+ English Willow Cricket Bat Size SH',1,'single',1,NULL,NULL,29,30,NULL,'inclusive',1,0.0000,'0005','C128',NULL,NULL,0,'','','','','','',NULL,'1. Made with Grade 5 English willow. 2. 6piece Singapore cane handle. 3. Glass fibre tape on face. 4. traditionally designed large edges.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(6,'GM ALL-WEATHER BALL',1,'single',1,NULL,3,2,31,NULL,'inclusive',1,0.0000,'0006','C128',NULL,NULL,0,'','','','','','',NULL,'Durable rubber ball for use in all conditions',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(7,'GM ALL-WEATHER BALL',1,'single',1,NULL,3,2,31,NULL,'inclusive',1,0.0000,'0007','C128',NULL,NULL,0,'','','','','','',NULL,'Durable rubber ball for use in all conditions',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(8,'SG LEAGUE Cricket Balls(Red)',1,'single',1,NULL,6,2,32,NULL,'inclusive',1,0.0000,'0008','C128',NULL,NULL,0,'','','','','','',NULL,'The League is a premium quality four-piece ball made from superior quality alum tanned leather. The League is ideally suited for club and school matches.\n\nWater-proofed\n\nHigh quality centre construction encased with layers of top quality Portuguese cork wound with 100% wool\n\nNaturally seasoned inner core',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(9,'DSC INTENSE PASSION BATTING GLOVES RH MEN',1,'single',1,NULL,13,23,NULL,NULL,'inclusive',1,0.0000,'0009','C128',NULL,NULL,0,'','','','','','',NULL,'Top quality glove with multi flex pre-curved construction\nHigh quality leather palm for superior grip and feel\nHigh quality PU and ultra light foam in the finger rolls for impact absorption\nAirflow gusset for ventilation and’dual’ sided sweatband for moisture absorption and player comfort\nFRP (Fibre Reinforced Protection) with fibre inserts across all fingers provide immense impact protection\nStrategically positioned flexpoints enable players’ unrestricted movement\nThree side bars for better protection and split thumb\nToweled wristband for comfort fit with velcro for perfect fit\nSplit thumb and single piece side bar protection in bottom hand\nNylon gusset for ventilation',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(10,'DSC Batting Gloves Condor Atmos Youth RH',1,'single',1,NULL,13,23,NULL,NULL,'inclusive',1,0.0000,'0010','C128',NULL,NULL,0,'','','','','','',NULL,'Pre-curved cotton filled finger rolls for protection, flexibility and comfort\nLightweight slim design ideal for club & junior players\nCotton palm with leather patch for superior grip and feel\nHigh Density Foam reinforced Fingers\nSweat Absorbing Wrist Grip\nDesigned for long innings\nCotton gusset for ventilation\nToweled wristband for comfort fit with velcro for perfect fit\nNylon gusset for ventilation\nSingle-piece sidebar on lead hand',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(11,'SG HILITE White RH Batting Gloves',1,'single',1,NULL,6,23,NULL,NULL,'inclusive',1,0.0000,'0011','C128',NULL,NULL,0,'','','','','','',NULL,'Palm made from premium quality leather manufactured by world?s best Pittards? of UK\nAdditional leather patch on hard-wearing areas of palm to minimise wear-and-tear\nNon-toxic imported polyurethane (PU) finger rolls with lightweight High Density (HD) EthyleneVinylAcetate (EVA) foam padding inserts\nSplit thumb for extra-flex; three-piece sidebar on bottom hand for extra protection from those wayward balls\nFirst two fingers have reinforced plastic inserts in bottom hand; all other fingers fibre protection in both hands\nFully ventilated finger construction with nylon gusset along sides that provides airing and sweat reduction over extended use\nAvailable in size Adult\nFavoured to use by professional cricketers',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(12,'SG HP LITE BATTING GLOVES RH YOUTH',1,'single',1,NULL,6,23,NULL,NULL,'inclusive',1,0.0000,'0012','C128',NULL,NULL,0,'','','','','','',NULL,'High quality sheep leather.Additional leather patch on hand-wearing area.Imported PU and cotton filled finger rolls.All finger rounded cover plastic in both hands.Split thumb top section with extra fiber protection.Three piece side bar protection in both hands.Sponge-padded spacer mesh back for better fit and comfort.Nylon gusset for ventilation.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(13,'SG HILITE RH Batting Legguards',1,'single',1,NULL,6,24,NULL,NULL,'inclusive',1,0.0000,'0013','C128',NULL,NULL,0,'','','','','','',NULL,'Made from premium quality imported polyurethane facing\nHigh density foam filled for traditional look\nExtra high density foam filling in the side wings\nExtra butterfly straps for the right fit\nThermoplastic polyurethane moulded knee socket for added protection',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(14,'SG CLUB YOUTH RH Batting Legguards',1,'single',1,NULL,6,24,NULL,NULL,'inclusive',1,0.0000,'0014','C128',NULL,NULL,0,'','','','','','',NULL,'Made from high quality, wipe cleanable PVC facing\nCashmilon filled cane reinforced construction\nLow density foam/cotton side wings\nCashmilon filled three cross bolsters\nHigh density sponge filled bolster',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(15,'NEW BALANCE TC 860 BATTING PADS LH SMALL MEN',1,'single',1,NULL,12,24,NULL,NULL,'inclusive',1,0.0000,'0015','C128',NULL,NULL,0,'','','','','','',NULL,'The ultimate protection, matched by the ultimate comfort. Developed with a traditional style player in mind, the TC pad range is the key to facing fast bowling with the upmost confidence.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(16,'SG ECOLITE JUNIOR Batting Legguards',1,'single',1,NULL,6,24,NULL,NULL,'inclusive',1,0.0000,'0016','C128',NULL,NULL,0,'','','','','','',NULL,'Made from PVC facing\nLow density foam padding for maximum protection and flexibility\nCashmilon and low density foam filled vertical bolster\nCan be used by both left-handed and right-handed batsmen\nWear resistant PVC instep with hard-wearing piping\nLow-density foam sheet reinforcement vertical bolster\nLayered dual density foam padded for optimum protection and flexibility\nCan be used by both left-handed and right-handed batsmen',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(17,'GM CRICKET HELMET – NEON GEO',1,'single',1,NULL,3,25,NULL,NULL,'inclusive',1,0.0000,'0017','C128',NULL,NULL,0,'','','','','','',NULL,'Specification for Head Protectors for Cricketers, British Standards Institute Improved peak strength and precisely fitted Geo steel grille greatly reduces the risk of the ball penetrating the gap between the two Fitted with a Geo steel grille as standard',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(18,'GM CRICKET HELMET – PURIST GEO II NVY JUNIOR',1,'single',1,NULL,3,25,NULL,NULL,'inclusive',1,0.0000,'0018','C128',NULL,NULL,0,'','','','','','',NULL,'Specification for Head Protectors for Cricketers, British Standards Institute Improved peak strength and precisely fitted Geo steel grille greatly reduces the risk of the ball penetrating the gap between the two Fitted with a Geo steel grille as standard',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(19,'MASURI T Line Titanium CRICKET HELMET',1,'single',1,NULL,11,25,NULL,NULL,'inclusive',1,0.0000,'0019','C128',NULL,NULL,0,'','','','','','',NULL,'Masuri T-Line Titanium Cricket Helmet has UK designed and manufactured single shell protection, providing an affordable, lightweight and traditional style helmet designed with patented Eye-line grille technology for greater facial safety.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(20,'MASURI C Line Junior CRICKET HELMET',1,'single',1,NULL,11,25,NULL,NULL,'inclusive',1,0.0000,'0020','C128',NULL,NULL,0,'','','','','','',NULL,'Masuri T-Line Titanium Cricket Helmet has UK designed and manufactured single shell protection, providing an affordable, lightweight and traditional style helmet designed with patented Eye-line grille technology for greater facial safety.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(21,'KB FINGERLESS BATTING INNER',1,'single',1,NULL,4,33,NULL,NULL,'inclusive',1,0.0000,'0021','C128',NULL,NULL,0,'','','','','','',NULL,'Kookaburra Fingerless Cricket Batting Inner Gloves Size OSA Adult Youth Junior.\nFull cotton with cotton & mesh back and gathered cotton wrist. MODEL: FINGERLESS Batting Inners, Batting Inners, Colour: Black-Green, Sizes: OSA, Adult, Youth & Junior.\nProfile Full cotton with cotton & mesh back, Pading NA, Wrist Gathered cotton.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(22,'KB FINGERLESS BATTING INNER',1,'single',1,NULL,4,33,NULL,NULL,'inclusive',1,0.0000,'0022','C128',NULL,NULL,0,'','','','','','',NULL,'Kookaburra Fingerless Cricket Batting Inner Gloves Size OSA Adult Youth Junior.\nFull cotton with cotton & mesh back and gathered cotton wrist. MODEL: FINGERLESS Batting Inners, Batting Inners, Colour: Black-Green, Sizes: OSA, Adult, Youth & Junior.\nProfile Full cotton with cotton & mesh back, Pading NA, Wrist Gathered cotton.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(23,'Aero Groin Protector Trunks',1,'single',1,NULL,10,26,NULL,NULL,'inclusive',1,0.0000,'0023','C128',NULL,NULL,0,'','','','','','',NULL,'Designed with the youth of today in mind and are sure to be very popular. Featuring compression materials and all the brilliant aspects of the briefs and the shorts',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(24,'SG Combo Test Pro White Thigh Pad',1,'single',1,NULL,6,26,NULL,NULL,'inclusive',1,0.0000,'0024','C128',NULL,NULL,0,'','','','','','',NULL,'Combination of Thigh pad and Inner thigh pad\nMade from imported PU facing\nConstructed from microweight UHDF with polycarbonate rainforcement.\nUsed by top international players\nSoft absorbent polyester back\nPremium quality elastic waist and thigh straps\nAvailable for both right and left-handed batsmen',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(25,'Aero Batmes Chestprotector P1 male',1,'single',1,NULL,10,26,NULL,NULL,'inclusive',1,0.0000,'0025','C128',NULL,NULL,0,'','','','','','',NULL,'Three layers of high quality closed cell foam gives superb shock resistance with a low profile.Innovative holster design stays in place and wont get in the way when palying shots.Adjustable straps for the perfect fit.Ambidextrous design, suitable for right and left handed batsmen.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(26,'Aero Batmes Forearm protector P3 Xsmall',1,'single',1,NULL,10,26,NULL,NULL,'inclusive',1,0.0000,'0026','C128',NULL,NULL,0,'','','','','','',NULL,'Our Forearm Protectors (BHPs) are designed to protect the entire forearm while not restricting movement or circulation. Using the same foams as our award-winning Strippers, they protect from the wrist to the elbow, and conform to the contours of the forearm.The sleeve design reduces circulation problems caused by a strap system and means, like the Strippers, once it is on you can forget about it and concentrate on scoring runs.The moisture wicking materials and closed cell foam construction means it can be washed time and again and the 3D moulded foam gives you the confidence that your forearm has the very best protection on the market.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(27,'KOOKABURRA KC 5.0 RUBBER CRICKET SHOE',1,'single',1,NULL,4,4,NULL,NULL,'inclusive',1,0.0000,'0027','C128',NULL,NULL,0,'','','','','','',NULL,'A functional cricket shoe perfect for cricketers. The Kookaburra KC 5.0 Rubber Cricket Shoes are suitable for indoor and outdoor training/matches containing a rubber sole providing comfort, grip and durability.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(28,'KOOKABURRA KC 2.0 RUBBER JUNIOR CRICKET SHOE',1,'single',1,NULL,NULL,4,NULL,NULL,'inclusive',1,0.0000,'0028','C128',NULL,NULL,0,'','','','','','',NULL,'A combination of revolutionary design & traditional quality manufacture makes the new Kookaburra Footwear the only choice for discerning Cricketers at all levels.\n\nFeatures\n\n? Lightweight, streamlined low-profile design\n\n? Durable dual layer coated mesh upper featuring Action Leather, Mesh and PU to produce superb flexibility, durability and support\n\n? Rubber reinforced sections to the toe box & forefoot to enhance support and durability\n\n? PVC lateral motion control ensures a stable and secure fit\n\n? Integrated padded tongue for improved comfort and fit\n\n? Athletic style ?Slip Last? for comfort & support\n\n? Thermo-Plastic Heel Counter increases support\n\n? Reinforced Ankle & Heel for enhance stability\n\n? 3D moulded hexagonal EVA Insole providing superb shock absorbency & comfort\n\n? Ultra-Traction Outsole providing exceptional stability in play',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(29,'Newberry SPS Men Keeping gloves',1,'single',1,NULL,7,5,NULL,NULL,'inclusive',1,0.0000,'0029','C128',NULL,NULL,0,'','','','','','',NULL,'Unique double layer leather top, creating a perfect fit and breathable feel.\nDesigned by pro-keepers for you.\nMade from 2 styles of premium leather in a unique make up for exceptional flexibility and a snug fit.\nSoft cup, that moulds to your hand with large area octopus grip palm.\nMemory foam finger ends: moulds to your fingers.\nWebbing stitched to the back of the glove, then double stitched so it holds a nice cup and improves catching capabilities of the glove',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(30,'ADIDAS WICKET KEEPING GLOVES XT 1.0',1,'single',1,NULL,8,5,NULL,NULL,'inclusive',1,0.0000,'0030','C128',NULL,NULL,0,'','','','','','',NULL,'Durable PU back for lightweight feel, padded cuffs, reinforced finger section. Highest grade dimpled palm. Square cuffs.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(31,'SG RP 17 W.K. Gloves',1,'single',1,NULL,6,5,NULL,NULL,'inclusive',1,0.0000,'0031','C128',NULL,NULL,0,'','','','','','',NULL,'Premium quality pair of professional wicket keeping\n\nglove.\n\n• Made from the finest aniline leather and has all leather palm, cuffs and back.\n\n• Tricolor Octopus design rubber in palm facing.\n\n• White padded leather cuff.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(32,'SG SUPAKEEP W.K. Gloves',1,'single',1,NULL,6,5,NULL,NULL,'inclusive',1,0.0000,'0032','C128',NULL,NULL,0,'','','','','','',NULL,'Premium quality pair of professional wicket keeping glove\nMade from the finest aniline leather and has all-leather palm, cuffs and back\nTricolor Octopus rubber in palm facing\nWhite padded towel lining in the cuffs',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(33,'FULL CHAMI WK INNER A',1,'single',1,NULL,4,21,NULL,NULL,'inclusive',1,0.0000,'0033','C128',NULL,NULL,0,'','','','','','',NULL,'Full chamois construction for unrivalled freedom of movement and comfort\nOSA & A',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(34,'GM INNER GLOVES – FINGERLESS COTTON',1,'single',1,NULL,3,21,NULL,NULL,'inclusive',1,0.0000,'0034','C128',NULL,NULL,0,'','','','','','',NULL,'The Chamois Padded Inner has a lycra back of hand and double sided sweatband with velcro closure.\nSuperb Feel and Comfort\nTop Quality all Chamois Leather\nBreathable Fingers\nDouble Sided Sweatband with Velcro',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(35,'SS KEEPING INNER TEST KEEPING INNERS JUNIOR',1,'single',1,NULL,9,21,NULL,NULL,'inclusive',1,0.0000,'0035','C128',NULL,NULL,0,'','','','','','',NULL,'Made from highly absorbent fine cotton material',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(36,'SG MEGALITE Batting Legguards W.K',1,'single',1,NULL,9,22,NULL,NULL,'inclusive',1,0.0000,'0036','C128',NULL,NULL,0,'','','','','','',NULL,'Made from premium quality imported polyurethane facing\nHigh-density foam padded with thermoplastic polyurethane insert\nCompact and wrap around fit\nMesh instep with hard-wearing piping',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(37,'GM WICKET KEEPING PADS – 606 YOUTHS',1,'single',1,NULL,3,22,NULL,NULL,'inclusive',1,0.0000,'0037','C128',NULL,NULL,0,'','','','','','',NULL,'Weight per pair : 085 kgs\nFacing : pvc\nFace filling : dual layer foam\nVertical bolster : comfort foam\nStraps : 2\" & 1\"\nInstep : mesh',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(38,'SG ECOPAK Kit Bag',1,'single',1,NULL,6,6,18,NULL,'inclusive',1,0.0000,'0038','C128',NULL,NULL,0,'','','','','','',NULL,'Made from premium PU coated material.\nHigh quality zips for better durability.\nDurable base sheet.\nIdeal for carrying single kit.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(39,'SHREY PRO PREMIUM DUFFLE',1,'single',1,NULL,5,6,18,NULL,'inclusive',1,0.0000,'0039','C128',NULL,NULL,0,'','','','','','',NULL,'The Shrey Pro Premium Duffle Bag boasts an efficient design and compacts shape with maximum storage.\n6 padded bat pockets provide multi storage options.\nSeparate compartments for shoes, clothing, accessories and protective gear for better organization.\nDesigned to carry all your cricket gear with ease. \nTough, abrasion-resistant bottom panel. \nLargest front zip organization pocket.\nHeavy duty wheels with full length protective runners. \nAdjustable, padded shoulder strap for total comfort. ',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(40,'GM CRKT BAG – 707 WHEELIE',1,'single',1,NULL,3,6,19,NULL,'inclusive',1,0.0000,'0040','C128',NULL,NULL,0,'','','','','','',NULL,'Shoe tunnel\nIntegrated bat sleeves',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(41,'SHREY PRO WHEELIE',1,'single',1,NULL,5,6,19,NULL,'inclusive',1,0.0000,'0041','C128',NULL,NULL,0,'','','','','','',NULL,'✔Shrey Match Cricket Wheelie Bag delivers an element-battling, highly water-resistant finish.\n✔Separate cave for 3 bats at the bottom protecting the bats from damage.\n✔Separate compartments for shoes, clothing, accessories and protective gear for better organization.\n✔Heavy canvas materials provide ultimate durability.A tapered design for greater stability in use.\n✔Interior pockets for organization.Heavy duty wheels with full length protective runners.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(42,'GM CRKT BAG – STRIKER HOLDALL BLUE',1,'single',1,NULL,NULL,6,20,NULL,'inclusive',1,0.0000,'0042','C128',NULL,NULL,0,'','','','','','',NULL,'600 Denier Polyester Fabric\nEnd Panel Bat Handle Ring\nInternal Pouch\nPadded Handles\nCarry Strap\n8mm Heavy Duty ?D? Opening Zip\nRust Proof GM Designer Zip\nAnti-Scuff Corner Protection, Protection',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(43,'GM GM BAT SIZE GAUGE',1,'single',1,NULL,3,7,NULL,NULL,'inclusive',1,0.0000,'0043','C128',NULL,NULL,0,'','','','','','',NULL,'Precision moulded bat gauge\nSizing parameters conform strictly to new MCC Law 5 bat size regulations\nFor umpire use to uphold the balance of play between bat and ball',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(44,'GM CRICKET BAT REPAIR KIT',1,'single',1,NULL,3,7,NULL,NULL,'inclusive',1,0.0000,'0044','C128',NULL,NULL,0,'','','','','','',NULL,'Contains all the necessary and essential items for use in successfully preparing your cricket bat and ensuring that your cricket bat is maintained in a manner that makes it perform optimally throughout. The Kit comes in a neat travel bag that stores easily and beautifully into any standard cricket kit bag.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(45,'KB CHEVRON GRIP',1,'single',1,NULL,4,7,NULL,NULL,'inclusive',1,0.0000,'0045','C128',NULL,NULL,0,'','','','','','',NULL,'The Kookaburra Chevron Grip is a thin cricket bat grip that allows players to feel the handle for improved control.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(46,'PORTABLE SCOREBOARD LARGE',1,'single',1,NULL,4,7,NULL,NULL,'inclusive',1,0.0000,'0046','C128',NULL,NULL,0,'','','','','','',NULL,'Kookaburra Cricket Sports Portable Scoreboard – Large The Kookaburra Portable Scoreboard is perfect for Schools and Clubs and includes a carry case for easy storage and handling',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(47,'KB UMPIRES COUNTER',1,'single',1,NULL,4,7,NULL,NULL,'inclusive',1,0.0000,'0047','C128',NULL,NULL,0,'','','','','','',NULL,'The Kookaburra Umpire’s Counter features a compact design and allows umpires to easily keep track of balls and overs bowled during an innings.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(48,'ROBOARM',1,'single',1,NULL,NULL,7,NULL,NULL,'inclusive',1,0.0000,'0048','C128',NULL,NULL,0,'','','','','','',NULL,'The roboarm advanced is the most advanced and world\'s fastest ball throwing aid.\nThe roboarm advanced is the most advanced and world\'s fastest ball throwing aid.\nRevolutionary innovation in cricket skill development. Very easy to use and generate high speed deliveries with minimal effort.\nPatented ball thrower\nIn-Box Contents: 1 stem with 1 ball holder.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(49,'WW HANGING CRICKET BALLS',1,'single',1,NULL,NULL,7,NULL,NULL,'inclusive',1,0.0000,'0049','C128',NULL,NULL,0,'','','','','','',NULL,'Material: Leather Color: Leather Practice Ball Red & String White Color\nProduct Size: Standard Target Audience All for Cricket Pactice\nPackage Quantity: 1 Leather Practice Cricket Ball\nCricket Training ball with Cord Best for Batting Practice Sessions\nImproves hand-to-eye coordination Best for beginners who want to improve their batting skills',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(50,'KOOKABURRA CRICKET SOCK CREAM',1,'single',1,NULL,4,7,NULL,NULL,'inclusive',1,0.0000,'0050','C128',NULL,NULL,0,'','','','','','',NULL,'The Kookaburra Pro Players Ped Sock is a full terry cricket sock constructed from 75% wool and 25% nylon & lycra.',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(51,'GM CRICKET HAT – PANAMA WHITE',1,'single',1,NULL,3,8,NULL,NULL,'inclusive',1,0.0000,'0051','C128',NULL,NULL,0,'','','','','','',NULL,'100% cotton\nReinforced wide brim\nGM6079\nFully lined',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(52,'KB PRO PLAYER SWEATER',1,'single',1,NULL,4,8,NULL,NULL,'inclusive',1,0.0000,'0052','C128',NULL,NULL,0,'','','','','','',NULL,'Stretch fabric for ease of movement\nIntegrated stay cool technology\nRegular Fit ? Full, loose fit for enhanced range of movement, allowing room for protective gear to be worn underneath\n100% Polyester pin hole pique with 100% polyester basket weave inserts',5,NULL,0,NULL,0,0,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(53,'Sample product',1,'variable',1,NULL,8,6,NULL,NULL,'exclusive',1,10.0000,'0053','C128',NULL,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,NULL,0,NULL,0,0,'2021-11-16 07:38:54','2021-11-16 08:13:50');
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `purchase_lines`
--
DROP TABLE IF EXISTS `purchase_lines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `purchase_lines` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transaction_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`variation_id` int(10) unsigned NOT NULL,
`quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
`pp_without_discount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Purchase price before inline discounts',
`discount_percent` decimal(5,2) NOT NULL DEFAULT '0.00' COMMENT 'Inline discount percentage',
`purchase_price` decimal(22,4) NOT NULL,
`purchase_price_inc_tax` decimal(22,4) NOT NULL DEFAULT '0.0000',
`item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
`tax_id` int(10) unsigned DEFAULT NULL,
`purchase_order_line_id` int(11) DEFAULT NULL,
`quantity_sold` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Quanity sold from this purchase line',
`quantity_adjusted` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Quanity adjusted in stock adjustment from this purchase line',
`quantity_returned` decimal(22,4) NOT NULL DEFAULT '0.0000',
`po_quantity_purchased` decimal(22,4) NOT NULL DEFAULT '0.0000',
`mfg_quantity_used` decimal(22,4) NOT NULL DEFAULT '0.0000',
`mfg_date` date DEFAULT NULL,
`exp_date` date DEFAULT NULL,
`lot_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_unit_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `purchase_lines_transaction_id_foreign` (`transaction_id`),
KEY `purchase_lines_product_id_foreign` (`product_id`),
KEY `purchase_lines_variation_id_foreign` (`variation_id`),
KEY `purchase_lines_tax_id_foreign` (`tax_id`),
KEY `purchase_lines_sub_unit_id_index` (`sub_unit_id`),
KEY `purchase_lines_lot_number_index` (`lot_number`),
CONSTRAINT `purchase_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `purchase_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
CONSTRAINT `purchase_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
CONSTRAINT `purchase_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `purchase_lines`
--
LOCK TABLES `purchase_lines` WRITE;
/*!40000 ALTER TABLE `purchase_lines` DISABLE KEYS */;
INSERT INTO `purchase_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `quantity`, `pp_without_discount`, `discount_percent`, `purchase_price`, `purchase_price_inc_tax`, `item_tax`, `tax_id`, `purchase_order_line_id`, `quantity_sold`, `quantity_adjusted`, `quantity_returned`, `po_quantity_purchased`, `mfg_quantity_used`, `mfg_date`, `exp_date`, `lot_number`, `sub_unit_id`, `created_at`, `updated_at`) VALUES (1,1,1,1,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(2,2,2,2,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(3,3,3,3,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(4,4,4,4,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(5,5,5,5,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(6,6,6,6,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(7,7,7,7,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(8,8,8,8,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(9,9,9,9,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(10,10,10,10,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(11,11,11,11,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(12,12,12,12,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(13,13,13,13,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(14,14,14,14,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(15,15,15,15,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(16,16,16,16,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(17,17,17,17,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(18,18,18,18,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(19,19,19,19,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(20,20,20,20,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(21,21,21,21,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(22,22,22,22,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(23,23,23,23,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(24,24,24,24,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(25,25,25,25,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(26,26,26,26,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(27,27,27,27,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(28,28,28,28,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(29,29,29,29,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(30,30,30,30,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(31,31,31,31,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(32,32,32,32,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(33,33,33,33,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(34,34,34,34,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(35,35,35,35,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(36,36,36,36,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(37,37,37,37,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(38,38,38,38,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(39,39,39,39,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(40,40,40,40,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(41,41,41,41,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(42,42,42,42,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(43,43,43,43,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(44,44,44,44,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(45,45,45,45,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(46,46,46,46,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(47,47,47,47,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(48,48,48,48,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(49,49,49,49,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(50,50,50,50,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(51,51,51,51,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(52,52,52,52,100.0000,110.0000,0.00,110.0000,100.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(53,53,53,53,10.0000,12.0000,0.00,12.0000,12.0000,0.0000,NULL,NULL,2.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-16 07:39:12','2021-11-16 08:18:27'),(54,53,53,54,10.0000,13.0000,0.00,13.0000,13.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-16 07:39:12','2021-11-16 07:39:12'),(55,53,53,55,10.0000,14.0000,0.00,14.0000,14.0000,0.0000,NULL,NULL,0.0000,0.0000,0.0000,0.0000,0.0000,NULL,NULL,NULL,NULL,'2021-11-16 07:39:12','2021-11-16 07:39:12');
/*!40000 ALTER TABLE `purchase_lines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reference_counts`
--
DROP TABLE IF EXISTS `reference_counts`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reference_counts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ref_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`ref_count` int(11) NOT NULL,
`business_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `reference_counts_business_id_index` (`business_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reference_counts`
--
LOCK TABLES `reference_counts` WRITE;
/*!40000 ALTER TABLE `reference_counts` DISABLE KEYS */;
INSERT INTO `reference_counts` (`id`, `ref_type`, `ref_count`, `business_id`, `created_at`, `updated_at`) VALUES (1,'contacts',7,1,'2021-06-12 08:05:38','2021-11-16 08:18:04'),(2,'business_location',4,1,'2021-06-12 08:05:38','2021-11-15 17:35:54'),(3,'sell_payment',39,1,'2021-06-21 07:33:41','2021-11-16 08:18:27'),(4,'sell_return',1,1,'2021-07-03 19:18:54','2021-07-03 19:18:54'),(5,'purchase',2,1,'2021-07-03 19:24:11','2021-09-01 10:30:06'),(6,'draft',5,1,'2021-07-31 08:35:33','2021-11-05 15:19:28'),(7,'purchase_payment',1,1,'2021-09-01 10:30:06','2021-09-01 10:30:06'),(8,'username',2,1,'2021-09-14 09:13:30','2021-11-08 15:55:47'),(9,'contacts',1,2,'2021-09-25 13:21:19','2021-09-25 13:21:19'),(10,'business_location',2,2,'2021-09-25 13:21:19','2021-09-25 13:23:52');
/*!40000 ALTER TABLE `reference_counts` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `res_product_modifier_sets`
--
DROP TABLE IF EXISTS `res_product_modifier_sets`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_product_modifier_sets` (
`modifier_set_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL COMMENT 'Table use to store the modifier sets applicable for a product',
KEY `res_product_modifier_sets_modifier_set_id_foreign` (`modifier_set_id`),
CONSTRAINT `res_product_modifier_sets_modifier_set_id_foreign` FOREIGN KEY (`modifier_set_id`) REFERENCES `products` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `res_product_modifier_sets`
--
LOCK TABLES `res_product_modifier_sets` WRITE;
/*!40000 ALTER TABLE `res_product_modifier_sets` DISABLE KEYS */;
/*!40000 ALTER TABLE `res_product_modifier_sets` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `res_tables`
--
DROP TABLE IF EXISTS `res_tables`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `res_tables` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`created_by` int(10) unsigned NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `res_tables_business_id_foreign` (`business_id`),
CONSTRAINT `res_tables_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `res_tables`
--
LOCK TABLES `res_tables` WRITE;
/*!40000 ALTER TABLE `res_tables` DISABLE KEYS */;
INSERT INTO `res_tables` (`id`, `business_id`, `location_id`, `name`, `description`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,1,'A1',NULL,1,NULL,'2021-09-13 11:11:35','2021-09-13 11:11:35'),(2,1,1,'A2',NULL,1,NULL,'2021-09-13 11:11:42','2021-09-13 11:11:42');
/*!40000 ALTER TABLE `res_tables` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `role_has_permissions`
--
DROP TABLE IF EXISTS `role_has_permissions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `role_has_permissions` (
`permission_id` int(10) unsigned NOT NULL,
`role_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`permission_id`,`role_id`),
KEY `role_has_permissions_role_id_foreign` (`role_id`),
CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `role_has_permissions`
--
LOCK TABLES `role_has_permissions` WRITE;
/*!40000 ALTER TABLE `role_has_permissions` DISABLE KEYS */;
INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES (25,2),(26,2),(48,2),(49,2),(50,2),(51,2),(80,2),(6,3),(81,3);
/*!40000 ALTER TABLE `role_has_permissions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `roles`
--
DROP TABLE IF EXISTS `roles`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `roles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(10) unsigned NOT NULL,
`is_default` tinyint(1) NOT NULL DEFAULT '0',
`is_service_staff` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `roles_business_id_foreign` (`business_id`),
CONSTRAINT `roles_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `roles`
--
LOCK TABLES `roles` WRITE;
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` (`id`, `name`, `guard_name`, `business_id`, `is_default`, `is_service_staff`, `created_at`, `updated_at`) VALUES (1,'Admin#1','web',1,1,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(2,'Cashier#1','web',1,0,0,'2021-06-12 08:05:38','2021-06-12 08:05:38'),(3,'Service Staff#1','web',1,0,1,'2021-09-13 11:10:23','2021-09-13 11:10:23');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sell_line_warranties`
--
DROP TABLE IF EXISTS `sell_line_warranties`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sell_line_warranties` (
`sell_line_id` int(11) NOT NULL,
`warranty_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sell_line_warranties`
--
LOCK TABLES `sell_line_warranties` WRITE;
/*!40000 ALTER TABLE `sell_line_warranties` DISABLE KEYS */;
/*!40000 ALTER TABLE `sell_line_warranties` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `selling_price_groups`
--
DROP TABLE IF EXISTS `selling_price_groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `selling_price_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`business_id` int(10) unsigned NOT NULL,
`is_active` tinyint(1) NOT NULL DEFAULT '1',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `selling_price_groups_business_id_foreign` (`business_id`),
CONSTRAINT `selling_price_groups_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `selling_price_groups`
--
LOCK TABLES `selling_price_groups` WRITE;
/*!40000 ALTER TABLE `selling_price_groups` DISABLE KEYS */;
INSERT INTO `selling_price_groups` (`id`, `name`, `description`, `business_id`, `is_active`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,'B2C',NULL,1,1,NULL,'2021-06-21 07:52:13','2021-07-03 19:18:07');
/*!40000 ALTER TABLE `selling_price_groups` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sessions`
--
DROP TABLE IF EXISTS `sessions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sessions` (
`id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(10) unsigned DEFAULT NULL,
`ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_agent` text COLLATE utf8mb4_unicode_ci,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`last_activity` int(11) NOT NULL,
UNIQUE KEY `sessions_id_unique` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sessions`
--
LOCK TABLES `sessions` WRITE;
/*!40000 ALTER TABLE `sessions` DISABLE KEYS */;
/*!40000 ALTER TABLE `sessions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `stock_adjustment_lines`
--
DROP TABLE IF EXISTS `stock_adjustment_lines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_adjustment_lines` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transaction_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`variation_id` int(10) unsigned NOT NULL,
`quantity` decimal(22,4) NOT NULL,
`unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Last purchase unit price',
`removed_purchase_line` int(11) DEFAULT NULL,
`lot_no_line_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `stock_adjustment_lines_product_id_foreign` (`product_id`),
KEY `stock_adjustment_lines_variation_id_foreign` (`variation_id`),
KEY `stock_adjustment_lines_transaction_id_index` (`transaction_id`),
KEY `stock_adjustment_lines_lot_no_line_id_index` (`lot_no_line_id`),
CONSTRAINT `stock_adjustment_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `stock_adjustment_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
CONSTRAINT `stock_adjustment_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `stock_adjustment_lines`
--
LOCK TABLES `stock_adjustment_lines` WRITE;
/*!40000 ALTER TABLE `stock_adjustment_lines` DISABLE KEYS */;
/*!40000 ALTER TABLE `stock_adjustment_lines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `stock_adjustments_temp`
--
DROP TABLE IF EXISTS `stock_adjustments_temp`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `stock_adjustments_temp` (
`id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `stock_adjustments_temp`
--
LOCK TABLES `stock_adjustments_temp` WRITE;
/*!40000 ALTER TABLE `stock_adjustments_temp` DISABLE KEYS */;
/*!40000 ALTER TABLE `stock_adjustments_temp` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `subscriptions`
--
DROP TABLE IF EXISTS `subscriptions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `subscriptions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`package_id` int(10) unsigned NOT NULL,
`start_date` date DEFAULT NULL,
`trial_end_date` date DEFAULT NULL,
`end_date` date DEFAULT NULL,
`package_price` decimal(22,4) NOT NULL,
`package_details` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`created_id` int(10) unsigned NOT NULL,
`paid_via` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('approved','waiting','declined') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'waiting',
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `subscriptions_business_id_foreign` (`business_id`),
KEY `subscriptions_package_id_index` (`package_id`),
KEY `subscriptions_created_id_index` (`created_id`),
CONSTRAINT `subscriptions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `subscriptions`
--
LOCK TABLES `subscriptions` WRITE;
/*!40000 ALTER TABLE `subscriptions` DISABLE KEYS */;
INSERT INTO `subscriptions` (`id`, `business_id`, `package_id`, `start_date`, `trial_end_date`, `end_date`, `package_price`, `package_details`, `created_id`, `paid_via`, `payment_transaction_id`, `status`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,1,'2021-09-25','2386-09-25','2386-09-25',0.0000,'{\"location_count\":0,\"user_count\":0,\"product_count\":0,\"invoice_count\":0,\"name\":\"Pack 1\",\"essentials_module\":\"1\",\"woocommerce_module\":\"1\"}',1,NULL,'FREE','approved',NULL,'2021-09-25 13:16:41','2021-09-25 13:16:41');
/*!40000 ALTER TABLE `subscriptions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `superadmin_communicator_logs`
--
DROP TABLE IF EXISTS `superadmin_communicator_logs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `superadmin_communicator_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_ids` text COLLATE utf8mb4_unicode_ci,
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` 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 `superadmin_communicator_logs`
--
LOCK TABLES `superadmin_communicator_logs` WRITE;
/*!40000 ALTER TABLE `superadmin_communicator_logs` DISABLE KEYS */;
/*!40000 ALTER TABLE `superadmin_communicator_logs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `superadmin_frontend_pages`
--
DROP TABLE IF EXISTS `superadmin_frontend_pages`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `superadmin_frontend_pages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`is_shown` tinyint(1) NOT NULL,
`menu_order` int(11) DEFAULT '0',
`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 `superadmin_frontend_pages`
--
LOCK TABLES `superadmin_frontend_pages` WRITE;
/*!40000 ALTER TABLE `superadmin_frontend_pages` DISABLE KEYS */;
/*!40000 ALTER TABLE `superadmin_frontend_pages` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `system`
--
DROP TABLE IF EXISTS `system`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `system` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `system`
--
LOCK TABLES `system` WRITE;
/*!40000 ALTER TABLE `system` DISABLE KEYS */;
INSERT INTO `system` (`id`, `key`, `value`) VALUES (1,'db_version','4.3'),(2,'default_business_active_status','1'),(5,'woocommerce_version','2.7'),(6,'essentials_version','2.3'),(7,'superadmin_version','2.7'),(8,'app_currency_id','2'),(9,'invoice_business_name','Medigrowmart POS'),(10,'invoice_business_landmark','Landmark'),(11,'invoice_business_zip','Zip'),(12,'invoice_business_state','State'),(13,'invoice_business_city','City'),(14,'invoice_business_country','Country'),(15,'email','<EMAIL>'),(16,'package_expiry_alert_days','5'),(17,'enable_business_based_username','0'),(18,'superadmin_register_tc',NULL),(19,'welcome_email_subject',NULL),(20,'welcome_email_body',NULL),(21,'additional_js',NULL),(22,'additional_css',NULL),(23,'offline_payment_details',NULL),(24,'superadmin_enable_register_tc','0'),(25,'allow_email_settings_to_businesses','0'),(26,'enable_new_business_registration_notification','0'),(27,'enable_new_subscription_notification','0'),(28,'enable_welcome_email','0'),(29,'enable_offline_payment','0');
/*!40000 ALTER TABLE `system` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tax_rates`
--
DROP TABLE IF EXISTS `tax_rates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tax_rates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double(22,4) NOT NULL,
`is_tax_group` tinyint(1) NOT NULL DEFAULT '0',
`for_tax_group` tinyint(1) NOT NULL DEFAULT '0',
`created_by` int(10) unsigned NOT NULL,
`woocommerce_tax_rate_id` int(11) DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `tax_rates_business_id_foreign` (`business_id`),
KEY `tax_rates_created_by_foreign` (`created_by`),
KEY `tax_rates_woocommerce_tax_rate_id_index` (`woocommerce_tax_rate_id`),
CONSTRAINT `tax_rates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `tax_rates_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tax_rates`
--
LOCK TABLES `tax_rates` WRITE;
/*!40000 ALTER TABLE `tax_rates` DISABLE KEYS */;
/*!40000 ALTER TABLE `tax_rates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transaction_payments`
--
DROP TABLE IF EXISTS `transaction_payments`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction_payments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transaction_id` int(11) unsigned DEFAULT NULL,
`business_id` int(11) DEFAULT NULL,
`is_return` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Used during sales to return the change',
`amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`transaction_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_transaction_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_holder_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_month` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_year` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_security` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cheque_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bank_account_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`paid_on` datetime DEFAULT NULL,
`created_by` int(11) NOT NULL,
`is_advance` tinyint(1) NOT NULL DEFAULT '0',
`payment_for` int(11) DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`note` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`payment_ref_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`account_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `transaction_payments_transaction_id_foreign` (`transaction_id`),
KEY `transaction_payments_created_by_index` (`created_by`),
KEY `transaction_payments_parent_id_index` (`parent_id`),
CONSTRAINT `transaction_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transaction_payments`
--
LOCK TABLES `transaction_payments` WRITE;
/*!40000 ALTER TABLE `transaction_payments` DISABLE KEYS */;
INSERT INTO `transaction_payments` (`id`, `transaction_id`, `business_id`, `is_return`, `amount`, `method`, `transaction_no`, `card_transaction_number`, `card_number`, `card_type`, `card_holder_name`, `card_month`, `card_year`, `card_security`, `cheque_number`, `bank_account_number`, `paid_on`, `created_by`, `is_advance`, `payment_for`, `parent_id`, `note`, `document`, `payment_ref_no`, `account_id`, `created_at`, `updated_at`) VALUES (1,54,1,0,28.0000,'cash',NULL,NULL,NULL,'credit',NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-16 13:48:27',1,0,10,NULL,NULL,NULL,'SP2021/0039',NULL,'2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `transaction_payments` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transaction_sell_lines`
--
DROP TABLE IF EXISTS `transaction_sell_lines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction_sell_lines` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transaction_id` int(10) unsigned NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`variation_id` int(10) unsigned NOT NULL,
`quantity` decimal(22,4) NOT NULL DEFAULT '0.0000',
`quantity_returned` decimal(20,4) NOT NULL DEFAULT '0.0000',
`unit_price_before_discount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`unit_price` decimal(22,4) DEFAULT NULL COMMENT 'Sell price excluding tax',
`line_discount_type` enum('fixed','percentage') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`line_discount_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`unit_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
`item_tax` decimal(22,4) NOT NULL COMMENT 'Tax for one quantity',
`tax_id` int(10) unsigned DEFAULT NULL,
`discount_id` int(11) DEFAULT NULL,
`lot_no_line_id` int(11) DEFAULT NULL,
`sell_line_note` text COLLATE utf8mb4_unicode_ci,
`woocommerce_line_items_id` int(11) DEFAULT NULL,
`so_line_id` int(11) DEFAULT NULL,
`so_quantity_invoiced` decimal(22,4) NOT NULL DEFAULT '0.0000',
`res_service_staff_id` int(11) DEFAULT NULL,
`res_line_order_status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_sell_line_id` int(11) DEFAULT NULL,
`children_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'Type of children for the parent, like modifier or combo',
`sub_unit_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `transaction_sell_lines_transaction_id_foreign` (`transaction_id`),
KEY `transaction_sell_lines_product_id_foreign` (`product_id`),
KEY `transaction_sell_lines_variation_id_foreign` (`variation_id`),
KEY `transaction_sell_lines_tax_id_foreign` (`tax_id`),
KEY `transaction_sell_lines_children_type_index` (`children_type`),
KEY `transaction_sell_lines_parent_sell_line_id_index` (`parent_sell_line_id`),
KEY `transaction_sell_lines_line_discount_type_index` (`line_discount_type`),
KEY `transaction_sell_lines_discount_id_index` (`discount_id`),
KEY `transaction_sell_lines_lot_no_line_id_index` (`lot_no_line_id`),
KEY `transaction_sell_lines_sub_unit_id_index` (`sub_unit_id`),
KEY `transaction_sell_lines_woocommerce_line_items_id_index` (`woocommerce_line_items_id`),
CONSTRAINT `transaction_sell_lines_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `transaction_sell_lines_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE,
CONSTRAINT `transaction_sell_lines_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `transactions` (`id`) ON DELETE CASCADE,
CONSTRAINT `transaction_sell_lines_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transaction_sell_lines`
--
LOCK TABLES `transaction_sell_lines` WRITE;
/*!40000 ALTER TABLE `transaction_sell_lines` DISABLE KEYS */;
INSERT INTO `transaction_sell_lines` (`id`, `transaction_id`, `product_id`, `variation_id`, `quantity`, `quantity_returned`, `unit_price_before_discount`, `unit_price`, `line_discount_type`, `line_discount_amount`, `unit_price_inc_tax`, `item_tax`, `tax_id`, `discount_id`, `lot_no_line_id`, `sell_line_note`, `woocommerce_line_items_id`, `so_line_id`, `so_quantity_invoiced`, `res_service_staff_id`, `res_line_order_status`, `parent_sell_line_id`, `children_type`, `sub_unit_id`, `created_at`, `updated_at`) VALUES (1,54,53,53,2.0000,0.0000,13.7500,13.7500,'fixed',0.0000,13.7500,0.0000,NULL,NULL,NULL,'',NULL,NULL,0.0000,NULL,NULL,NULL,'',NULL,'2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `transaction_sell_lines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transaction_sell_lines_purchase_lines`
--
DROP TABLE IF EXISTS `transaction_sell_lines_purchase_lines`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transaction_sell_lines_purchase_lines` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sell_line_id` int(10) unsigned DEFAULT NULL COMMENT 'id from transaction_sell_lines',
`stock_adjustment_line_id` int(10) unsigned DEFAULT NULL COMMENT 'id from stock_adjustment_lines',
`purchase_line_id` int(10) unsigned NOT NULL COMMENT 'id from purchase_lines',
`quantity` decimal(22,4) NOT NULL,
`qty_returned` decimal(22,4) NOT NULL DEFAULT '0.0000',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `sell_line_id` (`sell_line_id`),
KEY `stock_adjustment_line_id` (`stock_adjustment_line_id`),
KEY `purchase_line_id` (`purchase_line_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 `transaction_sell_lines_purchase_lines`
--
LOCK TABLES `transaction_sell_lines_purchase_lines` WRITE;
/*!40000 ALTER TABLE `transaction_sell_lines_purchase_lines` DISABLE KEYS */;
INSERT INTO `transaction_sell_lines_purchase_lines` (`id`, `sell_line_id`, `stock_adjustment_line_id`, `purchase_line_id`, `quantity`, `qty_returned`, `created_at`, `updated_at`) VALUES (1,1,NULL,53,2.0000,0.0000,'2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `transaction_sell_lines_purchase_lines` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `transactions`
--
DROP TABLE IF EXISTS `transactions`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `transactions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned DEFAULT NULL,
`res_table_id` int(10) unsigned DEFAULT NULL COMMENT 'fields to restaurant module',
`res_waiter_id` int(10) unsigned DEFAULT NULL COMMENT 'fields to restaurant module',
`res_order_status` enum('received','cooked','served') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sub_type` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sub_status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_quotation` tinyint(1) NOT NULL DEFAULT '0',
`payment_status` enum('paid','due','partial') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`adjustment_type` enum('normal','abnormal') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_id` int(11) unsigned DEFAULT NULL,
`customer_group_id` int(11) DEFAULT NULL COMMENT 'used to add customer group while selling',
`invoice_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ref_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subscription_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subscription_repeat_on` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`transaction_date` datetime NOT NULL,
`total_before_tax` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Total before the purchase/invoice tax, this includeds the indivisual product tax',
`tax_id` int(10) unsigned DEFAULT NULL,
`tax_amount` decimal(22,4) NOT NULL DEFAULT '0.0000',
`discount_type` enum('fixed','percentage') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`discount_amount` decimal(22,4) DEFAULT '0.0000',
`rp_redeemed` int(11) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`rp_redeemed_amount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'rp is the short form of reward points',
`shipping_details` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_address` text COLLATE utf8mb4_unicode_ci,
`shipping_status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivered_to` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_charges` decimal(22,4) NOT NULL DEFAULT '0.0000',
`shipping_custom_field_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_custom_field_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_custom_field_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_custom_field_4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_custom_field_5` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`additional_notes` text COLLATE utf8mb4_unicode_ci,
`staff_note` text COLLATE utf8mb4_unicode_ci,
`is_export` tinyint(1) NOT NULL DEFAULT '0',
`export_custom_fields_info` longtext COLLATE utf8mb4_unicode_ci,
`round_off_amount` decimal(22,4) NOT NULL DEFAULT '0.0000' COMMENT 'Difference of rounded total and actual total',
`final_total` decimal(22,4) NOT NULL DEFAULT '0.0000',
`expense_category_id` int(10) unsigned DEFAULT NULL,
`expense_for` int(10) unsigned DEFAULT NULL,
`commission_agent` int(11) DEFAULT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_direct_sale` tinyint(1) NOT NULL DEFAULT '0',
`is_suspend` tinyint(1) NOT NULL DEFAULT '0',
`exchange_rate` decimal(20,3) NOT NULL DEFAULT '1.000',
`total_amount_recovered` decimal(22,4) DEFAULT NULL COMMENT 'Used for stock adjustment.',
`transfer_parent_id` int(11) DEFAULT NULL,
`return_parent_id` int(11) DEFAULT NULL,
`opening_stock_product_id` int(11) DEFAULT NULL,
`created_by` int(10) unsigned NOT NULL,
`essentials_duration` decimal(8,2) NOT NULL,
`essentials_duration_unit` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`essentials_amount_per_unit_duration` decimal(22,4) NOT NULL DEFAULT '0.0000',
`essentials_allowances` text COLLATE utf8mb4_unicode_ci,
`essentials_deductions` text COLLATE utf8mb4_unicode_ci,
`woocommerce_order_id` int(11) DEFAULT NULL,
`prefer_payment_method` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`prefer_payment_account` int(11) DEFAULT NULL,
`sales_order_ids` text COLLATE utf8mb4_unicode_ci,
`purchase_order_ids` text COLLATE utf8mb4_unicode_ci,
`custom_field_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`import_batch` int(11) DEFAULT NULL,
`import_time` datetime DEFAULT NULL,
`types_of_service_id` int(11) DEFAULT NULL,
`packing_charge` decimal(22,4) DEFAULT NULL,
`packing_charge_type` enum('fixed','percent') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`service_custom_field_1` text COLLATE utf8mb4_unicode_ci,
`service_custom_field_2` text COLLATE utf8mb4_unicode_ci,
`service_custom_field_3` text COLLATE utf8mb4_unicode_ci,
`service_custom_field_4` text COLLATE utf8mb4_unicode_ci,
`service_custom_field_5` text COLLATE utf8mb4_unicode_ci,
`service_custom_field_6` text COLLATE utf8mb4_unicode_ci,
`is_created_from_api` tinyint(1) NOT NULL DEFAULT '0',
`rp_earned` int(11) NOT NULL DEFAULT '0' COMMENT 'rp is the short form of reward points',
`order_addresses` text COLLATE utf8mb4_unicode_ci,
`is_recurring` tinyint(1) NOT NULL DEFAULT '0',
`recur_interval` double(22,4) DEFAULT NULL,
`recur_interval_type` enum('days','months','years') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recur_repetitions` int(11) DEFAULT NULL,
`recur_stopped_on` datetime DEFAULT NULL,
`recur_parent_id` int(11) DEFAULT NULL,
`invoice_token` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pay_term_number` int(11) DEFAULT NULL,
`pay_term_type` enum('days','months') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`selling_price_group_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `transactions_tax_id_foreign` (`tax_id`),
KEY `transactions_business_id_index` (`business_id`),
KEY `transactions_type_index` (`type`),
KEY `transactions_contact_id_index` (`contact_id`),
KEY `transactions_transaction_date_index` (`transaction_date`),
KEY `transactions_created_by_index` (`created_by`),
KEY `transactions_location_id_index` (`location_id`),
KEY `transactions_expense_for_foreign` (`expense_for`),
KEY `transactions_expense_category_id_index` (`expense_category_id`),
KEY `transactions_sub_type_index` (`sub_type`),
KEY `transactions_return_parent_id_index` (`return_parent_id`),
KEY `type` (`type`),
KEY `transactions_status_index` (`status`),
KEY `transactions_sub_status_index` (`sub_status`),
KEY `transactions_res_table_id_index` (`res_table_id`),
KEY `transactions_res_waiter_id_index` (`res_waiter_id`),
KEY `transactions_res_order_status_index` (`res_order_status`),
KEY `transactions_payment_status_index` (`payment_status`),
KEY `transactions_discount_type_index` (`discount_type`),
KEY `transactions_commission_agent_index` (`commission_agent`),
KEY `transactions_transfer_parent_id_index` (`transfer_parent_id`),
KEY `transactions_types_of_service_id_index` (`types_of_service_id`),
KEY `transactions_packing_charge_type_index` (`packing_charge_type`),
KEY `transactions_recur_parent_id_index` (`recur_parent_id`),
KEY `transactions_selling_price_group_id_index` (`selling_price_group_id`),
KEY `transactions_woocommerce_order_id_index` (`woocommerce_order_id`),
CONSTRAINT `transactions_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `transactions_contact_id_foreign` FOREIGN KEY (`contact_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE,
CONSTRAINT `transactions_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE,
CONSTRAINT `transactions_expense_category_id_foreign` FOREIGN KEY (`expense_category_id`) REFERENCES `expense_categories` (`id`) ON DELETE CASCADE,
CONSTRAINT `transactions_expense_for_foreign` FOREIGN KEY (`expense_for`) REFERENCES `users` (`id`) ON DELETE CASCADE,
CONSTRAINT `transactions_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `business_locations` (`id`),
CONSTRAINT `transactions_tax_id_foreign` FOREIGN KEY (`tax_id`) REFERENCES `tax_rates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `transactions`
--
LOCK TABLES `transactions` WRITE;
/*!40000 ALTER TABLE `transactions` DISABLE KEYS */;
INSERT INTO `transactions` (`id`, `business_id`, `location_id`, `res_table_id`, `res_waiter_id`, `res_order_status`, `type`, `sub_type`, `status`, `sub_status`, `is_quotation`, `payment_status`, `adjustment_type`, `contact_id`, `customer_group_id`, `invoice_no`, `ref_no`, `subscription_no`, `subscription_repeat_on`, `transaction_date`, `total_before_tax`, `tax_id`, `tax_amount`, `discount_type`, `discount_amount`, `rp_redeemed`, `rp_redeemed_amount`, `shipping_details`, `shipping_address`, `shipping_status`, `delivered_to`, `shipping_charges`, `shipping_custom_field_1`, `shipping_custom_field_2`, `shipping_custom_field_3`, `shipping_custom_field_4`, `shipping_custom_field_5`, `additional_notes`, `staff_note`, `is_export`, `export_custom_fields_info`, `round_off_amount`, `final_total`, `expense_category_id`, `expense_for`, `commission_agent`, `document`, `is_direct_sale`, `is_suspend`, `exchange_rate`, `total_amount_recovered`, `transfer_parent_id`, `return_parent_id`, `opening_stock_product_id`, `created_by`, `essentials_duration`, `essentials_duration_unit`, `essentials_amount_per_unit_duration`, `essentials_allowances`, `essentials_deductions`, `woocommerce_order_id`, `prefer_payment_method`, `prefer_payment_account`, `sales_order_ids`, `purchase_order_ids`, `custom_field_1`, `custom_field_2`, `custom_field_3`, `custom_field_4`, `import_batch`, `import_time`, `types_of_service_id`, `packing_charge`, `packing_charge_type`, `service_custom_field_1`, `service_custom_field_2`, `service_custom_field_3`, `service_custom_field_4`, `service_custom_field_5`, `service_custom_field_6`, `is_created_from_api`, `rp_earned`, `order_addresses`, `is_recurring`, `recur_interval`, `recur_interval_type`, `recur_repetitions`, `recur_stopped_on`, `recur_parent_id`, `invoice_token`, `pay_term_number`, `pay_term_type`, `selling_price_group_id`, `created_at`, `updated_at`) VALUES (1,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,1,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(2,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,2,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(3,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,3,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(4,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,4,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(5,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,5,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(6,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,6,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(7,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,7,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(8,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,8,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(9,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,9,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(10,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,10,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(11,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,11,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(12,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,12,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(13,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,13,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(14,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,14,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(15,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,15,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(16,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,16,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(17,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,17,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(18,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,18,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(19,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,19,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(20,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,20,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(21,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,21,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(22,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,22,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(23,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,23,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(24,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,24,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(25,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,25,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(26,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,26,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(27,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,27,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(28,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,28,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(29,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,29,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(30,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,30,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(31,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,31,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(32,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,32,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(33,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,33,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(34,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,34,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(35,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,35,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(36,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,36,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(37,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,37,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(38,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,38,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(39,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,39,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(40,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,40,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(41,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,41,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(42,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,42,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(43,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,43,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(44,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,44,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(45,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,45,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(46,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,46,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(47,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,47,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(48,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,48,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(49,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,49,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(50,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,50,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(51,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,51,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(52,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 23:18:23',10000.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,10000.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,52,5,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(53,1,1,NULL,NULL,NULL,'opening_stock',NULL,'received',NULL,0,'paid',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-01-01 13:09:12',390.0000,NULL,0.0000,NULL,0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.0000,390.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,53,1,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'2021-11-16 07:39:12','2021-11-16 07:39:12'),(54,1,1,NULL,NULL,NULL,'sell',NULL,'final',NULL,0,'paid',NULL,10,NULL,'0042','',NULL,NULL,'2021-11-16 13:48:27',27.5000,NULL,0.0000,'percentage',0.0000,0,0.0000,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0.5000,28.0000,NULL,NULL,NULL,NULL,0,0,1.000,NULL,NULL,NULL,NULL,1,0.00,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0.0000,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,NULL,0,1.0000,'days',0,NULL,NULL,NULL,NULL,NULL,0,'2021-11-16 08:18:27','2021-11-16 08:18:27');
/*!40000 ALTER TABLE `transactions` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `types_of_services`
--
DROP TABLE IF EXISTS `types_of_services`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `types_of_services` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`business_id` int(11) NOT NULL,
`location_price_group` text COLLATE utf8mb4_unicode_ci,
`packing_charge` decimal(22,4) DEFAULT NULL,
`packing_charge_type` enum('fixed','percent') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`enable_custom_fields` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `types_of_services_business_id_index` (`business_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `types_of_services`
--
LOCK TABLES `types_of_services` WRITE;
/*!40000 ALTER TABLE `types_of_services` DISABLE KEYS */;
INSERT INTO `types_of_services` (`id`, `name`, `description`, `business_id`, `location_price_group`, `packing_charge`, `packing_charge_type`, `enable_custom_fields`, `created_at`, `updated_at`) VALUES (1,'Dine In',NULL,1,'{\"1\":\"0\"}',0.0000,'fixed',0,'2021-09-13 11:05:20','2021-09-13 11:05:20'),(2,'Parcel',NULL,1,'{\"1\":\"0\"}',10.0000,'fixed',0,'2021-09-13 11:05:31','2021-09-13 11:05:31');
/*!40000 ALTER TABLE `types_of_services` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `units`
--
DROP TABLE IF EXISTS `units`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `units` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(10) unsigned NOT NULL,
`actual_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`short_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`allow_decimal` tinyint(1) NOT NULL,
`base_unit_id` int(11) DEFAULT NULL,
`base_unit_multiplier` decimal(20,4) DEFAULT NULL,
`created_by` int(10) unsigned NOT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `units_business_id_foreign` (`business_id`),
KEY `units_created_by_foreign` (`created_by`),
KEY `units_base_unit_id_index` (`base_unit_id`),
CONSTRAINT `units_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE,
CONSTRAINT `units_created_by_foreign` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `units`
--
LOCK TABLES `units` WRITE;
/*!40000 ALTER TABLE `units` DISABLE KEYS */;
INSERT INTO `units` (`id`, `business_id`, `actual_name`, `short_name`, `allow_decimal`, `base_unit_id`, `base_unit_multiplier`, `created_by`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,1,'Piece','Pc(s)',1,NULL,NULL,1,NULL,'2021-06-12 08:05:38','2021-11-15 17:09:54'),(2,1,'Gram','G',1,NULL,NULL,1,NULL,'2021-06-21 07:56:17','2021-07-01 02:50:10'),(3,1,'Kilogram','KG',1,2,1000.0000,1,'2021-07-01 02:38:39','2021-06-21 07:58:07','2021-07-01 02:38:39'),(4,1,'Kilogram','KG',1,NULL,NULL,1,NULL,'2021-07-01 02:37:06','2021-07-03 19:04:08'),(5,1,'Chain','ch',0,NULL,NULL,1,NULL,'2021-07-11 02:58:46','2021-07-11 02:58:46');
/*!40000 ALTER TABLE `units` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user_contact_access`
--
DROP TABLE IF EXISTS `user_contact_access`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `user_contact_access` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`contact_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `user_contact_access_user_id_index` (`user_id`),
KEY `user_contact_access_contact_id_index` (`contact_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `user_contact_access`
--
LOCK TABLES `user_contact_access` WRITE;
/*!40000 ALTER TABLE `user_contact_access` DISABLE KEYS */;
/*!40000 ALTER TABLE `user_contact_access` 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,
`user_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'user',
`surname` char(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`username` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`language` char(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'en',
`contact_no` char(15) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`business_id` int(10) unsigned DEFAULT NULL,
`essentials_department_id` int(11) DEFAULT NULL,
`essentials_designation_id` int(11) DEFAULT NULL,
`max_sales_discount_percent` decimal(5,2) DEFAULT NULL,
`allow_login` tinyint(1) NOT NULL DEFAULT '1',
`status` enum('active','inactive','terminated') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'active',
`is_cmmsn_agnt` tinyint(1) NOT NULL DEFAULT '0',
`cmmsn_percent` decimal(4,2) NOT NULL DEFAULT '0.00',
`selected_contacts` tinyint(1) NOT NULL DEFAULT '0',
`dob` date DEFAULT NULL,
`gender` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`marital_status` enum('married','unmarried','divorced') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`blood_group` char(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`contact_number` char(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`alt_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`family_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fb_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`twitter_link` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`social_media_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`social_media_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`permanent_address` text COLLATE utf8mb4_unicode_ci,
`current_address` text COLLATE utf8mb4_unicode_ci,
`guardian_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_1` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_2` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_3` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`custom_field_4` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bank_details` longtext COLLATE utf8mb4_unicode_ci,
`id_proof_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`id_proof_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_username_unique` (`username`),
KEY `users_business_id_foreign` (`business_id`),
KEY `users_user_type_index` (`user_type`),
CONSTRAINT `users_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=6 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` (`id`, `user_type`, `surname`, `first_name`, `last_name`, `username`, `email`, `password`, `language`, `contact_no`, `address`, `remember_token`, `business_id`, `essentials_department_id`, `essentials_designation_id`, `max_sales_discount_percent`, `allow_login`, `status`, `is_cmmsn_agnt`, `cmmsn_percent`, `selected_contacts`, `dob`, `gender`, `marital_status`, `blood_group`, `contact_number`, `alt_number`, `family_number`, `fb_link`, `twitter_link`, `social_media_1`, `social_media_2`, `permanent_address`, `current_address`, `guardian_name`, `custom_field_1`, `custom_field_2`, `custom_field_3`, `custom_field_4`, `bank_details`, `id_proof_name`, `id_proof_number`, `deleted_at`, `created_at`, `updated_at`) VALUES (1,'user',NULL,'USCRIC POS','ADMIN','admin','<EMAIL>','$2y$10$H219G1jzBzmrXHgMFxsBQ.XG8sS18DMwW.0j.GLtovchT1zjAFPeG','en',NULL,NULL,'xGgkPuxuPhPjvx7vZOuSuqGP6MSpjv8n81KQXsch68UQXxhuQR1PWIDY1cYE',1,NULL,NULL,NULL,1,'active',0,0.00,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}',NULL,NULL,NULL,'2021-06-12 08:05:38','2021-11-16 04:01:58'),(2,'user','Mr','Suvamoy','Sarkar',NULL,'<EMAIL>',NULL,'en',NULL,NULL,NULL,1,NULL,NULL,NULL,0,'active',0,0.00,0,NULL,NULL,NULL,NULL,'+448622024378',NULL,NULL,NULL,NULL,NULL,NULL,'21/19 G.C Bose <NAME>','21/19 G.C Bose <NAME>',NULL,NULL,NULL,NULL,NULL,'{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}',NULL,NULL,'2021-11-13 13:57:13','2021-09-13 11:10:57','2021-11-13 13:57:13'),(3,'user','Test','Sourav','<PASSWORD>','<PASSWORD>','<EMAIL>','<PASSWORD>','en',NULL,NULL,'okgMWqIbHWEFeOrpToq2l0klvq7j8vCiBYwP0HFqj7E3wRSA0YMzVS9YrKLn',1,NULL,NULL,NULL,1,'active',0,0.00,0,'1974-06-04','male','unmarried',NULL,'8240716064',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{\"account_holder_name\":\"Test1\",\"account_number\":\"12341234123\",\"bank_name\":\"Abc\",\"bank_code\":\"Abc0001405\",\"branch\":\"Kolkata\",\"tax_payer_id\":null}',NULL,NULL,NULL,'2021-09-14 09:13:30','2021-09-14 09:13:30'),(5,'user',NULL,'USCRIC','POS Admin','uscricketstore.ml','<EMAIL>','$2y$10$wn04PIrXjC9J8LxPLZen5enUd0NWTk5kh4wSqGKNCdMSBr3jc8Ovq','en',NULL,NULL,'EUwWpI8J1LoWu2VxFr6Df8cMwDwOd0nYPYL6cHglqx7o45zXQz68nlIHabfl',1,NULL,NULL,NULL,1,'active',0,0.00,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{\"account_holder_name\":null,\"account_number\":null,\"bank_name\":null,\"bank_code\":null,\"branch\":null,\"tax_payer_id\":null}',NULL,NULL,NULL,'2021-11-08 15:55:47','2021-11-08 16:47:08');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `variation_group_prices`
--
DROP TABLE IF EXISTS `variation_group_prices`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `variation_group_prices` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`variation_id` int(10) unsigned NOT NULL,
`price_group_id` int(10) unsigned NOT NULL,
`price_inc_tax` decimal(22,4) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `variation_group_prices_variation_id_foreign` (`variation_id`),
KEY `variation_group_prices_price_group_id_foreign` (`price_group_id`),
CONSTRAINT `variation_group_prices_price_group_id_foreign` FOREIGN KEY (`price_group_id`) REFERENCES `selling_price_groups` (`id`) ON DELETE CASCADE,
CONSTRAINT `variation_group_prices_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `variation_group_prices`
--
LOCK TABLES `variation_group_prices` WRITE;
/*!40000 ALTER TABLE `variation_group_prices` DISABLE KEYS */;
INSERT INTO `variation_group_prices` (`id`, `variation_id`, `price_group_id`, `price_inc_tax`, `created_at`, `updated_at`) VALUES (1,2850,1,0.0000,'2021-07-09 03:35:12','2021-07-09 03:35:12');
/*!40000 ALTER TABLE `variation_group_prices` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `variation_location_details`
--
DROP TABLE IF EXISTS `variation_location_details`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `variation_location_details` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(10) unsigned NOT NULL,
`product_variation_id` int(10) unsigned NOT NULL COMMENT 'id from product_variations table',
`variation_id` int(10) unsigned NOT NULL,
`location_id` int(10) unsigned NOT NULL,
`qty_available` decimal(22,4) NOT NULL DEFAULT '0.0000',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `variation_location_details_location_id_foreign` (`location_id`),
KEY `variation_location_details_product_id_index` (`product_id`),
KEY `variation_location_details_product_variation_id_index` (`product_variation_id`),
KEY `variation_location_details_variation_id_index` (`variation_id`),
CONSTRAINT `variation_location_details_location_id_foreign` FOREIGN KEY (`location_id`) REFERENCES `business_locations` (`id`),
CONSTRAINT `variation_location_details_variation_id_foreign` FOREIGN KEY (`variation_id`) REFERENCES `variations` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `variation_location_details`
--
LOCK TABLES `variation_location_details` WRITE;
/*!40000 ALTER TABLE `variation_location_details` DISABLE KEYS */;
INSERT INTO `variation_location_details` (`id`, `product_id`, `product_variation_id`, `variation_id`, `location_id`, `qty_available`, `created_at`, `updated_at`) VALUES (1,1,1,1,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(2,2,2,2,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(3,3,3,3,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(4,4,4,4,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(5,5,5,5,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(6,6,6,6,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(7,7,7,7,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(8,8,8,8,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(9,9,9,9,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(10,10,10,10,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(11,11,11,11,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(12,12,12,12,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(13,13,13,13,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(14,14,14,14,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(15,15,15,15,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(16,16,16,16,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(17,17,17,17,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(18,18,18,18,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(19,19,19,19,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(20,20,20,20,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(21,21,21,21,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(22,22,22,22,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(23,23,23,23,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(24,24,24,24,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(25,25,25,25,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(26,26,26,26,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(27,27,27,27,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(28,28,28,28,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(29,29,29,29,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(30,30,30,30,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(31,31,31,31,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(32,32,32,32,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(33,33,33,33,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(34,34,34,34,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(35,35,35,35,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(36,36,36,36,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(37,37,37,37,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(38,38,38,38,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(39,39,39,39,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(40,40,40,40,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(41,41,41,41,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(42,42,42,42,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(43,43,43,43,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(44,44,44,44,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(45,45,45,45,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(46,46,46,46,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(47,47,47,47,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(48,48,48,48,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(49,49,49,49,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(50,50,50,50,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(51,51,51,51,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(52,52,52,52,1,100.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23'),(53,53,53,53,1,8.0000,'2021-11-16 07:39:12','2021-11-16 08:18:27'),(54,53,53,54,1,10.0000,'2021-11-16 07:39:12','2021-11-16 07:39:12'),(55,53,53,55,1,10.0000,'2021-11-16 07:39:12','2021-11-16 07:39:12');
/*!40000 ALTER TABLE `variation_location_details` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `variation_templates`
--
DROP TABLE IF EXISTS `variation_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `variation_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(10) unsigned NOT NULL,
`woocommerce_attr_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `variation_templates_business_id_foreign` (`business_id`),
KEY `variation_templates_woocommerce_attr_id_index` (`woocommerce_attr_id`),
CONSTRAINT `variation_templates_business_id_foreign` FOREIGN KEY (`business_id`) REFERENCES `business` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `variation_templates`
--
LOCK TABLES `variation_templates` WRITE;
/*!40000 ALTER TABLE `variation_templates` DISABLE KEYS */;
INSERT INTO `variation_templates` (`id`, `name`, `business_id`, `woocommerce_attr_id`, `created_at`, `updated_at`) VALUES (1,'Stock',1,NULL,'2021-07-10 16:36:50','2021-07-10 16:36:50'),(2,'Stock1',1,NULL,'2021-07-10 17:02:47','2021-07-10 17:02:47');
/*!40000 ALTER TABLE `variation_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `variation_value_templates`
--
DROP TABLE IF EXISTS `variation_value_templates`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `variation_value_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`variation_template_id` int(10) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `variation_value_templates_name_index` (`name`),
KEY `variation_value_templates_variation_template_id_index` (`variation_template_id`),
CONSTRAINT `variation_value_templates_variation_template_id_foreign` FOREIGN KEY (`variation_template_id`) REFERENCES `variation_templates` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `variation_value_templates`
--
LOCK TABLES `variation_value_templates` WRITE;
/*!40000 ALTER TABLE `variation_value_templates` DISABLE KEYS */;
INSERT INTO `variation_value_templates` (`id`, `name`, `variation_template_id`, `created_at`, `updated_at`) VALUES (1,'1',1,'2021-07-10 16:36:51','2021-07-10 16:36:51'),(2,'2',1,'2021-07-10 16:36:51','2021-07-10 16:36:51'),(3,'3',1,'2021-07-10 16:43:17','2021-07-10 16:43:17'),(4,'1',2,'2021-07-10 17:02:47','2021-07-10 17:02:47');
/*!40000 ALTER TABLE `variation_value_templates` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `variations`
--
DROP TABLE IF EXISTS `variations`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `variations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_id` int(10) unsigned NOT NULL,
`sub_sku` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_variation_id` int(10) unsigned NOT NULL,
`woocommerce_variation_id` int(11) DEFAULT NULL,
`variation_value_id` int(11) DEFAULT NULL,
`default_purchase_price` decimal(22,4) DEFAULT NULL,
`dpp_inc_tax` decimal(22,4) NOT NULL DEFAULT '0.0000',
`profit_percent` decimal(22,4) NOT NULL DEFAULT '0.0000',
`default_sell_price` decimal(22,4) DEFAULT NULL,
`sell_price_inc_tax` decimal(22,4) DEFAULT NULL COMMENT 'Sell price including tax',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`combo_variations` text COLLATE utf8mb4_unicode_ci COMMENT 'Contains the combo variation details',
PRIMARY KEY (`id`),
KEY `variations_product_id_foreign` (`product_id`),
KEY `variations_product_variation_id_foreign` (`product_variation_id`),
KEY `variations_name_index` (`name`),
KEY `variations_sub_sku_index` (`sub_sku`),
KEY `variations_variation_value_id_index` (`variation_value_id`),
KEY `variations_woocommerce_variation_id_index` (`woocommerce_variation_id`),
CONSTRAINT `variations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
CONSTRAINT `variations_product_variation_id_foreign` FOREIGN KEY (`product_variation_id`) REFERENCES `product_variations` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `variations`
--
LOCK TABLES `variations` WRITE;
/*!40000 ALTER TABLE `variations` DISABLE KEYS */;
INSERT INTO `variations` (`id`, `name`, `product_id`, `sub_sku`, `product_variation_id`, `woocommerce_variation_id`, `variation_value_id`, `default_purchase_price`, `dpp_inc_tax`, `profit_percent`, `default_sell_price`, `sell_price_inc_tax`, `created_at`, `updated_at`, `deleted_at`, `combo_variations`) VALUES (1,'DUMMY',1,'0001',1,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(2,'DUMMY',2,'0002',2,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(3,'DUMMY',3,'0003',3,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(4,'DUMMY',4,'0004',4,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(5,'DUMMY',5,'0005',5,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(6,'DUMMY',6,'0006',6,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(7,'DUMMY',7,'0007',7,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(8,'DUMMY',8,'0008',8,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(9,'DUMMY',9,'0009',9,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(10,'DUMMY',10,'0010',10,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(11,'DUMMY',11,'0011',11,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(12,'DUMMY',12,'0012',12,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(13,'DUMMY',13,'0013',13,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(14,'DUMMY',14,'0014',14,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(15,'DUMMY',15,'0015',15,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(16,'DUMMY',16,'0016',16,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(17,'DUMMY',17,'0017',17,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(18,'DUMMY',18,'0018',18,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(19,'DUMMY',19,'0019',19,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(20,'DUMMY',20,'0020',20,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(21,'DUMMY',21,'0021',21,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(22,'DUMMY',22,'0022',22,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(23,'DUMMY',23,'0023',23,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(24,'DUMMY',24,'0024',24,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(25,'DUMMY',25,'0025',25,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(26,'DUMMY',26,'0026',26,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(27,'DUMMY',27,'0027',27,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(28,'DUMMY',28,'0028',28,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(29,'DUMMY',29,'0029',29,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(30,'DUMMY',30,'0030',30,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(31,'DUMMY',31,'0031',31,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(32,'DUMMY',32,'0032',32,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(33,'DUMMY',33,'0033',33,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(34,'DUMMY',34,'0034',34,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(35,'DUMMY',35,'0035',35,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(36,'DUMMY',36,'0036',36,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(37,'DUMMY',37,'0037',37,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(38,'DUMMY',38,'0038',38,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(39,'DUMMY',39,'0039',39,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(40,'DUMMY',40,'0040',40,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(41,'DUMMY',41,'0041',41,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(42,'DUMMY',42,'0042',42,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(43,'DUMMY',43,'0043',43,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(44,'DUMMY',44,'0044',44,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(45,'DUMMY',45,'0045',45,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(46,'DUMMY',46,'0046',46,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(47,'DUMMY',47,'0047',47,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(48,'DUMMY',48,'0048',48,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(49,'DUMMY',49,'0049',49,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(50,'DUMMY',50,'0050',50,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(51,'DUMMY',51,'0051',51,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(52,'DUMMY',52,'0052',52,NULL,NULL,110.0000,100.0000,25.0000,120.0000,120.0000,'2021-11-15 17:48:23','2021-11-15 17:48:23',NULL,'[]'),(53,'1',53,'0053-1',53,NULL,1,11.0000,11.0000,25.0000,13.7500,13.7500,'2021-11-16 07:38:54','2021-11-16 08:13:50',NULL,NULL),(54,'2',53,'0053-2',53,NULL,2,13.0000,13.0000,25.0000,16.2500,16.2500,'2021-11-16 07:38:54','2021-11-16 08:13:50',NULL,NULL),(55,'3',53,'0053-3',53,NULL,3,14.0000,14.0000,25.0000,17.5000,17.5000,'2021-11-16 07:38:54','2021-11-16 08:13:50',NULL,NULL);
/*!40000 ALTER TABLE `variations` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `warranties`
--
DROP TABLE IF EXISTS `warranties`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `warranties` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`business_id` int(11) NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`duration` int(11) NOT NULL,
`duration_type` enum('days','months','years') COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `warranties_business_id_index` (`business_id`),
KEY `warranties_duration_type_index` (`duration_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `warranties`
--
LOCK TABLES `warranties` WRITE;
/*!40000 ALTER TABLE `warranties` DISABLE KEYS */;
/*!40000 ALTER TABLE `warranties` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `woocommerce_sync_logs`
--
DROP TABLE IF EXISTS `woocommerce_sync_logs`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `woocommerce_sync_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`business_id` int(11) NOT NULL,
`sync_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`operation_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`data` longtext COLLATE utf8mb4_unicode_ci,
`details` longtext COLLATE utf8mb4_unicode_ci,
`created_by` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=347 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `woocommerce_sync_logs`
--
LOCK TABLES `woocommerce_sync_logs` WRITE;
/*!40000 ALTER TABLE `woocommerce_sync_logs` DISABLE KEYS */;
INSERT INTO `woocommerce_sync_logs` (`id`, `business_id`, `sync_type`, `operation_type`, `data`, `details`, `created_by`, `created_at`, `updated_at`) VALUES (1,1,'categories',NULL,NULL,NULL,1,'2021-06-12 08:23:21','2021-06-12 08:23:21'),(2,1,'categories',NULL,NULL,NULL,1,'2021-06-12 08:23:26','2021-06-12 08:23:26'),(3,1,'all_products',NULL,NULL,NULL,1,'2021-06-12 08:23:26','2021-06-12 08:23:26'),(4,1,'categories',NULL,NULL,NULL,1,'2021-06-12 08:26:40','2021-06-12 08:26:40'),(5,1,'categories',NULL,NULL,NULL,1,'2021-06-12 08:28:23','2021-06-12 08:28:23'),(6,1,'categories',NULL,NULL,NULL,1,'2021-06-12 08:28:25','2021-06-12 08:28:25'),(7,1,'categories',NULL,NULL,NULL,1,'2021-06-12 13:56:28','2021-06-12 13:56:28'),(8,1,'categories',NULL,NULL,NULL,1,'2021-06-12 13:56:29','2021-06-12 13:56:29'),(9,1,'categories',NULL,NULL,NULL,1,'2021-06-12 13:56:31','2021-06-12 13:56:31'),(10,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:50:33','2021-06-23 04:50:33'),(11,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:50:40','2021-06-23 04:50:40'),(12,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:51:11','2021-06-23 04:51:11'),(13,1,'all_products','created','[\"123\"]',NULL,1,'2021-06-23 04:51:12','2021-06-23 04:51:12'),(14,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:52:31','2021-06-23 04:52:31'),(15,1,'orders',NULL,NULL,NULL,1,'2021-06-23 04:52:36','2021-06-23 04:52:36'),(16,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:54:02','2021-06-23 04:54:02'),(17,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:54:05','2021-06-23 04:54:05'),(18,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:55:46','2021-06-23 04:55:46'),(19,1,'categories',NULL,NULL,NULL,1,'2021-06-23 04:55:49','2021-06-23 04:55:49'),(20,1,'all_products','updated','[\"123\"]',NULL,1,'2021-06-23 04:55:50','2021-06-23 04:55:50'),(21,1,'categories',NULL,NULL,NULL,1,'2021-06-24 03:42:53','2021-06-24 03:42:53'),(22,1,'categories',NULL,NULL,NULL,1,'2021-06-24 03:43:05','2021-06-24 03:43:05'),(23,1,'categories',NULL,NULL,NULL,1,'2021-06-24 03:43:09','2021-06-24 03:43:09'),(24,1,'all_products',NULL,NULL,NULL,1,'2021-06-24 03:43:09','2021-06-24 03:43:09'),(25,1,'categories','reset',NULL,NULL,1,'2021-06-24 04:01:05','2021-06-24 04:01:05'),(26,1,'all_products','reset',NULL,NULL,1,'2021-06-24 04:01:10','2021-06-24 04:01:10'),(27,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:01:12','2021-06-24 04:01:12'),(28,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:01:16','2021-06-24 04:01:16'),(29,1,'all_products','created','[\"123\"]',NULL,1,'2021-06-24 04:01:16','2021-06-24 04:01:16'),(30,1,'categories','reset',NULL,NULL,1,'2021-06-24 04:07:47','2021-06-24 04:07:47'),(31,1,'all_products','reset',NULL,NULL,1,'2021-06-24 04:07:53','2021-06-24 04:07:53'),(32,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:07:57','2021-06-24 04:07:57'),(33,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:08:00','2021-06-24 04:08:00'),(34,1,'all_products','created','[\"123\"]',NULL,1,'2021-06-24 04:08:01','2021-06-24 04:08:01'),(35,1,'orders',NULL,NULL,NULL,1,'2021-06-24 04:08:05','2021-06-24 04:08:05'),(36,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:14:30','2021-06-24 04:14:30'),(40,1,'all_products','reset',NULL,NULL,1,'2021-06-24 04:14:43','2021-06-24 04:14:43'),(41,1,'categories','reset',NULL,NULL,1,'2021-06-24 04:14:49','2021-06-24 04:14:49'),(42,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:14:52','2021-06-24 04:14:52'),(45,1,'categories','reset',NULL,NULL,1,'2021-06-24 04:18:28','2021-06-24 04:18:28'),(46,1,'all_products','reset',NULL,NULL,1,'2021-06-24 04:18:33','2021-06-24 04:18:33'),(47,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:18:35','2021-06-24 04:18:35'),(49,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:20:11','2021-06-24 04:20:11'),(50,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:20:13','2021-06-24 04:20:13'),(51,1,'all_products','created','[\"123\"]',NULL,1,'2021-06-24 04:20:13','2021-06-24 04:20:13'),(52,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:20:18','2021-06-24 04:20:18'),(53,1,'new_products',NULL,NULL,NULL,1,'2021-06-24 04:20:18','2021-06-24 04:20:18'),(54,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:24:12','2021-06-24 04:24:12'),(55,1,'categories',NULL,NULL,NULL,1,'2021-06-24 04:24:14','2021-06-24 04:24:14'),(56,1,'all_products','updated','[\"123\"]',NULL,1,'2021-06-24 04:24:14','2021-06-24 04:24:14'),(57,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:51:08','2021-06-27 02:51:08'),(58,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:51:12','2021-06-27 02:51:12'),(59,1,'all_products','updated','[\"123\"]',NULL,1,'2021-06-27 02:51:12','2021-06-27 02:51:12'),(60,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:51:15','2021-06-27 02:51:15'),(61,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 02:51:15','2021-06-27 02:51:15'),(62,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:51:58','2021-06-27 02:51:58'),(63,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 02:51:58','2021-06-27 02:51:58'),(64,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:52:00','2021-06-27 02:52:00'),(65,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 02:52:00','2021-06-27 02:52:00'),(66,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:52:01','2021-06-27 02:52:01'),(67,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 02:52:01','2021-06-27 02:52:01'),(68,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:52:03','2021-06-27 02:52:03'),(69,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 02:52:03','2021-06-27 02:52:03'),(70,1,'categories',NULL,NULL,NULL,1,'2021-06-27 02:52:05','2021-06-27 02:52:05'),(71,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 02:52:05','2021-06-27 02:52:05'),(72,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:00:37','2021-06-27 03:00:37'),(73,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:00:37','2021-06-27 03:00:37'),(74,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:00:43','2021-06-27 03:00:43'),(75,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:00:43','2021-06-27 03:00:43'),(76,1,'orders',NULL,NULL,NULL,1,'2021-06-27 03:00:45','2021-06-27 03:00:45'),(77,1,'categories','reset',NULL,NULL,1,'2021-06-27 03:00:53','2021-06-27 03:00:53'),(78,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:00:54','2021-06-27 03:00:54'),(79,1,'categories','created','[\"DEF\"]',NULL,1,'2021-06-27 03:01:34','2021-06-27 03:01:34'),(80,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:01:34','2021-06-27 03:01:34'),(81,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:03:08','2021-06-27 03:03:08'),(82,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:03:08','2021-06-27 03:03:08'),(83,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:08:03','2021-06-27 03:08:03'),(84,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:08:03','2021-06-27 03:08:03'),(85,1,'orders',NULL,NULL,NULL,1,'2021-06-27 03:08:21','2021-06-27 03:08:21'),(86,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:11:17','2021-06-27 03:11:17'),(87,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:11:17','2021-06-27 03:11:17'),(88,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:16:40','2021-06-27 03:16:40'),(89,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:16:40','2021-06-27 03:16:40'),(90,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:16:42','2021-06-27 03:16:42'),(91,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:16:42','2021-06-27 03:16:42'),(92,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:16:53','2021-06-27 03:16:53'),(93,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:16:53','2021-06-27 03:16:53'),(94,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:16','2021-06-27 03:17:16'),(95,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:17:16','2021-06-27 03:17:16'),(96,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:18','2021-06-27 03:17:18'),(97,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:18','2021-06-27 03:17:18'),(98,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:20','2021-06-27 03:17:20'),(99,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:20','2021-06-27 03:17:20'),(100,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:21','2021-06-27 03:17:21'),(101,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:21','2021-06-27 03:17:21'),(102,1,'orders',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(103,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(104,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(105,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(106,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(107,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(108,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:17:24','2021-06-27 03:17:24'),(109,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:25','2021-06-27 03:17:25'),(110,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:25','2021-06-27 03:17:25'),(111,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:25','2021-06-27 03:17:25'),(112,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:17:25','2021-06-27 03:17:25'),(113,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:26','2021-06-27 03:17:26'),(114,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:26','2021-06-27 03:17:26'),(115,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:26','2021-06-27 03:17:26'),(116,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:26','2021-06-27 03:17:26'),(117,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:27','2021-06-27 03:17:27'),(118,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:27','2021-06-27 03:17:27'),(119,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:17:27','2021-06-27 03:17:27'),(120,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:17:27','2021-06-27 03:17:27'),(121,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:19:00','2021-06-27 03:19:00'),(122,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:19:00','2021-06-27 03:19:00'),(123,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:19:01','2021-06-27 03:19:01'),(124,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:19:01','2021-06-27 03:19:01'),(125,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:19:02','2021-06-27 03:19:02'),(126,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 03:19:02','2021-06-27 03:19:02'),(127,1,'categories',NULL,NULL,NULL,1,'2021-06-27 03:19:02','2021-06-27 03:19:02'),(128,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 03:19:02','2021-06-27 03:19:02'),(129,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:07:45','2021-06-27 04:07:45'),(130,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:07:45','2021-06-27 04:07:45'),(131,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:07:47','2021-06-27 04:07:47'),(132,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:07:47','2021-06-27 04:07:47'),(133,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:07:48','2021-06-27 04:07:48'),(134,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:07:48','2021-06-27 04:07:48'),(135,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:07:49','2021-06-27 04:07:49'),(136,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:07:49','2021-06-27 04:07:49'),(137,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:26:57','2021-06-27 04:26:57'),(138,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:26:57','2021-06-27 04:26:57'),(139,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:30:44','2021-06-27 04:30:44'),(140,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:30:44','2021-06-27 04:30:44'),(141,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:30:49','2021-06-27 04:30:49'),(142,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:30:49','2021-06-27 04:30:49'),(143,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:37:25','2021-06-27 04:37:25'),(144,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:37:27','2021-06-27 04:37:27'),(145,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:37:44','2021-06-27 04:37:44'),(146,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:37:44','2021-06-27 04:37:44'),(147,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:38:53','2021-06-27 04:38:53'),(148,1,'orders',NULL,NULL,NULL,1,'2021-06-27 04:39:15','2021-06-27 04:39:15'),(149,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:41:38','2021-06-27 04:41:38'),(150,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:41:44','2021-06-27 04:41:44'),(151,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:42:18','2021-06-27 04:42:18'),(152,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:42:19','2021-06-27 04:42:19'),(153,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:42:19','2021-06-27 04:42:19'),(154,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:42:21','2021-06-27 04:42:21'),(155,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:42:21','2021-06-27 04:42:21'),(156,1,'orders',NULL,NULL,NULL,1,'2021-06-27 04:42:23','2021-06-27 04:42:23'),(157,1,'categories','reset',NULL,NULL,1,'2021-06-27 04:44:16','2021-06-27 04:44:16'),(158,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:44:17','2021-06-27 04:44:17'),(159,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:46:07','2021-06-27 04:46:07'),(160,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:46:09','2021-06-27 04:46:09'),(161,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:26','2021-06-27 04:47:26'),(162,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:38','2021-06-27 04:47:38'),(163,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:38','2021-06-27 04:47:38'),(164,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:39','2021-06-27 04:47:39'),(165,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:47:39','2021-06-27 04:47:39'),(166,1,'orders',NULL,NULL,NULL,1,'2021-06-27 04:47:41','2021-06-27 04:47:41'),(167,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:41','2021-06-27 04:47:41'),(168,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:42','2021-06-27 04:47:42'),(169,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:42','2021-06-27 04:47:42'),(170,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:42','2021-06-27 04:47:42'),(171,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:47:42','2021-06-27 04:47:42'),(172,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:43','2021-06-27 04:47:43'),(173,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:43','2021-06-27 04:47:43'),(174,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(175,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(176,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(177,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(178,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(179,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:47:44','2021-06-27 04:47:44'),(180,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:45','2021-06-27 04:47:45'),(181,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:45','2021-06-27 04:47:45'),(182,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:45','2021-06-27 04:47:45'),(183,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:47:45','2021-06-27 04:47:45'),(184,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:45','2021-06-27 04:47:45'),(185,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:47:46','2021-06-27 04:47:46'),(186,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:46','2021-06-27 04:47:46'),(187,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:47','2021-06-27 04:47:47'),(188,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:47','2021-06-27 04:47:47'),(189,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:47:48','2021-06-27 04:47:48'),(190,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:47','2021-06-27 04:48:47'),(191,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:48:47','2021-06-27 04:48:47'),(192,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:47','2021-06-27 04:48:47'),(193,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:48:47','2021-06-27 04:48:47'),(194,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:47','2021-06-27 04:48:47'),(195,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:48:48','2021-06-27 04:48:48'),(196,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:48','2021-06-27 04:48:48'),(197,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:48:48','2021-06-27 04:48:48'),(198,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:49','2021-06-27 04:48:49'),(199,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:59','2021-06-27 04:48:59'),(200,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:48:59','2021-06-27 04:48:59'),(201,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:48:59','2021-06-27 04:48:59'),(202,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:49:00','2021-06-27 04:49:00'),(203,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:49:00','2021-06-27 04:49:00'),(204,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:26','2021-06-27 04:54:26'),(205,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:40','2021-06-27 04:54:40'),(206,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:54:40','2021-06-27 04:54:40'),(207,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:41','2021-06-27 04:54:41'),(208,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:54:41','2021-06-27 04:54:41'),(209,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:42','2021-06-27 04:54:42'),(210,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:54:42','2021-06-27 04:54:42'),(211,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:42','2021-06-27 04:54:42'),(212,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:54:42','2021-06-27 04:54:42'),(213,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:54:43','2021-06-27 04:54:43'),(214,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:54:43','2021-06-27 04:54:43'),(215,1,'orders',NULL,NULL,NULL,1,'2021-06-27 04:54:44','2021-06-27 04:54:44'),(216,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:55:31','2021-06-27 04:55:31'),(217,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:55:35','2021-06-27 04:55:35'),(218,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:55:35','2021-06-27 04:55:35'),(219,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:55:35','2021-06-27 04:55:35'),(220,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:55:35','2021-06-27 04:55:35'),(221,1,'orders',NULL,NULL,NULL,1,'2021-06-27 04:55:36','2021-06-27 04:55:36'),(222,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:59:45','2021-06-27 04:59:45'),(223,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:59:47','2021-06-27 04:59:47'),(224,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:59:47','2021-06-27 04:59:47'),(225,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:59:48','2021-06-27 04:59:48'),(226,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 04:59:48','2021-06-27 04:59:48'),(227,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:59:48','2021-06-27 04:59:48'),(228,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 04:59:48','2021-06-27 04:59:48'),(229,1,'categories',NULL,NULL,NULL,1,'2021-06-27 04:59:49','2021-06-27 04:59:49'),(230,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:04:28','2021-06-27 05:04:28'),(231,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:04:29','2021-06-27 05:04:29'),(232,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:04:29','2021-06-27 05:04:29'),(233,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:04:29','2021-06-27 05:04:29'),(234,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 05:04:29','2021-06-27 05:04:29'),(235,1,'orders',NULL,NULL,NULL,1,'2021-06-27 05:04:30','2021-06-27 05:04:30'),(236,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:05','2021-06-27 05:10:05'),(237,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:10:05','2021-06-27 05:10:05'),(238,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:05','2021-06-27 05:10:05'),(239,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 05:10:05','2021-06-27 05:10:05'),(240,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:06','2021-06-27 05:10:06'),(241,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:09','2021-06-27 05:10:09'),(242,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:11','2021-06-27 05:10:11'),(243,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:19','2021-06-27 05:10:19'),(244,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:10:19','2021-06-27 05:10:19'),(245,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:10:20','2021-06-27 05:10:20'),(246,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 05:10:20','2021-06-27 05:10:20'),(247,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:11:32','2021-06-27 05:11:32'),(248,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:11:32','2021-06-27 05:11:32'),(249,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:11:32','2021-06-27 05:11:32'),(250,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 05:11:32','2021-06-27 05:11:32'),(251,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:11:33','2021-06-27 05:11:33'),(252,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:11:34','2021-06-27 05:11:34'),(253,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:11:35','2021-06-27 05:11:35'),(254,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:22:26','2021-06-27 05:22:26'),(255,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:22:49','2021-06-27 05:22:49'),(256,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:25:07','2021-06-27 05:25:07'),(257,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:25:15','2021-06-27 05:25:15'),(258,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:25:15','2021-06-27 05:25:15'),(259,1,'orders',NULL,NULL,NULL,1,'2021-06-27 05:25:17','2021-06-27 05:25:17'),(264,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:27:31','2021-06-27 05:27:31'),(268,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:28:02','2021-06-27 05:28:02'),(269,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:28:21','2021-06-27 05:28:21'),(270,1,'new_products',NULL,NULL,NULL,1,'2021-06-27 05:28:21','2021-06-27 05:28:21'),(271,1,'categories',NULL,NULL,NULL,1,'2021-06-27 05:28:22','2021-06-27 05:28:22'),(272,1,'all_products',NULL,NULL,NULL,1,'2021-06-27 05:28:22','2021-06-27 05:28:22'),(273,1,'categories',NULL,NULL,NULL,1,'2021-07-01 00:52:52','2021-07-01 00:52:52'),(274,1,'categories',NULL,NULL,NULL,1,'2021-07-01 00:55:14','2021-07-01 00:55:14'),(275,1,'categories',NULL,NULL,NULL,1,'2021-07-01 00:55:18','2021-07-01 00:55:18'),(276,1,'categories',NULL,NULL,NULL,1,'2021-07-01 01:18:29','2021-07-01 01:18:29'),(277,1,'orders',NULL,NULL,NULL,1,'2021-07-01 01:19:37','2021-07-01 01:19:37'),(278,1,'categories',NULL,NULL,NULL,1,'2021-07-01 01:37:50','2021-07-01 01:37:50'),(279,1,'categories',NULL,NULL,NULL,1,'2021-07-01 01:37:53','2021-07-01 01:37:53'),(280,1,'new_products',NULL,NULL,NULL,1,'2021-07-01 01:37:53','2021-07-01 01:37:53'),(281,1,'orders','created','[\"10516\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10516\",\"product\":\"Aman Atta(loose) SKU:\"}',1,'2021-07-01 02:34:20','2021-07-01 02:34:20'),(282,1,'orders','created','[\"10517\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10517\",\"product\":\"Close up 150g SKU:\"}',1,'2021-07-01 03:56:33','2021-07-01 03:56:33'),(283,1,'orders','created','[\"10519\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10519\",\"product\":\"Red Label 250g SKU:\"}',1,'2021-07-01 04:04:34','2021-07-01 04:04:34'),(284,1,'orders','created','[\"10521\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10521\",\"product\":\"Cookme Redchilli powder(50g) SKU:\"}',1,'2021-07-01 04:06:37','2021-07-01 04:06:37'),(285,1,'orders','created','[\"10523\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10523\",\"product\":\"Saffola Oats classic Rs.15 SKU:513594\"}',1,'2021-07-01 04:31:34','2021-07-01 04:31:34'),(286,1,'orders','created','[\"10525\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10525\",\"product\":\"Bengal Black Pheneol SKU:\"}',1,'2021-07-01 04:41:33','2021-07-01 04:41:33'),(287,1,'orders','created','[\"10527\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10527\",\"product\":\"Cornflour 500g(pouch) SKU:1622\"}',1,'2021-07-01 04:46:13','2021-07-01 04:46:13'),(288,1,'orders','created','[\"10531\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10531\",\"product\":\"Happy Night(mosquito killer) SKU:48247\"}',1,'2021-07-01 04:51:01','2021-07-01 04:51:01'),(289,1,'orders','created','[\"10533\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10533\",\"product\":\"Everest kasuri methi 50 gm SKU:\"}',1,'2021-07-01 05:03:36','2021-07-01 05:03:36'),(290,1,'orders','created','[\"10535\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10535\",\"product\":\"Horlicks 1kg pouch SKU:\"}',1,'2021-07-01 05:08:32','2021-07-01 05:08:32'),(291,1,'orders','created','[\"10537\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10537\",\"product\":\"Britania Thin 400Gm SKU:\"}',1,'2021-07-01 05:14:50','2021-07-01 05:14:50'),(292,1,'orders','created','[\"10539\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10539\",\"product\":\"Colgate Strong teeth 44g SKU:\"}',1,'2021-07-01 05:24:57','2021-07-01 05:24:57'),(293,1,'orders','created','[\"10541\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10541\",\"product\":\"Sparkel Diswash tub SKU:\"}',1,'2021-07-01 05:26:32','2021-07-01 05:26:32'),(294,1,'orders','created','[\"10544\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10544\",\"product\":\"Safed 1Kg SKU:9678819\"}',1,'2021-07-01 05:34:32','2021-07-01 05:34:32'),(295,1,'orders','created','[\"10546\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10546\",\"product\":\"Sparkel Dishwash pad SKU:\"}',1,'2021-07-01 05:40:04','2021-07-01 05:40:04'),(296,1,'orders','created','[\"10550\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10550\",\"product\":\"Colgate Cibaca Vedshakti 160g SKU:\"}',1,'2021-07-01 05:40:16','2021-07-01 05:40:16'),(297,1,'orders','created','[\"10552\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10552\",\"product\":\"Loose Postodana\\/khus khus\\/poppy seed SKU:\"}',1,'2021-07-01 05:49:53','2021-07-01 05:49:53'),(298,1,'orders','created','[\"10556\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10556\",\"product\":\"Uttam coconut oil 100ml SKU:\"}',1,'2021-07-01 06:09:07','2021-07-01 06:09:07'),(299,1,'orders','created','[\"10558\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10558\",\"product\":\"Tazza Tea 100g SKU:\"}',1,'2021-07-01 06:25:42','2021-07-01 06:25:42'),(300,1,'orders','created','[\"10562\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10562\",\"product\":\"Everest Jafran\\/Kesar(0.5g) SKU:4825827\"}',1,'2021-07-01 06:50:38','2021-07-01 06:50:38'),(301,1,'orders','created','[\"10565\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10565\",\"product\":\"All Out Liquid(set of 2) SKU:577233\"}',1,'2021-07-01 06:56:14','2021-07-01 06:56:14'),(302,1,'orders','created','[\"10568\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10568\",\"product\":\"Kishmis\\/Raisins SKU:2578343\"}',1,'2021-07-01 07:10:34','2021-07-01 07:10:34'),(303,1,'orders','created','[\"10570\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10570\",\"product\":\"Prill155ml Rs.20 SKU:42865\"}',1,'2021-07-01 07:46:38','2021-07-01 07:46:38'),(304,1,'orders','created','[\"10572\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10572\",\"product\":\"Pulse Jar(170p jar) SKU:4224658\"}',1,'2021-07-01 08:01:32','2021-07-01 08:01:32'),(305,1,'orders','created','[\"10577\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10577\",\"product\":\"Godrej RichCream 20g(black) SKU:\"}',1,'2021-07-01 18:43:51','2021-07-01 18:43:51'),(306,1,'orders','created','[\"10588\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10588\",\"product\":\"BIskFarm GOOGLY 200g SKU:\"}',1,'2021-07-02 06:25:00','2021-07-02 06:25:00'),(307,1,'orders','created','[\"10590\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10590\",\"product\":\"Maggi Rs.5(12pc) SKU:\"}',1,'2021-07-02 06:31:14','2021-07-02 06:31:14'),(308,1,'orders','created','[\"10594\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10594\",\"product\":\"Jharna Ghee 250g SKU:\"}',1,'2021-07-02 07:04:34','2021-07-02 07:04:34'),(309,1,'orders','created','[\"10596\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10596\",\"product\":\"Fruit Cocktail 850g SKU:6168\"}',1,'2021-07-02 07:21:21','2021-07-02 07:21:21'),(310,1,'orders','created','[\"10598\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10598\",\"product\":\"Nippo hyper(Blue) SKU:\"}',1,'2021-07-02 07:22:25','2021-07-02 07:22:25'),(311,1,'orders','created','[\"10600\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10600\",\"product\":\"Sunrise Musterd\\/sarso powder 40g SKU:\"}',1,'2021-07-02 07:48:35','2021-07-02 07:48:35'),(312,1,'orders','created','[\"10602\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10602\",\"product\":\"Dove Soap 28g SKU:\"}',1,'2021-07-02 08:06:34','2021-07-02 08:06:34'),(313,1,'orders','created','[\"10604\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10604\",\"product\":\"Britania Thin 400Gm SKU:\"}',1,'2021-07-02 08:18:12','2021-07-02 08:18:12'),(314,1,'orders','created','[\"10606\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10606\",\"product\":\"Everest kasuri methi 50 gm SKU:\"}',1,'2021-07-02 08:26:34','2021-07-02 08:26:34'),(315,1,'orders','created','[\"10608\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10608\",\"product\":\"ClinicPlus EggProtin SKU:\"}',1,'2021-07-02 08:27:34','2021-07-02 08:27:34'),(316,1,'orders','created','[\"10610\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10610\",\"product\":\"Ganesh Atta 1kg SKU:\"}',1,'2021-07-02 08:31:58','2021-07-02 08:31:58'),(317,1,'orders','created','[\"10612\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10612\",\"product\":\"Loose Matar Besan SKU:72142\"}',1,'2021-07-02 08:31:58','2021-07-02 08:31:58'),(318,1,'orders','created','[\"10614\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10614\",\"product\":\"Savlon glycerine rs.10 SKU:\"}',1,'2021-07-02 08:34:02','2021-07-02 08:34:02'),(319,1,'orders','created','[\"10616\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10616\",\"product\":\"Kissan Mixed Fruit 500g SKU:\"}',1,'2021-07-02 08:36:34','2021-07-02 08:36:34'),(320,1,'orders','created','[\"10618\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10618\",\"product\":\"Tazza Tea 100g SKU:\"}',1,'2021-07-02 09:09:29','2021-07-02 09:09:29'),(321,1,'orders','created','[\"10620\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10620\",\"product\":\"Babul 200g SKU:634828\"}',1,'2021-07-02 09:27:33','2021-07-02 09:27:33'),(322,1,'orders','created','[\"10622\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10622\",\"product\":\"Wheel 800g SKU:\"}',1,'2021-07-02 09:33:36','2021-07-02 09:33:36'),(323,1,'orders',NULL,NULL,NULL,1,'2021-07-02 12:35:26','2021-07-02 12:35:26'),(324,1,'orders',NULL,NULL,NULL,1,'2021-07-03 03:57:20','2021-07-03 03:57:20'),(325,1,'orders','created','[\"10624\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10624\",\"product\":\"Parachute coconut oil 175ml SKU:\"}',1,'2021-07-03 09:27:35','2021-07-03 09:27:35'),(326,1,'orders','created','[\"10626\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10626\",\"product\":\"Pulse Jar(170p jar) SKU:4224658\"}',1,'2021-07-03 09:37:06','2021-07-03 09:37:06'),(327,1,'orders','created','[\"10628\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10628\",\"product\":\"Serf excel Bar 100g SKU:\"}',1,'2021-07-03 19:48:33','2021-07-03 19:48:33'),(328,1,'orders','created','[\"10642\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10642\",\"product\":\"Ganesh Sattu 200g SKU:\"}',1,'2021-07-04 06:23:01','2021-07-04 06:23:01'),(329,1,'orders','created','[\"10644\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10644\",\"product\":\"Ganesh Sattu 500g SKU:\"}',1,'2021-07-04 06:25:34','2021-07-04 06:25:34'),(330,1,'orders','created','[\"10646\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10646\",\"product\":\"parle G Biscuit Rs.3(pack of 24) SKU:\"}',1,'2021-07-04 06:28:32','2021-07-04 06:28:32'),(331,1,'orders','created','[\"10648\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10648\",\"product\":\"Shalimar 100ml poly SKU:1873984\"}',1,'2021-07-04 06:31:32','2021-07-04 06:31:32'),(332,1,'orders','created','[\"10650\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10650\",\"product\":\"Everest kashmiri Mirch 50gm SKU:\"}',1,'2021-07-04 06:38:28','2021-07-04 06:38:28'),(333,1,'orders','created','[\"10654\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10654\",\"product\":\"Basumati Miniket SKU:19367\"}',1,'2021-07-04 06:52:34','2021-07-04 06:52:34'),(334,1,'orders','created','[\"10656\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10656\",\"product\":\"Lyzol flore cleaner 500ml+Harpic 200ml SKU:\"}',1,'2021-07-04 19:58:32','2021-07-04 19:58:32'),(335,1,'orders','created','[\"10660\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10660\",\"product\":\"Maggi Six pack SKU:\"}',1,'2021-07-05 05:38:07','2021-07-05 05:38:07'),(336,1,'orders','created','[\"10662\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10662\",\"product\":\"Lifebouy Sanitizer 500ml SKU:\"}',1,'2021-07-05 05:48:11','2021-07-05 05:48:11'),(337,1,'orders','created','[\"10664\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10664\",\"product\":\"Britania Thin 400Gm SKU:\"}',1,'2021-07-05 06:13:37','2021-07-05 06:13:37'),(338,1,'orders','created','[\"10666\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10666\",\"product\":\"Dabur chyawanprash 1kg SKU:\"}',1,'2021-07-05 06:27:47','2021-07-05 06:27:47'),(339,1,'orders','created','[\"10668\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10668\",\"product\":\"Everest kashmiri Mirch 50gm SKU:\"}',1,'2021-07-05 06:34:12','2021-07-05 06:34:12'),(340,1,'orders','created','[\"10670\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10670\",\"product\":\"Nihar 200ml SKU:\"}',1,'2021-07-05 07:08:44','2021-07-05 07:08:44'),(341,1,'orders','created','[\"10673\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10673\",\"product\":\"BiskFarm Marie 300gm SKU:\"}',1,'2021-07-05 07:50:49','2021-07-05 07:50:49'),(342,1,'orders','created','[\"10677\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10677\",\"product\":\"Happy Night(mosquito killer) SKU:48247\"}',1,'2021-07-05 20:32:35','2021-07-05 20:32:35'),(343,1,'orders','created','[\"10681\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10681\",\"product\":\"Vivel Aloe Vera Rs.10 SKU:\"}',1,'2021-07-05 20:36:24','2021-07-05 20:36:24'),(344,1,'orders','created','[\"10683\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10683\",\"product\":\"Sunlight 500g SKU:\"}',1,'2021-07-05 20:39:29','2021-07-05 20:39:29'),(345,1,'orders','created','[\"10703\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10703\",\"product\":\"Tata Gold Tea 100gm SKU:22745\"}',1,'2021-07-06 20:35:11','2021-07-06 20:35:11'),(346,1,'orders','created','[\"10709\"]','{\"error_type\":\"order_product_not_found\",\"order_number\":\"10709\",\"product\":\"Everest Chicken Masala Rs.5(pack of 10) SKU:\"}',1,'2021-07-21 08:00:13','2021-07-21 08:00:13');
/*!40000 ALTER TABLE `woocommerce_sync_logs` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Dumping events for database 'uscricke_db1'
--
--
-- Dumping routines for database 'uscricke_db1'
--
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2021-11-16 15:33:28
|
<reponame>IvkaIvanova/Databases-SQL
CREATE TABLE Directors(
Id INT IDENTITY PRIMARY KEY NOT NULL,
DirectorName NVARCHAR(30) NOT NULL,
Notes NVARCHAR(250)
)
CREATE TABLE Genres(
Id INT IDENTITY PRIMARY KEY NOT NULL,
GenreName NVARCHAR(30) NOT NULL,
Notes NVARCHAR(250)
)
CREATE TABLE Categories(
Id INT IDENTITY PRIMARY KEY NOT NULL,
CategoryName NVARCHAR(30) NOT NULL,
Notes NVARCHAR(250)
)
CREATE TABLE Movies(
Id INT IDENTITY PRIMARY KEY NOT NULL,
Title NVARCHAR(30) NOT NULL,
DirectorId INT UNIQUE,
CopyrightYear DATE,
Length DECIMAL(10,2),
GenreId INT UNIQUE,
CategoryId INT UNIQUE,
Rating INT,
Notes NVARCHAR(250)
)
INSERT INTO Directors(DirectorName, Notes)
Values('Pesho', NULL)
INSERT INTO Directors(DirectorName, Notes)
Values('Gosho', 'Nearly done!')
INSERT INTO Directors(DirectorName, Notes)
Values('Maria', 'Completely done!')
INSERT INTO Directors(DirectorName, Notes)
Values('Ivanka', NULL)
INSERT INTO Directors(DirectorName, Notes)
Values('Todorka', NULL)
INSERT INTO Genres(GenreName, Notes)
Values('Pesho', NULL)
INSERT INTO Genres(GenreName, Notes)
Values('Gosho', 'Completely done!')
INSERT INTO Genres(GenreName, Notes)
Values('Ivanka', NULL)
INSERT INTO Genres(GenreName, Notes)
Values('Mariika', 'Completely done!')
INSERT INTO Genres(GenreName, Notes)
Values('Stefan', 'Nearly done!')
INSERT INTO Categories(CategoryName, Notes)
Values('Pesho', 'Completely done!')
INSERT INTO Categories(CategoryName, Notes)
Values('Gosho', 'Nearly done!')
INSERT INTO Categories(CategoryName, Notes)
Values('Pesho', NULL)
INSERT INTO Categories(CategoryName, Notes)
Values('Mariika', 'Nearly done!')
INSERT INTO Categories(CategoryName, Notes)
Values('Stefan', 'Completely done!')
INSERT INTO Movies(Title, DirectorID, CopyrightYear, Length, GenreID, CategoryID,Rating,Notes)
Values('Scary Movie', 11233412, NULL, NUll, 643675, 3, 6,NULL)
INSERT INTO Movies(Title, DirectorID, CopyrightYear, Length, GenreID, CategoryID,Rating,Notes)
Values('Action Movie', 535123, NULL, NUll, 123453, 2, 4,NULL)
INSERT INTO Movies(Title, DirectorID, CopyrightYear, Length, GenreID, CategoryID,Rating,Notes)
Values('Erotic Movie', 7657457, NULL, NUll, 51532, 1, 3,NULL)
INSERT INTO Movies(Title, DirectorID, CopyrightYear, Length, GenreID, CategoryID,Rating,Notes)
Values('Love movie', 123547568, NULL, NUll, 4343, 4, 2,NULL)
INSERT INTO Movies(Title, DirectorID, CopyrightYear, Length, GenreID, CategoryID,Rating,Notes)
Values('Dramatic Movie', 97876543, NULL, NUll, 123, 5, 5,NULL)
|
<gh_stars>0
DROP TABLE KVITTERINGER;
DROP TABLE REISETILSKUDD;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
CREATE TABLE REISETILSKUDD_SOKNAD
(
ID VARCHAR(36) DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
SYKMELDING_ID VARCHAR(36) NOT NULL,
FNR VARCHAR(11) NOT NULL,
OPPRETTET TIMESTAMP WITH TIME ZONE NOT NULL,
ENDRET TIMESTAMP WITH TIME ZONE NOT NULL,
AVBRUTT TIMESTAMP WITH TIME ZONE NULL,
SENDT TIMESTAMP WITH TIME ZONE NULL,
FOM DATE NOT NULL,
TOM DATE NOT NULL,
ARBEIDSGIVER_ORGNUMMER VARCHAR(9) NULL,
ARBEIDSGIVER_NAVN VARCHAR(255) NULL,
STATUS VARCHAR(10) NOT NULL
);
CREATE INDEX REISETILSKUDD_FNR_IDX ON REISETILSKUDD_SOKNAD (FNR);
CREATE TABLE KVITTERING
(
ID VARCHAR(36) DEFAULT uuid_generate_v4() PRIMARY KEY NOT NULL,
REISETILSKUDD_SOKNAD_ID VARCHAR(36) REFERENCES REISETILSKUDD_SOKNAD (ID) NOT NULL,
DATO_FOR_UTGIFT DATE NOT NULL,
BELOP INTEGER NOT NULL,
BLOB_ID VARCHAR(36) NOT NULL,
TYPE_UTGIFT VARCHAR(36) NOT NULL,
OPPRETTET TIMESTAMP WITH TIME ZONE NOT NULL
);
|
MERGE INTO [dbo].[EmailTemplates] AS Target
USING (VALUES
(N'FE933A35-58BE-4958-A8C3-20EEFB53EF48', 'Live', N'RoATPRequestInvitationToReapply', N'872e3ace-4625-4f9b-a909-c44cec7f71ca', N'<EMAIL>', GETDATE(), 'System'),
(N'39DEA5C0-4A93-4F14-8569-7872B4AE052D', 'Live', N'RoATPGetHelpWithQuestion', N'9d1e1a7e-3557-4781-8901-ea627ae70ec2', N'<EMAIL>', GETDATE(), 'System'),
(N'4B8E0E07-86CE-44D6-98C5-905EEA2F6C4D', 'Live', N'RoATPApplicationSubmitted', N'4a44e79d-1e98-4b90-9d67-f575be97def6', null,GETDATE(), 'System'),
(N'73DEB796-D912-456A-A685-24AE1FD83B44', 'Live', N'RoATPApplicationUpdated', N'ebb28424-b1ce-4374-b24b-a240f0cecdc1', null, GETDATE(), 'System')
)
AS Source ([Id], [Status], [TemplateName], [TemplateId], [Recipients], [CreatedAt], [CreatedBy])
ON Target.TemplateId = Source.TemplateId
WHEN NOT MATCHED BY TARGET THEN
INSERT ([Id], [Status], [TemplateName], [TemplateId], [Recipients], [CreatedAt], [CreatedBy])
VALUES ([Id], [Status], [TemplateName], [TemplateId], [Recipients], [CreatedAt], [CreatedBy])
WHEN NOT MATCHED BY SOURCE THEN
DELETE;
|
/*
SQLyog Ultimate v12.5.1 (64 bit)
MySQL - 5.7.22-log : Database - medical_inventory
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`medical_inventory` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `medical_inventory`;
/*Table structure for table `brand` */
DROP TABLE IF EXISTS `brand`;
CREATE TABLE `brand` (
`id` INT(11),
`name` VARCHAR(200) NOT NULL,
`strength` VARCHAR(200) NOT NULL,
`dosage_form_id` INT(11) NOT NULL,
`generic_id` INT(11) NOT NULL,
`manufacturer_id` INT(11) NOT NULL,
`purchase_price` DOUBLE NOT NULL,
`sale_price` DOUBLE NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `dosage_form` */
DROP TABLE IF EXISTS `dosage_form`;
CREATE TABLE `dosage_form` (
`id` INT(11),
`name` VARCHAR(200) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `location` */
DROP TABLE IF EXISTS `location`;
CREATE TABLE `location` (
`id` INT(11),
`name` VARCHAR(200) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `manufacturer` */
DROP TABLE IF EXISTS `manufacturer`;
CREATE TABLE `manufacturer` (
`id` INT(11),
`name` VARCHAR(100) NOT NULL,
`address` TEXT DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `generic` */
DROP TABLE IF EXISTS `generic`;
CREATE TABLE `generic` (
`id` INT(11),
`name` VARCHAR(100) NOT NULL,
`description` TEXT DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `indication` */
DROP TABLE IF EXISTS `indication`;
CREATE TABLE `indication` (
`id` INT(11),
`name` VARCHAR(100) NOT NULL,
`description` TEXT DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `indication_generic` */
DROP TABLE IF EXISTS `indication_generic`;
CREATE TABLE `indication_generic` (
`id` INT(11),
`indication_id` INT(11) NOT NULL,
`generic_id` INT(11) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `sale_invoice` */
DROP TABLE IF EXISTS `sale_invoice`;
CREATE TABLE `sale_invoice` (
`id` VARCHAR(15),
`user_id` INT(11) NOT NULL,
`total` DOUBLE NOT NULL,
`vat` DOUBLE NOT NULL,
`discount` DOUBLE NOT NULL,
`payable` DOUBLE NOT NULL,
`paid` DOUBLE NOT NULL,
`returned` DOUBLE NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `purchase_invoice` */
DROP TABLE IF EXISTS `purchase_invoice`;
CREATE TABLE `purchase_invoice` (
`id` VARCHAR(15),
`supplier_id` INT(11) DEFAULT NULL,
`total` DOUBLE NOT NULL,
`vat` DOUBLE NOT NULL,
`discount` DOUBLE NOT NULL,
`payable` DOUBLE NOT NULL,
`paid` DOUBLE NOT NULL,
`returned` DOUBLE NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `purchase` */
DROP TABLE IF EXISTS `purchase`;
CREATE TABLE `purchase` (
`id` INT(11),
`brand_id` INT(11) NOT NULL,
`purchase_invoice_id` VARCHAR(15) NOT NULL,
`batch_no` VARCHAR(15) NOT NULL,
`box_id` INT(11) NOT NULL,
`quantity` INT(11) NOT NULL,
`unit_price` DOUBLE DEFAULT NULL,
`discount` DOUBLE DEFAULT NULL,
`total` DOUBLE NOT NULL,
`expiry_datetime` DATETIME NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `stock` */
DROP TABLE IF EXISTS `stock`;
CREATE TABLE `stock` (
`id` INT(11),
`purchase_id` INT(11) NOT NULL,
`location_id` INT(11) DEFAULT NULL,
`quantity` INT(11) NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `sale` */
DROP TABLE IF EXISTS `sale`;
CREATE TABLE `sale` (
`id` INT(11),
`sale_invoice_id` VARCHAR(15) NOT NULL,
`stock_id` INT(11) NOT NULL,
`quantity` INT(11) NOT NULL,
`unit_price` DOUBLE NOT NULL,
`discount` DOUBLE NOT NULL,
`total` DOUBLE NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `return` */
DROP TABLE IF EXISTS `return`;
CREATE TABLE `returned` (
`id` INT(11),
`sale_id` INT(11) DEFAULT NULL,
`purchase_id` INT(11) DEFAULT NULL,
`quantity` INT(11) NOT NULL,
`unit_price` DOUBLE NOT NULL,
`deduction` DOUBLE DEFAULT NULL,
`total` DOUBLE DEFAULT NULL,
`wastage` BIT(1) NOT NULL,
`datetime` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `supplier` */
DROP TABLE IF EXISTS `supplier`;
CREATE TABLE `supplier` (
`id` INT(11),
`name` VARCHAR(500) NOT NULL,
`phone` VARCHAR(15) DEFAULT NULL,
`address` TEXT DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `user` */
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` INT(11),
`firstname` VARCHAR(100) NOT NULL,
`lastname` VARCHAR(100) NOT NULL,
`username` VARCHAR(40) NOT NULL,
`email` VARCHAR(40) NOT NULL,
`password` VARCHAR(200) NOT NULL,
`phone` VARCHAR(100) NOT NULL,
`address` TEXT NOT NULL,
`active` BIT(1) DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `role` */
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
`id` INT(11),
`name` VARCHAR(50) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `user_role` */
DROP TABLE IF EXISTS `user_role`;
CREATE TABLE `user_role` (
`id` INT(11),
`user_id` INT(11) NOT NULL,
`role_id` INT(11) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `customer` */
DROP TABLE IF EXISTS `customer`;
CREATE TABLE `customer` (
`id` INT(11),
`fullname` VARCHAR(100) NOT NULL,
`phone` VARCHAR(100) DEFAULT NULL,
`email` VARCHAR(40) DEFAULT NULL,
`address` TEXT DEFAULT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*Table structure for table `box` */
DROP TABLE IF EXISTS `box`;
CREATE TABLE `box` (
`id` INT(11),
`name` VARCHAR(50) NOT NULL,
`quantity` INT(11) NOT NULL
) ENGINE=INNODB DEFAULT CHARSET=utf8;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
CREATE TABLE `ci_sessions` (
`id` varchar(128) NOT NULL,
`ip_address` varchar(45) NOT NULL,
`timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0',
`data` blob NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `mst_group_menu` (
`menu_group_id` int(11) NOT NULL,
`menu_group_name` varchar(255) NOT NULL,
`menu_group_order` int(11) NOT NULL,
`menu_is_active` tinyint(2) NOT NULL DEFAULT '1',
`menu_group_icon` varchar(255) DEFAULT NULL,
`menu_group_role_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_group_menu` (`menu_group_id`, `menu_group_name`, `menu_group_order`, `menu_is_active`, `menu_group_icon`, `menu_group_role_id`) VALUES
(1, 'Product', 1, 1, 'fa fa-cubes', 1),
(2, 'Manage User', 2, 1, 'fa fa-user', 1),
(3, 'User Previliges', 1, 1, 'fa fa-users', 1),
(4, 'Manage System', 4, 1, 'fa fa-reorder', 1);
CREATE TABLE `mst_menu` (
`menu_id` int(11) NOT NULL,
`menu_name` varchar(255) DEFAULT NULL,
`menu_active_page` varchar(100) DEFAULT NULL,
`menu_group_id` int(11) DEFAULT NULL,
`menu_controller_name` varchar(255) DEFAULT NULL,
`menu_base_url` varchar(255) DEFAULT NULL,
`menu_type_id` int(11) DEFAULT NULL,
`menu_is_active` tinyint(2) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_menu` (`menu_id`, `menu_name`, `menu_active_page`, `menu_group_id`, `menu_controller_name`, `menu_base_url`, `menu_type_id`, `menu_is_active`) VALUES
(1, 'List Data Product', NULL, 1, 'Product_manage.php', 'manage/product', 2, 1),
(2, 'Add Product', NULL, 1, 'Product_manage.php', 'manage/product/create', 1, 1),
(3, 'List Data User', NULL, 2, 'User_manage.php', 'user', 2, 1),
(4, 'Create User', NULL, 2, 'User_manage.php', 'manage/user/create', 1, 1),
(5, 'List Previliges', 'active', 3, 'User_manage.php', 'manage/user/previliges', 2, 1),
(6, 'Create Previliges', NULL, 3, 'User_manage.php', 'manage/user/create_prev', 1, 1),
(7, 'Master Menu', 'list-menu', 4, 'Menu_manage.php', 'manage/menu', 2, 1),
(8, 'test', NULL, 4, 'test.php', 'manage/test', NULL, 0),
(9, 'Change Log', NULL, 4, 'Change_log.php', 'change_log', NULL, 1),
(10, 'Category', NULL, 1, 'Category_manage.php', 'manage/category', NULL, 1);
CREATE TABLE `mst_role_detail` (
`role_detail_id` int(20) UNSIGNED NOT NULL,
`role_group_id` int(20) NOT NULL,
`role_menu_id` int(20) NOT NULL,
`role_id` int(11) NOT NULL,
`role_show_menu` tinyint(2) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_role_detail` (`role_detail_id`, `role_group_id`, `role_menu_id`, `role_id`, `role_show_menu`) VALUES
(15, 1, 1, 29, 1),
(16, 1, 2, 29, 0),
(17, 2, 4, 29, 1),
(18, 3, 5, 29, 1),
(19, 4, 8, 29, 0),
(25, 3, 5, 1, 1),
(26, 4, 8, 1, 0),
(27, 1, 2, 1, 1),
(28, 2, 3, 1, 1),
(29, 2, 4, 1, 1),
(30, 3, 6, 1, 1),
(31, 4, 7, 1, 1),
(43, 3, 6, 27, 1),
(44, 4, 9, 1, 1),
(45, 3, 5, 27, 1),
(46, 1, 1, 1, 1),
(47, 1, 10, 1, 1);
CREATE TABLE `mst_user` (
`User_Id` bigint(20) UNSIGNED NOT NULL,
`User_Full_Name` varchar(255) NOT NULL,
`User_Name` varchar(50) NOT NULL,
`User_Email` varchar(50) NOT NULL,
`User_Password` varchar(50) NOT NULL,
`User_Role_ID` bigint(20) NOT NULL,
`User_Photo` varchar(255) DEFAULT NULL,
`User_Ip_Address` varchar(30) DEFAULT NULL,
`User_Is_Active` tinyint(4) NOT NULL DEFAULT '1',
`User_Login_Status` tinyint(4) NOT NULL DEFAULT '0',
`User_Login_Browser` varchar(50) DEFAULT NULL,
`User_Created_Date` datetime NOT NULL,
`User_Updated_Date` datetime DEFAULT NULL,
`User_Created_By` bigint(20) DEFAULT NULL,
`User_Updated_By` int(11) NOT NULL DEFAULT '0',
`User_Deleted_By` bigint(20) DEFAULT NULL,
`User_Deleted_Date` datetime DEFAULT NULL,
`User_Unique_Code` varchar(20) DEFAULT NULL,
`User_Forgotpass_Time` datetime DEFAULT NULL,
`User_Login_Time` datetime DEFAULT NULL,
`User_Logout_Time` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_user` (`User_Id`, `User_Full_Name`, `User_Name`, `User_Email`, `User_Password`, `User_Role_ID`, `User_Photo`, `User_Ip_Address`, `User_Is_Active`, `User_Login_Status`, `User_Login_Browser`, `User_Created_Date`, `User_Updated_Date`, `User_Created_By`, `User_Updated_By`, `User_Deleted_By`, `User_Deleted_Date`, `User_Unique_Code`, `User_Forgotpass_Time`, `User_Login_Time`, `User_Logout_Time`) VALUES
(1, 'SYSTEM APPLICATION', 'root', '<EMAIL>', '7110eda4d09e062aa5e4a390b0a572ac0d2c0220', 1, NULL, '192.168.25.133', 1, 1, 'Chrome', '2018-11-11 15:14:13', NULL, 1, 0, NULL, NULL, NULL, NULL, '2018-12-14 10:03:16', '2018-12-07 21:54:27');
CREATE TABLE `mst_user_detail` (
`user_detail_id` int(11) NOT NULL,
`user_role_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`user_group_menu_id` int(11) NOT NULL,
`user_menu_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_user_detail` (`user_detail_id`, `user_role_id`, `user_id`, `user_group_menu_id`, `user_menu_id`) VALUES
(1, 1, 1, 1, 1),
(2, 1, 1, 2, 2);
CREATE TABLE `mst_user_role` (
`Role_Id` bigint(20) NOT NULL,
`Role_Name` varchar(255) NOT NULL,
`Role_Description` text NOT NULL,
`Role_CreatedDate` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`Role_UpdatedDate` datetime DEFAULT NULL,
`Role_IsActive` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `mst_user_role` (`Role_Id`, `Role_Name`, `Role_Description`, `Role_CreatedDate`, `Role_UpdatedDate`, `Role_IsActive`) VALUES
(1, 'SYSTEM APPLICATION', 'user yang memiliki akses penuh pada aplikasi', '2018-11-14 21:20:47', '2018-12-08 13:47:16', 1),
(2, 'ADMINISTRATOR', 'user yang memiliki akses menambah hak akses user baru dan lain lain', '2018-11-14 21:20:47', NULL, 1),
(27, 'tes', '', '2018-11-21 22:51:47', '2018-12-08 09:46:58', 1),
(29, 'test prev', '', '2018-11-21 22:56:09', '2018-12-08 09:42:54', 1);
CREATE TABLE `tbl_change_log` (
`log_id` int(11) NOT NULL,
`log_curr_version` varchar(255) NOT NULL,
`log_title` varchar(255) DEFAULT NULL,
`log_description` text NOT NULL,
`log_date` date NOT NULL,
`log_author` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `tbl_change_log` (`log_id`, `log_curr_version`, `log_title`, `log_description`, `log_date`, `log_author`) VALUES
(1, '1.1', 'Reales System', 'Release version 1.1 <br>\r\nCMS E-COMMERCE LAPAKMUSLIM.COM\r\n', '2018-12-06', '<NAME>');
CREATE TABLE `tbl_menu_type` (
`id` int(11) NOT NULL,
`type` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `tbl_menu_type` (`id`, `type`) VALUES
(1, 'CREATE'),
(2, 'READ'),
(3, 'UPDATE'),
(4, 'DELETE'),
(5, 'EXPORT'),
(6, 'IMPORT');
CREATE TABLE `tbl_role_menu` (
`menu_role_id` int(11) NOT NULL,
`menu_group_id` int(11) NOT NULL,
`menu_id` int(11) NOT NULL,
`menu_user_role_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
INSERT INTO `tbl_role_menu` (`menu_role_id`, `menu_group_id`, `menu_id`, `menu_user_role_id`) VALUES
(1, 1, 1, 1),
(2, 2, 3, 1);
CREATE TABLE `setting` (
`id` int(122) unsigned NOT NULL AUTO_INCREMENT,
`keys` varchar(255) DEFAULT NULL,
`value` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
INSERT INTO setting VALUES
("1","website","Expense Management"),
("2","logo","logo.png"),
("3","favicon","favicon.ico"),
("4","SMTP_EMAIL",""),
("5","HOST",""),
("6","PORT",""),
("7","SMTP_SECURE",""),
("8","SMTP_PASSWORD",""),
("9","mail_setting","simple_mail"),
("10","company_name","Company Name"),
("11","crud_list","users,Expenses,Income,Expense Category,Income Category,User"),
("12","EMAIL",""),
("13","UserModules","yes"),
("14","register_allowed","1"),
("15","email_invitation","1"),
("16","admin_approval","0"),
("17","user_type","[\"user\"]");
ALTER TABLE `mst_group_menu`
ADD PRIMARY KEY (`menu_group_id`);
ALTER TABLE `mst_menu`
ADD PRIMARY KEY (`menu_id`);
ALTER TABLE `mst_role_detail`
ADD PRIMARY KEY (`role_detail_id`);
ALTER TABLE `mst_user`
ADD PRIMARY KEY (`User_Id`);
ALTER TABLE `mst_user_detail`
ADD PRIMARY KEY (`user_detail_id`);
ALTER TABLE `mst_user_role`
ADD PRIMARY KEY (`Role_Id`);
ALTER TABLE `tbl_change_log`
ADD PRIMARY KEY (`log_id`);
ALTER TABLE `tbl_menu_type`
ADD PRIMARY KEY (`id`);
ALTER TABLE `tbl_role_menu`
ADD PRIMARY KEY (`menu_role_id`);
ALTER TABLE `mst_group_menu`
MODIFY `menu_group_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
ALTER TABLE `mst_menu`
MODIFY `menu_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
ALTER TABLE `mst_role_detail`
MODIFY `role_detail_id` int(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=48;
ALTER TABLE `mst_user`
MODIFY `User_Id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
ALTER TABLE `mst_user_detail`
MODIFY `user_detail_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
ALTER TABLE `mst_user_role`
MODIFY `Role_Id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30;
ALTER TABLE `tbl_change_log`
MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
ALTER TABLE `tbl_menu_type`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
ALTER TABLE `tbl_role_menu`
MODIFY `menu_role_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; |
USE `orbs_token`;
DROP function IF EXISTS `in_orbs`;
DELIMITER $$
USE `orbs_token`$$
CREATE DEFINER=`orbs`@`%` FUNCTION `in_orbs`(amount decimal(29,0)) RETURNS decimal(29,4)
BEGIN
RETURN amount / 1000000000000000000;
END$$
DELIMITER ;
|
<filename>module/implementation/uninstall.sql
rem Common
prompt .. Dropping type SEMVER_INTEGER_TAB
drop type semver_integer_tab force;
prompt .. Dropping type SEMVER_INTEGER_STACK
drop type semver_integer_stack force;
rem Lexer
prompt .. Dropping type SEMVER_TOKEN
drop type semver_token force;
prompt .. Dropping type SEMVER_TOKENS
drop type semver_tokens force;
prompt .. Dropping type SEMVER_MATCHER
drop type semver_matcher force;
prompt .. Dropping type SEMVER_MATCHERS
drop type semver_matchers force;
prompt .. Dropping type SEMVER_MATCHASCII
drop type semver_matchascii force;
prompt .. Dropping type SEMVER_MATCHKEYWORD
drop type semver_matchkeyword force;
prompt .. Dropping type SEMVER_MATCHNUMERIC
drop type semver_matchnumeric force;
prompt .. Dropping package SEMVER_LEXER
drop package semver_lexer;
rem Parser
prompt .. Dropping type SEMVER_ASTCHILDREN
drop type semver_astchildren force;
prompt .. Dropping type SEMVER_AST
drop type semver_ast force;
prompt .. Dropping type SEMVER_AST_TAGS
drop type semver_ast_tags force;
prompt .. Dropping type SEMVER_AST_PARTIAL
drop type semver_ast_partial force;
prompt .. Dropping type SEMVER_AST_COMPARATOR
drop type semver_ast_comparator force;
prompt .. Dropping type SEMVER_AST_COMPARATOR_SET
drop type semver_ast_comparatorset force;
prompt .. Dropping type SEMVER_AST_RANGE
drop type semver_ast_range force;
prompt .. Dropping package SEMVER_TOKEN_STREAM
drop package semver_token_stream;
prompt .. Dropping package SEMVER_AST_REGISTRY
drop package semver_ast_registry;
prompt .. Dropping package SEMVER_RANGE_PARSER
drop package semver_range_parser;
rem Semver
prompt .. Dropping package SEMVER_COMMON
drop package semver_common;
prompt .. Dropping package SEMVER_UTIL
drop package semver_util;
prompt .. Dropping package SEMVER_VERSION_IMPL
drop package semver_version_impl;
prompt .. Dropping package SEMVER_RANGE_IMPL
drop package semver_range_impl;
prompt .. Dropping package SEMVER_COMPARATOR_IMPL
drop package semver_comparator_impl;
|
CREATE DATABASE [Minions]
CREATE TABLE [Towns](
[Id] INT PRIMARY KEY NOT NULL,
[Name] VARCHAR(30)
)
CREATE TABLE [Minions](
[Id] INT PRIMARY KEY NOT NULL,
[Name] VARCHAR(20),
[Age] INT,
[TownId] INT FOREIGN KEY REFERENCES Towns(Id)
)
INSERT INTO Towns([Id], [Name])
VALUES (1,'Sofia'), (2,'Plovdiv'),(3,'Varna');
INSERT INTO [Minions]([Id], [Name], [Age],[TownId])
VALUES (1,'Kevin', 22, 1), (2,'Bob', 15, 3),(3,'Steward', NULL, 2);
TRUNCATE TABLE [Minions]
DROP TABLE [Minions];
DROP TABLE [Towns]; |
ALTER TABLE PO_BOSTEDSADRESSE ALTER COLUMN endret_av TYPE varchar;
|
alter table "public"."artworks" rename column "bidder_id" to "bid_id";
|
-- When only FAIN is populated in File C, update File C assistance records to
-- link to a corresponding award if there is a single exact match based on FAIN.
WITH update_cte AS (
UPDATE financial_accounts_by_awards AS faba
SET
award_id = (
SELECT
id
FROM
awards AS aw
WHERE
UPPER(aw.fain) = UPPER(faba.fain)
)
WHERE
faba.financial_accounts_by_awards_id = ANY(
SELECT
faba_sub.financial_accounts_by_awards_id
FROM
financial_accounts_by_awards AS faba_sub
WHERE
faba_sub.fain IS NOT NULL
AND faba_sub.uri IS NULL
AND faba_sub.award_id IS NULL
AND (
SELECT COUNT(*)
FROM awards AS aw_sub
WHERE UPPER(aw_sub.fain) = UPPER(faba_sub.fain)
) = 1
{submission_id_clause}
)
RETURNING award_id
)
UPDATE
awards
SET
update_date = NOW()
FROM
update_cte
WHERE
id = update_cte.award_id
;
|
<gh_stars>0
ALTER TABLE FREQUENCY
ADD ACTIVE_FLAG CHAR(1) DEFAULT 'Y' NOT NULL
/
|
SELECT pur#, original_price * qty - total_price AS saving
FROM purchases pu, products pr WHERE pr.pid = pu.pid AND pur# IN
(SELECT pur# FROM purchases WHERE original_price * qty - total_price =
(SELECT MAX(original_price * qty - total_price) FROM purchases pu,
products pr WHERE pu.pid = pr.pid)) ORDER BY saving DESC
/
|
-- This file should undo anything in `up.sql`
ALTER TABLE mangas DROP COLUMN text_searchable_mangas;
DROP TRIGGER tsvectorupdatemangas ON mangas;
|
INSERT INTO users(user_login, name, create_information, password) VALUES ('zanoza', '<PASSWORD>', 'VIP-client', '<PASSWORD>');
INSERT INTO role(status_role, description_role, id_user) VALUES ('workStatus', 'upWorking', 1);
INSERT INTO rule_role(algoritm, number_rows, id_role) VALUES ('rules_algoritm', 'count_rows', 1);
INSERT INTO attached_files(documents, letters, id_user) VALUES ('documents_add', 'letters_arrive', 1);
INSERT INTO application(applications, description_application, id_user) VALUES ('applications_all', 'description_all', 1);
INSERT INTO comment_application(comments, id_application) VALUES ('commentaries', 1);
INSERT INTO items(date_id, application_id, role_id, create_data) VALUES (1, 1, 1, '2017-11-03 20:45:45'); |
<reponame>jonathangreen/simplified-server-core<gh_stars>1-10
ALTER TABLE patrons add COLUMN fines varchar;
|
with base as (
select *
from {{ ref('stg_mailchimp__lists_tmp') }}
),
fields as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_mailchimp__lists_tmp')),
staging_columns=get_list_columns()
)
}}
from base
),
final as (
select
id as list_id,
date_created,
name,
list_rating,
beamer_address,
contact_address_1,
contact_address_2,
contact_city,
contact_company,
contact_country,
contact_state,
contact_zip,
default_from_email,
default_from_name,
default_language,
default_subject,
email_type_option,
notify_on_subscribe,
notify_on_unsubscribe,
permission_reminder,
subscribe_url_long,
subscribe_url_short,
use_archive_bar,
visibility
from fields
)
select *
from final |
select name, id, lifecycle_state, description, inactive_status
from oci.oci_identity_network_source
where id = '{{ output.resource_id.value }}aa'; |
<gh_stars>100-1000
CREATE TABLE MSG_COUNT AS
SELECT 'X' AS X,
COUNT(*) AS MSG_CT
FROM PAGEVIEWS
GROUP BY 'X'
EMIT CHANGES; |
<filename>liquibase-core/src/test/java/liquibase/verify/saved_state/compareGeneratedSqlWithExpectedSqlForMinimalChangesets/renameColumn/mysql.sql
-- Database: mysql
-- Change Parameter: columnDataType=int
-- Change Parameter: newColumnName=full_name
-- Change Parameter: oldColumnName=name
-- Change Parameter: tableName=person
ALTER TABLE person CHANGE name full_name INT;
|
<filename>src/test/regress/sql/btree_index.sql
--
-- BTREE_INDEX
-- test retrieval of min/max keys for each index
--
SELECT b.*
FROM bt_i4_heap b
WHERE b.seqno < 1;
SELECT b.*
FROM bt_i4_heap b
WHERE b.seqno >= 9999;
SELECT b.*
FROM bt_i4_heap b
WHERE b.seqno = 4500;
SELECT b.*
FROM bt_name_heap b
WHERE b.seqno < '1'::name;
SELECT b.*
FROM bt_name_heap b
WHERE b.seqno >= '9999'::name;
SELECT b.*
FROM bt_name_heap b
WHERE b.seqno = '4500'::name;
SELECT b.*
FROM bt_txt_heap b
WHERE b.seqno < '1'::text;
SELECT b.*
FROM bt_txt_heap b
WHERE b.seqno >= '9999'::text;
SELECT b.*
FROM bt_txt_heap b
WHERE b.seqno = '4500'::text;
SELECT b.*
FROM bt_f8_heap b
WHERE b.seqno < '1'::float8;
SELECT b.*
FROM bt_f8_heap b
WHERE b.seqno >= '9999'::float8;
SELECT b.*
FROM bt_f8_heap b
WHERE b.seqno = '4500'::float8;
--
-- Check correct optimization of LIKE (special index operator support)
-- for both indexscan and bitmapscan cases
--
set enable_seqscan to false;
set enable_indexscan to true;
set enable_bitmapscan to false;
explain (costs off)
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
explain (costs off)
select proname from pg_proc where proname ilike '00%foo' order by 1;
select proname from pg_proc where proname ilike '00%foo' order by 1;
explain (costs off)
select proname from pg_proc where proname ilike 'ri%foo' order by 1;
set enable_indexscan to false;
set enable_bitmapscan to true;
explain (costs off)
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
select proname from pg_proc where proname like E'RI\\_FKey%del' order by 1;
explain (costs off)
select proname from pg_proc where proname ilike '00%foo' order by 1;
select proname from pg_proc where proname ilike '00%foo' order by 1;
explain (costs off)
select proname from pg_proc where proname ilike 'ri%foo' order by 1;
reset enable_seqscan;
reset enable_indexscan;
reset enable_bitmapscan;
-- Also check LIKE optimization with binary-compatible cases
create temp table btree_bpchar (f1 text collate "C");
create index on btree_bpchar(f1 bpchar_ops) WITH (deduplicate_items=on);
insert into btree_bpchar values ('foo'), ('fool'), ('bar'), ('quux');
-- doesn't match index:
explain (costs off)
select * from btree_bpchar where f1 like 'foo';
select * from btree_bpchar where f1 like 'foo';
explain (costs off)
select * from btree_bpchar where f1 like 'foo%';
select * from btree_bpchar where f1 like 'foo%';
-- these do match the index:
explain (costs off)
select * from btree_bpchar where f1::bpchar like 'foo';
select * from btree_bpchar where f1::bpchar like 'foo';
explain (costs off)
select * from btree_bpchar where f1::bpchar like 'foo%';
select * from btree_bpchar where f1::bpchar like 'foo%';
-- get test coverage for "single value" deduplication strategy:
insert into btree_bpchar select 'foo' from generate_series(1,1500);
--
-- Perform unique checking, with and without the use of deduplication
--
CREATE TABLE dedup_unique_test_table (a int) WITH (autovacuum_enabled=false);
CREATE UNIQUE INDEX dedup_unique ON dedup_unique_test_table (a) WITH (deduplicate_items=on);
CREATE UNIQUE INDEX plain_unique ON dedup_unique_test_table (a) WITH (deduplicate_items=off);
-- Generate enough garbage tuples in index to ensure that even the unique index
-- with deduplication enabled has to check multiple leaf pages during unique
-- checking (at least with a BLCKSZ of 8192 or less)
DO $$
BEGIN
FOR r IN 1..1350 LOOP
DELETE FROM dedup_unique_test_table;
INSERT INTO dedup_unique_test_table SELECT 1;
END LOOP;
END$$;
-- Exercise the LP_DEAD-bit-set tuple deletion code with a posting list tuple.
-- The implementation prefers deleting existing items to merging any duplicate
-- tuples into a posting list, so we need an explicit test to make sure we get
-- coverage (note that this test also assumes BLCKSZ is 8192 or less):
DROP INDEX plain_unique;
DELETE FROM dedup_unique_test_table WHERE a = 1;
INSERT INTO dedup_unique_test_table SELECT i FROM generate_series(0,450) i;
--
-- Test B-tree fast path (cache rightmost leaf page) optimization.
--
-- First create a tree that's at least three levels deep (i.e. has one level
-- between the root and leaf levels). The text inserted is long. It won't be
-- TOAST compressed because we use plain storage in the table. Only a few
-- index tuples fit on each internal page, allowing us to get a tall tree with
-- few pages. (A tall tree is required to trigger caching.)
--
-- The text column must be the leading column in the index, since suffix
-- truncation would otherwise truncate tuples on internal pages, leaving us
-- with a short tree.
create table btree_tall_tbl(id int4, t text);
alter table btree_tall_tbl alter COLUMN t set storage plain;
create index btree_tall_idx on btree_tall_tbl (t, id) with (fillfactor = 10);
insert into btree_tall_tbl select g, repeat('x', 250)
from generate_series(1, 130) g;
--
-- Test for multilevel page deletion
--
CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint);
INSERT INTO delete_test_table SELECT i, 1, 2, 3 FROM generate_series(1,80000) i;
ALTER TABLE delete_test_table ADD PRIMARY KEY (a,b,c,d);
-- Delete most entries, and vacuum, deleting internal pages and creating "fast
-- root"
DELETE FROM delete_test_table WHERE a < 79990;
VACUUM delete_test_table;
--
-- Test B-tree insertion with a metapage update (XLOG_BTREE_INSERT_META
-- WAL record type). This happens when a "fast root" page is split. This
-- also creates coverage for nbtree FSM page recycling.
--
-- The vacuum above should've turned the leaf page into a fast root. We just
-- need to insert some rows to cause the fast root page to split.
INSERT INTO delete_test_table SELECT i, 1, 2, 3 FROM generate_series(1,1000) i;
-- Test unsupported btree opclass parameters
create index on btree_tall_tbl (id int4_ops(foo=1));
-- Test case of ALTER INDEX with abuse of column names for indexes.
-- This grammar is not officially supported, but the parser allows it.
CREATE INDEX btree_tall_idx2 ON btree_tall_tbl (id);
ALTER INDEX btree_tall_idx2 ALTER COLUMN id SET (n_distinct=100);
DROP INDEX btree_tall_idx2;
-- Partitioned index
CREATE TABLE btree_part (id int4) PARTITION BY RANGE (id);
CREATE INDEX btree_part_idx ON btree_part(id);
ALTER INDEX btree_part_idx ALTER COLUMN id SET (n_distinct=100);
DROP TABLE btree_part;
|
-- phpMyAdmin SQL Dump
-- version 3.4.5
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Waktu pembuatan: 07. Juni 2016 jam 04:59
-- Versi Server: 5.5.16
-- Versi PHP: 5.3.8
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Database: `db_sipa`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `alat`
--
CREATE TABLE IF NOT EXISTS `alat` (
`ID_ALAT` int(11) NOT NULL AUTO_INCREMENT,
`ID_JURUSAN` int(11) DEFAULT NULL,
`ID_USER` int(11) DEFAULT NULL,
`ID_LOKASI` int(11) DEFAULT NULL,
`ID_PAKET` int(11) DEFAULT NULL,
`ID_FASE` int(11) DEFAULT NULL,
`ID_USULAN` int(11) DEFAULT NULL,
`NAMA_ALAT` varchar(50) DEFAULT NULL,
`SPESIFIKASI` longtext,
`SETARA` longtext,
`SATUAN` varchar(20) DEFAULT NULL,
`JUMLAH_ALAT` decimal(8,0) DEFAULT NULL,
`HARGA_SATUAN` decimal(8,0) DEFAULT NULL,
`JUMLAH_DISTRIBUSI` decimal(8,0) DEFAULT NULL,
`KONFIRMASI` longtext,
`REFERENSI_TERKAIT` longtext,
`DATA_AHLI` smallint(6) DEFAULT NULL,
`REVISI` decimal(8,0) NOT NULL DEFAULT '0',
`PRIORITY` varchar(3) NOT NULL,
`TANGGAL_UPDATE` datetime NOT NULL,
`ID_KATEGORI` int(11) NOT NULL,
`NO_INVENTARIS` varchar(50) NOT NULL,
`IS_FINAL` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID_ALAT`),
KEY `FK_RELATIONSHIP_10` (`ID_LOKASI`),
KEY `FK_RELATIONSHIP_16` (`ID_FASE`),
KEY `FK_RELATIONSHIP_18` (`ID_JURUSAN`),
KEY `FK_RELATIONSHIP_26` (`ID_PAKET`),
KEY `FK_RELATIONSHIP_29` (`ID_USULAN`),
KEY `FK_RELATIONSHIP_6` (`ID_USER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=14 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `bast`
--
CREATE TABLE IF NOT EXISTS `bast` (
`ID_BAST` int(11) NOT NULL AUTO_INCREMENT,
`NO_DOK` varchar(50) DEFAULT NULL,
`TANGGAL_DOK` date DEFAULT NULL,
`NAMA_PPK` varchar(50) DEFAULT NULL,
`NAMA_DIREKTUR` varchar(50) DEFAULT NULL,
`NAMA_PENYEDIA` varchar(50) DEFAULT NULL,
`TEMPAT_KEDUDUKAN_PENYEDIA` varchar(50) DEFAULT NULL,
`NO_AKTA_NOTARIS` varchar(50) DEFAULT NULL,
`TANGGAL_AKTA_NOTARIS` date DEFAULT NULL,
`NAMA_NOTARIS` varchar(50) DEFAULT NULL,
`TOTAL_HARGA_KONTRAK` decimal(8,0) DEFAULT NULL,
`NAMA_WAKIL_SAH_PARA_PIHAK` varchar(50) DEFAULT NULL,
`WAKTU_DIMULAINYA_PERKERJAAN_PENGADAAN_BARANG` varchar(50) DEFAULT NULL,
`JANGKA_WAKTU_PENYELESAIAN_PEKERJAAN` varchar(50) DEFAULT NULL,
`NAMA_DAN_NO_REKENING_PEMBAYARAN_PRESTASI` varchar(50) DEFAULT NULL,
`TAHUN_ANGGARAN_DIPA` varchar(4) DEFAULT NULL,
`NO_DIPA` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID_BAST`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `bukti_penerimaan`
--
CREATE TABLE IF NOT EXISTS `bukti_penerimaan` (
`ID_BUKTI` int(11) NOT NULL AUTO_INCREMENT,
`ID_PAKET` int(11) DEFAULT NULL,
`TANGGAL` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`FILE` text,
`KETERANGAN` tinytext,
PRIMARY KEY (`ID_BUKTI`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `deadline`
--
CREATE TABLE IF NOT EXISTS `deadline` (
`ID_FASE` int(11) NOT NULL,
`WAKTU_PELAKSANAAN` int(11) NOT NULL,
`WAKTU_TAMBAHAN` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `deadline`
--
INSERT INTO `deadline` (`ID_FASE`, `WAKTU_PELAKSANAAN`, `WAKTU_TAMBAHAN`) VALUES
(1, 30, 16),
(2, 10, 4),
(3, 30, 15),
(4, 7, 3),
(5, 9, 9),
(6, 3, 3);
-- --------------------------------------------------------
--
-- Struktur dari tabel `fase`
--
CREATE TABLE IF NOT EXISTS `fase` (
`ID_FASE` int(11) NOT NULL AUTO_INCREMENT,
`NAMA_FASE` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID_FASE`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data untuk tabel `fase`
--
INSERT INTO `fase` (`ID_FASE`, `NAMA_FASE`) VALUES
(1, 'Pengajuan'),
(2, 'VerifikasiHPS'),
(3, 'Pengadaan'),
(4, 'PenetapanKontrak'),
(5, 'Penerimaan'),
(6, 'Pencatatan');
-- --------------------------------------------------------
--
-- Struktur dari tabel `jenis_user`
--
CREATE TABLE IF NOT EXISTS `jenis_user` (
`ID_JENIS_USER` int(11) NOT NULL AUTO_INCREMENT,
`NAMA_JENIS_USER` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID_JENIS_USER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=100 ;
--
-- Dumping data untuk tabel `jenis_user`
--
INSERT INTO `jenis_user` (`ID_JENIS_USER`, `NAMA_JENIS_USER`) VALUES
(1, 'Teknisi'),
(2, 'Kepala Lab'),
(3, 'Manajemen'),
(4, 'Pembantu Direktur'),
(5, 'PPK'),
(6, 'Tim HPS'),
(7, 'ULP'),
(8, 'Tim Penerima'),
(9, 'PPSPM'),
(10, 'Direktur'),
(99, 'Admin');
-- --------------------------------------------------------
--
-- Struktur dari tabel `jurusan`
--
CREATE TABLE IF NOT EXISTS `jurusan` (
`ID_JURUSAN` int(11) NOT NULL AUTO_INCREMENT,
`NAMA_JURUSAN` varchar(50) DEFAULT NULL,
`INISIAL` varchar(10) DEFAULT NULL,
PRIMARY KEY (`ID_JURUSAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Dumping data untuk tabel `jurusan`
--
INSERT INTO `jurusan` (`ID_JURUSAN`, `NAMA_JURUSAN`, `INISIAL`) VALUES
(0, NULL, NULL),
(1, 'Teknik Komputer dan Informatika', 'JTK'),
(2, 'Administrasi Niaga', 'AN'),
(3, 'Teknik Sipil', 'Sipil'),
(4, 'Teknik Mesin', 'Mesin'),
(5, 'Teknik Refrigerasi dan Tata Udara', 'Refri'),
(6, 'Teknik Konversi Energi', 'Energi'),
(7, 'Teknik Elektro', 'JTE'),
(8, 'Teknik Kimia', 'KI'),
(9, 'Akuntansi', 'Akun'),
(10, 'Bahasa Inggris', 'BI');
-- --------------------------------------------------------
--
-- Struktur dari tabel `kategori`
--
CREATE TABLE IF NOT EXISTS `kategori` (
`ID_KATEGORI` int(11) NOT NULL AUTO_INCREMENT,
`KATEGORI` varchar(150) NOT NULL,
`KETERANGAN` text NOT NULL,
PRIMARY KEY (`ID_KATEGORI`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ;
--
-- Dumping data untuk tabel `kategori`
--
INSERT INTO `kategori` (`ID_KATEGORI`, `KATEGORI`, `KETERANGAN`) VALUES
(1, '<NAME>', ''),
(2, 'Al<NAME>at', ''),
(3, 'Kendaraan Bermotor', ''),
(4, 'Alat Kebersihan', ''),
(5, 'Material Konstruksi', ''),
(6, 'Tata Lingkungan', ''),
(7, 'Internet Service Provider', ''),
(8, 'Komunikasi & Informatika', ''),
(9, 'Peralatan Kantor', '');
-- --------------------------------------------------------
--
-- Struktur dari tabel `kontrak`
--
CREATE TABLE IF NOT EXISTS `kontrak` (
`ID_KONTRAK` int(11) NOT NULL AUTO_INCREMENT,
`ID_PAKET` int(11) DEFAULT NULL,
`ID_USER` int(11) DEFAULT NULL,
`KETERANGAN` longtext,
`FILE` longtext,
PRIMARY KEY (`ID_KONTRAK`),
KEY `FK_RELATIONSHIP_24` (`ID_USER`),
KEY `FK_RELATIONSHIP_25` (`ID_PAKET`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `lokasi`
--
CREATE TABLE IF NOT EXISTS `lokasi` (
`ID_LOKASI` int(11) NOT NULL AUTO_INCREMENT,
`ID_JURUSAN` int(11) DEFAULT NULL,
`NAMA_LOKASI` varchar(50) DEFAULT NULL,
PRIMARY KEY (`ID_LOKASI`),
KEY `FK_RELATIONSHIP_15` (`ID_JURUSAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data untuk tabel `lokasi`
--
INSERT INTO `lokasi` (`ID_LOKASI`, `ID_JURUSAN`, `NAMA_LOKASI`) VALUES
(1, 1, 'RSG'),
(2, 1, 'Lab. RPL'),
(3, 2, 'Lab Bisnis'),
(4, 2, 'Ruang Rapat');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pagu`
--
CREATE TABLE IF NOT EXISTS `pagu` (
`ID_PAGU` int(11) NOT NULL AUTO_INCREMENT,
`ID_JURUSAN` int(11) DEFAULT NULL,
`PAGU_ALAT` int(11) DEFAULT NULL,
`TAHUN_ANGGARAN` char(4) DEFAULT NULL,
`TANGGAL` datetime NOT NULL,
PRIMARY KEY (`ID_PAGU`),
KEY `FK_RELATIONSHIP_17` (`ID_JURUSAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=13 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `paket`
--
CREATE TABLE IF NOT EXISTS `paket` (
`ID_PAKET` int(11) NOT NULL AUTO_INCREMENT,
`ID_USER` int(11) DEFAULT NULL,
`ID_TEAM_PENERIMA` int(11) DEFAULT NULL,
`ID_TEAM_HPS` int(11) DEFAULT NULL,
`NAMA_PAKET` longtext,
`STATUS` smallint(6) DEFAULT NULL,
`TANGGAL_DIBUAT` datetime NOT NULL,
`TAHUN_ANGGARAN` char(4) DEFAULT NULL,
`TOTAL_ANGGARAN` int(11) DEFAULT NULL,
`LAST_UPDATE` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`TENDER_A` varchar(50) NOT NULL,
`NAMA_A` varchar(55) NOT NULL,
`NPWP_A` varchar(40) NOT NULL,
`ALAMAT_A` text NOT NULL,
`TENDER_B` varchar(50) NOT NULL,
`NAMA_B` varchar(55) NOT NULL,
`NPWP_B` varchar(40) NOT NULL,
`ALAMAT_B` text NOT NULL,
`TENDER_C` varchar(50) NOT NULL,
`NAMA_C` varchar(55) NOT NULL,
`NPWP_C` varchar(40) NOT NULL,
`ALAMAT_C` text NOT NULL,
`KETERANGAN_GAGAL_KONTRAK` text NOT NULL,
`PENYEDIA` varchar(50) NOT NULL,
`WAKTU_PENGADAAN` varchar(50) NOT NULL,
`ID_KATEGORI` int(11) NOT NULL,
`STATUS_BAYAR` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID_PAKET`),
KEY `FK_RELATIONSHIP_2` (`ID_TEAM_HPS`),
KEY `FK_RELATIONSHIP_3` (`ID_TEAM_PENERIMA`),
KEY `FK_RELATIONSHIP_4` (`ID_USER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `pegawai`
--
CREATE TABLE IF NOT EXISTS `pegawai` (
`NIP` bigint(20) NOT NULL,
`NAMA_PEGAWAI` varchar(35) NOT NULL,
`NO_HP` varchar(20) NOT NULL,
`EMAIL` varchar(50) NOT NULL,
`IS_TEKNISI` tinyint(1) NOT NULL DEFAULT '0',
`HPS_CERTIFIED` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`NIP`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pegawai`
--
INSERT INTO `pegawai` (`NIP`, `NAMA_PEGAWAI`, `NO_HP`, `EMAIL`, `IS_TEKNISI`, `HPS_CERTIFIED`) VALUES
(6, 'Didi', '6345345', '<EMAIL>', 0, 1),
(7, 'Charlie', '0239124', '<EMAIL>', 1, 0),
(8, 'Bima', '29312831', '<EMAIL>', 0, 1),
(9, 'Arjuna', '92315123', '<EMAIL>', 1, 0),
(66666, 'Budi', '08666666', '<EMAIL>', 0, 0),
(555555, 'Arif', '08555555', '<EMAIL>', 0, 0),
(2222222, 'Andi', '08222222', '<EMAIL>', 0, 0),
(3333333, 'Andika', '083333333', '<EMAIL>', 0, 0),
(4444444, 'Annisa', '084444444', '<EMAIL>', 0, 0),
(7777777, 'Chandri', '087777777', '<EMAIL>', 0, 0),
(8888888, 'Erwin', '08888888', '<EMAIL>', 0, 0),
(11111111, 'Adit', '08111111', '<EMAIL>', 1, 0),
(99999999, 'Julid', '089999999', '<EMAIL>', 0, 0),
(101010101010, 'Luthpi', '0810101010', '<EMAIL>', 0, 0);
-- --------------------------------------------------------
--
-- Struktur dari tabel `penerimaan`
--
CREATE TABLE IF NOT EXISTS `penerimaan` (
`ID_PENERIMAAN` int(11) NOT NULL AUTO_INCREMENT,
`ID_ALAT` int(11) DEFAULT NULL,
`ID_TEAM_PENERIMA` int(11) DEFAULT NULL,
`TANGGAL_PENERIMAAN` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`JUMLAH` decimal(8,0) DEFAULT NULL,
`ID_PAKET` int(11) NOT NULL,
`KETERANGAN` text NOT NULL,
`STATUS_KONFIRMASI` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`ID_PENERIMAAN`),
KEY `FK_RELATIONSHIP_8` (`ID_TEAM_PENERIMA`),
KEY `FK_RELATIONSHIP_9` (`ID_ALAT`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `progress_paket`
--
CREATE TABLE IF NOT EXISTS `progress_paket` (
`ID_PROGRESS_PAKET` int(11) NOT NULL AUTO_INCREMENT,
`ID_PAKET` int(11) DEFAULT NULL,
`ID_USER` int(11) DEFAULT NULL,
`ID_FASE` int(11) DEFAULT NULL,
`ID_USULAN` int(11) DEFAULT NULL,
`STATUS` smallint(6) DEFAULT NULL,
`TANGGAL` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`ID_JENIS_USER` int(11) NOT NULL,
`ID_JURUSAN` int(11) NOT NULL,
`REVISI_KE` int(11) NOT NULL,
PRIMARY KEY (`ID_PROGRESS_PAKET`),
KEY `FK_RELATIONSHIP_12` (`ID_FASE`),
KEY `FK_RELATIONSHIP_13` (`ID_USER`),
KEY `FK_RELATIONSHIP_14` (`ID_PAKET`),
KEY `FK_RELATIONSHIP_28` (`ID_USULAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=53 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `team_hps`
--
CREATE TABLE IF NOT EXISTS `team_hps` (
`ID_TEAM_HPS` int(11) NOT NULL AUTO_INCREMENT,
`ID_USER` int(11) DEFAULT NULL,
`NAMA_TIM` varchar(100) NOT NULL,
`LIST_USER_HPS` longtext,
PRIMARY KEY (`ID_TEAM_HPS`),
KEY `FK_RELATIONSHIP_19` (`ID_USER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `team_penerima`
--
CREATE TABLE IF NOT EXISTS `team_penerima` (
`ID_TEAM_PENERIMA` int(11) NOT NULL AUTO_INCREMENT,
`ID_USER` int(11) DEFAULT NULL,
`NAMA_TIM` varchar(100) NOT NULL,
`LIST_USER_PENERIMA` longtext,
PRIMARY KEY (`ID_TEAM_PENERIMA`),
KEY `FK_RELATIONSHIP_20` (`ID_USER`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
-- --------------------------------------------------------
--
-- Struktur dari tabel `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`ID_USER` int(11) NOT NULL AUTO_INCREMENT,
`ID_JENIS_USER` int(11) DEFAULT NULL,
`ID_JURUSAN` int(11) DEFAULT NULL,
`USERNAME` varchar(50) DEFAULT NULL,
`PASSWORD` varchar(50) DEFAULT NULL,
`NIP` varchar(20) DEFAULT NULL,
PRIMARY KEY (`ID_USER`),
KEY `FK_RELATIONSHIP_1` (`ID_JENIS_USER`),
KEY `FK_RELATIONSHIP_23` (`ID_JURUSAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=19 ;
--
-- Dumping data untuk tabel `user`
--
INSERT INTO `user` (`ID_USER`, `ID_JENIS_USER`, `ID_JURUSAN`, `USERNAME`, `PASSWORD`, `NIP`) VALUES
(1, 1, 1, 'Teknisi', '<PASSWORD>', '11111111'),
(2, 2, 1, 'Kalab', '<PASSWORD>', '2222222'),
(3, 3, 1, 'Manajemen', '<PASSWORD>', '3333333'),
(4, 4, 0, 'PD', '<PASSWORD>', '4444444'),
(5, 5, 0, 'PPK', '<PASSWORD>5aa765d61d8327deb882cf99', '555555'),
(6, 6, 0, 'TimHPS', '5f4dcc3b5aa765d61d8327deb882cf99', '66666'),
(7, 7, 0, 'ULP', '5f4dcc3b5aa765d61d8327deb882cf99', '7777777'),
(8, 8, 0, 'TimPenerima', '5f4dcc3b5aa765d61d8327deb882cf99', '8888888'),
(9, 9, 0, 'PPSPM', '5f4dcc3b5aa765d61d8327deb882cf99', '99999999'),
(10, 10, 0, 'Direktur', '5f4dcc3b5aa765d61d8327deb882cf99', '101010101010'),
(11, 99, 0, 'Admin', '5f4dcc3b5aa765d61d8327deb882cf99', '-'),
(16, 1, 2, 'TeknisiAN', '5f4dcc3b5aa765d61d8327deb882cf99', '7'),
(17, 2, 2, 'KalabAN', '5f4dcc3b5aa765d61d8327deb882cf99', '6'),
(18, 3, 2, 'ManajemenAN', '5f4dcc3b5aa765d61d8327deb882cf99', '8');
-- --------------------------------------------------------
--
-- Struktur dari tabel `usulan`
--
CREATE TABLE IF NOT EXISTS `usulan` (
`ID_USULAN` int(11) NOT NULL AUTO_INCREMENT,
`ID_USER` int(11) DEFAULT NULL,
`ID_JURUSAN` int(11) DEFAULT NULL,
`NAMA_PAKET` longtext,
`STATUS` smallint(6) DEFAULT NULL,
`TANGGAL_DIBUAT` datetime NOT NULL,
`TAHUN_ANGGARAN` char(4) DEFAULT NULL,
`PD` char(2) DEFAULT NULL,
`TOTAL_ANGGARAN` int(11) DEFAULT NULL,
`LAST_UPDATE` datetime NOT NULL,
`ID_JENIS_USER` int(11) NOT NULL,
PRIMARY KEY (`ID_USULAN`),
KEY `FK_RELATIONSHIP_27` (`ID_USER`),
KEY `FK_RELATIONSHIP_30` (`ID_JURUSAN`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `alat`
--
ALTER TABLE `alat`
ADD CONSTRAINT `FK_RELATIONSHIP_10` FOREIGN KEY (`ID_LOKASI`) REFERENCES `lokasi` (`ID_LOKASI`),
ADD CONSTRAINT `FK_RELATIONSHIP_16` FOREIGN KEY (`ID_FASE`) REFERENCES `fase` (`ID_FASE`),
ADD CONSTRAINT `FK_RELATIONSHIP_18` FOREIGN KEY (`ID_JURUSAN`) REFERENCES `jurusan` (`ID_JURUSAN`),
ADD CONSTRAINT `FK_RELATIONSHIP_26` FOREIGN KEY (`ID_PAKET`) REFERENCES `paket` (`ID_PAKET`),
ADD CONSTRAINT `FK_RELATIONSHIP_29` FOREIGN KEY (`ID_USULAN`) REFERENCES `usulan` (`ID_USULAN`),
ADD CONSTRAINT `FK_RELATIONSHIP_6` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`);
--
-- Ketidakleluasaan untuk tabel `kontrak`
--
ALTER TABLE `kontrak`
ADD CONSTRAINT `FK_RELATIONSHIP_24` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`),
ADD CONSTRAINT `FK_RELATIONSHIP_25` FOREIGN KEY (`ID_PAKET`) REFERENCES `paket` (`ID_PAKET`);
--
-- Ketidakleluasaan untuk tabel `lokasi`
--
ALTER TABLE `lokasi`
ADD CONSTRAINT `FK_RELATIONSHIP_15` FOREIGN KEY (`ID_JURUSAN`) REFERENCES `jurusan` (`ID_JURUSAN`);
--
-- Ketidakleluasaan untuk tabel `pagu`
--
ALTER TABLE `pagu`
ADD CONSTRAINT `FK_RELATIONSHIP_17` FOREIGN KEY (`ID_JURUSAN`) REFERENCES `jurusan` (`ID_JURUSAN`);
--
-- Ketidakleluasaan untuk tabel `paket`
--
ALTER TABLE `paket`
ADD CONSTRAINT `FK_RELATIONSHIP_4` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`);
--
-- Ketidakleluasaan untuk tabel `penerimaan`
--
ALTER TABLE `penerimaan`
ADD CONSTRAINT `FK_RELATIONSHIP_9` FOREIGN KEY (`ID_ALAT`) REFERENCES `alat` (`ID_ALAT`),
ADD CONSTRAINT `penerimaan_ibfk_1` FOREIGN KEY (`ID_TEAM_PENERIMA`) REFERENCES `team_penerima` (`ID_TEAM_PENERIMA`);
--
-- Ketidakleluasaan untuk tabel `progress_paket`
--
ALTER TABLE `progress_paket`
ADD CONSTRAINT `FK_RELATIONSHIP_12` FOREIGN KEY (`ID_FASE`) REFERENCES `fase` (`ID_FASE`),
ADD CONSTRAINT `FK_RELATIONSHIP_13` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`),
ADD CONSTRAINT `FK_RELATIONSHIP_14` FOREIGN KEY (`ID_PAKET`) REFERENCES `paket` (`ID_PAKET`),
ADD CONSTRAINT `FK_RELATIONSHIP_28` FOREIGN KEY (`ID_USULAN`) REFERENCES `usulan` (`ID_USULAN`);
--
-- Ketidakleluasaan untuk tabel `team_hps`
--
ALTER TABLE `team_hps`
ADD CONSTRAINT `team_hps_ibfk_1` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`);
--
-- Ketidakleluasaan untuk tabel `team_penerima`
--
ALTER TABLE `team_penerima`
ADD CONSTRAINT `team_penerima_ibfk_1` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`);
--
-- Ketidakleluasaan untuk tabel `user`
--
ALTER TABLE `user`
ADD CONSTRAINT `FK_RELATIONSHIP_1` FOREIGN KEY (`ID_JENIS_USER`) REFERENCES `jenis_user` (`ID_JENIS_USER`),
ADD CONSTRAINT `FK_RELATIONSHIP_23` FOREIGN KEY (`ID_JURUSAN`) REFERENCES `jurusan` (`ID_JURUSAN`);
--
-- Ketidakleluasaan untuk tabel `usulan`
--
ALTER TABLE `usulan`
ADD CONSTRAINT `FK_RELATIONSHIP_27` FOREIGN KEY (`ID_USER`) REFERENCES `user` (`ID_USER`),
ADD CONSTRAINT `FK_RELATIONSHIP_30` FOREIGN KEY (`ID_JURUSAN`) REFERENCES `jurusan` (`ID_JURUSAN`);
/*!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
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 18 Feb 2019 pada 02.58
-- 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: `ekonsel`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_admin`
--
CREATE TABLE `tb_admin` (
`id` int(10) NOT NULL,
`no_induk` int(10) NOT NULL,
`nama` varchar(40) NOT NULL,
`level` int(1) NOT NULL,
`password` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_admin`
--
INSERT INTO `tb_admin` (`id`, `no_induk`, `nama`, `level`, `password`) VALUES
(1, 1, 'Bekti', 1, '<PASSWORD>'),
(2, 2, '<NAME>', 1, '<PASSWORD>'),
(3, 3, '<PASSWORD>', 1, '<PASSWORD>'),
(4, 4, 'Sekretaris X RPL 1', 0, '123456');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_keluhan`
--
CREATE TABLE `tb_keluhan` (
`id` int(11) NOT NULL,
`fullname` varchar(35) NOT NULL,
`kelas` varchar(10) NOT NULL,
`email` varchar(35) NOT NULL,
`keluhan` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_keluhan`
--
INSERT INTO `tb_keluhan` (`id`, `fullname`, `kelas`, `email`, `keluhan`) VALUES
(1, '<NAME>', 'XII RPL 1', '<EMAIL>', 'bu di kelas saya banyak sekali siswa yang membuang sampah sembarangan saya sudah mengingatkan tapi mereka tetap begitu, dimohon ibu untuk membantu saya mengingatkan mereka,trima kasih bu');
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_kunjungan`
--
CREATE TABLE `tb_kunjungan` (
`id` int(11) NOT NULL,
`nama_ortu` varchar(30) NOT NULL,
`nama_siswa` varchar(30) NOT NULL,
`kelas` varchar(10) NOT NULL,
`cek` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_kunjungan`
--
INSERT INTO `tb_kunjungan` (`id`, `nama_ortu`, `nama_siswa`, `kelas`, `cek`) VALUES
(1, 'Hasanudin', '<NAME>', 'XII RPL 1', 1),
(2, '<NAME>', '<NAME>', 'XII RPL 2', 0);
-- --------------------------------------------------------
--
-- Struktur dari tabel `tb_siswa`
--
CREATE TABLE `tb_siswa` (
`id` int(5) NOT NULL,
`nama` varchar(30) NOT NULL,
`kelas` varchar(10) NOT NULL,
`darijam` varchar(10) NOT NULL,
`ket` varchar(5) NOT NULL,
`tgl` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `tb_siswa`
--
INSERT INTO `tb_siswa` (`id`, `nama`, `kelas`, `darijam`, `ket`, `tgl`) VALUES
(1, '<NAME>', 'XII RPL 1', '2-8', 'I', '0000-00-00'),
(2, '<NAME>', 'XII RPL 2', '1-10', 'S', '0000-00-00'),
(3, '<NAME>', 'XII RPL 3', '1-10', 'A', '0000-00-00'),
(4, '<NAME>', 'XII RPL 4', '1-10', 'I', '0000-00-00'),
(5, 'Candra', 'XII RPL 1', '1-3', 'A', '0000-00-00'),
(6, 'albi tp', 'XII RPL 1', '1-3', 'S', '0000-00-00'),
(7, 'fafaf', 'v', '1-3', 'A', '0000-00-00'),
(8, 'fwas', 'fs', 'fs', 'sfs', '0000-00-00'),
(9, 'candra', 'XII RPL 1', '1-3', 'A', '0000-00-00'),
(10, 'fs', 'XI TKJ 4', 'fs', 'fs', '0000-00-00'),
(11, 'gd', 'XI TKJ 3', '1-3', 'A', '0000-00-00'),
(12, 'albi tp', 'X TJA 1', '1-3', 'A', '0000-00-00'),
(13, 'candra', 'X TJA 1', '1-3', 'A', '0000-00-00'),
(14, 'asd', 'X TJA 2', '1-3', 'A', '2019-01-12'),
(15, 'Poundra Verdian', 'XII RPL 4', '1-3', 'S', '2019-01-12'),
(16, 'HANIF', 'XII RPL 4', '1-A', 'I', '0000-00-00');
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `tb_admin`
--
ALTER TABLE `tb_admin`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_keluhan`
--
ALTER TABLE `tb_keluhan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_kunjungan`
--
ALTER TABLE `tb_kunjungan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `tb_siswa`
--
ALTER TABLE `tb_siswa`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `tb_keluhan`
--
ALTER TABLE `tb_keluhan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT untuk tabel `tb_kunjungan`
--
ALTER TABLE `tb_kunjungan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT untuk tabel `tb_siswa`
--
ALTER TABLE `tb_siswa`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE DATABASE patties_db;
-- DROP DATABASE IF EXISTS patties_db;
USE patties_db;
CREATE TABLE krabby
(
id INT NOT NULL AUTO_INCREMENT,
patty_name VARCHAR(255) NOT NULL,
devoured BOOLEAN DEFAULT false,
PRIMARY KEY (id)
);
|
-- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 13/11/2017 às 00:52
-- Versão do servidor: 5.7.14
-- Versão do PHP: 7.0.10
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 */;
--
-- Banco de dados: `celke`
--
-- --------------------------------------------------------
--
-- Estrutura para tabela `usuarios`
--
CREATE TABLE `usuarios` (
`id` int(11) NOT NULL,
`nome` varchar(220) NOT NULL,
`cpf` varchar(220) NOT NULL,
`rua` varchar(220) NOT NULL,
`numero_casa` varchar(220) NOT NULL,
`cidade` varchar (220) NOT NULL,
`estados_brasil` varchar(220) NOT NULL,
`zona` varchar(220) NOT NULL,
`residencia`varchar(220) NOT NULL,
`terreno` varchar(220) NOT NULL,
`processa_status` varchar(220) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Fazendo dump de dados para tabela `usuarios`
--
INSERT INTO `usuarios` (`id`, `nome`, `cpf`, `rua`,`numero_casa`, `cidade`, `estados_brasil`, `zona`, `residencia`, `terreno`,`processa_status`, `created`, `modified`) VALUES
(1, 'Cesar', '121212','Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:35:47', NULL),
(2, 'douglas', '111111', 'Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:37:15', NULL),
(3, 'everton', '131313131313', 'Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:39:14', NULL),
(4, 'Cesar4', '151515151515', 'Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:41:21', NULL),
(5, 'Cesar5', '181818181818', 'Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:42:49', NULL),
(6, 'Cesar6', '1919191919', 'Benedito', '10', 'Alagoinha', 'PB', 'rural', 'urbana', 'terrrio', 'processando', '2017-11-12 22:48:27', NULL);
--
-- Índices de tabelas apagadas
--
--
-- Índices de tabela `usuarios`
--
ALTER TABLE `usuarios`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de tabelas apagadas
--
--
-- AUTO_INCREMENT de tabela `usuarios`
--
ALTER TABLE `usuarios`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
drop table if exists document;
create table IF NOT EXISTS document (
id bigint not null,
doc_id varchar(50) UNIQUE,
loan_num varchar(50),
doc_title varchar(100),
doc_desc varchar(100),
doc_location varchar(100) UNIQUE,
apprvl_status varchar(15),
user_id bigint not null,
primary key (id)
);
|
<reponame>ciprianprohozescu/georgia-tech-library
select title, count(Loan.loan_date) as loans
from Book
left join Loan on Book.id = Loan.book_id
group by Book.id, Book.title
order by loans desc; |
<filename>yovente-17-02-2022.sql
-- --------------------------------------------------------
-- Hôte: 127.0.0.1
-- Version du serveur: 5.7.33 - MySQL Community Server (GPL)
-- SE du serveur: 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 */;
-- Listage de la structure de la table yovente. accounts
CREATE TABLE IF NOT EXISTS `accounts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`account_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`initial_balance` double DEFAULT NULL,
`total_balance` double NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`is_default` tinyint(1) DEFAULT NULL,
`is_active` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.accounts : ~2 rows (environ)
/*!40000 ALTER TABLE `accounts` DISABLE KEYS */;
INSERT INTO `accounts` (`id`, `account_no`, `name`, `initial_balance`, `total_balance`, `note`, `is_default`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Account-1', 'Comptabilité 1', NULL, 0, 'Fond de caisse initial', 1, 1, '2018-12-18 03:58:02', '2022-01-06 16:27:31'),
(3, '21211', 'Sa', NULL, 0, NULL, 0, 0, '2018-12-18 03:58:56', '2022-01-03 17:36:31');
/*!40000 ALTER TABLE `accounts` ENABLE KEYS */;
-- Listage de la structure de la table yovente. adjustments
CREATE TABLE IF NOT EXISTS `adjustments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`warehouse_id` int(11) NOT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total_qty` double NOT NULL,
`item` int(11) NOT 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;
-- Listage des données de la table yovente.adjustments : ~0 rows (environ)
/*!40000 ALTER TABLE `adjustments` DISABLE KEYS */;
/*!40000 ALTER TABLE `adjustments` ENABLE KEYS */;
-- Listage de la structure de la table yovente. attendances
CREATE TABLE IF NOT EXISTS `attendances` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`date` date NOT NULL,
`employee_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`checkin` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`checkout` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` int(11) NOT 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;
-- Listage des données de la table yovente.attendances : ~0 rows (environ)
/*!40000 ALTER TABLE `attendances` DISABLE KEYS */;
/*!40000 ALTER TABLE `attendances` ENABLE KEYS */;
-- Listage de la structure de la table yovente. billers
CREATE TABLE IF NOT EXISTS `billers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`vat_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.billers : ~0 rows (environ)
/*!40000 ALTER TABLE `billers` DISABLE KEYS */;
INSERT INTO `billers` (`id`, `name`, `image`, `company_name`, `vat_number`, `email`, `phone_number`, `address`, `city`, `state`, `postal_code`, `country`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Yovente', 'YoventeSARL.png', 'Yovente S.A.R.L', NULL, '<EMAIL>', '0622222222', 'Adresse Yovente', 'Benslimane', NULL, NULL, NULL, 1, '2022-01-07 22:33:14', '2022-01-07 22:33:14');
/*!40000 ALTER TABLE `billers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. brands
CREATE TABLE IF NOT EXISTS `brands` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.brands : ~4 rows (environ)
/*!40000 ALTER TABLE `brands` DISABLE KEYS */;
INSERT INTO `brands` (`id`, `title`, `image`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Çıkrıkçı', '20220107095635.jpg', 1, '2022-01-07 21:56:35', '2022-01-07 21:56:35'),
(2, 'Dilber', '20220107095651.jpg', 1, '2022-01-07 21:56:51', '2022-01-07 21:56:51'),
(3, '<NAME>', '20220107095703.jpg', 1, '2022-01-07 21:57:03', '2022-01-07 21:57:03'),
(4, '<NAME>', '20220107095716.jpg', 1, '2022-01-07 21:57:16', '2022-01-07 21:57:16');
/*!40000 ALTER TABLE `brands` ENABLE KEYS */;
-- Listage de la structure de la table yovente. cash_registers
CREATE TABLE IF NOT EXISTS `cash_registers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`cash_in_hand` double NOT NULL,
`user_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`status` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.cash_registers : ~3 rows (environ)
/*!40000 ALTER TABLE `cash_registers` DISABLE KEYS */;
INSERT INTO `cash_registers` (`id`, `cash_in_hand`, `user_id`, `warehouse_id`, `status`, `created_at`, `updated_at`) VALUES
(1, 0, 1, 1, 1, '2022-01-08 13:42:44', '2022-01-08 13:42:44'),
(2, 0, 23, 1, 1, '2022-01-16 00:40:24', '2022-01-16 00:40:24'),
(3, 0, 1, 2, 1, '2022-01-30 23:15:03', '2022-01-30 23:15:03');
/*!40000 ALTER TABLE `cash_registers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. categories
CREATE TABLE IF NOT EXISTS `categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`is_active` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.categories : ~3 rows (environ)
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` (`id`, `name`, `image`, `parent_id`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Ensemble', '20220107104119.jpg', NULL, 1, '2022-01-07 22:41:19', '2022-01-07 22:41:19'),
(2, '<NAME>', '20220107104130.jpg', NULL, 1, '2022-01-07 22:41:30', '2022-01-07 22:41:30'),
(3, 'Tunique', '20220107104142.jpg', NULL, 1, '2022-01-07 22:41:42', '2022-01-07 22:41:42');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
-- Listage de la structure de la table yovente. coupons
CREATE TABLE IF NOT EXISTS `coupons` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double NOT NULL,
`minimum_amount` double DEFAULT NULL,
`quantity` int(11) NOT NULL,
`used` int(11) NOT NULL,
`expired_date` date NOT NULL,
`user_id` int(11) NOT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.coupons : ~0 rows (environ)
/*!40000 ALTER TABLE `coupons` DISABLE KEYS */;
/*!40000 ALTER TABLE `coupons` ENABLE KEYS */;
-- Listage de la structure de la table yovente. currencies
CREATE TABLE IF NOT EXISTS `currencies` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`exchange_rate` double NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.currencies : ~0 rows (environ)
/*!40000 ALTER TABLE `currencies` DISABLE KEYS */;
INSERT INTO `currencies` (`id`, `name`, `code`, `exchange_rate`, `created_at`, `updated_at`) VALUES
(2, 'Dirham', 'DHS', 1, '2020-11-01 02:29:12', '2022-01-02 16:06:53');
/*!40000 ALTER TABLE `currencies` ENABLE KEYS */;
-- Listage de la structure de la table yovente. customers
CREATE TABLE IF NOT EXISTS `customers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`customer_group_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`created_by` int(11) NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`tax_no` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`deposit` double DEFAULT NULL,
`expense` double DEFAULT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.customers : ~4 rows (environ)
/*!40000 ALTER TABLE `customers` DISABLE KEYS */;
INSERT INTO `customers` (`id`, `customer_group_id`, `user_id`, `created_by`, `name`, `company_name`, `email`, `phone_number`, `tax_no`, `address`, `city`, `state`, `postal_code`, `country`, `deposit`, `expense`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 1, 24, 1, '<NAME>', 'Salma Company', '<EMAIL>', '0611111111', NULL, 'Adresse Salma BOUKJIJ', 'Benslimane', NULL, NULL, NULL, NULL, NULL, 1, '2022-01-07 22:01:16', '2022-01-15 21:13:17'),
(2, 1, 25, 1, '<NAME>', 'Rim Company', '<EMAIL>', '0622222222', NULL, 'Adresse Salma BOUKJIJ', 'Benslimane', NULL, NULL, NULL, NULL, NULL, 1, '2022-01-30 19:58:16', '2022-01-30 19:58:16'),
(3, 1, NULL, 23, '<NAME>', 'Faty Company', '<EMAIL>', '0699999999', NULL, 'Adresse Faty BOUKJIJ', 'Benslimane', NULL, NULL, NULL, NULL, NULL, 1, '2022-01-31 11:20:09', '2022-01-31 11:21:56'),
(4, 1, NULL, 23, 'Tarik BOUKJIJ', 'Tarik Company', '<EMAIL>', '0700000000', NULL, 'Adresse Tarik BOUKJIJ', 'Meknès', NULL, NULL, NULL, NULL, NULL, 1, '2022-02-02 11:20:05', '2022-02-02 11:23:58');
/*!40000 ALTER TABLE `customers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. customer_groups
CREATE TABLE IF NOT EXISTS `customer_groups` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`percentage` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.customer_groups : ~0 rows (environ)
/*!40000 ALTER TABLE `customer_groups` DISABLE KEYS */;
INSERT INTO `customer_groups` (`id`, `name`, `percentage`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Global', '0', 1, '2022-01-07 21:55:51', '2022-01-07 21:55:51');
/*!40000 ALTER TABLE `customer_groups` ENABLE KEYS */;
-- Listage de la structure de la table yovente. deliveries
CREATE TABLE IF NOT EXISTS `deliveries` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sale_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`sold_by` int(11) DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`packing` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`pickup` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivering` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivered` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`delivered_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`recieved_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`note` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.deliveries : ~0 rows (environ)
/*!40000 ALTER TABLE `deliveries` DISABLE KEYS */;
/*!40000 ALTER TABLE `deliveries` ENABLE KEYS */;
-- Listage de la structure de la table yovente. departments
CREATE TABLE IF NOT EXISTS `departments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.departments : ~0 rows (environ)
/*!40000 ALTER TABLE `departments` DISABLE KEYS */;
/*!40000 ALTER TABLE `departments` ENABLE KEYS */;
-- Listage de la structure de la table yovente. deposits
CREATE TABLE IF NOT EXISTS `deposits` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`amount` double NOT NULL,
`customer_id` int(11) NOT NULL,
`user_id` int(11) NOT 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;
-- Listage des données de la table yovente.deposits : ~0 rows (environ)
/*!40000 ALTER TABLE `deposits` DISABLE KEYS */;
/*!40000 ALTER TABLE `deposits` ENABLE KEYS */;
-- Listage de la structure de la table yovente. employees
CREATE TABLE IF NOT EXISTS `employees` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`department_id` int(11) NOT NULL,
`user_id` int(11) DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.employees : ~0 rows (environ)
/*!40000 ALTER TABLE `employees` DISABLE KEYS */;
/*!40000 ALTER TABLE `employees` ENABLE KEYS */;
-- Listage de la structure de la table yovente. expenses
CREATE TABLE IF NOT EXISTS `expenses` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`expense_category_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`cash_register_id` int(11) DEFAULT NULL,
`amount` double NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`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;
-- Listage des données de la table yovente.expenses : ~0 rows (environ)
/*!40000 ALTER TABLE `expenses` DISABLE KEYS */;
INSERT INTO `expenses` (`id`, `reference_no`, `expense_category_id`, `warehouse_id`, `account_id`, `user_id`, `cash_register_id`, `amount`, `note`, `created_at`, `updated_at`) VALUES
(1, 'er-20220203-103830', 1, 2, 1, 1, 3, 200, NULL, '2022-02-03 10:38:30', '2022-02-03 10:38:30');
/*!40000 ALTER TABLE `expenses` ENABLE KEYS */;
-- Listage de la structure de la table yovente. expense_categories
CREATE TABLE IF NOT EXISTS `expense_categories` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.expense_categories : ~0 rows (environ)
/*!40000 ALTER TABLE `expense_categories` DISABLE KEYS */;
INSERT INTO `expense_categories` (`id`, `code`, `name`, `is_active`, `created_at`, `updated_at`) VALUES
(1, '69089410', 'Carburant', 1, '2022-02-03 10:38:05', '2022-02-03 10:38:05');
/*!40000 ALTER TABLE `expense_categories` ENABLE KEYS */;
-- Listage de la structure de la table yovente. failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.failed_jobs : ~0 rows (environ)
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
-- Listage de la structure de la table yovente. general_settings
CREATE TABLE IF NOT EXISTS `general_settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`site_title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`site_logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`livraison` int(11) NOT NULL,
`min_withdraw` int(11) NOT NULL,
`staff_access` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`date_format` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`developed_by` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`invoice_format` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`state` int(11) DEFAULT NULL,
`theme` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`currency_position` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.general_settings : ~0 rows (environ)
/*!40000 ALTER TABLE `general_settings` DISABLE KEYS */;
INSERT INTO `general_settings` (`id`, `site_title`, `site_logo`, `currency`, `livraison`, `min_withdraw`, `staff_access`, `date_format`, `developed_by`, `invoice_format`, `state`, `theme`, `created_at`, `updated_at`, `currency_position`) VALUES
(1, 'YoVente', '20220102040718.png', '2', 50, 500, 'own', 'd-m-Y', 'T@R!K', 'standard', 1, 'default.css', '2018-07-06 07:13:11', '2022-02-03 09:55:59', 'suffix');
/*!40000 ALTER TABLE `general_settings` ENABLE KEYS */;
-- Listage de la structure de la table yovente. gift_cards
CREATE TABLE IF NOT EXISTS `gift_cards` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`card_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`amount` double NOT NULL,
`expense` double NOT NULL,
`customer_id` int(11) DEFAULT NULL,
`user_id` int(11) DEFAULT NULL,
`expired_date` date DEFAULT NULL,
`created_by` int(11) NOT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.gift_cards : ~0 rows (environ)
/*!40000 ALTER TABLE `gift_cards` DISABLE KEYS */;
/*!40000 ALTER TABLE `gift_cards` ENABLE KEYS */;
-- Listage de la structure de la table yovente. gift_card_recharges
CREATE TABLE IF NOT EXISTS `gift_card_recharges` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`gift_card_id` int(11) NOT NULL,
`amount` double NOT NULL,
`user_id` int(11) NOT 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;
-- Listage des données de la table yovente.gift_card_recharges : ~0 rows (environ)
/*!40000 ALTER TABLE `gift_card_recharges` DISABLE KEYS */;
/*!40000 ALTER TABLE `gift_card_recharges` ENABLE KEYS */;
-- Listage de la structure de la table yovente. holidays
CREATE TABLE IF NOT EXISTS `holidays` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL,
`from_date` date NOT NULL,
`to_date` date NOT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`is_approved` tinyint(1) NOT 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;
-- Listage des données de la table yovente.holidays : ~0 rows (environ)
/*!40000 ALTER TABLE `holidays` DISABLE KEYS */;
/*!40000 ALTER TABLE `holidays` ENABLE KEYS */;
-- Listage de la structure de la table yovente. hrm_settings
CREATE TABLE IF NOT EXISTS `hrm_settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`checkin` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`checkout` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.hrm_settings : ~0 rows (environ)
/*!40000 ALTER TABLE `hrm_settings` DISABLE KEYS */;
/*!40000 ALTER TABLE `hrm_settings` ENABLE KEYS */;
-- Listage de la structure de la table yovente. languages
CREATE TABLE IF NOT EXISTS `languages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.languages : ~0 rows (environ)
/*!40000 ALTER TABLE `languages` DISABLE KEYS */;
INSERT INTO `languages` (`id`, `code`, `created_at`, `updated_at`) VALUES
(1, 'en', '2018-07-07 23:59:17', '2019-12-24 18:34:20');
/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
-- Listage de la structure de la table yovente. migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=154 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.migrations : ~130 rows (environ)
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
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, '2018_02_17_060412_create_categories_table', 1),
(4, '2018_02_20_035727_create_brands_table', 1),
(5, '2018_02_25_100635_create_suppliers_table', 1),
(6, '2018_02_27_101619_create_warehouse_table', 1),
(7, '2018_03_03_040448_create_units_table', 1),
(8, '2018_03_04_041317_create_taxes_table', 1),
(9, '2018_03_10_061915_create_customer_groups_table', 1),
(10, '2018_03_10_090534_create_customers_table', 1),
(11, '2018_03_11_095547_create_billers_table', 1),
(12, '2018_04_05_054401_create_products_table', 1),
(13, '2018_04_06_133606_create_purchases_table', 1),
(14, '2018_04_06_154600_create_product_purchases_table', 1),
(15, '2018_04_06_154915_create_product_warhouse_table', 1),
(16, '2018_04_10_085927_create_sales_table', 1),
(17, '2018_04_10_090133_create_product_sales_table', 1),
(18, '2018_04_10_090254_create_payments_table', 1),
(19, '2018_04_10_090341_create_payment_with_cheque_table', 1),
(20, '2018_04_10_090509_create_payment_with_credit_card_table', 1),
(21, '2018_04_13_121436_create_quotation_table', 1),
(22, '2018_04_13_122324_create_product_quotation_table', 1),
(23, '2018_04_14_121802_create_transfers_table', 1),
(24, '2018_04_14_121913_create_product_transfer_table', 1),
(25, '2018_05_13_082847_add_payment_id_and_change_sale_id_to_payments_table', 2),
(26, '2018_05_13_090906_change_customer_id_to_payment_with_credit_card_table', 3),
(27, '2018_05_20_054532_create_adjustments_table', 4),
(28, '2018_05_20_054859_create_product_adjustments_table', 4),
(29, '2018_05_21_163419_create_returns_table', 5),
(30, '2018_05_21_163443_create_product_returns_table', 5),
(31, '2018_06_02_050905_create_roles_table', 6),
(32, '2018_06_02_073430_add_columns_to_users_table', 7),
(33, '2018_06_03_053738_create_permission_tables', 8),
(36, '2018_06_21_063736_create_pos_setting_table', 9),
(37, '2018_06_21_094155_add_user_id_to_sales_table', 10),
(38, '2018_06_21_101529_add_user_id_to_purchases_table', 11),
(39, '2018_06_21_103512_add_user_id_to_transfers_table', 12),
(40, '2018_06_23_061058_add_user_id_to_quotations_table', 13),
(41, '2018_06_23_082427_add_is_deleted_to_users_table', 14),
(42, '2018_06_25_043308_change_email_to_users_table', 15),
(43, '2018_07_06_115449_create_general_settings_table', 16),
(44, '2018_07_08_043944_create_languages_table', 17),
(45, '2018_07_11_102144_add_user_id_to_returns_table', 18),
(46, '2018_07_11_102334_add_user_id_to_payments_table', 18),
(47, '2018_07_22_130541_add_digital_to_products_table', 19),
(49, '2018_07_24_154250_create_deliveries_table', 20),
(50, '2018_08_16_053336_create_expense_categories_table', 21),
(51, '2018_08_17_115415_create_expenses_table', 22),
(55, '2018_08_18_050418_create_gift_cards_table', 23),
(56, '2018_08_19_063119_create_payment_with_gift_card_table', 24),
(57, '2018_08_25_042333_create_gift_card_recharges_table', 25),
(58, '2018_08_25_101354_add_deposit_expense_to_customers_table', 26),
(59, '2018_08_26_043801_create_deposits_table', 27),
(60, '2018_09_02_044042_add_keybord_active_to_pos_setting_table', 28),
(61, '2018_09_09_092713_create_payment_with_paypal_table', 29),
(62, '2018_09_10_051254_add_currency_to_general_settings_table', 30),
(63, '2018_10_22_084118_add_biller_and_store_id_to_users_table', 31),
(65, '2018_10_26_034927_create_coupons_table', 32),
(66, '2018_10_27_090857_add_coupon_to_sales_table', 33),
(67, '2018_11_07_070155_add_currency_position_to_general_settings_table', 34),
(68, '2018_11_19_094650_add_combo_to_products_table', 35),
(69, '2018_12_09_043712_create_accounts_table', 36),
(70, '2018_12_17_112253_add_is_default_to_accounts_table', 37),
(71, '2018_12_19_103941_add_account_id_to_payments_table', 38),
(72, '2018_12_20_065900_add_account_id_to_expenses_table', 39),
(73, '2018_12_20_082753_add_account_id_to_returns_table', 40),
(74, '2018_12_26_064330_create_return_purchases_table', 41),
(75, '2018_12_26_144210_create_purchase_product_return_table', 42),
(76, '2018_12_26_144708_create_purchase_product_return_table', 43),
(77, '2018_12_27_110018_create_departments_table', 44),
(78, '2018_12_30_054844_create_employees_table', 45),
(79, '2018_12_31_125210_create_payrolls_table', 46),
(80, '2018_12_31_150446_add_department_id_to_employees_table', 47),
(81, '2019_01_01_062708_add_user_id_to_expenses_table', 48),
(82, '2019_01_02_075644_create_hrm_settings_table', 49),
(83, '2019_01_02_090334_create_attendances_table', 50),
(84, '2019_01_27_160956_add_three_columns_to_general_settings_table', 51),
(85, '2019_02_15_183303_create_stock_counts_table', 52),
(86, '2019_02_17_101604_add_is_adjusted_to_stock_counts_table', 53),
(87, '2019_04_13_101707_add_tax_no_to_customers_table', 54),
(89, '2019_10_14_111455_create_holidays_table', 55),
(90, '2019_11_13_145619_add_is_variant_to_products_table', 56),
(91, '2019_11_13_150206_create_product_variants_table', 57),
(92, '2019_11_13_153828_create_variants_table', 57),
(93, '2019_11_25_134041_add_qty_to_product_variants_table', 58),
(94, '2019_11_25_134922_add_variant_id_to_product_purchases_table', 58),
(95, '2019_11_25_145341_add_variant_id_to_product_warehouse_table', 58),
(96, '2019_11_29_182201_add_variant_id_to_product_sales_table', 59),
(97, '2019_12_04_121311_add_variant_id_to_product_quotation_table', 60),
(98, '2019_12_05_123802_add_variant_id_to_product_transfer_table', 61),
(100, '2019_12_08_114954_add_variant_id_to_product_returns_table', 62),
(101, '2019_12_08_203146_add_variant_id_to_purchase_product_return_table', 63),
(102, '2020_02_28_103340_create_money_transfers_table', 64),
(103, '2020_07_01_193151_add_image_to_categories_table', 65),
(105, '2020_09_26_130426_add_user_id_to_deliveries_table', 66),
(107, '2020_10_11_125457_create_cash_registers_table', 67),
(108, '2020_10_13_155019_add_cash_register_id_to_sales_table', 68),
(109, '2020_10_13_172624_add_cash_register_id_to_returns_table', 69),
(110, '2020_10_17_212338_add_cash_register_id_to_payments_table', 70),
(111, '2020_10_18_124200_add_cash_register_id_to_expenses_table', 71),
(112, '2020_10_21_121632_add_developed_by_to_general_settings_table', 72),
(113, '2019_08_19_000000_create_failed_jobs_table', 73),
(114, '2020_10_30_135557_create_notifications_table', 73),
(115, '2020_11_01_044954_create_currencies_table', 74),
(116, '2020_11_01_140736_add_price_to_product_warehouse_table', 75),
(117, '2020_11_02_050633_add_is_diff_price_to_products_table', 76),
(118, '2020_11_09_055222_add_user_id_to_customers_table', 77),
(119, '2020_11_17_054806_add_invoice_format_to_general_settings_table', 78),
(120, '2021_02_10_074859_add_variant_id_to_product_adjustments_table', 79),
(121, '2021_03_07_093606_create_product_batches_table', 80),
(122, '2021_03_07_093759_add_product_batch_id_to_product_warehouse_table', 80),
(123, '2021_03_07_093900_add_product_batch_id_to_product_purchases_table', 80),
(124, '2021_03_11_132603_add_product_batch_id_to_product_sales_table', 81),
(127, '2021_03_25_125421_add_is_batch_to_products_table', 82),
(128, '2021_05_19_120127_add_product_batch_id_to_product_returns_table', 82),
(130, '2021_05_22_105611_add_product_batch_id_to_purchase_product_return_table', 83),
(131, '2021_05_23_124848_add_product_batch_id_to_product_transfer_table', 84),
(132, '2021_05_26_153106_add_product_batch_id_to_product_quotation_table', 85),
(134, '2022_01_03_205841_add_livraison_to_general_settings_table', 86),
(135, '2022_01_06_181753_add_livraison_to_sales_table', 87),
(136, '2022_01_06_182916_add_original_price_to_product_sales_table', 88),
(142, '2022_01_16_181335_add_packing_delivering_delivered_to_deliveries_table', 89),
(143, '2022_01_31_113821_add_fullname_to_users_table', 90),
(144, '2022_02_02_095123_add_bank_settings_to_users_table', 91),
(146, '2022_02_02_105659_add_created_by_to_customers_table', 92),
(148, '2022_02_03_093218_add_min_withdraw_to_general_settings_table', 93),
(149, '2022_02_03_101436_create_withdraws_table', 94),
(150, '2022_02_04_174247_rename_withdraws_table', 95),
(152, '2022_02_04_212528_add_is_paid_to_withdrawals_table', 96),
(153, '2022_02_09_202841_add_is_valide_to_sales_table', 97);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Listage de la structure de la table yovente. money_transfers
CREATE TABLE IF NOT EXISTS `money_transfers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`from_account_id` int(11) NOT NULL,
`to_account_id` int(11) NOT NULL,
`amount` double NOT 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;
-- Listage des données de la table yovente.money_transfers : ~0 rows (environ)
/*!40000 ALTER TABLE `money_transfers` DISABLE KEYS */;
/*!40000 ALTER TABLE `money_transfers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. notifications
CREATE TABLE IF NOT EXISTS `notifications` (
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`notifiable_id` bigint(20) unsigned NOT NULL,
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
`read_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.notifications : ~0 rows (environ)
/*!40000 ALTER TABLE `notifications` DISABLE KEYS */;
/*!40000 ALTER TABLE `notifications` ENABLE KEYS */;
-- Listage de la structure de la table yovente. password_resets
CREATE TABLE IF NOT EXISTS `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.password_resets : ~0 rows (environ)
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payments
CREATE TABLE IF NOT EXISTS `payments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`payment_reference` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`purchase_id` int(11) DEFAULT NULL,
`sale_id` int(11) DEFAULT NULL,
`cash_register_id` int(11) DEFAULT NULL,
`account_id` int(11) DEFAULT NULL,
`amount` double NOT NULL,
`change` double NOT NULL,
`paying_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payment_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.payments : ~2 rows (environ)
/*!40000 ALTER TABLE `payments` DISABLE KEYS */;
INSERT INTO `payments` (`id`, `payment_reference`, `user_id`, `purchase_id`, `sale_id`, `cash_register_id`, `account_id`, `amount`, `change`, `paying_method`, `payment_note`, `created_at`, `updated_at`) VALUES
(1, 'ppr-20220107-113448', 1, 1, NULL, NULL, 1, 1750, 0, 'Cash', NULL, '2022-01-07 23:34:48', '2022-01-07 23:34:48'),
(2, 'ppr-20220108-013940', 1, 2, NULL, NULL, 1, 3600, 0, 'Cash', NULL, '2022-01-08 13:39:40', '2022-01-08 13:39:40');
/*!40000 ALTER TABLE `payments` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payment_with_cheque
CREATE TABLE IF NOT EXISTS `payment_with_cheque` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`cheque_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.payment_with_cheque : ~0 rows (environ)
/*!40000 ALTER TABLE `payment_with_cheque` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_with_cheque` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payment_with_credit_card
CREATE TABLE IF NOT EXISTS `payment_with_credit_card` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`customer_id` int(11) DEFAULT NULL,
`customer_stripe_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`charge_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.payment_with_credit_card : ~0 rows (environ)
/*!40000 ALTER TABLE `payment_with_credit_card` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_with_credit_card` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payment_with_gift_card
CREATE TABLE IF NOT EXISTS `payment_with_gift_card` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`gift_card_id` int(11) NOT 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;
-- Listage des données de la table yovente.payment_with_gift_card : ~0 rows (environ)
/*!40000 ALTER TABLE `payment_with_gift_card` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_with_gift_card` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payment_with_paypal
CREATE TABLE IF NOT EXISTS `payment_with_paypal` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`payment_id` int(11) NOT NULL,
`transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.payment_with_paypal : ~0 rows (environ)
/*!40000 ALTER TABLE `payment_with_paypal` DISABLE KEYS */;
/*!40000 ALTER TABLE `payment_with_paypal` ENABLE KEYS */;
-- Listage de la structure de la table yovente. payrolls
CREATE TABLE IF NOT EXISTS `payrolls` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`employee_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`amount` double NOT NULL,
`paying_method` varchar(191) COLLATE utf8mb4_unicode_ci NOT 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;
-- Listage des données de la table yovente.payrolls : ~0 rows (environ)
/*!40000 ALTER TABLE `payrolls` DISABLE KEYS */;
/*!40000 ALTER TABLE `payrolls` ENABLE KEYS */;
-- Listage de la structure de la table yovente. permissions
CREATE TABLE IF NOT EXISTS `permissions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=109 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.permissions : ~105 rows (environ)
/*!40000 ALTER TABLE `permissions` DISABLE KEYS */;
INSERT INTO `permissions` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(4, 'products-edit', 'web', '2018-06-03 02:00:09', '2018-06-03 02:00:09'),
(5, 'products-delete', 'web', '2018-06-03 23:54:22', '2018-06-03 23:54:22'),
(6, 'products-add', 'web', '2018-06-04 01:34:14', '2018-06-04 01:34:14'),
(7, 'products-index', 'web', '2018-06-04 04:34:27', '2018-06-04 04:34:27'),
(8, 'purchases-index', 'web', '2018-06-04 09:03:19', '2018-06-04 09:03:19'),
(9, 'purchases-add', 'web', '2018-06-04 09:12:25', '2018-06-04 09:12:25'),
(10, 'purchases-edit', 'web', '2018-06-04 10:47:36', '2018-06-04 10:47:36'),
(11, 'purchases-delete', 'web', '2018-06-04 10:47:36', '2018-06-04 10:47:36'),
(12, 'sales-index', 'web', '2018-06-04 11:49:08', '2018-06-04 11:49:08'),
(13, 'sales-add', 'web', '2018-06-04 11:49:52', '2018-06-04 11:49:52'),
(14, 'sales-edit', 'web', '2018-06-04 11:49:52', '2018-06-04 11:49:52'),
(15, 'sales-delete', 'web', '2018-06-04 11:49:53', '2018-06-04 11:49:53'),
(16, 'quotes-index', 'web', '2018-06-04 23:05:10', '2018-06-04 23:05:10'),
(17, 'quotes-add', 'web', '2018-06-04 23:05:10', '2018-06-04 23:05:10'),
(18, 'quotes-edit', 'web', '2018-06-04 23:05:10', '2018-06-04 23:05:10'),
(19, 'quotes-delete', 'web', '2018-06-04 23:05:10', '2018-06-04 23:05:10'),
(20, 'transfers-index', 'web', '2018-06-04 23:30:03', '2018-06-04 23:30:03'),
(21, 'transfers-add', 'web', '2018-06-04 23:30:03', '2018-06-04 23:30:03'),
(22, 'transfers-edit', 'web', '2018-06-04 23:30:03', '2018-06-04 23:30:03'),
(23, 'transfers-delete', 'web', '2018-06-04 23:30:03', '2018-06-04 23:30:03'),
(24, 'returns-index', 'web', '2018-06-04 23:50:24', '2018-06-04 23:50:24'),
(25, 'returns-add', 'web', '2018-06-04 23:50:24', '2018-06-04 23:50:24'),
(26, 'returns-edit', 'web', '2018-06-04 23:50:25', '2018-06-04 23:50:25'),
(27, 'returns-delete', 'web', '2018-06-04 23:50:25', '2018-06-04 23:50:25'),
(28, 'customers-index', 'web', '2018-06-05 00:15:54', '2018-06-05 00:15:54'),
(29, 'customers-add', 'web', '2018-06-05 00:15:55', '2018-06-05 00:15:55'),
(30, 'customers-edit', 'web', '2018-06-05 00:15:55', '2018-06-05 00:15:55'),
(31, 'customers-delete', 'web', '2018-06-05 00:15:55', '2018-06-05 00:15:55'),
(32, 'suppliers-index', 'web', '2018-06-05 00:40:12', '2018-06-05 00:40:12'),
(33, 'suppliers-add', 'web', '2018-06-05 00:40:12', '2018-06-05 00:40:12'),
(34, 'suppliers-edit', 'web', '2018-06-05 00:40:12', '2018-06-05 00:40:12'),
(35, 'suppliers-delete', 'web', '2018-06-05 00:40:12', '2018-06-05 00:40:12'),
(36, 'product-report', 'web', '2018-06-25 00:05:33', '2018-06-25 00:05:33'),
(37, 'purchase-report', 'web', '2018-06-25 00:24:56', '2018-06-25 00:24:56'),
(38, 'sale-report', 'web', '2018-06-25 00:33:13', '2018-06-25 00:33:13'),
(39, 'customer-report', 'web', '2018-06-25 00:36:51', '2018-06-25 00:36:51'),
(40, 'due-report', 'web', '2018-06-25 00:39:52', '2018-06-25 00:39:52'),
(41, 'users-index', 'web', '2018-06-25 01:00:10', '2018-06-25 01:00:10'),
(42, 'users-add', 'web', '2018-06-25 01:00:10', '2018-06-25 01:00:10'),
(43, 'users-edit', 'web', '2018-06-25 01:01:30', '2018-06-25 01:01:30'),
(44, 'users-delete', 'web', '2018-06-25 01:01:30', '2018-06-25 01:01:30'),
(45, 'profit-loss', 'web', '2018-07-14 22:50:05', '2018-07-14 22:50:05'),
(46, 'best-seller', 'web', '2018-07-14 23:01:38', '2018-07-14 23:01:38'),
(47, 'daily-sale', 'web', '2018-07-14 23:24:21', '2018-07-14 23:24:21'),
(48, 'monthly-sale', 'web', '2018-07-14 23:30:41', '2018-07-14 23:30:41'),
(49, 'daily-purchase', 'web', '2018-07-14 23:36:46', '2018-07-14 23:36:46'),
(50, 'monthly-purchase', 'web', '2018-07-14 23:48:17', '2018-07-14 23:48:17'),
(51, 'payment-report', 'web', '2018-07-15 00:10:41', '2018-07-15 00:10:41'),
(52, 'warehouse-stock-report', 'web', '2018-07-15 00:16:55', '2018-07-15 00:16:55'),
(53, 'product-qty-alert', 'web', '2018-07-15 00:33:21', '2018-07-15 00:33:21'),
(54, 'supplier-report', 'web', '2018-07-30 04:00:01', '2018-07-30 04:00:01'),
(55, 'expenses-index', 'web', '2018-09-05 02:07:10', '2018-09-05 02:07:10'),
(56, 'expenses-add', 'web', '2018-09-05 02:07:10', '2018-09-05 02:07:10'),
(57, 'expenses-edit', 'web', '2018-09-05 02:07:10', '2018-09-05 02:07:10'),
(58, 'expenses-delete', 'web', '2018-09-05 02:07:11', '2018-09-05 02:07:11'),
(59, 'general_setting', 'web', '2018-10-20 00:10:04', '2018-10-20 00:10:04'),
(60, 'mail_setting', 'web', '2018-10-20 00:10:04', '2018-10-20 00:10:04'),
(61, 'pos_setting', 'web', '2018-10-20 00:10:04', '2018-10-20 00:10:04'),
(62, 'hrm_setting', 'web', '2019-01-02 11:30:23', '2019-01-02 11:30:23'),
(63, 'purchase-return-index', 'web', '2019-01-02 22:45:14', '2019-01-02 22:45:14'),
(64, 'purchase-return-add', 'web', '2019-01-02 22:45:14', '2019-01-02 22:45:14'),
(65, 'purchase-return-edit', 'web', '2019-01-02 22:45:14', '2019-01-02 22:45:14'),
(66, 'purchase-return-delete', 'web', '2019-01-02 22:45:14', '2019-01-02 22:45:14'),
(67, 'account-index', 'web', '2019-01-02 23:06:13', '2019-01-02 23:06:13'),
(68, 'balance-sheet', 'web', '2019-01-02 23:06:14', '2019-01-02 23:06:14'),
(69, 'account-statement', 'web', '2019-01-02 23:06:14', '2019-01-02 23:06:14'),
(70, 'department', 'web', '2019-01-02 23:30:01', '2019-01-02 23:30:01'),
(71, 'attendance', 'web', '2019-01-02 23:30:01', '2019-01-02 23:30:01'),
(72, 'payroll', 'web', '2019-01-02 23:30:01', '2019-01-02 23:30:01'),
(73, 'employees-index', 'web', '2019-01-02 23:52:19', '2019-01-02 23:52:19'),
(74, 'employees-add', 'web', '2019-01-02 23:52:19', '2019-01-02 23:52:19'),
(75, 'employees-edit', 'web', '2019-01-02 23:52:19', '2019-01-02 23:52:19'),
(76, 'employees-delete', 'web', '2019-01-02 23:52:19', '2019-01-02 23:52:19'),
(77, 'user-report', 'web', '2019-01-16 07:48:18', '2019-01-16 07:48:18'),
(78, 'stock_count', 'web', '2019-02-17 11:32:01', '2019-02-17 11:32:01'),
(79, 'adjustment', 'web', '2019-02-17 11:32:02', '2019-02-17 11:32:02'),
(80, 'sms_setting', 'web', '2019-02-22 06:18:03', '2019-02-22 06:18:03'),
(81, 'create_sms', 'web', '2019-02-22 06:18:03', '2019-02-22 06:18:03'),
(82, 'print_barcode', 'web', '2019-03-07 06:02:19', '2019-03-07 06:02:19'),
(83, 'empty_database', 'web', '2019-03-07 06:02:19', '2019-03-07 06:02:19'),
(84, 'customer_group', 'web', '2019-03-07 06:37:15', '2019-03-07 06:37:15'),
(85, 'unit', 'web', '2019-03-07 06:37:15', '2019-03-07 06:37:15'),
(86, 'tax', 'web', '2019-03-07 06:37:15', '2019-03-07 06:37:15'),
(87, 'gift_card', 'web', '2019-03-07 07:29:38', '2019-03-07 07:29:38'),
(88, 'coupon', 'web', '2019-03-07 07:29:38', '2019-03-07 07:29:38'),
(89, 'holiday', 'web', '2019-10-19 09:57:15', '2019-10-19 09:57:15'),
(90, 'warehouse-report', 'web', '2019-10-22 07:00:23', '2019-10-22 07:00:23'),
(91, 'warehouse', 'web', '2020-02-26 07:47:32', '2020-02-26 07:47:32'),
(92, 'brand', 'web', '2020-02-26 07:59:59', '2020-02-26 07:59:59'),
(93, 'billers-index', 'web', '2020-02-26 08:11:15', '2020-02-26 08:11:15'),
(94, 'billers-add', 'web', '2020-02-26 08:11:15', '2020-02-26 08:11:15'),
(95, 'billers-edit', 'web', '2020-02-26 08:11:15', '2020-02-26 08:11:15'),
(96, 'billers-delete', 'web', '2020-02-26 08:11:15', '2020-02-26 08:11:15'),
(97, 'money-transfer', 'web', '2020-03-02 06:41:48', '2020-03-02 06:41:48'),
(98, 'category', 'web', '2020-07-13 13:13:16', '2020-07-13 13:13:16'),
(99, 'delivery', 'web', '2020-07-13 13:13:16', '2020-07-13 13:13:16'),
(100, 'send_notification', 'web', '2020-10-31 07:21:31', '2020-10-31 07:21:31'),
(101, 'today_sale', 'web', '2020-10-31 07:57:04', '2020-10-31 07:57:04'),
(102, 'today_profit', 'web', '2020-10-31 07:57:04', '2020-10-31 07:57:04'),
(103, 'currency', 'web', '2020-11-09 01:23:11', '2020-11-09 01:23:11'),
(104, 'backup_database', 'web', '2020-11-15 01:16:55', '2020-11-15 01:16:55'),
(105, 'withdraw-add', 'web', '2022-02-03 10:10:47', '2022-02-03 10:10:49'),
(106, 'withdraw-edit', 'web', '2022-02-03 10:10:51', '2022-02-03 10:10:52'),
(107, 'withdraw-index', 'web', '2022-02-03 10:11:09', '2022-02-03 10:11:11'),
(108, 'withdraw-delete', 'web', '2022-02-03 10:11:26', '2022-02-03 10:11:27');
/*!40000 ALTER TABLE `permissions` ENABLE KEYS */;
-- Listage de la structure de la table yovente. pos_setting
CREATE TABLE IF NOT EXISTS `pos_setting` (
`id` int(11) NOT NULL,
`customer_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`biller_id` int(11) NOT NULL,
`product_number` int(11) NOT NULL,
`keybord_active` tinyint(1) NOT NULL,
`stripe_public_key` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`stripe_secret_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
UNIQUE KEY `pos_setting_id_unique` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.pos_setting : ~0 rows (environ)
/*!40000 ALTER TABLE `pos_setting` DISABLE KEYS */;
INSERT INTO `pos_setting` (`id`, `customer_id`, `warehouse_id`, `biller_id`, `product_number`, `keybord_active`, `stripe_public_key`, `stripe_secret_key`, `created_at`, `updated_at`) VALUES
(1, 1, 1, 1, 3, 1, 'Stripe_Publishable_key', 'Stripe_Secret_key', '2022-01-07 23:32:23', '2022-01-07 23:32:23');
/*!40000 ALTER TABLE `pos_setting` ENABLE KEYS */;
-- Listage de la structure de la table yovente. products
CREATE TABLE IF NOT EXISTS `products` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`barcode_symbology` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`brand_id` int(11) DEFAULT NULL,
`category_id` int(11) NOT NULL,
`unit_id` int(11) NOT NULL,
`purchase_unit_id` int(11) NOT NULL,
`sale_unit_id` int(11) NOT NULL,
`cost` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`price` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`qty` double DEFAULT NULL,
`alert_quantity` double DEFAULT NULL,
`promotion` tinyint(4) DEFAULT NULL,
`promotion_price` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`starting_date` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_date` date DEFAULT NULL,
`tax_id` int(11) DEFAULT NULL,
`tax_method` int(11) DEFAULT NULL,
`image` longtext COLLATE utf8mb4_unicode_ci,
`file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_variant` tinyint(1) DEFAULT NULL,
`is_batch` tinyint(1) DEFAULT NULL,
`is_diffPrice` tinyint(1) DEFAULT NULL,
`featured` tinyint(4) DEFAULT NULL,
`product_list` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`qty_list` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`price_list` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_details` text COLLATE utf8mb4_unicode_ci,
`is_active` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.products : ~2 rows (environ)
/*!40000 ALTER TABLE `products` DISABLE KEYS */;
INSERT INTO `products` (`id`, `name`, `code`, `type`, `barcode_symbology`, `brand_id`, `category_id`, `unit_id`, `purchase_unit_id`, `sale_unit_id`, `cost`, `price`, `qty`, `alert_quantity`, `promotion`, `promotion_price`, `starting_date`, `last_date`, `tax_id`, `tax_method`, `image`, `file`, `is_variant`, `is_batch`, `is_diffPrice`, `featured`, `product_list`, `qty_list`, `price_list`, `product_details`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Product 1 Tunique', 'P-22-546', 'standard', 'C39', 4, 3, 1, 1, 1, '70', '150', 19, 10, NULL, NULL, NULL, NULL, NULL, NULL, '1641591753620robe-hijab-1.jpg,1641591753623robe-hijab-1-1.jpg', NULL, 1, NULL, 0, 0, NULL, NULL, NULL, '<p>Product Details Goes here !</p>', 1, '2022-01-07 22:42:53', '2022-02-08 21:34:00'),
(2, 'Product 2 Tunique', 'P-22-582', 'standard', 'C39', 2, 3, 1, 1, 1, '90', '190', 28, 10, NULL, NULL, NULL, NULL, NULL, NULL, '1641648820537z-desenliwebp.jpg', NULL, 1, NULL, 0, 0, NULL, NULL, NULL, '<p>Product Details Goes here !</p>', 1, '2022-01-08 13:34:13', '2022-02-09 22:28:11');
/*!40000 ALTER TABLE `products` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_adjustments
CREATE TABLE IF NOT EXISTS `product_adjustments` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`adjustment_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`action` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.product_adjustments : ~0 rows (environ)
/*!40000 ALTER TABLE `product_adjustments` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_adjustments` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_batches
CREATE TABLE IF NOT EXISTS `product_batches` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`batch_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`expired_date` date NOT NULL,
`qty` double NOT 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;
-- Listage des données de la table yovente.product_batches : ~0 rows (environ)
/*!40000 ALTER TABLE `product_batches` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_batches` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_purchases
CREATE TABLE IF NOT EXISTS `product_purchases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`purchase_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`recieved` double NOT NULL,
`purchase_unit_id` int(11) NOT NULL,
`net_unit_cost` double NOT NULL,
`discount` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=22 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.product_purchases : ~6 rows (environ)
/*!40000 ALTER TABLE `product_purchases` DISABLE KEYS */;
INSERT INTO `product_purchases` (`id`, `purchase_id`, `product_id`, `product_batch_id`, `variant_id`, `qty`, `recieved`, `purchase_unit_id`, `net_unit_cost`, `discount`, `tax_rate`, `tax`, `total`, `created_at`, `updated_at`) VALUES
(1, 1, 1, NULL, 3, 5, 5, 1, 70, 0, 0, 0, 350, '2022-01-07 23:33:32', '2022-01-07 23:33:32'),
(2, 1, 1, NULL, 1, 10, 10, 1, 70, 0, 0, 0, 700, '2022-01-07 23:33:32', '2022-01-07 23:33:32'),
(3, 1, 1, NULL, 5, 10, 10, 1, 70, 0, 0, 0, 700, '2022-01-07 23:33:32', '2022-01-07 23:33:32'),
(19, 2, 2, NULL, 2, 10, 10, 1, 90, 0, 0, 0, 900, '2022-01-31 00:20:59', '2022-01-31 00:20:59'),
(20, 2, 2, NULL, 1, 15, 15, 1, 90, 0, 0, 0, 1350, '2022-01-31 00:20:59', '2022-01-31 00:20:59'),
(21, 2, 2, NULL, 5, 15, 15, 1, 90, 0, 0, 0, 1350, '2022-01-31 00:20:59', '2022-01-31 00:20:59');
/*!40000 ALTER TABLE `product_purchases` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_quotation
CREATE TABLE IF NOT EXISTS `product_quotation` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`quotation_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`sale_unit_id` int(11) NOT NULL,
`net_unit_price` double NOT NULL,
`discount` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT 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;
-- Listage des données de la table yovente.product_quotation : ~0 rows (environ)
/*!40000 ALTER TABLE `product_quotation` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_quotation` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_returns
CREATE TABLE IF NOT EXISTS `product_returns` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`return_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`sale_unit_id` int(11) NOT NULL,
`net_unit_price` double NOT NULL,
`discount` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT 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;
-- Listage des données de la table yovente.product_returns : ~0 rows (environ)
/*!40000 ALTER TABLE `product_returns` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_returns` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_sales
CREATE TABLE IF NOT EXISTS `product_sales` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`sale_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`sale_unit_id` int(11) NOT NULL,
`net_unit_price` double NOT NULL,
`original_price` double NOT NULL,
`discount` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT 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;
-- Listage des données de la table yovente.product_sales : ~14 rows (environ)
/*!40000 ALTER TABLE `product_sales` DISABLE KEYS */;
INSERT INTO `product_sales` (`id`, `sale_id`, `product_id`, `product_batch_id`, `variant_id`, `qty`, `sale_unit_id`, `net_unit_price`, `original_price`, `discount`, `tax_rate`, `tax`, `total`, `created_at`, `updated_at`) VALUES
(1, 1, 2, NULL, 1, 1, 1, 330, 190, 0, 0, 0, 330, '2022-02-08 20:51:43', '2022-02-08 21:02:52'),
(2, 2, 2, NULL, 2, 1, 1, 300, 190, 0, 0, 0, 300, '2022-02-08 21:02:16', '2022-02-08 21:02:16'),
(3, 2, 2, NULL, 5, 2, 1, 350, 190, 0, 0, 0, 700, '2022-02-08 21:02:16', '2022-02-08 21:02:16'),
(4, 1, 2, NULL, 5, 1, 1, 370, 190, 0, 0, 0, 370, '2022-02-08 21:02:52', '2022-02-08 21:02:52'),
(5, 3, 2, NULL, 1, 1, 1, 350, 190, 0, 0, 0, 350, '2022-02-08 21:21:55', '2022-02-08 21:21:55'),
(7, 5, 1, NULL, 1, 2, 1, 300, 150, 0, 0, 0, 600, '2022-02-08 21:29:20', '2022-02-08 21:29:20'),
(8, 5, 2, NULL, 1, 1, 1, 350, 190, 0, 0, 0, 350, '2022-02-08 21:29:20', '2022-02-08 21:29:20'),
(9, 6, 1, NULL, 1, 1, 1, 300, 150, 0, 0, 0, 300, '2022-02-08 21:34:00', '2022-02-08 21:34:00'),
(10, 6, 1, NULL, 5, 1, 1, 300, 150, 0, 0, 0, 300, '2022-02-08 21:34:00', '2022-02-08 21:34:00'),
(11, 6, 2, NULL, 5, 1, 1, 350, 190, 0, 0, 0, 350, '2022-02-08 21:34:00', '2022-02-08 21:34:00'),
(12, 7, 2, NULL, 1, 1, 1, 290, 190, 0, 0, 0, 290, '2022-02-09 20:56:18', '2022-02-09 20:56:18'),
(13, 8, 2, NULL, 2, 1, 1, 480, 190, 0, 0, 0, 480, '2022-02-09 21:02:20', '2022-02-09 22:24:37'),
(14, 9, 2, NULL, 2, 1, 1, 400, 190, 0, 0, 0, 400, '2022-02-09 21:11:21', '2022-02-09 21:11:21'),
(15, 10, 2, NULL, 5, 1, 1, 500, 190, 0, 0, 0, 500, '2022-02-09 22:28:11', '2022-02-09 22:28:11');
/*!40000 ALTER TABLE `product_sales` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_transfer
CREATE TABLE IF NOT EXISTS `product_transfer` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`transfer_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`purchase_unit_id` int(11) NOT NULL,
`net_unit_cost` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT 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;
-- Listage des données de la table yovente.product_transfer : ~0 rows (environ)
/*!40000 ALTER TABLE `product_transfer` DISABLE KEYS */;
/*!40000 ALTER TABLE `product_transfer` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_variants
CREATE TABLE IF NOT EXISTS `product_variants` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL,
`variant_id` int(11) NOT NULL,
`position` int(11) NOT NULL,
`item_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`additional_price` double DEFAULT NULL,
`qty` double NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.product_variants : ~6 rows (environ)
/*!40000 ALTER TABLE `product_variants` DISABLE KEYS */;
INSERT INTO `product_variants` (`id`, `product_id`, `variant_id`, `position`, `item_code`, `additional_price`, `qty`, `created_at`, `updated_at`) VALUES
(9, 1, 1, 2, 'XL-P-22-546', NULL, 5, '2022-01-07 23:26:22', '2022-02-08 21:34:00'),
(10, 1, 5, 1, 'XXL-P-22-546', NULL, 9, '2022-01-07 23:26:22', '2022-02-08 21:34:00'),
(11, 1, 3, 3, 'M-P-22-546', NULL, 5, '2022-01-07 23:26:22', '2022-02-06 17:34:28'),
(12, 2, 5, 1, 'XXL-P-22-582', NULL, 10, '2022-01-08 13:34:13', '2022-02-09 22:28:11'),
(13, 2, 1, 2, 'XL-P-22-582', NULL, 11, '2022-01-08 13:34:13', '2022-02-09 20:56:18'),
(14, 2, 2, 3, 'L-P-22-582', NULL, 7, '2022-01-08 13:34:13', '2022-02-09 22:24:37');
/*!40000 ALTER TABLE `product_variants` ENABLE KEYS */;
-- Listage de la structure de la table yovente. product_warehouse
CREATE TABLE IF NOT EXISTS `product_warehouse` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`warehouse_id` int(11) NOT NULL,
`qty` double NOT NULL,
`price` double DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.product_warehouse : ~9 rows (environ)
/*!40000 ALTER TABLE `product_warehouse` DISABLE KEYS */;
INSERT INTO `product_warehouse` (`id`, `product_id`, `product_batch_id`, `variant_id`, `warehouse_id`, `qty`, `price`, `created_at`, `updated_at`) VALUES
(1, '1', NULL, 3, 1, 5, NULL, '2022-01-07 23:33:32', '2022-02-06 17:34:28'),
(2, '1', NULL, 1, 1, 7, NULL, '2022-01-07 23:33:32', '2022-02-08 21:34:00'),
(3, '1', NULL, 5, 1, 9, NULL, '2022-01-07 23:33:32', '2022-02-08 21:34:00'),
(7, '2', NULL, 2, 2, 7, NULL, '2022-01-31 00:07:19', '2022-02-09 22:24:37'),
(8, '2', NULL, 1, 2, 12, NULL, '2022-01-31 00:07:20', '2022-02-09 20:56:18'),
(9, '2', NULL, 5, 2, 11, NULL, '2022-01-31 00:07:20', '2022-02-09 22:28:11'),
(10, '2', NULL, 2, 1, 0, NULL, '2022-01-31 00:20:37', '2022-01-31 01:28:54'),
(11, '2', NULL, 1, 1, -1, NULL, '2022-01-31 00:20:37', '2022-02-08 21:29:20'),
(12, '2', NULL, 5, 1, -1, NULL, '2022-01-31 00:20:38', '2022-02-08 21:34:00');
/*!40000 ALTER TABLE `product_warehouse` ENABLE KEYS */;
-- Listage de la structure de la table yovente. purchases
CREATE TABLE IF NOT EXISTS `purchases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`supplier_id` int(11) DEFAULT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_discount` double NOT NULL,
`total_tax` double NOT NULL,
`total_cost` double NOT NULL,
`order_tax_rate` double DEFAULT NULL,
`order_tax` double DEFAULT NULL,
`order_discount` double DEFAULT NULL,
`shipping_cost` double DEFAULT NULL,
`grand_total` double NOT NULL,
`paid_amount` double NOT NULL,
`status` int(11) NOT NULL,
`payment_status` int(11) NOT NULL,
`document` varchar(191) 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 AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.purchases : ~2 rows (environ)
/*!40000 ALTER TABLE `purchases` DISABLE KEYS */;
INSERT INTO `purchases` (`id`, `reference_no`, `user_id`, `warehouse_id`, `supplier_id`, `item`, `total_qty`, `total_discount`, `total_tax`, `total_cost`, `order_tax_rate`, `order_tax`, `order_discount`, `shipping_cost`, `grand_total`, `paid_amount`, `status`, `payment_status`, `document`, `note`, `created_at`, `updated_at`) VALUES
(1, 'pr-20220107-113331', 1, 1, 1, 3, 25, 0, 0, 1750, 0, 0, NULL, NULL, 1750, 1750, 1, 2, NULL, NULL, '2022-01-07 23:33:31', '2022-01-07 23:34:48'),
(2, 'pr-20220108-013922', 1, 2, 1, 3, 40, 0, 0, 3600, 0, 0, 0, 0, 3600, 3600, 1, 2, NULL, NULL, '2022-01-08 13:39:22', '2022-01-31 00:20:59');
/*!40000 ALTER TABLE `purchases` ENABLE KEYS */;
-- Listage de la structure de la table yovente. purchase_product_return
CREATE TABLE IF NOT EXISTS `purchase_product_return` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`return_id` int(11) NOT NULL,
`product_id` int(11) NOT NULL,
`product_batch_id` int(11) DEFAULT NULL,
`variant_id` int(11) DEFAULT NULL,
`qty` double NOT NULL,
`purchase_unit_id` int(11) NOT NULL,
`net_unit_cost` double NOT NULL,
`discount` double NOT NULL,
`tax_rate` double NOT NULL,
`tax` double NOT NULL,
`total` double NOT 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;
-- Listage des données de la table yovente.purchase_product_return : ~0 rows (environ)
/*!40000 ALTER TABLE `purchase_product_return` DISABLE KEYS */;
/*!40000 ALTER TABLE `purchase_product_return` ENABLE KEYS */;
-- Listage de la structure de la table yovente. quotations
CREATE TABLE IF NOT EXISTS `quotations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`biller_id` int(11) NOT NULL,
`supplier_id` int(11) DEFAULT NULL,
`customer_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_discount` double NOT NULL,
`total_tax` double NOT NULL,
`total_price` double NOT NULL,
`order_tax_rate` double DEFAULT NULL,
`order_tax` double DEFAULT NULL,
`order_discount` double DEFAULT NULL,
`shipping_cost` double DEFAULT NULL,
`grand_total` double NOT NULL,
`quotation_status` int(11) NOT NULL,
`document` varchar(191) 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;
-- Listage des données de la table yovente.quotations : ~0 rows (environ)
/*!40000 ALTER TABLE `quotations` DISABLE KEYS */;
/*!40000 ALTER TABLE `quotations` ENABLE KEYS */;
-- Listage de la structure de la table yovente. returns
CREATE TABLE IF NOT EXISTS `returns` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`cash_register_id` int(11) DEFAULT NULL,
`customer_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`biller_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_discount` double NOT NULL,
`total_tax` double NOT NULL,
`total_price` double NOT NULL,
`order_tax_rate` double DEFAULT NULL,
`order_tax` double DEFAULT NULL,
`grand_total` double NOT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`return_note` text COLLATE utf8mb4_unicode_ci,
`staff_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;
-- Listage des données de la table yovente.returns : ~0 rows (environ)
/*!40000 ALTER TABLE `returns` DISABLE KEYS */;
/*!40000 ALTER TABLE `returns` ENABLE KEYS */;
-- Listage de la structure de la table yovente. return_purchases
CREATE TABLE IF NOT EXISTS `return_purchases` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`supplier_id` int(11) DEFAULT NULL,
`warehouse_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`account_id` int(11) NOT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_discount` double NOT NULL,
`total_tax` double NOT NULL,
`total_cost` double NOT NULL,
`order_tax_rate` double DEFAULT NULL,
`order_tax` double DEFAULT NULL,
`grand_total` double NOT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`return_note` text COLLATE utf8mb4_unicode_ci,
`staff_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;
-- Listage des données de la table yovente.return_purchases : ~0 rows (environ)
/*!40000 ALTER TABLE `return_purchases` DISABLE KEYS */;
/*!40000 ALTER TABLE `return_purchases` ENABLE KEYS */;
-- Listage de la structure de la table yovente. roles
CREATE TABLE IF NOT EXISTS `roles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) NOT 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;
-- Listage des données de la table yovente.roles : ~3 rows (environ)
/*!40000 ALTER TABLE `roles` DISABLE KEYS */;
INSERT INTO `roles` (`id`, `name`, `description`, `guard_name`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Admin', 'Administrateur du système', 'web', 1, '2018-06-02 00:46:44', '2022-01-07 21:39:04'),
(4, 'Vendeur', 'Rôle Vendeur', 'web', 1, '2018-06-02 01:05:27', '2022-01-07 21:38:33'),
(5, 'Client', 'Rôle Client', 'web', 1, '2020-11-05 07:43:16', '2022-01-07 21:38:48');
/*!40000 ALTER TABLE `roles` ENABLE KEYS */;
-- Listage de la structure de la table yovente. role_has_permissions
CREATE TABLE IF NOT EXISTS `role_has_permissions` (
`permission_id` int(10) unsigned NOT NULL,
`role_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`permission_id`,`role_id`),
KEY `role_has_permissions_role_id_foreign` (`role_id`),
CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.role_has_permissions : ~99 rows (environ)
/*!40000 ALTER TABLE `role_has_permissions` DISABLE KEYS */;
INSERT INTO `role_has_permissions` (`permission_id`, `role_id`) VALUES
(4, 1),
(5, 1),
(6, 1),
(7, 1),
(8, 1),
(9, 1),
(10, 1),
(11, 1),
(12, 1),
(13, 1),
(14, 1),
(15, 1),
(24, 1),
(25, 1),
(26, 1),
(27, 1),
(28, 1),
(29, 1),
(30, 1),
(31, 1),
(32, 1),
(33, 1),
(34, 1),
(35, 1),
(36, 1),
(37, 1),
(38, 1),
(39, 1),
(40, 1),
(41, 1),
(42, 1),
(43, 1),
(44, 1),
(45, 1),
(46, 1),
(47, 1),
(48, 1),
(49, 1),
(50, 1),
(51, 1),
(52, 1),
(53, 1),
(54, 1),
(55, 1),
(56, 1),
(57, 1),
(58, 1),
(59, 1),
(60, 1),
(61, 1),
(62, 1),
(63, 1),
(64, 1),
(65, 1),
(66, 1),
(67, 1),
(69, 1),
(77, 1),
(78, 1),
(79, 1),
(80, 1),
(81, 1),
(82, 1),
(83, 1),
(84, 1),
(85, 1),
(86, 1),
(87, 1),
(88, 1),
(90, 1),
(91, 1),
(92, 1),
(93, 1),
(94, 1),
(95, 1),
(96, 1),
(98, 1),
(99, 1),
(100, 1),
(101, 1),
(102, 1),
(103, 1),
(104, 1),
(105, 1),
(106, 1),
(107, 1),
(108, 1),
(7, 4),
(12, 4),
(13, 4),
(14, 4),
(24, 4),
(28, 4),
(29, 4),
(30, 4),
(99, 4),
(105, 4),
(106, 4),
(107, 4);
/*!40000 ALTER TABLE `role_has_permissions` ENABLE KEYS */;
-- Listage de la structure de la table yovente. sales
CREATE TABLE IF NOT EXISTS `sales` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`cash_register_id` int(11) DEFAULT NULL,
`customer_id` int(11) NOT NULL,
`warehouse_id` int(11) NOT NULL,
`biller_id` int(11) DEFAULT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_discount` double NOT NULL,
`total_tax` double NOT NULL,
`total_price` double NOT NULL,
`livraison` int(11) NOT NULL,
`grand_total` double NOT NULL,
`order_tax_rate` double DEFAULT NULL,
`order_tax` double DEFAULT NULL,
`order_discount` double DEFAULT NULL,
`coupon_id` int(11) DEFAULT NULL,
`coupon_discount` double DEFAULT NULL,
`shipping_cost` double DEFAULT NULL,
`sale_status` int(11) NOT NULL,
`payment_status` int(11) NOT NULL,
`is_valide` tinyint(1) DEFAULT NULL,
`document` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`paid_amount` double DEFAULT NULL,
`sale_note` text COLLATE utf8mb4_unicode_ci,
`staff_note` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.sales : ~9 rows (environ)
/*!40000 ALTER TABLE `sales` DISABLE KEYS */;
INSERT INTO `sales` (`id`, `reference_no`, `user_id`, `cash_register_id`, `customer_id`, `warehouse_id`, `biller_id`, `item`, `total_qty`, `total_discount`, `total_tax`, `total_price`, `livraison`, `grand_total`, `order_tax_rate`, `order_tax`, `order_discount`, `coupon_id`, `coupon_discount`, `shipping_cost`, `sale_status`, `payment_status`, `is_valide`, `document`, `paid_amount`, `sale_note`, `staff_note`, `created_at`, `updated_at`) VALUES
(1, 'vendeur-220208-205126', 23, NULL, 4, 2, 1, 2, 2, 0, 0, 700, 50, 700, 0, 0, 0, NULL, NULL, 0, 1, 2, 0, NULL, NULL, NULL, NULL, '2022-02-08 20:51:43', '2022-02-08 21:02:52'),
(2, 'tarik-220208-204935', 1, 3, 1, 2, 1, 2, 3, 0, 0, 1000, 0, 1000, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 0, NULL, NULL, NULL, NULL, '2022-02-08 21:02:16', '2022-02-08 21:02:16'),
(3, 'vendeur-220208-212109', 23, NULL, 4, 2, 1, 2, 2, 0, 0, 650, 50, 650, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 0, NULL, NULL, NULL, NULL, '2022-02-08 21:21:55', '2022-02-08 21:21:55'),
(5, 'vendeur-220208-212834', 23, 2, 3, 1, 1, 2, 3, 0, 0, 950, 50, 950, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 1, NULL, NULL, NULL, NULL, '2022-02-08 21:29:20', '2022-02-08 21:29:20'),
(6, 'tarik-220208-213320', 1, 1, 1, 1, 1, 3, 3, 0, 0, 950, 0, 950, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 0, NULL, NULL, NULL, NULL, '2022-02-08 21:34:00', '2022-02-08 21:34:00'),
(7, 'vendeur-220209-205553', 23, NULL, 3, 2, 1, 1, 1, 0, 0, 290, 50, 290, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 0, NULL, NULL, NULL, NULL, '2022-02-09 20:56:18', '2022-02-09 20:56:18'),
(8, 'vendeur-220209-210104', 23, NULL, 3, 2, 1, 1, 1, 0, 0, 480, 50, 480, 0, 0, 0, NULL, NULL, 0, 1, 2, 1, NULL, NULL, NULL, NULL, '2022-02-09 21:02:20', '2022-02-09 22:24:37'),
(9, 'vendeur-220209-211020', 23, NULL, 3, 2, 1, 1, 1, 0, 0, 400, 50, 400, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 1, NULL, NULL, NULL, NULL, '2022-02-09 21:11:20', '2022-02-09 21:11:20'),
(10, 'vendeur-220209-222721', 23, NULL, 3, 2, 1, 1, 1, 0, 0, 500, 50, 500, 0, 0, NULL, NULL, NULL, NULL, 1, 2, 1, NULL, NULL, NULL, NULL, '2022-02-09 22:28:11', '2022-02-09 22:28:11');
/*!40000 ALTER TABLE `sales` ENABLE KEYS */;
-- Listage de la structure de la table yovente. stock_counts
CREATE TABLE IF NOT EXISTS `stock_counts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`warehouse_id` int(11) NOT NULL,
`category_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`brand_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`user_id` int(11) NOT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`initial_file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`final_file` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`note` text COLLATE utf8mb4_unicode_ci,
`is_adjusted` tinyint(1) NOT 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;
-- Listage des données de la table yovente.stock_counts : ~0 rows (environ)
/*!40000 ALTER TABLE `stock_counts` DISABLE KEYS */;
/*!40000 ALTER TABLE `stock_counts` ENABLE KEYS */;
-- Listage de la structure de la table yovente. suppliers
CREATE TABLE IF NOT EXISTS `suppliers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`company_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`vat_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_number` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`city` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`state` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`postal_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`country` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.suppliers : ~0 rows (environ)
/*!40000 ALTER TABLE `suppliers` DISABLE KEYS */;
INSERT INTO `suppliers` (`id`, `name`, `image`, `company_name`, `vat_number`, `email`, `phone_number`, `address`, `city`, `state`, `postal_code`, `country`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'Supplier 1', NULL, 'Supplier 1 Company', NULL, '<EMAIL>', '0655555555', 'Adresse Supplier 1', 'Casablanca', NULL, NULL, NULL, 1, '2022-01-07 23:28:29', '2022-01-07 23:28:29');
/*!40000 ALTER TABLE `suppliers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. taxes
CREATE TABLE IF NOT EXISTS `taxes` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`rate` double NOT NULL,
`is_active` tinyint(1) 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;
-- Listage des données de la table yovente.taxes : ~0 rows (environ)
/*!40000 ALTER TABLE `taxes` DISABLE KEYS */;
/*!40000 ALTER TABLE `taxes` ENABLE KEYS */;
-- Listage de la structure de la table yovente. transfers
CREATE TABLE IF NOT EXISTS `transfers` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`status` int(11) NOT NULL,
`from_warehouse_id` int(11) NOT NULL,
`to_warehouse_id` int(11) NOT NULL,
`item` int(11) NOT NULL,
`total_qty` double NOT NULL,
`total_tax` double NOT NULL,
`total_cost` double NOT NULL,
`shipping_cost` double DEFAULT NULL,
`grand_total` double NOT NULL,
`document` varchar(191) 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;
-- Listage des données de la table yovente.transfers : ~0 rows (environ)
/*!40000 ALTER TABLE `transfers` DISABLE KEYS */;
/*!40000 ALTER TABLE `transfers` ENABLE KEYS */;
-- Listage de la structure de la table yovente. units
CREATE TABLE IF NOT EXISTS `units` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`unit_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`unit_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`base_unit` int(11) DEFAULT NULL,
`operator` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`operation_value` double DEFAULT NULL,
`is_active` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.units : ~3 rows (environ)
/*!40000 ALTER TABLE `units` DISABLE KEYS */;
INSERT INTO `units` (`id`, `unit_code`, `unit_name`, `base_unit`, `operator`, `operation_value`, `is_active`, `created_at`, `updated_at`) VALUES
(1, 'pce', 'Pièce', NULL, '*', 1, 1, '2022-01-07 21:57:28', '2022-01-07 21:57:28'),
(2, 'douzaine', 'Douzaine', 1, '*', 12, 1, '2022-01-09 17:19:14', '2022-01-09 17:19:14'),
(3, 'carton', 'Carton', 1, '*', 20, 1, '2022-01-09 17:19:28', '2022-01-09 17:19:28');
/*!40000 ALTER TABLE `units` ENABLE KEYS */;
-- Listage de la structure de la table yovente. users
CREATE TABLE IF NOT EXISTS `users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`rib` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bank_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`company_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`role_id` int(11) NOT NULL,
`biller_id` int(11) DEFAULT NULL,
`warehouse_id` int(11) DEFAULT NULL,
`is_active` tinyint(1) NOT NULL,
`is_deleted` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.users : ~8 rows (environ)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `name`, `first_name`, `last_name`, `email`, `rib`, `bank_name`, `password`, `remember_token`, `phone`, `company_name`, `role_id`, `biller_id`, `warehouse_id`, `is_active`, `is_deleted`, `created_at`, `updated_at`) VALUES
(1, 'Tarik', 'tarik', 'boukjij', '<EMAIL>', '3200009233890588399028340', 'AL BARID BANK', '$2y$10$HPt3Go.HX8PKm/9Tuh2h5uaW3yIVnf5qu9y.aWIv85AVZJbUU0slG', 'U1YfEqzBWlE2Wye9cAJhdu5iQI2SpdnHUlRjjlJHM9CdZTQr4DERZqoZeMZd', '0689385061', 'T@R!K', 1, NULL, NULL, 1, 0, '2018-06-02 04:24:15', '2022-02-02 10:39:11'),
(23, 'Vendeur', 'vendeur', 'vendeur', '<EMAIL>', '42084724572057208572457', 'ATTIJARI WAFA BANK', '$2y$10$ZpJbd7m8PzYsUguYOjJJzu9oE7YO/Z.9bB2HyVBR5PBew8XCoPBRW', NULL, '0633333333', NULL, 4, NULL, NULL, 1, 0, '2022-01-07 22:35:45', '2022-02-02 10:39:37'),
(24, 'Salma', 'salma', 'boukjijma', '<EMAIL>', '', '', '$2y$10$0e2hSyrAl2X1W2XqAdnvUOVGLPK8f8xZmLhT8ItTYdqedqe2VcJbq', NULL, '0611111111', 'Salma Company', 5, NULL, NULL, 0, 1, '2022-01-15 21:13:17', '2022-01-30 20:00:17'),
(25, 'rim', 'rim', 'boukjijm', '<EMAIL>', '', '', '$2y$10$u6iuPGz6DHP5EVI0BGWsjOcVYKAQ4jbHTYhrwd/x23RLlrru5qPTK', NULL, '0622222222', 'Rim Company', 5, NULL, NULL, 0, 1, '2022-01-30 19:57:46', '2022-01-30 20:00:03'),
(26, 'Vendeur1', 'vendeur1', 'vendeur1', '<EMAIL>', '', '', '$2y$10$Gk1VagRoo0AFv8xsZlOeT.4KEIu6um10ClY89DLokWCA1moANi3D2', NULL, '0688888888', NULL, 4, NULL, NULL, 1, 0, '2022-01-30 22:55:39', '2022-01-30 22:55:39'),
(27, 'faty1', 'faty', 'boukjijf', '<EMAIL>', '', '', '$2y$10$7vuIzRDHIpcCdYGEXwc/beOVE6R9/jdlI79Cj/1Hbf.x.Wy8cnJAO', NULL, '0612121212', NULL, 4, NULL, NULL, 1, 0, '2022-01-31 12:19:52', '2022-02-01 09:53:48'),
(28, 'nejjar', '<NAME>', 'nejjar', '<EMAIL>', NULL, NULL, '$2y$10$1vFI/whJVJENEzQFeS/7DekOnRkUK/UuZzGUq0rEHGdIYnBsmm3fy', NULL, '0615914789', NULL, 4, NULL, NULL, 0, 1, '2022-02-09 21:06:27', '2022-02-09 21:06:45'),
(29, 'nejjar', '<NAME>', 'nejjar', '<EMAIL>', NULL, NULL, '$2y$10$gN9XZ6W9/fF9I94FQcwVK.sG0tgtoX2F5kp8CA7JMyfFw.uRJUp0K', NULL, '0612345678', NULL, 1, NULL, NULL, 0, 0, '2022-02-09 21:07:20', '2022-02-09 21:07:20');
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
-- Listage de la structure de la table yovente. variants
CREATE TABLE IF NOT EXISTS `variants` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.variants : ~5 rows (environ)
/*!40000 ALTER TABLE `variants` DISABLE KEYS */;
INSERT INTO `variants` (`id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'XL', '2022-01-07 22:42:53', '2022-01-07 22:42:53'),
(2, 'L', '2022-01-07 22:42:53', '2022-01-07 22:42:53'),
(3, 'M', '2022-01-07 22:42:53', '2022-01-07 22:42:53'),
(4, 'S', '2022-01-07 22:42:53', '2022-01-07 22:42:53'),
(5, 'XXL', '2022-01-07 23:26:22', '2022-01-07 23:26:22');
/*!40000 ALTER TABLE `variants` ENABLE KEYS */;
-- Listage de la structure de la table yovente. warehouses
CREATE TABLE IF NOT EXISTS `warehouses` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`is_active` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.warehouses : ~2 rows (environ)
/*!40000 ALTER TABLE `warehouses` DISABLE KEYS */;
INSERT INTO `warehouses` (`id`, `name`, `phone`, `email`, `address`, `is_active`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '0600000000', '<EMAIL>', 'Adresse de l\'entrepôt de Benslimane', 1, '2022-01-07 21:55:19', '2022-01-07 21:55:19'),
(2, '<NAME>', '0611111111', '<EMAIL>', 'Adresse de l\'entrepôt de Fes', 1, '2022-01-30 22:45:51', '2022-01-30 23:03:28');
/*!40000 ALTER TABLE `warehouses` ENABLE KEYS */;
-- Listage de la structure de la table yovente. withdrawals
CREATE TABLE IF NOT EXISTS `withdrawals` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`reference_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`withdraw_amount` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`withdraw_note` text COLLATE utf8mb4_unicode_ci,
`is_valide` tinyint(1) DEFAULT NULL,
`is_paid` tinyint(1) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Listage des données de la table yovente.withdrawals : ~2 rows (environ)
/*!40000 ALTER TABLE `withdrawals` DISABLE KEYS */;
INSERT INTO `withdrawals` (`id`, `reference_no`, `user_id`, `withdraw_amount`, `withdraw_note`, `is_valide`, `is_paid`, `created_at`, `updated_at`) VALUES
(1, 'retrait-vendeur-220208-213419', 23, '500', 'This is a note to the administrator, please send it on Dollar...', 0, NULL, '2022-02-08 21:37:16', '2022-02-08 22:45:02'),
(2, 'retrait-vendeur-220208-214856', 23, '580', 'هذه ملاحظة للمسؤول ، يرجى إرسالها على الدولار ...', 0, NULL, '2022-02-08 21:49:39', '2022-02-08 22:45:43');
/*!40000 ALTER TABLE `withdrawals` 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) */;
|
<reponame>NoPony/CarClub<gh_stars>0
CREATE TABLE [dbo].[HeatAttachment]
(
[Id] BIGINT IDENTITY(1, 1) NOT NULL,
[HeatId] BIGINT NOT NULL,
[UploadIp] NVARCHAR(16) NULL,
[UploadUtc] DATETIMEOFFSET NULL,
[Title] NVARCHAR(256) NULL,
[Filename] NVARCHAR(128) NULL,
[Url] NVARCHAR(256) NULL,
[CreatedUtc] DATETIMEOFFSET NOT NULL,
[CreatedIp] NVARCHAR(32) NOT NULL,
[CreatedBy] NVARCHAR(128) NOT NULL,
[Updated] BIT NOT NULL CONSTRAINT [DF_HeatAttachment_Updated] DEFAULT (0),
[UpdatedMemberId] BIGINT NULL,
[UpdatedIp] NVARCHAR(32) NULL,
[UpdatedUtc] DATETIMEOFFSET NULL,
[UpdatedBy] NVARCHAR(128) NULL,
[Deleted] BIT NOT NULL CONSTRAINT [DF_HeatAttachment_Deleted] DEFAULT (0),
[DeletedMemberId] BIGINT NULL,
[DeletedIp] NVARCHAR(32) NULL,
[DeletedUtc] DATETIMEOFFSET NULL,
CONSTRAINT [PK_HeatAttachment] PRIMARY KEY CLUSTERED ([Id]),
CONSTRAINT [FK_HeatAttachment_Heat_HeatId] FOREIGN KEY ([HeatId]) REFERENCES [dbo].[Heat] ([Id])
);
GO
CREATE INDEX [IX_HeatId] ON [dbo].[HeatAttachment] ([HeatId]);
GO
|
<gh_stars>1-10
SET @sName = 'bx_channels'; |
--CREATE TABLESPACE dbindexes LOCATION '/var/lib/pgsql/indexes';
-- DROP INDEX clim_rs.idx_clim_center;
CREATE INDEX idx_clim_center_mth ON clim_rs.fut_clim_vars
USING btree
(
clim_center ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- DROP INDEX clim_rs.idx_mod_run;
CREATE INDEX idx_mod_run_mth ON clim_rs.fut_clim_vars
USING btree
(
mod ASC,
run ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- DROP INDEX clim_rs.idx_scenario;
CREATE INDEX idx_scenario_mth ON clim_rs.fut_clim_vars
USING btree
(
scenario ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- DROP INDEX clim_rs.idx_var;
CREATE INDEX idx_var_mth ON clim_rs.fut_clim_vars
USING btree
(
var ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- DROP INDEX clim_rs.idx_var;
CREATE INDEX idx_yr_mth ON clim_rs.fut_clim_vars
USING btree
(
yr ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- DROP INDEX clim_rs.idx_var;
CREATE INDEX idx_mth ON clim_rs.fut_clim_vars
USING btree
(
mth ASC
)
TABLESPACE dbindexes;
-- ddl-end --
-- object: spatial_idx | type: INDEX --
-- DROP INDEX ouranos_dev.spatial_idx;
CREATE INDEX idx_spatial_mth ON clim_rs.fut_clim_vars
USING gist
(
st_convexhull(raster)
)
TABLESPACE dbindexes;
-- ddl-end --
|
<filename>Year 2/DBMS/7-StoredProceduresFunctions/Ten Most Expensive Products Procedure.sql
DELIMITER //
CREATE PROCEDURE `Ten Most Expensive Products`()
BEGIN
SELECT Products.ProductName AS TenMostExpensiveProducts, Products.UnitPrice
FROM Products
ORDER BY Products.UnitPrice DESC
LIMIT 10;
END;
//
DELIMITER ;
CALL `Ten Most Expensive Products`(); |
<reponame>kubinko/Kros.AspNetCore.BestPractices<filename>src/Services/Kros.Authorization.Api/SqlScripts/20190729001_RemoveAdminColumn.sql
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
GO
ALTER TABLE [dbo].[Users] DROP COLUMN [IsAdmin]
GO |
-- file:publication.sql ln:143 expect:true
RESET SESSION AUTHORIZATION
|
<filename>src/test/resources/sql/create_rule/5db20079.sql
-- file:rules.sql ln:622 expect:true
CREATE RULE shoelace_ins AS ON INSERT TO shoelace
DO INSTEAD
INSERT INTO shoelace_data VALUES (
NEW.sl_name,
NEW.sl_avail,
NEW.sl_color,
NEW.sl_len,
NEW.sl_unit)
|
<gh_stars>1-10
drop table if exists chen_material_info;
create table chen_material_info
(
material_id int auto_increment comment 'id'
primary key,
material_code varchar(30) null comment '商品编码',
material_name varchar(30) default '' null comment '商品名称',
type_id int(20) null comment '商品类型(type表)',
material_model varchar(32) default '' null comment '规格型号',
remark varchar(200) null comment '备注',
creat_time datetime null comment '创建时间',
unit char(30) null comment '计量单位',
stock char(30) null comment '仓库',
UNIQUE KEY `we` (`material_name`,`material_model`) USING BTREE
) engine = innodb
auto_increment = 1 comment = '商品信息表';
drop table if exists chen_material_in_main;
create table chen_material_in_main
(
in_main_id int auto_increment comment 'id'
primary key,
in_main_code varchar(30) null comment '入库单编码',
create_time datetime null comment '创建时间',
carriage decimal(24) null comment '运费',
tax_rate char null comment '税率',
tax_price decimal(24) null comment '税费',
total_price decimal(24) null comment '合计'
) engine = innodb
auto_increment = 1 comment = '入库主表';
drop table if exists chen_material_out_main;
create table chen_material_out_main
(
out_main_id int auto_increment comment 'id'
primary key,
out_main_code varchar(30) null comment '出库单编码',
create_time datetime null comment '创建时间',
carriage decimal(24) null comment '运费',
total_price decimal(24) null comment '合计价格(毛)',
total_profit decimal(24) null comment '本单利润'
) engine = innodb
auto_increment = 1 comment = '出库主表';
drop table if exists chen_material_out_detail;
create table chen_material_out_detail
(
out_detail_id int auto_increment comment 'id'
primary key,
material_id int null comment '商品名称',
out_main_code varchar(30) null comment '出库单编码',
stock_id int null comment '仓库',
create_time datetime null comment '创建时间',
out_num int(20) null comment '出库数量',
price decimal(24) null comment '单价',
total_price decimal(24) null comment '总价',
carriage decimal(24) null comment '运费',
unit char null comment '计量单位'
) engine = innodb
auto_increment = 1 comment = '出库从表';
drop table if exists chen_material_in_detail;
create table chen_material_in_detail
(
in_detail_id int auto_increment comment 'id'
primary key,
material_id int null comment '商品名称',
in_main_code varchar(30) null comment '入库单编码',
stock_id int null comment '仓库',
create_time datetime null comment '创建时间',
out_num int(20) null comment '出库数量',
price decimal(24) null comment '单价',
total_price decimal(24) null comment '总价',
tax_price decimal(24) null comment '税费',
carriage decimal(24) null comment '运费',
unit char null comment '计量单位'
) engine = innodb
auto_increment = 1 comment = '入库从表';
drop table if exists chen_stock_info;
create table chen_stock_info
(
info_id int auto_increment comment 'id'
primary key,
material_id int null comment '商品名称',
stock_id int null comment '仓库',
create_time datetime null comment '创建时间',
stock_number int(20) null comment '库存数量',
avg_price decimal(24) null comment '平均单价',
total_price decimal(24) null comment '库存总价',
low_price decimal(24) null comment '最低售价',
carriage decimal(24) null comment '运费',
unit char null comment '计量单位'
) engine = innodb
auto_increment = 1 comment = '库存信息表';
drop table if exists chen_material_type;
create table chen_material_type
(
type_id bigint auto_increment comment '产品id'
primary key,
parent_id bigint default 0 null comment '父产品id',
type_name varchar(30) default '' null comment '产品名称',
remark varchar(32) default '' null comment '备注',
status char default '0' null comment '产品状态(0正常 1停用)'
)engine = innodb
auto_increment = 1 comment '商品分类表';
|
<filename>CH-Common-Info/Активные процессы.sql
-- https://clickhouse.tech/docs/en/operations/system-tables/processes/
select
user,
query_id,
address,
port,
initial_user,
initial_query_id,
initial_address,
initial_port,
interface,
os_user,
client_hostname,
client_name,
client_revision,
client_version_major,
client_version_minor,
client_version_patch,
http_method,
http_user_agent,
quota_key,
elapsed,
is_initial_query,
is_cancelled,
read_rows,
read_bytes,
total_rows_approx,
written_rows,
written_bytes,
memory_usage,
peak_memory_usage,
query,
thread_ids,
`ProfileEvents.Names`,
`ProfileEvents.Values`,
`Settings.Names`,
`Settings.Values`
from system.processes |
<filename>database/TransAction.SQL/dbo/Tables/TRA_IMAGE.sql
CREATE TABLE [dbo].[TRA_IMAGE]
(
[IMAGE_ID] INT NOT NULL IDENTITY,
[USER_ID] INT NULL,
[TEAM_ID] INT NULL,
[CAROUSEL] BIT NOT NULL DEFAULT 0,
[FILENAME] VARCHAR(1024) NOT NULL,
[FILESIZE] BIGINT NOT NULL,
[CONTENT_TYPE] VARCHAR(512) NOT NULL,
[DATA] VARBINARY(MAX) NOT NULL,
[WIDTH] INT NOT NULL,
[HEIGHT] INT NOT NULL,
[GUID] VARCHAR(36) NOT NULL,
[DB_CREATE_TIMESTAMP] DATETIME NOT NULL,
[DB_CREATE_USERID] VARCHAR(30) NOT NULL,
[DB_LAST_UPDATE_TIMESTAMP] DATETIME NOT NULL,
[DB_LAST_UPDATE_USERID] VARCHAR(30) NOT NULL,
[CONCURRENCY_CONTROL_NUMBER] BIGINT NOT NULL DEFAULT 1,
CONSTRAINT [PK_IMAGE] PRIMARY KEY CLUSTERED ([IMAGE_ID] ASC),
CONSTRAINT [TRA_IMAGE_USER] FOREIGN KEY ([USER_ID]) REFERENCES [TRA_USER]([USER_ID]),
CONSTRAINT [TRA_IMAGE_TEAM] FOREIGN KEY ([TEAM_ID]) REFERENCES [TRA_TEAM]([TEAM_ID])
)
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'User ID Foreign Key for identifying user profile images',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'USER_ID'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'Team ID Foreign Key for identifying team profile images',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'TEAM_ID'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'Binary data of the images',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'DATA'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'GUID for retrieving images',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'GUID'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'The date and time the record was created.',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'DB_CREATE_TIMESTAMP'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'The user or proxy account that created the record. ',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'DB_CREATE_USERID'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'The date and time the record was created or last updated.',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'DB_LAST_UPDATE_TIMESTAMP'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'The user or proxy account that created or last updated the record. ',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'DB_LAST_UPDATE_USERID'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'Image width in pixels',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'WIDTH'
GO
EXEC sp_addextendedproperty @name = N'MS_Description',
@value = N'Image height in pixels',
@level0type = N'SCHEMA',
@level0name = N'dbo',
@level1type = N'TABLE',
@level1name = N'TRA_IMAGE',
@level2type = N'COLUMN',
@level2name = N'HEIGHT'
GO
CREATE TRIGGER [dbo].[TRA_IMAGE_IS_U_TR]
ON [dbo].[TRA_IMAGE]
INSTEAD OF UPDATE
AS
BEGIN
SET NOCOUNT ON;
DECLARE @FAIL_COUNT INT;
SET @FAIL_COUNT = (
SELECT COUNT(*)
FROM TRA_IMAGE
JOIN inserted
ON TRA_IMAGE.IMAGE_ID = inserted.IMAGE_ID
WHERE TRA_IMAGE.CONCURRENCY_CONTROL_NUMBER + 1 != inserted.CONCURRENCY_CONTROL_NUMBER
)
IF(@FAIL_COUNT != 0)
BEGIN
RAISERROR('Concurrency Failure',16,10068);
RETURN
END
ELSE
BEGIN
UPDATE TRA_IMAGE
SET
TRA_IMAGE.[USER_ID] = inserted.[USER_ID],
TRA_IMAGE.[TEAM_ID] = inserted.[TEAM_ID],
TRA_IMAGE.[CAROUSEL] = inserted.[CAROUSEL],
TRA_IMAGE.[FILENAME] = inserted.[FILENAME],
TRA_IMAGE.[FILESIZE] = inserted.[FILESIZE],
TRA_IMAGE.[CONTENT_TYPE] = inserted.[CONTENT_TYPE],
TRA_IMAGE.[DATA] = inserted.[DATA],
TRA_IMAGE.[WIDTH] = inserted.[WIDTH],
TRA_IMAGE.[HEIGHT] = inserted.[HEIGHT],
TRA_IMAGE.[GUID] = inserted.[GUID],
TRA_IMAGE.DB_CREATE_TIMESTAMP = inserted.DB_CREATE_TIMESTAMP,
TRA_IMAGE.DB_CREATE_USERID = inserted.DB_CREATE_USERID,
TRA_IMAGE.DB_LAST_UPDATE_TIMESTAMP = CURRENT_TIMESTAMP,
TRA_IMAGE.DB_LAST_UPDATE_USERID = CURRENT_USER,
TRA_IMAGE.CONCURRENCY_CONTROL_NUMBER = inserted.CONCURRENCY_CONTROL_NUMBER
FROM TRA_IMAGE
INNER JOIN inserted
ON TRA_IMAGE.IMAGE_ID = inserted.IMAGE_ID;
END
END
GO
CREATE TRIGGER [dbo].[TRA_IMAGE_AS_I_TR]
ON [dbo].[TRA_IMAGE]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
UPDATE TRA_IMAGE
SET [DB_CREATE_TIMESTAMP] = CURRENT_TIMESTAMP
,[DB_CREATE_USERID] = CURRENT_USER
,[DB_LAST_UPDATE_TIMESTAMP] = CURRENT_TIMESTAMP
,[DB_LAST_UPDATE_USERID] = CURRENT_USER
,[CONCURRENCY_CONTROL_NUMBER] = 1
FROM inserted
WHERE TRA_IMAGE.IMAGE_ID = inserted.IMAGE_ID
END
|
<gh_stars>0
# --- Created by Ebean DDL
# To stop Ebean DDL generation, remove this comment and start using Evolutions
# --- !Ups
create table course (
c_id bigint not null,
c_name varchar(255),
c_par integer,
constraint pk_course primary key (c_id)
);
create sequence course_seq;
create table handicap (
hand_id integer auto_increment not null,
handvalue double,
category varchar(255),
total_rounds_qty integer,
date timestamp,
user_h_id bigint,
constraint uq_handicap_user_h_id unique (user_h_id),
constraint pk_handicap primary key (hand_id)
);
create table hole (
h_id integer not null,
h_number integer,
h_par integer,
diff_index integer,
score integer,
course_o_c_id bigint,
constraint pk_hole primary key (h_id)
);
create sequence hole_seq;
create table round (
r_id bigint auto_increment not null,
course_r_c_id bigint,
user_r_id bigint,
gross_score integer,
handicap double,
round_date timestamp,
constraint pk_round primary key (r_id)
);
create table user (
usertype varchar(31) not null,
id bigint auto_increment not null,
loginname varchar(255),
username varchar(255),
email varchar(255),
password varchar(255),
constraint pk_user primary key (id)
);
alter table handicap add constraint fk_handicap_user_h_id foreign key (user_h_id) references user (id) on delete restrict on update restrict;
alter table hole add constraint fk_hole_course_o_c_id foreign key (course_o_c_id) references course (c_id) on delete restrict on update restrict;
create index ix_hole_course_o_c_id on hole (course_o_c_id);
alter table round add constraint fk_round_course_r_c_id foreign key (course_r_c_id) references course (c_id) on delete restrict on update restrict;
create index ix_round_course_r_c_id on round (course_r_c_id);
alter table round add constraint fk_round_user_r_id foreign key (user_r_id) references user (id) on delete restrict on update restrict;
create index ix_round_user_r_id on round (user_r_id);
# --- !Downs
alter table handicap drop constraint if exists fk_handicap_user_h_id;
alter table hole drop constraint if exists fk_hole_course_o_c_id;
drop index if exists ix_hole_course_o_c_id;
alter table round drop constraint if exists fk_round_course_r_c_id;
drop index if exists ix_round_course_r_c_id;
alter table round drop constraint if exists fk_round_user_r_id;
drop index if exists ix_round_user_r_id;
drop table if exists course;
drop sequence if exists course_seq;
drop table if exists handicap;
drop table if exists hole;
drop sequence if exists hole_seq;
drop table if exists round;
drop table if exists user;
|
<reponame>duartemolha/ensembl-funcgen
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2019] EMBL-European Bioinformatics Institute
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
/**
@header patch_92_93_q.sql - Create segmentation_state_emission table
@desc Create segmentation_state_emission table
*/
drop table if exists segmentation_state_emission;
CREATE TABLE segmentation_state_emission (
segmentation_state_emission_id int(27) unsigned NOT NULL AUTO_INCREMENT,
segmentation varchar(255) NOT NULL,
state int(7) DEFAULT NULL,
CTCF double DEFAULT NULL,
DNase1 double DEFAULT NULL,
H3K27ac double DEFAULT NULL,
H3K27me3 double DEFAULT NULL,
H3K36me3 double DEFAULT NULL,
H3K4me1 double DEFAULT NULL,
H3K4me2 double DEFAULT NULL,
H3K4me3 double DEFAULT NULL,
H3K9ac double DEFAULT NULL,
H3K9me3 double DEFAULT NULL,
PRIMARY KEY (segmentation_state_emission_id)
);
-- patch identifier
INSERT INTO meta (species_id, meta_key, meta_value) VALUES (NULL, 'patch', 'patch_92_93_q.sql|Create segmentation_state_emission table');
|
INSERT INTO roles (id, name)
VALUES ('1', 'ADMIN'), ('2', 'MANDATOR'), ('3', 'USER');
INSERT INTO music_type (musictype)
VALUES ('ROCK'), ('POP'), ('JAZZ'), ('FOLK');
INSERT INTO users (login, password, role_id)
VALUES ('root', 'root', 1);
INSERT INTO address (postcode, city, street, home, user_id)
VALUES ('157000', 'Moscow', 'Mira', '31', '1');
INSERT INTO user_musictype (user_id, musictype_id)
VALUES ('1', '1') |
<filename>wiki/maintenance/mssql/archives/patch-il_from_namespace.sql
ALTER TABLE /*_*/imagelinks
ADD il_from_namespace int NOT NULL default 0;
CREATE INDEX /*i*/il_backlinks_namespace ON /*_*/imagelinks (il_from_namespace,il_to,il_from); |
version https://git-lfs.github.com/spec/v1
oid sha256:7cada3125f2d18b94f91ac1854251b451a63ecbc5d86c508b2b375b894c7ff41
size 13608
|
insert into Member (firstName, lastName, email, password, username, gender, birthdate) values ('Craig' , 'Walls', '<EMAIL>', 'letmein', 'habuma', 'M', '1977-12-01');
insert into Member (firstName, lastName, email, password, username, gender, birthdate) values ('Roy' , 'Clarkson', '<EMAIL>', 'password', '<PASSWORD>', 'M', '1977-12-01');
insert into ServiceProvider (name, displayName, implementation, apiKey, secret, requestTokenUrl, authorizeUrl, accessTokenUrl) values ('twitter', 'Twitter', 'whatev', 'whatev', 'secret', 'http://www.twitter.com', 'http://www.twitter.com', 'http://www.twitter.com');
insert into ServiceProvider (name, displayName, implementation, apiKey, secret, requestTokenUrl, authorizeUrl, accessTokenUrl) values ('facebook', 'Facebook', 'whatev', 'whatev', 'secret', 'http://www.facebook.com', 'http://www.facebook.com', 'http://www.facebook.com');
insert into AccountConnection (member, provider, accessToken, accountId, profileUrl) values (1, 'twitter', 'twitter-token', 'habuma', 'http://www.twitter.com/habuma');
insert into AccountConnection (member, provider, accessToken, accountId, profileUrl) values (1, 'facebook', 'facebook-token', '<PASSWORD>', 'http://www.facebook.com/profile.php?id=123456789');
|
CREATE FUNCTION func511() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE29);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE60);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE468);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW39);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW68);CALL FUNC605(MYVAR);CALL FUNC358(MYVAR);CALL FUNC509(MYVAR);CALL FUNC269(MYVAR);END $$;
GO |
--
-- Take a look at the shared SQL areas cached in the shared pool
--
--
set trims on
set linesize 250
column sql_text format a70
column is_bind_sensitive format a20
column is_bind_aware format a20
column is_shareable format a20
select sql_id,child_number,is_shareable,sql_text, executions,
is_bind_sensitive, is_bind_aware
from v$sql
where sql_text like '%sales%' order by 1, child_number;
|
insert into author (age, name, genre, id) values (23, "<NAME>", "Anthology", 1);
insert into author (age, name, genre, id) values (43, "<NAME>", "Horror", 2);
insert into author (age, name, genre, id) values (51, "<NAME>", "Anthology", 3);
insert into author (age, name, genre, id) values (34, "<NAME>", "History", 4);
insert into author (age, name, genre, id) values (38, "<NAME>", "Anthology", 5);
insert into author (age, name, genre, id) values (56, "<NAME>", "Anthology", 6);
insert into author (age, name, genre, id) values (34, "<NAME>", "History", 7);
insert into author (age, name, genre, id) values (23, "<NAME>", "Horror", 8);
insert into author (age, name, genre, id) values (26, "<NAME>", "Horror", 9);
insert into author (age, name, genre, id) values (43, "<NAME>", "Horror", 10); |
<filename>postgresql/SQLScripts/MIGRATION/UTIL/BIGINT.sql<gh_stars>100-1000
-- noinspection SqlDialectInspectionForFile
-- 3D City Database - The Open Source CityGML Database
-- https://www.3dcitydb.org/
--
-- Copyright 2013 - 2021
-- Chair of Geoinformatics
-- Technical University of Munich, Germany
-- https://www.lrg.tum.de/gis/
--
-- The 3D City Database is jointly developed with the following
-- cooperation partners:
--
-- Virtual City Systems, Berlin <https://vc.systems/>
-- M.O.S.S. Computer Grafik Systeme GmbH, Taufkirchen <http://www.moss.de/>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
SET client_min_messages TO NOTICE;
SET tmp.old_major to :major;
SET tmp.old_minor to :minor;
DO $$
DECLARE
meta_tables text[] := '{"objectclass", "ade", "schema", "schema_to_objectclass", "schema_referencing", "aggregation_info", "database_srs", "index_table"}';
meta_sequences text[] := '{"schema_seq", "ade_seq", "index_table_id_seq"}';
rec record;
schema_name text;
old_major integer := current_setting('tmp.old_major')::integer;
old_minor integer := current_setting('tmp.old_minor')::integer;
BEGIN
-- do bigint update for version 3 or version < 4.2
IF old_major = 3 OR (old_major = 4 AND old_minor < 2) THEN
FOR schema_name in SELECT nspname AS schema_name FROM pg_catalog.pg_class c
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relname = 'database_srs' AND c.relkind = 'r'
LOOP
RAISE NOTICE 'Changing schema ''%'' to use bigint as data type for ID columns ...', schema_name;
-- update sequences
FOR rec IN
SELECT
sequence_name
FROM
information_schema.sequences
WHERE
sequence_schema = schema_name AND NOT (sequence_name = ANY(meta_sequences))
LOOP
EXECUTE 'alter sequence ' || schema_name || '.' || rec.sequence_name || ' maxvalue 9223372036854775807';
END LOOP;
-- update non-ID columns
FOR rec IN
SELECT
p.nspname,
c.confrelid::regclass::text AS pk_table,
c.conrelid::regclass::text AS fk_table,
a.attname::text AS fk_column
FROM
pg_constraint c
JOIN
pg_attribute a ON a.attrelid = c.conrelid AND a.attnum = ANY (c.conkey)
JOIN
pg_namespace p ON c.connamespace = p.oid
WHERE
c.contype = 'f' AND a.attname::text <> 'id' AND p.nspname = schema_name
AND NOT (substring(c.confrelid::regclass::text, position('.' in c.confrelid::regclass::text) + 1) = ANY(meta_tables))
LOOP
EXECUTE 'alter table ' || rec.fk_table || ' alter column ' || rec.fk_column || ' type bigint';
END LOOP;
-- update ID columns
FOR rec IN
SELECT
table_name
FROM
information_schema.tables at
WHERE
table_schema = schema_name AND
NOT (table_name = ANY(meta_tables)) AND
EXISTS (
SELECT
table_name
FROM
information_schema.columns c
WHERE
c.table_name = at.table_name AND c.column_name = 'id' AND c.table_schema = schema_name
)
LOOP
EXECUTE 'alter table ' || schema_name || '.' || rec.table_name || ' alter column id type bigint';
END LOOP;
-- update delete and envelope functions
IF old_major = 4 THEN
FOR rec IN
SELECT
oid::regprocedure as function_name,
pg_get_functiondef(oid) as function_definition
FROM
pg_proc
WHERE
pronamespace = schema_name::regnamespace
AND (position('del_' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('env_' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('box2envelope(box3d)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('cleanup_appearances(integer)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('cleanup_schema()' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('cleanup_table(text)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('get_envelope_cityobjects(integer,integer,integer)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('get_envelope_implicit_geometry(integer,geometry,character varying)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text)
OR position('update_bounds(geometry,geometry)' in oid::regprocedure::text) = 1 + position('.' in oid::regprocedure::text))
LOOP
EXECUTE 'drop function ' || rec.function_name;
EXECUTE regexp_replace(rec.function_definition, '(?<!caller |class_id::|class_id |only_if_null |db_srid |only_global |set_envelope )(integer)|(?<=\s)(int)(?!\w)', 'bigint', 'gi');
END LOOP;
END IF;
END LOOP;
END IF;
END
$$; |
<reponame>gridgentoo/gpdb<filename>src/test/regress/sql/vacuum_full_ao.sql
create or replace function junkloop(rel text, numiter int) returns int as $$
declare
sql text;
begin
for i in 0..numiter loop
sql := $sql$ insert into $sql$ || rel || $sql$ select 1, $sql$ || i::text || $sql$, repeat('x', 1000) $sql$;
execute sql;
end loop;
return numiter;
end;
$$ language plpgsql;
drop table if exists vfao;
create table vfao (a, b, c) with (appendonly=true, orientation=column) as
select 1, i, repeat('x', 1000) from generate_series(1, 100)i distributed by (a);
create index ivfao on vfao(b, c);
-- insert many times to populate invisible tuples in pg_aoseg
select junkloop('vfao', 300);
select pg_relation_size((select segrelid from pg_appendonly where relid = 'vfao'::regclass)) from gp_dist_random('gp_id') where gp_segment_id = 2;
vacuum full vfao;
select pg_relation_size((select segrelid from pg_appendonly where relid = 'vfao'::regclass)) from gp_dist_random('gp_id') where gp_segment_id = 2;
|
-- Corylus - ERP software
-- Copyright (c) 2005-2014 <NAME>
-- initial database content
START TRANSACTION;
INSERT INTO users (id,login,name,hashed_password,email,partner_id,perm_invoice_w)
VALUES (1,'admin','<NAME>','<PASSWORD>','<EMAIL>',NULL,true);
INSERT INTO settings(name,value) VALUES ('company_name','Votre société');
INSERT INTO settings(name,value) VALUES ('contact_email','<EMAIL>');
INSERT INTO addresses(addr1,postcode,city,country_id) VALUES ('12 rue de Paris',91400,'Orsay',2);
INSERT INTO settings(name,value) VALUES ('shipping_address_id', 1);
INSERT INTO settings(name,value) VALUES ('billing_address_id', 1);
INSERT INTO settings(name,value) VALUES ('bic', 'BNPAFRPPMEE');
INSERT INTO settings(name,value) VALUES ('iban', 'FR76 1234 5678 9101 1121 3141 516');
-- VAT rates for France in 2014
-- The first line is for special non-taxable items (stamps come to mind)
INSERT INTO vat_rates(rate) VALUES (0.0);
INSERT INTO vat_rates(rate) VALUES (2.1);
INSERT INTO vat_rates(rate) VALUES (5.5);
INSERT INTO vat_rates(rate) VALUES (10.0);
INSERT INTO vat_rates(rate) VALUES (20.0);
INSERT INTO settings(name,value) VALUES ('default_vat_rate_id',
(SELECT id from vat_rates where rate = 20.0)
);
COMMIT;
|
PREPARE query(int, int) AS SELECT sum(bar) FROM test
WHERE id > $1 AND id < $2
GROUP BY foo;
EXPLAIN ANALYZE EXECUTE query(100, 200);
QUERY PLAN
-------------------------------------------------------------------&zwsp;-----------------------------------------------------
HashAggregate (cost=9.54..9.54 rows=1 width=8) (actual time=0.156..0.161 rows=11 loops=1)
Group Key: foo
-> Index Scan using test_pkey on test (cost=0.29..9.29 rows=50 width=8) (actual time=0.039..0.091 rows=99 loops=1)
Index Cond: ((id > $1) AND (id < $2))
Planning time: 0.197 ms
Execution time: 0.225 ms
(6 rows)
|
-- @testpoint:opengauss关键字constraint(保留),作为模式名
--关键字不带引号-合理报错
drop schema if exists constraint;
create schema constraint;
--关键字带双引号-成功
drop schema if exists "constraint";
create schema "constraint";
--清理环境
drop schema "constraint";
--关键字带单引号-合理报错
drop schema if exists 'constraint';
create schema 'constraint';
--关键字带反引号-合理报错
drop schema if exists `constraint`;
create schema `constraint`;
|
CREATE MATERIALIZED VIEW testview AS
SELECT testtable.id,
testtable.name
FROM public.testtable
WITH NO DATA;
ALTER MATERIALIZED VIEW testview OWNER TO postgres;
|
-- Verify database-message-store:tables/messages on pg
BEGIN;
SELECT
global_position,
position,
id,
time,
stream_name,
type,
data,
metadata
FROM message_store.messages
WHERE FALSE;
ROLLBACK;
|
-- phpMyAdmin SQL Dump
-- version 4.6.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Apr 17, 2017 at 06:57 AM
-- Server version: 5.7.13-log
-- PHP Version: 7.0.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `db_diagram`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_barang`
--
CREATE TABLE `tbl_barang` (
`id` int(11) NOT NULL,
`nama_brg` varchar(50) NOT NULL,
`harga` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_barang`
--
INSERT INTO `tbl_barang` (`id`, `nama_brg`, `harga`) VALUES
(1, 'Es TEh', 2000),
(2, 'Nasi', 2000),
(3, 'Ayam', 9000);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_detail_jual`
--
CREATE TABLE `tbl_detail_jual` (
`id` int(11) NOT NULL,
`nonota` int(11) NOT NULL,
`id_brg` int(11) NOT NULL,
`nama_brg` varchar(50) NOT NULL,
`jml_beli` int(11) NOT NULL,
`harga` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_detail_jual`
--
INSERT INTO `tbl_detail_jual` (`id`, `nonota`, `id_brg`, `nama_brg`, `jml_beli`, `harga`) VALUES
(1, 1, 1, 'Es TEh', 2, 2000),
(2, 1, 3, 'Ayam', 1, 9000),
(3, 2, 1, 'Es TEh', 1, 2000),
(4, 2, 3, 'Ayam', 2, 9000),
(5, 3, 2, 'Nasi', 2, 2000),
(6, 3, 3, 'Ayam', 1, 9000);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_laporan`
--
CREATE TABLE `tbl_laporan` (
`id` int(11) NOT NULL,
`tanggal` date NOT NULL,
`id_brg` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_laporan`
--
INSERT INTO `tbl_laporan` (`id`, `tanggal`, `id_brg`, `total`) VALUES
(1, '2017-01-01', 1, 10),
(2, '2017-02-01', 1, 20),
(3, '2017-03-01', 1, 10),
(4, '2017-04-01', 1, 5),
(5, '2017-05-01', 1, 4),
(6, '2017-06-01', 1, 21),
(7, '2017-07-01', 1, 10),
(8, '2017-08-01', 1, 20),
(9, '2017-09-01', 1, 15),
(10, '2017-10-01', 1, 10),
(11, '2017-11-01', 1, 5),
(12, '2017-12-01', 1, 12),
(13, '2017-01-01', 2, 15),
(14, '2017-02-01', 2, 10),
(15, '2017-03-01', 2, 21),
(16, '2017-04-01', 2, 12),
(17, '2017-05-01', 2, 12),
(18, '2017-06-01', 2, 16),
(19, '2017-07-01', 2, 18),
(20, '2017-08-01', 2, 11),
(21, '2017-09-01', 2, 12),
(22, '2017-10-01', 2, 20),
(23, '2017-11-01', 2, 21),
(24, '2017-12-01', 2, 20),
(25, '2017-01-01', 3, 14),
(26, '2017-02-01', 3, 16),
(27, '2017-03-01', 3, 17),
(28, '2017-04-01', 3, 19),
(29, '2017-05-01', 3, 21),
(30, '2017-06-01', 3, 25),
(31, '2017-07-01', 3, 22),
(32, '2017-08-01', 3, 21),
(33, '2017-09-01', 3, 26),
(34, '2017-10-01', 3, 23),
(35, '2017-11-01', 3, 21),
(36, '2017-12-01', 3, 26),
(37, '2017-12-15', 3, 13);
-- --------------------------------------------------------
--
-- Table structure for table `tbl_penjualan`
--
CREATE TABLE `tbl_penjualan` (
`id` int(11) NOT NULL,
`nonota` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `tbl_penjualan`
--
INSERT INTO `tbl_penjualan` (`id`, `nonota`, `total`) VALUES
(1, 1, 11000),
(2, 2, 11000),
(3, 3, 11000);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_barang`
--
ALTER TABLE `tbl_barang`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_detail_jual`
--
ALTER TABLE `tbl_detail_jual`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_laporan`
--
ALTER TABLE `tbl_laporan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tbl_penjualan`
--
ALTER TABLE `tbl_penjualan`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_barang`
--
ALTER TABLE `tbl_barang`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `tbl_detail_jual`
--
ALTER TABLE `tbl_detail_jual`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `tbl_laporan`
--
ALTER TABLE `tbl_laporan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `tbl_penjualan`
--
ALTER TABLE `tbl_penjualan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.