sql stringlengths 6 1.05M |
|---|
SELECT citasmedicas.cita.id, citasmedicas.cita.fecha, citasmedicas.paciente.nombrePaciente,
citasmedicas.paciente.cedula, citasmedicas.especialista.nombreEspecialista,
citasmedicas.especialista.especialidad, citasmedicas.especialista.tarifa
FROM ((citasmedicas.cita
INNER JOIN citasmedicas.paciente ON citasmedicas.cita.idPaciente = citasmedicas.paciente.idPaciente)
INNER JOIN citasmedicas.especialista ON citasmedicas.cita.idEspecialista = citasmedicas.especialista.idEspecialista AND CAST(citasmedicas.cita.fecha AS DATE) = :fecha); |
CREATE TABLE IF NOT EXISTS USERS (
userid INT PRIMARY KEY auto_increment,
username VARCHAR(20),
salt VARCHAR,
password VARCHAR,
firstname VARCHAR(20),
lastname VARCHAR(20)
);
CREATE TABLE IF NOT EXISTS MESSAGES (
messageid INT PRIMARY KEY auto_increment,
username VARCHAR NOT NULL,
messagetext VARCHAR NOT NULL,
messagetype VARCHAR NOT NULL
); |
<filename>src/main/resources/dbmigrate/h2/auth/V0_0_1__user_status.sql
-------------------------------------------------------------------------------
-- user status
-------------------------------------------------------------------------------
CREATE TABLE AUTH_USER_STATUS(
ID BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL,
USERNAME VARCHAR(50),
PASSWORD VARCHAR(50),
STATUS INTEGER,
REFERENCE VARCHAR(200),
USER_REPO_REF VARCHAR(50),
SCOPE_ID VARCHAR(50),
CONSTRAINT PK_AUTH_USER_STATUS PRIMARY KEY(ID)
);
|
#standardSQL
# Pages with the longest alts
SELECT
client,
url,
largest_alt,
alt_rank
FROM (
SELECT
_TABLE_SUFFIX AS client,
url,
MAX(SAFE_CAST(alt_length_string AS INT64)) AS largest_alt,
ROW_NUMBER() OVER (PARTITION BY _TABLE_SUFFIX ORDER BY MAX(SAFE_CAST(alt_length_string AS INT64)) DESC) AS alt_rank
FROM
`httparchive.pages.2021_07_01_*`,
UNNEST(
JSON_EXTRACT_ARRAY(JSON_EXTRACT_SCALAR(payload, '$._almanac'), '$.images.alt_lengths')
) AS alt_length_string
GROUP BY
client,
url
)
WHERE
alt_rank <= 100
ORDER BY
alt_rank ASC
|
<reponame>yuanweikang2020/canal
CREATE TABLE `tb_jaaspokopu` (
`col_cbvwqvuuvo` varbinary(128) NOT NULL,
`col_kvspyjtqjg` text,
UNIQUE KEY `uk_rjyzqluaky` (`col_cbvwqvuuvo`(3))
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
<reponame>weifengtou/wap.weifengtou.com
CREATE TABLE IF NOT EXISTS `wp_diy` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`keyword` varchar(100) NOT NULL COMMENT '关键词',
`title` varchar(255) NOT NULL COMMENT '标题',
`intro` text NOT NULL COMMENT '封面简介',
`mTime` int(10) NOT NULL COMMENT '修改时间',
`cover` int(10) UNSIGNED NOT NULL COMMENT '封面图片',
`cTime` int(10) UNSIGNED NOT NULL COMMENT '发布时间',
`token` varchar(255) NOT NULL COMMENT 'Token',
`url` varchar(255) NOT NULL COMMENT '访问网址',
`is_close` tinyint(2) NOT NULL DEFAULT 0 COMMENT '是否关闭',
`need_login` tinyint(2) NOT NULL DEFAULT 0 COMMENT '游客访问',
`layout` text NOT NULL COMMENT '页面参数',
`view_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '浏览数',
`module` varchar(255) NOT NULL DEFAULT 'Diy' COMMENT '模块名',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci CHECKSUM=0 ROW_FORMAT=DYNAMIC DELAY_KEY_WRITE=0;
INSERT INTO `wp_model` (`name`,`title`,`extend`,`relation`,`need_pk`,`field_sort`,`field_group`,`attribute_list`,`template_list`,`template_add`,`template_edit`,`list_grid`,`list_row`,`search_key`,`search_list`,`create_time`,`update_time`,`status`,`engine_type`) VALUES ('diy','万能页面','0','','1','{"1":["keyword","title","cover","intro","is_close","need_login"]}','1:基础','','','','','keyword:关键词\r\ntitle:标题\r\nis_close|get_name_by_status:是否关闭\r\nneed_login|get_name_by_status:游客访问\r\nview_count:浏览数\r\nid:操作:[EDIT]|编辑,del&id=[id]&_addons=Diy&_controller=Diy|删除,diy&id=[id]&target=_blank&_addons=Diy&_controller=Diy|排版,preview&id=[id]&target=_blank&_addons=Diy&_controller=Diy|预览,show&id=[id]&target=_blank&_addons=Diy&_controller=Diy&token=[token]|访问地址','10','title','','1396061373','1399105105','1','MyISAM');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('keyword','关键词','varchar(100) NOT NULL','string','','','1','','0','1','1','1399038073','1396061575','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('title','标题','varchar(255) NOT NULL','string','','','1','','0','1','1','1396624461','1396061859','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('intro','封面简介','text NOT NULL','textarea','','','1','','0','0','1','1396624505','1396061947','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('mTime','修改时间','int(10) NOT NULL','datetime','','','0','','0','0','1','1396624664','1396624664','','3','','regex','time','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('cover','封面图片','int(10) UNSIGNED NOT NULL','picture','','','1','','0','0','1','1396624534','1396062093','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('cTime','发布时间','int(10) UNSIGNED NOT NULL','datetime','','','0','','0','0','1','1396624612','1396075102','','3','','regex','time','1','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('token','Token','varchar(255) NOT NULL','string','','','0','','0','0','1','1396602871','1396602859','','3','','regex','get_token','1','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('url','访问网址','varchar(255) NOT NULL','string','','为空则自动生成','0','','0','0','1','1398416321','1397361414','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('is_close','是否关闭','tinyint(2) NOT NULL','bool','0','关闭后用户不能再访问该页面','1','0:开启\r\n1:关闭','0','0','1','1397361841','1397361510','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('need_login','游客访问','tinyint(2) NOT NULL','bool','0','','1','0:允许\r\n1:禁止','0','0','1','1397361769','1397361769','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('layout','页面参数','text NOT NULL','textarea','','','0','','0','0','1','1397474846','1397474846','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('view_count','浏览数','int(10) UNSIGNED NOT NULL','num','0','','0','','0','0','1','1397475862','1397475862','','3','','regex','','3','function');
INSERT INTO `wp_attribute` (`name`,`title`,`field`,`type`,`value`,`remark`,`is_show`,`extra`,`model_id`,`is_must`,`status`,`update_time`,`create_time`,`validate_rule`,`validate_time`,`error_info`,`validate_type`,`auto_rule`,`auto_time`,`auto_type`) VALUES ('module','模块名','varchar(255) NOT NULL','string','Diy','页面所属的模块','0','','0','0','1','1398350642','1398350642','','3','','regex','','3','function');
UPDATE `wp_attribute` SET model_id= (SELECT MAX(id) FROM `wp_model`) WHERE model_id=0; |
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 08, 2017 at 06:19 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.23
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: `shop-project`
--
-- --------------------------------------------------------
--
-- Table structure for table `address`
--
CREATE TABLE `address` (
`id` int(10) UNSIGNED NOT NULL,
`address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `address`
--
INSERT INTO `address` (`id`, `address`, `created_at`, `updated_at`) VALUES
(1, 'Số 3, Duy Tân', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `advertises`
--
CREATE TABLE `advertises` (
`id` int(10) UNSIGNED NOT NULL,
`advertise_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`advertise_image` text COLLATE utf8mb4_unicode_ci NOT NULL,
`advertise_link` text COLLATE utf8mb4_unicode_ci,
`description` text COLLATE utf8mb4_unicode_ci,
`date_start` datetime NOT NULL,
`date_end` datetime NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE `customers` (
`id` int(10) UNSIGNED NOT NULL,
`customer_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`birthday` date DEFAULT NULL,
`phonenumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`sex` tinyint(4) DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `customers`
--
INSERT INTO `customers` (`id`, `customer_name`, `username`, `password`, `address`, `birthday`, `phonenumber`, `sex`, `email`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Tên user số 1', 'custo1', '12345', 'Địa chỉ số 1', NULL, '1123123123', NULL, '<EMAIL>', NULL, NULL, NULL),
(2, 'Tên user số 1', 'custo2', '12345', 'Địa chỉ số 1', NULL, '11231231', NULL, '<EMAIL>', NULL, NULL, NULL),
(3, 'Tên user số 1', 'custo3', '12345', 'Địa chỉ số 1', NULL, '11231231', NULL, '<EMAIL>', NULL, NULL, NULL),
(4, 'Tên user số 1', 'custo4', '12345', 'Địa chỉ số 1', NULL, '14234234', NULL, '<EMAIL>', NULL, NULL, NULL),
(5, 'Tên user số 1', 'custo5', '12345', 'Địa chỉ số 1', NULL, '1234234', NULL, '<EMAIL>', NULL, NULL, NULL),
(6, 'Tên user số 1', 'custo6', '12345', 'Địa chỉ số 1', NULL, '123121', NULL, '<EMAIL>', NULL, NULL, NULL),
(7, 'Tên user số 1', 'custo7', '12345', 'Địa chỉ số 1', NULL, '112312', NULL, '<EMAIL>', NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(61, '2014_10_12_000000_create_users_table', 1),
(62, '2014_10_12_100000_create_password_resets_table', 1),
(63, '2017_04_03_080707_create_advertises_table', 1),
(64, '2017_04_03_080722_create_customers_table', 1),
(65, '2017_04_03_080741_create_product_types_table', 1),
(66, '2017_04_03_080752_create_products_table', 1),
(67, '2017_04_03_080818_create_promotions_table', 1),
(68, '2017_04_03_080831_create_orders_table', 1),
(69, '2017_04_04_145814_create_slides_table', 1),
(70, '2017_04_06_202752_create_address_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(10) UNSIGNED NOT NULL,
`customer_id` int(10) UNSIGNED DEFAULT NULL,
`order_detail` text COLLATE utf8mb4_unicode_ci,
`total_cost` int(11) NOT NULL,
`date_buy` datetime NOT NULL,
`date_transfer` datetime DEFAULT NULL,
`status` tinyint(4) NOT NULL DEFAULT '0',
`name_customer` text COLLATE utf8mb4_unicode_ci,
`phonenumber` text COLLATE utf8mb4_unicode_ci,
`address` text COLLATE utf8mb4_unicode_ci,
`is_card` tinyint(4) NOT NULL DEFAULT '0',
`card` text COLLATE utf8mb4_unicode_ci,
`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`, `customer_id`, `order_detail`, `total_cost`, `date_buy`, `date_transfer`, `status`, `name_customer`, `phonenumber`, `address`, `is_card`, `card`, `created_at`, `updated_at`) VALUES
(1, 1, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 1, 'Tên user số 1', '1123123123', 'Địa chỉ số 1', 0, '111111111', NULL, '2017-04-08 16:16:25'),
(2, 3, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 0, 'Tên user số 1', '11231231', 'Địa chỉ số 1', 1, '111111111', NULL, '2017-04-08 16:16:25'),
(3, 2, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 1, 'Tên user số 1', '11231231', 'Địa chỉ số 1', 1, '111111111', NULL, '2017-04-08 16:16:25'),
(4, 1, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 0, 'Tên user số 1', '1123123123', 'Địa chỉ số 1', 1, '111111111', NULL, '2017-04-08 16:16:25'),
(5, 1, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 1, 'Tên user số 1', '1123123123', 'Địa chỉ số 1', 0, '111111111', NULL, '2017-04-08 16:16:25'),
(6, 5, 'trường order_detail', 10000, '2017-04-24 11:00:00', NULL, 0, 'Tên user số 1', '1234234', 'Địa chỉ số 1', 1, '111111111', NULL, '2017-04-08 16:16:25');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`product_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`price` int(11) NOT NULL,
`image` text COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`quantity` int(11) NOT NULL,
`product_type_id` int(10) UNSIGNED NOT NULL,
`like` int(11) DEFAULT NULL,
`dislike` int(11) DEFAULT NULL,
`total_buy` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `product_name`, `price`, `image`, `description`, `quantity`, `product_type_id`, `like`, `dislike`, `total_buy`, `created_at`, `updated_at`) VALUES
(1, 'Bánh kem 12', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 12, 1, NULL, NULL, NULL, NULL, NULL),
(2, 'Bánh kem 13', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 13, 1, NULL, NULL, NULL, NULL, NULL),
(3, 'Bánh kem 14', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 14, 2, NULL, NULL, NULL, NULL, NULL),
(4, 'Bánh kem 15', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 15, 2, NULL, NULL, NULL, NULL, NULL),
(5, 'Bánh kem 16', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 16, 2, NULL, NULL, NULL, NULL, NULL),
(6, 'Bánh kem 17', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 17, 3, NULL, NULL, NULL, NULL, NULL),
(7, 'Bánh kem 18', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 18, 3, NULL, NULL, NULL, NULL, NULL),
(8, 'Bánh kem 19', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 19, 4, NULL, NULL, NULL, NULL, NULL),
(9, 'Bánh kem 20', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 11, 4, NULL, NULL, NULL, NULL, NULL),
(10, 'Bánh kem 21', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 11, 4, NULL, NULL, NULL, NULL, NULL),
(11, 'Bánh kem 22', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 11, 4, NULL, NULL, NULL, NULL, NULL),
(12, 'Bánh kem 23', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 11, 4, NULL, NULL, NULL, NULL, NULL),
(13, 'Bánh kem 24', 1000, 'customer/images/products/banh-kem-01.jpg', NULL, 11, 4, NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `product_types`
--
CREATE TABLE `product_types` (
`id` int(10) UNSIGNED NOT NULL,
`product_type_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_types`
--
INSERT INTO `product_types` (`id`, `product_type_name`, `created_at`, `updated_at`) VALUES
(1, 'Bánh kem số 1', NULL, NULL),
(2, 'Bánh kem số 2', NULL, NULL),
(3, 'Bánh kem số 3', NULL, NULL),
(4, 'Bánh kem số 4', NULL, NULL),
(5, 'Bánh kem số 5', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `promotions`
--
CREATE TABLE `promotions` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL,
`product_type_id` int(10) UNSIGNED DEFAULT NULL,
`promotion_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`percent` int(11) NOT NULL,
`date_start` date NOT NULL,
`date_end` date 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 `promotions`
--
INSERT INTO `promotions` (`id`, `product_id`, `product_type_id`, `promotion_name`, `percent`, `date_start`, `date_end`, `created_at`, `updated_at`) VALUES
(1, 2, 1, 'số 1', 15, '2017-04-20', '2017-04-24', NULL, NULL),
(2, 3, 2, 'Số 2', 15, '2017-04-20', '2017-04-24', NULL, NULL),
(3, 1, 3, 'Số 3', 15, '2017-04-20', '2017-04-24', NULL, NULL),
(4, 5, 4, 'Số 4', 15, '2017-04-20', '2017-04-24', NULL, NULL),
(5, 7, 5, 'Số 5', 15, '2017-04-20', '2017-04-24', NULL, NULL),
(6, NULL, 1, 'cái gì đấy', 12, '2017-04-22', '2017-04-30', '2017-04-08 16:12:16', '2017-04-08 16:12:16');
-- --------------------------------------------------------
--
-- Table structure for table `slides`
--
CREATE TABLE `slides` (
`id` int(10) UNSIGNED NOT NULL,
`name_slider` text COLLATE utf8mb4_unicode_ci,
`image_slider` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `slides`
--
INSERT INTO `slides` (`id`, `name_slider`, `image_slider`, `created_at`, `updated_at`) VALUES
(1, 'slide số 1', 'customer/images/slider/slider-01.jpg', NULL, NULL),
(2, 'slide số 2', 'customer/images/slider/slider-01.jpg', NULL, NULL),
(3, 'slide số 3', 'customer/images/slider/slider-01.jpg', NULL, NULL),
(4, 'slide số 4', 'customer/images/slider/slider-01.jpg', NULL, NULL),
(5, 'slide số 5', 'customer/images/slider/slider-01.jpg', NULL, NULL),
(6, 'slide số 6', 'customer/images/slider/slider-01.jpg', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`user_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`level` tinyint(4) NOT NULL DEFAULT '1',
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `user_name`, `username`, `password`, `level`, `email`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Tên user số 1', 'user1', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(2, 'Tên user số 2', 'user2', '<PASSWORD>', 1, '<EMAIL>', NULL, NULL, NULL),
(3, 'Tên user số 3', 'user3', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(4, 'Tên user số 4', 'user4', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(5, 'Tên user số 5', 'user5', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(6, 'Tên user số 6', 'user6', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(7, 'Tên user số 7', 'user7', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(8, 'Tên user số 8', 'user8', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(9, 'Tên user số 9', 'user9', '12345', 1, '<EMAIL>', NULL, NULL, NULL),
(10, 'Tên user số 0', 'admin', '12345', 0, '<EMAIL>', NULL, NULL, NULL),
(11, 'Tên Thật', 'admin1', '$2y$10$psaM9ARdd59PJcppirZQ6.gpnevk9fCGdkYmqZiIPPsBTabXGvs.6', 0, '<EMAIL>', 'MYDFLpnpJlpQtp0kS6nCG3ak7nxWz2AoLrRKVW8HFfo0i9JlaJtUYmQPOhIX', '2017-04-08 16:07:13', '2017-04-08 16:07:13'),
(12, '<NAME>', 'user100', '$2y$10$ZkjbbjGAmU8pKBQgdX5KEuFGatJE8obxFgF1jgRYulRaoiZBQLjT.', 1, '<EMAIL>', NULL, '2017-04-08 16:18:14', '2017-04-08 16:18:14');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `address`
--
ALTER TABLE `address`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `advertises`
--
ALTER TABLE `advertises`
ADD PRIMARY KEY (`id`);
ALTER TABLE `advertises` ADD FULLTEXT KEY `advertise_name` (`advertise_name`);
--
-- Indexes for table `customers`
--
ALTER TABLE `customers`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `customers_username_unique` (`username`),
ADD UNIQUE KEY `customers_email_unique` (`email`);
ALTER TABLE `customers` ADD FULLTEXT KEY `customer_name` (`customer_name`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD KEY `orders_customer_id_foreign` (`customer_id`);
ALTER TABLE `orders` ADD FULLTEXT KEY `name_customer` (`name_customer`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `products_product_name_unique` (`product_name`),
ADD KEY `products_product_type_id_foreign` (`product_type_id`);
ALTER TABLE `products` ADD FULLTEXT KEY `product_name` (`product_name`);
--
-- Indexes for table `product_types`
--
ALTER TABLE `product_types`
ADD PRIMARY KEY (`id`);
ALTER TABLE `product_types` ADD FULLTEXT KEY `product_type_name` (`product_type_name`);
--
-- Indexes for table `promotions`
--
ALTER TABLE `promotions`
ADD PRIMARY KEY (`id`),
ADD KEY `promotions_product_id_foreign` (`product_id`),
ADD KEY `promotions_product_type_id_foreign` (`product_type_id`);
ALTER TABLE `promotions` ADD FULLTEXT KEY `promotion_name` (`promotion_name`);
--
-- Indexes for table `slides`
--
ALTER TABLE `slides`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_username_unique` (`username`),
ADD UNIQUE KEY `users_email_unique` (`email`);
ALTER TABLE `users` ADD FULLTEXT KEY `user_name` (`user_name`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `address`
--
ALTER TABLE `address`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `advertises`
--
ALTER TABLE `advertises`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `customers`
--
ALTER TABLE `customers`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=71;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `product_types`
--
ALTER TABLE `product_types`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `promotions`
--
ALTER TABLE `promotions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `slides`
--
ALTER TABLE `slides`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_customer_id_foreign` FOREIGN KEY (`customer_id`) REFERENCES `customers` (`id`);
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_product_type_id_foreign` FOREIGN KEY (`product_type_id`) REFERENCES `product_types` (`id`);
--
-- Constraints for table `promotions`
--
ALTER TABLE `promotions`
ADD CONSTRAINT `promotions_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`),
ADD CONSTRAINT `promotions_product_type_id_foreign` FOREIGN KEY (`product_type_id`) REFERENCES `product_types` (`id`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
drop schema if exists "public" cascade;
create schema "public";
create table "public"."test1" (
test_id serial,
test_name1 varchar(255) not null,
test_name2 varchar(255),
test_date1 date not null,
test_date2 date,
test_timestamp1 timestamptz(0) not null,
test_timestamp2 timestamptz(0),
test_boolean1 boolean not null,
test_boolean2 boolean,
test_integer1 integer,
test_integer2 integer not NULL,
test_bigint1 bigint,
test_bigint2 bigint not NULL,
test_text1 text,
test_text2 text not NULL,
test_real1 real,
test_real2 real not NULL,
test_double1 double precision,
test_double2 double precision NOT NULL,
test_decimal1 numeric,
test_decimal2 numeric NOT NULL,
test_char1 char,
test_char2 char NOT NULL,
primary key (test_id)
);
CREATE TABLE "public"."test2" (
test_id serial,
test_name text NOT NULL,
test_date timestamptz(0) NOT NULL,
test_number integer not null,
PRIMARY KEY (test_id)
);
DROP view if exists "public"."view1";
create or REPLACE view "public"."view1" as
select test1.test_id as test1_test_id,
test_name1,
test_name2,
test_date1,
test_date2,
test_timestamp1,
test_timestamp2,
test_boolean1,
test_boolean2,
test_integer1,
test_integer2,
test_bigint1,
test_bigint2,
test_text1,
test_text2,
test_real1,
test_real2,
test_double1,
test_double2,
test_decimal1,
test_decimal2,
test_char1,
test_char2,
test2.test_id as test2_test_id,
test_name,
test_date
from test1 JOIN test2 on test1.test_id = test2.test_id;
drop view if exists "public"."v_generate_series";
create view "public"."v_generate_series" as select generate_series num from generate_series(0, 10);
CREATE OR REPLACE FUNCTION "public".increment_by_one(num INTEGER) RETURNS INTEGER AS $$
SELECT num + 1;
$$ LANGUAGE 'sql';
INSERT into public.test2 (test_name, test_date, test_number) values
('test 1', now(), 1),
('test 2', now(), 2),
('test 3', now(), 3),
('test 4', now(), 4),
('test 5', now(), 5),
('test 6', now(), 6),
('test 7', now(), 7),
('test 8', now(), 8),
('test 9', now(), 9)
;
|
<reponame>arianvaldivieso/pos
-- emv_ip_tran --
ALTER TABLE `phppos_registers` ADD `iptran_device_id` VARCHAR(255) NULL DEFAULT NULL AFTER `name`;
ALTER TABLE `phppos_registers` ADD `emv_terminal_id` VARCHAR(255) NULL DEFAULT NULL AFTER `iptran_device_id`; |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jan 02, 2022 at 08:28 AM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.26
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: `menglist`
--
-- --------------------------------------------------------
--
-- Table structure for table `folder`
--
CREATE TABLE `folder` (
`ID_FOLDER` int(11) NOT NULL,
`EMAIL_USER` varchar(100) DEFAULT NULL,
`NAMA_FOLDER` varchar(100) DEFAULT NULL,
`IMG_FOLDER` text DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `folder`
--
INSERT INTO `folder` (`ID_FOLDER`, `EMAIL_USER`, `NAMA_FOLDER`, `IMG_FOLDER`) VALUES
(5, '<EMAIL>', 'Folder 1', NULL),
(6, '<EMAIL>', 'Folder 2', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `master_color`
--
CREATE TABLE `master_color` (
`ID_MC` int(11) NOT NULL,
`NAMA_MC` varchar(100) DEFAULT NULL,
`BADGE_MC` varchar(100) DEFAULT NULL,
`COLOR_MC` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `master_color`
--
INSERT INTO `master_color` (`ID_MC`, `NAMA_MC`, `BADGE_MC`, `COLOR_MC`) VALUES
(1, 'DEFAULT', 'badge-light', 'gray'),
(2, 'BLUE', 'badge-light-primary', 'primary'),
(3, 'GRAY', 'badge-light-secondary', NULL),
(4, 'GREEN', 'badge-light-success', 'success'),
(5, 'MAGENTA', 'badge-light-info', 'info'),
(6, 'YELLOW', 'badge-light-warning', 'warning'),
(7, 'RED', 'badge-light-danger', 'danger'),
(8, 'DARK', 'badge-light-dark', 'dark');
-- --------------------------------------------------------
--
-- Table structure for table `master_priority`
--
CREATE TABLE `master_priority` (
`ID_MP` tinyint(4) NOT NULL,
`NAMA_MP` varchar(100) DEFAULT NULL,
`ALIAS_MP` varchar(10) DEFAULT NULL,
`COLOR_MP` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `master_priority`
--
INSERT INTO `master_priority` (`ID_MP`, `NAMA_MP`, `ALIAS_MP`, `COLOR_MP`) VALUES
(1, 'LOW', '!!!!!', 'text-secondary'),
(2, 'MEDIUM', '!!!!', 'text-success'),
(3, 'HIGH', '!!!', 'text-info'),
(4, 'IMPORTANT', '!!', 'text-warning'),
(5, 'URGENT', '!', 'text-danger');
-- --------------------------------------------------------
--
-- Table structure for table `tag`
--
CREATE TABLE `tag` (
`ID_TAG` int(11) NOT NULL,
`EMAIL_USER` varchar(100) DEFAULT NULL,
`NAMA_TAG` varchar(100) DEFAULT NULL,
`WARNA_TAG` varchar(7) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tag`
--
INSERT INTO `tag` (`ID_TAG`, `EMAIL_USER`, `NAMA_TAG`, `WARNA_TAG`) VALUES
(5, '<EMAIL>', 'Nature', '4'),
(6, '<EMAIL>', 'Global', '1'),
(7, '<EMAIL>', 'Politic', '7'),
(8, '<EMAIL>', 'Programming', '2'),
(9, '<EMAIL>', 'Magician', '8');
-- --------------------------------------------------------
--
-- Table structure for table `task`
--
CREATE TABLE `task` (
`ID_TASK` int(11) NOT NULL,
`EMAIL_USER` varchar(100) DEFAULT NULL,
`ID_FOLDER` varchar(10) DEFAULT NULL,
`NAMA_TASK` varchar(100) DEFAULT NULL,
`DESKRIPSI_TASK` text DEFAULT NULL,
`TGL_TASK` timestamp NULL DEFAULT NULL,
`ISFINISHED_TASK` binary(1) DEFAULT '0',
`PRIORITAS_TASK` smallint(6) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `task`
--
INSERT INTO `task` (`ID_TASK`, `EMAIL_USER`, `ID_FOLDER`, `NAMA_TASK`, `DESKRIPSI_TASK`, `TGL_TASK`, `ISFINISHED_TASK`, `PRIORITAS_TASK`) VALUES
(39, '<EMAIL>', '5', 'Menggembala', 'Menggembala sapi', '2022-01-02 19:00:00', 0x31, 4),
(40, '<EMAIL>', '6', 'Task yang berada di folder 2', '', NULL, 0x30, 0);
-- --------------------------------------------------------
--
-- Table structure for table `task_reminder`
--
CREATE TABLE `task_reminder` (
`ID_TASK` int(11) DEFAULT NULL,
`EMAIL_USER` varchar(100) DEFAULT NULL,
`REMINDER` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT current_timestamp(),
`STATUS` binary(1) DEFAULT '0',
`NAMA_REMINDER` varchar(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `task_reminder`
--
INSERT INTO `task_reminder` (`ID_TASK`, `EMAIL_USER`, `REMINDER`, `created_at`, `STATUS`, `NAMA_REMINDER`) VALUES
(39, '<EMAIL>', '2022-01-02 18:30:00', '2022-01-02 03:22:26', 0x30, '30 minutes ahead'),
(40, '<EMAIL>', '0000-00-00 00:00:00', '2022-01-02 03:56:46', 0x30, '5 minutes ahead');
-- --------------------------------------------------------
--
-- Table structure for table `task_tag`
--
CREATE TABLE `task_tag` (
`ID_TASK` int(11) DEFAULT NULL,
`ID_TAG` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `task_tag`
--
INSERT INTO `task_tag` (`ID_TASK`, `ID_TAG`) VALUES
(39, 5),
(39, 6),
(40, 5),
(40, 6);
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`EMAIL_USER` varchar(100) NOT NULL,
`PASSWORD_USER` text DEFAULT NULL,
`NAMA_USER` varchar(150) DEFAULT NULL,
`ISPREMIUM_USER` smallint(6) DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`EMAIL_USER`, `PASSWORD_USER`, `NAMA_USER`, `ISPREMIUM_USER`) VALUES
('<EMAIL>', '<PASSWORD>', '<NAME>', 0),
('<EMAIL>', '<PASSWORD>', '<NAME>', 0);
-- --------------------------------------------------------
--
-- Stand-in structure for view `v_tag`
-- (See below for the actual view)
--
CREATE TABLE `v_tag` (
`ID_TAG` int(11)
,`EMAIL_USER` varchar(100)
,`NAMA_TAG` varchar(100)
,`WARNA_TAG` varchar(7)
,`ID_MC` int(11)
,`NAMA_MC` varchar(100)
,`BADGE_MC` varchar(100)
,`COLOR_MC` varchar(100)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `v_task`
-- (See below for the actual view)
--
CREATE TABLE `v_task` (
`ID_TASK` int(11)
,`EMAIL_USER` varchar(100)
,`ID_FOLDER` varchar(10)
,`NAMA_TASK` varchar(100)
,`DESKRIPSI_TASK` text
,`TGL_TASK` timestamp
,`ISFINISHED_TASK` binary(1)
,`PRIORITAS_TASK` smallint(6)
,`NAMA_MP` varchar(100)
,`ALIAS_MP` varchar(10)
,`COLOR_MP` varchar(100)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `v_task_folder`
-- (See below for the actual view)
--
CREATE TABLE `v_task_folder` (
`ID_TASK` int(11)
,`EMAIL_USER` varchar(100)
,`ID_FOLDER` varchar(10)
,`NAMA_TASK` varchar(100)
,`DESKRIPSI_TASK` text
,`TGL_TASK` timestamp
,`ISFINISHED_TASK` binary(1)
,`PRIORITAS_TASK` smallint(6)
,`NAMA_FOLDER` varchar(100)
);
-- --------------------------------------------------------
--
-- Stand-in structure for view `v_task_tag`
-- (See below for the actual view)
--
CREATE TABLE `v_task_tag` (
`ID_TASK` int(11)
,`ID_TAG` int(11)
,`NAMA_TAG` varchar(100)
,`ISFINISHED_TASK` binary(1)
,`TGL_TASK` timestamp
,`BADGE_MC` varchar(100)
,`COLOR_MC` varchar(100)
);
-- --------------------------------------------------------
--
-- Structure for view `v_tag`
--
DROP TABLE IF EXISTS `v_tag`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_tag` AS SELECT `t`.`ID_TAG` AS `ID_TAG`, `t`.`EMAIL_USER` AS `EMAIL_USER`, `t`.`NAMA_TAG` AS `NAMA_TAG`, `t`.`WARNA_TAG` AS `WARNA_TAG`, `mc`.`ID_MC` AS `ID_MC`, `mc`.`NAMA_MC` AS `NAMA_MC`, `mc`.`BADGE_MC` AS `BADGE_MC`, `mc`.`COLOR_MC` AS `COLOR_MC` FROM (`tag` `t` join `master_color` `mc`) WHERE `t`.`WARNA_TAG` = `mc`.`ID_MC` ;
-- --------------------------------------------------------
--
-- Structure for view `v_task`
--
DROP TABLE IF EXISTS `v_task`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_task` AS SELECT `t`.`ID_TASK` AS `ID_TASK`, `t`.`EMAIL_USER` AS `EMAIL_USER`, `t`.`ID_FOLDER` AS `ID_FOLDER`, `t`.`NAMA_TASK` AS `NAMA_TASK`, `t`.`DESKRIPSI_TASK` AS `DESKRIPSI_TASK`, `t`.`TGL_TASK` AS `TGL_TASK`, `t`.`ISFINISHED_TASK` AS `ISFINISHED_TASK`, `t`.`PRIORITAS_TASK` AS `PRIORITAS_TASK`, `mp`.`NAMA_MP` AS `NAMA_MP`, `mp`.`ALIAS_MP` AS `ALIAS_MP`, `mp`.`COLOR_MP` AS `COLOR_MP` FROM (`task` `t` left join `master_priority` `mp` on(`t`.`PRIORITAS_TASK` = `mp`.`ID_MP`)) ;
-- --------------------------------------------------------
--
-- Structure for view `v_task_folder`
--
DROP TABLE IF EXISTS `v_task_folder`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_task_folder` AS SELECT `t`.`ID_TASK` AS `ID_TASK`, `t`.`EMAIL_USER` AS `EMAIL_USER`, `t`.`ID_FOLDER` AS `ID_FOLDER`, `t`.`NAMA_TASK` AS `NAMA_TASK`, `t`.`DESKRIPSI_TASK` AS `DESKRIPSI_TASK`, `t`.`TGL_TASK` AS `TGL_TASK`, `t`.`ISFINISHED_TASK` AS `ISFINISHED_TASK`, `t`.`PRIORITAS_TASK` AS `PRIORITAS_TASK`, `f`.`NAMA_FOLDER` AS `NAMA_FOLDER` FROM (`task` `t` join `folder` `f`) WHERE `t`.`ID_FOLDER` = `f`.`ID_FOLDER` ;
-- --------------------------------------------------------
--
-- Structure for view `v_task_tag`
--
DROP TABLE IF EXISTS `v_task_tag`;
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v_task_tag` AS SELECT `tt`.`ID_TASK` AS `ID_TASK`, `tt`.`ID_TAG` AS `ID_TAG`, `t`.`NAMA_TAG` AS `NAMA_TAG`, `ta`.`ISFINISHED_TASK` AS `ISFINISHED_TASK`, `ta`.`TGL_TASK` AS `TGL_TASK`, `mc`.`BADGE_MC` AS `BADGE_MC`, `mc`.`COLOR_MC` AS `COLOR_MC` FROM (((`task_tag` `tt` join `tag` `t`) join `task` `ta`) join `master_color` `mc`) WHERE `tt`.`ID_TASK` = `ta`.`ID_TASK` AND `tt`.`ID_TAG` = `t`.`ID_TAG` AND `t`.`WARNA_TAG` = `mc`.`ID_MC` ;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `folder`
--
ALTER TABLE `folder`
ADD PRIMARY KEY (`ID_FOLDER`),
ADD KEY `folder_FK` (`EMAIL_USER`);
--
-- Indexes for table `master_color`
--
ALTER TABLE `master_color`
ADD PRIMARY KEY (`ID_MC`);
--
-- Indexes for table `master_priority`
--
ALTER TABLE `master_priority`
ADD PRIMARY KEY (`ID_MP`);
--
-- Indexes for table `tag`
--
ALTER TABLE `tag`
ADD PRIMARY KEY (`ID_TAG`),
ADD KEY `hashtag_FK` (`EMAIL_USER`);
--
-- Indexes for table `task`
--
ALTER TABLE `task`
ADD PRIMARY KEY (`ID_TASK`),
ADD KEY `task_FK` (`EMAIL_USER`),
ADD KEY `task_FK_1` (`ID_FOLDER`);
--
-- Indexes for table `task_reminder`
--
ALTER TABLE `task_reminder`
ADD KEY `NewTable_FK` (`ID_TASK`);
--
-- Indexes for table `task_tag`
--
ALTER TABLE `task_tag`
ADD KEY `task_tag_FK` (`ID_TASK`),
ADD KEY `task_tag_FK_1` (`ID_TAG`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`EMAIL_USER`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `folder`
--
ALTER TABLE `folder`
MODIFY `ID_FOLDER` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `master_color`
--
ALTER TABLE `master_color`
MODIFY `ID_MC` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `master_priority`
--
ALTER TABLE `master_priority`
MODIFY `ID_MP` tinyint(4) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `tag`
--
ALTER TABLE `tag`
MODIFY `ID_TAG` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `task`
--
ALTER TABLE `task`
MODIFY `ID_TASK` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `folder`
--
ALTER TABLE `folder`
ADD CONSTRAINT `folder_FK` FOREIGN KEY (`EMAIL_USER`) REFERENCES `user` (`EMAIL_USER`);
--
-- Constraints for table `tag`
--
ALTER TABLE `tag`
ADD CONSTRAINT `hashtag_FK` FOREIGN KEY (`EMAIL_USER`) REFERENCES `user` (`EMAIL_USER`);
--
-- Constraints for table `task`
--
ALTER TABLE `task`
ADD CONSTRAINT `task_FK` FOREIGN KEY (`EMAIL_USER`) REFERENCES `user` (`EMAIL_USER`);
--
-- Constraints for table `task_reminder`
--
ALTER TABLE `task_reminder`
ADD CONSTRAINT `NewTable_FK` FOREIGN KEY (`ID_TASK`) REFERENCES `task` (`ID_TASK`);
--
-- Constraints for table `task_tag`
--
ALTER TABLE `task_tag`
ADD CONSTRAINT `task_tag_FK` FOREIGN KEY (`ID_TASK`) REFERENCES `task` (`ID_TASK`),
ADD CONSTRAINT `task_tag_FK_1` FOREIGN KEY (`ID_TAG`) REFERENCES `tag` (`ID_TAG`);
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 03, 2019 at 02:54 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.9
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `xcard`
--
-- --------------------------------------------------------
--
-- Table structure for table `banks`
--
CREATE TABLE `banks` (
`id` int(10) UNSIGNED NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `banks`
--
INSERT INTO `banks` (`id`, `image`, `code`, `created_at`, `updated_at`) VALUES
(1, '/uploads/banks/1/1575286147.png', '123456789987714', '2019-12-02 09:29:07', '2019-12-02 09:29:07'),
(2, '/uploads/banks/2/1575287662.png', '45484494684459456', '2019-12-02 09:54:22', '2019-12-02 09:54:22');
-- --------------------------------------------------------
--
-- Table structure for table `banks_translations`
--
CREATE TABLE `banks_translations` (
`id` int(10) UNSIGNED NOT NULL,
`bank_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `banks_translations`
--
INSERT INTO `banks_translations` (`id`, `bank_id`, `title`, `locale`) VALUES
(1, 1, 'التجاري وفا بنك', 'ar'),
(2, 1, 'attjari wafa bank', 'en'),
(3, 2, 'البنك الاهلي المصري', 'ar'),
(4, 2, 'Ahly Bank', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `blogs`
--
CREATE TABLE `blogs` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`category_id` int(10) UNSIGNED DEFAULT NULL,
`publish` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `blogs_products`
--
CREATE TABLE `blogs_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`blog_id` int(10) UNSIGNED DEFAULT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `blogs_tags`
--
CREATE TABLE `blogs_tags` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`tag_id` int(10) UNSIGNED DEFAULT NULL,
`blog_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `blog_categories`
--
CREATE TABLE `blog_categories` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `blog_categories`
--
INSERT INTO `blog_categories` (`id`, `created_at`, `updated_at`) VALUES
(1, '2019-12-01 06:05:32', '2019-12-01 06:05:32'),
(2, '2019-12-01 06:06:22', '2019-12-01 06:06:22');
-- --------------------------------------------------------
--
-- Table structure for table `blog_categories_translations`
--
CREATE TABLE `blog_categories_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`blog_category_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `blog_categories_translations`
--
INSERT INTO `blog_categories_translations` (`id`, `created_at`, `updated_at`, `blog_category_id`, `title`, `locale`) VALUES
(1, NULL, NULL, 2, 'سبورت', 'ar'),
(2, NULL, NULL, 2, 'Red Dead Redemption 2', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `blog_translations`
--
CREATE TABLE `blog_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`blog_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`parent_id` int(10) UNSIGNED DEFAULT NULL,
`main_menu` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `created_at`, `updated_at`, `parent_id`, `main_menu`) VALUES
(1, '2019-11-28 05:31:32', '2019-11-28 05:31:32', NULL, 1),
(2, '2019-11-28 05:32:20', '2019-11-28 05:32:20', NULL, 1),
(3, '2019-11-28 05:32:53', '2019-11-28 05:32:53', NULL, 1),
(4, '2019-11-28 05:33:30', '2019-11-28 05:33:30', NULL, 1),
(5, '2019-11-28 05:35:14', '2019-11-28 05:35:14', NULL, 1),
(6, '2019-11-28 05:38:10', '2019-11-28 05:38:10', NULL, 1);
-- --------------------------------------------------------
--
-- Table structure for table `categories_translations`
--
CREATE TABLE `categories_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`category_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories_translations`
--
INSERT INTO `categories_translations` (`id`, `created_at`, `updated_at`, `category_id`, `title`, `description`, `locale`) VALUES
(1, NULL, NULL, 1, 'العاب', 'العاب', 'ar'),
(2, NULL, NULL, 1, 'games', 'Games', 'en'),
(3, NULL, NULL, 2, 'بطاقات هدايا', 'بطاقات هدايا', 'ar'),
(4, NULL, NULL, 2, 'Gift Cards', 'Gift Cards', 'en'),
(5, NULL, NULL, 3, 'نقاط العاب', 'نقاط العاب', 'ar'),
(6, NULL, NULL, 3, 'Game Points', 'Game Points', 'en'),
(7, NULL, NULL, 4, 'اكس بوكس', 'اكس بوكس', 'ar'),
(8, NULL, NULL, 4, 'Xbox', 'Xbox', 'en'),
(9, NULL, NULL, 5, 'بلاي ستيشن', 'بلاي ستيشن', 'ar'),
(10, NULL, NULL, 5, 'PSN', 'PSN', 'en'),
(11, NULL, NULL, 6, 'نينتيندو', 'نينتيندو', 'ar'),
(12, NULL, NULL, 6, 'Nintendo', 'Nintendo', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `content_sections`
--
CREATE TABLE `content_sections` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`order` tinyint(4) NOT NULL,
`columns` tinyint(4) NOT NULL,
`type` enum('home','footer') COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `content_sections_products`
--
CREATE TABLE `content_sections_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`content_section_id` int(10) UNSIGNED DEFAULT NULL,
`product_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `content_sections_translations`
--
CREATE TABLE `content_sections_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`content_section_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `countries`
--
CREATE TABLE `countries` (
`id` int(10) UNSIGNED NOT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `countries`
--
INSERT INTO `countries` (`id`, `logo`, `code`, `created_at`, `updated_at`) VALUES
(1, '/uploads/country/1/1574941441.png', 'eg', '2019-11-28 09:44:01', '2019-11-28 09:44:01'),
(2, '/uploads/country/2/1574941472.png', 'ksa', '2019-11-28 09:44:32', '2019-11-28 09:44:32'),
(3, '/uploads/country/3/1574941496.png', 'usa', '2019-11-28 09:44:56', '2019-11-28 09:44:56');
-- --------------------------------------------------------
--
-- Table structure for table `countries_regions`
--
CREATE TABLE `countries_regions` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`country_id` int(10) UNSIGNED NOT NULL,
`region_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `countries_translations`
--
CREATE TABLE `countries_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`country_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `countries_translations`
--
INSERT INTO `countries_translations` (`id`, `created_at`, `updated_at`, `country_id`, `title`, `locale`) VALUES
(1, '2019-11-28 09:44:01', '2019-11-28 09:44:01', 1, 'مصر', 'ar'),
(2, '2019-11-28 09:44:01', '2019-11-28 09:44:01', 1, 'Egypt', 'en'),
(3, '2019-11-28 09:44:32', '2019-11-28 09:44:32', 2, 'السعودية', 'ar'),
(4, '2019-11-28 09:44:32', '2019-11-28 09:44:32', 2, 'Saudi Arabia', 'en'),
(5, '2019-11-28 09:44:56', '2019-11-28 09:44:56', 3, 'الولايات المتحده', 'ar'),
(6, '2019-11-28 09:44:56', '2019-11-28 09:44:56', 3, 'United Status', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `currencies`
--
CREATE TABLE `currencies` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`country_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `currencies`
--
INSERT INTO `currencies` (`id`, `created_at`, `updated_at`, `country_id`) VALUES
(1, '2019-11-28 09:48:03', '2019-11-28 09:48:03', 1),
(2, '2019-11-28 09:50:15', '2019-11-28 09:50:15', 2);
-- --------------------------------------------------------
--
-- Table structure for table `currencies_translation`
--
CREATE TABLE `currencies_translation` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency_id` int(10) UNSIGNED DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `currencies_translation`
--
INSERT INTO `currencies_translation` (`id`, `created_at`, `updated_at`, `title`, `code`, `currency_id`, `locale`) VALUES
(1, '2019-11-28 09:48:03', '2019-11-28 09:48:03', 'جنيه مصري', 'ج.م', 1, 'ar'),
(2, '2019-11-28 09:48:03', '2019-11-28 09:48:03', 'Egyptian Pound', 'EGP', 1, 'en'),
(3, '2019-11-28 09:50:15', '2019-11-28 09:50:15', 'ريال سعودي', 'ر.س', 2, 'ar'),
(4, '2019-11-28 09:50:15', '2019-11-28 09:50:15', 'Saudi Arabian Riyal', 'SAR', 2, 'en');
-- --------------------------------------------------------
--
-- Table structure for table `currency_convertor`
--
CREATE TABLE `currency_convertor` (
`id` int(10) UNSIGNED NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`rate` double DEFAULT NULL,
`last_update` date 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 `currency_convertor`
--
INSERT INTO `currency_convertor` (`id`, `code`, `rate`, `last_update`, `created_at`, `updated_at`) VALUES
(1, 'eg', 16.19, NULL, '2019-11-28 09:48:03', '2019-11-28 09:48:03'),
(2, 'ksa', 3.75, NULL, '2019-11-28 09:50:15', '2019-11-28 09:50:15');
-- --------------------------------------------------------
--
-- Table structure for table `discount_codes`
--
CREATE TABLE `discount_codes` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`discount` double DEFAULT NULL,
`count` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `files`
--
CREATE TABLE `files` (
`id` bigint(20) UNSIGNED NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`main` tinyint(4) NOT NULL DEFAULT 0,
`tag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`fileable_id` bigint(20) UNSIGNED DEFAULT NULL,
`fileable_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `files`
--
INSERT INTO `files` (`id`, `image`, `main`, `tag`, `fileable_id`, `fileable_type`, `created_at`, `updated_at`) VALUES
(1, '/uploads/products/1/1574936880Ld1NrkzKkv6z60GYLHxvCFdPt8mhXgHvrVo391W1qMM_1920x1080_1x-0.jpeg', 0, '1574936880Ld1NrkzKkv6z60GYLHxvCFdPt8mhXgHvrVo391W1qMM_1920x1080_1x-0.jpeg', 1, 'App\\Models\\Product', '2019-11-28 08:28:00', '2019-11-28 08:28:00'),
(2, '/uploads/products/1/157493688092I4YDzuleMqaJZliXlik4tCWp9bS2hU7f2H3vTfUVg_1920x1080_1x-0.jpeg', 0, '157493688092I4YDzuleMqaJZliXlik4tCWp9bS2hU7f2H3vTfUVg_1920x1080_1x-0.jpeg', 1, 'App\\Models\\Product', '2019-11-28 08:28:00', '2019-11-28 08:28:00'),
(3, '/uploads/products/1/1574936880sMggOp35Xv2GXnCAYZL6MuCK5WTMfBKPRTReDohzYGw_1920x1080_1x-0.jpeg', 0, '1574936880sMggOp35Xv2GXnCAYZL6MuCK5WTMfBKPRTReDohzYGw_1920x1080_1x-0.jpeg', 1, 'App\\Models\\Product', '2019-11-28 08:28:00', '2019-11-28 08:28:00'),
(4, '/uploads/products/1/1574936880MsY-YrLB7EZftF8FZy-RhTrCR_hjgrrG01SbmMTxvhA_1920x1080_1x-0.jpeg', 0, '1574936880MsY-YrLB7EZftF8FZy-RhTrCR_hjgrrG01SbmMTxvhA_1920x1080_1x-0.jpeg', 1, 'App\\Models\\Product', '2019-11-28 08:28:00', '2019-11-28 08:28:00'),
(5, '/uploads/products/1/1574936881xyIX0HT_1920x1080_1x-0.jpg', 0, '1574936881xyIX0HT_1920x1080_1x-0.jpg', 1, 'App\\Models\\Product', '2019-11-28 08:28:01', '2019-11-28 08:28:01'),
(6, '/uploads/products/1/1574936881DBX9dAH_1920x1080_1x-0.jpg', 0, '1574936881DBX9dAH_1920x1080_1x-0.jpg', 1, 'App\\Models\\Product', '2019-11-28 08:28:01', '2019-11-28 08:28:01'),
(9, '/uploads/products/1/1574939699Buy Red Dead Redemption 2 PC Rockstar Launcher key! - ENEBA.mkv', 1, '1574939699Buy Red Dead Redemption 2 PC Rockstar Launcher key! - ENEBA.mkv', 1, 'App\\Models\\Product', '2019-11-28 09:14:59', '2019-11-28 09:14:59'),
(10, '/uploads/products/2/1575360333KpgdN4zjBEa63y_-3YV3V600QewCDBP1u6Azv7ZfcXE_1920x1080_1x-0.jpeg', 0, '1575360333KpgdN4zjBEa63y_-3YV3V600QewCDBP1u6Azv7ZfcXE_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:33', '2019-12-03 06:05:33'),
(11, '/uploads/products/2/1575360334MJ9H_lT4LwRpse2UFsKP0oV17k1_3PgZfYuAqW5_YNA_1920x1080_1x-0.jpeg', 0, '1575360334MJ9H_lT4LwRpse2UFsKP0oV17k1_3PgZfYuAqW5_YNA_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:34', '2019-12-03 06:05:34'),
(12, '/uploads/products/2/1575360334-5h-bvFoPkSAIijC7n9rjxY8E5jlJ4v3_XB1nqhPNBY_1920x1080_1x-0.png', 0, '1575360334-5h-bvFoPkSAIijC7n9rjxY8E5jlJ4v3_XB1nqhPNBY_1920x1080_1x-0.png', 2, 'App\\Models\\Product', '2019-12-03 06:05:34', '2019-12-03 06:05:34'),
(13, '/uploads/products/2/1575360334lfXDu5WVNfUMZxwnG-R_wLgcTiMfks05dycqdu71Qfg_1920x1080_1x-0.jpeg', 0, '1575360334lfXDu5WVNfUMZxwnG-R_wLgcTiMfks05dycqdu71Qfg_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:34', '2019-12-03 06:05:34'),
(14, '/uploads/products/2/1575360335SioIuefGPPHXCQR7BHRj8tLVFRWF-PVAw568_Dbj-to_1920x1080_1x-0.jpeg', 0, '1575360335SioIuefGPPHXCQR7BHRj8tLVFRWF-PVAw568_Dbj-to_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:35', '2019-12-03 06:05:35'),
(15, '/uploads/products/2/1575360335qb4IN-uC3wctWYp5apxzyYs8NtCVv9jiAnRsRL_Jloo_1920x1080_1x-0.jpeg', 0, '1575360335qb4IN-uC3wctWYp5apxzyYs8NtCVv9jiAnRsRL_Jloo_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:35', '2019-12-03 06:05:35'),
(16, '/uploads/products/2/1575360335WP-xQ9nVUwHDELIUhFeWon_4Xu2C-MWeCadnsf2LgLc_1920x1080_1x-0.jpeg', 0, '1575360335WP-xQ9nVUwHDELIUhFeWon_4Xu2C-MWeCadnsf2LgLc_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:35', '2019-12-03 06:05:35'),
(17, '/uploads/products/2/15753603351b8EXKkE4Sa1BZxbjrDYW8WK2jXSaYD7MLXrQ7jSiRQ_1920x1080_1x-0.jpeg', 0, '15753603351b8EXKkE4Sa1BZxbjrDYW8WK2jXSaYD7MLXrQ7jSiRQ_1920x1080_1x-0.jpeg', 2, 'App\\Models\\Product', '2019-12-03 06:05:35', '2019-12-03 06:05:35'),
(18, '/uploads/products/2/1575360376Buy Call of Duty- Modern Warfare Green Gift key cheaper! - ENEBA.mkv', 1, '1575360376Buy Call of Duty- Modern Warfare Green Gift key cheaper! - ENEBA.mkv', 2, 'App\\Models\\Product', '2019-12-03 06:06:16', '2019-12-03 06:06:16');
-- --------------------------------------------------------
--
-- Table structure for table `gamedetails_products`
--
CREATE TABLE `gamedetails_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`game_detail_id` int(10) UNSIGNED DEFAULT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `gamedetails_products`
--
INSERT INTO `gamedetails_products` (`id`, `created_at`, `updated_at`, `game_detail_id`, `product_id`) VALUES
(1, '2019-12-02 07:45:55', '2019-12-02 07:45:55', 1, 1),
(2, '2019-12-02 07:45:55', '2019-12-02 07:45:55', 2, 1),
(3, '2019-12-02 07:45:56', '2019-12-02 07:45:56', 3, 1),
(4, '2019-12-02 07:45:56', '2019-12-02 07:45:56', 5, 1),
(5, '2019-12-02 07:45:56', '2019-12-02 07:45:56', 6, 1),
(6, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 1, 2),
(7, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 2, 2),
(8, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 3, 2),
(9, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 4, 2),
(10, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 5, 2),
(11, '2019-12-03 06:07:56', '2019-12-03 06:07:56', 6, 2);
-- --------------------------------------------------------
--
-- Table structure for table `game_details`
--
CREATE TABLE `game_details` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `game_details`
--
INSERT INTO `game_details` (`id`, `created_at`, `updated_at`, `image`) VALUES
(1, '2019-11-28 06:01:31', '2019-11-28 06:01:31', '/uploads/game_details/1/1574928091.svg'),
(2, '2019-11-28 06:08:40', '2019-11-28 06:08:40', '/uploads/game_details/2/1574928520.svg'),
(3, '2019-11-28 06:09:19', '2019-11-28 06:09:19', '/uploads/game_details/3/1574928559.svg'),
(4, '2019-11-28 06:09:39', '2019-11-28 06:09:39', '/uploads/game_details/4/1574928579.svg'),
(5, '2019-11-28 06:10:43', '2019-11-28 06:10:43', '/uploads/game_details/5/1574928643.svg'),
(6, '2019-11-28 06:11:13', '2019-11-28 06:11:13', '/uploads/game_details/6/1574928673.svg');
-- --------------------------------------------------------
--
-- Table structure for table `game_details_translations`
--
CREATE TABLE `game_details_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`game_detail_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `game_details_translations`
--
INSERT INTO `game_details_translations` (`id`, `created_at`, `updated_at`, `game_detail_id`, `title`, `locale`) VALUES
(1, '2019-11-28 06:01:31', '2019-11-28 06:01:31', 1, 'Rates 18+ (Mature)', 'ar'),
(2, '2019-11-28 06:01:32', '2019-11-28 06:01:32', 1, 'Rates 18+ (Mature)', 'en'),
(3, '2019-11-28 06:08:40', '2019-11-28 06:08:40', 2, 'لاعب واحد', 'ar'),
(4, '2019-11-28 06:08:40', '2019-11-28 06:08:40', 2, 'Single-player', 'en'),
(5, '2019-11-28 06:09:19', '2019-11-28 06:09:19', 3, 'نتعدد', 'ar'),
(6, '2019-11-28 06:09:19', '2019-11-28 06:09:19', 3, 'Multiplayer', 'en'),
(7, '2019-11-28 06:09:39', '2019-11-28 06:09:39', 4, 'تعاون', 'ar'),
(8, '2019-11-28 06:09:39', '2019-11-28 06:09:39', 4, 'Co-op', 'en'),
(9, '2019-11-28 06:10:43', '2019-11-28 06:10:43', 5, 'منظور الشخص الثالث', 'ar'),
(10, '2019-11-28 06:10:43', '2019-11-28 06:10:43', 5, 'Third-person', 'en'),
(11, '2019-11-28 06:11:13', '2019-11-28 06:11:13', 6, 'منظور الشخص الاول', 'ar'),
(12, '2019-11-28 06:11:13', '2019-11-28 06:11:13', 6, 'First-person', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `genre`
--
CREATE TABLE `genre` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `genre`
--
INSERT INTO `genre` (`id`, `created_at`, `updated_at`) VALUES
(1, '2019-11-28 05:43:25', '2019-11-28 05:43:25'),
(2, '2019-11-28 05:43:53', '2019-11-28 05:43:53'),
(3, '2019-11-28 05:44:13', '2019-11-28 05:44:13'),
(4, '2019-11-28 05:45:02', '2019-11-28 05:45:02'),
(5, '2019-11-28 05:45:23', '2019-11-28 05:45:23'),
(6, '2019-11-28 05:46:20', '2019-11-28 05:46:20');
-- --------------------------------------------------------
--
-- Table structure for table `genres_products`
--
CREATE TABLE `genres_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`genre_id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `genres_products`
--
INSERT INTO `genres_products` (`id`, `created_at`, `updated_at`, `genre_id`, `product_id`) VALUES
(1, '2019-12-02 07:46:03', '2019-12-02 07:46:03', 3, 1),
(2, '2019-12-02 07:46:03', '2019-12-02 07:46:03', 4, 1),
(3, '2019-12-02 07:46:03', '2019-12-02 07:46:03', 5, 1),
(4, '2019-12-03 06:08:05', '2019-12-03 06:08:05', 3, 2),
(5, '2019-12-03 06:08:05', '2019-12-03 06:08:05', 4, 2),
(6, '2019-12-03 06:08:05', '2019-12-03 06:08:05', 5, 2),
(7, '2019-12-03 06:08:05', '2019-12-03 06:08:05', 6, 2);
-- --------------------------------------------------------
--
-- Table structure for table `genre_translations`
--
CREATE TABLE `genre_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`genre_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `genre_translations`
--
INSERT INTO `genre_translations` (`id`, `created_at`, `updated_at`, `title`, `locale`, `genre_id`) VALUES
(1, '2019-11-28 05:43:25', '2019-11-28 05:43:25', 'سبورت', 'ar', 1),
(2, '2019-11-28 05:43:25', '2019-11-28 05:43:25', 'Sport', 'en', 1),
(3, '2019-11-28 05:43:53', '2019-11-28 05:43:54', 'سميولشن', 'ar', 2),
(4, '2019-11-28 05:43:54', '2019-11-28 05:43:54', 'Simulation', 'en', 2),
(5, '2019-11-28 05:44:13', '2019-11-28 05:44:13', 'اكشن', 'ar', 3),
(6, '2019-11-28 05:44:13', '2019-11-28 05:44:13', 'Action', 'en', 3),
(7, '2019-11-28 05:45:02', '2019-11-28 05:45:02', 'مغامرة', 'ar', 4),
(8, '2019-11-28 05:45:02', '2019-11-28 05:45:02', 'Adventure', 'en', 4),
(9, '2019-11-28 05:45:23', '2019-11-28 05:45:23', 'FPS / TPS', 'ar', 5),
(10, '2019-11-28 05:45:23', '2019-11-28 05:45:23', 'FPS / TPS', 'en', 5),
(11, '2019-11-28 05:46:20', '2019-11-28 05:46:20', 'استراتيجي', 'ar', 6),
(12, '2019-11-28 05:46:20', '2019-11-28 05:46:21', 'Strategy', 'en', 6);
-- --------------------------------------------------------
--
-- Table structure for table `languages`
--
CREATE TABLE `languages` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `languages`
--
INSERT INTO `languages` (`id`, `created_at`, `updated_at`) VALUES
(1, '2019-11-28 06:11:46', '2019-11-28 06:11:46'),
(2, '2019-11-28 06:12:02', '2019-11-28 06:12:02'),
(3, '2019-11-28 06:12:23', '2019-11-28 06:12:23'),
(4, '2019-11-28 06:12:39', '2019-11-28 06:12:39'),
(5, '2019-11-28 06:12:58', '2019-11-28 06:12:58');
-- --------------------------------------------------------
--
-- Table structure for table `languages_products`
--
CREATE TABLE `languages_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`language_id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `languages_products`
--
INSERT INTO `languages_products` (`id`, `created_at`, `updated_at`, `language_id`, `product_id`) VALUES
(1, '2019-12-02 07:45:43', '2019-12-02 07:45:43', 1, 1),
(2, '2019-12-02 07:45:43', '2019-12-02 07:45:43', 2, 1),
(3, '2019-12-02 07:45:43', '2019-12-02 07:45:43', 3, 1),
(4, '2019-12-03 06:07:38', '2019-12-03 06:07:38', 2, 2),
(5, '2019-12-03 06:07:38', '2019-12-03 06:07:38', 3, 2),
(6, '2019-12-03 06:07:38', '2019-12-03 06:07:38', 4, 2),
(7, '2019-12-03 06:07:38', '2019-12-03 06:07:38', 5, 2);
-- --------------------------------------------------------
--
-- Table structure for table `languages_translations`
--
CREATE TABLE `languages_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`language_id` int(10) UNSIGNED DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `languages_translations`
--
INSERT INTO `languages_translations` (`id`, `created_at`, `updated_at`, `title`, `language_id`, `locale`) VALUES
(1, '2019-11-28 06:11:46', '2019-11-28 06:11:46', 'عربي', 1, 'ar'),
(2, '2019-11-28 06:11:46', '2019-11-28 06:11:46', 'Arabic', 1, 'en'),
(3, '2019-11-28 06:12:02', '2019-11-28 06:12:02', 'انجليزي', 2, 'ar'),
(4, '2019-11-28 06:12:02', '2019-11-28 06:12:02', 'English', 2, 'en'),
(5, '2019-11-28 06:12:23', '2019-11-28 06:12:23', 'فرنسي', 3, 'ar'),
(6, '2019-11-28 06:12:23', '2019-11-28 06:12:23', 'French', 3, 'en'),
(7, '2019-11-28 06:12:39', '2019-11-28 06:12:39', 'ايطالي', 4, 'ar'),
(8, '2019-11-28 06:12:39', '2019-11-28 06:12:39', 'Italian', 4, 'en'),
(9, '2019-11-28 06:12:58', '2019-11-28 06:12:58', 'روسي', 5, 'ar'),
(10, '2019-11-28 06:12:58', '2019-11-28 06:12:58', 'Russian', 5, 'en');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_100000_create_password_resets_table', 1),
(2, '2019_11_20_081032_create_permission_tables', 1),
(3, '2019_11_21_0072242_create_products_categories_table', 1),
(4, '2019_11_21_072242_create_Game_details_table', 1),
(5, '2019_11_21_072242_create_Products_Images_table', 1),
(6, '2019_11_21_072242_create_Social_links_table', 1),
(7, '2019_11_21_072242_create_blog_categories_table', 1),
(8, '2019_11_21_072242_create_blog_categories_translations_table', 1),
(9, '2019_11_21_072242_create_blog_translations_table', 1),
(10, '2019_11_21_072242_create_blogs_products_table', 1),
(11, '2019_11_21_072242_create_blogs_table', 1),
(12, '2019_11_21_072242_create_blogs_tags_table', 1),
(13, '2019_11_21_072242_create_categories_table', 1),
(14, '2019_11_21_072242_create_categories_translations_table', 1),
(15, '2019_11_21_072242_create_content_sections_products_table', 1),
(16, '2019_11_21_072242_create_content_sections_table', 1),
(17, '2019_11_21_072242_create_content_sections_translations_table', 1),
(18, '2019_11_21_072242_create_countries_regions_table', 1),
(19, '2019_11_21_072242_create_countries_table', 1),
(20, '2019_11_21_072242_create_countries_translations_table', 1),
(21, '2019_11_21_072242_create_currencies_table', 1),
(22, '2019_11_21_072242_create_currencies_translation_table', 1),
(23, '2019_11_21_072242_create_discount_codes_table', 1),
(24, '2019_11_21_072242_create_gameDetails_products_table', 1),
(25, '2019_11_21_072242_create_game_details_translations_table', 1),
(26, '2019_11_21_072242_create_genre_table', 1),
(27, '2019_11_21_072242_create_genre_translations_table', 1),
(28, '2019_11_21_072242_create_genres_products_table', 1),
(29, '2019_11_21_072242_create_languages_products_table', 1),
(30, '2019_11_21_072242_create_languages_table', 1),
(31, '2019_11_21_072242_create_languages_translations_table', 1),
(32, '2019_11_21_072242_create_newsletters_table', 1),
(33, '2019_11_21_072242_create_phones_table', 1),
(34, '2019_11_21_072242_create_platforms_table', 1),
(35, '2019_11_21_072242_create_platforms_translations_table', 1),
(36, '2019_11_21_072242_create_products_table', 1),
(37, '2019_11_21_072242_create_products_translations_table', 1),
(38, '2019_11_21_072242_create_ratings_table', 1),
(39, '2019_11_21_072242_create_regions_table', 1),
(40, '2019_11_21_072242_create_regions_translations_table', 1),
(41, '2019_11_21_072242_create_related_products_table', 1),
(42, '2019_11_21_072242_create_settings_table', 1),
(43, '2019_11_21_072242_create_settings_translations_table', 1),
(44, '2019_11_21_072242_create_site_languages_table', 1),
(45, '2019_11_21_072242_create_sliders_table', 1),
(46, '2019_11_21_072242_create_sliders_translations_table', 1),
(47, '2019_11_21_072242_create_tag_translations_table', 1),
(48, '2019_11_21_072242_create_tags_table', 1),
(49, '2019_11_21_072242_create_users_ratings_table', 1),
(50, '2019_11_21_072242_create_users_table', 1),
(51, '2019_11_21_072242_create_works_on_table', 1),
(52, '2019_11_21_072252_create_foreign_keys', 1),
(53, '2019_11_25_075757_create_files_table', 1),
(54, '2019_11_25_181531_create_currency_convertor_table', 1),
(55, '2019_11_26_115307_create__products__codes_table', 1),
(56, '2019_12_02_105011_create_banks_table', 2),
(57, '2019_12_02_105210_create_banks_translations_table', 2),
(58, '2019_12_02_131359_create_orders_table', 3),
(59, '2019_12_02_131904_create_order_items_table', 3),
(60, '2019_12_02_132124_create_transactions_table', 3);
-- --------------------------------------------------------
--
-- Table structure for table `model_has_permissions`
--
CREATE TABLE `model_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `model_has_permissions`
--
INSERT INTO `model_has_permissions` (`permission_id`, `model_type`, `model_id`) VALUES
(1, 'App\\Admin', 1),
(2, 'App\\Admin', 1),
(3, 'App\\Admin', 1),
(4, 'App\\Admin', 1),
(5, 'App\\Admin', 1),
(6, 'App\\Admin', 1),
(7, 'App\\Admin', 1),
(8, 'App\\Admin', 1),
(9, 'App\\Admin', 1),
(10, 'App\\Admin', 1),
(11, 'App\\Admin', 1),
(12, 'App\\Admin', 1),
(13, 'App\\Admin', 1),
(14, 'App\\Admin', 1),
(15, 'App\\Admin', 1),
(16, 'App\\Admin', 1),
(17, 'App\\Admin', 1),
(18, 'App\\Admin', 1),
(19, 'App\\Admin', 1),
(20, 'App\\Admin', 1),
(21, 'App\\Admin', 1),
(22, 'App\\Admin', 1),
(23, 'App\\Admin', 1),
(24, 'App\\Admin', 1),
(25, 'App\\Admin', 1),
(26, 'App\\Admin', 1),
(27, 'App\\Admin', 1),
(28, 'App\\Admin', 1),
(29, 'App\\Admin', 1),
(30, 'App\\Admin', 1),
(31, 'App\\Admin', 1),
(32, 'App\\Admin', 1),
(33, 'App\\Admin', 1),
(34, 'App\\Admin', 1),
(35, 'App\\Admin', 1),
(36, 'App\\Admin', 1),
(37, 'App\\Admin', 1),
(38, 'App\\Admin', 1),
(39, 'App\\Admin', 1),
(40, 'App\\Admin', 1),
(41, 'App\\Admin', 1),
(42, 'App\\Admin', 1),
(43, 'App\\Admin', 1),
(44, 'App\\Admin', 1),
(45, 'App\\Admin', 1),
(46, 'App\\Admin', 1),
(47, 'App\\Admin', 1),
(48, 'App\\Admin', 1),
(49, 'App\\Admin', 1),
(50, 'App\\Admin', 1),
(51, 'App\\Admin', 1),
(52, 'App\\Admin', 1),
(53, 'App\\Admin', 1),
(54, 'App\\Admin', 1),
(55, 'App\\Admin', 1),
(56, 'App\\Admin', 1),
(57, 'App\\Admin', 1),
(58, 'App\\Admin', 1),
(59, 'App\\Admin', 1),
(60, 'App\\Admin', 1);
-- --------------------------------------------------------
--
-- Table structure for table `model_has_roles`
--
CREATE TABLE `model_has_roles` (
`role_id` bigint(20) UNSIGNED NOT NULL,
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`model_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `model_has_roles`
--
INSERT INTO `model_has_roles` (`role_id`, `model_type`, `model_id`) VALUES
(2, 'App\\User', 2),
(2, 'App\\User', 4),
(2, 'App\\User', 5),
(2, 'App\\User', 6),
(2, 'App\\User', 7),
(2, 'App\\User', 8),
(2, 'App\\User', 9),
(2, 'App\\User', 10),
(2, 'App\\User', 11),
(2, 'App\\User', 12),
(2, 'App\\User', 13),
(2, 'App\\User', 14),
(2, 'App\\User', 15),
(2, 'App\\User', 16),
(2, 'App\\User', 17),
(2, 'App\\User', 18),
(2, 'App\\User', 19),
(2, 'App\\User', 20),
(2, 'App\\User', 21),
(2, 'App\\User', 22),
(2, 'App\\User', 23),
(2, 'App\\User', 24),
(2, 'App\\User', 25),
(2, 'App\\User', 26),
(2, 'App\\User', 27),
(2, 'App\\User', 28),
(2, 'App\\User', 29),
(2, 'App\\User', 30),
(2, 'App\\User', 31);
-- --------------------------------------------------------
--
-- Table structure for table `newsletters`
--
CREATE TABLE `newsletters` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `newsletters`
--
INSERT INTO `newsletters` (`id`, `created_at`, `updated_at`, `email`) VALUES
(1, '2019-12-01 06:51:00', '2019-12-01 06:51:00', '<EMAIL>');
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED DEFAULT NULL,
`orderNumber` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` enum('wait','refused','accepted','shipped','complete') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'wait',
`total` double 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 `orders`
--
INSERT INTO `orders` (`id`, `user_id`, `orderNumber`, `status`, `total`, `created_at`, `updated_at`) VALUES
(1, 30, '7178322', 'wait', 2428, '2019-12-03 11:24:27', '2019-12-03 11:24:27'),
(2, 31, '9985220', 'wait', 2186, '2019-12-03 11:39:11', '2019-12-03 11:39:11');
-- --------------------------------------------------------
--
-- Table structure for table `order_items`
--
CREATE TABLE `order_items` (
`id` int(10) UNSIGNED NOT NULL,
`order_id` int(10) UNSIGNED DEFAULT NULL,
`type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`type_id` int(10) UNSIGNED DEFAULT NULL,
`count` int(11) DEFAULT NULL,
`price` double 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 `order_items`
--
INSERT INTO `order_items` (`id`, `order_id`, `type`, `type_id`, `count`, `price`, `created_at`, `updated_at`) VALUES
(1, 1, NULL, 2, 1, 971, '2019-12-03 11:24:27', '2019-12-03 11:24:27'),
(2, 1, NULL, 1, 2, 729, '2019-12-03 11:24:27', '2019-12-03 11:24:27'),
(3, 2, NULL, 1, 3, 729, '2019-12-03 11:39:11', '2019-12-03 11:39:11');
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `permissions`
--
CREATE TABLE `permissions` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`desc` text COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `permissions`
--
INSERT INTO `permissions` (`id`, `name`, `guard_name`, `desc`, `created_at`, `updated_at`) VALUES
(1, 'Permission-Add', 'admin', 'إضافة صلاحية', '2019-11-28 05:25:50', '2019-11-28 05:25:50'),
(2, 'Permission-Edit', 'admin', 'تعديل صلاحية', '2019-11-28 05:25:51', '2019-11-28 05:25:51'),
(3, 'Permission-Delete', 'admin', 'حذف صلاحية', '2019-11-28 05:25:51', '2019-11-28 05:25:51'),
(4, 'Role-Add', 'admin', 'اضافه مجموعه مستخدمين', '2019-11-28 05:25:51', '2019-11-28 05:25:51'),
(5, 'Role-Edit', 'admin', 'تعديل مجموعه مستخدمين', '2019-11-28 05:25:52', '2019-11-28 05:25:52'),
(6, 'Role-Delete', 'admin', 'حذف مجموعه مستخدمين', '2019-11-28 05:25:52', '2019-11-28 05:25:52'),
(7, 'Show-Adminpanel', 'admin', 'عرض لوحة التحكم', '2019-11-28 05:25:52', '2019-11-28 05:25:52'),
(8, 'AdminUser-Add', 'admin', '<NAME>', '2019-11-28 05:25:52', '2019-11-28 05:25:52'),
(9, 'AdminUser-Edit', 'admin', 'تعديل ادمن', '2019-11-28 05:25:53', '2019-11-28 05:25:53'),
(10, 'AdminUser-Delete', 'admin', 'حذف ادمن', '2019-11-28 05:25:53', '2019-11-28 05:25:53'),
(11, 'FrontUser-Add', 'admin', 'اضافه مستخدم', '2019-11-28 05:25:53', '2019-11-28 05:25:53'),
(12, 'FrontUser-Edit', 'admin', 'تعديل مستخدم', '2019-11-28 05:25:53', '2019-11-28 05:25:53'),
(13, 'FrontUser-Delete', 'admin', 'حذف مستخدم', '2019-11-28 05:25:54', '2019-11-28 05:25:54'),
(14, 'NewsLetter-Add', 'admin', 'إضافة مستخدم للنشرة الإخبارية', '2019-11-28 05:25:54', '2019-11-28 05:25:54'),
(15, 'SiteSetting-Add', 'admin', 'إضافة إعدادات الموقع', '2019-11-28 05:25:54', '2019-11-28 05:25:54'),
(16, 'SiteLanguage-Add', 'admin', 'إضافة لغة للموقع', '2019-11-28 05:25:54', '2019-11-28 05:25:54'),
(17, 'SiteLanguage-Edit', 'admin', 'تعديل لغة للموقع', '2019-11-28 05:25:54', '2019-11-28 05:25:54'),
(18, 'SiteLanguage-Delete', 'admin', 'حذف لغة للموقع', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(19, 'Country-Add', 'admin', 'إضافة دولة', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(20, 'Country-Edit', 'admin', 'تعديل دولة', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(21, 'Country-Delete', 'admin', 'حذف دولة', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(22, 'Currency-Add', 'admin', 'إضافة عملة', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(23, 'Currency-Edit', 'admin', 'تعديل عملة', '2019-11-28 05:25:55', '2019-11-28 05:25:55'),
(24, 'Currency-Delete', 'admin', 'حذف عملة', '2019-11-28 05:25:56', '2019-11-28 05:25:56'),
(25, 'GameLanguage-Add', 'admin', 'إضافة لغة للعبة', '2019-11-28 05:25:56', '2019-11-28 05:25:56'),
(26, 'GameLanguage-Edit', 'admin', 'تعديل لغة للعبة', '2019-11-28 05:25:56', '2019-11-28 05:25:56'),
(27, 'GameLanguage-Delete', 'admin', 'حذف لغة للعبة', '2019-11-28 05:25:56', '2019-11-28 05:25:56'),
(28, 'GameDetails-Add', 'admin', 'إضافة تفاصيل للعبة', '2019-11-28 05:25:56', '2019-11-28 05:25:56'),
(29, 'GameDetails-Edit', 'admin', 'تعديل تفاصيل للعبة', '2019-11-28 05:25:57', '2019-11-28 05:25:57'),
(30, 'GameDetails-Delete', 'admin', 'حذف تفاصيل للعبة', '2019-11-28 05:25:57', '2019-11-28 05:25:57'),
(31, 'Slider-Add', 'admin', 'إضافة سليدر', '2019-11-28 05:25:57', '2019-11-28 05:25:57'),
(32, 'Slider-Edit', 'admin', 'تعديل سليدر', '2019-11-28 05:25:57', '2019-11-28 05:25:57'),
(33, 'Slider-Delete', 'admin', 'حذف سليدر', '2019-11-28 05:25:57', '2019-11-28 05:25:57'),
(34, 'Region-Add', 'admin', 'إضافة منطقة', '2019-11-28 05:25:58', '2019-11-28 05:25:58'),
(35, 'Region-Edit', 'admin', 'تعديل منطقة', '2019-11-28 05:25:58', '2019-11-28 05:25:58'),
(36, 'Region-Delete', 'admin', 'حذف منطقة', '2019-11-28 05:25:58', '2019-11-28 05:25:58'),
(37, 'Genres-Add', 'admin', 'إضافة نوع', '2019-11-28 05:25:58', '2019-11-28 05:25:58'),
(38, 'Genres-Edit', 'admin', 'تعديل نوع', '2019-11-28 05:25:58', '2019-11-28 05:25:58'),
(39, 'Genres-Delete', 'admin', 'حذف نوع', '2019-11-28 05:25:59', '2019-11-28 05:25:59'),
(40, 'PlatForm-Add', 'admin', 'إضافة منصة', '2019-11-28 05:25:59', '2019-11-28 05:25:59'),
(41, 'PlatForm-Edit', 'admin', 'تعديل منصة', '2019-11-28 05:25:59', '2019-11-28 05:25:59'),
(42, 'PlatForm-Delete', 'admin', 'حذف منصة', '2019-11-28 05:25:59', '2019-11-28 05:25:59'),
(43, 'ProductCategory-Add', 'admin', 'إضافة قسم للمنتجات', '2019-11-28 05:25:59', '2019-11-28 05:25:59'),
(44, 'ProductCategory-Edit', 'admin', 'تعديل قسم للمنتجات', '2019-11-28 05:26:00', '2019-11-28 05:26:00'),
(45, 'ProductCategory-Delete', 'admin', 'حذف قسم للمنتجات', '2019-11-28 05:26:00', '2019-11-28 05:26:00'),
(46, 'Product-Add', 'admin', 'إضافة منتج', '2019-11-28 05:26:00', '2019-11-28 05:26:00'),
(47, 'Product-Edit', 'admin', 'تعديل منتج', '2019-11-28 05:26:00', '2019-11-28 05:26:00'),
(48, 'Product-Delete', 'admin', 'حذف منتج', '2019-11-28 05:26:01', '2019-11-28 05:26:01'),
(49, 'WorkOn-Add', 'admin', 'إضافة العمل علي', '2019-11-28 05:26:01', '2019-11-28 05:26:01'),
(50, 'WorkOn-Edit', 'admin', 'تعديل العمل علي', '2019-11-28 05:26:01', '2019-11-28 05:26:01'),
(51, 'WorkOn-Delete', 'admin', 'حذف العمل علي', '2019-11-28 05:26:01', '2019-11-28 05:26:01'),
(52, 'Tag-Add', 'admin', 'إضافة تاج', '2019-11-28 05:26:02', '2019-11-28 05:26:02'),
(53, 'Tag-Edit', 'admin', 'تعديل تاج', '2019-11-28 05:26:02', '2019-11-28 05:26:02'),
(54, 'Tag-Delete', 'admin', 'حذف تاج', '2019-11-28 05:26:02', '2019-11-28 05:26:02'),
(55, 'BlogCategory-Add', 'admin', 'إضافة قسم للمدونة', '2019-11-28 05:26:02', '2019-11-28 05:26:02'),
(56, 'BlogCategory-Edit', 'admin', 'تعديل قسم للمدونة', '2019-11-28 05:26:02', '2019-11-28 05:26:02'),
(57, 'BlogCategory-Delete', 'admin', 'حذف قسم للمدونة', '2019-11-28 05:26:03', '2019-11-28 05:26:03'),
(58, 'Blog-Add', 'admin', 'إضافة مدونة', '2019-11-28 05:26:03', '2019-11-28 05:26:03'),
(59, 'Blog-Edit', 'admin', 'تعديل مدونة', '2019-11-28 05:26:03', '2019-11-28 05:26:03'),
(60, 'Blog-Delete', 'admin', 'حذف مدونة', '2019-11-28 05:26:03', '2019-11-28 05:26:03');
-- --------------------------------------------------------
--
-- Table structure for table `phones`
--
CREATE TABLE `phones` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`phone` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`phoneable_id` int(10) UNSIGNED DEFAULT NULL,
`phoneable_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `phones`
--
INSERT INTO `phones` (`id`, `created_at`, `updated_at`, `phone`, `phoneable_id`, `phoneable_type`) VALUES
(1, '2019-12-03 05:44:24', '2019-12-03 05:44:24', '1234567892', 1, 'App\\Models\\Setting'),
(2, '2019-12-03 05:44:24', '2019-12-03 05:44:24', '1564684531', 1, 'App\\Models\\Setting'),
(3, '2019-12-03 05:57:54', '2019-12-03 05:57:54', '154848446847', 1, 'App\\Models\\Setting'),
(4, '2019-12-03 05:57:54', '2019-12-03 05:57:54', '1234567892', 1, 'App\\Models\\Setting');
-- --------------------------------------------------------
--
-- Table structure for table `platforms`
--
CREATE TABLE `platforms` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `platforms`
--
INSERT INTO `platforms` (`id`, `created_at`, `updated_at`, `image`) VALUES
(1, '2019-11-28 05:47:27', '2019-11-28 05:47:27', '/uploads/platform/1/1574927247.png'),
(2, '2019-11-28 05:54:47', '2019-11-28 05:54:48', '/uploads/platform/2/1574927688.png'),
(3, '2019-11-28 05:58:43', '2019-11-28 05:58:43', '/uploads/platform/3/1574927923.png'),
(4, '2019-12-03 05:15:49', '2019-12-03 05:15:49', '/uploads/platform/4/1575357349.png');
-- --------------------------------------------------------
--
-- Table structure for table `platforms_translations`
--
CREATE TABLE `platforms_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`platform_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `platforms_translations`
--
INSERT INTO `platforms_translations` (`id`, `created_at`, `updated_at`, `platform_id`, `title`, `locale`) VALUES
(1, '2019-11-28 05:47:27', '2019-11-28 05:47:27', 1, 'ستيم', 'ar'),
(2, '2019-11-28 05:47:27', '2019-11-28 05:47:27', 1, 'Steam', 'en'),
(3, '2019-11-28 05:54:48', '2019-11-28 05:54:48', 2, 'روك ستار', 'ar'),
(4, '2019-11-28 05:54:48', '2019-11-28 05:54:48', 2, 'Rockstar Games Launcher', 'en'),
(5, '2019-11-28 05:58:43', '2019-11-28 05:58:43', 3, 'اورجين', 'ar'),
(6, '2019-11-28 05:58:43', '2019-11-28 05:58:43', 3, 'Origin', 'en'),
(7, '2019-12-03 05:15:49', '2019-12-03 05:15:49', 4, 'اكس بوكس', 'ar'),
(8, '2019-12-03 05:15:49', '2019-12-03 05:15:49', 4, 'Xbox', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`main_image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quantity` int(11) DEFAULT NULL,
`price` decimal(8,2) DEFAULT NULL,
`release_date` date DEFAULT NULL,
`developers` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`publishers` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`works_on_id` int(10) UNSIGNED DEFAULT NULL,
`platform_id` int(10) UNSIGNED DEFAULT NULL,
`region_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `created_at`, `updated_at`, `main_image`, `quantity`, `price`, `release_date`, `developers`, `publishers`, `works_on_id`, `platform_id`, `region_id`) VALUES
(1, '2019-11-28 06:24:54', '2019-11-28 08:57:17', '/uploads/products/1/bGeW1LsmssqOC8LuM7LGp63rHWLTTumF0lbI8f4b.jpeg', 10, '45.00', '2019-11-05', 'Rockstar Games', 'Rockstar Games', 4, 2, 1),
(2, '2019-12-03 05:15:58', '2019-12-03 06:11:39', '/uploads/products/2/Z3N7iy4jtbsIZqOPF7hLPdwWeRIBpvHNqBmAkYuK.png', 20, '59.99', '2019-10-24', 'Infinity Ward', 'Activision', 4, 4, 2);
-- --------------------------------------------------------
--
-- Table structure for table `products_categories`
--
CREATE TABLE `products_categories` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL,
`category_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products_categories`
--
INSERT INTO `products_categories` (`id`, `product_id`, `category_id`) VALUES
(33, 1, 1),
(34, 1, 4),
(37, 2, 1),
(38, 2, 4);
-- --------------------------------------------------------
--
-- Table structure for table `products_codes`
--
CREATE TABLE `products_codes` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` tinyint(4) 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_codes`
--
INSERT INTO `products_codes` (`id`, `product_id`, `code`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, 'sdigjfsdiojfhiosdjfiosdfjiosdf', 0, NULL, NULL),
(2, 1, 'sdfksdofksdopfksopdkfopsdkf', 0, NULL, NULL),
(3, 1, 'sdmfloskdfopskddfoksdfoksdfo', 0, NULL, NULL),
(4, 1, 'sdjmofjsdopfkopsdkgopdfkg[pdlfg', 0, NULL, NULL),
(5, 1, 'mdslokgopdfkgopdfkgopdfg', 0, NULL, NULL),
(6, 2, 'sdfksdofksdopfksopdkfopsdkf', 0, NULL, NULL),
(7, 2, 'sdfksdofksdopfksopdkfopsdkf', 0, NULL, NULL),
(8, 2, 'sdfksdofksdopfksopdkfopsdkf', 0, NULL, NULL),
(9, 2, 'sdfksdofksdopfksopdkfopsdkf', 0, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `products_images`
--
CREATE TABLE `products_images` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`sort_order` tinyint(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `products_translations`
--
CREATE TABLE `products_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`System_requirements` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products_translations`
--
INSERT INTO `products_translations` (`id`, `created_at`, `updated_at`, `product_id`, `title`, `description`, `System_requirements`, `locale`) VALUES
(1, '2019-11-28 06:24:54', '2019-12-02 07:45:29', 1, 'ريد ديد ريدمبشن 2', 'ريد ديد ريدمبشن 2 هي لعبة فيديو من نوع عالم مفتوح وأكشن–مغامرات من تطوير ونشر روكستار جيمز. اللعبة هي بادئة لسابقتها ريد ديد ريدمبشن والثالثة ضمن سلسلة ريد ديد. أحداثها تقع في عام 1899، وتتبع الخارج عن القانون آرثر مورغان، وهو عضو في عصابة دوتش فان دير ليند. صدرت اللعبة على بلاي ستيشن 4 وإكس بوكس ون في 26 أكتوبر', '<h2>Red Dead Redemption 2 PC minimum requirements: </h2><ul><li>OS: Windows 7 – Service Pack 1 (6.1.7601)</li><li>Processor: Intel Core i5-2500K / AMD FX-6300</li><li>Memory: 8GB</li><li>Graphics Card: Nvidia GeForce GTX 770 2GB / AMD Radeon R9 280 3GB</li><li>HDD Space: 150GB</li></ul><h2>Red Dead Redemption 2 PC recommended requirements: </h2><ul><li>OS: Windows 10 – April 2018 Update (v1803)</li><li>Processor: Intel Core i7-4770K / AMD Ryzen 5 1500X</li><li>Memory: 12GB</li><li>Graphics Card: Nvidia GeForce GTX 1060 6GB / AMD Radeon RX 480</li><li>HDD Space: 150GB</li></ul>', 'ar'),
(2, '2019-11-28 06:24:54', '2019-12-02 07:45:29', 1, 'Red Dead Redemption 2', 'Developed by Rockstar Games, Red Dead Redemption 2 is a sequel to a western-themed open-world game of the same name first released back in 2010. Buy Red Dead Redemption 2 PC key and engage in another Rockstar provided gaming experience of an epic scale that is definitive for the contemporary decade of the gaming industry. As Red Dead Redemption 2 is coming from consoles to the PC platform it will introduce various changes and additions that expand upon an already jaw-dropping installment of this amazing Wild West franchise.', '<h2>Red Dead Redemption 2 PC minimum requirements: </h2><ul><li>OS: Windows 7 – Service Pack 1 (6.1.7601)</li><li>Processor: Intel Core i5-2500K / AMD FX-6300</li><li>Memory: 8GB</li><li>Graphics Card: Nvidia GeForce GTX 770 2GB / AMD Radeon R9 280 3GB</li><li>HDD Space: 150GB</li></ul><h2>Red Dead Redemption 2 PC recommended requirements: </h2><ul><li>OS: Windows 10 – April 2018 Update (v1803)</li><li>Processor: Intel Core i7-4770K / AMD Ryzen 5 1500X</li><li>Memory: 12GB</li><li>Graphics Card: Nvidia GeForce GTX 1060 6GB / AMD Radeon RX 480</li><li>HDD Space: 150GB</li></ul>', 'en'),
(3, '2019-12-03 05:15:58', '2019-12-03 06:07:15', 2, 'كول أوف ديوتي: مودرن وورفير', 'كول أوف ديوتي: مودرن وورفير هي لعبة فيديو قادمة من نوع تصويب منظور الشخص الأول وهي من إنتاج إنفنتي وورد ومن نشر وتوزيع أكتيفيجن، وستكون النسخة السادسة عشرة من سلسلة العاب كول أوف ديوتي. وستكون ريبوت من السلسلة الفرعية مودرن وورفير.', '<h3><strong>المتطلبات الدنيا لتشغيل اللعبة</strong><br> </h3><ul><li>Operating System: Windows 7 64-bit (SP1) or Windows 10 64-bit</li><li>Processor: Intel Core i3-4340 or AMD FX-6300</li><li>Video: NVIDIA GeForce GTX 670 / NVIDIA GeForce GTX 1650 or AMD Radeon HD 7950 – DirectX 12.0 compatible system</li><li>Memory: 8 GB RAM</li><li>Storage: 175 GB available hard drive space</li></ul><h3><strong>المتطلبات الموصى بها لتشغيل اللعبة</strong></h3><ul><li>Operating System: Windows 10 64-bit latest update</li><li>Processor: Intel Core i5-2500K or AMD Ryzen R5 1600X Processor</li><li>Video: NVIDIA GeForce GTX 970 / NVIDIA GeForce GTX 1660 or AMD Radeon R9 390 / AMD Radeon RX 580 – DirectX 12.0 compatible system</li><li>Memory: 12 GB RAM</li><li>Storage: 175 GB available hard drive space</li></ul>', 'ar'),
(4, '2019-12-03 05:15:58', '2019-12-03 06:07:25', 2, 'Call of Duty Modern Warfare', 'Call of Duty: Modern Warfare is a first-person shooter video game developed by Infinity Ward and published by Activision. Serving as the sixteenth overall installment in the Call of Duty series, as well as a reboot of the Modern Warfare sub-series,[1][2][3] it was released on October 25, 2019, for Microsoft Windows, PlayStation 4, and Xbox One.', '<p>The minimum requirements are as follows:</p><ul><li><strong>OS</strong>: Windows 7 64-bit (SP1) or Windows 10 64-bit</li><li><strong>Processor</strong>: Intel Core i3-4340 or AMD FX-6300</li><li><strong>Memory</strong>: 8GB</li><li><strong>Graphics Card</strong>: Nvidia GeForce GTX 670/Nvidia GeForce GTX 1650 or AMD Radeon HD 7950 - DirectX 12.0 compatible system</li><li><strong>Storage</strong>: 175GB</li></ul><p>Recommended specs see a slight bump across a few categories and are as follows:</p><ul><li><strong>OS</strong>: Windows 10 64-bit</li><li><strong>Processor</strong>: Intel Core i5-2500K or AMD Ryzen R5 1600X</li><li><strong>Memory</strong>: 12GB</li><li><strong>Graphics Card</strong>: Nvidia GeForce GTX 970/Nvidia GeForce GTX 1660 or AMD Radeon R9 390/ AMD Radeon RX 580 - DirectX 12.0 compatible system</li><li><strong>Storage</strong>: 175GB</li></ul>', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `ratings`
--
CREATE TABLE `ratings` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`product_id` int(10) UNSIGNED DEFAULT NULL,
`rating` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `regions`
--
CREATE TABLE `regions` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `regions`
--
INSERT INTO `regions` (`id`, `created_at`, `updated_at`, `code`) VALUES
(1, '2019-11-28 05:59:21', '2019-11-28 05:59:21', 'GB'),
(2, '2019-11-28 06:00:03', '2019-11-28 06:00:03', 'EU');
-- --------------------------------------------------------
--
-- Table structure for table `regions_translations`
--
CREATE TABLE `regions_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`region_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `regions_translations`
--
INSERT INTO `regions_translations` (`id`, `created_at`, `updated_at`, `region_id`, `title`, `locale`) VALUES
(1, '2019-11-28 05:59:21', '2019-11-28 05:59:21', 1, 'جلوبال', 'ar'),
(2, '2019-11-28 05:59:21', '2019-11-28 05:59:21', 1, 'Global', 'en'),
(3, '2019-11-28 06:00:03', '2019-11-28 06:00:03', 2, 'اوروبا', 'ar'),
(4, '2019-11-28 06:00:03', '2019-11-28 06:00:03', 2, 'Europe', 'en');
-- --------------------------------------------------------
--
-- Table structure for table `related_products`
--
CREATE TABLE `related_products` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`related_id` int(10) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `roles`
--
CREATE TABLE `roles` (
`id` bigint(20) UNSIGNED NOT NULL,
`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
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `roles`
--
INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
(1, 'super-admin', 'admin', '2019-11-28 05:25:50', '2019-11-28 05:25:50'),
(2, 'registered-users', 'web', '2019-11-28 05:26:03', '2019-11-28 05:26:03');
-- --------------------------------------------------------
--
-- Table structure for table `role_has_permissions`
--
CREATE TABLE `role_has_permissions` (
`permission_id` bigint(20) UNSIGNED NOT NULL,
`role_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `role_has_permissions`
--
INSERT INTO `role_has_permissions` (`permission_id`, `role_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),
(54, 1),
(55, 1),
(56, 1),
(57, 1),
(58, 1),
(59, 1),
(60, 1);
-- --------------------------------------------------------
--
-- Table structure for table `settings`
--
CREATE TABLE `settings` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`footer_logo` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`work_time` time DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`id`, `created_at`, `updated_at`, `email`, `logo`, `footer_logo`, `work_time`) VALUES
(1, '2019-12-03 05:57:54', '2019-12-03 05:57:54', '<EMAIL>', '/uploads/setting/1/1575359874.png', '/uploads/setting/1/1575359874.png', '08:00:00');
-- --------------------------------------------------------
--
-- Table structure for table `settings_translations`
--
CREATE TABLE `settings_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`setting_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `settings_translations`
--
INSERT INTO `settings_translations` (`id`, `created_at`, `updated_at`, `setting_id`, `title`, `address`, `description`, `locale`) VALUES
(1, NULL, NULL, 1, 'اكس كارد', 'اكس كارد', 'اكس كارد', 'ar'),
(2, NULL, NULL, 1, NULL, NULL, NULL, 'en');
-- --------------------------------------------------------
--
-- Table structure for table `site_languages`
--
CREATE TABLE `site_languages` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`flag` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `site_languages`
--
INSERT INTO `site_languages` (`id`, `created_at`, `updated_at`, `title`, `flag`, `locale`) VALUES
(1, '2019-11-28 05:29:25', '2019-11-28 05:29:25', 'Arabic', '/uploads/site_languages/1/1574926165.png', 'ar'),
(2, '2019-11-28 05:29:38', '2019-11-28 05:29:38', 'English', '/uploads/site_languages/2/1574926178.png', 'en'),
(4, '2019-12-03 06:48:25', '2019-12-03 06:48:25', 'frfr', '/uploads/site_languages/4/1575362905.png', 'tygt');
-- --------------------------------------------------------
--
-- Table structure for table `sliders`
--
CREATE TABLE `sliders` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`url` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`publish` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sliders`
--
INSERT INTO `sliders` (`id`, `created_at`, `updated_at`, `image`, `url`, `publish`) VALUES
(1, '2019-12-01 06:15:17', '2019-12-01 06:16:57', '/uploads/slider/1/1575188117.png', 'www.google.com/test', 1),
(2, '2019-12-01 06:16:32', '2019-12-01 06:17:09', '/uploads/slider/2/1575188193.png', 'www.google.com', 0);
-- --------------------------------------------------------
--
-- Table structure for table `sliders_translations`
--
CREATE TABLE `sliders_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`slider_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `sliders_translations`
--
INSERT INTO `sliders_translations` (`id`, `created_at`, `updated_at`, `slider_id`, `title`, `description`, `locale`) VALUES
(1, '2019-12-01 06:15:17', '2019-12-01 06:15:17', 1, 'سلايدر 1', 'سلايدر 1', 'ar'),
(2, '2019-12-01 06:15:18', '2019-12-01 06:15:18', 1, 'slider 1', 'slider 1', 'en'),
(3, '2019-12-01 06:16:33', '2019-12-01 06:16:33', 2, 'سلايدر 2', 'سلايدر 2', 'ar'),
(4, '2019-12-01 06:16:33', '2019-12-01 06:16:33', 2, NULL, NULL, 'en');
-- --------------------------------------------------------
--
-- Table structure for table `social_links`
--
CREATE TABLE `social_links` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`url` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`setting_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `social_links`
--
INSERT INTO `social_links` (`id`, `created_at`, `updated_at`, `title`, `url`, `setting_id`) VALUES
(1, '2019-12-03 05:44:24', '2019-12-03 05:44:24', 'facebook', 'www.facebook.<EMAIL>', 1),
(2, '2019-12-03 05:44:24', '2019-12-03 05:44:24', 'instagram', 'www.instagram', 1),
(3, '2019-12-03 05:57:54', '2019-12-03 05:57:54', 'facebook', 'www.facebook.com', 1),
(4, '2019-12-03 05:57:54', '2019-12-03 05:57:54', 'instagram', 'www.instagram.com', 1);
-- --------------------------------------------------------
--
-- Table structure for table `tags`
--
CREATE TABLE `tags` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `tag_translations`
--
CREATE TABLE `tag_translations` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`tag_id` int(10) UNSIGNED DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`locale` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `transactions`
--
CREATE TABLE `transactions` (
`id` bigint(20) UNSIGNED NOT NULL,
`order_id` int(10) UNSIGNED DEFAULT NULL,
`payment_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`status` enum('pending','paid','refused') COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`bank_id` int(10) UNSIGNED DEFAULT NULL,
`bank_transactions_num` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`total` double DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`currency` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`discount_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`holder_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`holder_card_number` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`holder_cvc` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`holder_expire` datetime 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 `transactions`
--
INSERT INTO `transactions` (`id`, `order_id`, `payment_type`, `status`, `bank_id`, `bank_transactions_num`, `total`, `image`, `currency`, `discount_code`, `holder_name`, `holder_card_number`, `holder_cvc`, `holder_expire`, `created_at`, `updated_at`) VALUES
(1, 1, 'bank', 'pending', 1, 'sdfsdfsadfsdfsdfsdfsf', NULL, '/uploads/payment/157537946711302.png', 'EGP', NULL, 'asdasdasdfdgdfgdf', NULL, NULL, NULL, '2019-12-03 11:24:27', '2019-12-03 11:24:27'),
(2, 2, 'bank', 'pending', 1, 'sdfsdfsadfsdfsdfsdfsf', NULL, '/uploads/payment/157538035152910.png', 'EGP', NULL, 'asdasdasdfdgdfgdf', NULL, NULL, NULL, '2019-12-03 11:39:11', '2019-12-03 11:39:11');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`first_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 NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`guard` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'web',
`mobile` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`country_id` int(10) UNSIGNED DEFAULT NULL,
`site_language_id` int(10) UNSIGNED DEFAULT NULL,
`provider` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `created_at`, `updated_at`, `first_name`, `last_name`, `email`, `email_verified_at`, `image`, `guard`, `mobile`, `password`, `country_id`, `site_language_id`, `provider`, `provider_id`, `remember_token`) VALUES
(1, '2019-11-28 05:25:51', '2019-11-28 05:25:51', 'admin', 'admin', '<EMAIL>', NULL, NULL, 'admin', NULL, '$2y$10$ves64ONqAGn.zcdBVfNi..EpyFmzlI6Gmbnuf0.TBeH/C4Ouy5bAC', NULL, NULL, NULL, NULL, NULL),
(2, '2019-12-01 06:51:00', '2019-12-01 06:51:00', 'user', 'one', '<EMAIL>', NULL, NULL, 'web', NULL, '$2y$10$XNDnDriKJUEDV2sSGjr.0eTEHnNu4qzMYHMcDHUMbvUs10OcurW36', NULL, NULL, NULL, NULL, NULL),
(3, '2019-12-01 07:43:07', '2019-12-01 07:43:07', 'Ibrahim', 'El-Monier', '<EMAIL>', NULL, NULL, 'web', NULL, '$2y$10$Rwi/hZTkeYQqARNHMss/euU5EhpgvO5h0UjIpVJC7iuhcXK3WiJxW', NULL, NULL, 'facebook', '10157768350672618', NULL),
(4, '2019-12-03 05:07:12', '2019-12-03 05:07:12', 'user', 'two', '<EMAIL>', NULL, NULL, 'web', NULL, '$2y$10$g5iLZ9hE9VLtpEKeMRm/P.YbooPWiAkPK/I54fbLjvfQXxTtqr0.i', NULL, NULL, NULL, NULL, NULL),
(30, '2019-12-03 09:42:43', '2019-12-03 09:42:43', NULL, NULL, '<EMAIL>', NULL, NULL, 'web', NULL, '$2y$10$gWo0PUyzGXv5SzuElvAlcOLzhsjWnBzvpJNZJI09bjBifPnr7JFSm', NULL, NULL, NULL, NULL, NULL),
(31, '2019-12-03 11:38:08', '2019-12-03 11:38:08', NULL, NULL, '<EMAIL>', NULL, NULL, 'web', NULL, '$2y$10$uxiwHtQbYnDnAWQoSoJ3TOyxyMvK0JiBhqKahqvOoQe6dfOCljiEi', NULL, NULL, NULL, NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users_ratings`
--
CREATE TABLE `users_ratings` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`user_id` int(10) UNSIGNED NOT NULL,
`rating` int(11) DEFAULT NULL,
`comment` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approve` tinyint(4) DEFAULT 0,
`ra_id` int(10) UNSIGNED DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `works_on`
--
CREATE TABLE `works_on` (
`id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`icon` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `works_on`
--
INSERT INTO `works_on` (`id`, `created_at`, `updated_at`, `icon`, `title`) VALUES
(1, '2019-11-28 06:13:52', '2019-11-28 06:13:52', '/uploads/works_on/1/1574928832.png', 'Windows'),
(2, '2019-11-28 06:16:26', '2019-11-28 06:16:26', '/uploads/works_on/2/1574928986.png', 'Mac'),
(3, '2019-11-28 06:16:43', '2019-11-28 06:16:43', '/uploads/works_on/3/1574929003.png', 'PlayStaion'),
(4, '2019-11-28 06:16:56', '2019-11-28 06:16:56', '/uploads/works_on/4/1574929016.png', 'Xbox'),
(5, '2019-12-01 06:01:55', '2019-12-01 06:01:55', '/uploads/works_on/5/1575187315.png', 'Nintendo');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `banks`
--
ALTER TABLE `banks`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `banks_translations`
--
ALTER TABLE `banks_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `banks_translations_bank_id_foreign` (`bank_id`);
--
-- Indexes for table `blogs`
--
ALTER TABLE `blogs`
ADD PRIMARY KEY (`id`),
ADD KEY `blogs_category_id_foreign` (`category_id`);
--
-- Indexes for table `blogs_products`
--
ALTER TABLE `blogs_products`
ADD PRIMARY KEY (`id`),
ADD KEY `blogs_products_blog_id_foreign` (`blog_id`),
ADD KEY `blogs_products_product_id_foreign` (`product_id`);
--
-- Indexes for table `blogs_tags`
--
ALTER TABLE `blogs_tags`
ADD PRIMARY KEY (`id`),
ADD KEY `blogs_tags_tag_id_foreign` (`tag_id`),
ADD KEY `blogs_tags_blog_id_foreign` (`blog_id`);
--
-- Indexes for table `blog_categories`
--
ALTER TABLE `blog_categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `blog_categories_translations`
--
ALTER TABLE `blog_categories_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `blog_categories_translations_blog_category_id_foreign` (`blog_category_id`);
--
-- Indexes for table `blog_translations`
--
ALTER TABLE `blog_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `blog_translations_blog_id_foreign` (`blog_id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`),
ADD KEY `categories_parent_id_foreign` (`parent_id`);
--
-- Indexes for table `categories_translations`
--
ALTER TABLE `categories_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `categories_translations_category_id_foreign` (`category_id`);
--
-- Indexes for table `content_sections`
--
ALTER TABLE `content_sections`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `content_sections_products`
--
ALTER TABLE `content_sections_products`
ADD PRIMARY KEY (`id`),
ADD KEY `content_sections_products_content_section_id_foreign` (`content_section_id`),
ADD KEY `content_sections_products_product_id_foreign` (`product_id`);
--
-- Indexes for table `content_sections_translations`
--
ALTER TABLE `content_sections_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `content_sections_translations_content_section_id_foreign` (`content_section_id`);
--
-- Indexes for table `countries`
--
ALTER TABLE `countries`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `countries_regions`
--
ALTER TABLE `countries_regions`
ADD PRIMARY KEY (`id`),
ADD KEY `countries_regions_country_id_foreign` (`country_id`),
ADD KEY `countries_regions_region_id_foreign` (`region_id`);
--
-- Indexes for table `countries_translations`
--
ALTER TABLE `countries_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `countries_translations_country_id_foreign` (`country_id`);
--
-- Indexes for table `currencies`
--
ALTER TABLE `currencies`
ADD PRIMARY KEY (`id`),
ADD KEY `currencies_country_id_index` (`country_id`);
--
-- Indexes for table `currencies_translation`
--
ALTER TABLE `currencies_translation`
ADD PRIMARY KEY (`id`),
ADD KEY `currencies_translation_currency_id_foreign` (`currency_id`);
--
-- Indexes for table `currency_convertor`
--
ALTER TABLE `currency_convertor`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `discount_codes`
--
ALTER TABLE `discount_codes`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `files`
--
ALTER TABLE `files`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `gamedetails_products`
--
ALTER TABLE `gamedetails_products`
ADD PRIMARY KEY (`id`),
ADD KEY `gamedetails_products_game_detail_id_foreign` (`game_detail_id`),
ADD KEY `gamedetails_products_product_id_foreign` (`product_id`);
--
-- Indexes for table `game_details`
--
ALTER TABLE `game_details`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `game_details_translations`
--
ALTER TABLE `game_details_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `game_details_translations_game_detail_id_foreign` (`game_detail_id`);
--
-- Indexes for table `genre`
--
ALTER TABLE `genre`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `genres_products`
--
ALTER TABLE `genres_products`
ADD PRIMARY KEY (`id`),
ADD KEY `genres_products_genre_id_foreign` (`genre_id`),
ADD KEY `genres_products_product_id_foreign` (`product_id`);
--
-- Indexes for table `genre_translations`
--
ALTER TABLE `genre_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `genre_translations_genre_id_foreign` (`genre_id`);
--
-- Indexes for table `languages`
--
ALTER TABLE `languages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `languages_products`
--
ALTER TABLE `languages_products`
ADD PRIMARY KEY (`id`),
ADD KEY `languages_products_language_id_foreign` (`language_id`),
ADD KEY `languages_products_product_id_foreign` (`product_id`);
--
-- Indexes for table `languages_translations`
--
ALTER TABLE `languages_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `languages_translations_language_id_foreign` (`language_id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
--
-- Indexes for table `newsletters`
--
ALTER TABLE `newsletters`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD KEY `orders_user_id_foreign` (`user_id`);
--
-- Indexes for table `order_items`
--
ALTER TABLE `order_items`
ADD PRIMARY KEY (`id`),
ADD KEY `order_items_order_id_foreign` (`order_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `permissions`
--
ALTER TABLE `permissions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `phones`
--
ALTER TABLE `phones`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `platforms`
--
ALTER TABLE `platforms`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `platforms_translations`
--
ALTER TABLE `platforms_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `platforms_translations_platform_id_foreign` (`platform_id`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`),
ADD KEY `products_works_on_id_foreign` (`works_on_id`),
ADD KEY `products_platform_id_foreign` (`platform_id`),
ADD KEY `products_region_id_foreign` (`region_id`);
--
-- Indexes for table `products_categories`
--
ALTER TABLE `products_categories`
ADD PRIMARY KEY (`id`),
ADD KEY `products_categories_product_id_foreign` (`product_id`),
ADD KEY `products_categories_category_id_foreign` (`category_id`);
--
-- Indexes for table `products_codes`
--
ALTER TABLE `products_codes`
ADD PRIMARY KEY (`id`),
ADD KEY `products_codes_product_id_foreign` (`product_id`);
--
-- Indexes for table `products_images`
--
ALTER TABLE `products_images`
ADD PRIMARY KEY (`id`),
ADD KEY `products_images_product_id_foreign` (`product_id`);
--
-- Indexes for table `products_translations`
--
ALTER TABLE `products_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `products_translations_product_id_foreign` (`product_id`);
--
-- Indexes for table `ratings`
--
ALTER TABLE `ratings`
ADD PRIMARY KEY (`id`),
ADD KEY `ratings_product_id_foreign` (`product_id`);
--
-- Indexes for table `regions`
--
ALTER TABLE `regions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `regions_translations`
--
ALTER TABLE `regions_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `regions_translations_region_id_foreign` (`region_id`);
--
-- Indexes for table `related_products`
--
ALTER TABLE `related_products`
ADD PRIMARY KEY (`id`),
ADD KEY `related_products_product_id_foreign` (`product_id`),
ADD KEY `related_products_related_id_foreign` (`related_id`);
--
-- Indexes for table `roles`
--
ALTER TABLE `roles`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD PRIMARY KEY (`permission_id`,`role_id`),
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
--
-- Indexes for table `settings`
--
ALTER TABLE `settings`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `settings_translations`
--
ALTER TABLE `settings_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `settings_translations_setting_id_foreign` (`setting_id`);
--
-- Indexes for table `site_languages`
--
ALTER TABLE `site_languages`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sliders`
--
ALTER TABLE `sliders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `sliders_translations`
--
ALTER TABLE `sliders_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `sliders_translations_slider_id_foreign` (`slider_id`);
--
-- Indexes for table `social_links`
--
ALTER TABLE `social_links`
ADD PRIMARY KEY (`id`),
ADD KEY `social_links_setting_id_foreign` (`setting_id`);
--
-- Indexes for table `tags`
--
ALTER TABLE `tags`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `tag_translations`
--
ALTER TABLE `tag_translations`
ADD PRIMARY KEY (`id`),
ADD KEY `tag_translations_tag_id_foreign` (`tag_id`);
--
-- Indexes for table `transactions`
--
ALTER TABLE `transactions`
ADD PRIMARY KEY (`id`),
ADD KEY `transactions_order_id_foreign` (`order_id`),
ADD KEY `transactions_bank_id_foreign` (`bank_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD KEY `users_country_id_foreign` (`country_id`),
ADD KEY `users_site_language_id_foreign` (`site_language_id`);
--
-- Indexes for table `users_ratings`
--
ALTER TABLE `users_ratings`
ADD PRIMARY KEY (`id`),
ADD KEY `users_ratings_user_id_foreign` (`user_id`),
ADD KEY `users_ratings_ra_id_foreign` (`ra_id`);
--
-- Indexes for table `works_on`
--
ALTER TABLE `works_on`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `banks`
--
ALTER TABLE `banks`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `banks_translations`
--
ALTER TABLE `banks_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `blogs`
--
ALTER TABLE `blogs`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `blogs_products`
--
ALTER TABLE `blogs_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `blogs_tags`
--
ALTER TABLE `blogs_tags`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `blog_categories`
--
ALTER TABLE `blog_categories`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `blog_categories_translations`
--
ALTER TABLE `blog_categories_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `blog_translations`
--
ALTER TABLE `blog_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `categories_translations`
--
ALTER TABLE `categories_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `content_sections`
--
ALTER TABLE `content_sections`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `content_sections_products`
--
ALTER TABLE `content_sections_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `content_sections_translations`
--
ALTER TABLE `content_sections_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `countries`
--
ALTER TABLE `countries`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `countries_regions`
--
ALTER TABLE `countries_regions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `countries_translations`
--
ALTER TABLE `countries_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `currencies`
--
ALTER TABLE `currencies`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `currencies_translation`
--
ALTER TABLE `currencies_translation`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `currency_convertor`
--
ALTER TABLE `currency_convertor`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `discount_codes`
--
ALTER TABLE `discount_codes`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `files`
--
ALTER TABLE `files`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `gamedetails_products`
--
ALTER TABLE `gamedetails_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `game_details`
--
ALTER TABLE `game_details`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `game_details_translations`
--
ALTER TABLE `game_details_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `genre`
--
ALTER TABLE `genre`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `genres_products`
--
ALTER TABLE `genres_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `genre_translations`
--
ALTER TABLE `genre_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `languages`
--
ALTER TABLE `languages`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `languages_products`
--
ALTER TABLE `languages_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `languages_translations`
--
ALTER TABLE `languages_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;
--
-- AUTO_INCREMENT for table `newsletters`
--
ALTER TABLE `newsletters`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `order_items`
--
ALTER TABLE `order_items`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `permissions`
--
ALTER TABLE `permissions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=61;
--
-- AUTO_INCREMENT for table `phones`
--
ALTER TABLE `phones`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `platforms`
--
ALTER TABLE `platforms`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `platforms_translations`
--
ALTER TABLE `platforms_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `products_categories`
--
ALTER TABLE `products_categories`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
--
-- AUTO_INCREMENT for table `products_codes`
--
ALTER TABLE `products_codes`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `products_images`
--
ALTER TABLE `products_images`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products_translations`
--
ALTER TABLE `products_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `ratings`
--
ALTER TABLE `ratings`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `regions`
--
ALTER TABLE `regions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `regions_translations`
--
ALTER TABLE `regions_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `related_products`
--
ALTER TABLE `related_products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `roles`
--
ALTER TABLE `roles`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `settings`
--
ALTER TABLE `settings`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `settings_translations`
--
ALTER TABLE `settings_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `site_languages`
--
ALTER TABLE `site_languages`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `sliders`
--
ALTER TABLE `sliders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `sliders_translations`
--
ALTER TABLE `sliders_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `social_links`
--
ALTER TABLE `social_links`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `tags`
--
ALTER TABLE `tags`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tag_translations`
--
ALTER TABLE `tag_translations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `transactions`
--
ALTER TABLE `transactions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `users_ratings`
--
ALTER TABLE `users_ratings`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `works_on`
--
ALTER TABLE `works_on`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `banks_translations`
--
ALTER TABLE `banks_translations`
ADD CONSTRAINT `banks_translations_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `blogs`
--
ALTER TABLE `blogs`
ADD CONSTRAINT `blogs_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `blog_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `blogs_products`
--
ALTER TABLE `blogs_products`
ADD CONSTRAINT `blogs_products_blog_id_foreign` FOREIGN KEY (`blog_id`) REFERENCES `blogs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `blogs_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `blogs_tags`
--
ALTER TABLE `blogs_tags`
ADD CONSTRAINT `blogs_tags_blog_id_foreign` FOREIGN KEY (`blog_id`) REFERENCES `blogs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `blogs_tags_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `blog_categories_translations`
--
ALTER TABLE `blog_categories_translations`
ADD CONSTRAINT `blog_categories_translations_blog_category_id_foreign` FOREIGN KEY (`blog_category_id`) REFERENCES `blog_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `blog_translations`
--
ALTER TABLE `blog_translations`
ADD CONSTRAINT `blog_translations_blog_id_foreign` FOREIGN KEY (`blog_id`) REFERENCES `blogs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `categories`
--
ALTER TABLE `categories`
ADD CONSTRAINT `categories_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `categories_translations`
--
ALTER TABLE `categories_translations`
ADD CONSTRAINT `categories_translations_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `content_sections_products`
--
ALTER TABLE `content_sections_products`
ADD CONSTRAINT `content_sections_products_content_section_id_foreign` FOREIGN KEY (`content_section_id`) REFERENCES `content_sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `content_sections_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `content_sections_translations`
--
ALTER TABLE `content_sections_translations`
ADD CONSTRAINT `content_sections_translations_content_section_id_foreign` FOREIGN KEY (`content_section_id`) REFERENCES `content_sections` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `countries_regions`
--
ALTER TABLE `countries_regions`
ADD CONSTRAINT `countries_regions_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `countries_regions_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `countries_translations`
--
ALTER TABLE `countries_translations`
ADD CONSTRAINT `countries_translations_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `currencies`
--
ALTER TABLE `currencies`
ADD CONSTRAINT `currencies_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `currencies_translation`
--
ALTER TABLE `currencies_translation`
ADD CONSTRAINT `currencies_translation_currency_id_foreign` FOREIGN KEY (`currency_id`) REFERENCES `currencies` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `gamedetails_products`
--
ALTER TABLE `gamedetails_products`
ADD CONSTRAINT `gamedetails_products_game_detail_id_foreign` FOREIGN KEY (`game_detail_id`) REFERENCES `game_details` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `gamedetails_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `game_details_translations`
--
ALTER TABLE `game_details_translations`
ADD CONSTRAINT `game_details_translations_game_detail_id_foreign` FOREIGN KEY (`game_detail_id`) REFERENCES `game_details` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `genres_products`
--
ALTER TABLE `genres_products`
ADD CONSTRAINT `genres_products_genre_id_foreign` FOREIGN KEY (`genre_id`) REFERENCES `genre` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `genres_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `genre_translations`
--
ALTER TABLE `genre_translations`
ADD CONSTRAINT `genre_translations_genre_id_foreign` FOREIGN KEY (`genre_id`) REFERENCES `genre` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `languages_products`
--
ALTER TABLE `languages_products`
ADD CONSTRAINT `languages_products_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `languages_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `languages_translations`
--
ALTER TABLE `languages_translations`
ADD CONSTRAINT `languages_translations_language_id_foreign` FOREIGN KEY (`language_id`) REFERENCES `languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `model_has_permissions`
--
ALTER TABLE `model_has_permissions`
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `model_has_roles`
--
ALTER TABLE `model_has_roles`
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `order_items`
--
ALTER TABLE `order_items`
ADD CONSTRAINT `order_items_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `platforms_translations`
--
ALTER TABLE `platforms_translations`
ADD CONSTRAINT `platforms_translations_platform_id_foreign` FOREIGN KEY (`platform_id`) REFERENCES `platforms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products`
--
ALTER TABLE `products`
ADD CONSTRAINT `products_platform_id_foreign` FOREIGN KEY (`platform_id`) REFERENCES `platforms` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `products_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `products_works_on_id_foreign` FOREIGN KEY (`works_on_id`) REFERENCES `works_on` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products_categories`
--
ALTER TABLE `products_categories`
ADD CONSTRAINT `products_categories_category_id_foreign` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `products_categories_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products_codes`
--
ALTER TABLE `products_codes`
ADD CONSTRAINT `products_codes_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products_images`
--
ALTER TABLE `products_images`
ADD CONSTRAINT `products_images_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `products_translations`
--
ALTER TABLE `products_translations`
ADD CONSTRAINT `products_translations_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `ratings`
--
ALTER TABLE `ratings`
ADD CONSTRAINT `ratings_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `regions_translations`
--
ALTER TABLE `regions_translations`
ADD CONSTRAINT `regions_translations_region_id_foreign` FOREIGN KEY (`region_id`) REFERENCES `regions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `related_products`
--
ALTER TABLE `related_products`
ADD CONSTRAINT `related_products_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `related_products_related_id_foreign` FOREIGN KEY (`related_id`) REFERENCES `products` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `role_has_permissions`
--
ALTER TABLE `role_has_permissions`
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `settings_translations`
--
ALTER TABLE `settings_translations`
ADD CONSTRAINT `settings_translations_setting_id_foreign` FOREIGN KEY (`setting_id`) REFERENCES `settings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `sliders_translations`
--
ALTER TABLE `sliders_translations`
ADD CONSTRAINT `sliders_translations_slider_id_foreign` FOREIGN KEY (`slider_id`) REFERENCES `sliders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `social_links`
--
ALTER TABLE `social_links`
ADD CONSTRAINT `social_links_setting_id_foreign` FOREIGN KEY (`setting_id`) REFERENCES `settings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `tag_translations`
--
ALTER TABLE `tag_translations`
ADD CONSTRAINT `tag_translations_tag_id_foreign` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `transactions`
--
ALTER TABLE `transactions`
ADD CONSTRAINT `transactions_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `transactions_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `users_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `countries` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `users_site_language_id_foreign` FOREIGN KEY (`site_language_id`) REFERENCES `site_languages` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `users_ratings`
--
ALTER TABLE `users_ratings`
ADD CONSTRAINT `users_ratings_ra_id_foreign` FOREIGN KEY (`ra_id`) REFERENCES `ratings` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `users_ratings_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
SELECT [Email Provider], COUNT(Id) AS [Number Of Users] FROM ( SELECT Id, RIGHT(Email, LEN(Email) - CHARINDEX('@', Email)) AS [Email Provider] FROM Users) AS R
GROUP BY [Email Provider]
ORDER BY [Number Of Users] DESC, [Email Provider] |
-- Create a new stored procedure called 'SP_SelectBookInfosByAuthorId' in schema 'dbo'
-- Drop the stored procedure if it already exists
IF EXISTS (
SELECT *
FROM INFORMATION_SCHEMA.ROUTINES
WHERE SPECIFIC_SCHEMA = N'dbo'
AND SPECIFIC_NAME = N'SP_SelectBookInfosByAuthorId'
)
DROP PROCEDURE dbo.SP_SelectBookInfosByAuthorId
GO
-- Create the stored procedure in the specified schema
CREATE PROCEDURE dbo.SP_SelectBookInfosByAuthorId
@authorId INT
-- add more stored procedure parameters here
AS
-- body of the stored procedure
SELECT BI_JA.*
FROM [BookInfo_Author] BI_A
JOIN [VW_BookInfoJoinedAll] BI_JA
ON [BI_A].[bookInfoId] = [BI_JA].[bookInfoId]
WHERE [authorId] = @authorId OR [translatorId] = @authorId
GO
-- example to execute the stored procedure we just created
EXECUTE dbo.SP_SelectBookInfosByAuthorId 2038 |
<gh_stars>0
/*
LeetCode 1527. Patients With a Condition
https://leetcode.com/problems/patients-with-a-condition/
*/
-- Solution #01: Using LIKE
SELECT *
FROM Patients
WHERE
conditions LIKE 'DIAB1%' OR
conditions LIKE '% DIAB1%';
-- Solution #02: Using a Regular Expression
SELECT *
FROM Patients
WHERE conditions REGEXP '\\bDIAB1'; |
<reponame>lamafab/eventually-rs
CREATE OR REPLACE FUNCTION append_to_store(
aggregate_type TEXT,
aggregate_id TEXT,
current_version INTEGER,
perform_version_check BOOLEAN,
events JSONB[]
) RETURNS TABLE (
"version" INTEGER,
sequence_number BIGINT
) AS $$
DECLARE
aggregate_version INTEGER;
sequence_number BIGINT;
"event" JSONB;
BEGIN
-- Retrieve the global offset value from the aggregate_type.
SELECT "offset" INTO sequence_number FROM aggregate_types WHERE id = aggregate_type;
IF NOT FOUND THEN
RAISE EXCEPTION 'invalid aggregate type provided: %', aggregate_type;
END IF;
-- Retrieve the latest aggregate version for the specified aggregate id.
SELECT aggregates."version" INTO aggregate_version FROM aggregates WHERE id = aggregate_id AND aggregate_type_id = aggregate_type;
IF NOT FOUND THEN
-- Add the initial aggregate representation inside the `aggregates` table.
INSERT INTO aggregates (id, aggregate_type_id)
VALUES (aggregate_id, aggregate_type);
-- Make sure to initialize the aggregate version in case
aggregate_version = 0;
END IF;
-- Perform optimistic concurrency check.
IF perform_version_check AND aggregate_version <> current_version THEN
RAISE EXCEPTION 'invalid aggregate version provided: %, expected: %', current_version, aggregate_version;
END IF;
FOREACH "event" IN ARRAY events
LOOP
-- Increment the aggregate version prior to inserting the new event.
aggregate_version = aggregate_version + 1;
-- Increment the new sequence number value.
sequence_number = sequence_number + 1;
-- Insert the event into the events table.
-- Version numbers should start from 1; sequence numbers should start from 0.
INSERT INTO events (aggregate_id, aggregate_type, "version", sequence_number, "event")
VALUES (aggregate_id, aggregate_type, aggregate_version, sequence_number, "event");
-- Send a notification to all listeners of the newly added events.
PERFORM pg_notify(aggregate_type, ''
|| '{'
|| '"source_id": "' || aggregate_id || '" ,'
|| '"version": ' || aggregate_version || ', '
|| '"sequence_number": ' || sequence_number || ', '
|| '"event": ' || "event"::TEXT
|| '}');
END LOOP;
-- Update the aggregate with the latest version computed.
UPDATE aggregates SET "version" = aggregate_version WHERE id = aggregate_id AND aggregate_type_id = aggregate_type;
-- Update the global offset with the latest sequence number.
UPDATE aggregate_types SET "offset" = sequence_number WHERE id = aggregate_type;
RETURN QUERY
SELECT aggregate_version, sequence_number;
END;
$$ LANGUAGE PLPGSQL;
|
<gh_stars>1-10
SELECT 1 FROM DUAL
select name, email, emplid, message from table(MSNHREMAIL.GET_PREFERRED_EMAIL(:pvi, :emplid))
|
<gh_stars>1-10
-- ==========================================================
-- Author: <NAME>
-- Create date: 11/04/13
-- Description: Inserts all the addresses for a business
-- upgrade order
-- ==========================================================
CREATE PROCEDURE [dbo].[threeInsertOrderUpgradeAddresses]
@parentId INT,
@orderAddresses h3giOrderAddress READONLY
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
INSERT INTO threeOrderUpgradeAddress (parentId, addressType, aptNumber, houseNumber, houseName, street, locality, town, countyId, country, deliveryNote)
SELECT @parentId,
addressType,
aptNumber,
houseNumber,
houseName,
street,
locality,
town,
countyId,
country,
deliveryNote
FROM @orderAddresses
END
GRANT EXECUTE ON threeInsertOrderUpgradeAddresses TO b4nuser
GO
|
CREATE TABLE assets
(
VALUE VARCHAR(32),
PRIMARY KEY (VALUE)
);
CREATE TABLE quotes
(
id INT NOT NULL AUTO_INCREMENT,
bid NUMERIC,
ask NUMERIC,
last_price NUMERIC,
volume NUMERIC,
asset VARCHAR(32),
PRIMARY KEY (id),
FOREIGN KEY (asset) REFERENCES assets (value),
CONSTRAINT last_price_is_positive CHECK (last_price > 0),
CONSTRAINT volume_is_positive_or_zero CHECK (volume >= 0)
);
|
<reponame>flexsocialbox/una
--
-- General section.
--
SET @sName = 'bx_ru';
UPDATE `sys_localization_languages` SET `Enabled`='0' WHERE `Name`='ru'; |
CREATE DATABASE voicely
ENCODING 'UTF8'
LC_COLLATE = 'en_US.UTF-8'
LC_CTYPE = 'en_US.UTF-8';
CREATE ROLE voicely WITH PASSWORD '<PASSWORD>' SUPERUSER LOGIN;
|
select
(select nombre from seguridad.sucursal where id=a.id_sucursal) as nombre_sucursal,
a.codigo,
a.beneficiario,
a.detalle,
a.fecha_emision,
(select codigo from contabilidad.tipo_movimiento where id=a.id_tipo_movimiento) as codigo_tipo_movimiento,
a.numero_mayor,
(select nombre from contabilidad.cuenta_contable where id=d.id_cuenta_contable) as nombre_cuenta_contable,
sum(d.debito_local) as debito_local,
sum(d.credito_local) as credito_local,
d.detalle as detalle_detalle_asiento_contable,
(select codigo from contabilidad.cuenta_contable where id=d.id_cuenta_contable) as codigo_cuenta_contable,
0.0 as saldo
from contabilidad.asiento_contable a
inner join contabilidad.detalle_asiento_contable d on d.id_asiento_contable=a.id
--where
group by
a.id_sucursal,
a.codigo,
a.beneficiario,
a.detalle,
a.fecha_emision,
a.id_tipo_movimiento,
a.numero_mayor,
d.id_cuenta_contable,
d.detalle |
-- Tags: global, no-fasttest
SELECT @@test;
SELECT @@max_allowed_packet FORMAT CSVWithNames;
SELECT @@MAX_ALLOWED_PACKET FORMAT CSVWithNames;
SELECT @@max_allowed_packet, number FROM system.numbers LIMIT 3 FORMAT CSVWithNames;
SELECT @@session.auto_increment_increment FORMAT CSVWithNames;
SELECT @@session.auto_increment_increment AS auto_increment_increment FORMAT CSVWithNames;
SELECT @@Version FORMAT CSVWithNames;
|
ALTER TABLE "chat"."Reaction" ADD COLUMN "chatId" uuid NULL;
|
<reponame>shanpilipcruz/wad-exercises
INSERT into accounts (
id,
first_name,
last_name,
email,
password,
address,
section,
student_num,
image,
role
) VALUES (
'1',
'<NAME>',
'Cruz',
'<EMAIL>',
md5('asdqwe123'),
'425 2nd St. Honradez Ext. Sampaloc, Manila',
'IT-42',
'15-UC-27-1562-63',
'images//profile_pic//44866082_2372017039480077_7238723398048677888_o.jpg',
'Admin'
); |
-- query62
SELECT TOP 100 Substring(w_warehouse_name, 1, 20),
sm_type,
web_name,
Sum(CASE
WHEN ( ws_ship_date_sk - ws_sold_date_sk <= 30 ) THEN 1
ELSE 0
END) AS days_30,
Sum(CASE
WHEN ( ws_ship_date_sk - ws_sold_date_sk > 30 )
AND ( ws_ship_date_sk - ws_sold_date_sk <= 60 ) THEN 1
ELSE 0
END) AS days_31_60,
Sum(CASE
WHEN ( ws_ship_date_sk - ws_sold_date_sk > 60 )
AND ( ws_ship_date_sk - ws_sold_date_sk <= 90 ) THEN 1
ELSE 0
END) AS days_61_90,
Sum(CASE
WHEN ( ws_ship_date_sk - ws_sold_date_sk > 90 )
AND ( ws_ship_date_sk - ws_sold_date_sk <= 120 ) THEN
1
ELSE 0
END) AS days_91_120,
Sum(CASE
WHEN ( ws_ship_date_sk - ws_sold_date_sk > 120 ) THEN 1
ELSE 0
END) AS days_over_120
FROM web_sales,
warehouse,
ship_mode,
web_site,
date_dim
WHERE d_month_seq BETWEEN 1222 AND 1222 + 11
AND ws_ship_date_sk = d_date_sk
AND ws_warehouse_sk = w_warehouse_sk
AND ws_ship_mode_sk = sm_ship_mode_sk
AND ws_web_site_sk = web_site_sk
GROUP BY Substring(w_warehouse_name, 1, 20),
sm_type,
web_name
ORDER BY 1,
sm_type,
web_name
|
<reponame>hendshaaaban123/Quizzer
-- phpMyAdmin SQL Dump
-- version 4.2.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 24, 2021 at 11:38 PM
-- Server version: 5.6.21
-- PHP Version: 5.5.19
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: `quizzer`
--
-- --------------------------------------------------------
--
-- Table structure for table `choices`
--
CREATE TABLE IF NOT EXISTS `choices` (
`id` int(11) NOT NULL,
`question_number` int(11) NOT NULL,
`is_correct` tinyint(1) NOT NULL,
`text1` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `choices`
--
INSERT INTO `choices` (`id`, `question_number`, `is_correct`, `text1`) VALUES
(1, 1, 1, 'PHP :HyperText Processor'),
(2, 1, 0, 'Private Home Page'),
(3, 1, 0, 'Personal Home Page'),
(4, 1, 0, 'Personal HyperText Processor'),
(5, 2, 1, 'echo "Hello World";'),
(6, 2, 0, '"Hello World";'),
(7, 2, 0, 'Document.Write("Hello World");');
-- --------------------------------------------------------
--
-- Table structure for table `questions`
--
CREATE TABLE IF NOT EXISTS `questions` (
`question_number` int(11) NOT NULL,
`text1` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `questions`
--
INSERT INTO `questions` (`question_number`, `text1`) VALUES
(1, 'PHP stands for what?'),
(2, 'How do you write "Hello World" in PHP?');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `choices`
--
ALTER TABLE `choices`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `questions`
--
ALTER TABLE `questions`
ADD PRIMARY KEY (`question_number`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
delete from ClienteEntity;
delete from DomicilioEntity;
delete from MesaEntity;
delete from PagoEntity;
delete from PedidoEntity ;
delete from Reserva;
delete from restauranteEntity;
delete from SucursalEntity;
delete from TarjetaPuntosEntity;
insert into ClinteEntity (id, tieneTarjeta, nombre, apellido) values ( 1, TRUE, 'Cliente1', 'Apellido1');
insert into ClienteEntity (id, tieneTarjeta, nombre, apellido) values ( 2, TRUE, 'Cliente2', 'Apellido2');
insert into ClienteEntity (id, tieneTarjeta, nombre, apellido) values ( 3, FALSE, 'Cliente3', 'Apellido3');
insert into ClienteEntity (id, tieneTarjeta, nombre, apellido) values ( 4, TRUE, 'Cliente4', 'Apellido4');
insert into DomicilioEntity (id, rango) values (1, 15);
insert into DomicilioEntity (id, rango) values (2, 10);
insert into DomicilioEntity (id, rango) values (3, 9);
insert into DomicilioEntity (id, rango) values (4, 18);
insert into MesaEntity (id, sillasDisponibles, piso, disponible) values (1, 4, 2, TRUE);
insert into MesaEntity (id, sillasDisponibles, piso, disponible) values (2, 2, 1, FALSE);
insert into MesaEntity (id, sillasDisponibles, piso, disponible) values (3, 2, 2, FALSE
insert into MesaEntity (id, sillasDisponibles, piso, disponible) values (4, 4, 1, TRUE);
insert into PagoEntity (id, registrado, pagoAnticipado, tipo) values (1, TRUE, TRUE, 'DEBITO');
insert into PagoEntity (id, registrado, pagoAnticipado, tipo) values (2, TRUE, FALSE,'CREDITO');
insert into PagoEntity (id, registrado, pagoAnticipado, tipo) values (3, FLASE, TRUE,'EFECTIVO');
insert into PagoEntity (id, registrado, pagoAnticipado, tipo) values (4, FALSE, FALSE,'DEBITO');
insert into PedidoEntity (id, fecha, direccion) values (1, 25-09-2017, 'calle 1 numero 2');
insert into PedidoEntity (id, fecha, direccion) values (2, 24-09-2017, 'calle 2 numero 4');
insert into PedidoEntity (id, fecha, direccion) values (3, 30-09-2017, 'calle 1 numero 2');
insert into PedidoEntity (id, fecha, direccion) values (4, 25-09-2017, 'calle 3 numero 5');
insert into PlatoEntity (id, tipo, especialSucursal, precio) values (1, 'SOPA', TRUE, 10);
insert into PlatoEntity (id, tipo, especialSucursal, precio) values (2, 'SECO', FLASE, 11);
insert into PlatoEntity (id, tipo, especialSucursal, precio) values (3, 'POSTRE', TRUE, 8);
insert into PlatoEntity (id, tipo, especialSucursal, precio) values (4, 'SOPA', TRUE, 5);
insert into ReservaEntity (id, fecha) values (1, 01-10-2017);
insert into ReservaEntity (id, fecha) values (2, 02-10-2017);
insert into ReservaEntity (id, fecha) values (3, 03-10-2017);
insert into ReservaEntity (id, fecha) values (4, 04-10-2017);
insert into RestauranteEntity (id, hora_inicio_maniana, hora_inicio_tarde, hora_fin_maniana, hora_fin_tarde) values (1, 08:30, 14:30, 14:00, 19:00);
insert into RestauranteEntity (id, hora_inicio_maniana, hora_inicio_tarde, hora_fin_maniana, hora_fin_tarde) values (2, 08:30, 14:30, 14:00, 19:00);
insert into RestauranteEntity (id, hora_inicio_maniana, hora_inicio_tarde, hora_fin_maniana, hora_fin_tarde) values (3, 08:30, 14:30, 14:00, 19:00);
insert into RestauranteEntity (id, hora_inicio_maniana, hora_inicio_tarde, hora_fin_maniana, hora_fin_tarde) values (4, 06:30, 15:30, 15:00, 20:00);
insert into SucursalEntity (id, calificacion, dosPisos, direccion) values (1, '5 estrellas', TRUE, 'calle 4 numero 10');
insert into SucursalEntity (id, calificacion, dosPisos, direccion) values (2, '4 estrellas', TRUE, 'calle 2 numero 8');
insert into SucursalEntity (id, calificacion, dosPisos, direccion) values (3, '4 estrellas', FALSE, 'calle 3 numero 9');
insert into SucursalEntity (id, calificacion, dosPisos, direccion) values (4, '5 estrellas', TRUE, 'calle 1 numero 7');
insert into TarjetaPuntosEntity (id, puntos, vencimientos) values (1, 3, <01-01-2018, 02-01-2018, 03-01-2018>);
insert into TarjetaPuntosEntity (id, puntos, vencimientos) values (2, 3, <01-01-2018, 02-01-2018, 03-01-2018>);
insert into TarjetaPuntosEntity (id, puntos, vencimientos) values (3, 1, <01-01-2018>);
insert into TarjetaPuntosEntity (id, puntos, vencimientos) values (4, 0, <>);
|
<filename>src/main/resources/db/migration/V12__altered_vilkarsvurdering_tabeller.sql
ALTER TABLE vilkarsvurderingsperiode DROP COLUMN navoppfulgt;
|
<reponame>todorkrastev/softuni-software-engineering<filename>DBMS/M01_MySQL/L05_TableRelations/Exercises/Solutions/P06_UniversityDatabase.sql<gh_stars>0
CREATE SCHEMA `university`;
USE `university`;
CREATE TABLE `subjects` (
`subject_id` INT PRIMARY KEY AUTO_INCREMENT,
`subject_name` VARCHAR(50)
);
CREATE TABLE `majors` (
`major_id` INT PRIMARY KEY AUTO_INCREMENT,
`name` VARCHAR(50)
);
CREATE TABLE `students` (
`student_id` INT PRIMARY KEY AUTO_INCREMENT,
`student_number` VARCHAR(12),
`student_name` VARCHAR(50),
`major_id` INT,
CONSTRAINT pk_students_majors FOREIGN KEY (`major_id`)
REFERENCES `majors` (`major_id`)
);
CREATE TABLE `payments` (
`payment_id` INT PRIMARY KEY AUTO_INCREMENT,
`payment_date` DATE,
`payment_amount` DECIMAL(8 , 2 ),
`student_id` INT,
CONSTRAINT fk_payments_students FOREIGN KEY (`student_id`)
REFERENCES `students` (`student_id`)
);
CREATE TABLE `agenda` (
`student_id` INT,
`subject_id` INT,
CONSTRAINT pk_agenda_subjects_students PRIMARY KEY (`student_id` , `subject_id`),
CONSTRAINT fk_agenda_subjects FOREIGN KEY (`subject_id`)
REFERENCES `subjects` (`subject_id`),
CONSTRAINT fk_agenda_students FOREIGN KEY (`student_id`)
REFERENCES `students` (`student_id`)
); |
<filename>application/create.sql<gh_stars>0
CREATE TABLE employees( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(250) NOT NULL, ssn CHAR(9) NOT NULL, tin CHAR(10) NOT NULL, CONSTRAINT pk_employees PRIMARY KEY(id), CONSTRAINT UQ_employees_ssn UNIQUE(ssn), CONSTRAINT UQ_employees_tin UNIQUE(tin) )
|
<filename>l2j_datapack/dist/sql/game/character_reco_bonus.sql
CREATE TABLE IF NOT EXISTS `character_reco_bonus` (
`charId` int(10) unsigned NOT NULL,
`rec_have` tinyint(3) unsigned NOT NULL DEFAULT '0',
`rec_left` tinyint(3) unsigned NOT NULL DEFAULT '0',
`time_left` bigint(13) unsigned NOT NULL DEFAULT '0',
UNIQUE KEY `charId` (`charId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
-- phpMyAdmin SQL Dump
-- version 4.6.6
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 11-06-2017 a las 05:29:38
-- Versión del servidor: 5.6.35
-- Versión de PHP: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `meowdaw2_social_network`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `following`
--
CREATE TABLE `following` (
`id` int(255) NOT NULL,
`user` int(255) DEFAULT NULL,
`followed` int(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `following`
--
INSERT INTO `following` (`id`, `user`, `followed`) VALUES
(3, 2, 6),
(5, 2, 3),
(6, 8, 2),
(9, 8, 5),
(10, 8, 6),
(11, 8, 7),
(12, 8, 4),
(14, 10, 8),
(15, 10, 7),
(16, 10, 6),
(19, 2, 8),
(20, 3, 8),
(29, 11, 8),
(30, 8, 11),
(44, 8, 3);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `likes`
--
CREATE TABLE `likes` (
`id` int(255) NOT NULL,
`user` int(255) DEFAULT NULL,
`publication` int(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `likes`
--
INSERT INTO `likes` (`id`, `user`, `publication`) VALUES
(15, 8, 5),
(19, 8, 12),
(20, 8, 4),
(21, 8, 2),
(22, 8, 3),
(40, 2, 12),
(41, 2, 3),
(42, 2, 2),
(44, 2, 1),
(46, 8, 13),
(50, 8, 15),
(55, 3, 16),
(56, 3, 15),
(57, 3, 14),
(58, 3, 13),
(59, 3, 12),
(63, 3, 17),
(64, 8, 21),
(67, 8, 18),
(103, 3, 18),
(126, 3, 21),
(127, 3, 21),
(128, 8, 23),
(129, 8, 22),
(130, 8, 24),
(131, 8, 30),
(132, 8, 38),
(133, 8, 37);
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `notifications`
--
CREATE TABLE `notifications` (
`id` int(255) NOT NULL,
`user_id` int(255) DEFAULT NULL,
`type` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`type_id` int(255) DEFAULT NULL,
`readed` varchar(3) COLLATE utf8_bin DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`extra` varchar(100) COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `notifications`
--
INSERT INTO `notifications` (`id`, `user_id`, `type`, `type_id`, `readed`, `created_at`, `extra`) VALUES
(1, 8, 'like', 2, '1', '2017-03-07 12:50:48', '16'),
(2, 8, 'like', 2, '1', '2017-03-07 12:55:34', '15'),
(3, 8, 'like', 2, '1', '2017-03-07 12:55:36', '14'),
(4, 8, 'follow', 2, '1', '2017-03-07 12:56:07', NULL),
(5, 8, 'like', 2, '1', '2017-03-08 08:58:21', '12'),
(6, 8, 'like', 2, '1', '2017-03-08 09:02:16', '3'),
(7, 8, 'like', 2, '1', '2017-03-08 10:09:35', '2'),
(8, 8, 'like', 8, '1', '2017-03-08 11:20:33', '15'),
(9, 8, 'like', 2, '1', '2017-03-09 08:34:00', '1'),
(10, 3, 'like', 8, '1', '2017-03-09 09:14:25', '6'),
(11, 8, 'like', 8, '1', '2017-03-09 09:35:30', '17'),
(12, 8, 'like', 8, '1', '2017-03-09 09:55:57', '18'),
(13, 8, 'like', 8, '1', '2017-03-09 09:57:56', '19'),
(14, 8, 'like', 3, '1', '2017-03-09 17:39:35', '14'),
(15, 8, 'like', 3, '1', '2017-03-09 17:39:38', '13'),
(16, 8, 'follow', 3, '1', '2017-03-09 17:39:51', NULL),
(17, 8, 'like', 2, '1', '2017-03-10 10:23:32', '14'),
(18, 3, 'follow', 8, '1', '2017-03-11 11:05:30', NULL),
(19, 3, 'follow', 8, '1', '2017-03-11 11:07:13', NULL),
(20, 3, 'follow', 8, '1', '2017-03-11 11:07:30', NULL),
(21, 8, 'like', 8, '1', '2017-03-11 11:23:17', '11'),
(22, 3, 'follow', 8, '1', '2017-03-11 11:23:34', NULL),
(23, 10, 'follow', 8, '0', '2017-05-26 11:22:58', NULL),
(24, 10, 'follow', 8, '0', '2017-05-26 11:26:08', NULL),
(25, 10, 'follow', 8, '0', '2017-05-26 11:26:35', NULL),
(26, 10, 'follow', 8, '0', '2017-05-26 11:26:36', NULL),
(27, 4, 'like', 8, '0', '2017-05-26 11:34:14', '10'),
(28, 8, 'like', 8, '1', '2017-05-26 11:41:35', '13'),
(29, 8, 'like', 8, '1', '2017-05-26 11:52:15', '15'),
(30, 8, 'follow', 11, '1', '2017-05-27 21:56:39', NULL),
(31, 11, 'follow', 8, '1', '2017-05-28 09:02:18', NULL),
(32, 8, 'like', 8, '1', '2017-05-28 09:07:28', '21'),
(33, 8, 'like', 8, '1', '2017-05-28 09:07:29', '20'),
(34, 8, 'like', 8, '1', '2017-05-28 18:55:24', '15'),
(35, 8, 'like', 3, '1', '2017-05-28 20:16:52', '21'),
(36, 8, 'like', 3, '1', '2017-05-28 20:16:52', '20'),
(37, 8, 'like', 3, '1', '2017-05-28 20:16:53', '18'),
(38, 8, 'like', 3, '1', '2017-05-28 20:16:55', '17'),
(39, 8, 'like', 3, '1', '2017-05-28 20:32:19', '16'),
(40, 8, 'like', 3, '1', '2017-05-28 20:32:20', '15'),
(41, 8, 'like', 3, '1', '2017-05-28 20:32:21', '14'),
(42, 8, 'like', 3, '1', '2017-05-28 20:32:21', '13'),
(43, 8, 'like', 3, '1', '2017-05-28 20:32:22', '12'),
(44, 8, 'like', 3, '1', '2017-05-28 20:44:28', '21'),
(45, 8, 'like', 3, '1', '2017-05-28 20:44:29', '20'),
(46, 8, 'like', 3, '1', '2017-05-28 20:44:30', '18'),
(47, 8, 'like', 3, '1', '2017-05-28 20:44:31', '17'),
(48, 8, 'like', 8, '1', '2017-05-29 05:44:41', '21'),
(49, 8, 'like', 8, '1', '2017-05-29 05:44:42', '20'),
(50, 8, 'like', 8, '1', '2017-05-29 05:44:45', '18'),
(51, 8, 'like', 8, '1', '2017-05-29 05:44:48', '18'),
(52, 3, 'like', 8, '1', '2017-05-29 09:54:27', '7'),
(53, 3, 'like', 8, '1', '2017-05-29 09:54:28', '7'),
(54, 3, 'like', 8, '1', '2017-05-29 09:54:28', '7'),
(55, 3, 'like', 8, '1', '2017-05-29 09:54:29', '7'),
(56, 3, 'like', 8, '1', '2017-05-29 09:54:30', '7'),
(57, 3, 'like', 8, '1', '2017-05-29 09:54:31', '7'),
(58, 3, 'like', 8, '1', '2017-05-29 09:54:32', '7'),
(59, 3, 'like', 8, '1', '2017-05-29 09:54:32', '7'),
(60, 3, 'like', 8, '1', '2017-05-29 09:54:33', '7'),
(61, 3, 'like', 8, '1', '2017-05-29 09:54:34', '7'),
(62, 3, 'follow', 8, '1', '2017-05-29 09:54:41', NULL),
(63, 3, 'follow', 8, '1', '2017-05-29 09:54:42', NULL),
(64, 3, 'follow', 8, '1', '2017-05-29 09:54:42', NULL),
(65, 3, 'follow', 8, '1', '2017-05-29 09:54:43', NULL),
(66, 3, 'follow', 8, '1', '2017-05-29 09:54:44', NULL),
(67, 3, 'follow', 8, '1', '2017-05-29 09:54:44', NULL),
(68, 3, 'follow', 8, '1', '2017-05-29 09:54:45', NULL),
(69, 3, 'follow', 8, '1', '2017-05-29 09:54:45', NULL),
(70, 3, 'follow', 8, '1', '2017-05-29 09:54:46', NULL),
(71, 3, 'follow', 8, '1', '2017-05-29 09:54:47', NULL),
(72, 3, 'follow', 8, '1', '2017-05-29 09:54:47', NULL),
(73, 3, 'follow', 8, '1', '2017-05-29 09:54:48', NULL),
(74, 3, 'follow', 8, '1', '2017-05-29 09:54:48', NULL),
(75, 3, 'follow', 8, '1', '2017-05-29 09:54:48', NULL),
(76, 8, 'like', 3, '1', '2017-05-29 10:03:45', '20'),
(77, 8, 'like', 3, '1', '2017-05-29 10:03:46', '21'),
(78, 8, 'like', 3, '1', '2017-05-29 10:03:48', '18'),
(79, 8, 'like', 3, '1', '2017-05-29 10:03:49', '20'),
(80, 8, 'like', 3, '1', '2017-05-29 10:03:50', '20'),
(81, 8, 'like', 3, '1', '2017-05-29 10:03:51', '20'),
(82, 8, 'like', 3, '1', '2017-05-29 10:03:52', '20'),
(83, 8, 'like', 3, '1', '2017-05-29 10:03:53', '20'),
(84, 8, 'like', 3, '1', '2017-05-29 10:03:57', '20'),
(85, 8, 'like', 3, '1', '2017-05-29 10:03:58', '21'),
(86, 8, 'like', 3, '1', '2017-05-29 10:03:59', '18'),
(87, 8, 'like', 3, '1', '2017-05-29 10:03:59', '20'),
(88, 8, 'like', 3, '1', '2017-05-29 10:04:00', '18'),
(89, 8, 'like', 3, '1', '2017-05-29 10:04:01', '20'),
(90, 8, 'like', 3, '1', '2017-05-29 10:04:02', '18'),
(91, 8, 'like', 3, '1', '2017-05-29 10:04:03', '18'),
(92, 8, 'like', 3, '1', '2017-05-29 10:04:04', '20'),
(93, 8, 'like', 3, '1', '2017-05-29 10:04:05', '21'),
(94, 8, 'like', 3, '1', '2017-05-29 10:04:06', '21'),
(95, 8, 'like', 3, '1', '2017-05-29 10:04:07', '20'),
(96, 8, 'like', 3, '1', '2017-05-29 10:04:08', '18'),
(97, 8, 'like', 3, '1', '2017-05-29 10:04:08', '20'),
(98, 8, 'like', 3, '1', '2017-05-29 10:04:09', '21'),
(99, 8, 'like', 3, '1', '2017-05-29 10:04:11', '21'),
(100, 8, 'like', 3, '1', '2017-05-29 10:04:14', '20'),
(101, 8, 'like', 3, '1', '2017-05-29 10:04:15', '18'),
(102, 8, 'like', 3, '1', '2017-05-29 10:04:18', '20'),
(103, 8, 'like', 3, '1', '2017-05-29 10:04:19', '21'),
(104, 8, 'like', 3, '1', '2017-05-29 10:04:20', '21'),
(105, 8, 'like', 3, '1', '2017-05-29 10:04:21', '21'),
(106, 8, 'like', 3, '1', '2017-05-29 10:04:23', '21'),
(107, 8, 'like', 3, '1', '2017-05-29 10:04:24', '21'),
(108, 8, 'like', 3, '1', '2017-05-29 10:04:25', '21'),
(109, 8, 'like', 3, '1', '2017-05-29 10:04:26', '21'),
(110, 8, 'like', 3, '1', '2017-05-29 10:04:26', '21'),
(111, 8, 'like', 3, '1', '2017-05-29 10:04:27', '21'),
(112, 8, 'like', 3, '1', '2017-05-29 10:04:28', '21'),
(113, 8, 'like', 3, '1', '2017-05-29 10:15:36', '21'),
(114, 8, 'like', 3, '1', '2017-05-29 10:15:37', '21'),
(115, 8, 'like', 3, '1', '2017-05-29 10:15:38', '21'),
(116, 8, 'like', 3, '1', '2017-05-29 10:15:39', '21'),
(117, 8, 'like', 3, '1', '2017-05-29 10:15:40', '21'),
(118, 8, 'like', 3, '1', '2017-05-29 10:15:42', '21'),
(119, 8, 'like', 3, '1', '2017-05-29 10:15:43', '21'),
(120, 8, 'like', 3, '1', '2017-05-29 10:15:44', '21'),
(121, 8, 'like', 3, '1', '2017-05-29 10:15:45', '21'),
(122, 8, 'like', 3, '1', '2017-05-29 10:15:46', '21'),
(123, 8, 'like', 3, '1', '2017-05-29 10:15:47', '21'),
(124, 8, 'like', 3, '1', '2017-05-29 10:15:48', '21'),
(125, 8, 'like', 3, '1', '2017-05-29 10:15:49', '21'),
(126, 8, 'like', 8, '1', '2017-06-01 05:29:51', '23'),
(127, 8, 'like', 8, '1', '2017-06-01 05:29:53', '22'),
(128, 8, 'like', 3, '1', '2017-06-01 10:21:33', '24'),
(129, 8, 'like', 3, '1', '2017-06-01 10:21:34', '23'),
(130, 8, 'like', 3, '1', '2017-06-01 10:21:34', '22'),
(131, 8, 'like', 3, '1', '2017-06-01 10:21:36', '22'),
(132, 8, 'like', 3, '1', '2017-06-01 10:21:37', '23'),
(133, 8, 'like', 3, '1', '2017-06-01 10:21:37', '23'),
(134, 8, 'like', 3, '1', '2017-06-01 10:21:38', '23'),
(135, 8, 'like', 3, '1', '2017-06-01 10:21:39', '23'),
(136, 8, 'like', 3, '1', '2017-06-01 10:21:39', '23'),
(137, 8, 'like', 3, '1', '2017-06-01 10:21:40', '23'),
(138, 8, 'like', 8, '1', '2017-06-03 09:13:20', '24'),
(139, 8, 'like', 8, '1', '2017-06-03 09:13:22', '30'),
(140, 8, 'like', 8, '0', '2017-06-08 16:08:35', '38'),
(141, 8, 'like', 8, '0', '2017-06-08 16:08:36', '37');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `private_messages`
--
CREATE TABLE `private_messages` (
`id` int(255) NOT NULL,
`message` longtext COLLATE utf8_bin,
`emitter` int(255) DEFAULT NULL,
`receiver` int(255) DEFAULT NULL,
`file` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`image` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`readed` varchar(3) COLLATE utf8_bin DEFAULT NULL,
`created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `private_messages`
--
INSERT INTO `private_messages` (`id`, `message`, `emitter`, `receiver`, `file`, `image`, `readed`, `created_at`) VALUES
(1, 'Hola que tal', 8, 2, NULL, NULL, '1', '2017-03-08 11:33:11'),
(2, 'Holaaaa', 8, 2, '81488972923.pdf', '81488972923.jpeg', '1', '2017-03-08 11:35:23'),
(3, 'eiiiii', 2, 8, '21488974658.pdf', '21488974658.jpeg', '1', '2017-03-08 12:04:18'),
(4, 'olasdsdasdasda', 8, 2, '81488974800.pdf', '81488974800.jpeg', '1', '2017-03-08 12:06:40'),
(5, 'HOLA HOLA HOLA', 2, 8, NULL, NULL, '1', '2017-03-08 12:11:37'),
(6, 'COMO ESTAS', 2, 8, NULL, NULL, '1', '2017-03-08 12:11:44'),
(7, 'ENVIAME EL FICHERO DE CLASE EN PDF', 2, 8, NULL, NULL, '1', '2017-03-08 12:11:58'),
(8, '<NAME>', 2, 8, NULL, NULL, '1', '2017-03-08 12:12:12'),
(9, '<NAME>', 2, 8, NULL, NULL, '1', '2017-03-08 12:12:30'),
(10, 'holaaaa de nuevo', 2, 8, NULL, NULL, '1', '2017-03-08 13:28:22'),
(11, 'OLaaaaaaaa', 2, 8, NULL, NULL, '1', '2017-03-09 08:34:13'),
(12, 'sdadasdasdasdasdasdas', 3, 8, NULL, NULL, '1', '2017-05-28 20:16:31'),
(13, 'as', 3, 8, NULL, NULL, '1', '2017-05-28 20:32:49'),
(14, 'sadasd', 3, 8, NULL, NULL, '1', '2017-05-28 20:32:54'),
(15, 'asdasdas', 3, 8, NULL, NULL, '1', '2017-05-28 20:32:57'),
(16, 'asdasdasdas', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:01'),
(17, 'asdasdasd', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:05'),
(18, 'asdasdasdasd', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:10'),
(19, 'asdasdasdasd', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:14'),
(20, 'sdasdasda', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:23'),
(21, 'sdasdasdaasdasasdd', 3, 8, NULL, NULL, '1', '2017-05-28 20:33:25'),
(22, '<aaa', 3, 8, NULL, NULL, '1', '2017-05-28 20:45:04'),
(23, 'Shdhd', 3, 8, NULL, NULL, '1', '2017-05-29 09:52:29'),
(24, 'Gwgsgg', 3, 8, NULL, NULL, '1', '2017-05-29 09:52:46'),
(25, 'sfdsdfsdfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 09:55:12'),
(26, 'dfsdfsdfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 09:55:21'),
(27, 'sssssss', 8, 3, NULL, NULL, '1', '2017-05-29 09:55:29'),
(28, 'qweqweqweqwe', 8, 3, NULL, NULL, '1', '2017-05-29 09:55:38'),
(29, 'aasdasdas', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:04'),
(30, 'aaaa', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:12'),
(31, 'wwweeeerrrr', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:22'),
(32, 'rwerwerwe', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:29'),
(33, 'dfsdfsdfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:42'),
(34, 'sdfsfsdfsfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 09:58:51'),
(35, 'sdfsfedfefsdfsd', 8, 3, NULL, NULL, '1', '2017-05-29 09:59:02'),
(36, 'dfsdfsdfsdfsdfsd', 8, 3, NULL, NULL, '1', '2017-05-29 09:59:14'),
(37, 'sdfsdfsdfsdfsdfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 09:59:22'),
(38, 'fddfdg', 8, 3, NULL, NULL, '1', '2017-05-29 09:59:38'),
(39, 'cvxxcvvxcvxcv', 8, 3, NULL, NULL, '1', '2017-05-29 10:00:22'),
(40, 'ssdfsdfsdfsdf', 8, 3, NULL, NULL, '1', '2017-05-29 10:00:31'),
(41, 'dfsdfsdfsdfsd', 8, 3, NULL, NULL, '1', '2017-05-29 10:00:39'),
(42, 'sdfsdffdsdfsfsdfsf', 8, 3, NULL, NULL, '1', '2017-05-29 10:00:46'),
(43, 'dssdfdfdfdfsdfsdfssdf', 8, 3, NULL, NULL, '1', '2017-05-29 10:00:54'),
(44, 'sdffdssdfsdfsdfdfs', 8, 3, NULL, NULL, '1', '2017-05-29 10:01:01'),
(45, 'fdgdffgdfg', 8, 3, NULL, NULL, '1', '2017-05-29 10:01:20'),
(46, 'Hooo', 3, 8, NULL, NULL, '1', '2017-05-29 10:04:39'),
(47, 'Uxwbd', 3, 8, NULL, NULL, '1', '2017-05-29 10:05:24'),
(48, 'Tkgkgwjt', 3, 8, NULL, NULL, '1', '2017-05-29 10:07:23'),
(49, 'Gsgusngsg', 3, 8, NULL, NULL, '1', '2017-05-29 10:09:17'),
(50, 'Imbesi', 11, 8, NULL, NULL, '1', '2017-05-29 10:23:35'),
(51, 'Imbesi tu tsss', 8, 11, NULL, NULL, '0', '2017-05-29 12:43:45'),
(52, 'Imbesi tu tsss', 8, 11, NULL, NULL, '0', '2017-05-29 12:43:45'),
(53, 'Riekcncjjd', 3, 8, NULL, NULL, '1', '2017-06-01 05:31:31'),
(54, 'asdfasdfasdfasdf', 3, 8, NULL, NULL, '1', '2017-06-01 10:21:17'),
(55, 'asdfasdfasdf', 3, 8, NULL, NULL, '1', '2017-06-01 10:21:21'),
(56, 'Novea que calor se pasa aqui niña', 8, 11, NULL, '81496408351.jpeg', '0', '2017-06-02 12:59:11'),
(57, 'adasdadasdasdasdsada', 3, 8, NULL, NULL, '0', '2017-06-08 16:10:16');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `publications`
--
CREATE TABLE `publications` (
`id` int(255) NOT NULL,
`user_id` int(255) DEFAULT NULL,
`text` mediumtext COLLATE utf8_bin,
`document` varchar(100) COLLATE utf8_bin DEFAULT NULL,
`image` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`status` varchar(30) COLLATE utf8_bin DEFAULT NULL,
`created_at` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `publications`
--
INSERT INTO `publications` (`id`, `user_id`, `text`, `document`, `image`, `status`, `created_at`) VALUES
(1, 8, 'Hola mundo!!', NULL, NULL, NULL, '2017-03-05 22:32:50'),
(2, 8, 'Prueba de publicación', NULL, '81488753268.jpeg', NULL, '2017-03-05 22:34:28'),
(3, 8, 'Hola nueva prueba con todo', '81488753453.pdf', '81488753453.jpeg', NULL, '2017-03-05 22:37:33'),
(4, 2, 'Audi la mejor marca de coches', NULL, NULL, NULL, '2017-03-05 22:41:18'),
(5, 2, 'Me encanta AUDI', NULL, NULL, NULL, '2017-03-05 22:41:41'),
(6, 3, 'Soy fontanero de 44 años que le encanta el futbol', NULL, NULL, NULL, '2017-03-05 22:42:16'),
(7, 3, '<NAME>!!', NULL, NULL, NULL, '2017-03-05 22:42:37'),
(9, 4, 'me gusta el mambo', NULL, NULL, NULL, '2017-03-05 22:43:37'),
(10, 4, 'Te ase una cachimba o q ase', NULL, NULL, NULL, '2017-03-05 22:43:53'),
(12, 8, 'vamoh a vel', NULL, NULL, NULL, '2017-03-07 09:09:20'),
(13, 8, 'aaa', '81495798486.pdf', NULL, NULL, '2017-05-26 11:34:46'),
(14, 8, 'qqqqq', NULL, NULL, NULL, '2017-05-26 11:42:37'),
(15, 8, 'qweqwe', NULL, NULL, NULL, '2017-05-26 11:42:42'),
(16, 8, 'Qqqqqqqqqqq', NULL, NULL, NULL, '2017-05-27 12:30:05'),
(17, 8, 'Iwkebhfskienfhusownfudiaoenfuowlenjxiiwfnfbjddudjsidosososjdjdkeiekndndikdndjidkfndkdndkfidmfkdidlendifnekdkxidlmdnfkjfidelenfnf', NULL, NULL, NULL, '2017-05-27 13:27:36'),
(18, 8, 'Wifieiwoqpciswos', NULL, '81495921893.jpeg', NULL, '2017-05-27 21:51:33'),
(21, 8, 'Gif', NULL, '81495962330.gif', NULL, '2017-05-28 09:05:30'),
(22, 8, 'Ola', '81496246554.pdf', '81496246554.gif', NULL, '2017-05-31 16:02:34'),
(23, 8, 'OLAAAAA', NULL, '81496259478.png', NULL, '2017-05-31 19:37:58'),
(24, 8, 'asdfasdfasfasdfasdfasdf', '81496311292.pdf', '81496311292.jpeg', NULL, '2017-06-01 10:01:32'),
(25, 3, 'asasdasd', '31496311460.pdf', '31496311460.png', NULL, '2017-06-01 10:04:20'),
(26, 8, 'Fjeisid', '81496384294.pdf', '81496384294.jpeg', NULL, '2017-06-02 06:18:14'),
(30, 8, 'Q PAZA', '81496481141.pdf', '81496481141.jpeg', NULL, '2017-06-03 09:12:21'),
(31, 8, 'aver', NULL, '81496505454.jpeg', NULL, '2017-06-03 15:57:34'),
(32, 8, 'asdasdas', NULL, '81496505511.jpeg', NULL, '2017-06-03 15:58:31'),
(33, 8, 'asdasdasdas', NULL, '81496506112.jpeg', NULL, '2017-06-03 16:08:32'),
(34, 8, 'asdsasda', NULL, '81496506160.jpeg', NULL, '2017-06-03 16:09:20'),
(35, 8, 'saddsadasdsadsa', NULL, '81496507493.jpeg', NULL, '2017-06-03 16:31:33'),
(36, 8, '<NAME>', '81496518995.pdf', '81496518995.gif', NULL, '2017-06-03 19:43:15'),
(37, 8, '<NAME>', '81496518997.pdf', '81496518997.gif', NULL, '2017-06-03 19:43:17'),
(38, 8, 'Diwowodnudoqowmfjxiaoqlebfusoowenfjdkdidodididldnehrospalwnfjospalqneufodpmqnwjricowowl', NULL, '81496655163.jpeg', NULL, '2017-06-05 09:32:43');
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `users`
--
CREATE TABLE `users` (
`id` int(255) NOT NULL,
`role` varchar(20) COLLATE utf8_bin DEFAULT NULL,
`email` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`name` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`surname` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`password` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`nick` varchar(50) COLLATE utf8_bin DEFAULT NULL,
`bio` varchar(255) COLLATE utf8_bin DEFAULT NULL,
`active` varchar(2) COLLATE utf8_bin DEFAULT NULL,
`image` varchar(255) COLLATE utf8_bin DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
--
-- Volcado de datos para la tabla `users`
--
INSERT INTO `users` (`id`, `role`, `email`, `name`, `surname`, `password`, `nick`, `bio`, `active`, `image`) VALUES
(2, 'ROLE_USER', '<EMAIL>', 'Wisin', 'Yandel', '$2y$04$9pgDE/hZt6nR0VQbYn5OU.5UU5yRbItA3utLVH./p4A9cLBLf8zRi', 'Wisin&Yandel', 'Esta es mi biografía', NULL, '21488712912.jpeg'),
(3, 'ROLE_USER', '<EMAIL>', 'Pepito', 'Aasas', '$2y$04$jE7wqNZwinrfQlIu83a26ePrOEiEy.HqPNXJY7zJh9BXP84QmFvIe', 'pepe2', NULL, NULL, NULL),
(4, 'ROLE_USER', '<EMAIL>', 'Paquito', 'Elchatarra', '$2y$04$l7A7nw2dSsqi8MlLwbGphOVBjFGGi7Q5K/dCjvMS7/TSEhG9npY3S', 'PaKiTo', NULL, NULL, NULL),
(5, 'ROLE_USER', '<EMAIL>', 'Fracisco', '<NAME>', '$2y$04$oGTcbqv12fnLZqi1Dv4g6uib4oGFEHhJLSTxay6VHghDSo/VQYjxe', 'FranCG', NULL, NULL, NULL),
(6, 'ROLE_USER', '<EMAIL>', 'Lola', '<NAME>', '$2y$04$iHnXAXhDcoBWCHSKauUxeuxKywRUZQlScu3/Zrj21FoLpe/npnrWC', 'LolaMM', NULL, NULL, NULL),
(7, 'ROLE_USER', '<EMAIL>', 'Silvino', 'Matamoros', '$2y$04$6uNVUwH3msGwZo.ns9P1Ze0ZIyyx745GLuIuHUzf93iZW0wEKQkHS', 'SilvinoMatamoros', NULL, NULL, NULL),
(8, 'ROLE_USER', '<EMAIL>', 'Alex', '<NAME>', '$2y$04$YtBPUHoG.fXhfuYu4YGvvuToFY4ze38Btvi9MNe4TSOmPQFDVViVi', 'AlexLopezOrtiz9', 'Esta es mi biografía guapa....', NULL, '81488728897.jpeg'),
(10, 'ROLE_USER', '<EMAIL>', 'Junior', '<NAME>', '$2y$04$zytkXYFIl5DymeAXOpLG6OpZbNIQ.WVpvnbxYCH4R03zNxVtydgJG', 'JuniorSantana', NULL, NULL, NULL),
(11, 'ROLE_USER', '<EMAIL>', 'Ana', 'Yudina', '$2y$04$hMsHLVsh.ItuHSM7j90Eu.Ah.UOJxiX3Rq1KohRiUXWGfSqpjS5Pq', '9', NULL, NULL, NULL);
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `following`
--
ALTER TABLE `following`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_following_users` (`user`),
ADD KEY `fk_followed` (`followed`);
--
-- Indices de la tabla `likes`
--
ALTER TABLE `likes`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_likes_publication` (`publication`),
ADD KEY `fk_likes_users` (`user`);
--
-- Indices de la tabla `notifications`
--
ALTER TABLE `notifications`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_notifications_users` (`user_id`);
--
-- Indices de la tabla `private_messages`
--
ALTER TABLE `private_messages`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_emmiter_privates` (`emitter`),
ADD KEY `fk_receiver_privates` (`receiver`);
--
-- Indices de la tabla `publications`
--
ALTER TABLE `publications`
ADD PRIMARY KEY (`id`),
ADD KEY `fk_publications_users` (`user_id`);
--
-- Indices de la tabla `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_uniques_fields` (`email`,`nick`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `following`
--
ALTER TABLE `following`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=45;
--
-- AUTO_INCREMENT de la tabla `likes`
--
ALTER TABLE `likes`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=134;
--
-- AUTO_INCREMENT de la tabla `notifications`
--
ALTER TABLE `notifications`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=142;
--
-- AUTO_INCREMENT de la tabla `private_messages`
--
ALTER TABLE `private_messages`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58;
--
-- AUTO_INCREMENT de la tabla `publications`
--
ALTER TABLE `publications`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39;
--
-- AUTO_INCREMENT de la tabla `users`
--
ALTER TABLE `users`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- Restricciones para tablas volcadas
--
--
-- Filtros para la tabla `following`
--
ALTER TABLE `following`
ADD CONSTRAINT `fk_followed` FOREIGN KEY (`followed`) REFERENCES `users` (`id`),
ADD CONSTRAINT `fk_following_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`);
--
-- Filtros para la tabla `likes`
--
ALTER TABLE `likes`
ADD CONSTRAINT `fk_likes_publication` FOREIGN KEY (`publication`) REFERENCES `publications` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `fk_likes_users` FOREIGN KEY (`user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Filtros para la tabla `notifications`
--
ALTER TABLE `notifications`
ADD CONSTRAINT `fk_notifications_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);
--
-- Filtros para la tabla `private_messages`
--
ALTER TABLE `private_messages`
ADD CONSTRAINT `fk_emmiter_privates` FOREIGN KEY (`emitter`) REFERENCES `users` (`id`),
ADD CONSTRAINT `fk_receiver_privates` FOREIGN KEY (`receiver`) REFERENCES `users` (`id`);
--
-- Filtros para la tabla `publications`
--
ALTER TABLE `publications`
ADD CONSTRAINT `fk_publications_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`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 */;
|
insert into inventory_item (item_id) values ('12345'); |
create table viasq.spacer_db as
select
taxonomy_gtdb,
accession,
array_id,
spacer_id,
spacer_seq,
accession3,
source,
if (ncbi_tax_id in ('none', 'NA'), NULL, cast(ncbi_tax_id as INT64)) as ncbi_tax_id
from viasq.spacer_db_raw
|
-- Create two tables to store UUIDs with special properties
insert into dbo.linkage_r1
select linkage_uuid from (
select
linkage_uuid
, count(distinct partner_code) as cc
from
linkage
where
partner_code in ('UFH', 'FLM')
AND rule_id = 1
group by linkage_uuid having count(distinct partner_code) > 1
) as x
insert into dbo.linkage_r2
select linkage_uuid from (
select
linkage_uuid
, count(distinct partner_code) as cc
from
linkage
where
partner_code in ('UFH', 'FLM')
AND rule_id = 2
group by linkage_uuid having count(distinct partner_code) > 1
) as x
-- Find patients matched by R1 only
select
partner_code, linkage_patid, ln.linkage_uuid, rule_id
FROM
linkage ln
JOIN (select r1.linkage_uuid
from
linkage_r1 r1
left join linkage_r2 r2 on r1.linkage_uuid = r2.linkage_uuid
where r2.linkage_uuid is null
) as x on x.linkage_uuid = ln.linkage_uuid
and partner_code = 'UFH'
-- Find patients matched by R2 only
select
partner_code, linkage_patid, ln.linkage_uuid, rule_id
FROM
linkage ln
JOIN (select r2.linkage_uuid
from
linkage_r2 r2
left join linkage_r1 r1 on r1.linkage_uuid = r2.linkage_uuid
where r1.linkage_uuid is null
) as x on x.linkage_uuid = ln.linkage_uuid
and partner_code = 'UFH'
-- ===============================
-- Create list for R1&R2 mathces
SELECT DISTINCT top(2000) ln.linkage_patid as flm_patid,
ln.linkage_uuid,
l2.linkage_patid as ufh_patid -- partner_code, linkage_patid, ln.linkage_uuid, rule_id,
-- linkage_hash
FROM
linkage ln
JOIN
linkage_r1 r1 ON r1.linkage_uuid = ln.linkage_uuid
JOIN
linkage_r2 r2 ON r2.linkage_uuid = ln.linkage_uuid AND partner_code = 'FLM'
JOIN
linkage l2 ON l2.linkage_uuid = ln.linkage_uuid AND l2.partner_code = 'UFH'
ORDER BY ln.linkage_uuid
-- ===============================
-- Create list for R1 mathces only
SELECT DISTINCT top(500)
ln.linkage_patid as flm_patid,
ln.linkage_uuid,
l2.linkage_patid as ufh_patid
-- partner_code, linkage_patid, ln.linkage_uuid, rule_id,
-- linkage_hash
FROM
linkage ln
JOIN
(
SELECT r1.linkage_uuid
FROM linkage_r1 r1
LEFT JOIN linkage_r2 r2 ON r1.linkage_uuid = r2.linkage_uuid
WHERE
r2.linkage_uuid is null
) as x ON x.linkage_uuid = ln.linkage_uuid AND partner_code = 'FLM'
JOIN linkage l2 ON l2.linkage_uuid = ln.linkage_uuid AND l2.partner_code = 'UFH'
ORDER BY ln.linkage_uuid
-- ===============================
-- Create list for R2 mathces only
SELECT DISTINCT top(500)
ln.linkage_patid as flm_patid,
ln.linkage_uuid,
l2.linkage_patid as ufh_patid
-- partner_code, linkage_patid, ln.linkage_uuid, rule_id,
-- linkage_hash
FROM
linkage ln
JOIN
(
SELECT r2.linkage_uuid
FROM linkage_r2 r2
LEFT JOIN linkage_r1 r1 ON r1.linkage_uuid = r2.linkage_uuid
WHERE
r1.linkage_uuid is null
) as x ON x.linkage_uuid = ln.linkage_uuid AND partner_code = 'FLM'
JOIN linkage l2 ON l2.linkage_uuid = ln.linkage_uuid AND l2.partner_code = 'UFH'
ORDER BY ln.linkage_uuid
|
<gh_stars>10-100
CREATE TABLE subdivision_LI (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB;
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-01', 'Balzers', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-02', 'Eschen', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-03', 'Gamprin', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-04', 'Mauren', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-05', 'Planken', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-06', 'Ruggell', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-07', 'Schaan', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-08', 'Schellenberg', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-09', 'Triesen', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-10', 'Triesenberg', 'commune');
INSERT INTO `subdivision_LI` (`id`, `name`, `level`) VALUES ('LI-11', 'Vaduz', 'commune');
|
<filename>src/FirebirdDbComparer.Tests/Compare/ComparerTestsData/Creating/BasicSQLFunctionWithTypeOf_30.Source.sql
create domain d_test as varchar(20);
set term ^;
create or alter function new_function (i type of d_test) returns type of d_test
as
begin
end^
set term ;^ |
<reponame>Matheus-gs/Better-food
CREATE DATABASE betterfood;
USE betterfood;
CREATE TABLE products(
id_produto INT UNSIGNED NOT NULL AUTO_INCREMENT,
nome_produto VARCHAR(100) NOT NULL,
-- Valores Nutricionais
carboidratos_produto INT NOT NULL,
proteinas_produto INT NOT NULL,
gorduras_totais_produto INT NOT NULL,
peso_produto INT NOT NULL,
validade_produto DATE NULL,
lote_produto INT NOT NULL,
PRIMARY KEY (id_produto)
);
|
-- LOGS
DELETE FROM `sys_objects_logs` WHERE `object`='bx_elasticsearch';
INSERT INTO `sys_objects_logs` (`object`, `module`, `logs_storage`, `title`, `active`, `class_name`, `class_file`) VALUES
('bx_elasticsearch', 'bx_elasticsearch', 'Auto', '_bx_elasticsearch_log', 1, '', '');
-- STUDIO PAGE & WIDGET
SET @iPageId = (SELECT `id` FROM `sys_std_pages` WHERE `name`='bx_elasticsearch' LIMIT 1);
UPDATE `sys_std_widgets` SET `type`='integrations' WHERE `page_id`=@iPageId;
|
USE employeelist_db;
INSERT INTO department (name)
VALUES ("programming"), ("cybersecurity"), ("marketing");
INSERT INTO role (title, salary, department_id)
VALUES ("sales lead", 80000, 1), ("salesperson", 50000, 2), ("marketer", 65000, 3);
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES ("Sally", "Smith", 1, null), ("John", "Smith", 2, null), ("Bob", "Johnson", 3, null);
|
<reponame>xj0707/wotuoquan<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50617
Source Host : localhost:3306
Source Database : wotuoquan
Target Server Type : MYSQL
Target Server Version : 50617
File Encoding : 65001
Date: 2017-09-18 14:42:12
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for wtq_address
-- ----------------------------
DROP TABLE IF EXISTS `wtq_address`;
CREATE TABLE `wtq_address` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '地址ID',
`user_id` int(11) NOT NULL COMMENT '用户ID',
`user_name` varchar(30) DEFAULT NULL COMMENT '收货人的姓名',
`user_phone` varchar(255) DEFAULT NULL COMMENT '收货人的电话',
`user_address` varchar(255) DEFAULT NULL COMMENT '收货人的地址',
`address_type` tinyint(1) DEFAULT '0' COMMENT '设置默认地址 1 ',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COMMENT='用户头像';
-- ----------------------------
-- Records of wtq_address
-- ----------------------------
INSERT INTO `wtq_address` VALUES ('1', '2', 'rachin', '13688369875', '四川省攀枝花市米易县 ,太阳村 ', '0');
INSERT INTO `wtq_address` VALUES ('3', '2', 'liangdong', '13688369875', '广西壮族自治区崇左市龙州县 ,沈家巷2号20栋1单元', '1');
INSERT INTO `wtq_address` VALUES ('4', '11', '王伟', '13340889696', '四川省绵阳市游仙区,长虹国际', '1');
INSERT INTO `wtq_address` VALUES ('5', '10', '梁栋', '13688369875', '四川省绵阳市游仙区,沈家坝北街', '1');
INSERT INTO `wtq_address` VALUES ('6', '12', '许', '18215584091', '四川省绵阳市涪城区,高水小区', '0');
INSERT INTO `wtq_address` VALUES ('7', '2', 'rachin', '13688369875', '广东省汕头市金平区,梁栋啊', '0');
INSERT INTO `wtq_address` VALUES ('8', '16', '梁栋', '13688399875', '四川省绵阳市游仙区,沈家坝北街沈家巷2号', '1');
INSERT INTO `wtq_address` VALUES ('9', '15', '绵阳市毅德商贸A区27幢3号', '18382453236', ',', '0');
INSERT INTO `wtq_address` VALUES ('10', '15', '绵阳市毅德商贸A区27幢3号', '18382453236', ',', '0');
INSERT INTO `wtq_address` VALUES ('11', '18', '姜敏', '18382453236', ',绵阳市毅德商贸城A区27幢3号', '0');
-- ----------------------------
-- Table structure for wtq_admin
-- ----------------------------
DROP TABLE IF EXISTS `wtq_admin`;
CREATE TABLE `wtq_admin` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`admin_user` varchar(30) NOT NULL COMMENT '账号',
`admin_pwd` char(32) NOT NULL COMMENT '密码',
`admin_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1是启用0是禁用',
`admin_level` tinyint(1) NOT NULL COMMENT '管理员级别1',
`admin_ip` varchar(20) DEFAULT NULL,
`create_time` int(11) DEFAULT NULL,
`update_time` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_admin
-- ----------------------------
INSERT INTO `wtq_admin` VALUES ('1', 'supadmin', '0192023a7bbd73250516f069df18b500', '1', '1', '192.168.3.11', '1499823918', '1505711756');
INSERT INTO `wtq_admin` VALUES ('2', 'admin123', 'admin123', '1', '2', null, '1499841938', null);
-- ----------------------------
-- Table structure for wtq_home_lunbo
-- ----------------------------
DROP TABLE IF EXISTS `wtq_home_lunbo`;
CREATE TABLE `wtq_home_lunbo` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`parent_id` int(11) DEFAULT NULL COMMENT '分类下的ID,也就是产品的父ID',
`lunbo_describe` varchar(255) DEFAULT NULL COMMENT '轮播图的简要描述',
`product_url` varchar(255) NOT NULL COMMENT '这个父产品的图片',
`product_state` tinyint(1) DEFAULT '0' COMMENT '状态 是否启用该图片',
`lunbo_type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '轮播类型 1为 首页轮播 2为推荐轮播',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8 COMMENT='首页轮播图';
-- ----------------------------
-- Records of wtq_home_lunbo
-- ----------------------------
INSERT INTO `wtq_home_lunbo` VALUES ('13', null, '窝陀泉首页图片', '20170727/d694a3646b4b350e09f3b26e38e9f668.png', '1', '1');
INSERT INTO `wtq_home_lunbo` VALUES ('15', null, '首页第三张图', '20170727/43c2e8c509ef15f094b9766a01689622.png', '1', '1');
INSERT INTO `wtq_home_lunbo` VALUES ('16', null, '首页第四张图', '20170727/33a0dd764456f49b7c70b72a3aa74acd.JPG', '1', '1');
INSERT INTO `wtq_home_lunbo` VALUES ('17', null, '推荐图', '20170830/8ad90cb92db37dca0d13accab27545be.jpg', '1', '2');
INSERT INTO `wtq_home_lunbo` VALUES ('18', null, '推荐2', '20170830/405765affc6c14b4d62c88c2e195446e.jpg', '1', '2');
INSERT INTO `wtq_home_lunbo` VALUES ('19', null, '推荐3', '20170830/817953e47ab1196d0f9c977a4319c823.jpg', '1', '2');
INSERT INTO `wtq_home_lunbo` VALUES ('21', null, '', '20170809/fa0c60c532e4a9576210dce84cbb00a5.jpg', '1', '1');
INSERT INTO `wtq_home_lunbo` VALUES ('22', null, '推荐4', '20170830/ce92b5bb6cc2a3638adf305d883ceccb.jpg', '0', '2');
-- ----------------------------
-- Table structure for wtq_order
-- ----------------------------
DROP TABLE IF EXISTS `wtq_order`;
CREATE TABLE `wtq_order` (
`order_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL COMMENT '用户ID',
`product_id` int(11) NOT NULL COMMENT '产品ID',
`buy_num` int(11) NOT NULL,
`product_totalprice` decimal(10,2) NOT NULL COMMENT '订单总价格',
`order_state` tinyint(1) NOT NULL DEFAULT '0' COMMENT '订单的状态 0未收货 1未收货',
`order_time` int(11) DEFAULT NULL COMMENT '下单时间',
`order_overtime` int(11) DEFAULT NULL COMMENT '用户收货时间',
`address_id` int(11) NOT NULL DEFAULT '0',
`pay_state` tinyint(1) DEFAULT '0' COMMENT '0未支付 1微信支付 2支付宝支付',
`payid` varchar(255) DEFAULT NULL COMMENT '支付唯一标示',
PRIMARY KEY (`order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8 COMMENT='用户订单详情';
-- ----------------------------
-- Records of wtq_order
-- ----------------------------
INSERT INTO `wtq_order` VALUES ('73', '16', '34', '1', '0.01', '0', '1505701604', null, '8', '1', '4005062001201709182771055754');
INSERT INTO `wtq_order` VALUES ('74', '16', '34', '1', '0.01', '0', '1505701623', null, '8', '2', '2017091821001004790204984814');
INSERT INTO `wtq_order` VALUES ('75', '18', '35', '1', '2.50', '0', '1505705536', null, '11', '1', '4007952001201709182779872726');
-- ----------------------------
-- Table structure for wtq_payinfo
-- ----------------------------
DROP TABLE IF EXISTS `wtq_payinfo`;
CREATE TABLE `wtq_payinfo` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`orderid` int(11) NOT NULL,
`userid` int(11) NOT NULL,
`payid` varchar(255) NOT NULL,
`create_time` int(11) DEFAULT NULL COMMENT '生成的时间',
`paystate` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1微信 2支付宝',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=44 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_payinfo
-- ----------------------------
INSERT INTO `wtq_payinfo` VALUES ('41', '73', '16', '4005062001201709182771055754', '1505701604', '1');
INSERT INTO `wtq_payinfo` VALUES ('42', '74', '16', '2017091821001004790204984814', '1505701623', '2');
INSERT INTO `wtq_payinfo` VALUES ('43', '75', '18', '4007952001201709182779872726', '1505705536', '1');
-- ----------------------------
-- Table structure for wtq_product
-- ----------------------------
DROP TABLE IF EXISTS `wtq_product`;
CREATE TABLE `wtq_product` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_name` varchar(20) NOT NULL COMMENT '产品名',
`parent_id` int(11) NOT NULL COMMENT '父ID',
`describe` varchar(50) DEFAULT NULL COMMENT '产品的描述',
`product_url` varchar(255) DEFAULT NULL COMMENT '类别图片',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=67 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_product
-- ----------------------------
INSERT INTO `wtq_product` VALUES ('1', 'W', '0', '水', '');
INSERT INTO `wtq_product` VALUES ('28', 'D', '0', '引用器皿', '');
INSERT INTO `wtq_product` VALUES ('33', 'F', '0', '农产品', '');
INSERT INTO `wtq_product` VALUES ('51', 'D1', '28', '饮水机', '20170727/d32f1614c0b36d7be7ceb719d3f3982a.png');
INSERT INTO `wtq_product` VALUES ('56', 'D3', '28', '水杯', '20170727/54df0e5e21b271fb202450285b4e3b2a.png');
INSERT INTO `wtq_product` VALUES ('57', 'D2', '28', '茶壶', '20170727/4be9b11c25d873061103e656604ad547.jpg');
INSERT INTO `wtq_product` VALUES ('58', 'D4', '28', '水壶', '20170727/398a2a1db507ef5851e9538a7a468a75.jpg');
INSERT INTO `wtq_product` VALUES ('59', 'D5', '28', '酒杯', '20170727/424c7e88b68a0b63aedc653632613207.jpg');
INSERT INTO `wtq_product` VALUES ('60', 'D6', '28', '碗', '20170727/e5e5588100267758b33e429c91baf003.jpg');
INSERT INTO `wtq_product` VALUES ('61', 'F1', '33', '天麻', '20170830/c94fd1c8c549d9a01a8cf98ce824ee32.png');
INSERT INTO `wtq_product` VALUES ('62', 'F2', '33', '牛肝菌', '20170830/38bc1c11c066aff1304200afa435a893.png');
INSERT INTO `wtq_product` VALUES ('63', 'F3', '33', '木耳', '20170830/aa23cb0257b8383a327c763676939a35.png');
INSERT INTO `wtq_product` VALUES ('64', 'F4', '33', '姬松茸', '20170830/143f170be0b0d3305ba5bcf41ecca13b.png');
INSERT INTO `wtq_product` VALUES ('65', 'F5', '33', '茶叶', '20170830/b325e20f5080cce2d9ff1fd2f4595a27.png');
INSERT INTO `wtq_product` VALUES ('66', 'F6', '33', '其他', '20170830/532de9fca7e7a0337a0e819148f0ee9e.png');
-- ----------------------------
-- Table structure for wtq_product_list
-- ----------------------------
DROP TABLE IF EXISTS `wtq_product_list`;
CREATE TABLE `wtq_product_list` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`product_parentid` int(11) NOT NULL COMMENT '产品父ID',
`product_name` varchar(30) NOT NULL COMMENT '产品名称',
`product_url` varchar(255) NOT NULL COMMENT '产品图片URL',
`product_describe` varchar(255) NOT NULL COMMENT '产品描述',
`product_label` varchar(15) DEFAULT NULL COMMENT '产品标签 特惠装',
`product_norms` varchar(20) DEFAULT NULL COMMENT '产品规格如ml',
`product_price` decimal(10,2) DEFAULT NULL COMMENT '价格',
`product_num` int(11) NOT NULL DEFAULT '0' COMMENT '产品数量',
`is_suggest` tinyint(1) DEFAULT '0' COMMENT '设为推荐 1为推荐 0 默认',
`s_describe` varchar(255) NOT NULL DEFAULT 'NULL' COMMENT '成为推荐理由',
`contact` varchar(50) DEFAULT NULL,
`qrcode_url` varchar(255) DEFAULT NULL COMMENT '二维码URL',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=50 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_product_list
-- ----------------------------
INSERT INTO `wtq_product_list` VALUES ('39', '61', '野生天麻', '20170830/3ef6e9a7b69e47dd4d94fd18355e78aa.jpg;20170830/888847ee18f212bd1bb79d7efddbc0b6.jpg;20170830/81b08a9942d0e5e925f52bfb3784e69e.jpg', '采摘自深山生长成熟的天麻。可用于治疗高血压、头痛眩晕、口眼歪斜、肢体麻木、小儿惊厥等症,效果优于人工种植天麻。', '顺丰包邮', '500g', '880.00', '10000', '1', '价格实惠', '08166388081', 'qrcode/39.png');
INSERT INTO `wtq_product_list` VALUES ('40', '61', '野生天麻', '20170830/0d1caf807328159a150355684b7ed051.jpg;20170830/b6f2f9e115a2bbcd01867813a45e1e9b.jpg;20170830/dee7633fd1bf1eefcbd736bffb1458a7.jpg', '采摘自深山生长成熟的天麻,切片处理,无任何添加成分。可用于治疗高血压、头痛眩晕、口眼歪斜、肢体麻木、小儿惊厥等症,效果优于人工种植天麻。', '顺丰包邮', '250g', '480.00', '10000', '1', '入药养生', '08166388081', 'qrcode/40.png');
INSERT INTO `wtq_product_list` VALUES ('41', '61', '天麻', '20170830/bf93f6c0fd8177a63b49ed740b509c14.jpg;20170830/c0bd5a6a76eaf5d1ade935828a82badf.png;20170830/c0bd5a6a76eaf5d1ade935828a82badf.jpg;20170830/73df9a6dfb18726482ee441f7e027b17.jpg', '人工种植天麻。可用于治疗高血压、头痛眩晕、口眼歪斜、肢体麻木、小儿惊厥等症。也可用于蒸煮类食材,色香俱全,滋补养生。', '顺丰包邮', '250g', '316.00', '10000', '0', 'NULL', '08166388081', 'qrcode/41.png');
INSERT INTO `wtq_product_list` VALUES ('42', '62', '美味牛肝菌', '20170830/404d67013f662a42c172c943ff7406d6.jpg;20170830/c726caeb497d6b7cce567a36a11f5e05.jpg;20170830/752d12d12ad502d8ef797a718919f3ee.jpg;20170830/64496e2705797355e0be10a5a86f2b84.jpg', '牛肝菌因肉质肥厚,极似牛肝而得名,是名贵稀有的野生食用菌,为“四大菌王”之一。用来配制汤料或做成酱油浸膏,也有制成盐腌品食用。', '顺丰包邮', '100g', '108.00', '9999', '1', '美妙回味', '08166388081', 'qrcode/42.png');
INSERT INTO `wtq_product_list` VALUES ('43', '63', '冬木耳', '20170830/f8205117fa0bf58c01e60916e6d2b246.jpg;20170830/156ecb08d5bdb31defd2c983ebca08af.jpg;20170830/33fda51345fff678f8ea16bec83b52d1.jpg;20170830/588cd766e1665fdd5bed1c7410cb85bd.jpg', '味道鲜美,可素可荤,营养丰富。能益气强身,令人肌肤红润,容光焕发,能够疏通肠胃,润滑肠道,同时对高血压患者也有一定帮助。', '顺丰包邮', '100g', '68.00', '10000', '0', 'NULL', '08166388081', 'qrcode/43.png');
INSERT INTO `wtq_product_list` VALUES ('44', '64', '姬松茸', '20170830/3de10aa6b6c32351c39a9813386ee881.jpg;20170830/54b5e1d7078d8315cb13888cbbdf4b4f.jpg;20170830/fb383f132da61646099eb4633de7334e.jpg;20170830/8f7163bacddd4d4ecdda37c4872ba283.JPG', '味道带甜,有杏仁的芳香。姬松茸常见于营养保健食品中,并声称有活化免疫系统、预防恶性肿瘤(防癌)的功效。可用于菜品食材。', '顺丰包邮', '180g', '108.00', '10000', '1', '入食入药', '08166388081', 'qrcode/44.png');
INSERT INTO `wtq_product_list` VALUES ('45', '1', '窝托泉小瓶', '20170918/969d6ae739882cd05904989f81aafc48.jpg', '含有对人体有益的矿物质锶,达国家矿泉水标准;窝托泉山泉水取于自然,胜于自然。天然弱碱性水,它可以帮我们清除掉血液和身体里的多余脂肪。', '特惠装', '350ml', '2.50', '9997', '1', '销量领先', '08166388081', null);
INSERT INTO `wtq_product_list` VALUES ('46', '1', '窝托泉大瓶', '20170918/8b4c4831cfaa990e8e4e9be33b70421f.jpg', '含有对人体有益的矿物质锶,达国家矿泉水标准;窝托泉山泉水取于自然,胜于自然。天然弱碱性水,它可以帮我们清除掉血液和身体里的多余脂肪。', '特惠装', '4L', '12.00', '9999', '1', '夏季热销', '08166388081', null);
INSERT INTO `wtq_product_list` VALUES ('47', '1', '窝托泉中瓶', '20170918/58c3c0dfe9e8bc1d243050e3c33dd89b.jpg', '含有对人体有益的矿物质锶,达国家矿泉水标准;窝托泉山泉水取于自然,胜于自然。天然弱碱性水,它可以帮我们清除掉血液和身体里的多余脂肪。', '特惠装', '518ml', '3.00', '9999', '0', '热卖推荐', '08166388081', null);
INSERT INTO `wtq_product_list` VALUES ('48', '1', '窝托泉大瓶(件)', '20170918/0f8012592571017eff8d46c13ba12e50.jpg', '含有对人体有益的矿物质锶,达国家矿泉水标准;窝托泉山泉水取于自然,胜于自然。天然弱碱性水,它可以帮我们清除掉血液和身体里的多余脂肪。', '特惠装', '4L', '48.00', '9999', '0', 'NULL', '08166638081', 'qrcode/48.png');
INSERT INTO `wtq_product_list` VALUES ('49', '1', '窝托泉中瓶(件)', '20170918/c8d484b81c1ee6a34f2ff03435996c10.jpg', '含有对人体有益的矿物质锶,达国家矿泉水标准;窝托泉山泉水取于自然,胜于自然。天然弱碱性水,它可以帮我们清除掉血液和身体里的多余脂肪。', '特惠装', '518ml', '72.00', '9999', '1', '砖石水518ml', '08166638081', 'qrcode/49.png');
-- ----------------------------
-- Table structure for wtq_score_product
-- ----------------------------
DROP TABLE IF EXISTS `wtq_score_product`;
CREATE TABLE `wtq_score_product` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`score_product` varchar(255) DEFAULT NULL COMMENT '积分产品名',
`score_url` varchar(255) DEFAULT NULL COMMENT '图片URL',
`score_describe` varchar(255) DEFAULT NULL COMMENT '奖品的描述',
`score_norms` varchar(255) DEFAULT NULL COMMENT '规格',
`consume_score` int(11) DEFAULT NULL COMMENT '所需积分',
`score_num` int(11) DEFAULT NULL COMMENT '剩余的数量',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_score_product
-- ----------------------------
INSERT INTO `wtq_score_product` VALUES ('4', '皮皮虾', '20170726/eb5a2b1e817fc1f49bbd2c6ced763f47.png', '极品皮皮虾', '500g', '400', '1');
INSERT INTO `wtq_score_product` VALUES ('6', '皮皮鳝', '20170726/b07f09c2931452a25e9d0a41f7c746cd.png', '大自然的味道', '500g', '600', '1');
INSERT INTO `wtq_score_product` VALUES ('7', '皮皮鳝', '20170726/1f0a3ad100994a6ce496bcfacf56e149.png', '大自然的味道', '500g', '600', '1');
INSERT INTO `wtq_score_product` VALUES ('8', '皮皮鳝', '20170726/485453f1304dcd0284187cc930c7bb1a.png', '大自然的味道', '500g', '600', '1');
INSERT INTO `wtq_score_product` VALUES ('13', 'xxx', '20170726/6f597f46ea37219dd48601ac3acc7c7d.png', 'ddsf', '500g', '300', '1');
-- ----------------------------
-- Table structure for wtq_user
-- ----------------------------
DROP TABLE IF EXISTS `wtq_user`;
CREATE TABLE `wtq_user` (
`user_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_phone` varchar(11) NOT NULL DEFAULT '0' COMMENT '用户电话号码',
`user_name` varchar(30) DEFAULT NULL COMMENT '用户名或昵称',
`user_pwd` char(32) NOT NULL,
`user_avatar` varchar(255) DEFAULT NULL COMMENT '用户头像',
`user_integral` int(11) DEFAULT '0' COMMENT '用户积分',
`user_type` tinyint(1) NOT NULL COMMENT '用户类别,1为APP注册的用户,2为第三方登录的',
`user_line` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1在线 0不在线',
`user_status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1为激活状态 0为禁用状态',
`user_ip` varchar(20) DEFAULT NULL COMMENT '登录的ip',
`create_time` int(10) DEFAULT NULL,
`update_time` int(10) DEFAULT NULL,
`openid` varchar(255) DEFAULT NULL COMMENT '第三方ID值',
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8 COMMENT='用户表';
-- ----------------------------
-- Records of wtq_user
-- ----------------------------
INSERT INTO `wtq_user` VALUES ('1', '13076050636', 'xxjun', '202cb962ac59075b964b07152d234b70', null, '0', '1', '1', '1', '172.16.17.32', '1499677689', '1505704589', null);
INSERT INTO `wtq_user` VALUES ('2', '13688369875', 'RachinLd', '202cb962ac59075b964b07152d234b70', '20170905/b4a3b726d95edb9fc745a6cdae1f31b6.jpg', '170', '1', '1', '1', '172.16.31.10', '1499677689', '1505355168', null);
INSERT INTO `wtq_user` VALUES ('3', '13076050635', 'oo', 'c4ca4238a0b923820dcc509a6f75849b', null, '0', '1', '0', '1', null, '1500456898', null, null);
INSERT INTO `wtq_user` VALUES ('4', '13688369877', '71896', '88b095aecbba91cc91c945df2a00c5a6', 'avatar.jpg', '0', '1', '1', '1', '172.16.31.10', '1500878878', '1500878912', null);
INSERT INTO `wtq_user` VALUES ('5', '18048193223', '12568', '204c8336f1d6739e9975a286f4de7481', 'avatar.jpg', '0', '1', '1', '1', '192.168.127.12', '1501130100', '1501131862', null);
INSERT INTO `wtq_user` VALUES ('6', '13108100810', '62193', '202cb962ac59075b964b07152d234b70', 'avatar.jpg', '0', '1', '1', '1', '172.16.17.32', '1501130209', '1501130450', null);
INSERT INTO `wtq_user` VALUES ('7', '13108100819', '32730', '202cb962ac59075b964b07152d234b70', 'avatar.jpg', '0', '1', '0', '1', null, '1501130316', null, null);
INSERT INTO `wtq_user` VALUES ('8', '13108100814', '18429', '202cb962ac59075b964b07152d234b70', 'avatar.jpg', '0', '1', '0', '1', null, '1501130329', null, null);
INSERT INTO `wtq_user` VALUES ('9', '13608100810', '78164', '202cb962ac59075b964b07152d234b70', 'avatar.jpg', '0', '1', '0', '1', null, '1501130423', null, null);
INSERT INTO `wtq_user` VALUES ('10', '13212121212', 'rachin', '202cb962ac59075b964b07152d234b70', '20170727/e43b86d5901a4a755cb3015d07112b09.jpg', '0', '1', '1', '1', '172.16.17.32', '1501130750', '1501209696', null);
INSERT INTO `wtq_user` VALUES ('11', '13340889696', '87167', '8e93c29aed4466dfd739c179aca3862f', 'avatar.jpg', '67', '1', '0', '1', '172.16.31.10', '1501131261', '1502166238', null);
INSERT INTO `wtq_user` VALUES ('12', '18215584091', '81446', '1a656139e244effc9a6aaa5663dc3717', '20170729/f74fe0232e33bb3cfa339927ecc1d5f3.jpg', '0', '1', '1', '1', '192.168.3.11', '1501300299', '1501343252', null);
INSERT INTO `wtq_user` VALUES ('13', '15681172084', '48334', 'e3029a19b84573d90fac942eecfc4d14', 'avatar.jpg', '0', '1', '1', '1', '172.16.58.3', '1502184216', '1502184228', null);
INSERT INTO `wtq_user` VALUES ('14', '13458437402', '99439', 'cb47db346da3f85b698fabe0901980e6', 'avatar.jpg', '0', '1', '1', '1', '172.16.58.3', '1502185117', '1502185454', null);
INSERT INTO `wtq_user` VALUES ('15', '18382453236', '37822', '015853a8a1600c7f91cfd80558c796fa', 'avatar.jpg', '0', '1', '1', '1', '192.168.3.11', '1502240939', '1505712625', null);
INSERT INTO `wtq_user` VALUES ('16', '18085028429', '测试', '87c1a90ecbb7e980886f3fa315865c22', '20170918/4b82c7087c6849305df439f318c5abb3.jpg', '150', '2', '1', '1', '172.16.31.10', '1505398473', '1505708952', 'oMCawxG07j1_bqhP1wUMjGev_fSY');
INSERT INTO `wtq_user` VALUES ('17', '18987221827', 'wtq4122', '87c1a90ecbb7e980886f3fa315865c22', null, '0', '2', '1', '1', '172.16.17.32', '1505398595', null, 'undefined');
INSERT INTO `wtq_user` VALUES ('18', '14545852475', 'wtq2481', '87c1a90ecbb7e980886f3fa315865c22', null, '0', '2', '0', '1', '172.16.31.10', '1505566952', null, 'oMCawxDTjm9F7DmBpKSGC-SYdO7s');
INSERT INTO `wtq_user` VALUES ('19', '18601466302', 'wtq956', '87c1a90ecbb7e980886f3fa315865c22', null, '0', '2', '1', '1', '172.16.17.32', '1505704766', '1505710168', 'oMCawxFKwRkByDua3BYDOeU6R_Gs');
-- ----------------------------
-- Table structure for wtq_use_score
-- ----------------------------
DROP TABLE IF EXISTS `wtq_use_score`;
CREATE TABLE `wtq_use_score` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) DEFAULT NULL,
`sp_id` int(11) DEFAULT NULL COMMENT '积分产品ID',
`u_addressid` int(11) DEFAULT NULL COMMENT '用户收货地址ID',
`o_state` tinyint(4) DEFAULT '0' COMMENT '这个订单状态是否收货',
`usescore` int(11) DEFAULT NULL COMMENT '使用了多少积分',
`create_time` int(11) DEFAULT NULL COMMENT '生成的时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_use_score
-- ----------------------------
INSERT INTO `wtq_use_score` VALUES ('1', '1', '2', '1', '0', '100', '1501043353');
INSERT INTO `wtq_use_score` VALUES ('2', '1', '3', '1', '0', '200', '1501043562');
INSERT INTO `wtq_use_score` VALUES ('3', '1', '3', '1', '0', '200', '1501050672');
-- ----------------------------
-- Table structure for wtq_version
-- ----------------------------
DROP TABLE IF EXISTS `wtq_version`;
CREATE TABLE `wtq_version` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`v_number` varchar(50) DEFAULT NULL COMMENT '版本号',
`v_info` text COMMENT '版本信息介绍',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of wtq_version
-- ----------------------------
INSERT INTO `wtq_version` VALUES ('5', 'V00.00.0014', '1.优化界面 2.增加模糊搜索功能 3.新增扫码查询产品功能 4.一大波积分来袭');
|
<reponame>nnashiki/gorder<gh_stars>0
CREATE TABLE `users`
(
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
<reponame>xufeiyue/hrstore
/*
Navicat MySQL Data Transfer
Source Server : localhost_3306
Source Server Version : 50711
Source Host : localhost:3306
Source Database : ceshi
Target Server Type : MYSQL
Target Server Version : 50711
File Encoding : 65001
Date: 2018-12-10 22:51:24
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `th_problem`
-- ----------------------------
DROP TABLE IF EXISTS `th_problem`;
CREATE TABLE `th_problem` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增id',
`type` tinyint(1) unsigned DEFAULT '0' COMMENT '0单选题1多选题',
`problem` varchar(255) DEFAULT '' COMMENT '问题',
`answer` varchar(50) DEFAULT '' COMMENT '正确答案',
`status` tinyint(1) unsigned DEFAULT '0' COMMENT '0正常1删除',
`content` varchar(2000) DEFAULT '' COMMENT '所以选项已json形式存储',
`create_time` int(10) unsigned DEFAULT NULL COMMENT '创建时间',
`update_time` int(10) unsigned DEFAULT NULL COMMENT '更新时间',
`store_id` int(11) unsigned DEFAULT '0' COMMENT '店铺id',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COMMENT='题库';
-- ----------------------------
-- Records of th_problem
-- ----------------------------
INSERT INTO `th_problem` VALUES ('2', '0', '1+3=?', '[\"D\"]', '0', '{\"A\":\"1\",\"B\":\"2\",\"C\":\"3\",\"D\":\"4\"}', '1544453286', '1544453286', '1');
INSERT INTO `th_problem` VALUES ('4', '1', '5+6=?', '{\"0\":\"A\",\"1\":\"B\",\"3\":\"D\"}', '0', '{\"A\":\"10\",\"B\":\"11\",\"C\":\"12\",\"D\":\"11\"}', '1544453330', '1544453330', '1');
INSERT INTO `th_problem` VALUES ('5', '0', '1', '[\"A\"]', '1', '{\"A\":\"2\",\"B\":\"3\",\"C\":\"4\",\"D\":\"5\"}', '1544453378', '1544453378', '1');
INSERT INTO `th_problem` VALUES ('6', '0', '3', '[\"D\"]', '1', '{\"A\":\"3\",\"B\":\"3\",\"C\":\"55\",\"D\":\"555\"}', '1544453389', '1544453389', '1');
|
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50525
Source Host : localhost:3306
Source Database : lqcmall
Target Server Type : MYSQL
Target Server Version : 50525
File Encoding : 65001
Date: 2019-01-09 10:57:37
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for admin
-- ----------------------------
DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`aid` int(11) NOT NULL AUTO_INCREMENT,
`aname` varchar(255) DEFAULT NULL,
`amobile` varchar(255) DEFAULT NULL,
`apwd` varchar(255) DEFAULT NULL,
PRIMARY KEY (`aid`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of admin
-- ----------------------------
-- ----------------------------
-- Table structure for message
-- ----------------------------
DROP TABLE IF EXISTS `message`;
CREATE TABLE `message` (
`message_id` int(11) NOT NULL AUTO_INCREMENT,
`message_email` varchar(255) DEFAULT NULL,
`message_content` varchar(255) DEFAULT NULL,
`message_state` int(11) DEFAULT '0',
PRIMARY KEY (`message_id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of message
-- ----------------------------
INSERT INTO `message` VALUES ('2', '<EMAIL>', 'BVCBVCB', '1');
INSERT INTO `message` VALUES ('3', '<EMAIL>', 'gfdgfdg', '0');
-- ----------------------------
-- Table structure for product
-- ----------------------------
DROP TABLE IF EXISTS `product`;
CREATE TABLE `product` (
`product_id` int(11) NOT NULL AUTO_INCREMENT,
`product_name` varchar(255) DEFAULT NULL,
`product_price` varchar(255) DEFAULT NULL,
`product_img` varchar(255) DEFAULT NULL,
`product_card_img` varchar(255) DEFAULT NULL,
`product_describe` varchar(255) DEFAULT NULL,
`product_detail_describe` varchar(2000) DEFAULT NULL,
`product_count` int(255) DEFAULT NULL,
`product_createtime` datetime DEFAULT NULL,
`product_type_id` int(11) DEFAULT NULL,
`product_dimg_id` int(11) DEFAULT NULL,
PRIMARY KEY (`product_id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product
-- ----------------------------
INSERT INTO `product` VALUES ('1', 'Esprit Ruffle Shirt', '0.01', 'images/product-01.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 09:54:54', '1', '1');
INSERT INTO `product` VALUES ('2', 'Herschel supply', '1.10', 'images/product-02.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:30', '1', '2');
INSERT INTO `product` VALUES ('3', 'Only Check Trouser', '25.50', 'images/product-03.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:33', '2', '3');
INSERT INTO `product` VALUES ('4', 'Classic Trench Coat', '75.00', 'images/product-04.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:36', '1', '4');
INSERT INTO `product` VALUES ('5', 'Front Pocket Jumper', '34.75', 'images/product-05.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:39', '1', '5');
INSERT INTO `product` VALUES ('6', 'Shirt in Stretch Cotton', '25.50', 'images/product-06.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:42', '1', '6');
INSERT INTO `product` VALUES ('7', 'Shirt in Stretch Cotton', '52.66', 'images/product-07.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:45', '1', '7');
INSERT INTO `product` VALUES ('8', 'Pieces Metallic Printed', '18.96', 'images/product-08.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:48', '1', '8');
INSERT INTO `product` VALUES ('9', 'Converse All Star Hi Plimsolls', '75.56', 'images/product-09.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:50', '4', '9');
INSERT INTO `product` VALUES ('10', 'Femme T-Shirt In Stripe', '61.36', 'images/product-10.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:53', '1', '10');
INSERT INTO `product` VALUES ('11', 'Herschel supply ', '75.00', 'images/product-11.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:56', '2', '11');
INSERT INTO `product` VALUES ('12', 'Herschel supply', '16.98', 'images/product-12.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:01:59', '2', '12');
INSERT INTO `product` VALUES ('13', 'T-Shirt with Sleeve', '43.96', 'images/product-13.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:02:01', '1', '13');
INSERT INTO `product` VALUES ('14', 'Pretty Little Thing', '54.79', 'images/product-14.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:02:04', '1', '14');
INSERT INTO `product` VALUES ('15', 'Mini Silver Mesh Watch', '87.36', 'images/product-15.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:02:07', '5', '15');
INSERT INTO `product` VALUES ('16', 'Square Neck Back', 'count', 'images/product-16.jpg', 'images/item-cart-01.jpg', 'Nulla eget sem vitae eros pharetra viverra. Nam vitae luctus ligula. Mauris consequat ornare feugiat.', '', '50', '2018-12-22 15:02:10', '1', '16');
INSERT INTO `product` VALUES ('23', '2018新款秋冬款潮韩版百搭时尚水桶包女士单肩斜挎包', '0.01', 'images/bag-test1.jpg', 'images/bag-test-cart-1.jpg', '2019女士单肩斜挎包', null, '100', '2019-01-04 08:19:23', '3', '23');
INSERT INTO `product` VALUES ('24', '2018男鞋冬季加绒高帮鞋男韩版潮流运动高邦棉鞋子男潮鞋网红百搭', '0.01', 'images/shose-test.jpg', 'images/shose-cart.jpg', '534534543535', null, '10', '2019-01-04 15:42:50', '4', '24');
-- ----------------------------
-- Table structure for product_addinfo
-- ----------------------------
DROP TABLE IF EXISTS `product_addinfo`;
CREATE TABLE `product_addinfo` (
`product_addinfo_id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) DEFAULT NULL,
`product_weight` varchar(255) DEFAULT NULL,
`product_dimensions` varchar(255) DEFAULT NULL,
`product_materials` varchar(255) DEFAULT NULL,
`product_color` varchar(255) DEFAULT NULL,
`product_size` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_addinfo_id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_addinfo
-- ----------------------------
INSERT INTO `product_addinfo` VALUES ('1', '1', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('2', '2', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('3', '3', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('4', '4', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('5', '5', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('6', '6', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('7', '7', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('8', '8', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('9', '9', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('10', '10', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('11', '11', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('12', '12', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('13', '13', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('14', '14', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('15', '15', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('16', '16', '0.79 kg', '110 x 33 x 100 cm', '60% cotton', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
INSERT INTO `product_addinfo` VALUES ('19', '23', '1kh', '50x50', '涤纶', 'Red,Blue,orange', 'S,M,L,XL');
INSERT INTO `product_addinfo` VALUES ('20', '24', '0.79 kg', '110 x 33 x 100 cm', '23432432', 'Black, Blue, Grey, Green, Red, White', 'XL, L, M, S');
-- ----------------------------
-- Table structure for product_card
-- ----------------------------
DROP TABLE IF EXISTS `product_card`;
CREATE TABLE `product_card` (
`product_card_id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) DEFAULT NULL,
`product_card_count` varchar(255) DEFAULT NULL,
`product_color_id` int(11) DEFAULT NULL,
`product_size_id` int(11) DEFAULT NULL,
`product_user_id` int(11) DEFAULT NULL,
`product_cart_state` int(11) DEFAULT '0',
`product_pay_no` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_card_id`)
) ENGINE=InnoDB AUTO_INCREMENT=85 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_card
-- ----------------------------
-- ----------------------------
-- Table structure for product_color
-- ----------------------------
DROP TABLE IF EXISTS `product_color`;
CREATE TABLE `product_color` (
`product_color_id` int(11) NOT NULL AUTO_INCREMENT,
`product_color_name` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_color_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_color
-- ----------------------------
INSERT INTO `product_color` VALUES ('1', 'Red');
INSERT INTO `product_color` VALUES ('2', 'Blue');
INSERT INTO `product_color` VALUES ('3', 'White');
INSERT INTO `product_color` VALUES ('4', 'Grey');
-- ----------------------------
-- Table structure for product_dimg
-- ----------------------------
DROP TABLE IF EXISTS `product_dimg`;
CREATE TABLE `product_dimg` (
`product_dimgId` int(11) NOT NULL AUTO_INCREMENT,
`product_dimg_id` int(11) DEFAULT NULL,
`product_detail_img` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_dimgId`)
) ENGINE=InnoDB AUTO_INCREMENT=83 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_dimg
-- ----------------------------
INSERT INTO `product_dimg` VALUES ('1', '1', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('2', '1', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('3', '1', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('4', '2', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('5', '2', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('6', '2', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('7', '3', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('8', '3', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('9', '3', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('10', '4', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('11', '4', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('12', '4', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('13', '5', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('14', '5', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('15', '5', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('16', '6', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('17', '6', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('18', '6', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('19', '7', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('20', '7', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('21', '7', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('22', '8', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('23', '8', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('24', '8', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('25', '9', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('26', '9', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('27', '9', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('28', '10', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('29', '10', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('30', '10', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('31', '11', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('32', '11', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('33', '11', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('34', '12', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('35', '12', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('36', '12', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('37', '13', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('38', '13', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('39', '13', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('40', '14', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('41', '14', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('42', '14', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('43', '15', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('44', '15', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('45', '15', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('46', '16', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('47', '16', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('48', '16', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('49', '17', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('50', '17', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('51', '17', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('52', '18', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('53', '18', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('54', '18', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('55', '19', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('56', '19', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('57', '19', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('58', '20', 'images/product-detail-01.jpg');
INSERT INTO `product_dimg` VALUES ('59', '20', 'images/product-detail-02.jpg');
INSERT INTO `product_dimg` VALUES ('60', '20', 'images/product-detail-03.jpg');
INSERT INTO `product_dimg` VALUES ('77', '23', 'images/bag-dimg-test-1.jpg');
INSERT INTO `product_dimg` VALUES ('78', '23', 'images/bag-dimg-test-2.jpg');
INSERT INTO `product_dimg` VALUES ('79', '23', 'images/bag-dimg-test-3.jpg');
INSERT INTO `product_dimg` VALUES ('80', '24', 'images/shose-dimg-1.jpg');
INSERT INTO `product_dimg` VALUES ('81', '24', 'images/shose-dimg-2.jpg');
INSERT INTO `product_dimg` VALUES ('82', '24', 'images/shose-dimg-3.jpg');
-- ----------------------------
-- Table structure for product_order
-- ----------------------------
DROP TABLE IF EXISTS `product_order`;
CREATE TABLE `product_order` (
`product_order_id` int(11) NOT NULL AUTO_INCREMENT,
`product_order_uuid` varchar(255) DEFAULT NULL,
`product_user_id` int(11) DEFAULT NULL,
`product_pay_no` varchar(255) DEFAULT NULL,
`product_order_total` varchar(255) DEFAULT NULL,
`product_order_address` varchar(255) DEFAULT NULL,
`product_order_name` varchar(255) DEFAULT NULL,
`product_order_telphone` varchar(255) DEFAULT NULL,
`product_pay_state` int(11) DEFAULT '0',
`product_order_state` int(11) DEFAULT '0',
`product_order_createDate` datetime DEFAULT NULL,
PRIMARY KEY (`product_order_id`)
) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_order
-- ----------------------------
-- ----------------------------
-- Table structure for product_review
-- ----------------------------
DROP TABLE IF EXISTS `product_review`;
CREATE TABLE `product_review` (
`product_review_id` int(11) NOT NULL AUTO_INCREMENT,
`product_id` int(11) DEFAULT NULL,
`product_rating` varchar(255) DEFAULT NULL,
`product_review` varchar(255) DEFAULT NULL,
`username` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_review_id`)
) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_review
-- ----------------------------
-- ----------------------------
-- Table structure for product_size
-- ----------------------------
DROP TABLE IF EXISTS `product_size`;
CREATE TABLE `product_size` (
`product_size_id` int(11) NOT NULL AUTO_INCREMENT,
`product_size_name` varchar(225) DEFAULT NULL,
PRIMARY KEY (`product_size_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_size
-- ----------------------------
INSERT INTO `product_size` VALUES ('1', 'Size S');
INSERT INTO `product_size` VALUES ('2', 'Size M');
INSERT INTO `product_size` VALUES ('3', 'Size L');
INSERT INTO `product_size` VALUES ('4', 'Size XL');
-- ----------------------------
-- Table structure for product_type
-- ----------------------------
DROP TABLE IF EXISTS `product_type`;
CREATE TABLE `product_type` (
`product_type_id` int(11) NOT NULL AUTO_INCREMENT,
`product_type_name` varchar(255) DEFAULT NULL,
`product_filter` varchar(255) DEFAULT NULL,
PRIMARY KEY (`product_type_id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of product_type
-- ----------------------------
INSERT INTO `product_type` VALUES ('1', 'Women', 'women');
INSERT INTO `product_type` VALUES ('2', 'Men', 'men');
INSERT INTO `product_type` VALUES ('3', 'Bag', 'bag');
INSERT INTO `product_type` VALUES ('4', 'Shoes', 'shopes');
INSERT INTO `product_type` VALUES ('5', 'Watches', 'watches');
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`telphone` varchar(255) DEFAULT NULL,
`code` varchar(255) DEFAULT NULL,
`email` varchar(255) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`state` int(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of user
-- ----------------------------
|
<reponame>mageddo/java-examples
TRUNCATE SCHEMA public AND COMMIT;
INSERT INTO IMPORTED_FILE(IDT_IMPORTED_FILE, NAM_FILE, DAT_CREATION) VALUES (1, 'tmp.tmp', now());
|
ALTER TABLE packages DROP COLUMN downloads; |
<reponame>faizol/babelfish_extensions<gh_stars>100-1000
create table triggerTab1(c1 int, c2 varchar(30), check (c1 < 5))
go
create table triggerTab2(c1 int, check (c1 < 5))
go
create table triggerTab3(c1 int, check (c1 < 5))
go
insert into triggerTab1 values(1, 'first')
go
insert into triggerTab2 values(1)
go
insert into triggerTab3 values(1)
go
create trigger txnTrig1 on triggerTab1 for insert as
begin tran;
update triggerTab2 set c1 = 2;
commit;
select * from triggerTab2 order by c1;
select * from inserted;
go
create trigger txnTrig2 on triggerTab2 for update as
save tran sp1;
save tran sp2;
delete from triggerTab3;
rollback tran sp1;
go
create trigger txnTrig3 on triggerTab3 for delete as
select * from triggerTab3 order by c1;
insert into triggerTab3 values(1);
select * from deleted;
rollback tran sp2;
go
insert into triggerTab1 values(2, 'second');
go
begin tran;
go
insert into triggerTab1 values(3, 'third');
go
commit;
go
update triggerTab2 set c1 = 6;
GO
begin tran
go
update triggerTab2 set c1 = 6;
go
if (@@trancount > 0) rollback;
go
begin tran
go
insert into triggerTab1 values(6, 'six');
go
if (@@trancount > 0) rollback;
go
drop trigger txnTrig1;
go
create trigger txnTrig1 on triggerTab1 for insert as
begin tran;
update triggerTab2 set c1 = 6;
commit;
select * from triggerTab2 order by c1;
select * from inserted;
go
insert into triggerTab1 values(2, 'second');
go
begin tran;
go
insert into triggerTab1 values(3, 'third');
go
if (@@trancount > 0) rollback;
go
drop trigger txnTrig1;
go
drop trigger txnTrig3;
go
create trigger txnTrig1 on triggerTab1 for insert as
begin tran;
update triggerTab2 set c1 = 2;
commit;
select * from triggerTab2 order by c1;
select * from inserted;
go
create trigger txnTrig3 on triggerTab3 for delete as
select * from triggerTab3 order by c1;
insert into triggerTab3 values(6);
select * from deleted;
rollback tran sp2;
go
insert into triggerTab1 values(2, 'second');
go
begin tran;
go
insert into triggerTab1 values(3, 'third');
go
if (@@trancount > 0) rollback;
go
drop trigger txnTrig3;
go
create trigger txnTrig3 on triggerTab3 for delete as
select * from triggerTab3 order by c1;
insert into triggerTab3 values(1);
select * from deleted;
rollback tran sp2;
go
drop trigger txnTrig1;
go
create trigger txnTrig1 on triggerTab1 for insert as
commit;
update triggerTab2 set c1 = 2;
select * from triggerTab2 order by c1;
go
insert into triggerTab1 values(2, 'second');
go
begin tran;
go
insert into triggerTab1 values(2, 'second');
go
drop trigger txnTrig1;
go
create trigger txnTrig1 on triggerTab1 for insert as
rollback;
update triggerTab2 set c1 = 3;
select * from triggerTab2 order by c1;
go
insert into triggerTab1 values(2, 'second');
go
begin tran;
go
insert into triggerTab1 values(2, 'second');
go
create procedure triggerProc1 as
save tran sp1;
insert into triggerTab1 values(3, 'third');
rollback tran sp1;
go
create procedure triggerProc2 as
begin tran;
exec triggerProc1;
insert into triggerTab1 values(3, 'third');
commit;
go
exec triggerProc2;
go
drop procedure triggerProc2;
go
drop trigger txnTrig1
go
create trigger txnTrig1 on triggerTab1 for insert as
commit;
update triggerTab2 set c1 = 6;
select * from triggerTab2 order by c1;
go
create procedure triggerProc2 as
begin tran;
exec triggerProc1;
insert into triggerTab1 values(6, 'six');
commit;
go
exec triggerProc2;
go
if (@@trancount>0) commit;
go
drop trigger txnTrig1;
go
create trigger txnTrig1 on triggerTab1 for insert as
begin tran;
update triggerTab2 set c1 = 2;
commit;
select * from triggerTab2 order by c1;
select * from inserted;
go
drop procedure triggerProc1;
go
drop procedure triggerProc2;
go
create table tmp__1 (a int not null);
go
insert into tmp__1 values (1)
go
create procedure triggerProc1 as
save tran sp1;
insert into tmp__1 values (null);
rollback tran sp1;
go
create procedure triggerProc2 as
begin tran;
exec triggerProc1;
insert into triggerTab1 values(3, 'third');
commit;
go
exec triggerProc2;
go
drop table tmp__1
go
create table triggerErrorTab(c1 int not null);
go
create trigger triggerErr on triggerErrorTab for insert as
insert into triggerErrorTab values(NULL);
insert into invalidTab values(1);
go
insert into triggerErrorTab values(1);
go
drop procedure triggerProc1;
go
drop procedure triggerProc2;
go
drop trigger txnTrig1
go
create procedure triggerProc1 as
commit;
go
create procedure triggerProc2 as
exec triggerProc1;
go
create trigger txnTrig1 on triggerTab1 for insert as
exec triggerProc2;
go
insert into triggerTab1 values(1, 'value1');
go
drop procedure triggerProc1;
go
drop procedure triggerProc2;
go
drop trigger txnTrig1
go
create procedure triggerProc1 as
rollback;
go
create procedure triggerProc2 as
exec triggerProc1;
go
create trigger txnTrig1 on triggerTab1 after insert as
exec triggerProc2;
go
insert into triggerTab1 values(1, 'value2');
go
drop procedure triggerProc1;
go
drop procedure triggerProc2;
go
drop trigger txnTrig1
go
create procedure triggerProc1 as
rollback tran sp1;
go
create procedure triggerProc2 as
exec triggerProc1;
go
create trigger txnTrig1 on triggerTab1 for insert as
save tran sp1;
exec triggerProc2;
go
insert into triggerTab1 values(1, 'value3');
go
drop procedure triggerProc1;
go
drop procedure triggerProc2;
go
drop table triggerTab1;
go
drop table triggerTab2;
go
drop table triggerTab3;
go
drop table triggerErrorTab
go
create table triggerTab1(c1 int, c2 varchar(30), check (c1 < 5))
go
create table triggerTab2(c1 int, check (c1 < 5))
go
create table triggerTab3(c1 int, check (c1 < 5))
go
insert into triggerTab1 values(1, 'first')
go
insert into triggerTab2 values(1)
go
insert into triggerTab3 values(1)
go
create trigger txnTrig1 on triggerTab1 for insert as
insert into triggerTab2 values (2);
go
create trigger txnTrig2 on triggerTab2 for insert as
insert into triggerTab3 values (2);
go
create trigger txnTrig3 on triggerTab3 for insert as
select 'nest level 3'
go
insert into triggerTab1 values(2, 'two')
go
begin tran
go
insert into triggerTab1 values(6, 'six')
go
if (@@trancount > 0) rollback tran;
go
select * from triggerTab1;
GO
select * from triggerTab2;
GO
select * from triggerTab3;
GO
drop trigger txnTrig1;
go
create trigger txnTrig1 on triggerTab1 for insert as
insert into triggerTab2 values (6);
go
insert into triggerTab2 values(2)
go
begin tran
go
insert into triggerTab2 values(6)
go
if (@@trancount > 0) rollback tran;
go
begin tran
go
insert into triggerTab1 values(3, 'three')
go
if (@@trancount > 0) rollback tran;
go
select * from triggerTab1;
GO
select * from triggerTab2;
GO
select * from triggerTab3;
GO
drop trigger txnTrig1;
go
drop trigger txnTrig2;
go
create trigger txnTrig1 on triggerTab1 for insert as
insert into triggerTab2 values (2);
go
create trigger txnTrig2 on triggerTab2 for insert as
insert into triggerTab3 values (6);
go
insert into triggerTab3 values(2)
go
begin tran
go
insert into triggerTab3 values(6)
go
if (@@trancount > 0) rollback tran;
go
begin tran
go
insert into triggerTab1 values(3, 'three')
go
if (@@trancount > 0) rollback tran;
go
select * from triggerTab1;
GO
select * from triggerTab2;
GO
select * from triggerTab3;
GO
drop table triggerTab1;
go
drop table triggerTab2;
go
drop table triggerTab3;
go
create table triggerTab1(c1 int not null)
go
create table triggerTab2(c1 int not null)
go
create table triggerTab3(c1 int not null)
go
insert into triggerTab1 values(1)
go
insert into triggerTab2 values(1)
go
insert into triggerTab3 values(1)
go
create trigger txnTrig1 on triggerTab1 for insert as
select 'nest level 1'
insert into triggerTab2 values (2);
go
create trigger txnTrig2 on triggerTab2 for insert as
select 'nest level 2'
insert into triggerTab3 values (null);
go
create trigger txnTrig3 on triggerTab3 for insert as
select 'nest level 3'
go
begin tran
go
insert into triggerTab1 values(2)
go
if (@@trancount > 0) rollback tran;
go
begin tran
go
insert into triggerTab1 values(NULL)
go
if (@@trancount > 0) rollback tran;
go
select * from triggerTab1;
go
select * from triggerTab2;
go
select * from triggerTab3;
go
drop trigger txnTrig1;
go
drop trigger txnTrig2;
go
create trigger txnTrig1 on triggerTab1 for insert as
select 'nest level 1'
insert into triggerTab2 values (NULL);
go
create trigger txnTrig2 on triggerTab2 for insert as
select 'nest level 2'
insert into triggerTab3 values (3);
go
begin tran
go
insert into triggerTab1 values(3)
go
if (@@trancount > 0) rollback tran;
go
select * from triggerTab1;
go
select * from triggerTab2;
go
select * from triggerTab3;
go
drop table triggerTab1;
go
drop table triggerTab2;
go
drop table triggerTab3;
go
|
<reponame>IsaacSchemm/GrantManager<filename>sql/07-contact_history.sql<gh_stars>0
USE [grantapp]
GO
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_contact_history_approach]') AND parent_object_id = OBJECT_ID(N'[dbo].[contact_history]'))
ALTER TABLE [dbo].[contact_history] DROP CONSTRAINT [FK_contact_history_approach]
GO
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_contact_history_grant]') AND parent_object_id = OBJECT_ID(N'[dbo].[contact_history]'))
ALTER TABLE [dbo].[contact_history] DROP CONSTRAINT [FK_contact_history_grant]
GO
IF EXISTS (SELECT * FROM sys.foreign_keys WHERE object_id = OBJECT_ID(N'[dbo].[FK_contact_history_user]') AND parent_object_id = OBJECT_ID(N'[dbo].[contact_history]'))
ALTER TABLE [dbo].[contact_history] DROP CONSTRAINT [FK_contact_history_user]
GO
USE [grantapp]
GO
/****** Object: Table [dbo].[contact_history] Script Date: 11/14/2013 18:01:05 ******/
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[contact_history]') AND type in (N'U'))
DROP TABLE [dbo].[contact_history]
GO
USE [grantapp]
GO
/****** Object: Table [dbo].[contact_history] Script Date: 11/14/2013 18:01:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[contact_history](
[contact_history_id] [int] IDENTITY(1,1) NOT NULL,
[grant_id] [int] NOT NULL,
[initial_approach_id] [int] NULL,
[contact_name] [nvarchar](50) NOT NULL,
[call_date] [datetime] NOT NULL,
[outcome] [nvarchar](max) NULL,
[contacted_by] [nvarchar](50) NULL,
[notes] [nvarchar](max) NULL,
CONSTRAINT [PK_contact_history_1] PRIMARY KEY CLUSTERED
(
[contact_history_id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[contact_history] WITH CHECK ADD CONSTRAINT [FK_contact_history_approach] FOREIGN KEY([initial_approach_id])
REFERENCES [dbo].[approach] ([approach_id])
GO
ALTER TABLE [dbo].[contact_history] CHECK CONSTRAINT [FK_contact_history_approach]
GO
ALTER TABLE [dbo].[contact_history] WITH CHECK ADD CONSTRAINT [FK_contact_history_grant] FOREIGN KEY([grant_id])
REFERENCES [dbo].[grant] ([grant_id])
GO
ALTER TABLE [dbo].[contact_history] CHECK CONSTRAINT [FK_contact_history_grant]
GO
ALTER TABLE [dbo].[contact_history] WITH CHECK ADD CONSTRAINT [FK_contact_history_user] FOREIGN KEY([contacted_by])
REFERENCES [dbo].[user] ([username])
GO
ALTER TABLE [dbo].[contact_history] CHECK CONSTRAINT [FK_contact_history_user]
GO
|
<gh_stars>0
DROP TABLE IF EXISTS t;
CREATE TABLE t
(
c_a INT,
c_b INT,
c_c INT
);
INSERT INTO t
VALUES (1,1,1),
(2,2,2),
(3,3,3);
CREATE UNIQUE INDEX idx
ON t(c_a, c_b);
CREATE INDEX idx_a
ON t(c_a, c_c);
--normal
SELECT /*+ recompile */ Count(*)
FROM t a
LEFT OUTER JOIN t b
ON a.c_a = b.c_a
AND a.c_b = b.c_b
WHERE a.c_c = 1;
DROP TABLE t;
|
ALTER TABLE event DROP COLUMN includesubgroups;
|
<gh_stars>100-1000
BEGIN;
ALTER TABLE device ADD COLUMN "chassis_id" text;
COMMIT;
|
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: 03 Jul 2018 pada 02.39
-- Versi Server: 10.1.26-MariaDB
-- PHP Version: 7.1.8
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: `logistikku`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `bantuan`
--
CREATE TABLE `bantuan` (
`id` int(10) NOT NULL,
`nama_bantuan` varchar(100) NOT NULL,
`jumlah` int(10) NOT NULL,
`id_donatur` int(10) NOT NULL,
`kode` varchar(255) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `bantuan`
--
INSERT INTO `bantuan` (`id`, `nama_bantuan`, `jumlah`, `id_donatur`, `kode`) VALUES
(1, 'Baju', 67, 1, '-');
-- --------------------------------------------------------
--
-- Struktur dari tabel `bencana`
--
CREATE TABLE `bencana` (
`id_bencana` int(11) NOT NULL,
`judul` varchar(255) NOT NULL,
`jenis_bencana` varchar(11) NOT NULL,
`tingkat_bencana` varchar(255) DEFAULT NULL,
`deskripsi` text NOT NULL,
`lokasi` text NOT NULL,
`batas_pengumpulan` date NOT NULL,
`gambar` varchar(100) NOT NULL,
`laporan` varchar(100) DEFAULT NULL,
`pembuat` int(10) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `bencana`
--
INSERT INTO `bencana` (`id_bencana`, `judul`, `jenis_bencana`, `tingkat_bencana`, `deskripsi`, `lokasi`, `batas_pengumpulan`, `gambar`, `laporan`, `pembuat`) VALUES
(1, 'Gempa Yogyakarta', 'Gempa Bumi', 'Berat', 'Gempa bumi berkekuatan 6,3 SR versi USGS atau 5,9 SR versi BMKG, terjadi tepat\r\npukul 5:05 WIB 10 tahun lalu. Ya, masih sangat lekat diingatan kita, khususnya\r\nmasyarakat Bantul, Yogya, dan sekitarnya yang terkena dampak gempa bumi tersebut.\r\nPascagempa kurang dari 24 jam, sudah tercatat kurang lebih 3.098 orang meninggal\r\ndunia. Sebanyak 2.971 jiwa adalah warga dari Kabupaten Bantul. Pada saat itu, tercatat\r\nada 3.824 bangunan yang rusak dan hancur, serta memutus semua jaringan komunikasi.', 'Yogyakarta', '2018-07-12', 'gempa1.png', 'Belum ada', 9);
-- --------------------------------------------------------
--
-- Struktur dari tabel `donatur`
--
CREATE TABLE `donatur` (
`id` int(10) NOT NULL,
`nama` varchar(255) NOT NULL,
`no_hp` varchar(15) NOT NULL,
`email` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `donatur`
--
INSERT INTO `donatur` (`id`, `nama`, `no_hp`, `email`) VALUES
(1, '<NAME>', '081227220xxx', '<EMAIL>');
-- --------------------------------------------------------
--
-- Struktur dari tabel `mendapatkan`
--
CREATE TABLE `mendapatkan` (
`id_bencana` int(11) DEFAULT NULL,
`id_bantuan` int(10) DEFAULT NULL,
`status_pengiriman` tinyint(1) DEFAULT NULL,
`status_penerimaan` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `mendapatkan`
--
INSERT INTO `mendapatkan` (`id_bencana`, `id_bantuan`, `status_pengiriman`, `status_penerimaan`) VALUES
(1, 1, 0, 0);
-- --------------------------------------------------------
--
-- Struktur dari tabel `pengguna`
--
CREATE TABLE `pengguna` (
`id` int(11) NOT NULL,
`nama` varchar(200) NOT NULL,
`jabatan` varchar(200) NOT NULL,
`no_identitas` varchar(25) NOT NULL,
`password` varchar(255) NOT NULL,
`status` tinyint(1) NOT NULL,
`kode_akses` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pengguna`
--
INSERT INTO `pengguna` (`id`, `nama`, `jabatan`, `no_identitas`, `password`, `status`, `kode_akses`) VALUES
(3, '<NAME>', 'Kepala Tim Lapangan', '19690419-199404-2-002', '<PASSWORD>d4ee92888a8555ad', 0, 0),
(7, '<NAME>', 'Petugas Lapangan', '20000419-202307-3-020', '3757a0648386c16059fcfdf5f43f9498', 0, 2),
(9, '<NAME>', 'Petugas Admininstrasi', '19971218-202107-3-013', '8e27f99c93d1370f3bd04575082696df', 0, 1),
(10, '<NAME>', 'Petugas Lapangan', '12345678-910111-2-131', '25d55ad283aa400af464c76d713c07ad', 0, 2),
(12, '<NAME>', 'Petugas Lapangan', '19970527-202407-5-001', '0ad99fcbe4f17c578b0c8970958afb6a', 0, 2);
-- --------------------------------------------------------
--
-- Struktur dari tabel `posko`
--
CREATE TABLE `posko` (
`kode` varchar(255) NOT NULL,
`selamat` int(11) DEFAULT NULL,
`luka` int(11) DEFAULT NULL,
`meninggal` int(11) DEFAULT NULL,
`cf` double DEFAULT NULL,
`prioritas` varchar(255) DEFAULT NULL,
`id_petugas` int(11) NOT NULL,
`id_bencana` int(11) NOT NULL,
`status_bantuan` tinyint(1) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `bantuan`
--
ALTER TABLE `bantuan`
ADD PRIMARY KEY (`id`),
ADD KEY `id_donatur` (`id_donatur`);
--
-- Indexes for table `bencana`
--
ALTER TABLE `bencana`
ADD PRIMARY KEY (`id_bencana`),
ADD KEY `id_pengguna` (`pembuat`),
ADD KEY `jenis-bencana` (`jenis_bencana`);
--
-- Indexes for table `donatur`
--
ALTER TABLE `donatur`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mendapatkan`
--
ALTER TABLE `mendapatkan`
ADD KEY `id_informasi` (`id_bencana`),
ADD KEY `id_bantuan` (`id_bantuan`);
--
-- Indexes for table `pengguna`
--
ALTER TABLE `pengguna`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `posko`
--
ALTER TABLE `posko`
ADD PRIMARY KEY (`kode`),
ADD KEY `id_bencana` (`id_bencana`),
ADD KEY `id_petugas` (`id_petugas`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `bantuan`
--
ALTER TABLE `bantuan`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `bencana`
--
ALTER TABLE `bencana`
MODIFY `id_bencana` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `donatur`
--
ALTER TABLE `donatur`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `pengguna`
--
ALTER TABLE `pengguna`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- Ketidakleluasaan untuk tabel pelimpahan (Dumped Tables)
--
--
-- Ketidakleluasaan untuk tabel `bantuan`
--
ALTER TABLE `bantuan`
ADD CONSTRAINT `bantuan_ibfk_1` FOREIGN KEY (`id_donatur`) REFERENCES `donatur` (`id`);
--
-- Ketidakleluasaan untuk tabel `bencana`
--
ALTER TABLE `bencana`
ADD CONSTRAINT `bencana_ibfk_1` FOREIGN KEY (`pembuat`) REFERENCES `pengguna` (`id`);
--
-- Ketidakleluasaan untuk tabel `mendapatkan`
--
ALTER TABLE `mendapatkan`
ADD CONSTRAINT `mendapatkan_ibfk_2` FOREIGN KEY (`id_bencana`) REFERENCES `bencana` (`id_bencana`),
ADD CONSTRAINT `mendapatkan_ibfk_3` FOREIGN KEY (`id_bantuan`) REFERENCES `bantuan` (`id`);
--
-- Ketidakleluasaan untuk tabel `posko`
--
ALTER TABLE `posko`
ADD CONSTRAINT `posko_ibfk_1` FOREIGN KEY (`id_bencana`) REFERENCES `bencana` (`id_bencana`),
ADD CONSTRAINT `posko_ibfk_2` FOREIGN KEY (`id_petugas`) REFERENCES `pengguna` (`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 */;
|
<gh_stars>0
SELECT title,length FROM film
WHERE title LIKE '%n'
ORDER BY length DESC
LIMIT 5;
SELECT title,length FROM film
WHERE title LIKE '%n'
ORDER BY length ASC
LIMIT 5
OFFSET 5;
SELECT last_name,store_id FROM customer
WHERE store_id=1
ORDER BY last_name DESC
LIMIT 4; |
<reponame>lamafab/eventually-rs<gh_stars>0
CREATE TABLE aggregate_types (
id TEXT PRIMARY KEY,
"offset" BIGINT NOT NULL DEFAULT -1
);
CREATE TABLE aggregates (
id TEXT NOT NULL,
aggregate_type_id TEXT NOT NULL,
"version" INTEGER NOT NULL DEFAULT 0,
PRIMARY KEY (id, aggregate_type_id),
-- Remove all aggregates in case the aggregate type is deleted.
FOREIGN KEY (aggregate_type_id) REFERENCES aggregate_types(id) ON DELETE CASCADE
);
CREATE TABLE events (
aggregate_id TEXT NOT NULL,
aggregate_type TEXT NOT NULL,
"version" INTEGER NOT NULL,
sequence_number BIGINT NOT NULL,
"event" JSONB NOT NULL,
PRIMARY KEY (aggregate_id, aggregate_type, "version"),
-- Remove all the events of the aggregate in case of delete.
FOREIGN KEY (aggregate_id, aggregate_type) REFERENCES aggregates(id, aggregate_type_id) ON DELETE CASCADE
);
|
USE T_Peoples;
INSERT FUNCIONARIOS (NOME) VALUES ('<NAME>');
INSERT FUNCIONARIOS (NOME) VALUES ('<NAME>');
SELECT * FROM FUNCIONARIOS ORDER BY IDFUNCIONARIOS ASC;
SELECT IDFUNCIONARIOS, Nome FROM FUNCIONARIOS WHERE IDFUNCIONARIOS = 1;
INSERT FUNCIONARIOS (NOME) VALUES ('<NAME>');
UPDATE FUNCIONARIOS SET datanascimento = '12/09/1994' WHERE IDFUNCIONARIOS = 1; |
DROP TABLE IF EXISTS tbl_product;
CREATE TABLE tbl_product (
item_id BIGINT NOT NULL AUTO_INCREMENT,
item_name VARCHAR(45) NULL,
item_descr VARCHAR(128) NOT NULL,
item_img VARCHAR(128) NULL,
item_price DECIMAL(20,2) NOT NULL,
PRIMARY KEY(item_id)
); |
<filename>sqlCreation.sql
#tables
create table expense(
ex_id int primary key auto_increment,
ex_amount numeric (6,2) not null,
ex_item varchar (20) not null,
ex_party varchar (20) not null,
ex_date date not null,
ex_type varchar(10) not null);
create table income(
in_id int primary key auto_increment,
in_amount numeric (6,2) not null,
in_item varchar (20) not null,
in_source varchar (20) not null,
in_date date not null,
in_type varchar(10));
create table account(
acct_id int primary key auto_increment,
acct_name varchar(20) not null,
acct_value numeric (8,2) not null,
acct_refresh_date date not null);
create table profit(
profit_id int primary key auto_increment,
profit_amount numeric (6,2),
profit_date date,
profit_time time);
create table paycheck(
check_id int primary key auto_increment,
income_id int not null,
check_companyName varchar(20) not null,
check_hours numeric(4,2) not null,
check_startDate date not null,
check_endDate date not null,
check_payDate date not null,
check_grossAmount numeric(6,2) not null,
check_federalTax numeric(6,2),
check_stateTax numeric(6,2),
check_cityTax numeric(6,2),
check_finalAmount numeric(6,2) not null,
constraint fk_category
foreign key (income_id) references income(in_id));
create table login_track(
login_id int primary key auto_increment,
login_date date not null,
login_time time not null);
create table netWorth(
worth_id int primary key auto_increment,
worth_amount numeric (8,2) not null,
worth_date date not null,
worth_time time not null);
create table subscription(
sub_id int primary key auto_increment,
sub_item varchar(20) not null,
sub_amount numeric (4,2) not null,
sub_startDate date not null,
sub_status enum('Active', 'Inactive') not null);
create table desiredPur(
des_id int primary key auto_increment,
des_item varchar(20) not null,
des_amount numeric(6,2) not null,
des_status enum('Not Purchased', 'Purchased', 'No Longer Interested') not null);
create table forSale(
sale_id int primary key auto_increment,
sale_item varchar(20) not null,
sale_amount numeric(6,2) not null,
sale_status enum('For Sale', 'Sold', 'No Longer Selling') not null);
ALTER TABLE expense AUTO_INCREMENT=1001;
ALTER TABLE income AUTO_INCREMENT=1001;
ALTER TABLE account AUTO_INCREMENT=1001;
ALTER TABLE profit AUTO_INCREMENT=1001;
ALTER TABLE paycheck AUTO_INCREMENT=1001;
ALTER TABLE login_track AUTO_INCREMENT=1001;
ALTER TABLE netWorth AUTO_INCREMENT=1001;
ALTER TABLE subscription AUTO_INCREMENT=1001;
ALTER TABLE desiredPur AUTO_INCREMENT=1001;
ALTER TABLE forSale AUTO_INCREMENT=1001;
delimiter //
#---------------------------------------------------------------------functions----------------------------------------------------------
create function getLastIncome()
returns int
BEGIN
declare income_id int;
select max(in_id) into income_id
from income;
return income_id;
end //
create function getProfitYear()
returns numeric(8,2)
BEGIN
declare moneyOut numeric(8,2);
declare moneyIn numeric(8,2);
select sum(ex_amount) into moneyOut
from expense;
select sum(in_amount) into moneyIn
from income;
return moneyIn - moneyOut;
end //
create function getProfitMonth()
returns numeric(8,2)
BEGIN
declare moneyOut numeric(8,2);
declare moneyIn numeric(8,2);
select sum(ex_amount) into moneyOut
from expense
where month(expense.ex_date)= month(curdate())
and year(expense.ex_date) = year(curdate());
select sum(in_amount) into moneyIn
from income
where month(income.in_date) = month(curdate())
and year(income.in_date) = year(curdate());
return moneyIn - moneyOut;
end //
#------------------------------------------------------------procedures------------------------------------------------------------
create procedure newLogin()
begin
insert into login_track (login_date, login_time) values (curdate(), curtime());
end //
create procedure newExpense(amount numeric (6,2), item varchar(20), party varchar(20), day date, exType varchar(10))
BEGIN
insert into expense (ex_amount, ex_item, ex_party, ex_date, ex_type) values (amount, item, party, day, exType);
call updateProfit();
end //
create procedure newIncome(amount numeric (6,2), item varchar(20), source varchar(20), day date, inType varchar(10))
BEGIN
insert into income(in_amount, in_item, in_source, in_date, in_type) values (amount, item, source, day, inType);
call updateProfit();
end//
create procedure updateAccount(aname varchar(20), amount numeric(8,2))
BEGIN
insert into account(acct_name, acct_value, acct_refresh_date) values (aname, amount, curdate());
end//
create procedure updateProfit()
BEGIN
insert into profit(profit_amount, profit_date, profit_time) values (getProfitYear(), curdate(), curtime());
end//
create procedure newPaycheck(company varchar(20), hour numeric(4,2), startDate date,
endDate date, payDate date, gross numeric (6,2), federalTax numeric(6,2),
stateTax numeric(6,2), cityTax numeric(6,2), final numeric(6,2), inType varchar(10))
BEGIN
insert into income(in_amount, in_item, in_source, in_date, in_type) values (final, "paycheck", company, payDate, inType);
insert into paycheck(income_id, check_companyName, check_hours, check_startDate,
check_endDate, check_payDate, check_grossAmount, check_federalTax,
check_stateTax, check_cityTax, check_finalAmount)
values (getLastIncome(), company, hour, startDate, endDate, payDate, gross,
federalTax, stateTax, cityTax, final);
end//
create procedure updateNetWorth()
BEGIN
insert into netWorth(worth_amount, worth_date, worth_time) values (networth(), curdate(), curtime());
end //
create procedure newSubscription(item varchar(20), amount numeric(4,2), startD date)
BEGIN
insert into subscription(sub_item, sub_amount, sub_startDate, sub_status)
values (item, amount, startD, 'Active');
end //
create procedure updateSubscription(item varchar(20), amount numeric(4,2), Sstatus enum('Active', 'Inactive'))
BEGIN
update subscription
set sub_amount = amount,
sub_status = Sstatus
where sub_item = item;
end //
create procedure newDesiredPur(item varchar(20), amount numeric (6,2), Dstatus enum('Not Purchased', 'Purchased', 'No Longer Interested'))
BEGIN
insert into desiredPur(des_item, des_amount, des_status)
values (item, amount, Dstatus);
end //
create procedure updateDesiredPur(item varchar(20), amount numeric (6,2), Dstatus enum('Not Purchased', 'Purchased', 'No Longer Interested'))
BEGIN
update desiredPur
set des_amount = amount,
des_status = Dstatus
where des_item = item;
end //
create procedure newForSale(item varchar(20), amount numeric (6,2), Sstatus enum('For Sale', 'Sold', 'No Longer Selling'))
BEGIN
insert into forSale (sale_item, sale_amount, sale_status)
values (item, amount, Sstatus);
end //
create procedure updateForSale(item varchar(20), amount numeric (6,2), Sstatus enum('For Sale', 'Sold', 'No Longer Selling'))
BEGIN
update forSale
set sale_amount = amount,
sale_status = Sstatus
where sale_item = item;
end //
create procedure netWorth()
begin
select a1.acct_value, a1.acct_name, a1.acct_refresh_date
from (select distinct a0.acct_name, a0.acct_value, a0.acct_id, a0.acct_refresh_date
from account as a0
order by acct_id desc) a1
group by a1.acct_name;
end //
delimiter ;
#test cases
call newIncome(350.00, "rent", "Mom", "2021-11-01", "Housing");
call newExpense(49.99, "drive hub", "best buy", "2021-11-15", "Technology");
call newPaycheck("OAP", 40.5, "2021-11-01", "2021-11-14",
"2021-11-21", 581.25, 12.00, 5.21, 0.00, 564.04, "Paycheck");
call newLogin();
delete from account where acct_id > 1;
call updateAccount("Bank Account Spend", 2123.56);
call updateAccount("Bank Account Reserve", 3000.00);
call updateAccount("Bank Account Growth", 2155.50);
call updateAccount("Investments", 6650.45);
call newSubscription("Spotify", 4.99, "2021-11-15");
select max(login_id), login_date, login_time from login_track;
delete from login_track where login_id > 1;
ALTER TABLE login_track AUTO_INCREMENT=1001;
select * from account;
select * from netWorth;
select * from subscription;
delete from subscription where sub_id > 1;
delete from desiredPur where des_id > 1;
call updatenetWorth();
show procedure status;
call newDesiredPur("Laptop", 1200.59, "Not Purchased");
select * from forSale;
insert into forSale(sale_item, sale_amount, sale_status) values ("bike", 250.49, "For Sale");
select a2.acct_name, a2.acct_value, a2.acct_refresh_date
from (select a1.acct_value, a1.acct_name, a1.acct_refresh_date
from (select distinct a0.acct_name, a0.acct_value, a0.acct_id, a0.acct_refresh_date
from account as a0
order by acct_id desc) a1
group by a1.acct_name) a2;
select distinct acct_name, acct_value
from account
order by acct_id desc;
select * from account;
select sum(a2.acct_value)
from(
select a1.acct_value, a1.acct_name, a1.acct_refresh_date
from (select distinct a0.acct_name, a0.acct_value, a0.acct_id, a0.acct_refresh_date
from account as a0
order by acct_id desc) a1
group by a1.acct_name) a2;
select * from expense; |
DELETE
FROM
`price_trend` AS `T1`
WHERE
`T1`.`symbol` = '{strSymbol}' AND
`T1`.`time_frames` = '{strTimeFrames}' AND
`T1`.`samples` = {nSamples} AND
`T1`.`frequency` = {nFrequency} AND
`T1`.`shift_time_left` = '{strShiftTimeLeft}' AND
`T1`.`shift_time_right` = '{strShiftTimeRight}' AND
`T1`.`shift_time` = '{strShiftTime}'; |
--
-- Dumping data for table `layouts`
--
INSERT INTO `layouts` (`id`, `uid`, `alias`, `group_name`, `content`, `type`, `created_at`, `updated_at`) VALUES
(1, '57639eb9715cf', 'sign_up_form', 'Sign-up', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- subscribe form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>Welcome to {CONTACT_NAME}</h4>\r\n <hr>\r\n {FIELDS}\r\n <br>\r\n {SUBSCRIBE_BUTTON}\r\n\r\n </div>\r\n\r\n <!-- /subscribe form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-18 17:54:49', '2016-06-18 17:54:49'),
(2, '5763c01613687', 'sign_up_thankyou_page', 'Sign-up', '<!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- subscribe form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>Almost finished...</h4>\r\n <hr>\r\n <p>We need to confirm your email address.</p>\r\n <p>To complete the subscription process, please click the link in the email we just sent you.\r\n </p>\r\n --<br />\r\n \r\n {CONTACT_NAME}\r\n\r\n </div>\r\n\r\n <!-- /subscribe form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-18 20:17:10', '2016-06-18 20:17:10'),
(3, '5763c3ef7bb8e', 'sign_up_confirmation_email', 'Sign-up', '<!-- Page container -->\r\n<div class="page-container login-container" style="min-height: 249px;"><!-- Page content -->\r\n<div class="page-content"><!-- Main content -->\r\n<div class="content-wrapper">\r\n<div class="row">\r\n<div class="col-sm-2 col-md-3"></div>\r\n<div class="col-sm-8 col-md-6"><!-- subscribe form -->\r\n<h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n<div class="panel panel-body">\r\n<h4>Please Confirm Subscriptiona</h4>\r\n<hr />Click the link below to confirm your subscription:<br /> {SUBSCRIBE_CONFIRM_URL}<hr />\r\n<p>If you received this email by mistake, simply delete it. You won\'t be subscribed if you don\'t click the confirmation link above.</p>\r\n<p>For questions about this list, please contact: <br /> <a href="mailto:{CONTACT_EMAIL}">{CONTACT_EMAIL}</a></p>\r\n</div>\r\n<!-- /subscribe form --></div>\r\n</div>\r\n</div>\r\n<!-- /main content --></div>\r\n<!-- /page content --> <!-- Footer -->\r\n<div class="footer text-white">© 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a></div>\r\n<!-- /footer --></div>\r\n<!-- /page container -->', 'email', '2016-06-18 20:33:35', '2016-06-29 20:55:55'),
(4, '5763cab0459c8', 'sign_up_confirmation_thankyou', 'Sign-up', '<!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- subscribe form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>Subscription Confirmed</h4>\r\n <hr>\r\n <p>Your subscription to our list has been confirmed.\r\n</p>\r\n<p>Thank you for subscribing!</p>\r\n\r\n \r\n <a href="{CONTACT_URL}" class="btn btn-info bg-teal-800">Continue to our website</a> or <a href="{UPDATE_PROFILE_URL}" class="btn btn-info bg-teal-800">Manage your preferences</a>\r\n\r\n </div>\r\n\r\n <!-- /subscribe form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-18 21:02:24', '2016-06-18 21:02:24'),
(5, '5764b3c8bcf4a', 'sign_up_welcome_email', 'Sign-up', '<!-- Page container -->\r\n<div class="page-container login-container" style="min-height: 249px;"><!-- Page content -->\r\n<div class="page-content"><!-- Main content -->\r\n<div class="content-wrapper">\r\n<div class="row">\r\n<div class="col-sm-2 col-md-3"></div>\r\n<div class="col-sm-8 col-md-6"><!-- subscribe form -->\r\n<h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n<div class="panel panel-body">\r\n<h4>Your subscription to our list has been confirmed.</h4>\r\n<hr />\r\n<p>For your records, here is a copy of the information you submitted to us...</p>\r\n{SUBSCRIBER_SUMMARY}<hr />\r\n<p>If at any time you wish to stop receiving our emails, you can: <br /> <a href="{UNSUBSCRIBE_URL}" class="btn btn-info bg-teal-800">Unsubscribe here</a></p>\r\n<p>You may also contact us at: <br /> <a href="mailto:{CONTACT_EMAIL}">{CONTACT_EMAIL}</a></p>\r\n</div>\r\n<!-- /subscribe form --></div>\r\n</div>\r\n</div>\r\n<!-- /main content --></div>\r\n<!-- /page content --> <!-- Footer -->\r\n<div class="footer text-white">© 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a></div>\r\n<!-- /footer --></div>\r\n<!-- /page container -->', 'email', '2016-06-19 13:36:56', '2016-06-29 20:56:51'),
(6, '5764bac04f223', 'unsubscribe_form', 'Unsubscribe', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>Unsubscribe</h4>\r\n <hr>\r\n <p>Enter your email address to unsubscribe from {LIST_NAME}</p>\r\n \r\n \r\n\r\n{EMAIL_FIELD}\r\n\r\n<p>{UNSUBSCRIBE_BUTTON}</p>\r\n </div>\r\n\r\n <!-- /form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-19 14:06:40', '2016-06-19 14:06:40'),
(7, '5764c2d612aea', 'unsubscribe_success_page', 'Unsubscribe', ' <!-- Page container -->\n <div class="page-container login-container" style="min-height:249px">\n\n <!-- Page content -->\n <div class="page-content">\n\n <!-- Main content -->\n <div class="content-wrapper">\n <div class="row">\n <div class="col-sm-2 col-md-3">\n \n </div>\n <div class="col-sm-8 col-md-6">\n\n <!-- form -->\n \n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\n <div class="panel panel-body"> \n \n <h4>Unsubscribe Successful</h4>\n <hr>\n <p>You have been removed from {LIST_NAME}.</p>\n \n <br />\n<a href="{CONTACT_URL}" class="btn btn-info bg-teal-800"><< return to our website</a>\n </div>\n\n <!-- /form -->\n \n \n </div>\n </div>\n </div>\n <!-- /main content -->\n\n </div>\n <!-- /page content -->\n\n\n <!-- Footer -->\n <div class="footer text-white">\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \n </div>\n <!-- /footer -->\n\n </div>\n <!-- /page container -->', 'page', '2016-06-19 14:41:10', '2016-06-19 14:41:10'),
(8, '5764c466641c7', 'unsubscribe_goodbye_email', 'Unsubscribe', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>We have removed your email address from our list.</h4>\r\n <hr>\r\n <p>We\'re sorry to see you go.</p>\r\n <p>Was this a mistake? Did you forward one of our emails to a friend, and they clicked the unsubscribe link not realizing they were in fact unsubscribing you from this list? If this was a mistake, you can re-subscribe at: <br />\r\n<a href="{SUBSCRIBE_URL}" class="btn btn-info bg-teal-800">Subscribe</a>\r\n</p>\r\n <br />\r\nFor questions or comments, please contact us at:<br />\r\n<a href="mailto:{CONTACT_EMAIL}">{CONTACT_EMAIL}</a>\r\n </div>\r\n\r\n <!-- /form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'email', '2016-06-19 14:47:50', '2016-06-19 14:47:50'),
(9, '5764c710527b8', 'profile_update_email', 'Update profile', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <p>We received a request to change your subscription preferences for List 1.</p>\r\n\r\n<p>If you made this request, and would like to change your preferences, use the link below</p>\r\n\r\n<p><a href="{UPDATE_PROFILE_URL}">Update your preferences</a></p>\r\n\r\n<p>If you did not make this request, it was probably submitted by someone else by mistake. You can ignore this email, and no changes will be made to your subscription preferences.</p>\r\n\r\n<p>\r\nFor questions about this list, please contact: <br />\r\n<a href="{CONTACT_EMAIL}">{CONTACT_EMAIL}</a>\r\n</p>\r\n </div>\r\n\r\n <!-- /form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'email', '2016-06-19 14:59:12', '2016-06-19 14:59:12'),
(10, '5764c87e6bad1', 'profile_update_form', 'Update profile', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n<h4>Update your preferences</h4>\r\n<hr />\r\n {FIELDS}<br />\r\n{UPDATE_PROFILE_BUTTON} or <a class="btn btn-info bg-grey" href="{UNSUBSCRIBE_URL}">Unsubscribe</a>\r\n\r\n\r\n </div>\r\n\r\n <!-- /form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-19 15:05:18', '2016-06-19 15:05:18'),
(11, '5764c90505f1c', 'profile_update_success_page', 'Update profile', '<!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- subscribe form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n \r\n <h4>Profile Updated</h4>\r\n <hr>\r\n <p>Your profile information has been updated. For your records, here is a copy of the information you submitted to us...</p>\r\n\r\n{SUBSCRIBER_SUMMARY}\r\n\r\n\r\n\r\n\r\n<hr />\r\n<a class="btn btn-info bg-teal-800" href="{CONTACT_URL}">Return to our website</a>\r\n\r\n </div>\r\n\r\n <!-- /subscribe form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-19 15:07:33', '2016-06-19 15:07:33'),
(12, '5764c9812b0bc', 'profile_update_email_sent', 'Update profile', ' <!-- Page container -->\r\n <div class="page-container login-container" style="min-height:249px">\r\n\r\n <!-- Page content -->\r\n <div class="page-content">\r\n\r\n <!-- Main content -->\r\n <div class="content-wrapper">\r\n <div class="row">\r\n <div class="col-sm-2 col-md-3">\r\n \r\n </div>\r\n <div class="col-sm-8 col-md-6">\r\n\r\n <!-- form -->\r\n \r\n <h2 class="text-semibold mt-40 text-white">{LIST_NAME}</h2>\r\n <div class="panel panel-body"> \r\n<h4>Email sent</h4> \r\n<hr />\r\n <p>For security, we\'ve sent an email to your inbox that contains a link to update your preferences.</p>\r\n--<br />\r\n{CONTACT_NAME}\r\n </div>\r\n\r\n <!-- /form -->\r\n \r\n \r\n </div>\r\n </div>\r\n </div>\r\n <!-- /main content -->\r\n\r\n </div>\r\n <!-- /page content -->\r\n\r\n\r\n <!-- Footer -->\r\n <div class="footer text-white">\r\n © 2016. <span class="text-white">Acelle Email Marketing Application</span> by <a href="http://mailixa.net" class="text-white" target="_blank">Acelle.net</a> \r\n </div>\r\n <!-- /footer -->\r\n\r\n </div>\r\n <!-- /page container -->', 'page', '2016-06-19 14:59:11', '2016-06-19 15:09:37');
|
-- phpMyAdmin SQL Dump
-- version 4.9.5
-- https://www.phpmyadmin.net/
--
-- Servidor: localhost:3306
-- Tiempo de generación: 19-06-2020 a las 16:18:14
-- Versión del servidor: 10.2.24-MariaDB
-- Versión de PHP: 7.3.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de datos: `alhernan_components`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `graficas`
--
CREATE TABLE `graficas` (
`id` int(11) NOT NULL,
`fabricante` varchar(256) NOT NULL,
`modelo` varchar(256) NOT NULL,
`memoria` int(11) NOT NULL,
`consumo` int(11) NOT NULL,
`asin` varchar(256) NOT NULL,
`creado` date NOT NULL DEFAULT current_timestamp()
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Volcado de datos para la tabla `graficas`
--
INSERT INTO `graficas` (`id`, `fabricante`, `modelo`, `memoria`, `consumo`, `asin`, `creado`) VALUES
(1, 'MSI', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07YXPVBWW', '2020-02-23'),
(2, 'EVGA', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07TQZCHYN', '2020-02-23'),
(3, 'MSI', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07PBLDV3D', '2020-02-23'),
(4, 'MSI', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07VDMGYGZ', '2020-02-23'),
(5, 'MSI', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07V1Q4L2Z', '2020-02-23'),
(6, 'EVGA', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07VJPNG1M', '2020-02-23'),
(7, 'ZOTAC', 'NVIDIA GeForce RTX 2080', 6, 0, 'B07XV7FNR2', '2020-02-23'),
(8, 'XFX', 'AMD Radeon RX 470', 8, 0, 'B077VX31FZ', '2020-02-23'),
(9, 'XFX', 'AMD RX 5700', 8, 0, 'B07XVMXBQW', '2020-02-23'),
(10, 'Sapphire', 'AMD Radeon RX 580', 8, 0, 'B06ZZ6FMF8', '2020-02-23'),
(11, 'Gigabyte', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07WN6WB4G', '2020-02-23'),
(12, 'MSI', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07N824KNV', '2020-02-23'),
(13, 'ASUS', 'NVIDIA GeForce RTX 2080 Ti', 11, 0, 'B07HY6QWXN', '2020-02-23'),
(14, 'Gigabyte', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07WN6RVHH', '2020-02-23'),
(15, 'ASUS', 'GeForce GTX 1660 SUPER', 6, 0, 'B07ZHWQ81N', '2020-02-23'),
(16, 'Gigabyte', 'NVIDIA GeForce GTX 1660', 6, 0, 'B07P76G428', '2020-02-23'),
(17, 'ASUS', 'NVIDIA GeForce RTX 2080 Super', 8, 0, 'B07VFKM4VQ', '2020-02-23'),
(18, 'EVGA', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07V6SJLSG', '2020-02-23'),
(19, 'EVGA', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07Q1ZJ3ZB', '2020-02-23'),
(20, 'MSI', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07ZK69HDK', '2020-02-23'),
(21, 'EVGA', 'NVIDIA GeForce RTX 2080 Ti', 11, 0, 'B07KVKRLG2', '2020-02-23'),
(22, 'Sapphire', 'RX 5600 XT', 6, 0, 'B083R25Z94', '2020-02-23'),
(23, 'Sapphire', 'RX 5700 XT', 8, 0, 'B07WC7683C', '2020-02-23'),
(24, 'ASUS', 'NVIDIA GeForce GTX1660 SUPER', 6, 0, 'B081SPGMBD', '2020-02-23'),
(25, 'XFX', 'AMD Radeon RX 570', 4, 0, 'B06ZXY43VC', '2020-02-23'),
(26, 'Gigabyte', 'AMD Radeon RX 5700', 8, 0, 'B07W95D5V3', '2020-02-23'),
(27, 'Sapphire', 'AMD Radeon Navi', 8, 0, 'B07XMNGVVD', '2020-02-23'),
(28, 'MSI', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07QTMRJTK', '2020-02-23'),
(29, 'ASUS', 'NVIDIA GeForce RTX 2070 Super', 8, 0, 'B07TYWQ1SW', '2020-02-23'),
(30, 'XFX', 'AMD Radeon VII', 16, 0, 'B07NFGDZWQ', '2020-02-23'),
(31, 'EVGA', 'NVIDIA GTX 1660 SUPER', 6, 0, 'B07ZHZL2JB', '2020-02-23'),
(32, 'ASUS', 'NVIDIA GeForce GTX 1050', 4, 0, 'B01M360WG6', '2020-02-23'),
(33, 'Gigabyte', 'GeForce GTX 1660 6GB', 6, 0, 'B07YYZGM51', '2020-02-23'),
(34, 'EVGA', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07TLPWBJ4', '2020-02-23'),
(35, 'ASUS', 'NVIDIA GTX 1660 SUPER', 6, 0, 'B082N8HJ5C', '2020-02-23'),
(36, 'Gigabyte', 'NVIDIA GeForce GT 1030', 2, 0, 'B07646VQ6T', '2020-02-23'),
(37, 'XFX', 'AMD Radeon RX 5600 XT', 6, 0, 'B083FWMZ8Z', '2020-02-23'),
(38, 'Gigabyte', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07Y2R5Y2G', '2020-02-23'),
(39, 'NVIDIA', 'NVIDIA Titan RTX', 24, 0, 'B07L8YGDL5', '2020-02-23'),
(40, 'Gigabyte', 'NVIDIA GeForce GTX 1050 Ti', 4, 0, 'B06WWLWWJM', '2020-02-23'),
(41, 'EVGA', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07TNWH526', '2020-02-23'),
(42, 'ZOTAC', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07TDN1SC5', '2020-02-23'),
(43, 'MSI', 'NVIDIA GeForce RTX 2080 Ti', 11, 0, 'B07GJ3ZD69', '2020-02-23'),
(44, 'ASUS', 'NVIDIA GeForce RTX 2080 Ti', 11, 0, 'B07KKPTXVF', '2020-02-23'),
(45, 'MSI', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07MC23VS4', '2020-02-23'),
(46, 'MSI', 'NVIDIA GeForce GTX 1050 Ti', 4, 0, 'B01MA62JSZ', '2020-02-23'),
(47, 'MSI', 'AMD Radeon RX 5700', 8, 0, 'B07Y8XCB36', '2020-02-23'),
(48, 'MSI', 'NVIDIA GeForce GTX 1650', 4, 0, 'B081Q6KKDS', '2020-02-23'),
(49, 'Gigabyte', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07XWFFDH7', '2020-02-23'),
(50, 'EVGA', 'NVIDIA GeForce GTX 1660', 6, 0, 'B07RJGK1PW', '2020-02-23'),
(51, 'XFX', 'AMD RX 5700 XT', 8, 0, 'B07ZP5QZX2', '2020-02-23'),
(52, 'Gigabyte', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07XL55JMB', '2020-02-23'),
(53, 'ASUS', 'NVIDIA GeForce GTX 1650 SUPER', 4, 0, 'B081KY5L57', '2020-02-23'),
(54, 'Gigabyte', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07NJPKZQG', '2020-02-23'),
(55, 'Gigabyte', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07WQG7S5S', '2020-02-23'),
(56, 'Gigabyte', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07YKGF88M', '2020-02-23'),
(57, 'EVGA', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07Y93MGTJ', '2020-02-23'),
(58, 'ZOTAC', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07TMJJVQ1', '2020-02-23'),
(59, 'ASUS', 'AMD Radeon RX 480', 8, 0, 'B071D8YQJD', '2020-02-23'),
(60, 'XFX', 'AMD Radeon RX 5700', 8, 0, 'B07WRYC3MT', '2020-02-23'),
(61, 'MSI', 'AMD Radeon R7 240', 2, 0, 'B07D3VY8ZB', '2020-02-23'),
(62, 'Gigabyte', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07QHGKC2D', '2020-02-23'),
(63, 'Gigabyte', 'AMD Radeon RX 5700', 8, 0, 'B07W821Z6C', '2020-02-23'),
(64, 'AMD', 'AMD Radeon RX 590', 8, 0, 'B07TK37HPW', '2020-02-23'),
(65, 'MSI', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07PBLD2MX', '2020-02-23'),
(66, 'Gigabyte', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07NYKD5FT', '2020-02-23'),
(67, 'ZOTAC', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07QF1H9YR', '2020-02-23'),
(68, 'ASUS', 'NVIDIA GeForce RTX 2080 Super', 8, 0, 'B07VBBDZTN', '2020-02-23'),
(69, 'MSI', 'NVIDIA GeForce GT 1030', 2, 0, 'B071L4VKF6', '2020-02-23'),
(70, 'Gigabyte', 'NVIDIA GeForce GTX 1650', 4, 0, 'B081R359ZM', '2020-02-23'),
(71, 'ASUS', 'AMD Radeon RX 5700', 8, 0, 'B07X7KNBMK', '2020-02-23'),
(72, 'NVIDIA', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07W3P4PC2', '2020-02-23'),
(73, 'XFX', 'AMD RX 580', 8, 0, 'B082KZBL9N', '2020-02-23'),
(74, 'Gigabyte', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07ZK765CT', '2020-02-23'),
(75, 'EVGA', 'NVIDIA GeForce GTX 1060', 3, 0, 'B01KU2CIIY', '2020-02-23'),
(76, 'MSI', 'NVIDIA GeForce RTX 2060', 8, 0, 'B07YXQ19NC', '2020-02-23'),
(77, 'MSI', 'NVIDIA GeForce RTX 2060', 6, 0, 'B07MQ36Z6L', '2020-02-23'),
(78, 'EVGA', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07RT744F8', '2020-02-23'),
(79, 'MSI', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07ZTXYVMN', '2020-02-23'),
(80, 'ZOTAC', 'Nvidia GeForce', 1, 0, 'B01E9Z2D60', '2020-02-23'),
(81, 'Gigabyte', 'NVIDIA GeForce GTX 1650', 4, 0, 'B081L3PSGK', '2020-02-23'),
(82, 'ASUS', 'NVIDIA GeForce RTX 2070 Super', 8, 0, 'B07XV8TVLW', '2020-02-23'),
(83, 'XFX', 'AMD Radeon RX 460', 4, 0, 'B075LM7GYZ', '2020-02-23'),
(84, 'Gigabyte', 'AMD Radeon RX 560', 6, 0, 'B083X25J8C', '2020-02-23'),
(85, 'Gigabyte', 'NVIDIA GeForce GT 1030', 2, 0, 'B071DY2VJR', '2020-02-23'),
(86, 'MSI', 'NVIDIA GeForce GTX 1060', 6, 0, 'B07P9G4QK1', '2020-02-23'),
(87, 'EVGA', 'NVIDIA GeForce GTX 1650', 4, 0, 'B081R425YH', '2020-02-23'),
(88, 'Gigabyte', 'NVIDIA GeForce GT 710', 2, 0, 'B073SWN4ZM', '2020-02-23'),
(89, 'Gigabyte', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07TZV17JY', '2020-02-23'),
(90, 'ASUS', 'NVIDIA GeForce GTX 1650', 4, 0, 'B07QJDT7GR', '2020-02-23'),
(91, 'MSI', 'NVIDIA GeForce RTX 2070', 8, 0, 'B07V39YSPF', '2020-02-23'),
(92, 'ASUS', 'NVIDIA GeForce GT 1030', 2, 0, 'B0716ZH99K', '2020-02-23'),
(93, 'MSI', 'GeForce GTX 1660 Ti', 6, 0, 'B07ZHDZ1K6', '2020-02-23'),
(94, 'ASUS', 'NVIDIA GeForce RTX 2060 Super', 8, 0, 'B07TYWL6ZQ', '2020-02-23'),
(95, 'Gigabyte', 'AMD Radeon RX 480', 8, 0, 'B07PQJ2S5G', '2020-02-23'),
(96, 'XFX', 'AMD Radeon RX 5700', 8, 0, 'B07XFDV7Q6', '2020-02-23'),
(97, 'ASUS', 'AMD Radeon RX 480', 4, 0, 'B06Y5WGXX3', '2020-02-23'),
(98, 'EVGA', 'NVIDIA GeForce RTX 2080', 8, 0, 'B07VPFPWVN', '2020-02-23'),
(99, 'XFX', 'AMD Radeon RX 460', 2, 0, 'B071XXZWT1', '2020-02-23'),
(100, 'ASUS', 'NVIDIA GeForce GTX1650 SUPER', 4, 0, 'B082N86RPJ', '2020-02-23'),
(101, 'Gigabyte', 'NVIDIA GeForce GTX 1070 Ti', 8, 0, 'B0775GL84Z', '2020-03-23'),
(102, 'Nvidia', 'GEFORCE GTX 1080 Ti - FE Founder\'s Edition', 11, 0, 'B06XH5ZCLP', '2020-03-25'),
(103, 'Nvidia', 'GEFORCE RTX 2080 Ti Founders Edition', 11, 0, 'B07HWMDDMK', '2020-03-25');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `graficas`
--
ALTER TABLE `graficas`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `graficas`
--
ALTER TABLE `graficas`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=104;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jun 25, 2018 at 12:59 PM
-- Server version: 10.1.16-MariaDB
-- PHP Version: 5.6.24
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: `storepos`
--
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(5) NOT NULL,
`item_name` varchar(256) NOT NULL,
`price` decimal(10,0) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `item_name`, `price`) VALUES
(1, 'beans', '239');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(5) NOT NULL,
`name` varchar(255) NOT NULL,
`username` varchar(256) NOT NULL,
`password` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `password`) VALUES
(1, '<PASSWORD>', '<PASSWORD>', '<PASSWORD>');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>config/erp_db/Product.sql<gh_stars>0
CREATE TABLE `erp_product_specifics`(
id int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`create_by` int(11) unsigned DEFAULT NULL,
`update_by` int(11) unsigned DEFAULT NULL,
puid varchar(100) NULL COMMENT '父uid',
shop_id varchar(100) NULL COMMENT '店铺id',
marketplace_id varchar(100) NULL COMMENT '市场id',
full_cid varchar(100) NULL COMMENT 'FullCID',
parent_id bigint(11) NULL COMMENT '父ID',
dxm_state varchar(100) NULL COMMENT '产品状态',
dxm_publish_state varchar(100) NULL COMMENT '产品发布状态',
err_msg varchar(100) NULL COMMENT '错误信息',
asin varchar(100) NULL COMMENT 'ASIN',
listing_id varchar(100) NULL COMMENT 'Listing ID',
parent_asin varchar(100) NULL COMMENT '父ASIN',
child_asins varchar(100) NULL COMMENT '子ASIN',
is_variation bigint(11) NULL COMMENT '是否变化',
sku varchar(100) NULL COMMENT 'SKU',
standard_product_type varchar(100) NULL COMMENT '标准产品类型',
standard_product_id varchar(100) NULL COMMENT '标准产品ID',
title varchar(100) NULL COMMENT '产品标题',
brand varchar(100) NULL COMMENT '品牌',
manufacturer varchar(100) NULL COMMENT '制造商',
description varchar(100) NULL COMMENT '描述',
bullet_point varchar(100) NULL COMMENT '重点',
condition_type varchar(100) NULL COMMENT '条件类型',
condition_value varchar(100) NULL COMMENT '条件值',
standard_price Double NULL COMMENT '标准价格',
listing_pricing Double NULL COMMENT '价格',
switch_fulfillment_to varchar(100) NULL COMMENT '配送转换',
fulfillment_channel varchar(100) NULL COMMENT '配送渠道',
part_number varchar(100) NULL COMMENT '产品型号',
main_image varchar(100) NULL COMMENT '主图',
sale_start_date varchar(100) NULL COMMENT '开始售出日期',
sale_end_date varchar(100) NULL COMMENT '销售结束日期',
sale_sale_price varchar(100) NULL COMMENT '售价',
quantity bigint(11) NULL COMMENT '数量',
open_date varchar(100) NULL COMMENT '开放时间',
item_dimensions varchar(100) NULL COMMENT '产品体积',
package_dimensions varchar(100) NULL COMMENT '包裹体积',
standard_price_currency varchar(100) NULL COMMENT '标准价格币种',
specifics varchar(100) NULL COMMENT '详情',
variation_child_str varchar(100) NULL COMMENT '变体?',
online_status varchar(100) NULL COMMENT '在线状态',
sale_num bigint(11) NULL COMMENT '销量',
fnsku varchar(100) NULL COMMENT 'FNSKU',
warehousing bigint(11) NULL COMMENT '库存',
unsellable bigint(11) NULL COMMENT '不可售数量',
reserved_qty bigint(11) NULL COMMENT '预留数量',
purchase_cost bigint(11) NULL COMMENT '购买成本',
head_trip_cost bigint(11) NULL COMMENT '头程费用',
ship_cost varchar(100) NULL COMMENT '运费',
price_feed_status varchar(100) NULL COMMENT '价格推送状态',
inventory_feed_status varchar(100) NULL COMMENT '库存推送状态',
update_standard_price varchar(100) NULL COMMENT '更新标准价格',
update_quantity varchar(100) NULL COMMENT '更新数量',
rating varchar(100) NULL COMMENT 'Rating',
rating_count varchar(100) NULL COMMENT 'Rating数',
`rank` varchar(100) NULL COMMENT '排名',
bsr_rank varchar(100) NULL COMMENT 'BestSeller排名',
commodity_id varchar(100) NULL COMMENT '商品id',
dev_id varchar(100) NULL COMMENT '开发者id',
create_id varchar(100) NULL COMMENT '创建id',
update_id varchar(100) NULL COMMENT '更新id',
lprice_update_time varchar(100) NULL COMMENT 'l价格更新时间',
lprice_status varchar(100) NULL COMMENT 'l价格状态',
child_list varchar(100) NULL COMMENT '子listing',
sale_prices Double NULL COMMENT '销售额',
ad_costs Double NULL COMMENT '广告费',
currency varchar(100) NULL COMMENT '币种',
cost_currency varchar(100) NULL COMMENT '广告费币种',
commodity_sku varchar(100) NULL COMMENT '商品SKU',
commodity_name varchar(100) NULL COMMENT '商品名称',
shop_name varchar(100) NULL COMMENT '店铺名称',
site_name varchar(100) NULL COMMENT '站点名称',
domain varchar(100) NULL COMMENT '区域域名',
child_num varchar(100) NULL COMMENT '子体数',
dev_ids varchar(100) NULL COMMENT '业务员id',
dev_name varchar(100) NULL COMMENT '业务员名称',
variation_str_map varchar(100) NULL COMMENT '变化映射',
listing_price Double NULL COMMENT 'Buy Box价格',
shipping_price bigint(11) NULL COMMENT '运费',
buy_box_winner varchar(100) NULL COMMENT 'Buy Box资格',
buy_box_currency varchar(100) NULL COMMENT 'Buy Box币种',
total_fee Double NULL COMMENT '总费用',
referral_fee Double NULL COMMENT '销售佣金',
variable_closing_fee bigint(11) NULL COMMENT '交易手续费',
per_item_fee bigint(11) NULL COMMENT '计件费用',
fba_fees Double NULL COMMENT 'FBA费用',
fee_currency varchar(100) NULL COMMENT '费用币种',
vartation_str varchar(100) NULL COMMENT '变化字符',
bsr_rank_str varchar(100) NULL COMMENT 'BestSeller排名字符',
PRIMARY KEY (`id`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='在线产品';
CREATE TABLE `erp_product_bsr`(
id int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`create_by` int(11) unsigned DEFAULT NULL,
`update_by` int(11) unsigned DEFAULT NULL,
`rank` bigint(11) NULL COMMENT '排名',
category_id varchar(100) NULL COMMENT '类目ID',
category_name varchar(100) NULL COMMENT '类目名称',
PRIMARY KEY (`id`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品类目排名';
CREATE TABLE `erp_product_inventory`(
id int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`create_by` int(11) unsigned DEFAULT NULL,
`update_by` int(11) unsigned DEFAULT NULL,
puid bigint(11) NULL COMMENT '父uid',
shop_id bigint(11) NULL COMMENT '店铺id',
marketplace_id varchar(100) NULL COMMENT '市场id',
full_cid varchar(100) NULL COMMENT 'Full CID',
main_image varchar(100) NULL COMMENT '主图',
asin varchar(100) NULL COMMENT 'ASIN',
sku varchar(100) NULL COMMENT 'SKU',
fn_sku varchar(100) NULL COMMENT 'FNSKU',
`condition` varchar(100) NULL COMMENT '条件',
commodity_id bigint(11) NULL COMMENT '商品ID',
commodity_name varchar(100) NULL COMMENT '商品名称',
commodity_sku varchar(100) NULL COMMENT '商品SKU',
avg_inventory_cost bigint(11) NULL COMMENT '平均库存费用',
avg_transport_cost bigint(11) NULL COMMENT '平均运输费用',
inventory_costs Double NULL COMMENT '库存费用',
purchase_costs bigint(11) NULL COMMENT '购买成本',
currency varchar(100) NULL COMMENT '币种',
available bigint(11) NULL COMMENT '可售数量',
reserved_transfer bigint(11) NULL COMMENT '待调仓',
reserved_processing bigint(11) NULL COMMENT '调仓中',
reserved_customerorders bigint(11) NULL COMMENT '待发货',
inbound_working bigint(11) NULL COMMENT '计划入库',
inbound_shipped bigint(11) NULL COMMENT '在途',
inbound_receiving bigint(11) NULL COMMENT '入库中',
unfulfillable bigint(11) NULL COMMENT '不可售',
inv_age0to90_days bigint(11) NULL COMMENT '0到90天库存',
inv_age91_to180_days bigint(11) NULL COMMENT '91到180天库存',
inv_age181_to270_days bigint(11) NULL COMMENT '181到270天库存',
inv_age271_to365_days bigint(11) NULL COMMENT '271到365天库存',
inv_age365_plus_days bigint(11) NULL COMMENT '365+天库存',
total_inventory bigint(11) NULL COMMENT '总计库存',
full_cid_name varchar(100) NULL COMMENT 'Full CID名称',
PRIMARY KEY (`id`) USING BTREE
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品库存';
|
<reponame>uk-gov-mirror/SkillsFundingAgency.das-data-management
CREATE VIEW [Data_Pub].[DAS_Employer_Accounts_V2]
AS
SELECT isnull(CAST(a.Id * 100 as bigint),-1) as Id
, isnull(CAST(a.HashedId AS nvarchar(100)),'XXXXXX') as DasAccountId
, isnull(CAST(a.Id as bigint),-1) as EmployerAccountId
, 'Redacted' as DASAccountName
, Convert(DATE,a.CreatedDate) as DateRegistered
, ISNULL(CAST(a.CreatedDate as DateTime),'9999-12-31') as DateTimeRegistered
--Owner Email Address suppressed for Data Protection reasons
, ISNULL(CAST('Redacted' AS Varchar(10)),'NA') as OwnerEmail
, ISNULL(ISNULL(ModifiedDate,CreatedDate),'9999-12-31') as UpdateDateTime
-- Additional Columns for UpdateDateTime represented as a Date
, ISNULL(ISNULL( Convert(DATE,ModifiedDate), Convert(DATE,CreatedDate)),'9999-12-31') as UpdateDate
-- Flag to say if latest record from subquery, Using Coalesce to set null value to 0
, ISNULL(Cast( 1 AS BIT ),-1) as Flag_Latest
--Count of currrent PAYE Schemes
, isnull(eps.CountOfCurrentPAYESchemes, 0) as CountOfCurrentPAYESchemes
--Count of currrent Legal Entities
, isnull(ele.CountOfCurrentLegalEntities, 0) as CountOfCurrentLegalEntities
, a.ApprenticeshipEmployerType as ApprenticeshipEmployerType
FROM [ASData_PL].[Acc_Account] a
-- Adding Current number of PAYE Schemes
LEFT JOIN
(
SELECT
eps.DASAccountID
,COUNT(*) AS CountOfCurrentPAYESchemes
FROM Data_Pub.DAS_Employer_PayeSchemes_v2 eps
--Checking if the PAYE Schemes are valid when the view runs using 31 DEC 2999 as default removed date if null
WHERE GETDATE() BETWEEN eps.AddedDate AND isnull(eps.RemovedDate,'31 DEC 2999')
GROUP BY eps.DASAccountId
) eps
ON a.HashedId = eps.DASAccountId
-- Adding Current number of LegalEntities
LEFT JOIN
(
SELECT ele.DASAccountId
,Count(*) AS CountOfCurrentLegalEntities
FROM
Data_Pub.DAS_Employer_LegalEntities_v2 ele
GROUP BY ele.DASAccountID
) ele
ON a.HashedId = ele.DASAccountId
GO
|
DROP TRIGGER IF EXISTS healthProfessionalNotParticipatingWhenPatient;
|
<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : Localhost
Source Server Version : 50505
Source Host : localhost:3306
Source Database : aura-2019
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2019-09-16 21:12:07
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for `backend_access_log`
-- ----------------------------
DROP TABLE IF EXISTS `backend_access_log`;
CREATE TABLE `backend_access_log` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`ip_address` 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;
-- ----------------------------
-- Records of backend_access_log
-- ----------------------------
-- ----------------------------
-- Table structure for `backend_users`
-- ----------------------------
DROP TABLE IF EXISTS `backend_users`;
CREATE TABLE `backend_users` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`login` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`activation_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`persist_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`reset_password_code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`permissions` text COLLATE utf8mb4_unicode_ci,
`is_activated` tinyint(1) NOT NULL DEFAULT '0',
`role_id` int(10) unsigned DEFAULT NULL,
`activated_at` timestamp NULL DEFAULT NULL,
`last_login` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`deleted_at` timestamp NULL DEFAULT NULL,
`is_superuser` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `login_unique` (`login`),
UNIQUE KEY `email_unique` (`email`),
KEY `act_code_index` (`activation_code`),
KEY `reset_code_index` (`reset_password_code`),
KEY `admin_role_index` (`role_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_users
-- ----------------------------
INSERT INTO backend_users VALUES ('1', 'Super', 'Admin', 'sysadmin', '<EMAIL>', '$2y$10$NdVPijvoTpmHN9LK811kyOP9pwDUhd51rK3isVhigKx1Nu2tbfWe6', null, null, null, '', '1', '2', null, null, '2019-09-16 14:07:25', '2019-09-16 14:07:25', null, '1');
-- ----------------------------
-- Table structure for `backend_users_groups`
-- ----------------------------
DROP TABLE IF EXISTS `backend_users_groups`;
CREATE TABLE `backend_users_groups` (
`user_id` int(10) unsigned NOT NULL,
`user_group_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`user_id`,`user_group_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_users_groups
-- ----------------------------
INSERT INTO backend_users_groups VALUES ('1', '1');
-- ----------------------------
-- Table structure for `backend_user_groups`
-- ----------------------------
DROP TABLE IF EXISTS `backend_user_groups`;
CREATE TABLE `backend_user_groups` (
`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,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`is_new_user_default` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
UNIQUE KEY `name_unique` (`name`),
KEY `code_index` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_user_groups
-- ----------------------------
INSERT INTO backend_user_groups VALUES ('1', 'Owners', '2019-09-16 14:07:25', '2019-09-16 14:07:25', 'owners', 'Default group for website owners.', '0');
-- ----------------------------
-- Table structure for `backend_user_preferences`
-- ----------------------------
DROP TABLE IF EXISTS `backend_user_preferences`;
CREATE TABLE `backend_user_preferences` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned NOT NULL,
`namespace` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`group` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`item` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `user_item_index` (`user_id`,`namespace`,`group`,`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_user_preferences
-- ----------------------------
-- ----------------------------
-- Table structure for `backend_user_roles`
-- ----------------------------
DROP TABLE IF EXISTS `backend_user_roles`;
CREATE TABLE `backend_user_roles` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`permissions` text COLLATE utf8mb4_unicode_ci,
`is_system` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `role_unique` (`name`),
KEY `role_code_index` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_user_roles
-- ----------------------------
INSERT INTO backend_user_roles VALUES ('1', 'Publisher', 'publisher', 'Site editor with access to publishing tools.', '', '1', '2019-09-16 14:07:25', '2019-09-16 14:07:25');
INSERT INTO backend_user_roles VALUES ('2', 'Developer', 'developer', 'Site administrator with access to developer tools.', '', '1', '2019-09-16 14:07:25', '2019-09-16 14:07:25');
-- ----------------------------
-- Table structure for `backend_user_throttle`
-- ----------------------------
DROP TABLE IF EXISTS `backend_user_throttle`;
CREATE TABLE `backend_user_throttle` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned DEFAULT NULL,
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attempts` int(11) NOT NULL DEFAULT '0',
`last_attempt_at` timestamp NULL DEFAULT NULL,
`is_suspended` tinyint(1) NOT NULL DEFAULT '0',
`suspended_at` timestamp NULL DEFAULT NULL,
`is_banned` tinyint(1) NOT NULL DEFAULT '0',
`banned_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `backend_user_throttle_user_id_index` (`user_id`),
KEY `backend_user_throttle_ip_address_index` (`ip_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of backend_user_throttle
-- ----------------------------
-- ----------------------------
-- Table structure for `cache`
-- ----------------------------
DROP TABLE IF EXISTS `cache`;
CREATE TABLE `cache` (
`key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`expiration` int(11) NOT NULL,
UNIQUE KEY `cache_key_unique` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of cache
-- ----------------------------
-- ----------------------------
-- Table structure for `cms_theme_data`
-- ----------------------------
DROP TABLE IF EXISTS `cms_theme_data`;
CREATE TABLE `cms_theme_data` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`theme` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`data` mediumtext COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cms_theme_data_theme_index` (`theme`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of cms_theme_data
-- ----------------------------
-- ----------------------------
-- Table structure for `cms_theme_logs`
-- ----------------------------
DROP TABLE IF EXISTS `cms_theme_logs`;
CREATE TABLE `cms_theme_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`theme` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`template` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`old_template` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci,
`old_content` longtext COLLATE utf8mb4_unicode_ci,
`user_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cms_theme_logs_type_index` (`type`),
KEY `cms_theme_logs_theme_index` (`theme`),
KEY `cms_theme_logs_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of cms_theme_logs
-- ----------------------------
-- ----------------------------
-- Table structure for `cms_theme_templates`
-- ----------------------------
DROP TABLE IF EXISTS `cms_theme_templates`;
CREATE TABLE `cms_theme_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`source` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`path` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`content` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`file_size` int(10) unsigned NOT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `cms_theme_templates_source_index` (`source`),
KEY `cms_theme_templates_path_index` (`path`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of cms_theme_templates
-- ----------------------------
-- ----------------------------
-- Table structure for `deferred_bindings`
-- ----------------------------
DROP TABLE IF EXISTS `deferred_bindings`;
CREATE TABLE `deferred_bindings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`master_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`master_field` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slave_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`slave_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`session_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_bind` tinyint(1) NOT NULL DEFAULT '1',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `deferred_bindings_master_type_index` (`master_type`),
KEY `deferred_bindings_master_field_index` (`master_field`),
KEY `deferred_bindings_slave_type_index` (`slave_type`),
KEY `deferred_bindings_slave_id_index` (`slave_id`),
KEY `deferred_bindings_session_key_index` (`session_key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of deferred_bindings
-- ----------------------------
-- ----------------------------
-- Table structure for `failed_jobs`
-- ----------------------------
DROP TABLE IF EXISTS `failed_jobs`;
CREATE TABLE `failed_jobs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci,
`failed_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of failed_jobs
-- ----------------------------
-- ----------------------------
-- Table structure for `jobs`
-- ----------------------------
DROP TABLE IF EXISTS `jobs`;
CREATE TABLE `jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`queue` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` text COLLATE utf8mb4_unicode_ci NOT NULL,
`attempts` tinyint(3) unsigned NOT NULL,
`reserved_at` int(10) unsigned DEFAULT NULL,
`available_at` int(10) unsigned NOT NULL,
`created_at` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `jobs_queue_reserved_at_index` (`queue`,`reserved_at`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of jobs
-- ----------------------------
-- ----------------------------
-- Table structure for `migrations`
-- ----------------------------
DROP TABLE IF EXISTS `migrations`;
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=41 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of migrations
-- ----------------------------
INSERT INTO migrations VALUES ('1', '2013_10_01_000001_Db_Deferred_Bindings', '1');
INSERT INTO migrations VALUES ('2', '2013_10_01_000002_Db_System_Files', '1');
INSERT INTO migrations VALUES ('3', '2013_10_01_000003_Db_System_Plugin_Versions', '1');
INSERT INTO migrations VALUES ('4', '2013_10_01_000004_Db_System_Plugin_History', '1');
INSERT INTO migrations VALUES ('5', '2013_10_01_000005_Db_System_Settings', '1');
INSERT INTO migrations VALUES ('6', '2013_10_01_000006_Db_System_Parameters', '1');
INSERT INTO migrations VALUES ('7', '2013_10_01_000007_Db_System_Add_Disabled_Flag', '1');
INSERT INTO migrations VALUES ('8', '2013_10_01_000008_Db_System_Mail_Templates', '1');
INSERT INTO migrations VALUES ('9', '2013_10_01_000009_Db_System_Mail_Layouts', '1');
INSERT INTO migrations VALUES ('10', '2014_10_01_000010_Db_Jobs', '1');
INSERT INTO migrations VALUES ('11', '2014_10_01_000011_Db_System_Event_Logs', '1');
INSERT INTO migrations VALUES ('12', '2014_10_01_000012_Db_System_Request_Logs', '1');
INSERT INTO migrations VALUES ('13', '2014_10_01_000013_Db_System_Sessions', '1');
INSERT INTO migrations VALUES ('14', '2015_10_01_000014_Db_System_Mail_Layout_Rename', '1');
INSERT INTO migrations VALUES ('15', '2015_10_01_000015_Db_System_Add_Frozen_Flag', '1');
INSERT INTO migrations VALUES ('16', '2015_10_01_000016_Db_Cache', '1');
INSERT INTO migrations VALUES ('17', '2015_10_01_000017_Db_System_Revisions', '1');
INSERT INTO migrations VALUES ('18', '2015_10_01_000018_Db_FailedJobs', '1');
INSERT INTO migrations VALUES ('19', '2016_10_01_000019_Db_System_Plugin_History_Detail_Text', '1');
INSERT INTO migrations VALUES ('20', '2016_10_01_000020_Db_System_Timestamp_Fix', '1');
INSERT INTO migrations VALUES ('21', '2017_08_04_121309_Db_Deferred_Bindings_Add_Index_Session', '1');
INSERT INTO migrations VALUES ('22', '2017_10_01_000021_Db_System_Sessions_Update', '1');
INSERT INTO migrations VALUES ('23', '2017_10_01_000022_Db_Jobs_FailedJobs_Update', '1');
INSERT INTO migrations VALUES ('24', '2017_10_01_000023_Db_System_Mail_Partials', '1');
INSERT INTO migrations VALUES ('25', '2017_10_23_000024_Db_System_Mail_Layouts_Add_Options_Field', '1');
INSERT INTO migrations VALUES ('26', '2013_10_01_000001_Db_Backend_Users', '2');
INSERT INTO migrations VALUES ('27', '2013_10_01_000002_Db_Backend_User_Groups', '2');
INSERT INTO migrations VALUES ('28', '2013_10_01_000003_Db_Backend_Users_Groups', '2');
INSERT INTO migrations VALUES ('29', '2013_10_01_000004_Db_Backend_User_Throttle', '2');
INSERT INTO migrations VALUES ('30', '2014_01_04_000005_Db_Backend_User_Preferences', '2');
INSERT INTO migrations VALUES ('31', '2014_10_01_000006_Db_Backend_Access_Log', '2');
INSERT INTO migrations VALUES ('32', '2014_10_01_000007_Db_Backend_Add_Description_Field', '2');
INSERT INTO migrations VALUES ('33', '2015_10_01_000008_Db_Backend_Add_Superuser_Flag', '2');
INSERT INTO migrations VALUES ('34', '2016_10_01_000009_Db_Backend_Timestamp_Fix', '2');
INSERT INTO migrations VALUES ('35', '2017_10_01_000010_Db_Backend_User_Roles', '2');
INSERT INTO migrations VALUES ('36', '2018_12_16_000011_Db_Backend_Add_Deleted_At', '2');
INSERT INTO migrations VALUES ('37', '2014_10_01_000001_Db_Cms_Theme_Data', '3');
INSERT INTO migrations VALUES ('38', '2016_10_01_000002_Db_Cms_Timestamp_Fix', '3');
INSERT INTO migrations VALUES ('39', '2017_10_01_000003_Db_Cms_Theme_Logs', '3');
INSERT INTO migrations VALUES ('40', '2018_11_01_000001_Db_Cms_Theme_Templates', '3');
-- ----------------------------
-- Table structure for `sessions`
-- ----------------------------
DROP TABLE IF EXISTS `sessions`;
CREATE TABLE `sessions` (
`id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` text COLLATE utf8mb4_unicode_ci,
`last_activity` int(11) DEFAULT 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,
UNIQUE KEY `sessions_id_unique` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of sessions
-- ----------------------------
-- ----------------------------
-- Table structure for `system_event_logs`
-- ----------------------------
DROP TABLE IF EXISTS `system_event_logs`;
CREATE TABLE `system_event_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`level` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`details` mediumtext COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `system_event_logs_level_index` (`level`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_event_logs
-- ----------------------------
-- ----------------------------
-- Table structure for `system_files`
-- ----------------------------
DROP TABLE IF EXISTS `system_files`;
CREATE TABLE `system_files` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`disk_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`file_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`file_size` int(11) NOT NULL,
`content_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`field` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment_id` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`attachment_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_public` tinyint(1) NOT NULL DEFAULT '1',
`sort_order` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `system_files_field_index` (`field`),
KEY `system_files_attachment_id_index` (`attachment_id`),
KEY `system_files_attachment_type_index` (`attachment_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_files
-- ----------------------------
-- ----------------------------
-- Table structure for `system_mail_layouts`
-- ----------------------------
DROP TABLE IF EXISTS `system_mail_layouts`;
CREATE TABLE `system_mail_layouts` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content_html` text COLLATE utf8mb4_unicode_ci,
`content_text` text COLLATE utf8mb4_unicode_ci,
`content_css` text COLLATE utf8mb4_unicode_ci,
`is_locked` tinyint(1) NOT NULL DEFAULT '0',
`options` 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;
-- ----------------------------
-- Records of system_mail_layouts
-- ----------------------------
INSERT INTO system_mail_layouts VALUES ('1', 'Default layout', 'default', '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n</head>\n<body>\n <style type=\"text/css\" media=\"screen\">\n {{ brandCss|raw }}\n {{ css|raw }}\n </style>\n\n <table class=\"wrapper layout-default\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\n <!-- Header -->\n {% partial \'header\' body %}\n {{ subject|raw }}\n {% endpartial %}\n\n <tr>\n <td align=\"center\">\n <table class=\"content\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <!-- Email Body -->\n <tr>\n <td class=\"body\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <table class=\"inner-body\" align=\"center\" width=\"570\" cellpadding=\"0\" cellspacing=\"0\">\n <!-- Body content -->\n <tr>\n <td class=\"content-cell\">\n {{ content|raw }}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n\n <!-- Footer -->\n {% partial \'footer\' body %}\n © {{ \"now\"|date(\"Y\") }} {{ appName }}. All rights reserved.\n {% endpartial %}\n\n </table>\n\n</body>\n</html>', '{{ content|raw }}', '@media only screen and (max-width: 600px) {\n .inner-body {\n width: 100% !important;\n }\n\n .footer {\n width: 100% !important;\n }\n}\n\n@media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n}', '1', null, '2019-09-16 14:07:25', '2019-09-16 14:07:25');
INSERT INTO system_mail_layouts VALUES ('2', 'System layout', 'system', '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n</head>\n<body>\n <style type=\"text/css\" media=\"screen\">\n {{ brandCss|raw }}\n {{ css|raw }}\n </style>\n\n <table class=\"wrapper layout-system\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <tr>\n <td align=\"center\">\n <table class=\"content\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <!-- Email Body -->\n <tr>\n <td class=\"body\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n <table class=\"inner-body\" align=\"center\" width=\"570\" cellpadding=\"0\" cellspacing=\"0\">\n <!-- Body content -->\n <tr>\n <td class=\"content-cell\">\n {{ content|raw }}\n\n <!-- Subcopy -->\n {% partial \'subcopy\' body %}\n **This is an automatic message. Please do not reply to it.**\n {% endpartial %}\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n\n</body>\n</html>', '{{ content|raw }}\n\n\n---\nThis is an automatic message. Please do not reply to it.', '@media only screen and (max-width: 600px) {\n .inner-body {\n width: 100% !important;\n }\n\n .footer {\n width: 100% !important;\n }\n}\n\n@media only screen and (max-width: 500px) {\n .button {\n width: 100% !important;\n }\n}', '1', null, '2019-09-16 14:07:25', '2019-09-16 14:07:25');
-- ----------------------------
-- Table structure for `system_mail_partials`
-- ----------------------------
DROP TABLE IF EXISTS `system_mail_partials`;
CREATE TABLE `system_mail_partials` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content_html` text COLLATE utf8mb4_unicode_ci,
`content_text` text COLLATE utf8mb4_unicode_ci,
`is_custom` tinyint(1) NOT NULL 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;
-- ----------------------------
-- Records of system_mail_partials
-- ----------------------------
-- ----------------------------
-- Table structure for `system_mail_templates`
-- ----------------------------
DROP TABLE IF EXISTS `system_mail_templates`;
CREATE TABLE `system_mail_templates` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`description` text COLLATE utf8mb4_unicode_ci,
`content_html` text COLLATE utf8mb4_unicode_ci,
`content_text` text COLLATE utf8mb4_unicode_ci,
`layout_id` int(11) DEFAULT NULL,
`is_custom` tinyint(1) NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `system_mail_templates_layout_id_index` (`layout_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_mail_templates
-- ----------------------------
-- ----------------------------
-- Table structure for `system_parameters`
-- ----------------------------
DROP TABLE IF EXISTS `system_parameters`;
CREATE TABLE `system_parameters` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`namespace` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`group` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`item` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL,
`value` text COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `item_index` (`namespace`,`group`,`item`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_parameters
-- ----------------------------
INSERT INTO system_parameters VALUES ('1', 'system', 'update', 'count', '0');
-- ----------------------------
-- Table structure for `system_plugin_history`
-- ----------------------------
DROP TABLE IF EXISTS `system_plugin_history`;
CREATE TABLE `system_plugin_history` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`version` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`detail` text COLLATE utf8mb4_unicode_ci,
`created_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `system_plugin_history_code_index` (`code`),
KEY `system_plugin_history_type_index` (`type`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_plugin_history
-- ----------------------------
INSERT INTO system_plugin_history VALUES ('1', 'October.Demo', 'comment', '1.0.1', 'First version of Demo', '2019-09-16 14:07:25');
-- ----------------------------
-- Table structure for `system_plugin_versions`
-- ----------------------------
DROP TABLE IF EXISTS `system_plugin_versions`;
CREATE TABLE `system_plugin_versions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`version` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`is_disabled` tinyint(1) NOT NULL DEFAULT '0',
`is_frozen` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `system_plugin_versions_code_index` (`code`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_plugin_versions
-- ----------------------------
INSERT INTO system_plugin_versions VALUES ('1', 'October.Demo', '1.0.1', '2019-09-16 14:07:25', '0', '0');
-- ----------------------------
-- Table structure for `system_request_logs`
-- ----------------------------
DROP TABLE IF EXISTS `system_request_logs`;
CREATE TABLE `system_request_logs` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`status_code` int(11) DEFAULT NULL,
`url` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`referer` text COLLATE utf8mb4_unicode_ci,
`count` int(11) NOT NULL 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;
-- ----------------------------
-- Records of system_request_logs
-- ----------------------------
-- ----------------------------
-- Table structure for `system_revisions`
-- ----------------------------
DROP TABLE IF EXISTS `system_revisions`;
CREATE TABLE `system_revisions` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) unsigned DEFAULT NULL,
`field` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`cast` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`old_value` text COLLATE utf8mb4_unicode_ci,
`new_value` text COLLATE utf8mb4_unicode_ci,
`revisionable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`revisionable_id` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `system_revisions_revisionable_id_revisionable_type_index` (`revisionable_id`,`revisionable_type`),
KEY `system_revisions_user_id_index` (`user_id`),
KEY `system_revisions_field_index` (`field`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_revisions
-- ----------------------------
-- ----------------------------
-- Table structure for `system_settings`
-- ----------------------------
DROP TABLE IF EXISTS `system_settings`;
CREATE TABLE `system_settings` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`item` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`value` mediumtext COLLATE utf8mb4_unicode_ci,
PRIMARY KEY (`id`),
KEY `system_settings_item_index` (`item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- ----------------------------
-- Records of system_settings
-- ----------------------------
|
DO $$
BEGIN
BEGIN
ALTER TABLE sys_user ADD COLUMN init_user_type character varying;
EXCEPTION
WHEN duplicate_column THEN RAISE NOTICE 'column init_user_type already exists in sys_user.';
END;
END;
$$ |
<reponame>CIAT-DAPA/PlantTreatyInterdependence
create table CROP_INSTITUTION_GENUS_MLS_metric1 as
(select c.crop, g.institution_country, MLS_Status, count(*) count
FROM GMERGE_uniques g
left join CIAT_crop_taxon c on (g.genus=c.taxon)
where c.rank="genus"
group by c.crop, g.institution_country, MLS_Status);
create table CROP_INSTITUTION_SPECIES_MLS_metric1 as
(select c.crop, g.institution_country, MLS_Status, count(*) count
FROM GMERGE_uniques g
left join CIAT_crop_taxon c on (g.species=c.taxon)
where c.rank="species"
group by c.crop, g.institution_country, MLS_Status);
|
<reponame>ram-sah/13.Node-Express-Handlebars
use burgers_db;
INSERT INTO burgers (burger_name) VALUES
("Veggie Burger"),
("Cheese Burger"),
("Mushroom Burger"),
("Ham Burger");
SELECT * FROM burgers; |
<reponame>alpineintel/tcrpartybot
ALTER TABLE votes ADD COLUMN reward_claimed_at TIMESTAMP WITHOUT TIME ZONE;
|
<gh_stars>10-100
CREATE TABLE IF NOT EXISTS state.eg_address
(
housenobldgapt character varying(32),
subdistrict character varying(100),
postoffice character varying(100),
landmark character varying(256),
country character varying(50),
userid bigint,
type character varying(50),
streetroadline character varying(256),
citytownvillage character varying(256),
arealocalitysector character varying(256),
district character varying(100),
state character varying(100),
pincode character varying(10),
id numeric NOT NULL,
version bigint DEFAULT 0,
CONSTRAINT eg_address_pkey PRIMARY KEY (id),
CONSTRAINT fk_user_eg_address FOREIGN KEY (userid)
REFERENCES state.eg_user (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
);
CREATE TABLE IF NOT EXISTS state.eg_correspondence_address
(
id numeric,
version numeric DEFAULT 0
);
CREATE TABLE IF NOT EXISTS state.eg_permanent_address
(
id numeric,
version numeric DEFAULT 0
);
CREATE SEQUENCE IF NOT EXISTS state.seq_eg_address
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1; |
<reponame>Shuttl-Tech/antlr_psql<filename>src/test/resources/sql/create_sequence/2436e7a1.sql
-- file:sequence.sql ln:31 expect:true
CREATE SEQUENCE sequence_test13 AS smallint MINVALUE -32768
|
-- file:opr_sanity.sql ln:938 expect:true
SELECT a.aggfnoid::oid, p.proname, pfn.oid, pfn.proname
FROM pg_aggregate AS a, pg_proc AS p, pg_proc AS pfn
WHERE a.aggfnoid = p.oid AND
a.aggmfinalfn = pfn.oid AND
(pfn.proretset OR
NOT binary_coercible(pfn.prorettype, p.prorettype) OR
NOT binary_coercible(a.aggmtranstype, pfn.proargtypes[0]) OR
CASE WHEN a.aggmfinalextra THEN pfn.pronargs != p.pronargs + 1
ELSE pfn.pronargs != a.aggnumdirectargs + 1 END
OR (pfn.pronargs > 1 AND
NOT binary_coercible(p.proargtypes[0], pfn.proargtypes[1]))
OR (pfn.pronargs > 2 AND
NOT binary_coercible(p.proargtypes[1], pfn.proargtypes[2]))
OR (pfn.pronargs > 3 AND
NOT binary_coercible(p.proargtypes[2], pfn.proargtypes[3]))
)
|
/* Available and installed extensions */
SELECT
*
FROM
pg_available_extensions
ORDER BY
name,
installed_version;
|
<filename>schemas/payroll/mssql/up-99-job-2020-02-02-00-00-00-daily-time-entry-except-customer-service.sql
use payroll
execute p_add_time_entry @employee_id=31, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=35, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=43, @entry_date='2020-02-02 00:00:00', @hours_worked=7
execute p_add_time_entry @employee_id=33, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=53, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=15, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=34, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=18, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=59, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=24, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=65, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=16, @entry_date='2020-02-02 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=20, @entry_date='2020-02-02 00:00:00', @hours_worked=6
execute p_add_time_entry @employee_id=22, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=19, @entry_date='2020-02-02 00:00:00', @hours_worked=4
execute p_add_time_entry @employee_id=11, @entry_date='2020-02-02 00:00:00', @hours_worked=5
execute p_add_time_entry @employee_id=28, @entry_date='2020-02-02 00:00:00', @hours_worked=6
|
<reponame>tongyurong/xmgc_tyr_knowledgemarket
CREATE DATABASE IF NOT EXISTS `market` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `market`;
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: 192.168.127.12 Database: market
-- ------------------------------------------------------
-- Server version 5.7.15
/*!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 `bossUser`
--
DROP TABLE IF EXISTS `bossUser`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `bossUser` (
`bossUserId` int(11) NOT NULL AUTO_INCREMENT,
`UserId` int(11) NOT NULL,
`IDnum` varchar(45) NOT NULL,
`contactnum` varchar(45) NOT NULL,
`gathernum` varchar(45) NOT NULL,
`inserttime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`bossUserId`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `bossUser`
--
LOCK TABLES `bossUser` WRITE;
/*!40000 ALTER TABLE `bossUser` DISABLE KEYS */;
INSERT INTO `bossUser` VALUES (10,36,'210681200001011234','18355667788','18355667788','2016-10-22 08:34:28'),(11,13,'522428199912121212','15203887878','15203887878','2016-10-26 01:30:38');
/*!40000 ALTER TABLE `bossUser` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2016-10-28 9:39:16
|
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 30, 2020 at 05:24 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `student_attendance`
--
-- --------------------------------------------------------
--
-- Table structure for table `attendance_records`
--
CREATE TABLE `attendance_records` (
`A_Records_id` int(11) NOT NULL,
`Date` date NOT NULL,
`s_Name` varchar(50) NOT NULL,
`STATUS` varchar(50) NOT NULL,
`Subject` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `holidays_events`
--
CREATE TABLE `holidays_events` (
`HolidaysE_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `others`
--
CREATE TABLE `others` (
`Id` int(25) NOT NULL,
`Year` varchar(25) NOT NULL,
`Course` varchar(25) NOT NULL,
`Section` varchar(50) NOT NULL,
`Subject` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `others`
--
INSERT INTO `others` (`Id`, `Year`, `Course`, `Section`, `Subject`) VALUES
(1, 'First-Year', 'BS-IT', '', 'Science, Technology And Society'),
(3, 'First-Year', 'BS-IT', '', 'Introduction to Human Computer Interaction'),
(7, 'First-Year', 'BS-IT', '', 'Computer Programming 2'),
(8, 'First-Year', 'BS-IT', '', 'Discrete Mathematics'),
(9, 'First-Year', 'BS-IT', '', 'Living In The IT Era'),
(10, 'First-Year', 'BS-IT', '', 'The Contemporary World'),
(11, 'First-Year', 'BS-IT', '', 'Arts Appreciation'),
(12, 'First-Year', 'BS-IT', '', 'P.E 2'),
(13, 'First-Year', 'BS-IT', '', 'Physics 2'),
(22, 'First-Year', 'BE-ED', '', 'Living in the IT Era'),
(23, 'First-Year', 'BE-ED', '', 'Assessment of Learning 1'),
(24, 'First-Year', 'BE-ED', '', 'Foundation of Special Inclusive Education'),
(25, 'First-Year', 'BE-ED', '', 'Science Technology and Society'),
(26, 'First-Year', 'BE-ED', '', 'Contemporary World'),
(27, 'First-Year', 'BE-ED', '', 'Ethics'),
(28, 'First-Year', 'BE-ED', '', 'Arts Appreciation'),
(31, 'Second-Year', 'BE-ED', '', 'Pagtuturo sa Filipino sa Elementarya (Panitikan ng Pilipinas)'),
(32, 'Second-Year', 'BE-ED', '', 'The Teacher and Community School Culture and Organizational Leadership'),
(33, 'Second-Year', 'BE-ED', '', 'Teaching Math in the Intermediate Grades'),
(35, 'Second-Year', 'BE-ED', '', 'P.E 4'),
(36, 'Second-Year', 'BE-ED', '', 'Filipino sa Ibat-ibang Disiplina');
-- --------------------------------------------------------
--
-- Table structure for table `students_information`
--
CREATE TABLE `students_information` (
`Id` int(11) NOT NULL,
`s_schoolid` varchar(25) NOT NULL,
`rfid_tag` int(10) NOT NULL,
`FirstName` varchar(25) NOT NULL,
`LastName` varchar(25) NOT NULL,
`Year` varchar(25) NOT NULL,
`Course` varchar(25) NOT NULL,
`Section` varchar(25) NOT NULL,
`Gender` varchar(25) NOT NULL,
`s_birthdate` date NOT NULL,
`ContactNo` varchar(25) NOT NULL,
`nParents` varchar(25) NOT NULL,
`pContact` varchar(25) NOT NULL,
`Image_Path` varchar(70) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `students_information`
--
INSERT INTO `students_information` (`Id`, `s_schoolid`, `rfid_tag`, `FirstName`, `LastName`, `Year`, `Course`, `Section`, `Gender`, `s_birthdate`, `ContactNo`, `nParents`, `pContact`, `Image_Path`) VALUES
(66, '5342229-1195', 0, 'Jerald', 'Jose', 'First-Year', 'BS-IT', '', 'Male', '2020-03-28', '(0910) 277-4270', '<NAME>', '(0910) 191-9317', '259851_2.jpg');
-- --------------------------------------------------------
--
-- Table structure for table `teacher_records`
--
CREATE TABLE `teacher_records` (
`Teacher_id` int(25) NOT NULL,
`Name` varchar(50) NOT NULL,
`Contact` varchar(25) NOT NULL,
`Year` varchar(25) NOT NULL,
`Course` varchar(25) NOT NULL,
`Section` varchar(25) NOT NULL,
`Subject` varchar(100) NOT NULL,
`Time` varchar(40) NOT NULL,
`Schedule` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `teacher_records`
--
INSERT INTO `teacher_records` (`Teacher_id`, `Name`, `Contact`, `Year`, `Course`, `Section`, `Subject`, `Time`, `Schedule`) VALUES
(41, '<NAME>', '', 'First-Year', 'BS-IT', '', 'Introduction to Human Computer Interaction', '01:30 PM - 02:30 PM', 'SAT'),
(44, '<NAME>', '', 'First-Year', 'BE-ED', '', 'Living in the IT Era', '02:01 PM - 02:01 PM', ''),
(45, '<NAME>', '', 'First-Year', 'BS-IT', '', 'Arts Appreciation', '02:01 PM - 02:01 PM', ''),
(46, '<NAME>', '', 'First-Year', 'BS-IT', '', 'P.E 2', '02:01 PM - 02:01 PM', '');
-- --------------------------------------------------------
--
-- Table structure for table `userlogin`
--
CREATE TABLE `userlogin` (
`user_id` int(11) NOT NULL,
`Name` varchar(25) NOT NULL,
`Username` varchar(25) NOT NULL,
`Password` varchar(25) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `userlogin`
--
INSERT INTO `userlogin` (`user_id`, `Name`, `Username`, `Password`) VALUES
(10, '<NAME>', '?', '?'),
(11, '<NAME>', '1', '1');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `attendance_records`
--
ALTER TABLE `attendance_records`
ADD PRIMARY KEY (`A_Records_id`),
ADD UNIQUE KEY `A_Records_id` (`A_Records_id`);
--
-- Indexes for table `holidays_events`
--
ALTER TABLE `holidays_events`
ADD PRIMARY KEY (`HolidaysE_id`);
--
-- Indexes for table `others`
--
ALTER TABLE `others`
ADD PRIMARY KEY (`Id`);
--
-- Indexes for table `students_information`
--
ALTER TABLE `students_information`
ADD PRIMARY KEY (`Id`),
ADD UNIQUE KEY `s_schoolid` (`s_schoolid`);
ALTER TABLE `students_information` ADD FULLTEXT KEY `Image_Path` (`Image_Path`);
--
-- Indexes for table `teacher_records`
--
ALTER TABLE `teacher_records`
ADD PRIMARY KEY (`Teacher_id`);
--
-- Indexes for table `userlogin`
--
ALTER TABLE `userlogin`
ADD PRIMARY KEY (`user_id`),
ADD UNIQUE KEY `user_id` (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `attendance_records`
--
ALTER TABLE `attendance_records`
MODIFY `A_Records_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=109;
--
-- AUTO_INCREMENT for table `holidays_events`
--
ALTER TABLE `holidays_events`
MODIFY `HolidaysE_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `others`
--
ALTER TABLE `others`
MODIFY `Id` int(25) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=40;
--
-- AUTO_INCREMENT for table `students_information`
--
ALTER TABLE `students_information`
MODIFY `Id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=67;
--
-- AUTO_INCREMENT for table `teacher_records`
--
ALTER TABLE `teacher_records`
MODIFY `Teacher_id` int(25) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- AUTO_INCREMENT for table `userlogin`
--
ALTER TABLE `userlogin`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 `movie` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`comeout` date DEFAULT NULL,
`cost` double DEFAULT NULL,
`description` varchar(255) DEFAULT NULL,
`duration` time DEFAULT NULL,
`rating` double DEFAULT NULL,
`rent` double DEFAULT NULL,
`subtitle` varchar(255) DEFAULT NULL,
`title` varchar(255) DEFAULT NULL,
`updated` datetime(6) DEFAULT NULL,
`language_fk` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKec85gtqm6ya7kbd5e16fxr5lp` (`language_fk`),
CONSTRAINT `FKec85gtqm6ya7kbd5e16fxr5lp` FOREIGN KEY (`language_fk`) REFERENCES `language` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
select 0 from dual;
-- INSERT INTO BUSINESS_DATA VALUES
-- (1, '246363310026354327162304233233075306113120346245'),
-- (2, '105007254212366256042171244256100215335173121327'),
-- (3, '003257120061175201242237003265036115143370126121'),
-- (4, '160030250027300117000306114271256362113275370314'),
-- (5, '206133237126335043051275100340060021015010370025'),
-- (6, '221370142341233356042305342177023165163005263361'),
-- (7, '372045005316142103326235144331014161375103334101'),
-- (8, '101224146125174131033275260334264046220302376354'),
-- (9, '134320042120336316232036040343122231103301065152'),
-- (10, '255140367140234110124124065324331126314042103330'),
-- (11, '037100133016266315016116323045012160233017247057'),
-- (12, '103116165137036226077213371365366230315350204000'),
-- (13, '044335206321043316135203227220056375317135213370'),
-- (14, '233211341341154254366371001112232055067213175106'),
-- (15, '004046272060176153212160344054116075310253252110'),
-- (16, '035140226013326246071156263334175301064357306050'),
-- (17, '111122341254025120053036023367256220321223235160'),
-- (18, '347075202065156304036214001236157206051046077332'); |
SELECT tab7.v1 AS v1 , tab0.v0 AS v0 , tab8.v7 AS v7 , tab5.v5 AS v5 , tab6.v6 AS v6 , tab3.v4 AS v4 , tab1.v2 AS v2 , tab4.v8 AS v8
FROM (SELECT sub AS v1
FROM sorg__language$$8$$
WHERE obj = 'wsdbm:Language0'
) tab7
JOIN (SELECT obj AS v1 , sub AS v0
FROM foaf__homepage$$1$$
) tab0
ON(tab7.v1=tab0.v1)
JOIN (SELECT sub AS v0
FROM og__tag$$3$$
WHERE obj = 'wsdbm:Topic153'
) tab2
ON(tab0.v0=tab2.v0)
JOIN (SELECT sub AS v0 , obj AS v8
FROM sorg__contentSize$$5$$
) tab4
ON(tab2.v0=tab4.v0)
JOIN (SELECT sub AS v0 , obj AS v4
FROM sorg__description$$4$$
) tab3
ON(tab4.v0=tab3.v0)
JOIN (SELECT sub AS v1 , obj AS v5
FROM sorg__url$$6$$
) tab5
ON(tab0.v1=tab5.v1)
JOIN (SELECT sub AS v1 , obj AS v6
FROM wsdbm__hits$$7$$
) tab6
ON(tab5.v1=tab6.v1)
JOIN (SELECT obj AS v0 , sub AS v2
FROM gr__includes$$2$$
) tab1
ON(tab3.v0=tab1.v0)
JOIN (SELECT obj AS v0 , sub AS v7
FROM wsdbm__likes$$9$$
) tab8
ON(tab1.v0=tab8.v0)
++++++Tables Statistic
sorg__url$$6$$ 1 SO sorg__url/foaf__homepage
VP <sorg__url> 500
SO <sorg__url><foaf__homepage> 493 0.99
SS <sorg__url><wsdbm__hits> 500 1.0
SS <sorg__url><sorg__language> 500 1.0
------
sorg__contentSize$$5$$ 1 SS sorg__contentSize/foaf__homepage
VP <sorg__contentSize> 245
SS <sorg__contentSize><foaf__homepage> 43 0.18
SO <sorg__contentSize><gr__includes> 239 0.98
SS <sorg__contentSize><og__tag> 147 0.6
SS <sorg__contentSize><sorg__description> 164 0.67
SO <sorg__contentSize><wsdbm__likes> 231 0.94
------
wsdbm__likes$$9$$ 4 OS wsdbm__likes/sorg__contentSize
VP <wsdbm__likes> 11256
OS <wsdbm__likes><foaf__homepage> 2677 0.24
OS <wsdbm__likes><og__tag> 7270 0.65
OS <wsdbm__likes><sorg__description> 7592 0.67
OS <wsdbm__likes><sorg__contentSize> 996 0.09
------
og__tag$$3$$ 4 SS og__tag/sorg__contentSize
VP <og__tag> 15121
SS <og__tag><foaf__homepage> 3490 0.23
SO <og__tag><gr__includes> 14341 0.95
SS <og__tag><sorg__description> 9096 0.6
SS <og__tag><sorg__contentSize> 1421 0.09
SO <og__tag><wsdbm__likes> 14022 0.93
------
sorg__language$$8$$ 1 SO sorg__language/foaf__homepage
VP <sorg__language> 655
SO <sorg__language><foaf__homepage> 493 0.75
SS <sorg__language><sorg__url> 500 0.76
SS <sorg__language><wsdbm__hits> 500 0.76
------
gr__includes$$2$$ 4 OS gr__includes/sorg__contentSize
VP <gr__includes> 9000
OS <gr__includes><foaf__homepage> 2137 0.24
OS <gr__includes><og__tag> 5408 0.6
OS <gr__includes><sorg__description> 5540 0.62
OS <gr__includes><sorg__contentSize> 863 0.1
------
wsdbm__hits$$7$$ 1 SO wsdbm__hits/foaf__homepage
VP <wsdbm__hits> 500
SO <wsdbm__hits><foaf__homepage> 493 0.99
SS <wsdbm__hits><sorg__url> 500 1.0
SS <wsdbm__hits><sorg__language> 500 1.0
------
sorg__description$$4$$ 4 SS sorg__description/sorg__contentSize
VP <sorg__description> 1534
SS <sorg__description><foaf__homepage> 362 0.24
SO <sorg__description><gr__includes> 1496 0.98
SS <sorg__description><og__tag> 936 0.61
SS <sorg__description><sorg__contentSize> 164 0.11
SO <sorg__description><wsdbm__likes> 1463 0.95
------
foaf__homepage$$1$$ 4 SS foaf__homepage/sorg__contentSize
VP <foaf__homepage> 1068
SO <foaf__homepage><gr__includes> 575 0.54
SS <foaf__homepage><og__tag> 347 0.32
SS <foaf__homepage><sorg__description> 362 0.34
SS <foaf__homepage><sorg__contentSize> 43 0.04
OS <foaf__homepage><sorg__url> 1068 1.0
OS <foaf__homepage><wsdbm__hits> 1068 1.0
OS <foaf__homepage><sorg__language> 1068 1.0
SO <foaf__homepage><wsdbm__likes> 553 0.52
------
|
<#--
-- Copyright 2018 <NAME>
--
-- 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.
-->
\qecho Execute ${script.type} scripts with ${script.condition} condition.
<#list files as file, checksum>
<#if script.type = "REUSABLE">
\qecho Execute ${script.executeDirectory}${file}
\include .${script.executeDirectory}${file}
<#else>
\qecho Execute ${script.executeDirectory}${file}
\set script_directory '${script.executeDirectory}'
\set script_name '${file}'
\set script_name_full '.${script.executeDirectory}${file}'
\set script_checksum '${checksum}'
\include ./${serviceDirectory}/one_time_control.sql
</#if>
</#list>
|
<reponame>evityuk/frame
create table contact_types
(
id varchar(50) not null
constraint contact_types_pkey
primary key,
created_at timestamp with time zone,
modified_at timestamp with time zone,
version bigint,
tenant_id varchar(50),
partition_id varchar(50),
deleted_at timestamp with time zone,
uid bigint,
name text,
description text
);
SELECT 1; |
--# Copyright IBM Corp. All Rights Reserved.
--# SPDX-License-Identifier: Apache-2.0
/*
* Add a DEFAULT clause to every column in the tables selected
*/
BEGIN
FOR C AS cur CURSOR WITH HOLD FOR
SELECT 'ALTER TABLE "' || RTRIM(TABSCHEMA) || '"."' || TABNAME || '"'
|| ' ALTER COLUMN "' || COLNAME || '"'
|| ' SET DEFAULT'
AS S1
FROM SYSCAT.TABLES T JOIN SYSCAT.COLUMNS C USING (TABSCHEMA, TABNAME)
WHERE T.TYPE = 'T'
AND T.TEMPORALTYPE = 'N' -- exclude temportal tables
AND C.DEFAULT IS NULL
AND C.KEYSEQ IS NULL -- exclude PK columns
AND C.IDENTITY = 'N' -- exclude identity columns
AND C.GENERATED = '' -- exclude generated columns
AND T.TABSCHEMA = 'your schema'
ORDER BY
TABSCHEMA
, TABNAME
WITH UR
DO
EXECUTE IMMEDIATE C.S1;
-- COMMIT; -- skip the commit to make it run faster ?
END FOR;
END
|
CREATE PROCEDURE [bll].[Documents_Validate__Delete]
@DefinitionId INT,
@Ids [dbo].[IndexedIdList] READONLY,
@Top INT = 200,
@UserId INT,
@IsError BIT OUTPUT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @ValidationErrors [dbo].[ValidationErrorList];
-- Document Date not before last archive date (C#)
-- Posting date must not be within Archived period (C#)
-- Cannot delete unless in Draft state or negative states
INSERT INTO @ValidationErrors([Key], [ErrorName])
SELECT DISTINCT TOP (@Top)
'[' + CAST(FE.[Index] AS NVARCHAR (255)) + ']',
N'Error_TheDocumentIsClosed'
FROM @Ids FE
JOIN [dbo].[Documents] D ON FE.[Id] = D.[Id]
WHERE D.[State] = +1
IF EXISTS(SELECT * FROM @ValidationErrors) GOTO DONE
-- Cannot delete if it will cause a gap in the sequence of serial numbers
IF (SELECT [IsOriginalDocument] FROM [dbo].[DocumentDefinitions] WHERE [Id] = @DefinitionId) = 1
INSERT INTO @ValidationErrors([Key], [ErrorName])
SELECT DISTINCT TOP (@Top)
'[' + CAST(FE.[Index] AS NVARCHAR (255)) + ']',
N'Error_ThereAreSubsequentDocuments'
FROM @Ids FE
JOIN [dbo].[Documents] D ON FE.[Id] = D.[Id]
JOIN [dbo].[Documents] DO ON D.[DefinitionId] = DO.[DefinitionId]
JOIN [dbo].[DocumentDefinitions] DD ON D.[DefinitionId] = DD.[Id]
WHERE DD.[IsOriginalDocument] = 1
AND D.[SerialNumber] < DO.[SerialNumber]
AND DO.[Id] NOT IN (SELECT [Id] FROM @Ids)
-- Cannot delete If there are completed lines
INSERT INTO @ValidationErrors([Key], [ErrorName], [Argument0])
SELECT DISTINCT TOP (@Top)
'[' + CAST(FE.[Index] AS NVARCHAR (255)) + ']',
N'Error_TheDocumentHasCompletedLines',
CAST(L.[State] AS NVARCHAR(50))
FROM @Ids FE
JOIN [dbo].[Lines] L ON FE.[Id] = L.[DocumentId]
WHERE L.[State] >= 3
DONE:
-- Set @IsError
SET @IsError = CASE WHEN EXISTS(SELECT 1 FROM @ValidationErrors) THEN 1 ELSE 0 END;
SELECT TOP(@Top) * FROM @ValidationErrors;
END; |
CREATE TABLE IF NOT EXISTS `cmf_users_charge` (
`id` int(11) unsigned NOT NULL,
`uid` int(11) DEFAULT NULL,
`touid` int(11) DEFAULT NULL,
`money` decimal(11,2) DEFAULT '0.00',
`coin` int(11) DEFAULT '0',
`coin_give` int(11) DEFAULT '0',
`orderno` varchar(50) DEFAULT '',
`trade_no` varchar(100) DEFAULT '',
`status` tinyint(1) DEFAULT '0',
`addtime` int(11) DEFAULT '0',
`type` tinyint(1) DEFAULT '1' COMMENT '支付类型 1支付宝 2微信 3微信公众号',
`pay_id` int(11) NOT NULL COMMENT '支付渠道ID'
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
--
-- 转存表中的数据 `cmf_users_charge`
--
INSERT INTO `cmf_users_charge` (`id`, `uid`, `touid`, `money`, `coin`, `coin_give`, `orderno`, `trade_no`, `status`, `addtime`, `type`, `pay_id`) VALUES
(1, 1005305, 1005305, '1.00', 10, 0, '20190104213213790', '', 0, 1546608733, 1, 1),
(2, 1005474, 1005474, '1.00', 10, 0, '20190105184518710', '', 0, 1546685118, 1, 1),
(3, 1005474, 1005474, '1.00', 10, 0, '20190105184544417', '', 0, 1546685144, 1, 1),
(4, 1005474, 1005474, '1.00', 10, 0, '20190105184606580', '', 0, 1546685166, 1, 1),
(5, 1005474, 1005474, '1.00', 10, 0, '20190105184631865', '', 0, 1546685191, 1, 1),
(6, 1005474, 1005474, '1.00', 10, 0, '20190105184640421', '', 0, 1546685200, 2, 2),
(7, 1005474, 1005474, '1.00', 10, 0, '20190105184659890', '', 0, 1546685219, 1, 1),
(8, 1005474, 1005474, '1.00', 10, 0, '20190105184916509', '', 0, 1546685356, 1, 1),
(9, 1005474, 1005474, '1.00', 10, 0, '20190105185005305', '', 0, 1546685405, 1, 1),
(10, 1005273, 1005273, '1.00', 7, 0, '20190105193829304', '', 1, 1546688309, 2, 2),
(11, 1005528, 1005528, '6.00', 42, 0, '20190106085529692', '', 1, 1546736129, 2, 2),
(12, 1005474, 1005474, '1.00', 7, 0, '20190106203850206', '', 0, 1546778330, 1, 1),
(13, 1002178, 1002178, '1.00', 7, 0, '1002178_20190107052519342', '', 0, 1546809919, 3, 0),
(14, 1002874, 1002874, '1.00', 7, 0, '1002874_20190107110146637', NULL, 1, 1546830106, 3, 0),
(15, 1002874, 1002874, '6.00', 42, 0, '1002874_20190107110415451', NULL, 1, 1546830255, 3, 0); |
-- @testpoint:opengauss关键字resize(非保留),作为函数名
--关键字不带引号-成功
drop function if exists resize;
create function resize(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
drop function resize;
--关键字带双引号-成功
drop function if exists "resize";
create function "resize"(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
drop function "resize";
--关键字带单引号-合理报错
drop function if exists 'resize';
create function 'resize'(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/
--关键字带反引号-合理报错
drop function if exists `resize`;
create function `resize`(i integer)
returns integer
as $$
begin
return i+1;
end;
$$ language plpgsql;
/ |
<filename>db/seeds/05_messages.sql
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 4, 6, 'id sapien in sapien iaculis congue vivamus metus arcu adipiscing molestie hendrerit at vulputate vitae nisl aenean lectus pellentesque eget nunc donec quis', 3, '2020-02-29 03:24:16');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 4, 'dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo nec condimentum neque sapien placerat', 5, '2020-09-27 11:42:30');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 1, 2, 'lacus morbi sem mauris laoreet ut rhoncus aliquet pulvinar sed nisl nunc rhoncus dui vel sem sed sagittis nam congue risus', 2, '2019-12-19 01:21:37');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 1, 5, 'placerat praesent blandit nam nulla integer pede justo lacinia eget tincidunt', 4, '2019-10-29 21:01:40');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'vitae consectetuer eget rutrum at lorem integer tincidunt ante vel ipsum praesent blandit lacinia erat vestibulum sed', 5, '2020-07-21 08:14:08');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'vitae quam suspendisse potenti nullam porttitor lacus at turpis donec posuere', 3, '2020-09-12 03:47:50');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 1, 'dui vel sem sed sagittis nam congue risus semper porta', 4, '2020-03-23 22:44:01');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 2, 3, 'nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat volutpat in congue', 1, '2019-11-01 09:36:26');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 5, 3, 'vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae mauris viverra', 5, '2020-05-28 04:45:50');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'ut nunc vestibulum ante ipsum primis in faucibus orci luctus', 2, '2019-12-28 16:15:15');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 3, 2, 'est congue elementum in hac habitasse platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo nec condimentum neque', 3, '2020-09-16 23:08:53');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 6, 'dis parturient montes nascetur ridiculus mus vivamus vestibulum sagittis sapien cum sociis natoque penatibus et magnis dis', 6, '2019-10-27 16:08:28');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 5, 3, 'mollis molestie lorem quisque ut erat curabitur gravida nisi at nibh in hac habitasse platea dictumst aliquam augue quam sollicitudin vitae consectetuer', 1, '2020-04-04 16:24:30');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'pellentesque quisque porta volutpat erat quisque erat eros viverra eget congue eget', 3, '2020-03-04 20:33:09');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 4, 4, 'amet nunc viverra dapibus nulla suscipit ligula in lacus curabitur at', 4, '2020-04-18 08:53:44');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 2, 5, 'nec dui luctus rutrum nulla tellus in sagittis dui vel nisl duis ac nibh fusce lacus purus', 4, '2020-05-22 22:31:02');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 4, 'cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum', 3, '2019-12-10 12:01:57');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 5, 5, 'neque libero convallis eget eleifend luctus ultricies eu nibh quisque id', 5, '2020-02-11 22:57:36');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 2, 5, 'condimentum neque sapien placerat ante nulla justo aliquam quis turpis eget elit', 2, '2020-09-12 03:58:34');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 3, 1, 'leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus', 1, '2020-01-27 08:58:09');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 1, 4, 'sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam nec dui luctus rutrum nulla tellus in sagittis', 3, '2019-11-07 18:08:30');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'in porttitor pede justo eu massa donec dapibus duis at velit eu est congue elementum', 5, '2019-12-01 07:18:07');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'quis orci eget orci vehicula condimentum curabitur in libero ut', 1, '2020-07-19 03:55:12');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 4, 2, 'tortor duis mattis egestas metus aenean fermentum donec ut mauris eget massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu', 1, '2020-08-10 01:55:49');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 3, 'mi pede malesuada in imperdiet et commodo vulputate justo in blandit ultrices enim lorem', 1, '2020-08-23 00:40:09');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'mattis pulvinar nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed', 3, '2020-07-02 22:35:04');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 3, 'nisi nam ultrices libero non mattis pulvinar nulla pede ullamcorper augue', 4, '2019-10-18 03:16:29');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'convallis duis consequat dui nec nisi volutpat eleifend donec ut dolor morbi', 3, '2020-05-25 02:13:03');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 2, 1, 'eget orci vehicula condimentum curabitur in libero ut massa volutpat', 1, '2019-12-10 18:58:32');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'fermentum donec ut mauris eget massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit', 3, '2020-04-07 00:28:13');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 5, 5, 'in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus accumsan odio curabitur convallis duis consequat dui nec nisi volutpat', 5, '2019-10-25 11:29:15');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum sociis natoque penatibus et magnis', 6, '2020-05-24 05:49:21');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 1, 5, 'eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in felis eu sapien cursus vestibulum proin eu', 4, '2020-05-11 00:15:15');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 2, 6, 'sed tristique in tempus sit amet sem fusce consequat nulla nisl nunc', 2, '2019-10-24 05:56:32');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 6, 5, 'condimentum curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus', 6, '2019-11-20 17:29:12');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 5, 3, 'ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor vel', 5, '2020-04-18 02:23:54');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'erat fermentum justo nec condimentum neque sapien placerat ante nulla justo aliquam quis turpis eget elit sodales scelerisque mauris sit', 2, '2020-04-08 15:41:08');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 2, 4, 'velit vivamus vel nulla eget eros elementum pellentesque quisque porta volutpat erat quisque erat eros viverra eget congue eget semper rutrum', 3, '2020-07-30 15:47:14');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 6, 'eleifend pede libero quis orci nullam molestie nibh in lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum', 3, '2020-06-25 00:57:17');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'ut odio cras mi pede malesuada in imperdiet et commodo vulputate justo in blandit ultrices enim', 1, '2020-07-14 22:36:34');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 1, 5, 'in felis eu sapien cursus vestibulum proin eu mi nulla ac enim in tempor turpis nec', 4, '2020-08-22 08:49:24');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 3, 1, 'feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien', 3, '2020-01-08 03:07:16');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'mauris lacinia sapien quis libero nullam sit amet turpis elementum ligula', 5, '2020-09-12 10:51:44');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 1, 5, 'vulputate luctus cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus', 4, '2020-06-23 08:03:45');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 5, 5, 'vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor', 5, '2020-02-28 20:55:04');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'posuere cubilia curae duis faucibus accumsan odio curabitur convallis duis consequat dui nec nisi volutpat eleifend donec ut dolor morbi vel lectus in', 3, '2020-01-09 01:53:13');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 5, 5, 'at velit vivamus vel nulla eget eros elementum pellentesque quisque porta', 5, '2019-11-26 02:19:09');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 1, 4, 'cum sociis natoque penatibus et magnis dis parturient montes nascetur', 1, '2020-04-27 22:39:48');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'urna ut tellus nulla ut erat id mauris vulputate elementum nullam varius nulla facilisi cras non velit nec nisi vulputate nonummy maecenas tincidunt', 4, '2020-06-21 16:18:08');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 4, 'nulla ut erat id mauris vulputate elementum nullam varius nulla facilisi cras non velit nec nisi vulputate nonummy maecenas tincidunt lacus at', 5, '2020-05-26 23:04:50');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 5, 5, 'orci luctus et ultrices posuere cubilia curae mauris viverra diam vitae quam suspendisse potenti nullam porttitor', 4, '2019-12-29 13:05:34');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 1, 4, 'vivamus vestibulum sagittis sapien cum sociis natoque penatibus et magnis dis parturient montes', 3, '2020-01-31 17:18:36');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 2, 5, 'nec euismod scelerisque quam turpis adipiscing lorem vitae mattis nibh ligula nec sem duis aliquam convallis nunc proin at turpis a pede posuere nonummy integer', 4, '2020-01-27 12:29:17');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 6, 'vestibulum sagittis sapien cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel augue', 6, '2020-06-13 15:03:23');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'nulla ut erat id mauris vulputate elementum nullam varius nulla facilisi cras non velit', 1, '2020-02-03 06:54:37');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 3, 'at feugiat non pretium quis lectus suspendisse potenti in eleifend quam a', 6, '2020-03-24 17:32:33');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 1, 2, 'magnis dis parturient montes nascetur ridiculus mus etiam vel augue', 2, '2019-11-03 19:52:04');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 1, 'tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat', 1, '2020-03-02 07:56:29');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 4, 'sodales sed tincidunt eu felis fusce posuere felis sed lacus morbi sem mauris laoreet', 6, '2019-10-21 09:14:25');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 2, 3, 'quam pede lobortis ligula sit amet eleifend pede libero quis orci nullam molestie nibh in lectus pellentesque at nulla suspendisse', 2, '2020-08-20 18:57:41');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 1, 2, 'mi integer ac neque duis bibendum morbi non quam nec dui luctus rutrum nulla tellus in sagittis dui vel nisl duis', 1, '2020-04-18 23:10:52');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 3, 2, 'praesent id massa id nisl venenatis lacinia aenean sit amet justo morbi ut odio cras', 3, '2020-08-06 19:58:50');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 1, 'ac tellus semper interdum mauris ullamcorper purus sit amet nulla quisque arcu libero rutrum ac lobortis vel dapibus at diam nam tristique tortor eu', 4, '2019-10-27 01:16:04');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 2, 4, 'sed lacus morbi sem mauris laoreet ut rhoncus aliquet pulvinar sed nisl nunc rhoncus dui vel sem sed sagittis nam congue risus semper', 3, '2020-04-30 00:52:06');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 1, 5, 'nascetur ridiculus mus vivamus vestibulum sagittis sapien cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum', 1, '2020-01-22 08:53:40');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 6, 6, 'nec molestie sed justo pellentesque viverra pede ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est quam', 6, '2020-06-16 06:20:48');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 1, 6, 'in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas', 1, '2019-11-19 03:49:32');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 3, 3, 'natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel', 3, '2020-08-28 07:01:25');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 2, 1, 'montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent id massa id nisl venenatis lacinia aenean sit amet', 2, '2020-01-12 15:14:05');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'tortor duis mattis egestas metus aenean fermentum donec ut mauris eget massa tempor convallis nulla neque libero convallis', 5, '2019-12-25 22:47:23');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'luctus et ultrices posuere cubilia curae duis faucibus accumsan odio curabitur convallis duis consequat dui nec nisi volutpat eleifend', 6, '2020-02-15 12:48:52');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 3, 'in hac habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat', 4, '2020-08-03 17:10:53');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 3, 2, 'justo lacinia eget tincidunt eget tempus vel pede morbi porttitor lorem id ligula suspendisse', 2, '2020-07-18 17:11:07');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 6, 'luctus ultricies eu nibh quisque id justo sit amet sapien dignissim vestibulum vestibulum ante ipsum primis in faucibus orci luctus et ultrices', 5, '2019-11-04 07:27:33');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 3, 'maecenas leo odio condimentum id luctus nec molestie sed justo pellentesque viverra pede ac diam cras pellentesque volutpat dui maecenas tristique', 4, '2020-09-24 08:55:53');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 5, 1, 'nisi at nibh in hac habitasse platea dictumst aliquam augue quam sollicitudin vitae consectetuer', 1, '2020-08-13 19:48:08');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 1, 'convallis eget eleifend luctus ultricies eu nibh quisque id justo sit', 4, '2020-05-19 04:37:43');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 3, 2, 'elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis', 3, '2020-04-27 15:50:26');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'quam suspendisse potenti nullam porttitor lacus at turpis donec posuere metus vitae ipsum aliquam non mauris', 4, '2020-05-18 17:54:15');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 4, 'ante nulla justo aliquam quis turpis eget elit sodales scelerisque mauris sit amet eros suspendisse accumsan', 5, '2020-01-22 05:46:43');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 3, 'amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus nisi eu orci mauris lacinia sapien quis libero', 1, '2019-12-07 22:23:05');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 6, 5, 'in magna bibendum imperdiet nullam orci pede venenatis non sodales sed tincidunt eu felis fusce posuere felis sed lacus', 4, '2020-04-16 00:45:12');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'dapibus duis at velit eu est congue elementum in hac habitasse platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum', 5, '2019-12-10 18:15:23');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 3, 'odio in hac habitasse platea dictumst maecenas ut massa quis augue luctus tincidunt nulla mollis molestie lorem quisque ut erat curabitur', 1, '2020-09-20 02:57:36');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 5, 3, 'eros viverra eget congue eget semper rutrum nulla nunc purus phasellus in felis donec semper sapien a libero', 5, '2019-11-02 02:38:33');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 6, 1, 'nunc proin at turpis a pede posuere nonummy integer non velit donec', 6, '2020-09-28 11:09:35');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 4, 1, 'nibh in lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate', 1, '2020-03-21 19:38:56');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'at turpis donec posuere metus vitae ipsum aliquam non mauris morbi non lectus aliquam sit amet diam in magna bibendum imperdiet', 2, '2020-05-21 19:16:12');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 5, 4, 'luctus et ultrices posuere cubilia curae nulla dapibus dolor vel est donec odio justo sollicitudin ut suscipit a feugiat et eros vestibulum ac est', 5, '2020-03-19 23:06:37');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'cubilia curae mauris viverra diam vitae quam suspendisse potenti nullam porttitor lacus at turpis donec posuere metus vitae ipsum aliquam non mauris morbi non', 4, '2020-03-24 16:12:47');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 6, 2, 'vestibulum sed magna at nunc commodo placerat praesent blandit nam', 6, '2020-07-02 18:05:25');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (1, 3, 3, 'nam dui proin leo odio porttitor id consequat in consequat ut nulla sed', 3, '2020-05-22 13:46:36');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 1, 2, 'placerat praesent blandit nam nulla integer pede justo lacinia eget tincidunt eget tempus', 2, '2019-10-31 22:17:26');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (3, 2, 4, 'nec nisi volutpat eleifend donec ut dolor morbi vel lectus in', 2, '2020-05-17 01:18:26');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 2, 5, 'quam a odio in hac habitasse platea dictumst maecenas ut massa quis augue luctus tincidunt nulla', 4, '2020-03-24 20:15:50');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 1, 2, 'ultrices aliquet maecenas leo odio condimentum id luctus nec molestie sed justo pellentesque viverra pede ac diam cras pellentesque volutpat dui maecenas tristique est', 1, '2020-01-23 00:33:08');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 5, 2, 'in est risus auctor sed tristique in tempus sit amet sem fusce', 2, '2020-01-18 09:27:33');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 3, 5, 'morbi quis tortor id nulla ultrices aliquet maecenas leo odio condimentum id luctus nec', 4, '2020-07-22 14:38:28');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (2, 3, 2, 'enim blandit mi in porttitor pede justo eu massa donec dapibus duis', 2, '2020-01-14 18:28:14');
insert into messages (owner_id, renter_id, lot_id, text_body, written_by, created_at) values (4, 2, 5, 'vivamus vel nulla eget eros elementum pellentesque quisque porta volutpat erat quisque erat eros', 2, '2019-10-31 12:54:18');
|
<reponame>Azrielbs04/UKOM<filename>sql/ukom.sql
-- phpMyAdmin SQL Dump
-- version 5.0.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 28, 2021 at 12:18 PM
-- Server version: 10.4.17-MariaDB
-- PHP Version: 7.3.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `ukom`
--
-- --------------------------------------------------------
--
-- Table structure for table `siswa`
--
CREATE TABLE `siswa` (
`id` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`nisn` int(20) NOT NULL,
`alamat` varchar(255) NOT NULL,
`tgl` date NOT NULL,
`jeniskelamin` varchar(128) NOT NULL,
`agama` varchar(128) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL,
`status_pendaftaran` varchar(255) NOT NULL,
`mtk` int(3) NOT NULL,
`bing` int(3) NOT NULL,
`photo` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `siswa`
--
INSERT INTO `siswa` (`id`, `nama`, `nisn`, `alamat`, `tgl`, `jeniskelamin`, `agama`, `created_at`, `updated_at`, `status_pendaftaran`, `mtk`, `bing`, `photo`) VALUES
(1, 'Azriel', 11223344, 'KP.Srengseng Jaya RT.001, RW.001,Desa Sukadarma,Kecamatan Sukatani,Kabupaten Bekasi', '2021-06-16', 'Laki', 'Islam', '2021-06-27 03:43:37', '2021-06-27 08:08:08', 'Ditolak', 100, 100, ''),
(15, 'saputra', 1234536789, 'KP.Srengseng Jaya RT.001, RW.001,Desa Sukadarma,Kecamatan Sukatani,Kabupaten Bekasi', '2021-06-20', 'Laki', 'Islam', '2021-06-27 10:52:37', '2021-06-27 10:52:37', '', 32, 96, ''),
(16, 'Ridho', 1234536789, 'KP.Srengseng Jaya RT.001, RW.001,Desa Sukadarma,Kecamatan Sukatani,Kabupaten Bekasi', '2021-06-01', 'Laki', 'Islam', '2021-06-27 11:04:01', '2021-06-27 11:04:01', '', 62, 56, 'line_228651416843137.jpg'),
(18, '<NAME>', 1234536789, 'KP.Srengseng Jaya RT.001, RW.001,Desa Sukadarma,Kecamatan Sukatani,Kabupaten Bekasi', '2021-06-11', 'Laki', 'Islam', '2021-06-27 11:07:44', '2021-06-27 11:07:44', '', 45, 56, '21 April_1.png');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`email` varchar(128) NOT NULL,
`password` varchar(256) NOT NULL,
`role` varchar(128) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `role`, `created_at`, `updated_at`) VALUES
(1, 'Admin', '<EMAIL>', 'admin', 'admin', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(9, 'Azriel', '<EMAIL>', '123', 'pendaftar', '2021-06-27 00:43:46', '2021-06-27 00:43:46'),
(12, 'Ridho', '<EMAIL>', '123', 'pendaftar', '2021-06-27 03:47:40', '2021-06-27 03:47:40'),
(18, '<NAME>', '<EMAIL>', '<PASSWORD>', 'pendaftar', '2021-06-27 10:13:21', '2021-06-27 10:13:21'),
(20, '<NAME>', '<EMAIL>', '1234', 'pendaftar', '2021-06-27 10:36:32', '2021-06-27 10:36:32'),
(21, 'saputra', '<EMAIL>', '1234', 'pendaftar', '2021-06-27 10:43:59', '2021-06-27 10:43:59');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `siswa`
--
ALTER TABLE `siswa`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `siswa`
--
ALTER TABLE `siswa`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=22;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<filename>SOFTTEK/softtek.scms.net/SOFTTEK.SCMS.DB/Tables/TBL_FAM_AVAILABILITY_FORECAST_ITEM.sql
CREATE TABLE [dbo].[TBL_FAM_AVAILABILITY_FORECAST_ITEM]
(
avlfrcitm_id_Pk BIGINT PRIMARY KEY NOT NULL,
avlfrcitm_fixed_asset_Fk BIGINT NOT NULL,
avlfrcitm_stock INT NOT NULL,
avlfrcitm_status NVARCHAR(100) NOT NULL,
avlfrcitm_from DATETIME NOT NULL,
avlfrcitm_to DATETIME NOT NULL,
avlfrcitm_availability_forecast_Fk BIGINT NOT NULL,
CONSTRAINT [FK_TBL_FAM_AVAILABILITY_FORECAST_ITEM_TBL_FAM_AVAILABILITY_FORECAST] FOREIGN KEY ([avlfrcitm_availability_forecast_Fk]) REFERENCES [TBL_FAM_AVAILABILITY_FORECAST]([avlfrc_id_Pk]),
CONSTRAINT [FK_TBL_FAM_AVAILABILITY_FORECAST_ITEM_TBL_FAM_FIXEDASSET] FOREIGN KEY ([avlfrcitm_fixed_asset_Fk]) REFERENCES [TBL_FAM_FIXEDASSET]([fxdast_id_Pk])
)
|
<filename>db_template/bckup/sertif_table_mt_wil_kabupaten.sql
-- --------------------------------------------------------
--
-- Table structure for table `mt_wil_kabupaten`
--
DROP TABLE IF EXISTS `mt_wil_kabupaten`;
CREATE TABLE `mt_wil_kabupaten` (
`id_kabupaten` char(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`id_provinsi` char(2) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`nama` tinytext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`id_jenis` int NOT NULL,
`nama_abbr` varchar(48) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL,
`is_actived` int NOT NULL DEFAULT '1',
`latitude` double NOT NULL DEFAULT '0',
`longitude` double NOT NULL DEFAULT '0',
`syscreateuser` int DEFAULT NULL,
`syscreatedate` datetime DEFAULT NULL,
`sysupdateuser` int DEFAULT NULL,
`sysupdatedate` datetime DEFAULT NULL,
`sysdeleteuser` int DEFAULT NULL,
`sysdeletedate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC;
--
-- RELATIONSHIPS FOR TABLE `mt_wil_kabupaten`:
-- `id_provinsi`
-- `mt_wil_provinsi` -> `id_provinsi`
--
--
-- Dumping data for table `mt_wil_kabupaten`
--
INSERT INTO `mt_wil_kabupaten` (`id_kabupaten`, `id_provinsi`, `nama`, `id_jenis`, `nama_abbr`, `is_actived`, `latitude`, `longitude`, `syscreateuser`, `syscreatedate`, `sysupdateuser`, `sysupdatedate`, `sysdeleteuser`, `sysdeletedate`) VALUES
('1101', '11', 'KAB. ACEH SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 1, '2021-06-19 22:42:14', 1, '2021-06-19 22:39:35'),
('1102', '11', 'KAB. ACE<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 1, '2021-06-19 20:43:35', 0, '0000-00-00 00:00:00'),
('1103', '11', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1104', '11', 'KAB. ACE<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1105', '11', 'KAB. ACEH BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1106', '11', 'KAB. ACEH BESAR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1107', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1108', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1109', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1110', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1111', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1112', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1113', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1114', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1115', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1116', '11', '<NAME>ANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1117', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1118', '11', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1171', '11', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1172', '11', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1173', '11', 'KOTA LHOKSEUMAWE', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1174', '11', 'KOTA LANGSA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1175', '11', 'KOTA SUBULUSSALAM', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1201', '12', 'KAB. TAPANULI TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1202', '12', 'KAB. TAPANULI UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1203', '12', 'KAB. TAPANULI SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1204', '12', 'KAB. NIAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1205', '12', 'KAB. LANGKAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1206', '12', 'KAB. KARO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1207', '12', 'KAB. DELI SERDANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1208', '12', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1209', '12', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1210', '12', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1211', '12', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1212', '12', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1213', '12', 'KAB. MANDAILING NATAL', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1214', '12', 'KAB. NIAS SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1215', '12', 'KAB. PAKPAK BHARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1216', '12', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1217', '12', 'KAB. SAMOSIR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1218', '12', 'KAB. SERDANG BEDAGAI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1219', '12', 'KAB. BATU BARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1220', '12', 'KAB. PADANG LAWAS UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1221', '12', 'KAB. PADANG LAWAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1222', '12', 'KAB. LABUHANBATU SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1223', '12', 'KAB. LABUHANBATU UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1224', '12', 'KAB. NIAS UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1225', '12', 'KAB. NIAS BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1271', '12', 'KOTA MEDAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1272', '12', 'KOTA PEMATANGSIANTAR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1273', '12', 'KOTA SIBOLGA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1274', '12', 'KOTA TANJUNG BALAI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1275', '12', 'KOTA BINJAI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1276', '12', 'KOTA TEBING TINGGI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1277', '12', 'KOTA PADANGSIDIMPUAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1278', '12', 'KOTA GUNUNGSITOLI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1301', '13', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1302', '13', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1303', '13', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1304', '13', 'KAB. TANAH DATAR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1305', '13', 'KAB. PADANG PARIAMAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1306', '13', 'KAB. AGAM', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1307', '13', 'KAB. LIMA PULUH KOTA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1308', '13', 'KAB. PASAMAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1309', '13', 'KAB. K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1310', '13', 'KAB. DHARMASRAYA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1311', '13', 'KAB. SOLOK SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1312', '13', 'KAB. PAS<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1371', '13', 'KOTA PADANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1372', '13', 'KOTA SOLOK', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1373', '13', 'KOTA SAWAHLUNTO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1374', '13', 'KOTA PADANG PANJANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1375', '13', 'KOTA BUKITTINGGI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1376', '13', 'KOTA PAYAKUMBUH', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1377', '13', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1401', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1402', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1403', '14', 'KAB. BENGKALIS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1404', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1405', '14', 'KAB. PELALAWAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1406', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1407', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1408', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1409', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1410', '14', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1471', '14', 'KOTA PEKANBARU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1472', '14', 'KOTA DUMAI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1501', '15', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1502', '15', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1503', '15', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1504', '15', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1505', '15', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1506', '15', 'KAB. TANJUNG JABUNG BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1507', '15', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1508', '15', 'KAB. BUNGO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1509', '15', 'KAB. TEBO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1571', '15', 'KOTA JAMBI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1572', '15', 'KOTA SUNGAI PENUH', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1601', '16', 'KAB. O<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1602', '16', 'KAB. O<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1603', '16', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1604', '16', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1605', '16', 'KAB. MUSI RAWAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1606', '16', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1607', '16', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1608', '16', 'KAB. OGAN KOMERING ULU TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1609', '16', 'KAB. OGAN KOMERING ULU SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1610', '16', 'KAB. OGAN ILIR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1611', '16', 'KAB. EMPAT LAWANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1612', '16', 'KAB. PENUKAL ABAB LEMATANG ILIR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1613', '16', 'KAB. MUSI <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1671', '16', 'KOTA PALEMBANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1672', '16', 'KOTA PAGAR ALAM', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1673', '16', 'KOTA LUBUK LINGGAU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1674', '16', 'KOTA PRABUMULIH', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1701', '17', 'KAB. BENGKULU SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1702', '17', 'KAB. REJANG LEBONG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1703', '17', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1704', '17', 'KAB. KAUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1705', '17', 'KAB. SELUMA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1706', '17', 'KAB. MUKO MUKO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1707', '17', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1708', '17', 'KAB. KEPAHIANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1709', '17', 'KAB. BENGKULU TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1771', '17', 'KOTA BENGKULU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1801', '18', 'KAB. LAMPUNG SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1802', '18', 'KAB. LAMPUNG TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1803', '18', 'KAB. LAMPUNG UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1804', '18', 'KAB. LAMPUNG BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1805', '18', 'KAB. TULANG BAWANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1806', '18', 'KAB. TANGGAMUS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1807', '18', 'KAB. L<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1808', '18', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1809', '18', 'KAB. PESAWARAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1810', '18', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1811', '18', 'KAB. MESUJI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1812', '18', 'KAB. T<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1813', '18', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1871', '18', 'KOTA BANDAR LAMPUNG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1872', '18', 'KOTA METRO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1901', '19', 'KAB. BANGKA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1902', '19', 'KAB. BELITUNG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1903', '19', 'KAB. BANGKA SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1904', '19', 'KAB. BANGKA TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1905', '19', 'KAB. BANGKA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1906', '19', 'KAB. BELITUNG TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('1971', '19', 'KOTA PANGKAL PINANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2101', '21', 'KAB. BINTAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2102', '21', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2103', '21', 'KAB. NATUNA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2104', '21', 'KAB. LINGGA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2105', '21', 'KAB. KEPULAUAN ANAMBAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2171', '21', 'KOTA BATAM', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('2172', '21', 'KOTA TANJUNG PINANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3101', '31', 'KAB. ADM. KEP. SERIBU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3171', '31', 'KOTA ADM. JAKARTA PUSAT', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3172', '31', 'KOTA ADM. JAKARTA UTARA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3173', '31', 'KOTA ADM. JAKARTA BARAT', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3174', '31', 'KOTA ADM. JAKARTA SELATAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3175', '31', 'KOTA ADM. JAKARTA TIMUR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3201', '32', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3202', '32', 'KAB. SUKABUMI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3203', '32', 'KAB. CIANJUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3204', '32', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3205', '32', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3206', '32', 'KAB. TASIKMALAYA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3207', '32', 'KAB. CIAMIS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3208', '32', 'KAB. KUNINGAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3209', '32', 'KAB. CIREBON', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3210', '32', 'KAB. MAJALENGKA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3211', '32', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3212', '32', 'KAB. INDRAMAYU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3213', '32', 'KAB. SUBANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3214', '32', 'KAB. PURWAKARTA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3215', '32', 'KAB. KARAWANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3216', '32', 'KAB. BEKASI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3217', '32', 'KAB. BANDUNG BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3218', '32', 'KAB. PANGANDARAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3271', '32', 'KOTA BOGOR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3272', '32', 'KOTA SUKABUMI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3273', '32', 'KOTA BANDUNG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3274', '32', 'KOTA CIREBON', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3275', '32', 'KOTA BEKASI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3276', '32', 'KOTA DEPOK', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3277', '32', 'KOTA CIMAHI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3278', '32', 'KOTA TASIKMALAYA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3279', '32', 'KOTA BANJAR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3301', '33', 'KAB. CILACAP', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3302', '33', 'KAB. BANYUMAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3303', '33', 'KAB. PURBALINGGA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3304', '33', 'KAB. BANJARNEGARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3305', '33', 'KAB. KEBUMEN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3306', '33', 'KAB. PURWOREJO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3307', '33', 'KAB. WONOSOBO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3308', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3309', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3310', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3311', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3312', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3313', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3314', '33', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3315', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3316', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3317', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3318', '33', 'KAB. PATI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3319', '33', 'KAB. KUDUS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3320', '33', 'KAB. JEPARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3321', '33', 'KAB. DEMAK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3322', '33', 'KAB. SEMARANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3323', '33', 'KAB. TEMANGGUNG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3324', '33', 'KAB. KENDAL', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3325', '33', 'KAB. BATANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3326', '33', 'KAB. PEKALONGAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3327', '33', 'KAB. PEMALANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3328', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3329', '33', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3371', '33', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3372', '33', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3373', '33', 'KOTA SALATIGA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3374', '33', 'KOTA SEMARANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3375', '33', 'KOTA PEKALONGAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3376', '33', 'KOTA TEGAL', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3401', '34', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3402', '34', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3403', '34', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3404', '34', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3471', '34', 'KOTA YOGYAKARTA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3501', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3502', '35', 'KAB. PONOROGO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3503', '35', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3504', '35', 'KAB. TULUNGAGUNG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3505', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3506', '35', 'KAB. KEDIRI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3507', '35', 'KAB. MALANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3508', '35', 'KAB. LUMAJANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3509', '35', 'KAB. JEMBER', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3510', '35', 'KAB. BANYUWANGI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3511', '35', 'KAB. BONDOWOSO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3512', '35', 'KAB. SITUBONDO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3513', '35', 'KAB. PROBOLINGGO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3514', '35', 'KAB. PASURUAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3515', '35', 'KAB. SIDOARJO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3516', '35', 'KAB. MOJOKERTO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3517', '35', 'KAB. JOMBANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3518', '35', 'KAB. NGANJUK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3519', '35', 'KAB. MADIUN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3520', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3521', '35', 'KAB. NGAWI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3522', '35', 'KAB. BOJONEGORO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3523', '35', 'KAB. TUBAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3524', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3525', '35', 'KAB. GRESIK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3526', '35', 'KAB. BANGKALAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3527', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3528', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3529', '35', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3571', '35', 'K<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3572', '35', 'KOTA BLITAR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3573', '35', 'KOTA MALANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3574', '35', 'KOTA PROBOLINGGO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3575', '35', 'KOTA PASURUAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3576', '35', 'KOTA MOJOKERTO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3577', '35', 'KOTA MADIUN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3578', '35', 'KOTA SURABAYA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3579', '35', 'KOTA BATU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3601', '36', 'KAB. PANDEGLANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3602', '36', 'KAB. LEBAK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3603', '36', 'KAB. TANGERANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3604', '36', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3671', '36', 'KOTA TANGERANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3672', '36', 'KOTA CILEGON', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3673', '36', 'KOTA SERANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('3674', '36', 'KOTA TANGERANG SELATAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5101', '51', 'KAB. JEMBRANA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5102', '51', 'KAB. TABANAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5103', '51', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5104', '51', 'KAB. GIANYAR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5105', '51', 'KAB. KLUNGKUNG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5106', '51', 'KAB. BANGLI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5107', '51', 'KAB. KARANGASEM', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5108', '51', 'KAB. BULELENG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5171', '51', 'KOTA DENPASAR', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5201', '52', 'KAB. LOMBOK BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5202', '52', 'KAB. LOMBOK TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5203', '52', 'KAB. LOMBOK TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5204', '52', 'KAB. SUMBAWA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5205', '52', 'KAB. DOMPU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5206', '52', 'KAB. BIMA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5207', '52', 'KAB. SUMBAWA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5208', '52', 'KAB. LOMBOK UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5271', '52', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5272', '52', 'KOTA BIMA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5301', '53', 'KAB. KUPANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5302', '53', 'KAB TIMOR TENGAH SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5303', '53', 'KAB. TIMOR TENGAH UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5304', '53', 'KAB. BELU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5305', '53', 'KAB. ALOR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5306', '53', 'KAB. F<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5307', '53', 'KAB. SIKKA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5308', '53', 'KAB. ENDE', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5309', '53', 'KAB. NGADA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5310', '53', 'KAB. MANGGARAI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5311', '53', 'KAB. SUMBA TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5312', '53', 'KAB. SUMBA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5313', '53', 'KAB. LEMBATA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5314', '53', 'KAB. ROTE NDAO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5315', '53', 'KAB. MANGGARAI BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5316', '53', 'KAB. NAGEKEO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5317', '53', 'KAB. SUMBA TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5318', '53', 'KAB. SUMBA BARAT DAYA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5319', '53', 'KAB. MANGGARAI TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5320', '53', 'KAB. SABU RAIJUA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5321', '53', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('5371', '53', 'KOTA KUPANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6101', '61', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6102', '61', 'KAB. MEMPAWAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6103', '61', 'KAB. SANGGAU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6104', '61', 'KAB. KETAPANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6105', '61', 'KAB. SINTANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6106', '61', 'KAB. KAPUAS HULU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6107', '61', 'KAB. BENGKAYANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6108', '61', 'KAB. LANDAK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6109', '61', 'KAB. SEKADAU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6110', '61', 'KAB. MELAWI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6111', '61', 'KAB. KAYONG UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6112', '61', 'KAB. KUBU RAYA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6171', '61', 'KOTA PONTIANAK', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6172', '61', 'KOTA SINGKAWANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6201', '62', 'KAB. KOTAWARINGIN BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6202', '62', 'KAB. KOTAWARINGIN TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6203', '62', 'KAB. KAPUAS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6204', '62', 'KAB. BARITO SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6205', '62', 'KAB. BARITO UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6206', '62', 'KAB. KATINGAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6207', '62', 'KAB. SERUYAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6208', '62', 'KAB. SUKAMARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6209', '62', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6210', '62', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6211', '62', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6212', '62', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6213', '62', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6271', '62', 'KOTA PALANGKARAYA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6301', '63', 'KAB. TANAH LAUT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6302', '63', 'KAB. KOTABARU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6303', '63', 'KAB. BANJAR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6304', '63', 'KAB. BARITO KUALA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6305', '63', 'KAB. TAPIN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6306', '63', 'KAB. HULU SUNGAI SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6307', '63', 'KAB. HULU SUNGAI TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6308', '63', 'KAB. HULU SUNGAI UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6309', '63', 'KAB. TABALONG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6310', '63', 'KAB. TANAH BUMBU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6311', '63', 'KAB. BALANGAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6371', '63', 'KOTA BANJARMASIN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6372', '63', 'KOTA BANJARBARU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6401', '64', 'KAB. PASER', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6402', '64', 'KAB. KUTAI KARTANEGARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6403', '64', 'KAB. BERAU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6407', '64', 'KAB. KUTAI BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6408', '64', 'KAB. KUTAI TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6409', '64', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6411', '64', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6471', '64', 'KOTA BALIKPAPAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6472', '64', 'KOTA SAMARINDA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6474', '64', 'KOTA BONTANG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6501', '65', 'KAB. BULUNGAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6502', '65', 'KAB. MALINAU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6503', '65', 'KAB. NUNUKAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6504', '65', 'KAB. TANA TIDUNG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('6571', '65', 'KOTA TARAKAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7101', '71', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7102', '71', 'KAB. MINAHASA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7103', '71', 'KAB. KEPULAU<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7104', '71', 'KAB. KEPULAU<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7105', '71', 'KAB. MINAHASA SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7106', '71', 'KAB. MINAHASA UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7107', '71', 'KAB. MINAHASA TENGGARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7108', '71', 'KAB. BOLAANG MONGONDOW UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7109', '71', 'KAB. KEP. SIAU TAGULANDANG BIARO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7110', '71', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7111', '71', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7171', '71', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7172', '71', '<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7173', '71', 'KOTA TOMOHON', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7174', '71', 'KOTA KOTAMOBAGU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7201', '72', 'KAB. BANGGAI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7202', '72', 'KAB. POSO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7203', '72', 'KAB. DONGGALA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7204', '72', 'KAB. TOLI TOLI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7205', '72', 'KAB. BUOL', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7206', '72', 'KAB. MOROWALI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');
INSERT INTO `mt_wil_kabupaten` (`id_kabupaten`, `id_provinsi`, `nama`, `id_jenis`, `nama_abbr`, `is_actived`, `latitude`, `longitude`, `syscreateuser`, `syscreatedate`, `sysupdateuser`, `sysupdatedate`, `sysdeleteuser`, `sysdeletedate`) VALUES
('7207', '72', 'KAB. BANGGAI KEPULAUAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7208', '72', 'KAB. PARIGI MOUTONG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7209', '72', 'KAB. TOJO UNA UNA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7210', '72', 'KAB. SIGI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7211', '72', 'KAB. BANGGAI LAUT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7212', '72', 'KAB. MOROWALI UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7271', '72', 'KOTA PALU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7301', '73', 'KAB. KEPUL<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7302', '73', 'KAB. BULUKUMBA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7303', '73', 'KAB. BANTAENG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7304', '73', 'KAB. JENEPONTO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7305', '73', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7306', '73', 'KAB. GOWA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7307', '73', 'KAB. SINJAI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7308', '73', 'KAB. BONE', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7309', '73', 'KAB. MAROS', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7310', '73', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7311', '73', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7312', '73', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7313', '73', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7314', '73', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7315', '73', 'KAB. PINRANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7316', '73', 'KAB. ENREKANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7317', '73', 'KAB. LUWU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7318', '73', 'KAB. T<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7322', '73', 'KAB. LUWU UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7324', '73', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7326', '73', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7371', '73', 'K<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7372', '73', 'KOTA PARE PARE', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7373', '73', 'KOTA PALOPO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7401', '74', 'KAB. KOLAKA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7402', '74', 'KAB. KONAWE', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7403', '74', 'KAB. MUNA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7404', '74', 'KAB. BUTON', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7405', '74', 'KAB. KONAWE SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7406', '74', 'K<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7407', '74', 'KAB. WAKATOBI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7408', '74', 'KAB. KOLAKA UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7409', '74', 'KAB. KONAWE UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7410', '74', 'KAB. BUTON UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7411', '74', 'KAB. KOLAKA TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7412', '74', 'KAB. KONAWE KEPULAUAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7413', '74', 'KAB. MUNA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7414', '74', 'KAB. BUTON TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7415', '74', 'KAB. BUTON SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7471', '74', 'KOTA KENDARI', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7472', '74', 'KOTA BAU BAU', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7501', '75', 'KAB. GORONTALO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7502', '75', 'KAB. BOALEMO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7503', '75', 'KAB. BONE BOLANGO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7504', '75', 'KAB. PAHUWATO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7505', '75', 'KAB. GORONTALO UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7571', '75', 'KOTA GORONTALO', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7601', '76', 'KAB. MAMUJU UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7602', '76', 'KAB. MAMUJU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7603', '76', 'KAB. MAMASA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7604', '76', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7605', '76', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('7606', '76', 'KAB. MAMUJU TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8101', '81', 'KAB. MALUKU TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8102', '81', 'KAB. MALUKU TENGGARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8103', '81', 'KAB. MALUKU TENGGARA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8104', '81', 'KAB. BURU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8105', '81', 'KAB. SERAM BAGIAN TIMUR', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8106', '81', 'KAB. SERAM BAGIAN BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8107', '81', 'KAB. KEPULAUAN ARU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8108', '81', 'KAB. MALUKU BARAT DAYA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8109', '81', 'KAB. BURU SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8171', '81', 'KOTA AMBON', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8172', '81', 'KOTA TUAL', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8201', '82', 'KAB. HALMAHERA BARAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8202', '82', 'KAB. HALMAHERA TENGAH', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8203', '82', 'KAB. HALMAHERA UTARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8204', '82', 'KAB. HALMAHERA SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8205', '82', 'KAB. KEPULAUAN SULA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8206', '82', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8207', '82', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8208', '82', 'KAB. PULAU TALIABU', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8271', '82', 'K<NAME>', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('8272', '82', 'KOTA TIDORE KEPULAUAN', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9101', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9102', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9103', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9104', '91', 'KAB. NABIRE', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9105', '91', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9106', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9107', '91', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9108', '91', 'KAB. PANIAI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9109', '91', 'KAB. MIMIKA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9110', '91', 'KAB. SARMI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9111', '91', 'KAB. KEEROM', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9112', '91', 'KAB. PEGUNUNGAN BINTANG', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9113', '91', 'KAB. YAHUKIMO', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9114', '91', 'KAB. TOLIKARA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9115', '91', 'KAB. WAROPEN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9116', '91', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9117', '91', 'KAB. MAPPI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9118', '91', 'KAB. ASMAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9119', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9120', '91', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9121', '91', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9122', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9123', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9124', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9125', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9126', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9127', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9128', '91', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9171', '91', 'KOTA JAYAPURA', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9201', '92', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9202', '92', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9203', '92', 'KAB. FAK FAK', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9204', '92', 'KAB. SORONG SELATAN', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9205', '92', 'KAB. RAJA AMPAT', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9206', '92', 'KAB. TELUK BINTUNI', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9207', '92', 'KAB. TELUK WONDAMA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9208', '92', 'KAB. KAIMANA', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9209', '92', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9210', '92', '<NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9211', '92', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9212', '92', 'KAB. <NAME>', 1, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00'),
('9271', '92', 'KOTA SORONG', 2, '', 1, 0, 0, 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00', 0, '0000-00-00 00:00:00');
|
CREATE DATABASE testfelysil;
USE testfelysil;
CREATE TABLE usuarios (
id_usuarios INT NOT NULL AUTO_INCREMENT,
nombre VARCHAR(100),
password VARCHAR(20),
ncuenta INT(10),
nacimiento DATE,
sexo VARCHAR(5),
email VARCHAR(50),
carrera VARCHAR(3),
tipuser VARCHAR(10),
PRIMARY KEY(id_usuarios)
);
CREATE TABLE resultados (
id_resultados INT NOT NULL AUTO_INCREMENT,
id_usuarios INT,
eval VARCHAR(5),
descripcion VARCHAR(1000),
PRIMARY KEY(id_resultados)
);
INSERT INTO usuarios (nombre, password, ncuenta, nacimiento, sexo, email, carrera, tipuser)
VALUES ('Rosa', '<PASSWORD>', 1234567, '2013-11-05', 'F', '<EMAIL>', 'ICO', 'admin'); |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 08, 2021 at 10:43 AM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.7
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: `learnit_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `li_assignments`
--
CREATE TABLE `li_assignments` (
`ass_id` int(11) NOT NULL,
`task_id` int(11) NOT NULL COMMENT 'FK from task table',
`ass_attachments` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(`ass_attachments`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_assignments`
--
INSERT INTO `li_assignments` (`ass_id`, `task_id`, `ass_attachments`) VALUES
(45, 107, '[{\"type\":\"docx\",\"path\":\"2021\\\\02\\\\0_LearnIT_2021-02-07_LearnIT_2021-02-02_Example test doc.docx\",\"name\":\"LearnIT_2021-02-07_LearnIT_2021-02-02_Example test doc.docx\",\"size\":11358}]'),
(46, 113, '[]'),
(47, 116, '[]'),
(48, 117, '[]'),
(49, 119, '[]'),
(50, 120, '[]');
-- --------------------------------------------------------
--
-- Table structure for table `li_chat_group`
--
CREATE TABLE `li_chat_group` (
`cg_id` int(11) NOT NULL,
`chat_members` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_chat_messages`
--
CREATE TABLE `li_chat_messages` (
`m_id` int(11) NOT NULL,
`cg_id` int(11) NOT NULL COMMENT 'FK from chat_group table',
`cm_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Contains the text/image content of the message',
`user_id` int(11) NOT NULL COMMENT 'FK from users table',
`timestamp` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_classes`
--
CREATE TABLE `li_classes` (
`class_id` int(11) NOT NULL,
`teacher_id` int(11) NOT NULL COMMENT 'FK from user table as teacher',
`grade_id` int(11) NOT NULL COMMENT 'FK from settings_yr_lvl as grade',
`subject_id` int(11) NOT NULL COMMENT 'FK from settings_subjects',
`color_id` int(11) NOT NULL COMMENT 'FK from settings_colors',
`class_name` varchar(50) NOT NULL COMMENT 'Contains classname',
`class_abbr` varchar(15) DEFAULT NULL COMMENT 'Contains Class abbreviation',
`class_desc` varchar(500) DEFAULT NULL COMMENT 'Contains class description',
`class_sy_from` year(4) NOT NULL COMMENT 'School Year From',
`class_sy_to` year(4) NOT NULL COMMENT 'School Year To',
`class_code` varchar(30) NOT NULL COMMENT 'Contains unique classcode',
`class_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = active, 2 =inactive/archived',
`code_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = actove, 0 = closed',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_classes`
--
INSERT INTO `li_classes` (`class_id`, `teacher_id`, `grade_id`, `subject_id`, `color_id`, `class_name`, `class_abbr`, `class_desc`, `class_sy_from`, `class_sy_to`, `class_code`, `class_status`, `code_status`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(40, 109, 28, 13, 5, 'IT Fundamentals', '', 'Lorem ipsum dolor', 0000, 0000, 'a6ZySC5GF7', 1, 1, '2021-02-07 21:20:24', '2021-02-07 21:20:24'),
(41, 169, 28, 13, 12, 'Class 1', '', '', 0000, 0000, 'l4UI5qng4l', 2, 1, '2021-02-08 07:29:07', '2021-02-08 07:29:07'),
(42, 169, 22, 13, 12, 'Class 2', '', '', 0000, 0000, 'ZvKWwWOMaX', 1, 1, '2021-02-08 07:36:43', '2021-02-08 07:36:43'),
(43, 174, 22, 21, 13, 'class 3', '', '', 0000, 0000, 'GCZGwZ4xg6', 1, 1, '2021-02-08 09:04:23', '2021-02-08 09:04:23'),
(44, 175, 28, 47, 9, 'class 4', '', '', 0000, 0000, 'NNxXOcY0J0', 1, 1, '2021-02-08 09:06:54', '2021-02-08 09:06:54'),
(45, 175, 22, 33, 6, 'class 4\'1', '', '', 0000, 0000, 'kaevdBPsdB', 1, 1, '2021-02-08 09:10:15', '2021-02-08 09:10:15'),
(46, 174, 22, 21, 4, 'class 3\'1', '', '', 0000, 0000, 's8t0TTdBDj', 1, 1, '2021-02-08 09:12:14', '2021-02-08 09:12:14');
-- --------------------------------------------------------
--
-- Table structure for table `li_class_grading_periods`
--
CREATE TABLE `li_class_grading_periods` (
`cgp_id` int(11) NOT NULL,
`class_id` int(11) NOT NULL,
`cg_period_name` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_class_grading_periods`
--
INSERT INTO `li_class_grading_periods` (`cgp_id`, `class_id`, `cg_period_name`) VALUES
(12, 40, '1'),
(13, 41, '1'),
(14, 42, '1'),
(15, 43, '1'),
(16, 44, '1'),
(17, 45, '1'),
(18, 46, '1');
-- --------------------------------------------------------
--
-- Table structure for table `li_class_grading_period_columns`
--
CREATE TABLE `li_class_grading_period_columns` (
`cgpc_id` int(11) NOT NULL,
`cgp_id` int(11) NOT NULL COMMENT 'FK from class_grading_period table',
`cgg_name` varchar(50) NOT NULL COMMENT 'Contains grading period column name',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`default_over` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_class_grading_period_tasks`
--
CREATE TABLE `li_class_grading_period_tasks` (
`cgpt_id` int(11) NOT NULL,
`cgp_id` int(11) NOT NULL COMMENT 'Foreign key from li_class_',
`task_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_class_grading_period_tasks`
--
INSERT INTO `li_class_grading_period_tasks` (`cgpt_id`, `cgp_id`, `task_id`) VALUES
(4, 12, 107),
(9, 12, 112);
-- --------------------------------------------------------
--
-- Table structure for table `li_class_grading_student_grades`
--
CREATE TABLE `li_class_grading_student_grades` (
`cgsg_id` int(11) NOT NULL,
`cgpc_id` int(11) NOT NULL COMMENT 'FK from class_grading_perioud_columns',
`stud_id` int(11) NOT NULL,
`cgsg_score` varchar(11) NOT NULL COMMENT 'Contains the score/grade',
`cgsg_over` varchar(11) NOT NULL COMMENT 'Contians the Maximum score or Over',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_class_students`
--
CREATE TABLE `li_class_students` (
`cs_id` int(11) NOT NULL,
`student_id` int(11) NOT NULL COMMENT 'FK from users table as student',
`class_id` int(11) NOT NULL COMMENT 'FK from classes table',
`admission_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 = active, 0 = withdrawn',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_class_students`
--
INSERT INTO `li_class_students` (`cs_id`, `student_id`, `class_id`, `admission_status`, `timestamp_created`) VALUES
(29, 146, 40, 0, '2021-02-07 21:20:57'),
(30, 171, 42, 1, '2021-02-08 08:30:12'),
(31, 171, 43, 1, '2021-02-08 09:23:08'),
(32, 176, 46, 1, '2021-02-08 09:27:11'),
(33, 176, 44, 1, '2021-02-08 09:29:08'),
(34, 177, 45, 1, '2021-02-08 09:35:52'),
(35, 177, 42, 1, '2021-02-08 09:38:35');
-- --------------------------------------------------------
--
-- Table structure for table `li_class_teacher_transition_log`
--
CREATE TABLE `li_class_teacher_transition_log` (
`cttl_id` int(11) NOT NULL,
`new_teacher_id` int(11) NOT NULL,
`prev_teacher_id` int(11) NOT NULL,
`classid` int(11) NOT NULL,
`reassignment_date` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_multimedia`
--
CREATE TABLE `li_multimedia` (
`m_id` int(11) NOT NULL,
`m_title` varchar(50) NOT NULL,
`m_desc` varchar(400) NOT NULL,
`m_type` int(1) NOT NULL DEFAULT 0 COMMENT '0 = video\r\n1 = game',
`size` varchar(10) NOT NULL,
`m_path` varchar(500) NOT NULL,
`snapshot` blob NOT NULL,
`datetime_created` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_multimedia`
--
INSERT INTO `li_multimedia` (`m_id`, `m_title`, `m_desc`, `m_type`, `size`, `m_path`, `snapshot`, `datetime_created`) VALUES
(140, 'Computer Basics What Is a Computer', 'Computer Technology', 0, '12.89Mb', 'learnit_it_media-6020ee70a2b171b6386b49aa3d816c442637df6f42a19', 0x6956424f5277304b47676f414141414e53556845556741414153774141414357434159414141426b573758534141416438306c455156523458753264435a6756315a58482f376671766536476268625a6477526a334149716141546343524577694d596732675161575a7a4530656959664d6b587333777a3434784a5a73595931386e454265696d455852554648424155654f4767714b6768745574536f75416f43774e33613966566433357a713158622b76582f625a362f56363964797066506c7537367461742f373333312b6565652b363559766e48556f4976566f4156594155386f49426759486d676c62694b724141726f42526759484648594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377504e4e55584646576742566759484566594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377504e4e55584646576742566759484566594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377504e4e55584646576742566759484566594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377504e4e55584646576742566759484566594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377504e4e55584646576742566759484566594156594163386f774d447954464e7852566b42566f43427858324146574146504b4d414138737a546355565a5156594151595739774657674258776a41494d4c4d3830465665554657414647466a63423167425673417a436a4377326d777147664d624b51556741414d5350767052436c69684f7a54504e4464586c4258777467494d724462617a344b456749412f6147442b78656441574148345441464c414951796e302b4861516a632f73686a364462385246574b38485a66344e717a4167577641414f725652505a6c68585a5439655047773168535768434b45684a475774317166754567436d442b4f4d544b3145315944674d496145787567712b34334d4676616b41417975753351684a6d6a5278773968526b4c41556b41423730706349574d376a45695a4f47506c7433504c677739426f2b7367584b38414b754b34414179744f55764a4c3354447544476857784a71796f5a5834696f59595058485a2f486d59634e314e384e472f434d424842557241304b436d6b3849434e436f75394876585735514c5a41574b57414547566c546a6b742f712b6e4e48517a664e6d456b644159736759306b4c35487950426c68727138764567464e485976665772524130685179787a7035536d7043647176444143323867364c4f675362324975785a2f476976677667494d724a437851394c716b506a786d4a46714368687655354752396443434f7a46767a6b2b54414d7532724d686837384173476e41614a4d6a4c3153524e504c542b5057566f4b562b592b32334c4a624943526163414177745134516b456a4f6357312b4c702b2b384d41385142445946484342304e653935527678732b64445261417162366d58376e4f4f586a65306530395256646c6e4f664a6933632f63596d614a717636446f57667841726b4173464746686859456e4d4f2b38636444494359666453444c4167304c43586745554f654b6c4139614e35742b435a5a2f367172436e452b626e697034714a6751575941726a2f6a633078566c73754770724c5a41574b515145475667685945424c586a526d4e43686c55557a61796d68774c79703679456241327439486d5a473370575066616571785a2f516f4f4854364d553038394357397465427472566a385049534957564c7a565266674c536f48374e327745704235616a7979477273586677417134727741444b7751734b53547575473432506e747655304a67545a67774472564c2f74787543396854783268766c4957422f6339516a6e70614e74514d4c535930497672654231392f427748314c48757a334f2f6d58474b784b4d4441696d724a7371616a2b4e46465979474542704d6933536c67564649734674437735373245625734594a695a5076415937502f675137372b2f486c32376c6366653133674151302b3443464b556f5a6435414164455a78694337436f394444634b556d33796c2b4f425639376b6f4e4e6947566e3848546c52674945564a57745153747779396e5241324a61514179787979332b2b3932384a4738432b6a397a326259636f444f70334f736a42626b444439524e4734433972333466616d68677a375a5334622f3237746a2b4d4c3161414655696f41414d725268594a3838746475476e7146594130773842612b72385034667a7a52367556776c762b36566238366137667136645772586f6555365a4d55443850476a41532f2f4b7674324c2b64645774684c59735948442f62366e567948454466646a5134494d55775662333362742b4d3174595046425a675859555947424669614f434f7748634f485955524168595a504130664c464a2b5a5947445477567578713278506970546a766c416d7a5a396e4a533339507759615052306d7a676c47346d746e7a746f796974384a7546684c4b34377471774758376531734d446c68566f557745475670513054726f596e7848416a38383742774974614e697a56666d776c6a2b3547742b2f636a4b4351514e2b6e792f73473664344c48385a2b614f533944494a6e4e442f5a44524c76374c556f68333046424466314b304b693961384369747051647962575948535659434270647265746e6255586a2f61656b4e57316f566a734850724b2b6863565262544f37347a66697257726c30424c6553796f753032424b42662f2b703375503133763271374a306c67594c3852646f424547466a32375254372f7543366431576d42775a57365135472f764c6b436a43775173676736327258577876786835766d68624d7455475137725269324657704156744c4a4a343146533641464f7a2f63434c2b2f6e56522b45766a6b6f3130342f377a4c5650437044546f376a4b4646412f37793274753062736a415374356e2b5934535671444567575662566f4839582b436e333575734c4b786f354e7a7870333944395979704b5853503148594542674a4244423936646e676455416f4c354a442f62785870626b665163787857436e4c7a4c535772514d6b4436353666333479647237775934675335776d316b44653863774b3641774e393362334f74637a5164432b416277386b335a6c2b3032667150367a624446383433512f38316d54504d74657077516179413578516f615743392b7568534c507654373552504b6671694e444b364d47414a4877594e366f384e627a337253734f75587655537270742f7334495342596f7565485744737242735033747156706f7246654643574147504b6c4379774e4a313443666a526f456931654f74476f6f384e365147487830304953512b62334d5059657174546d476a672f714e5175385454734e746a797946475671536a4578424756697071386c336c716f434a516773536e774d2f477a4b4a4c54733336506150564647306475755041662f2f4f516274436361706d62693839316273707174475142652b39544151564e546b6653554c4a4375316d35366e684b57366d446b3730367551456b43797841434e35347a416b35756845544130695277664b636d56452b39424138735734476c4c3732496b30383949626d6943652b7738506464657a466b634638383954454279356b43436c6f766a487543675a57687950785943536851677341692b3072445034345a41634a46572f6e61457958662b367868457a51366c44444e3162794733562b70754b3042665876673430614a7a66736f64624a74577a4777536d435538536536706b414a417375455a65723479626b55784a6b6573416869643935394736362b686b49646b6c68434963507030313137595548446b4547396f4b7656514174506679526861625247794d42797253647a5153576851416b4379344a70416a656665345a3956476f6257324861536d2b734d724c72417073322f785739652f644979433043556350756654424d41714b642b57486f674f4f6736625a5664525441326b2f5549574c68505955522f50475573435247486e396b52677155494c41494f5149336a6a3239335651756252326147712f7975673350676149694c476b664c6b472b4c3355366445776550785044422f654c67647654483976706b5a5854582f302f31565843564f2f4c71442f7751367841515374516b734169792b62656e2f30454f396539416c335446477a6972325441636a5976447a706c474a625750526836334b475546514d7358514244422f614f656356726e3756676e786e5a70786a785a535732734a79444d696a6b776b46634a48624c7756377237796a6f3373655659775853564b41456765556f4a48487a6d444e6761424a43746734755344516c6a4e62574f53336e337463333435534b7231466d55754243374b5877495942655062716a6132642f7a432f7665434b416c2f355768724b79526c787758695747444e546767345152747a3249306973664f417973584e4545792b716b797250552f7a526f744f426f53527a5876516e54706e594f6f38782b45634d727a62484174337441675a49466c6a716b71366b524e34772f5834476950517572745a2f4c556a793461383036504c3632436365614b334850334b5a5752396b3777426f2b4b4e61366f6e64643838384863555472486e377441504d64375061646873372b6f3567357377644d77384b684978715750306e5479394165773668713072517a63746d2f313855527a4a31544251525632676b5064442b75496975516e67496c4379776e393957526a7a2f4572544f6e4b64395476415856536b6f5253574138646d59646d7174474b6e385630657358307953476450307178724a78746a4950477877484c416c63657074792b5964663865334f4c3244447366457159344e4b4f4b50797953634b4c4732376764566b30514b756d69375270544d466262436c6c643577344c734c58594753423961324851477358782f4175333865443445677a4c6a6a76614962304e514e57496147633637666945734762384c61686a484b635536774d794278392f77443845663577327867535177643343636d6f763261667a2b4952724e376a4631333379582f68787565757a525a734553372f636d5a32424b34656e5537694d7376373534677a717651757954586a78566f573447534135617a4a595a38517773583037383577317969516837425377757652586e67492f686f31553972675a546b474e66523644386546383162674b4134546b486c5632652f67503934387a764b357852392f656663777967585464416c5454516c7948585672323876514a68305444526d33483449683879654d633851594f366139415a2b756d5a737a4839764a377457696e3361774c55315a476d3146664f56596a46384779745149417155484c424d59554947645378344a48486f70384d66676731644e47324c4d4d6d4f6e624a6e57684a33543367574e3738774d5461495642314232496a625a316567796e3855412f7433552f4f36572f2b79427a752b694951324f464e53656b392f6253752b4e4966414646316342705a743463327345534358663351652b514c706631774e5669417442556f4b574e4b696a637a416f73574b4e2b4572326b694b4143767837364e645857566f7841573933384c614c792b4d32636273624e367849374d63374d556d3537504c6b644439416e38593979782b2f764a336f3677392b39335a57316968623544417146484e47444779516b31665732384853717650384d3273514e34554b426c676b5773716141494c463574516b5a355256365a676f4d46664c673568796b6e7659396d4f38784c366e396f7532773567726231304b5770575877314c616a4741736f4e4a33627a6f514e68477a4a375a4262717a3675686d385677574b3941424370514d734178546f6e614a6a51426e4f75626f6d796d776c4f314552335470457255546c32502b4d784d52304370444e705664656b4c6f434b414c50734d764c39694f5837353869514b56766138776431665976704d6d356c32726830784d7878624d335875355a4662415451574b476c694f673531572f75707162646e735841317558375a7671394c36476e6463756836766631794a4a7a38344755636c68545059794b494d5746336b5473773771774639716e7a347a63766e715a4f676e6471345836653276354843546e39347059624f56644854564937626372745863486e754b314430774c4973676472366b484368665835755746627854554551494c2b59665a67455953714963686d4151434e3036416967436b4652527547646b4b4946554b75507559426e61703245774e326e35396534346e735558734757566d7171385633355671424967575662437a516f483636316b366248656f6a794c587468764e2b324e7073785a315935744a6973465778744655594c635333694653685359414642435379754232686c30475876645a4831496a746c394b7766436c534531794959574558577945587a4f5555444c4d64665a62654d774d4a614f38314c4c715a2f526450364d5238694d573673675a4e4f704969745344687463583472663556584653677159436b664567515731564636463749533950434b594563367462336147636a5338766d4f6f475a47565768506f31652f684f746472416f5544374345684351482b324937766f6d767a4251677a4e4d6b636334734155706662382b6f6f3650394d7975586e324946334643676549436c415138765369794a2b304759626b68666d4756457836684e6e773555567068714c794a627149585a587156574b30384479346b696f6b4732714661474d793230576c6c677633764b2f647132734f794c2f746d7a3667432b6679566c66596a64485a42796758776a4b2b43694170344846766d714674585a75614d63363443744158643669424e6b4b7848412f466e6c764e72716a7178635368594b654274594672426773515572464b7a70364d444179714a4852443061763457705a675a51376e4f6e62433646466368454155384369304959544d74452f52494c6c697a4c30586162544f51736847646973304a6b55364e34594e456b6365775941392f364a753146644536777a75594e2f4377726b4a34436e6753574b535271363079594d764c6e6e7130716d684a4c3344482b5a667a387859746357536474445378377337646650345361575630685973347953362f6a386432735143594b65415a5939764b36684b6b4a4c4b6c72526f745645664f394443776257502f7a3352573434626e4c593839467a4b526e78475731614b57765a574832485073635274592b513448357362515638425377364f767136677930534c33566963325a44786f366e71733448444f304158764a6c436451732f4b716e41504c7362366d58776c307138704e446f7930657a4d2f5550514b4644797749744d53695358315162525974732f4b4c5166372f5a4e5734666f315534724353694264487270734e6635683565514f58544874336663594c707459416565636e7149664e66794265565041473843535150306a6a51676156556f6f4e2f6349316b353541724e572f61426f67435645693171496344505750316e6772646f2b4c514b5958314d47616571495737544e572b666d467865664170344131714c36526b685a4659356f6a4d346c6b4f3341585043396c616835356a494672475144733943623339456c46776b7132703979523437736d4676445071314337796465726c384241387665452f6a6f6f34303445716a4b4755782b662b34612f474c64704c42466b69304138396b5a714f35323167723376794956483645644a53397834626b53337a7a427159503764636d6e78767a752f437051774d4379384d686a78394230724d714f7330706c784753673561447958646756474a7a6773506f4d4369754152796756383668524157783870354e7274556e503872547a613558356a6d425764565663596b4458717351466c6167434251577353453472696365664f6f70444237744130326a7479365a567073794b64744b50744e3745696468564242504152443357676934467a68376a5139436f774e7476483433614752693566362f736a7465313861373641754e726f397053434d79625a626462394a47314a5472572b4c4e64554b4467674557426955382f3878572b2f4b6f6e704b536a71534a2f33374d46316e4935417a375a4169333655454958524379634970774e797447496270303956437176754d546c32754d7751355850564e7532766a30633643434247544f41546e374f596c6f342f6353374e636b37734f4b6a715665734f5969767675774755314c5753357267524b354d4278575630642f3846412b4a573151757a574c31717153444241454c43375561504934724d725a63552b37324575682b3341464d6e5870634f444667706d325a386a763578714a556f4743415255625061363865776335504b70586667787a7538514d773030354f6b387068775139786a2f37726f6a37314f42316755546257783341353672515a755164574b4770657941446d7a69345054652f54713231526a6a372b714c5156794475776e45577464393437696b326237554e496f7939334c4377475672536d746f55707351772f514c30326f384d73546d704c58514931737742662b4b38506779767455567643442b5164574e534a2f376131475273327875344e544e516d6247473133314e544866723542425a396753556c766e4f75676548663842653178567643584d6e5a702b635257505a707954732f444f4456312b317051724b4c67655575734237464e4e5272315232576e696665582b6e7a48554e4e64595536664e5a65576b6b5675636c3643762b2b574258494937414d37506c61773671564551776c3636344d4c4265424a5456734f573036667246316d676f647954786f4a5057686b53692f466932727a4a6d6a673559724e515a57366d4b57364a306443717a6f474f7a395830733874644b656e446972646f6e794c7a6e746b6c377759727766544f4a345977667530333754596636616650536e5a4d4350317049533847302f2f5172734f47733646697979594b497370693179556639453755742f68436930597559314570334c6242754c4c613163714638635a58596f734a79635667654f5344793950424b793446684f626a6a59457a554c6c54756d7a7a62386473397663724a7470564336516c7241677354326b542f41746c48567349534a46553866772f364458584f3659706973666676315059724a4579765a30697155446c574139656877594c553041335750556442434a426f71313841614f4f4177666e5268414763752b5445444b367941417978614a62525579754d6a52795565657a4a335557727441637635585a6c6f7761795a4f6a524f2b564341754d682f6c546f45574d36576d2b59576761584c444a685355343557353872554e35564d50686f4558546f64784658547575463459782f4f58484a6a55662f31547376436b674c62542f382b746f327977786f6359476a43776f4f4c4b4754586662596e7337444337536b446d4432724842716c4d31565a746c4c39736d5139676e2f7664515536444669474b6243343373356c4a61574d795269614b3242566c4f3944396456395642734e4465356c5949563671374b68464c436d5938735a5636473543646a7843664452422f7651334679425a734f434a72753554717855675555654e554c6d7544484e4f506d626e56514769467a314561385034464b72663836415a58644f3267427277545231314e5a484475696b332b5371417a71446f724c3845475a633355315a447654332b666738417975526a654432354374564f385142316a4978466658614c4b565072746f6a6d7746466c6e6d5a396a566d7a756f4276576a336632616a554f6b396d334e6757554a675957337248453235476944304a702f2f4d4b36743767725454686851454d4369726b565a4a31714571537056526f6333704571594650746c717356354256696850336d6f4c47744539545755625462564c3078524d4c374e6377726b41466952546d56436f4859784644687937612b797935665174434f594d364d7254474642616b354d74384377344636635658396a666a7139424f5435497943722f4b71576c494743707357617051485062725372376f4b356c657077746c396c59686d75367443744f646d4d6a6f6b5444517a7136374f5a52536b392b43704a425849434c4650616134415031414f5556535256333056324c5742433878334474542b73676779646c32662f67364a386441787232597452532f49424c4175346544544d4d687455305a65774a4d3259676563335a6666706f61645448635a6542425942667535734152464f4f65534b5a4679497878527742566730554a7a42516f4f424c4b724669794f67696835494c6867536255726371654967444550414d73706771714f3736473236797677774c4c6744392b6f5568355871734861684a5a5531594345772b53774662736551696a59516770426f65666b3964476f6d52334e325636706646672b7351765668526174426461792b477568557a68487832665553627a2f7443724443446e595658535878514a306f714a502b714837447a653234562f793259344546344a68506f745034556548704b6345714774706b4251592b326f4f4b44335a6e335a4f4b47566a55686a357847484e6d646533774e7379365962674131785277465669306b4c4f4966466168734e42734c516133766a4a76774172355738784a6f794f48584d51446936433259537371447a5a6e2f626e464479775463326271374d504b75716434747744586747565a42686258367a4153524c446e5778346257447477722b6a674b57466f45696776475132686e4658786c77524258717a64544d46705763755561676c65394748525446344b69626b7a4c5769354f70456b36786267416e4b74674376416f73432b683275464f683764506e44417667724c77736f4473454945495633454a614e446338456f72456764787471335646493778372b5654594d584f3741734248486462504a4e386c5771436d514a4c44756e5657326444616c434135585471506d3173434a6479794454706e3850364a334b595837794f587a5344796e745979446357497a4946466865634c7054473562354432423264593953486176383354524f6c6e2b632b5679454c4b744639514b5746516b4d375a6751687654616a756f304c4c6764392b6b643733523361706f4b544c4b4656697276694d4178456f666c4457425a714a6d686f554b3370345a386c61594361514d7273694949624e3852774c6f4e6c4e71595972674c5a514c5975694739414b7873595556666e656f77397149506937796a4e54572b5543394c3955744c633141583831646e415379426861477049414d726552644a4e735159574f316f4b49475a4e5942662b5569544b5a6d384c66674f377971514d62424d5336434f73692b4576723177375375376a6f552b4a63776e73417031537567454a452b34794d4451495935316c593474366432427954565072454447774e71324e596a31473874694974774c56575147566d7a4c6543505333594355506b795a597146767a34686478596456464f6f6f363568365a5179735653754f3463754472633852374a6871702f6557516c676c544461524b58554c4b364b507659436a7978624d6e4630476e777055693833797a7450433950702f4d6432644d624265654e48415a773132396f464376786859375674596273437976543767544f3263652b4950464b467a43676c4b4169594739446d47535a4d71495652575776734a4f324e74704a594d7245496663626d7258346241417662734d3746366a5a36376d726c594d674f723434456c564f6a424d554159364e584c68393439425872314b6c4d2f563159426c676e34664f5245742b50514e495436556d67376b7732713649754235654b513847785261514f4c767054366f696d414258587542447a6d576a3047566d4a674c6356304c4e617131595a312b796854774c49416f56475351667242674959416a7574576869454464665470443353744b6c66416f56526a7a71466334634f3570416b68644c584c794172684a704b37507a724e73514d665a794959675a47542f392b706365534145675a577273654a463870504731684f48425a31384966716a6b4b6738503159444b7845774a4c59506d4961746f322b426c4a53446e63436c514446414e5075426674506b52584b3452574252536a565745774f5065652f45615069556e3746764c6a7471567a7370445161576777734c32436b342b6f6f6e736769307032712b58436458646c43444775496e6c4a51574d4d392b6d2f7a4673645461453533326c53316338513062446d7257734571306462736a7575472f435a5749445546684c48687a6d526a715a3253544e52754f52504c50377534494a46466731435842716f7256324f41735273584e6a2b66526a783461674b6d656c63796b6431776643643768314e5835313147373537773965384c444f6b476d767a5a302f326f55746f7a6c314c39634c3650465842524157472b2b562b7039764e577237557a4d326a347734627a3866722b7331573268756a4c446175727662324a79617743763258687162342f673971694c53334966562b3473736b34452f32546964795277484c716231565751612f71706f356545364d4730316d71664c45434261314131734279767537446f3666687070636e777963746d4b4644556a50742f35466c6341644a744f524e5131717177615662416f596d5659774f2b56766f5a42343172524553666e496753784f6150494b75316e347336483866684d6f787238486139796d305049334b51674f57416d5376506f424f6f536b6172465037414a586543464d70364248466c637570416d466778636647705064574a30354759744757733744733778656a544a335653666b636141324a77474f7651796b5943524d2b533163726a576f6141734251307a6641304946796933342b686970386855356f77496e644733486173417163324b635a58665644364b77317759386a384d73674e50576b6f654a3236483032324d7a51305a73435465392b687334746467346c475779474f4c412f39476e6b5a5536476b665255384d7a6445676a367975447631524e5361416a71466e786e4469376f44657965305a59726d6c4d4658414a575642326c5543445354524d4e2f7250783178336c4f4842495945412f675647442f4f6971375563587551742b367a42386f6957454d41755739436c4c69486844484c456f4b3777774944554a49585862576134417034576f52344379563745554669504757446a57676749533158534856712f6f53536c6836424c534447577444466d434f5657344141736e66645566456a7071544642376d6642526f47594231705772784170454b2b412b734a7a536c6647694b57434543474d5043457371434c6d787268685a664739645772522f4b397036544f62334b7458756b656e307656543134752f4f6a774b354131614b33784f2f62614f74787a4b5a73695977756e6a357667324247566770646c692b4c61384b4d4c44794b6e2f68764a7942565468747754567057774568737768725947465a41566141466568494266346639697075666e633863355141414141415355564f524b35435949493d, '2021-02-08 07:55:28');
INSERT INTO `li_multimedia` (`m_id`, `m_title`, `m_desc`, `m_type`, `size`, `m_path`, `snapshot`, `datetime_created`) VALUES
(141, 'Microsoft Word - Basic Parts', 'Microsoft Word', 0, '17.58Mb', 'learnit_it_media-6020ee9e86b7e940b0f603c0a51723cc4eba46d822964', 0x6956424f5277304b47676f414141414e53556845556741414153774141414357434159414141426b573758534141416741456c45515652345875796442337763316258472f7a4f7a66625772336d555679373243546538746d425a43433530414a6a78364a7745436f5965654745777833665451517539674136466a6d6e75544c646d57724e36317132307a3833376e6a6d53626b6c4165684a693377382b346148663237726e33666e504f6437357a726d6262746b3336536c7367625947304254594343326870774e6f495a696b39784c514630685a51466b6744566e6f687043325174734247593445305947303055355565614e6f436151756b4153753942744957534674676f374641477241326d716c4b447a527467625146306f435658674e7043365174734e4659494131594738315570516561746b4461416d6e4153712b42744158534674686f4c4a41477249316d717449445456736762594530594b5858514e6f43615174734e425a4941395a474d315870676159746b4c5a414772445361794274676251464e686f4c704146726f356d7139454454466b68624941315936545751746b44614168754e42644b417464464d565871676151756b4c5a414772505161534673676259474e78674a70774e706f70696f39304c514630685a4941315a36446678484c624268653176746533787945724173364976326b3558685235646d62687538582b373766653733505434362f644c2f4967756b4165752f61444a2b79554d52514c4541343374387951513253527457744c5453324e494268674761546d6b67784f67684265676170415a51536e3454454a4e66366575586134453059503179352f612f3435734e754651747353544c316a625348596d677577783868736e4f49346350514a69444f674a6f63736e662b69325955374f53534e4c45306a316b6551306d565a6269306a5861652f7635664f554b526c59506c35613572476c6f6f43676e78504343665053306e2f58664d65382f30536a53675055544766622f3732335842326679703567466e363573704d73793057304c3037547861426f462b58343279637442472f4335354c58794b7871504d622b2b6831597a69632b4d555a41565a6c6852506a344e3672713757467266686161374341643839455a37535a456b7a352f4246755846364c714158546f772f435776765452672f5a4a6e393266356275496e366352746d46665854477476684954586a34474f62536652624930694c307759576f70335948774356484767727247446a6b67764938764c6357455439446a2b55674c34596e553973525245553762796f6777546646715353534d71796441314c464c6f43767a536750577a5450742f36455054675055664d76517637324d4766534b484e544956564e674b654272612b36687061694a6d65504659477061345072714e627357707a732b6e4b6a654d523934303449776c544976506170595144495959587a62454d6458417a3172372b716c743779415579715375715932557275505744536157466c446b64797653796f456f6f655546734e4973316939767261332f526d6e412b695850376b2f343351617a665149574b5173734d30585530766d347070366b7938427432597154456c4c633173426e32307759576b616d52384e74727966664c6330426e432f35525276637643567038586e4e47684b6168637579796653347361303457777762686e7444624c4a546970425041395a504f4f6e2f4262644f41395a2f775352736a454d77626567316252625772575a735a5155664c567447536e4e6a436d6a592b70663848414775444c6642706b4e4c384139345250314a6d3572615776772b50384f4846474e6f58383467436d59746275796c6f62734c457850644e426c5858556d2b7a2f69534832556a5965614179454542567672364a5673674456692f354e6e396962366242462b667261796a754b5355745330394e485a333458595a6d4d4938615136485a577767754c4a56664364756c4961754f6236552f4e2b7962524b32526344556d447875434e6b442f6c4855684757726d32694e5156797a79624437325872305550776278496f79686e34726855384877394a55397644666531662f4e365757484a437544597a394a7a4a722b72626677514a7077506f4f5276722f2f70494e355159434646314a69396265667355706d595a48775a4675576371376b6b425151636547437446764e4b446b3832774657764b37625a766f686f594141356f42746775644a446e42444d615835784330516463734c48515661766231786347726b2b455362303566423452662f646a4255504f487770574d5234314a346132574271326665544f6b4165746e6e6f442f356f3866334f5170425245435274435953444a765a534d70425576725a61447276412f4c41617a7663386e7248533973505a756c6b574a6b6161375362486c736d2f4b676e35674e633966554d545363513335572b4773664d516857635777693851537075455668324b2b796a4f6f62324f4435766f5037506c386b2f64716633414a707750724a546278786659416c39532b797553577a4a35637459526e45624a7550353964682b377959614b54456d374a744c457679672b7576622f6573766f7339684f684b5568414f55704556496a66676f626b6e78734c6174577732666967684862786663356c53394f42695364316157694a4a35516d4e7179716c794766777a383858596e6b3856475a6e4d7249345834576d337874567638757730362f357953325142717966334d542f2f52387775506364414c4977684c78576e4244306d416b57724779685857706b6442456a324768326369447763304b346e354c626b564545334334772b396c795a43572b77517a6a757049636931514b356e653230395156777a514e584768596d675361476f61456b5a614e7269585a59586746627476454d4979765a5361377537764a7a4d7a3837352b732f2b636a54415057663241426d4149436778374c642f79382f76352b76463776656b2f6e4f37377665373973514537566e34726a645873552b4469614b766967726f364f52417a64394b5062486b7a3544726145664f594159483376542f7665623941306e634b416a346e6c3255706f3674424a316f4345416670736d33655872634c436a30684b3565644f614368775a5746704e6f5a743454566a6a4b676f6f6a516a67434536432f45614c5973766c69316e3631456a762f6534306d2f346553795142717966794f35434a72643164394c6333635849386b706341796c3346576a4a70746f674b766d716c2f4a2f396c712b49384d734c32767136634d5838424632696465684b62366e747247626c5a31646976644a476a614735554b3352562b2b6e6741534942694568702f49684f7132386f6d6a4b34727757416b38686b6175333465466a567345717431394c466e6252644c77594e6b61707555512b4d346c6f37647761556d32474635464c4a624573684f555a515470374939527332593177386f7279504a366c6154692f327a7a6e394949365875767330416173483643785444494177316d6c57514c435243736a665852734759315777386667346b41676130384c30746c77483759514279795775587045417752494a532f6639363468757263416a493976692f6632495a6b4b6b6e55746e69765a686b3744422b4e7a3943564a31666633634f43746132672b7a43566f6c50446b766f2f7a536d523256437134487a6d74365943663969582b73713752436f68744a4f7536526957674a4347312b326d4f783748734131486e446f41627a4c65445659334c6c654b4357566c3950636e794136343665324c5574765277706a79637652346b707a4d304c6f536f52396c734f6d622f4b51575341505754325865722b7a6c684162764c5637415a7150486b6572757852634d34744a31566e56326b364642556335362f6b5141627833702f53336a45786d4241783236796f4c5674485a5232395449646d4e474f794c4e723267707058546d69325631654e77366d31615644775250304a77792b574a464861626d6c61675054636b486e4466627970744341614c362b3461673846505a377876764b393956553641735147306f776569584c38485a4453393549456749613273653578756c6b67523069346e44537642725575476f3466366854347676386430336c4562384b2b6e4639376a642f397558706748724a3578365761523154613255465258513074314455575a49385363524454726a43656256314c446c694a486b756f7766564648696b4f536141706846432b734942554e45736f4a3074545379365967716768493344567a6978625847556e7861553064784b4a4e4e4b764c52426c79794a5231647247787549366d38506266795a7553534d48426a76385247756937794378655762544b704f6f38796a3074397263483870764f33373373356e707a74754c534b4c314e2f2f345a617871386c4a5751794e7268735064316a347274615077315933395653332b4e3147314a49436446424f6a496d65684970424a766d31596d4834325a3052546c6830384c555251482b3155354f333035454a524d576b386674537375714b4c72536765766f466d77335a524d6566655a76496746584c70595130562f554e56476636476434666a346a636a4c55746f716b557279356644556148684a61416730583242375154476338362f62566c3866796e2f65776c4c52556861574444667555416b78732b792f6e785646334f6142696f2b6b573430734b71416a373172316e4d4b6a39506b3046313931506b3465464d3661426f517945342b73484e4168556a6833587332736973763153534a314b304c566f4b6548694d765338484844394d416a39486b74306f3331704772422b354b6b62334f50724e7275454c355a4e65322b4561437047535469545a43704b797454516b6a376d664471663274703647757162576256364455324e54655158356e506e335a6667636a6c5a753639645a6f4c473154324d477a4d466a7931656d784d574f686f6f5a787471756b5a326f5a635035722f4d527974586b33533547466c56534c4b37682b71534170613239314454326f6d4a6f56712b364c623447377261644961576b6e386c4b5236572f4a4c4d6f61376847736a4143552f3056516272682f68692f346f462b397032485644442b35496d773177686d7071613049747961644b6c4a2b6d474c57572b444b795763463957696d79766d7932725376486f4468572f726f686e3357514e4345752f773171515a4572534e486e6a346d6e4d752f4e4a4e42574432726a46686b6f4e3737532f6b622f706d6b68415444535867653753304b526a685759727a6c4165584c6157774f58573059796b65712f7074636e615969742b6465754e494d7a61562b662b6d3944352f316c386d51617366377449423566337633714f662f586e4e725a53656d74595a7049564b7a6f342f597772656633314e7a43304547346a70447758705157585545557474756841436c37496361633953694372687955317278444b79464c6c4b6c2b4f48364376745963526c62746a32323531443947673637617a5351594c6759586253756e67442f51792f61314851586578342b6879764c70426256633353357537634a736d655634764762614c6431353568326d585443506147384551765a554e4b54764735684d333539703772365446706447706d5352567573425276647362624b68427750777147446836714132444a6364586374372f7a635a33442f446d386e50356f39744b4d537975633836322b354f6c7578434d69474678793265763857477152304751533742566247437639356353756b56354f4d6a596b69794d67637969493363596846635a68544f486a684f3858697a377a534f7a4d54586f6930533564622b54304f6655496546633149424e743971436a39352f42372f62545567615239674f412b67575759566d34355a6847535a756c33426d446e4270726e34306c77766235554a4c7057684f526f6b4f4b6558304a3537456c5a6d4653304c5a6454595364394a4a727179376c4745486a4c554257546e6f7677322b3867666d6337344466502f6e582f494c4169786e6d6f3436386b5165667554766c4a5757736d723130713839704c3672695a314d6e304e2b533162746c52632f592b65644e79556a4c4a765a5751727865497034496f6e6637795857482b504343362f6e766e766649425954516158556e596d334975436b44354466456d6f4e65454879354657613851464357336653377061565973376e72354b5a347945764c786558345561745730326a7137654c654538664579754f5545416d2f2b59416c6c4d4f59397336647a2f364636596564674a654f317435525a715a347058464c354e6648534a622b4b346f76504c30625035362b5639707247334337516f6f4145687070747038346b55353255426e38307578736e412f57744c6b385938665a616e5877705465366c2b3542674d7755385a6b6166685463555a6b352b4e7857795153304e4c56546173686f6139595654622b7639354758716b6c564a6c5669304b586a326e37484962574944494c727871504b754152774e64536e44726a4f745a4f474b4c736f5776696d323177583831696d3546445545553871687645514e6c51537366716a644e7678704865442b3577454e4e774f71462b7664664e2b6d536f51473343544e48643173356c452f646c534d4b7635425871776150536d4b626a5a556d6f4b4a36574957336f5454524e7141414e5137657750447139576f496d4d307055307a6e30676e4f6f32484537586e6e3964646f695057777a5954496a523477684e7a65674f71684b6a61563856345875416d3443766649514d473031587a4c374c70663042524f7872776d61563247612b4d6a79487657566c4b312b47624331305150575950596c30682b6a6f6e49304861314a78636e4974746a2f67436b382f4e69746173584a704d70532f3635386851435768484b786542393575567552537553686139313039633746634e6e63652f667a6e4848713153707353365253364a70376733354d435851686b3954474d76426e78446e3931414d3434494344634c746a68444e4b2b5043445439687a7a35323464635930316a593369774e45774f636a3450657a3665544e47444e2b484156356862674d46355a4c49323561524e72613258574c33394c5a3742546b47717049324e6c6a44736230632b54352b3350736f565035316668394d417750716f54593138336e6457397a2b4b384f5966586948725345577855534b334c4e31724530413174504b704c64675749424b776459445a4538794c39614569346d2b5766744c4e356f6131536252563437474e62707041435043692f4865514d6350756c586846495a324b616c7871716b45376c65626e2f6e4f525a474f2b6b6230484535674c3242464546344b6a5338707333456342356e626649726a4268594c7647304c4164415a627861517658636b684b646331392f6d41565a6274774379497067482f52444c4149756a5732486c796e70517239743432394c386a2b5464694b337830537a42464763304331755746773636776d436f3874514b4c5365417476416f62464a704a4930314b376962317363534b55754c5a3574426649534b6e5a704d62494d4e78354c6271745236343551523553533068494f50767445526b2b61794b7366764d4f6342665070545362494459527875393334764148386d534571686852682f4f30534d6b6e6764615677367a6f2b50555a4b74315158444c633768653453706236477979555051586e67615a677045302f594a52586f2b44574c514e4244306730427235395754783747714e306f33503541794277423368784d425754722f637a762b68442f62336a6452673159473162534c312b786d6c476a74674c6261554b694e70326d5952687555696d5430574e792b574c2b683367324a4a652b5a515a53715153646e653055462b32465a6f66566b33545732376378646e775a4f2b32344a307358754256584a42744f365839306b35545a7936524a35577936795934382b4d437a614659417a656a6e7070744f774c4b54504844505338796632366165374c7157344c562f337359486e333649312b4e5268623735425955556c785a52586c6d424c2b42522f39376147795058356159735a334e634248445a6e6747533367455732545253322b66793962487230564d777a4354507a33774f66796f5854584d5269362f6c6a615650386567742f2b447875312f465a5570514e39696430336c7157337150436a6c636c73352b782b7a423367667572727a4375726f366e6e6a734654352f65773468513377566d37392b38426a64686b7339314533705a71416b57776136625742392f446b336e58716c38697974415947554c703665674a59456b304b4a42517775652f395a616c4f394472683852535968766261327953376d354c4537345a614b5a384d744f5437485737624274507135647662664f5765507738684f65584237444b37366242617a2b706f63443078355963496b5757724f4443334f37714f7261506c34415a644e4f59365136534b70416c73447279372f6c7a39624a49796b306e6c64736549397247777675756f637361466e59704e4d4a6d6c5a58632b4d4c51346d552f4d70415a314c476868714e71624c4a704379426262704e5a4a6b6e6e306f53316f61315077455177486c5478666b466541324e50774250356d6854494c42444e564e31664436714d674f38386d78752b4c545537686c50735675656753334f46415351717044677761384e63574a7058447046727262564439546633594a714d736e67632b4477355735554b63504c62634c32665379426c772b736445505952312f66736a36525142574e427044642f6b4a4273764156675563367930727379585470786b636673546550486a2f645936622f4330544a6d41596a38646f62322b6c5973682b6141686757527a392b3230353438776a574c75326b627a634375362b65795a4479716f594e616f537439766b6777382b494a6d4d38756f7279316d32724d6478353747594e7532506e4850574e576f5232705951335449716b30656676496153366d773848746c34506d4c784f45556c4a586838486d78445a38484b465977754c574c487a51366759555550507556567253666a427a65377265756365743668394f5736774572524f486370727a37387351704e33336a76596435592b686252726e356d5848514c336d6765686978715a514f6265444c46456366396d69636666427150376548424478376969686e586f3773384a4a4e7849736b6f35575644654f2f57352f46474d336c6839517538333979424c73535262456662716463626c354850373866767069495459626c7353306333484170644f4c616b4b34485839436c4f4a324830637431487a37504b6a6e2f747042736a4765504f6e59346a6c42445348464b365272635749575145384a6b614866345934563348632b5142762b556678313845424f6b3145357a3477624e45535a4a5565514c48673068704e70565a47597a78756a6d3166477643727143716c3478706b433053447147574e4146642b615743546c793278566d4c58384e584d4e4152596c3071304359536a644456304d544d7251346c68414e597a7550526b687972386b6739756b616e4563662f703250497938346947417269392f734a686b4f34584336434758343862673942663142352f68356642704649684c564e396278302f5a386f5737754d4570644a6a6d61534d684a6f4c67755853384e6a4a33455a4a726262564f476c655071364c6c367768576d6c384871384a49306b4f625a4a53726142524a47616b506b614833654547582f4f62414b3551776d465134374f377a2b67502f757849653458415669646e56323450414779776b505634763153726c76786c4c4b6f784d2f766f61746a4358362f473766623957394253304b5a61462b45534c4b50346f4c394a5568525438726a66723864703578364f4f30646e645457726d52563352703077384a747546587458315a6d4a683658697a504f756f332b667639416143565065736e364f4a794a5571575456455847447a3732467a626463675468634159756a787654316e6c6e32524c436d566b555a7562513374464e616e557a763933394241552b686e775034544147656a514e796945454342392b2b33626d72484a34753243386a37704644527830314b453839764b7a2b4c4d79694d5a4e666a74686577376436586756547568534a71796e654f547847376e7979756b736e6274633957442f2f52336e3068447251786362325461782f676a317131646866314450306b38612b4f504d7330694f474937664c31364475426357576e2b437936636354565a637836585a6e4850564b56787a77613134635476316658714373322f394d7a6564664b6b43526331744d2f584b50324a745077374437526f49355352457453686332636a3051383552337048775271325a53573539374836756e48494d516778746339686566465351676c672f525858397248377a633379327a6c612f4f3543634577355537784750524e654574624c49547157345a34394471657a31454e63746875323743352b384e70756971415059706d5a78376a50336363552b6835446c64576f4e4d3363637a39514870684849474e6a356175665a644864314532397035364774446c506651304a6a415476787449564d4634427736546264756b58316a49735950323638346a6a64486a63757433696c426d365843313056594f734b574f5565505432397246692b6e49382f2f6f69317131657832335a62555a326253624b76692f7147576a564762387169642f6264444e55616e4c496a74366138745952536c43584938506c6f7330785332353547776779536b5a6c4455586b31645731523569785a79656978577a467931426879436e4c524465657a4e375a726f7759734d625a706d697073362b6c4c5544313049435438306a774d636b764f5533444a6f68656f71437a4634784742354c3977693556545a4248743765575475545873744e4e704b725353363845482f38546b7a5959703771476e703575757269346e394e5230416f454151622b583374346564746a754a41784e7a736d546f687a4a32526d4b564d2f774230676b52573875354c624643322f63794c42524a57546c464e48514879666f383948593371304b6b5263327263574f4a6a6c7270794f775567453166674f76757074344e5750486a5748526769574b597a4b4a634d713059796d7148733751716d46382f766d6e4c46395251394b79475470304b4c6d352b665446347578654e5978447470784b536861357258483031483170626d706731677676343946446d466f3342317837436f586a5275494c79476443663138664863327450484c693158695347667a687a724e496a42326877686b5a68324862624749484f577272665446734c364e3271434c57316b764c6b6d5a536c6e68614e68334a446a4c334773324e35317a4f3658736452615a384479334634532f656a533833433073334d4f77556b61354f4876374e795754312b7243314f4b5a6b314679517158766f544561566e6339373669366557546c505a516f6a7a6132732f64736a354a7465355533395a765a393950766c59655253447765524e757952566354356f3762426835752b48433962626234464332613969792f6c6447336f312f6f4a6e4c776276396c35622b34342b482b6f73484e4a456550306d6c6b457733344d496258564c4e72303950595371322f693739736570376772395439786c79556b79777041704165585a744a6e6d657a307772315556513554345a2f77546f4f584932526466366d617a57534b31755a6d35732b665430744c437833744863526a2f55526a635a4c6d4148646e32657a6a5730526837624f4b33784c504b6d56726c507a2b4c6e6f665077346a61644c737a574b6d66514a656e31743562774b55345843592f507838786f776278354479636a4b4366755668705148725a344472627761734a45676f496e3148394e4267513134566772332f376b4f4d4756744e526b623433336551744777364f376f3538756a7a654f6e6c4a5770523672614c542b62635456614f546e352b67664a79784d4e7856724e774c454a4f6d367874714766692b47505164656c79734a355558746578557158364a574e6c38646e3878386b6f434c4767766837624779446743644461323663796355624b5a6c6a417a61366a396b58584137692f6448617968414b53336e504b614e705a772f6b7a72715a737a416a314a4f2f72363665764c364c436f6d417769432f675657662b4654573363734652563246683472594e52315135514c49627570445a6351363736342b556a4270474f4a696876706f6b4e496145677079303253466b4a6e336339506274664261506b5a4f54713437757376716a5844766c4b4d4a5250356152344b4c4c2f7378662f6e776c486b4e344941465879427065684c6262434c533478556d37376364565235324a7a3449373537334a374e354776423778316b796937553363766676526c4a41507774456f54736f52556f69334a2f39644d4f7378586d6d7677573234574c6c734b5350616b3377303751456c36546832316f4d304270774f704c5a6d6f4d56697648486f36666761653945746e597565765950704235394978444a78573772696d2b726f59766a35523547774c4d34382f47697533574a50516b6b2f687a787a473456626a734c7655576638714f786d58336358725a3875356157447a314e695650486b524b346755352b3034345463346b485a744d666a625050305445614f486b4d344746796e7131646a476c4444794279497232324c754e654365434a4f58312b6638754b36756a7578544a762b57457739464753646433523055446a3345537162586c47686f447830436e5935684b59763369596a7556714e73643164774d4c784e354f5a4538627239536e763165634c6b4a6558523135754c6a3666543446724772422b42724461304d4e716265396c7a4f67647752593955782b58583330466c3178344c665a414a33436c73744573336e6c374a714e475635435a6d54307761642f735a646b7069356157745a52583755584b7a46577066534756502f35344a6f574658676f4b3835546b515045584736544c4576462b395851634d66525171564a5449436c4c5853424b38546b713554326759394a6a2f4f5035615177644e354b476e6d3671683155795a334764436e765575364a524c6a2f6b4a4e727234796f4c7163764a4d414e4353596c7956535a6469547474376e6a7556755a3172714a772b48443156425867464d39477947395a6e4d4c5074485730343132386e4f7650754d5878384253334e3044633234594b617a516a7a6846335830444a734b474f4279564b73663465587272734e6862506e6f2f5830726a787258755a6c346970734c58665344484b386e4479316f635354757159756f6768625854543433785831582f4b7a566e586e732f62376c6238746b37627169592b75654d7838754a757643452f427a78314d2b3577466e4854704764744c582f662f32534b74514c56784d386a7468497653326e4e6e4d4b584935362b6a61577547414666674b6236316354584e7650526e32346935416c797742505473585043796f4f324c593169644f3761365243796b354c42314d4754774a324569475952744132386d6b37784c7074514f6e56764e46316e35596f564c4c727653664a72593969617952397133694151386974617762517475726f372b4f4b52463168323266325336734151786c3343613933474d6c4c34445a6c316933352f67496e3333385459736550786957493132552b696f3430562f35784e35337676304e4b34426d2b47683930766e593565506d4c6437684867456e41794c524e4c71694173552f3164726f614742746f667535544b787563774a507a30534266394648326d4734382f696465413973774a394f3538463656564a666745734553307168754b726c427a726f76583658685861512f725a77437451513972315a6f6d4e70753068384e6845574f2f6777376d6d61646557746647563147774e6c7837395238355a756f655a4f65453165524a647575726c3367646b67316132794167386d73303359396c4a56566e68582b2b4e5a50796967774b436e4d566754704941796965786f4b2b336d34364f2f6f5a502f4b3354716d4c6c7153734b702f44442f774e4e31782f6a794e4647494177792b6a69786e737559386959345a6942444a4a4a6d35515358636d7174516a30786a6c7168794e78363336317544366138796933546e2b63767a2f3474434d325655646f79584d2f7954382b653472335669326a714c414d6e392b6e5043634272454775533370796462613345662f6f452b3638654b62446e376774707579354279382f2f7970757936754149656d4e4d66572b4b7967724b384d627a43426c5759784b426a6c78682f314a5743615257495444627a7550347245547941686c5969663771486e344e64363437576e6c71646d474f6f724343636b454b4f306b74753768757564753571324979434663724631527978466a742b6250652f2b4f6f4a48422b612f50704d6162496f584e6d726f6150726a6f52727872596b7038715768786c62353349693868372f64372b712b30427278345054373649723273726c6c4f33644c6c5a506f446c4930667762436856515238626a61747143447934574a754f65416b334c613039584e344a6746345458702f4a5155514458612f345578636d31555444415259323942496a692b544a2f63366e724470355a686e62795637793948496d574c534b727131765a556e2f3367563370632b63325146306c4e6550437a44796443354e524f505a75475a4d494c78652b78477a537576456c2b314372665a7234687a6c3936504b61313870504f454563477a342f354d7675424742624162586c396156794b624d43315772366d6a39616c724b616d3552396c6b546352443966366e6f4831774d786d6d524250515737555876627664516d6c5a506d365842355768565363564f535661366e716f414d73414143414153555242564c3766734f5a2f68713337677a377946384e68316135715a49764e397051447055413055554a387148427351304a4c5574672b337068394a3974754e315a35486c38546b71744442307a364971337373754e4a66444776517931477933523471725050326f2f547a7a7963676f4a387059585a384a4b50362b726f704b323168386e6a6a3351794d614a35305a32614d795639476b6867696c6a7a734e2f39696931333335544d796e4b306348436763466235456952544562624b796d664c367231784954494754596c4b686478337670454457504c736a5359364f482f475252534d48344d33454644386d764c384e69446e6b366b55585230744e4c3330466b2f652b4a5461764765646552725462376b5662454f6450435058734732477376587068314e55506b51396f617531494d647574542b4747554454496c7a2f354f323831626163796c476a38586d43304e504b56564e4f497450326f3173474d534e4757455254757253736b5753446a616d37755737576e627a5433595176464b4b33735957754657743435382b336b4b65465342554832506568472f4434765970776e75444e354c6f4454364349674c71506131325a736e6944477365386343764c7652414b68496862535a6f61472b687137314465563035654672744f334a53712f4278536b54682f33484976676f31524651373236676e794651636f354c68346e5935513976682f33456866655362686e4577364f6a7235364a4d766d50584847786a6437614a546a334a657a537a436d5a6c4b59467666334d68744f783745694634526143625133436d6c744931624d5149654135397534645974456951566e796d2b736d6979624663537a52415046467236493753364c4b62383457493835614d6f717436455543696b4d6f7a4f764831394c38766157724e6d4e54327633557a4f357a656f317852642b4478644e2b36503130374a46436f396333537a342b69646342356c5a53554f594b6b46376d527a3131386248396b2b4f505a6642474431396e617a72475931573232394c37597057634a426a5a464d3143436f794e5a573952455965704c4778692f497a6631365a746652647147492f4e4b4376556a61586e536a4831734c714b66372b48455a50502f4350525155466e3274526c5739723732443573594f7470343831536d2f30515538484a5279696c375858366563637a434848627350425a566c7a4b757670794f657843316761327130397a587a326e57333874364c7935576e4e75692b4b353352674b68544e544556476976517a796e586e4576702b5046342f443563386753586d4645354538356e707951353064374d4f7a666577397958356a7139705554394c56366d37584c344f42764f752f6c38477372386a4d6b7435716c623732584f30352f684d6956786f4e4f526147485069342b6a65754945386b724c4d4177766f575176562b7879456b484c51342b52354a7a4c542b614f5030334872556d3356464f70356c4f366d367465755a58507a416a75674239584e4d48534a55763434767237635464455665722b3148636570345534665a3064314d3162774d453737383066647436486b6f5148742b4d574b5042335752706e5044614e68526b75374c78735231535a53704b4d4a37425353547765673930326d5543475a524e7037656153736276694e7a33454e5931546e70374248516565496a416f6a7742484b573561485033514e58676e445355594469724f614e36437061792b377757366e7674416858326e4c6e34654c5a796861674a584e7a56792b3762374d534b5a69653771787a42534b6a77543756544b5a61734d6f55644c4554483779516a34634b6c7755534f6c65396a30356a743439713333574e76536a6a736a672f7768685977644d343578773061723973784b697646766c4d3272567132692b38572f6b4c2f344c71566e53326b61495a2b74524c4543684b4c6736642f36564870486e714845716d365055786e6758476e412b6b457533592f394a676b4a705a33773075563162446235747735417156306959694352456a69782b2f704c514d4f4632346a5331666b7850702f33532f48383441612f364d383363763231542b464735384e50483262547a513556704c746d74624b38396d574b6930747871774b786757744138743352327336716c513373746f4e6b4673554c6b74664934566a695a556d5a68647852754849504d7836346c474368516357593465515735505070676c6f6c776b79534a4e4c5a78636b374855793271327a416d3349576e4378414f546c5a4c55464e4932576c4f4f2b76707841707936656976417262362f6e476473786d4d6b6c48577a76506e58634e445174614853476942416f44344b643654466b6f546b6d615049674754543548754476624a55466e676a756565595358616a2b686f6e6f5947546e5a524f4d3257325a6b63744c6d2b364e7062674a44517754476c64442f5668327837686a6541655738706474632f6672746647346e4657416c545a76365653735a306444446b2b666669476c6f5844766e48377a663030584b6a4e4f306569314c6c69786d37776e6a6d486e6b4879676753326d6c56443872315a396477784d4d637359546437456f543666584e6e464c715970746b7858556d46686451537261543278744e376474766a3865533663707046477737375a6b4c4737442f6d494a456d79716e6c7057697531764f4a74682b3278484f44744c3357503579685545316e547a386c45585961515362486e3179597737386941306a306254366c5863762f32426c42707570454a4a4e327846736f7358685375424a6c3658434e473233706150357935516c4543534650397a3555303838645a375a47626c6b7032546f2b51764f626d3556465a576b6c3959674765673563303337593942757146787a57705733486f515938303541304a524a3543774270374c676b3164753132505858594942615635754e3369345833547458474b527457617477643336492b4e4a502b682b33304a7343596436495344574f793079363638383838506e4d365a413038584962346e545237475a352f574b43486f6e383766673473764f634d356c474341694253756f4c75336b2f7a635054474d44417761656571353665797a3732554b734e7847462f4d57504d325138694666586d514467435768796163667a6566672f53393241417333723735784a3438383944775033662f55756c4961365a4a772b774f584d33627a495a514e4b63546a39697550352f33475a6e7136656d686532387870767a715566452b56633236666b6a4a6f65447736656e4b67374566562b6157594f667365356e513255316c576763696976346c4d4e63306b335131726d4862597558686a6b69464e4f6d4d5a4c4f3252476a394c504139446c6348494d567653455655594d6a737277526e54722b4b445a584d5a4f5846544367744c63666d3864505647615837704464373536324d6b38584464457a6478326d2b504a71686e4b6339453769566571615662584450724c6a354c7866414541367230706d6e4e4b76624e4c4f50695059395742305963652b587074472b7a43523676547179336e2f7147426c597357634378322b334f765165636a57454a6a37556573455379594f73574d5265632f66706a3150705361423433753151584537644d33767873446f48474b4b38632b7966387070745458372b58792f632b67744b3443314f4a5243552f4b4b70306d39316e2f4a6d534853636f454a5a2f613169376c72772b6a587432506b5a78512f474a52517935396b4b5239564d5638504c53506b645162496a6349614541797841755332514e68716c5535384a686258484c2f567a372b434f4b6a412f367770546b6c314a595755353565546e68634b59536b6b724754695148736e514d455844396930747854356246366c5731744e32774f565768546a5633306f56477a7564517a57486c6435466f37506b41736679644b437a4e557837774e3274443034443148344b6e72332f4d4947437457466e504a707638786d6e4c6f586169497779316c66353477434f7854576139655375373748674375444e786d583273726e2b5277734b3864655237504a5a6b30654a3674743769574355322f57544f4858773035352b63647359396d436b446e3874697a68635055467161547a43517362366a357742677462553038394239543350466e2f382b3447456c7963374f7072756a543431484a5251487772534c4c6a2b65765137646d627a69496e724e4a4631395559626b35644451326366723737374c39623837443038795777485630382f6452447a5a786a46485849625a4c78386d536e574e524b7150732b3836482f2f495557526d68465874345463426c7451375a6b51364f5673553548714f65764b726a62444f79334936696370375259536130704a306d4430382b50783954487634586e497171716763586b31655254575a57646b71613966643038746b6c34632f374477567a666279774f65504d6e584c2f62424e74774a53743454665170526e75646a3230754d70476a646165556169445974326433486b7545325957726d74306f68504f654e516a436b376b4a455a554d6d43766b694568767056424b4e4a46743335642b4b4c4776484a3461713264454277486b4b446d533435436363714458485670793968657356444e656e7537714a76565275333733516b59587873662b46555a6c317a42774878476931357277756662644f76322b7a39325057556a78744b526d364f736e563963785075706a35656e4849385874326d7164784c3651315855704366772f43676c396c54666b7459676b6f39696d616b53456f6d74434162583238665153326c6c4f6e5630323554625833383069382f6c456c75586a355a4f626b554b697042774e4c4a3367356d6d5039643459584d553871305756626251473754532f68655045477745364e67484b377568626a46794b4c696b57562b344777696f5570794334725158524939704432736e77326376756d444863434b554c65366d516e6a39385732704148645142734f78522b746635706f566f4b72727a6b633079376b6f6f767556714650626e347679316538727768536556543139485253584c67587575596a6b577267396a7375774f7478382f766a626b524453696b4d46697964535735754c734767454e474f307a313452465a6253787458586a716476392f37726d4c5a3163395673563353715238636145516e6a4e70354678334e72772f66685a4b79496267384c71496131445331306444637770723652703639346e5a577a6d3957577159375a747a45535365647270685658616e324859514d5a7876383571726a4b5238396b637867574a47767a7257654c354d4d5954775a49386673352b7a7470684c57784a4e7755755872693567476d354b6f51776e785a52684d506e67794c53374972527a4b6b4e4a716367767a4347586c4b553747746b773665337259733267495538662f5774556a447138755964584b4e616f426f43736e41374d39716d51585656734e492b764976616b654d784a2f527042344b6b562f627a63372b597134644e65444659393278462f506f6261386b4d314e4e7a4f76755a466a627236474c397258736e7235437071574c695679353073456259384b4d3955785a494d6e544f75576d7536554957707a6d2f4f6675342b634c556253334e6d4b3252486c6c6d304f77577536634f6346536258333468626933494479666733627252454e75746a713773735a73386c34556d342f79317162695856334d396b663575576444694d675853422b74526e64522b3950566a6a456c5077635a7531356d4f723849506f49755965706d683961536c59514d41787364354b73713238684c372b4d724b784d416f45676d735350556850706c753462582f5a77767072342b656f3646383958366d46587261776c752f6b646a4e656d496b6c427a514f53584652656c41476d41634866336b466e59462b79637249772f6f57332f595061322f36583750706653456759706147786a56456a4a45736f764a56595632716c784c7361794c776f44552b5332326563535574764e786565647865475859416b712b73616e695a50756e42714a6d2b2b735a4439396a31584653706665746e767142716168636472635042426c32446f556b797355646677464b4b2f433457794274547954716d4d314b67314e717a6c724e4d765a2f5a4c533959583469716c6f4e4d5a515236474d6a7a707133542b52636577377845375531526352415166632b73616946704a68473971626d35695a4d7a4c37772b39454a65306556474e316f554c47387a364f4f6e35732f3538436a306a2f4b6f4534393842566e2b386e2b3661786377343569396b6b506e4e674b576c3150667761433563746b3368364279324f6573496a4a495338724b4b4d547853647966326466702b64666631735564424756504837364e437837675a492b464e734f6b326b32686430596131746c74356357503332594c7777564d59556c47754f4b78594b6b6d736f34334f3539356c377431504b7a746439746239764e69776874637676494c6932676778322b4c676c2b396d6157637244664d5830485474517754774b432f4c4f64394836674574394b4835354a5758306a33374579575939526732463839356764594d45373076795932625368624e5264786a30312b5771347164713875483066374752367148566d2b2b6e78463358346b76464d626a3879767457447a53533156506c4d2b505045654674727663636957765a336e4a7941687753436a494d7763646f6652747469764f32763475637477476f5a426646645a4c73694e7051505a56743149396241773557566d71546c51654171702f324c6f444d39596a774c634661474c445a44784a665830396e522f655176575376796d2b5552634e364b41483556614e4a7a436c53384f52637a4844773346352f6b55447947396f342f7866676b66664f6f7866424742464976313064505578664e6a7553747a7572496f6f6a7a782b4834636664726f6932555530714e505030383965526953693838464869376c312b744e496a6b576a6c646232393558585546477950536e4a41426b324c3738794864486252535074484c6a2f57635437437a46634c7570626e7365304969717a6f797451644141726c557252324c4347672f592f69647146436457417a624c6a2f4d384a762b5032752b37465a596b576150445375664f754339683279726163657370462f4f6167413867595859566271753352564e624a364974773241366e34424871582f5867636b676e5230417169312f6e6f62667635724f65466b4c352b58674e655a4a2f7334635669385670586a53502b302b2b4646387165313166715145324445307a36556830734e32755731507a376d4a30553868396939784e716a6a6b356775782f4649484a3470765232777157636665376d353850613363667641565a45686a5031316e7636756d556d34467550663836617157543634397a6a3663364f624479433076786550796b624a744f6c73626d58766864506f57726c45622b65416e7232564264793874447a354a645059797058412f627559564c4d72323037536d6a6f3950765a49434c514f584169796e7332654c486d587957596652324e2f4a687a66637a5137424b76574171736d7875654b744a316d39736f346e446a714e2f4a52625a51576e5048454e655634666a2b31377475725749487178364e42436369382f69647a4349674c696f557159324e314a78717a33614a7a7864317961786435765038667a79786452555635452b3330506f7233346f704976364736626672654a424d69574c6f584a4b535664364448635a4634326e633032325a7141332b4f55396d77516d6d31516d712f73383131454271615533545131307a723757697058546c656870486a54536331675461764a4b4f633845576f5359634b2f666f7538716d48342f41476e48397658726d2b4479472f466a5a2f7442623849774f7271366c48415531697767334e6b6c67477a336e714d505862626d325171473874534252423458436c656665303631566d677061324e49772b2f464d764f56646d6e2b73615865504f4e6a7a6a6d794174565355333163494f72726a715045534f486b6f6a3163767a786c374867383237564175613275383567723731334a707a7055587a4549474446597a4561317a537a7a5759486b597835314b6b3436357233326449335362616165457161306d534e4856314e7a59706c574b614c726d51746a372f2f5046754d48342f4c4b7a784b423038382f5378336e4838486761526e414c436376753943694b764b534433435564502b514d366f4b724b79785876776f36313735413647684d4b6d32366f7572575031536d342f35672f34456c6e723074336938556c4e6f3977766231514f715245354c50764862484c38785570734b5471697a434568706a34796e6154506f3154533475484945665839765248716c73396e377531504535322f436b4e7a7338502b752f507930382b535a306e6874386736556c7a3439417a654e6676494b5337434a57634957684270617543782f55366d774167534d354f4d7575346b33415646374663366c476c546a6c6336715753657758613358304a725277667a7a376d65724634526545685937545174524576526e75706b3242556e6376445972626e6e774e4e7836323657356c6c632b4d4c394e4c6530736672563931677a34326b737a553365784770616852647246564771303942767231757559466168515635684562724870377a6b534563724455656654576c5332735359564e782b4463306548396e424442707576494568382b62674d557870304958506b475047704a6d656963637447554b4e2b7277385270782f42324e486a69546f39366b31732b4831517741726c5452706157716d3834334c47464a2f70377264387234676c59632b5250546c51386a7a5337746f6a626274487151394f5a5268343863517948423639332b643030774431732b477549375376524e30503458354f7736632f6d7378657578776c693670565938685738704f70456a486e2b534e312f394b626b34756978637534756262582b4c4e325575563147443438427857314e53693251476c55667069306631307472645357566c4f643063373032392b6b507676656b387476696e376a474436725665516d35754a327a3041574a5a4a4968356a39637061786f33666a3178336b654b766e414d62426e707a44556749426f5638547264514963394e5a6a78364a654d3348305a32775243456576743053533376666a7948385556566e4c6e664f5268434f4174766f39376a4d4654444a70657733556b48557a43386d6d416f72447961775366715147394e39646b694255676d2b756c75584d333051382f474b78366b696b3463486b7a456e534a686d4c5437654270485a684c734d366c3762793670326c353055314a5262736f72387a6c36357456302b7951375a324f6e544f4b524b4b767236796930334e777a39593855577745534c6f33747076794b6637343653306b3042567750662b4a6d326a773275586b4653756b756862365451686c634d576c2f50445a3469734a6b2f756c6f63724a79734a76612b66536336386b324d6a434e424873396477744c5778705963764574354b7952326b677073584b576d34534638517a593772627a3243716a6d4e76325030504a554861362b45534b663730312f62462b6c733564784b797a727158634471727675396c52422f444f66592f693051324368734668377a7a4f4d3274585546685972417177426243435861335548585953506b326e5266725a58336f324a554f486b346f6e47626c6d4657756e58553549656c427030764c59707376744a52627470697854526d6554753839687048592f6868484468716b69396e2b58416679326a544d6f61556a5a4b567272472b696164546c446d2b386c5a734773374f76596155514c4751747651486f52396d6b42507336376b36476a686a4f6b65695342594841644c66486c7a306b443172665a2f53663775564d5532735a622f357a445959646371546f2f69767469533535585169646243476f525278707376384e7762726a756545704c536c697a656733525a496f39646a74584566554f65653463623236346f7478372f7756734d586b7975586b35716f722b772f6558634f4c7672314d396f735a746d735066482f38624a53574679734e5353542f624a68464c304c43366c6f6c6a4479546b79766b53594b31763754736f733542466b3851776b6c7733375149387552716262444742676f4969556834332f2f78734872316433645174587345645a392b475877383674595071504436484c482f323079643564766e6e6c4a5a583467373656432b77645230773066436270764c572b6c4d515355547072462f4a6a516564515a5a65704c79434a444738796b34325074504467576363794e6f79417975526f48625245734b744b5a61387377682f7976487363765044485037554e424a656e2b4b34556f6b452f5a32644c4a6a374b56746c56334476795a66676b2b7973744a5847494768705241766454507a4456436f6e6a434b59455a6147556153534b6437353435583066726853365a654f76756c69507654484365566d45713176496e645a49782f66394467756c38574a4430376e6866676168693575346550725a6d4a4943443441574a4c4c3841554e3467562b476c7061714f3654724a6a4f6357382f5344776b70533847387863755a7566714366786c7937334a744c3234645a4531574d6f546172646a5a46317a4b6e6e445235435457366a366a306b726e636e4e62627833366c6b4554423358723364692b625a6255565978676e6866684c70503332586f49336453346847646e3953486d6d542f376c6757506a43544b6c39553357506342586654556a7153386f6f4b416b726e39384f582f3042436d59527030647851522b3862317a43303553366b3330666f714e6c3050374d72666b73457178713138547857564e3343356c747552305a65746a715a365a747242744f4139634e6e35502f3454764667576c70627547334750667a6c69736655356a767070474f3537625962306256384c4f526f632b6d69344f623944326551486259704b69796b753775627439392b6978756d3363767952514f6e4c367532786a614c6c7a3144586430434a6f7762702f517958653374744c564632473672593552636f6e4349693164666e366e713751624c594f54516d5751695155746a4535754f4f526a764141674b616274684778737042685a4f4c575831556a5571794d5658587371535655755a4d48454d593061504a4363376c3652304f484237655758324c4e70624f3968753541514f32503534444e575a77656c6f497465547378396c6271534751464568687366416f3776523431364742554c385a767664306673686e6b707978667550456b306d3657716f35645a447a695a4c4b314465792b2b764f594f33626e2b4a316374576b6b446e676c764f59486d6d443539505a2b57714e62517357633657785a553863653039754167534e6d31692b52374f66505a6559694c497438544c69745051734972614c7861516d727553356a632f4a634e326b394c6371766277734a6d587338714f5546356470526f554a67324e4b6a33497443312f513462744a57346b47587656796667727967686e686568706271647238544c6d2f665665796c4e65456c36647332592f51716b6e7a435754393049545a663636706e6c6943326d5449347955674a43585a69764372782b34686f6d6262364b364648792b596a6e50762f597152315a4e59745970562b41563939564d3061476c2b4f327a642f4230375878476a6836504c786857414f54703757625277622b6e77435870474a7653472f39436e616d52565670474c4a36675a7637486c4e39325052552b63487353524177502b676d6e6f64317848546c2b45612f71464633394a46704f4d586c465251536b3765662f34526f454c50464b57395930734f7a2b66646b3859353553756e38537932664c6a465a4a50696f745731336d6e7652556e734f496b524d495a672f577971593572502b442b582f387477704a32747a637a4d4b464335485342546b43717247786d57682f4e2f66662b7a34325259703345634c3974646e5855316c575447465249636d4579634a4643776a34672b79777a546d59306e74635470717857726a7a376a505a5a75756471426853726e524e58563264744c5332732f586b593156346d56756b4d2f7674527867797047516459456d4d466f76305969565344433262676d3435543373356b45426c3164525a464246365939306364387752374c4c7a654e372f346a4d71686c55796274773431624d714f79735472382b724d6a394a7152714a4a716862566374376237374e52363939776475764c38426a7564517858436f77744e526855674d48586f69755232726a6e4f5a31386c3953465339474f662f4e2b346e615362716136376e76714173494a374e49654750632f7479396e446e6c42464b69344e643037703531432f2b4d526c51726d6b685048797458317443777249615464393248433438346a5a446c456471476b564d325a36752f6e455a533875676d6448573373574c46436c5a3938546e4c5a6a3744634849784c494f6b322b54323935396e586c38626f58435133464157732b35346950647575673944576c6e624f6e3934365859655866516870534e474551706e45756e745a656d697a7a6839393939773054612f4953636d48547864624c62487a6e7a30386d734f66366243576165323036664f64557869536a634e77324471792f6578504e4a4f355a6a684c4737766f72327a677a557256724c69732f6e6b6662534d6b6d584e574e4a737a2b506d3050747570436e54517a4c67706a6733462f6462622f50456c54635169736555566d434c7138376a3459354f716f614f55614c5366744e6b6265306973712f354578552b4b61424f6b64686b52386f323335536542362f486f35736b4c44666152513877644e536d354f646d71307a6b6a3348464568616454553355334c30396d3456584574636773654f6468442f38487a7a4f4e4742744e5a4d3639775171683437433558582f6d78597950394b67666f7776396a33767364475437734935534d4d7a6162315255314e444e4372485a756e30397256797a686c3359314538304a366b6737666576592f71696c4b6c6f5a4a43346a5672316a426e7a69666b3577316e3337335041693347724c646e7149344c6b7a62646c4d7877554531365a3263485378597656787173547a2b64532f58776f5977634e5a4c69346b4b384c683872466a6477334e545457627834446272705636706b3154314a36684946524877786272743147744645485239393868453557626b55464261515631544f73424756464251586b5a57546f306f7358436c4c74633864564b4776616d2f68785466655976344863356a2f336a77366c6e59355a4c6a53646f6e3679546d4a5a76424a374c535a45372f4f49724d30784c563354754f545743735a6d5747365636336b6b544f754978414a6f49554d496d5950766f686b6b6b7a38346d47396543754c6a5151356f547a4655585633643743735a686d726c6e334f4165566a656543536d3347624154573269353635682f70694f5a52554d6f594a6d746332714779653164624278332b5a5361476567552b4e55536d57564d706474656752663163326d35336b6c4874763549456c637967664e305a70306152595630536a396174715762526750696475755150332f75354d676e455848696e4a5564477255344c6a3142446f6969644c61536c4d4f306e78506a7554326e6b3868634f7153495479304c7775644b6c63614f396739614a46524a7461364a6e784f474e7376774a656a307648377a49775858456c4e30345a3069445270742b6a55626a62747279633757506b35727551552b5330616848696531584e48457075764a414b4c2f526230487a55535869666d4d455154782b5759644c7279345554623248534a6c75516d2f336a414a596a613068523239444d6b67642b7865355a69316c7054366256616d574c3047726c6353656b746e436e5a2b68316a614b3470414c4e4c57316c2f6c5754766a526766552b632f504665377652656a36766d5a744958652f42716246784c77462f49566c7366676d6d3665667564476172582b71524e4e694563436975657136656e6836564c467a4e6e7a68793233484a37496e3339724b6c667765524a6d31465a5661564b623451446b50754c39375a7734574c56646b627176796f7271776948677777706d496a4c796b4858684d755332723475786f775a78683133586348535a557651335737656575644e4a5234734b4367676e4a314e5957456857734250586d456849797371576476585133644842304e4c6870415445744c665671336475714e4a356a65735568356a2f5970616c733164794336623738516c4a31784132464a484f6a694e41395868446b344263314b506b442b736c4d7575763552376e336d432f4b7079796b6550495a5354535874444862745762384c553766626e33457650355a5a4c5a71683076776f7a7332796d2f4f55633873594d4a79736a537a57565379583636656e756f6e625a516871583174443379574b69587a53676d5a493754484c715777385439556b7951434f5a694e4b307070356c533564773650424e7566795930386932666667474e442b7936555147494a356559576b68753131374c692b382f7a62466c634e5635776342374d4772723764503262746836544c326e4c77356478313147694d4971483732366951724b6665524669366151596f454858714d586334346c6e6c4745732b5151764b486a69412f7030444a4a35527261316d304e39617a664d6c436a74706d527837367a5447553652363870744f44335758455644316a4d68576e7a6f35783250313363744d727a31497962446a6c6f7961526d314f674374645469535352746857344c6a6d42747057596e5141414941424a52454655634e4448324e4d766f4446554446663944713951694236626a443150706d2f38626f79634d4a356749504e723355422b364d71586c74334c567177697372595771326b577553576a7946707750483439546751586236347159634c6864354e624f463470366b566538612b50396b6f4431672b6468782f6c66594d4e7a6a62386665336174637a3565413652614a51646474694a7a7a2f2f684c486a786c4570524768413676576c4c57325374725a576c692b76596658713159716b7261367556723945597a584954386c397052567966333955675949556c515943667357444a614d707474392b4639556b37667172723866743757667576452f514453385a6f54415a3455797973334d6f4c436f696e4a3244467654687a38366a7653394354307a4f5054515a58564a4d6c74654e54337162323743776f5a366d6e6e366c466470752b48412b5872534d7461334e314335665158314e6a657165634d35784a334c37394e745a4d4838657356694d737449797a6a6e33584635382b7a555731433469733643416e4f494b686c52556b6c736b4c61473939485633557264674d6163643956756136316f34637274394349557a4f50363830396c69782b3135647545586c4138665155596f57774731615366554a75337062475835736d56594c5732384f2b3042436c495a716e663535653838796e4935303070456c436c62396342766257356b38594b354e4b35637a6f4637374d57577730645273325170666c2b41776f7053626e76694564703665736b714c4b61346f6f6f686c5a57454d374f56416e77772f5336385733386b716f375457726d696876626157763532326a6e383864416a43446433453949647a366e545a54506c6e464e595270516c5461756f476a32653668466a434258493857676931705144625a32536f3253306c2f616d426d6f574c32444a4635397a2b4b36377375575943625332744a4156444f4c4e7a2b474a3131376d7339726c354f5955716e4556564653525531434d3458593879575173536d646a445a4d30457975766b44736666344a70702f79655a6166766f756f4a34306163367176656f55507a556c5a6569747358554754346a33484a3932685975345946432b615335306b7959735768654b3045533370316646732b7a41747a5672445a354732594f48454357566b79667874306c56773367472f713350426a6a4f342f64342b4e506951634e4e57474e6477534a6f7255515a3753636b7956584d495244526b79524147524e4e36545331346e596b3842486e6d39414a62304a5a4b4356436c4d486478416779703241613742486c4f4a52494b32746a626d7a35744c3759726c394852484d4e78792b476b654f546e5a5a4f666c456736464349517946484576344f554e42506d7371516e443974485a31342f7464704670706468325249557174756e413570506c4e5954435963615546504c52346c7256516b5255333145705a326c7470376d2b676162474e58533274424476376c363355755137535576635148594f6f647777755157465a4f55564563724d784f384a4b43386f45756d687162465a485a3452366571677637304e365a41617a7371697047495931654c703542636f6f4a62764b5679524573516d5972533174724a6d32524c326e6277744630383569674c704d542b686744326e5830596749366830596c493433684f4e304643336b70626d745453314e5a4f4d39364f624e696c542b6b515a616a79352b515555465a65526d5a656e6243334353745558587a58387331585451506d3974374f4c7473596d6c586e743747796a73364f46614573624f5a6c5a6450583071506461637642485154376c6c56586b6c77776854383579464d5736716a427950496e422b597448496a513372464b6449726f3657315537347051747643577136614649512f4c7938676c6e35314a57576f4a66547258782b6c566d557252375a6a7847572b4e6142614b7876696a2b7245794f3257305364656673525a3452353957656669616550704e4a5732784c626b346d686b6661792f7734336f774156697765706257316a593756692f6a306c6173704b36756778624d563057696349554e484d6e7a344b45724b69745461566548676750526a505a774d6a6d56516f2f666a6a4f302f4231652f6747344e587a5857494d636834434968596d3976372f2b3264783377585a56582b376e72767a504a426b4c43566b5151784b32494f4e4261465556736e5658727274593950713357757133573064716874593571526575676143317133624a6b4341356b5134416b424c4c4866397a352f6335353730332b435145444971334e7664396e412b544f63392f3375656339357a6e503451464c514554613574356b3941597965784b574251496765736e306e3141533366724c6d41364b39476679757369546f7867614c5274706f4642386a4971644937454954774b53556259314663737131714d36595547484274575245464a734443724f52392b4d434a646e4a7977624c535a52497978514f372b56316255737955744c512f4b30714235516f704b57316c6130746a597a79377970766f466a6365524230485052387848345544656253455957354343424c68416761575953306a4d744e4c63316f3632314763304e64556a574e33453853516c45754c56594e4363483457695541376a7079776c6144704533576c31646964704e31546871723731526b70474439367372454d764a452f4b37626a6473536d416d795874736155416933676f7a6c57525750486b6f354556524c436753793051304934744c52336a4e35425a646334306446796437545767647042494a784a7671555664626939713657723450376f624d5053635642434d783542555549437333472b466f4e75764974376665536e7548394c347330324375584c796c435730747a517a576444374b49717461454546534d5132466d4f4c67645a55687a356e3462585338524857727253326f72643073786f63696f7943616a58465a426f4a79473162564e43435355344268512f5a436b426f396b41544e742b453064426e633948464e36696e2b554736717175467852324d75466f7568714b6745425157464349525530667a5776653675386539324a7952742f31722f4d783757396f444c34364b6b2f2f51414b2f303448705375316e55364f4730507641696f36442f617149695836746b493843683051684d716267477a6c713644536272654e7055634f35424e412b4e484449616a4777674653644e41424a456248574442386a55734b55774b70315276794b705652484e676870686f534770624267764e4551687841316675304577534f524a6b6c6135506b3477364f744d39555942656e4963394451492f4c68685063696b53723169344337714b554441734175537531453648625553644a4333565576456b644d506761775344415159726a5974357864656137706c6274564f316f6d307a3649714e764366785a2f4b6b314c5143594d2f75327871716c4d476c355468646c38444e4f772f74543031555179353151465644554356716c535a554a37596145785367743079577157612b486f4d3971636151625152376e70656d354f6c354f70337565595439624e676d4e63736c776f4d727947696c6b4345426f30744c455642306c6e794a52724f34346b4355626532366a65796b472b37376132735671682f30516149656839465942392f4c4658627345466261646666776e7a37542f7978676451644939472f70417a6b646c4c7758736150432f4e3435654871344d5637324d69774a48363670344b4176535947774679524a4746726544396d716a4a62364267776747562b715a364f757642757173626b7442634e564648553153744d6d653466634d3847622b483842444236545875784d6678644855373164756836445a78507654434c6231746d626f6e2f7a6c6c4a624430344353414976372f7743464169417574733862376364734e7a3746593173642f7a62547a59557743475765657846634647643936786567317a50426c324c5944716b6662703739393734364470477568737a64415871655569612b724b6834376a68517945687855306643504136746c323737424c50376f34314e7a584d7a554d3839722f373032334d30364d3678663830434f334939662b6e41657562444c486a674e552b3164736e54767138637a555a6b4e414e664c68384e64656d7359426479734351386a496561536b39676148356d514a574847424c61787966723930495856466875774f647333367564685939412b6b3373556667775666615255557a546f577239356c4e6d435972302f6e503332534e6e6676394e336c48485766744c412b396331667a41446b64424471617967727675484f634a743062362b6b31752f6172704c724a72707641425a7646414c4e44595278615673443947626e42525872704943325664787962653371727657362f586731594f2f4b325364694676716730654464554e3248563268725531445242415455624a656b515164366a6e796c64353749493270645549705241414c7165354e67434c52747049364b6a74316e55504e6d5648654576393159534a4a322f306c323945376f4767563165555239454d744e30725471423134343872622f764e316c417642456269694a434146616946636673576337766e2f36393434313139624136504f5676756b62483733666d6d4a36662f6675307077395932336c62467445766962526e71706933354775735739384b6d3955305664695377596f4c784c32534b426269737375393033583971464c77764f4e544b2f7273696148744c6476536c7939646f772b6476524e424c584c6a5155516456556a425145466561533630375052536b46336c3158796668765475765665485773396243597764556f6f2b484473554e743832594f33652b2f746675356f50574e74346f39516e7071612b4662506e4c45564c47306d49554946306b6a4e3647654567396867324148324c497769484e475a786477576f726c44524e5a7153486f376447566a6838376d686d6c646e7a45647a437367707a55496f697a70646539764f6e506c2f6259682f78382f6a414b503646364266686d6775516d6b4e4837432b4f357637674e584674675a354c704b4d6637337a4254593374514653444961645169775378784748486f672b47594c6353646c343058456d72592b634678443974752b724b2f716c6f523137562b34586e4f522b61666e34386f7a50304b6972794f77585243546242367876612f36654845394650414848777367426853694d7173796a3637787854746356785062445744327861552f323851484c6e6634634a5843417454554a66445437613652303671655852502b43494934345a4379696275592b61566a59554e6d41706e674b6473706b335779446d6c32345762754f514c3449426e66456d7a724849644a2f4a335370504a664a617762684c536f362f34364337794c6d4c7147304b41636c655347382f50706e61457171794f7766514367374f793247346e7459505a6b454f37595053776369344a675958646f482b5a4567382b72614d3450745754727839614b4336636732476f50733248583976586e5566392f62664833373179676d74656e496d4c64344e5a61757249464553674a364b303665664168694d52454272367873517332574f695a7955674d72696c6d524d674c786f6f6a594b5a53447857696c416c3752744c5572614833377530302f51316e6648505176434f507642466770465a6c394e59527a71434f4f3558702f506d4474576f745455735642774e5a783042376c6945715556434742784b30424b7755486d35736275646f68697a54482f473258574b423341355962377959706c356b6666594771366954724368586c68584438784c335937316c663359434e6c5a766832494a55535a77586a7776704f4b62515a704b6f496c6630446151736f4f4170455743524672766742746d53796373336a78644651584f4646684b384c2b31455257386477586168567572796e575348526565384a616a6e633557583945465a635a5142713845494971636f694667756c6156737a542f616b64464352337338486a7075567a434a6d504c42324f39787833626b6a7237397670355361303859426c52703045466745666574325134336379304d4237485867494c3244774a726b7a6b796b684c775a57556c6638427134776b4d4b536a41674f77734c67447734657262767a2f76444c306573417a4877594c4646666879645231737938475167646b34664e7867554b2f534f664f2f6749304d574d776f4a314479514d517448534659636977636676417767547475304a5835514552646f464962453942316733386d4452757469546175582b535349574b7a6d786254483668524e533072684a6447355549756539337434555471424e356b452b524f4259503735544e677666543651686577516f6a6c5272346c58486b434e5a36454d6a314c543662353967656c454c325245465a4453466d47734765504e744953322f62316d52756274676c615163644741454b627136625034454f53304f6b4c62744a4c5930427a7a3058634b724566315650533952316f746f6d5266517377494450432b314a53686973456943524d5932586c4f735335717a64395843774d4b53784151334d6a697776754f364455423630657665747633716e5841705a58454c7475597877667a562f4e35526b442b6f55772f7343685343556c6644522f4b6373726537454a7363775433313150385a4947506d6c4a48584c51594e45327936326e38387a4f7632386e664d7063746b4a6c4a685345496b3658525530706d4b564d73347a4b524767536b78595765576e694c4c532f6274706f53776e6c424e3149495a354d675a4944685a6b52444f7158683966652b6852314c513679436e4f34384a6b79416c3652747363325a3534596c6570306e6447644a72666f376b4b6b56654b4d55536b4d69514b4b3868384b7958424c49746234386a5943684d345930543234454f426d424b4b594d764959626a5436334a77335353357847795055613959684f475870724b6175423367674979434a7643454268437a79782b55324d7439766b5053306d684c59736e67704b746175525a5471476e4f7955445a754e4a79384c4f67756b4c484e58577143574f633779417371324b75734342477948787930366962575646616a764b775547326f617362477847535a66533446716b725959335975465a747445526e59453477595530567631743131676756344c5744514a453771446c32624d67326c48554a67627874455468794a6c41522f4d5867484830646f62577643537a6948684f664754576c435253422f3976625276426f594d7a6d584149674b70743148665076636a37503654434b3154665a33597570494233634239652b31644230396465486969464d5544537a344454554c594d47796152697a344c75355056566a57684f4a744b634e6934466c6673776c4e426976577433747837626b7257636153392b6568756134422f51594e7870586e58737a3638465254314764674d663779367450637335474f5a74676d4f5a6e3270784367496e686c376e31304d7a426c5238474d3536646a786f505049464b5569306665664d4946756734587953756f596641686579747550534974695233716d454d4b4241543148644970485a365378496f52635667494b537153566256592f7534387650373750794d6a5265394d5a5a452b627267684b6875464f6973446a594e346e78677566664e5a7846586855546e55594d4c514d614a2f502f544c4472494f6c306e7436414530744f6d6f62453169585630394c434b4f756755476230333947515a5574516a62384d6448526d74474144663836786b4568785679335362566b6e70322f2f5a2b36793541674f2f5a4b586f6c594c474569646d43647a2b705264575742703647353037644637704673617a464d476c6f3277474f34335262767550324864596343654d504c456373776856756e54774e443743366a6f634f7747723355647a30743877416c48343945664d5372486a52527037554a4471474f63584b326d764c43455334384e6a6c415a4536415258356b6a646e575669787151714e4b5672694b41786f41686646784b65467a48456a4a7242657658424c7144365046426855774772415352663842414d47397366524a787a4a30343258536530507876782b495362494e756a63306b72734a6b47314e5a777a396d6a49434750556f574e7878614d33756a47377a6f4246587143573048444f4955636a5a6d7463314a307964597962634469756676414f31456b74334150516936783548685a39504c494e465a654e507836354b516368536f7841356436445167324332722b4a6d6a7342584b4b3947644e3576566868554d4b6c2f3377576d374e6b464959316a437772527443397652554e7a57687562554a42626a594b74426a2b3975514c324876383457685a7467352f752b4161444a5a43694c44334b70612b56474e49336a563955494a552f524130636443764c73632b352f2b3466596e3737534b4e337a4f6b32555733322f734169313045473031744458686c5a67554d7144686f2f34455933442b47397a2f2b6b766c4d564c766e415964514976625543447a765349414744666a4a78777a6a336e336b3259684a4b7a774f79554f624c69397161384479646c433341697a764e2f5256546c655334412b344f386d36416d6f48554249347353417836384e2f7657496c7470675774454145577274386a7575664f41354f33507459415642385875716172596c4f6e515267556842376a5271452b3536396c36636a4c6273364a70754972576e4e5152686845796b74425a575551626b485938656d6d44497548586369644365496961644e78493976764a6a507736646e6b434f3156415076502f7347336e763052665a45795a36456e57474b35316b6b6e4b69694b645343427a39364857336b6842455175724577536446773632456e49612b466e70686b58575432754552724e49723577525854452b71736c5052514c6246384445723869554b5175767a41786839625a2f47486755434e624666546d6b52444d6f6e537245786b61444c756e33516537415672454e4a702b55774e4e384479316b48714838394c665049454c54535a62636a5877697a4648416f6d414f71306f307151536772786f356c5077773730595875537a4c5733655947485854532f2f2b644f302b7341532f67444e6d61382b526c71326c53456e41544f6d6e6f417168744d6644786e425a496b4e554942626a64774c767751305243315063506e426f45564f343670783433695365454633595854543442466d6b53303250444154345364765a4b61725565536b44675773544b474a50656e6b4b545a656342694f5159735772414143577176516d4a2b7752693332784b784d2b455a6e72446e5959435537336f75524e305849454c484b6754675151762f574442444d4c6b6c6174727062545a435467685439703073374751447a3839354252624e3572517432526a4874654e503579354778317834496b363837457a494c746a5163536e6477716135582b44524b2b396b3951665775794c416357566657434a485668416d6952585a7752327a586b5a4c79484b6277424b39524562596c6e445849536368624a436e534b424a5a7a6170377a653333347136584c6e7751534e772f454f2f344c67535054744a4a617374635477393653784562426b2f6d2f453744443969623152757159655745594e6979516845564351414e48356468526350506855685751506858596a4a75365176542b2f5a59412b4f7a686d774c597a393557585935346f7a554c586753377878396e6d67774545345945494b4a4b484b46767165665435472f757a6162724b36757949762b7a2b485666784176513677534f65374e5157384d6e307562436d4d6959634f5256454a635a6b2b6857354865534b546f6a724872467a394b593670754a6b6b4d686f487a306b55554c5878342b4e474d4458426b772b76714735695962706f4b4952495645464970726756785743494732587a6e7a76446b5268594e693965434c4263734754477655695a70774e57313247346251394c424a34396e33444f76486c77416d46496f51776747494e45576b3375656b707846447a3977474e342b656c336d4972424732733569626230696d33425168762b38666c4d53457a50454c45734d613063534730797a6a7a34564e47514173424e6a39364b6b59667431576b6970757262634d50457332425a41527a306b306b342f61727a4f42346c506767535173464d5844547163415374494e7436776f514a6d50336542324b51556e6a654e42454d61416a6134694e6749346c726c72774231524a6c365a78627457316b7474703434496a5465656c4c48436d4a6541654b6845736676512f505833493930784f6d2f5032504d4d717077547a46735779516a754342412f766930346465776975332f7836522f6370773561752f525535474449377577416e4b574c6d7045527671363147555650477669576543524a504a427453686d67474b506a613856425978546730706e4c767966636935497174494138537072634e72453435434e426148716c72496b6730594579666a774e742b34355a4c654a3842483743324262653943724134647555414b316257597347535370694f6a6e4e4f32772f4e636543566d5a2f44496e56514e2b684e6e6c444873504663646e654b6369624b7752376c66584859364278496c6d6739547947676e392f316235684b424b79374b3947504a464b4a4a47363664674c4b73734b7762424d7a3374364952597558594d3952517a46736141464744737758413170327347706a49304a71414c4659694d5839777453517772596f7443377568376f376337396f6c674c73344771784668664c64586234506935673062504d6d547358636f54414b6749454d79435243716e37574a5135564674745444726f564c66784c463148617964676b654b6f4c6155776666452f4963744a313064312b7a764177597233763853395639374667485870685266697459396e3470376e372b7555494e4230344e4c394a734e32516a6a2b7168396a306a6b6e4d58654e505368467779395076676a7839625663534837576a646668715873663567616841684a6c6a4435685045362f38584a636539674a69467169772f566c4d783548754551772b396c766c6d7845444157504866516a4b4c624d35564f6b43665a2f6e383745666165634132313944514b51634d555837324264736861616f324e67666a624b387a505a3233726b7a4f757834765835614f6b44504c766d6651616b52745047334a58726f447345627a4c324e414e3465667950454c5a7337725a4d6e6942313446483646754353662f7746667a37674a46366d366f7146697a5a2f7642556c7a6e466138656145677843536d68414c577478477275792b616367647562384c67514c432f613137432f51367745705a4a6c352b3877736b6b7a4c364634567731474844386338506c714b69316b75466477344370337444587161514a58706c427a2b594d42786c4f55542b7043576a42564e5773476956686164652b51537778424b796637364e534e4443543838366e414f344e61306d62727233517951744859596a49554f70772b2f764f6f766a4c437658742b44476539376e646c4f6b6d736d4e48557754727a3332592b536f426e35363677756366436f757a6b467076304b55397974426162383852494979704969436a4b43436b4a506947423137676d6c78726e6e7a357a4e59326345497047414d4d674f577938786e3955774a4a34302b42625a44665853457830666465336a364d47425a6550587a317747355458694b72766446386234625437305374537333753872454e697a5678742f6d2f523147576867724a6f56782f71684a74436a43656664666a5a46483077536c4a5232524d6f4f34647238546f534749747043466b727869314b2b765a4b4b6d36385068726e656668355154524b6a56786938506d7949432b63575a754f4b66543771415a584d636174795176726767367a4449456d587652484b4146464131346c61357a334c786b6a665261445a6a574a385953764a6a4344734b716c75532b4f576749354368423644734e5141337a336f47363273615564485179765154416b4f79796a75547a6b4e5a6b776d4e3367393166755963685977416736504a313145444e755452773348364730384a37387237336e6c466f476a46676f6b6a6f4158625750417645584177377557614e492f5569793336734e58564172304f7346715363627a342b68653848447a68714c31516b43336a306166656778536d68717573462f4f4e6f30546b776e5363642b705978436944353035784372374f58325669327653464d485479646e54636673326879416772504f6d704c64575a4e3732496c4a516c4e4e59644130575a4f68363463544b787372423037526173624d6a436b302b39445674326f4f6b47776f454750502f77685a447346435a644d674e365175654f796f366b774c416f4a6959554f41334c676d326d384d587235304d6e626f596239324b6e544a497765393563534d476f43316843777463724a654b6c6f77513864632f54654f50356d6679463135516748494e694d684a556d75794f6a66762b2f67444b6878577a312b4942466e6c385a2b7a355134546c614c76794b6256762f2b746e3035456b3848536a586532414a55567779534d33594d6a3455574b794f7736652f3850545750626b327767344d766f504834674e7931667a3074694c47684a592f6d62683632687734687758664f7658663845584c38356b482f4d58383135435168564c7537415751423954775633376e634a4266345864586c64557a365579324936425378612b696a46446930484634306e6278727a714b76545a3249706e4a6c32416d4250434b592f636a4e714442694e6c6d6a425967492b57795259794652587a442f7778564c3433427857704675783977483749726d744466655547534c4a4f45515665596b36612b56666b4468737371435a626a53674c3836342f42396e4c586b63674549436d4a46443635456259735578336953785556503174617776304b7343697836397661734f4d39395a434e33576366736f59684758676a383876524e79686f446631677165595250656a78654e435759364b674a4c41786166764435557854765147704e2b2f753667652f3370764a5179543641517050487a444245436a35556f4b64393833473675627153754d427366533455684a374c744850713438633138344d736e74617068383859744d4b3644575864502f654261436974432b6b68776445383935476f36746f6f484130434564646f307a675a596a73383634716576343676567a5952492f77777655753441316139356349426946777835575a384479686b56557963535249795a787470425a5479373353325876776f47546b38414c62302b444569534f6d6c69716b53647a3773695449484e394a5755584b566875345970377273614959772f6b71425935474645706a4174472f7743534538427430783944724478585a41676c344f646a6a3057656e6533616e6d4a396e76417a67623559367436783845576b5a4d46414e32305a447831344d6d4b556c427555687a2f4f6577555a595257664c613947754e584349306563772f61684671366b683839656e4573314d4351547a7a54505a696430625830444b6a625859713868672f434c736b4f524661666e5576476a42532b68306d79477846326c4b56744b61677732346d2f4e7874726248324e4e65496e6965506c5a434e5132495754615549494f4a445546566157506d596b66722f3155664155553058306f66574e312f755a4b724470334b4f76694b35714f6b6a3976674b324a336f79697473426e61585548324c30477344786d2b36623652767a7a77797249304848476c4c46494a4851384f65317a554c457173364c64635549546954582b303335364271513973384a4a58486a716754796f525738625471446a70582b7677727a46577a694452493149663366376b567a6d382f476954586a68745956494f536f4d522b47325631546763654b45345a683678414459696f716633504173476c717a6f6469742b4f573178324376666a6d385a4f446d4237594267366970334756474545535a7a573552366c3942553575462b735a476c4258484f705957727264493450665a35352f444355574263417853494f624b4b58634d435149677a645a772f4e6766516a4c44444553386f715047466c7a6e4b4d4e53456e6839305274495348486d4742454a745756544d36343539694c49746f71535557576f57724b474f7847722b554538394f367a6b4b427a746d2f646b685634354c7a62344244597a4a34474d796f4b68304d704739636465686f4370726445645544384e6f70524f5135314d6c49514e3354637675515651526d565a4b694f6a476e5833496b74487937685a656a3036672f786a7a566649785449686c5a566836636d583835765a4d695242324c4e76455749744b53594a4d716570477a6769595a50554a47496f3634356a6c454665666a466f6164442f576f39624564446a574c69744c6e5059636a4155717972716b4e7a57354c39615573794d662b6b7935473975526d615a434e4538545543636c56466d46494e716f31415549656a53736735644638632b2b526a4c6a643461384469425a2f64686f717a383647535336624a365074344a57785a394d766b5a626766782b72577765785667455864596a62564e2b476648327943343652773774517861476731385069307a7a6b4d355a5669754947546276785274305246556a466d5741544837542b5976524261437649416b3251382f737063664c3361675733617349304548767a6c52435230344f643376734f544e5a6f56516d3139453243726c497645525763636a4d4e485a4f435a6d557677346a3958776c49434f475a6b474a65666535546f5073506b623163364141416741456c45515651546c34696a6c496b6b643450435935534c4531514c55586b6f36497130625a5531644277304e4452694f5456436a5756414a692b4c414b75622b6a7a796248357a3636503435422b7a716645565a44654c794371615470444c573637373430305963656877554364693875374f474830636f6c4957464375496c78644d782b6e376e514446647042434b78356250414f576f694e71536268382f4d6c41577753714c655052526138684b635535516644567632626a35562f3844684b42654579446c44515274566c30756a303231576f6d63644f53567842794a334a457462467659516e4f4c6a6b554a72324c43302f47754a2b657a41534735726c4c4d50506e392f4231784373562b766830372f5150567444424352382f69554f47444553574a65486e70654f526d564934693075657a78554c70694e533367667a56717a6c6a77755262386b75706d726836344f49396944695955524c4a654647696c387061684a61794947736d464256475a4e6e76776c6b39584674764c576e52503676597257692b6f4a632f6942743053495939746861794b43506a5139593231734b397972416f74523454554d536233367746705a6a3471656e6a55464469346e667662436f585a32676e51585662537a4c69305a6f75486a7133696a4b70425a616c4d345739414d437272742f2f322f55745956686d3154416e4d496a747832424b32365a6a69596c685036616a594d50337750507a6c6746326259515679546365644868794d325163644564303648624776494354586a696e6a4e4636792f5033614d4d46644573654d6c4b697977434c4c716f79424979373874747674433136514c39666c50314a717974574163374977764b6467434c5043796958353034386d516d58314a6967545a61494e4c567946505351776b382b2b6c3053493642594b754e6e7878364a69516e43466e5238637a6956334842714e4f344b7a50392f736e4672794d684e534e6779376a38344e4d41673951725a4477302f32576b6c43536f4c664f31683536437a4c6a6f72487a39693438787144393678755675557a4f3675675664746e48746768635273693145416a494f4739775843524d3450584e2f6a72555a6d6f567a5a7233494d6241564c3779424c78393658766a4c4842436e776d555278794f4d7a746937484c65382f6a42756e33416d6c50574e6772524b4158544a5244777a695074587659635056713644785555346f6c71413769334c4e4c426b346e6c387a785452497076494b744554674b78734661595a6836493461497645634d623844394d6937643073375778677a5438655250544e3637686d4d336e5132656837396c2f6142624e39443276626b4e567241497534556f5a6a6f616f756862632f574d4e71416565664e686f4e6351652f666d61422b4a713778623165346643323073735555377274676f4d52596d30527432615169556b53626e6e6f4c62547159646957436a325677746878685a692f7342624a52424e2b632f63507358446546767a6c483539783679387163626e37786d5078717a7666514b7375493556717755752f50593244776353694e376d74425547546a4e706d43772f2b396d5555462b6568754451624f646d3547447130464c47776a46684935656552725a53496d36527442466a5537485839686f3277794d4d4b5265466f455634533070497366564f5a325337682b4a452f5145694b7468646d303454334f5079475a4f4446785738534c78316e6a663042776e59476579415a5a524538504f50502b4e6d6f3033677472636b4f6373594f773757503334716772754c61673666794a4363517548666533324570704a63763452666a546f4b474d4851376855632b654256586a352b4d4443584d344d69566a7a49516c777863392b6d4c69436b3278677a74682f575639646a536e4d4366396a744431415571466b372f35472b3872503733727835456373616e334a5344694b6e456b784b4d4d6f6b54743046615a7170554443314273304a6f56596e68626b495a6b494f625033304e483635647a33574c33462b5233354667655131704d76446844383458586858706a52467a586a4552444e6c514e424f614b6945554d444875726a75526379786c5138577a746f2b68396d79684b4376362f4b726836472f58515545624d753963417353476931666868363632353244314875496f7066674e697a777348572b2f33786d773776334c51724630344361646e59736a4f692b7850484179384d4156343245775434676466445979426431766675527474424267555372634970363141555650345a36626a6b4a4d7454427a5953332b4e76304c5677624c526d36656975704b616d34425048486638636a696b684e6957744753533367346b714e692f706f4758486e4844493770364462564f715a455a704249715352786b72527879566c373437495452335a4a476b68592b745658714739756770535641345269734654537078644c6e6654353453334557746333346349544c2b5959337043685137466d78536f7548784753684541304a346870372f77644a2b393749676532465332464a2b5a5175557772626a766852695133626d594f56474f71435539392b5338304e385a783538537a4744683042626a72303564454e594769346466486e497455545374304b346d43595150517571715379313149785a504f6f634a47716b4443433676656778505838666e4753706973774244416e2f63374131484c687170594f506e6a76774b4245463438386778454732336d674648776d336858464c2b434c417067694870413536563352752b374d6544674478732f7873615569633833454a5643526f724154614b3359434d6a464d62496b6a7938652b2f6a61486e6b426369794255317a324c4e534e524f71526b316c54576842453771713434667a567159467a46306541372f476a6b544f3068763252476c69476153416871702b42324c4956652b7a576766567234716254452f362b4169576a6d433978734d6934434841716b344472504e4f48593347704950622f7a4448425378765947306a702b7a4b6a6d51455464783579524863424a564c5a6b543069485751626e37776662526151646732316174525a32556435352b795030594f6f7269526754666e627347304e373645545978744c734b3275527a6e3942504b636349686734576e354a446649494c45504c5563344c6c2f663462665037384973685242696e5330434f456b30744f694568455a68706e4372322f61483065504b6573304f65676169785974596b3657476332415134436c614178595861566d504c70697741376a68324f4f5264534a636f7a464e676b6952457949512b32536a54483737344d463835614147747566653838314748587367514253794c4a697548432f347846307774426c452f642f38437a4d594253336a7a755a765335443033444870394e59576f616f4762654e4f5145684a34714162544b5963456b4f4d617263476d793631764d72583045714c78656672317650447131466652726c414234665051575a69674a46746a42317a6774515a413354397075436b42506b4c4a35437643686576676e70462b61565352615452416e6b7233727665655474585970567a573359324e7147654a7a4b6959516e46704156444d2f4c515275497a4c734f6d3337315277512f57415248635a44496a654377793336455659383969704269754d426c4933544d4433484137512b77522b5a2b77744c714157695a44437937395741554e3377425757314457383551464e33326c6275504b2b44596a6b3965644649734550334e645542376a5551793161445a467172726b336a372f64554d444f65644f675a4e53527533504459506a6d5330542b43756361794f77445a6c71527763636343654f4f6e675174697936464e4963526d715a544e6b433763392b42466154526b477064564e42514e4c4856783835714643546c6e534d65506a4b767839356e4b6d496e43327a395252334365432b3636624342553674342b6e31447037624f3767395261655649684c4a544d4d6c445a6c49573345347861616d704c346375553648444e754b4349524e37585a446c73793573795a41793055516a49596852534b774645706c695357663931524f494b57686a2f632b52672b6e76345250786572706e6f666671367a644a6c6e456f57355466787034527577694a624259744571376a6e706373545831634e5164475474555979626e2f6b44626831334d6c5462674a4b646852732b6545596f744d4c424c773834425a6d706f476a735155524d4f6b4e32446870727479425845344a34307a613967316b627172693976636d6b574d71574276476e66582b4d4b4a634e36546a6e3037396a394f422b75473345435643724578795449754970675a4f516b534735476b7030574f7846685779675a4d6f45375065724b374370725257474a597174633755517867374d782b4b4e6461684e706b434a476c434763504b46474e536367716f4269716f7a47566854577841495341687156497a6f344e44336c7a4c686c6a687559684e46524d79356b32537376656359354732614455644e49523551305066754f6b41696856693362724d396b74725a372f584271734d43766362446f6a565930685a42647746594e674e5751384c452f2f31324c674d57736332357a3644484150636f4470536d6c346e763541426d43722b34394841555a744a5549443455545671754f6d535034762f756e51586443554358444154734a6a787779346d4153654a38394a585538637037465a6a2b33686f474c4f4a3942637836505047624d7945626c6c4234494e61434739735837477033364c4e2b764a426f4a76472b6a755957516b6e437261594462437252465a755178354577642b3563614e544d4e5a4974536e4e6f655553463255525a36495a7a52704d73716d586a354432506869595275446e634552345554436565477466704562314d787a6d3358496f445468335062644163356c773579457071754f54677156416f4a756a6f654f437a643348546d424d45594f566b34396f506e6d712f773465505052644f6a6337324733583847447a386c2f737859653866514e33537850514757725a652b396b304a457762556374433259422b584d69386573304750485877325677393043516c4d6131354c6f50547255656668345a357139683749326f455a516546694b494e54564b514d57355031432f366975382f364d6a4950667434444c31304b73656b7870583252555a51777277564e6169317964755347587a793438315965754a504556454d4b4b71466f4b627a5570434169355176676b4767735538574a6b313748346f573547754c71426c7435446e5a575062515753696f2b447369736f4e344b497a63752b705a42594f33646e7a79337266765557304c70487356594b55636f6a556b4f674e576d346b624835306c4e4a616f41334f6e546a636437726a4765547352345033316459637761353258564735676c374b456a6d7a69366e746d775a61434d4b306d2f4f726d5363696737732f7464414d48723779336867474c3343654470457a754f4134784b516c4a43764b31526379734d7a65617674506b475841586151496143713454674c6f4c4e514955496d31534761457478487662415973384d764b775a4f704f484d3242484936793541794c4562727337363644672f6856744a43363973547a304668426d5451624a3032656a426d76764d594b5534546e704643674949556e35372f4a73527461446850426b2b35526334444c3970324d474752574d376a7132542f676e724f765141774f576749616270333748445462516e35574267364b786a43782b41674745454e4b3449315662324871344f50352b596939626a6732726c2f34456770796f7868636d494e6c472b75787672555a476130576e70747741594e703856456a634f657276324f503949344a4636426830556f2b6e6a78446a6436506d2f464e776349446a624e775257777343734d5a496a746f4f3467646577416d50337762724a4343727973624f616a4f6b557a48674b3470714c6a3846685373574d626546416661745251437167365a346c65616a4a4469594e6866586b646d3257416859736965717867764b567648686b656e6f6d5464503967376f35734d336c30424b31684d2b715175563876336f5870716756344457415145564564593035447174435373617a4e7777304f664d444751717a686356553132364631744b4270386c4c5553394145646a39383669626c472f482f74674355784a65436d6839364261557534374c776a555a77705042695042552f37762f7265616b782f627930736b6a45355978774f474a344a677a4a50486b58423556756c74364e584178704f7650423568484c694b4d374978714342413142636c496339687063694b796f6a6f44694942685249466c464c4f3253486163496f696f5a5a73325a424973444b794245384c5061776948765530594536666342346742564f414f6366644b4949636b4e476e357763704f706265546c4e543559374d412b33762f49344c446e4635466d4b44776b705077664c336c6d414636352f454c4b6b514975456f53634e467268726b307a3837764f584d616f7348786c75366e48436f4f4d67317a5478424334624e5151624671396d786a6a5641746f68423639556663413875666557723464754756426c42624e752f4132327650636c5a4e76426e5238396837777866526d777268783545744d56574a335631537a54584f38306f6470346f4f34547a507436413659646552594b53496d4236695156423971345054446c7463667735647061424745684a7a4d4c7761694739545656714a35304a767077634e31474b474168474e41686b3763564d4b476f4b6d7a567763482f58414c49784b4f794f415a474a6571476b634c617577354165663179574d454546465743664e55434b41566a4f73555a2f645267542b477146386e4c634e445a4d7247705065687534507970593144625a75506e393733503035775a335a7a4c4670364f376571744d31525252744142536a4a4e50487a4e44786e574846754141354548765270456f694b5153715a6a306c45646d5437766c63514e46624d58723861717465747730576b5475416b464c58324968456d784b664b79756d374e4b526b6e582f6f7954464a746b4d4142646972526761584274417759696f3242665a72783673506e77585435574e343536446e497738724c793064702b554373724e67414e527842566e34683174585562364e325569784a71447a6e76416d6e5147306b7952514e687835774142624d576367634e737071336650715977695546334f4d682f7939644d395143596478342f446a454a42492b35506965315338513747394a4435702b34534c68636d653541387557726b4a7434382b415a59533461776e2f593445394968412b714f627a38584536383743676d58563043554a65524667332f37466d4e706e48504c734d48544a77684e62506f4963704a776563476e5a55596a56473879414634416c414652544656513743567a36326576596b4e49524d6d7938663879357947314c77694a70665556463235426958506275633178452f75485871354355466551364b5777383454516f51526e686f4957516d6b4934515071474f69544668714a4969457a2b4d6661383445356543744c4879615143364f51475646302f446c6e7946745a43744751467365732f41506f6379466c67756c667876783165664d2b6e62652f6473396434574178594e69304a79634d69576f4f423830386267376f32427866662f6a616755567947434952694d4643776c52646e464978314e592f6f612f7a443855573438506778504c4759656b412f476244594a2b7451416e554445365a4c766b7750354876384a79486d5234307336457a43342b6c4f6b726d7951634c464e2f774a7257595175716c424a7849586552444546364b6773324e687775676333486639555a41347739697832616146525a393968754b535968546e46794353455547644c5748706d6f3077534747303238324e766b67793476567833444478544a59324a6d36593468425a6c7051705450782b7758516b464d72325565784b50457637356b68343938486e734f4435743967374e5755716f705a67576d32596c5a7a4e653962724f6a35627578626a6877354430396f616e4474364b6f4e457a4251784d38744a34596d4b6a37476f71706f42592f5341496852704d74624f585946376a7a3648377957564c6548783952384b3454784a7773384754554a3453344c2f664e7a396c325078737a4e522f2f56714247516257374b444f504b4e502f4c397842514a68355758346f475278304f7062554b59534c474b42485649662f7a3033622f6730383356474a5258677643364e66686b79673942526163427a55465970535568426642546b496d6770696b594f32304a45417744556f547675654a504679433637435745315254726f546d6b3433586a353341796834746d4a653579735773443364344c517a312f386c3446574a31355741624f4f3355664e43516c584844624f36794f774f556d586f6c4c6834526f653563596d735a2f754f566f394d7357594d454178396768684f3449504252463557796b516d42455a545464306d6734336366654557655371483059776438324143744161587733633067645855785a35356957625166526c704a52337871487243625250794f6a5852545047774b5759654b7270557552583143416f767838424349687a466d3241556c5a363651507636306851365576312b34334262596534457962516b4634323451686d3368732f7174496175527469624b573949324335544537697638373846536f31507943752f47516d564a34742f556a4c4679334369565a2b536a4b79654c6177336457724d4537393037443270662b4c5352685a4f446532612f694b37554e5a546c5a474630554930634f57316173786455485445576d51366b4f344c66316377434e6970784534754f5338714f51325767792b442f59384147754b70364158454e4278444c51637542513750656258794133484d4b596667577355556a6e654f61496e38425976494c424a364146454a3679503035372b4735736249716a38634e2f592f4d767230647230454a2b6351366b707333514641754b536b74436f44553767674f6658673748714d472f623532436b59324c454356706d354249666d777132782f6c50364d6c4c583149424c2f4f70796e30484b433637746c7241497338462f4b614b6876536775355439304a54496f41704e37344e6d5a633162714d485259692f7058734d504d7773473950766d775346327154772f4251716b35546d4a79333432782f384744706c365253645061584d7a4267476c325768704b67494a595639554a49585249676f526937484b4d4e4d774f52364e5a6b44384d784e6f73413652584e6356303951477a7a55457a2b704b617658396b4b4148415750365859387a552f764e64746f53375268772f4b564b43776f52454668587a6a524d44355a746c4573534f53746855383665576675386e4c3557335078352b7366456630704b4c4d6f3239434746754b65762f32657756506f4e6767507979497653724a517249617752316b5254686b324358716c776645746f686b59696f6d48467a364c4d594d4859555639453271616d2b456b5570414441657856566f7166444a71495143307831435545364b4530576d796144435463717373694c536f7179485a7778617550597441526f3975686b717a7a382f314f524d3779466953734a4536352f77613864665039626e44625270387a6a38455a6a393743586f2f345a49694e2f767a58536564422b6d494663552f6861424c4b372f773552703979417235343876646f66654a52534e6b4279486f6249674548675941424b4459303259595569304a7a6b6767456d784253624e614e6c304d474e76666442344f762b4141495a49677274445064643336792b6b66326f68695749476d617147704d6f7a56346748584457307861354a594e464a436d44424e4e516e64456335306578624f4d424636392f7a696f43736e446947574c554369315556466e3472645066385971707052423077324b4c3856684f30516970536d6e30446f546a6d55696e69527047614a4870706a306d4a73565262392b4d5a515079455866766e3351747a41506554484a46512f3149683430584156316b2f4f4c724435416a53756f4537554154766f3372796d44474e77324e6d3275527475574f75546e35534d767278693171525357626d37744557433164365a424546654d496f45396f677151364b6d4e7361662f41464f752b676b636d627772756963527a7775594273594f4c5764765a6536795a526a666478416d46683474596c614b696276656542726a78772f4372496f74534d5662576643674d447348512f706c4d2f43304e566e346162386a75644f4d784a51523872594537307454464b684554374553654b4a794668536d6c6e52457a6d696671726c4c3866697835794f68714969596f6a5348336a33746566574b6d55414241596a4c4b327376484b646b7234306e526836426243504267665734436b785a4d68754c6676384832483937474772416755622f4b545a6b4c516c46735241494f454b6658565552434362597932774a394d47416d392b43306d6450706f2b3053303737355056646772653979735071436c6a6e5439304c6a636b41547233754c55694b694d4e51566f745a3450543164506c592f464f524d61435067516576506849424f6341546a597069334f495a7a506d3847692b3976596131784c6b7a446a577a7347326b544e4769693777717935545a79365059465a576d554d7165596d53305039635757685a306e57493342456b4f444e4f43535546354b5936514b69455744574e412f3734345948675765327a46686653544e4d4f465567443148307a7677454a4175574839577251314e714730627a2f6b3578626971357061314f673059636e443267616a337831615249696c6a645367727468334373753630484c7773666c766f4a34306a784748356d6977434c527343775552446675556c5443347a463232466d4d486c794569532f6a4a6b57646a2b62783175504a50393244595558736a5963565232397a4d54575432477a594949644c30417243675968305363524e44732f4c5238766b4b765037345837487777303941516a6630446f365a4d686e6e336e734e6c4a78416538396172303868303851347377733863765a31754f692b4f2f476245524f67576a6161516a4c6b6b6d7a632f646d62484b5073796e49696f4b51332b6457616c566877374a6b6f43696167716735473350397268484f6a57483756475969714475534167315249516b51316f415a53734d6b54443461675a5763693638446a6b4876554255426b443444554e4e6737546275534431672b594f324942636a376f4b42376458306362373950326b6370584844614b44516d565a78362f5674632f304a65416e334c4b57314f7978645234532b306d5769476e50574467546a3573464a42314f7a535a6f7443587177506c624c52314a7245386c56727357724e576c54565a334e622b7061574a47773548796b57774b5142335161447546695778504c456c415177625231476b764b4d727561565451424839793259574161566d396d3063425364654c67366835714174695877336c4e6e497a64474858394577545376514377625879356544457557554435674d4349354f566859735a457a6b73796d2f3859794e6247446d584a777738476e4965424937506e63756542565871595a30424630464751714e76595a576f6f774632324c706876634139414232674238766d596a77733174734c4e4b554a327335546f38545a467755486b5a7a2b74566d787578656c4d5677734567686863556f32394f684f382f765646592b6f724b2b7a4e7a3574772b6741514e686953686f72454671796f336337526f2f4e42796f645351336e61356d32656d38356d476759527449645a636a356c48483431674f4946455268352b384e5a736f4b3146424e55563471433536633332774c6e4c4833614c7054754e53572f5844754a37787870305277617676322b374258714e683057445732636546735777434c4353754f433030576769774c72684c64626e686b4f7846757161544b416c52686c6c4145565a696f4a6658333859427564536c4a30796571344f6c517463584b4c44537744653277552f7437456f6c653549426b784a59314a68536763535352743172536d73584632464a563957596558364b7453334a4a4179564a6845633442584930685a514f7234624d456b6271734c574c776b4a424b3159794756536d4c4f33793545524b626c61416467455867736d72384167584149536a51446a55534a6b4b6a4f6a70354a6c4f62305a4a4e6b425a654d4f51364f6f2b443168624e5135545177623431496d534e4b3839452f466d594370394154637864706a6f79566a584773717471495930594d78656f32433673717477425741715846685269654757486c672b57314456685657344f52417761695834684b6c64332b716a73516d7559365554695938395536574d4577796b75795552344e413053775a5a307972577359734e764839764a337963554c38645a6c5a3250434862636a3434695447663035732b7646434e49443535376e314e5755585a33586e706d364a362b6a562b2f547177444c5946714435324631413168456b575346545349744370594d2f5a6e69563051366665505878794c416f6e714345532f5930474a6b436758516a67575a61486e516f52784a784570612b7256375a6d6e4c42517173633553475a5a70464e6f3136524a416f6155757a68627145695256724e6d50522f4b2b78616c55314e7159634e42434230314a673243535437474452617863417963525763727a7a35383644476f724344476b77413145594b7057446b49787852776e53396d5941423666645a2b4f69624965345944724349515548444f7a4c6758464f554c415a524453626e6e78646254315762577043566b4566586a725662576d445a6c6b345a46674a363537543932463155794d71716d7152487774693749442b505a2b494c686977584449634a4f4e7868434a52664657784555503739304f30665357322f6154433168635542337048746251324969755779652b6d7269324668657658515464534f477276765a6e4e6e34373333695733596c6135393971755a4e767a702f5433374d5943765161774f706a754648515848745a50543973627a556b4e5532365979584f4e694b5055784a4d3242697a754745786c4c424c4353684f657533307966325470377832415a614d4e4b683737383279456f776f47392b2b44666e324a5170434a634269496b4a766a62705a74754f6f4f564e2f6d466279536c416c487a39703943767162615050416a645a6857555a3774497a707146772b4a50596e5434394f705a4c43615271507a46743766445237466f4c52444a69552f67706c774659704974547a4a676643587853613965526c6b4872437145456c7941745159544a745872355337456c4c774958724e6b4652516d6871533643307442444e64585851645230484475724c4535326f487057744f723761554947696e417a73585654456d756b39547665376e4463696853534d464c5a73336f7969346d4a6f6969696745675348644f6a70366477585437536c766736787a437973623071697171594765773464694e6e4c313150434576734f374939432b6f4e4c7664676d39584e3734554866322b727043396c7176313444574d526554396e45644366696144706771546a3578706c63577963415337674c42466745636752596c476b6132672b3439394b4a7a46366e4f496258516f74416f733155634d66447332435359674e44697732544f396f4559446d6b774f42415435452b755936735742525a57574555396f6c692b4b4143444f79666a5668455254436b43732f44466f44454b31543248366a6b5458522b6f53554c65313855724b646d72737a6b7069495a416c4468395858645070343143334a474a70786746457141744c424563346b65424c4453546d5778584575324673422b41307559506335787662534a523364486d6441506c697844496853463749686961434b5a44696e4d77364463434d65336149497662366848513330535938704c4b4a6e594b566256343546734f366a63584950386f6b4c7833467a62534c625979664f6c585468706d5377474f4866355273524e42785a78394967725a357359554e69486c55387a4e51556c32624632443576746b623735674e586a56376b6a4f2f597177474c46555a61583252356743664d52595046586c4c76343270683856416c2b644d514949574b58426c6a456d3170644763646a30785a7a726f6c61623948536b414c6c516a52515a416c4a526b5a307478467364674968696e735234466c4d574156534b594e464152335452453559526b6c4a4876723279384b6773694c73505467626d64455141707147694a7a6b624b626a61427a446f71374d6c753135504232766e2b4a64732b664f6852544c41454a5253466f4d746b72436454536265713449514e633465456770737433657170315a59514934472f5555366c71535746505842703151315352674e3344496f444a753242414d434f49444d64764c532f6f694e7841512f6d4d5034326a664e4b69396a6b626674463950666b2f3375625a7949315933475568535270686a6d494b2b34524742365a6e324b533969326b584e6c6b30595846724731416c2f2b323474304b734169344c753159336239724349452b5847326a73426c696f42762f76466b53674a436633327a6f416c6f623475686355726172423233536173726d786c67546b4b6c4c6647553543444763794170375a69724752705565436341756c4a4f4c6277346f6a4f514b783579775358793143577a585353444870553953735a52483149776e42434d4179446a3657346b556c384c694a4954696a484e55566a49416f414141306953555242564263663236576756705158555974364437426b4c51704859564868725251684f67387a4c7a2f6e4e62386749716945665965564d6d414c525371677271455275546e5a2b48546452693639305a4d793474777a55634c67507353716c324532316d4e6753514570665748686c3074777746366a4f513749687161757341785933594f6e522f596c6e684e7439665831794d30567262432b793433676e4a357877355a36664c3235455a5963344177774c63655a4f73455a51664b384c657a544e77386c736134794d642f6c33665875632f636177434a7668344369716a336f727273784c466f5343716137304f756d5944526c4351565a6c43614e5a6a74343775366a455758524f624575362b69717a502f417643794b3778426c5144526f45513157545572763230426a69345556565331597637454736396476784c714b526d7a5946456367484f584f7768535049584536346d7152413651374356483659775667324d53414a383457305277493148544f454a496d756d5870754f436b506648544b6674734256694759654c5442664d6852324b7777356d517452416b4b737832715a37624776713073434b7851476f5747795436776542536349745031375553484445446d6872415a315631554e6f4d70434968314455334d5964676345454f4e6c5457594f434149677a49434b49684755646461794d473578654c2f6f4270456a37667444684e7236314d563744594c645057415a4941336c68654163304f75654171534b79733143465a794938432b6345672b75626c6359394c507a7a313362365a586756596c6b6b656c6b647236414373553235346d326b4472486a70637138346873554678673669696f556e376a34614756774954524e5846437254356b306f6a6a576c525959385354324b363752725846484157645451754634463861626f6930334263345570437730744f716f334e75447244545659566c474e3965736155566e567a4c7970684579656c675a754b7333615854596377385a3956782b4443574f4c3270746f65454d6d6c5572683034554c6f6355795959637a4948507a4363464c39345364757734766669724a516859706235626c493077467762775467625567744a6f36435a2f4b575044566370514f47496976313164416c31586b5a6565674e5a3541504248482f73504c6b616c49574c356850516158396b664d6c587670704266597a657875616d70434c425954696866636f7177424f546b356272737a77593362665a766f4f456d4a6a66705741312b74577739546c68454d42464261556f79612b6d6f4d3756754d5431657552714557777069426c4f6e63466752766a7a6d3676642f784b457437354f33784a37717a7a662f577362304b73476a7056566d5877447366726d474a33764e504a523657684b6b3376736e384a536f52704f4137665361447846656968672b774d536766655043614356512b4a726230474259724e477837504b5548776b564456414556744b54774f467369355330615944447753554a726935596844696b71734a774c535a6e4976467873536b6777444b43717367374c566c626934454f476f53424c5a584274357969366b33335a6968584d77624a4345636971364a626a35663236546e7861386752564136503639304e686d4a5a4259714d4541506d4c564477656f4737544472447779362b77313467396f636b53466d2b6f513232626a70427349326a7047444f386e45474f6c71316372736967764c583334594538452b37646565375a674d565875655a53504a454166644771613364743371573854347a706864784569304e686136394d3050336462727939335757472f35727269486e546e5a374a6638307437726f62386549684658564a7650765263695a356e6e764b6144516e6764502f37312f4d4c524b4a4c384650306843455973744961544c4f4f6d3449666e5249582f613461444f39586f54753758566e51712f7853587166514c3448463931497a63446236492b69504d51444c6671646b4348324a7176584b46584d45592f344a445153544771306d756264655a6e46367570715647375943436b636752324f415771594e65465a71464143644c644d68544b546d6d52672f30476c7941697148447a324d4a69313169566763333044386e4a7a6b4b4c5349696749534a51394d3148565975434c796e712b707a456c2b656958475741415a357a714d6e7539753934614b4e7437706e4c474c32366b4549714564694174734f76475366715a327348662f636476386c2b364f356266583566623235365035474a6778396a776a2b316b67563448574f767243624357515a4a552f4f535530653142355059765a7274354f6e6842354e2b6f615278454472796d6d62453777504c4b394552786441667774414e576c3446493261664f656c6764576c56382f6d326b79626e6b714a7466456c43755862734f6d32727249424e5968634e77464e4a7363727344536e51636f456f47437149426a436b745a6b6e6954696a446c78565a5463584e6d744978587542395a634d57724b787152463467684c47442b7a4e74675367585875616970387333426c6a4c3568686566564d6a436e5037374f616c333363446550355a64373046656831675664596c4d664f545a61537168764f6e374330386d445337706e39566861644346416344697430686a4e635650394942797a755864783779522f6972795653713767583636506465416134414a2b46686552763754326b336d6636464a734479537241376665456c4363752b2f68714e38546873616a7752444d456d4434764b637668637850577973466435416670467732346757616a4565356379545a325643447179654d4b506f317247685375726d4b4d30614541666c455243444662737371666461453842692b4a69314463784767346a71675839775057756e2b662f4d326673645943317154614a747a355a44744d4a63466f3966616e5639613179457977376a6e4e2b644241766b7a79676f4c694d31344b4c3142613657777149344c57376650534559644b57684632506f66335a4733504270414f30424f2b64662b393561756b4862775743416d3449397859735741425455574348497042435952684b6942306f6f6857454a4173483746474f4543756564746673712f7378337162626d4c396946624a694d6577356f4d533169794336386e5854304c536e6745584a41654b586b617950762f6b57324a3446656831674e54516c384e3773356243644345764b4547584163776f345935646d4c61496d614443526e3645684a7a75412f5078385a47646e49524149516c564661513333725775503133534f547443354f43376c4271343568725774745a31586a306a644672794e62305a34504e7543317132394e75384a4647342b49596643734d4d5258684a4b434c476351762b634750596f796b306a4f6d362f356f356f4470517032316862697a5662746d446b6b4d484930616737633571787669486137484733746f7266654253487443436335374832465044384b6435374c4e4272414974654b644547644b4d564b5631484d696c345759494b4b4e5a733652334378615252754347466f52746f626d6c42577a794f5a434c4258436a4c4e7048536b7769467767674767357836702f2f7938764a34475a5665464e3052774f3441724b32443648522f336a3234303170774b4e692f3667785961514637317472614f7342462f7a526e397165515169485934534473634251525238506f505159675735576f74334b617150453346516e4c574c313250554b35326569586c536e366448536a4b37573961554f31684946417a376e672f31482b56652b5a2f392b374a2b3156674357384563454146356f68394c2f6574312f49794b513751454a3454385364694238556a38645a745a546279384e4267745152624a765a3538785935314962597135547559316769524d4978574a52354f5431595a5a324d42794770716d69635957627271647a744464764a56664757337936416e6f43734c715075347637367835775a732b617a344346614269426949614a65777a6e4f6b436950346a414f50742b337a686f44634f43526b562f2f755a6234443973675634465742375a7036644c6a76546c6c6741716b77484b5577306c6f4b4c2f504f424a4a70507476366657353770756f43326c49365762724a424a484b7155547070625642544d49583357335970476f377a637a4d334f525451613433694f3651496533344d624d4775506d36554e6d713042537741655164697357624f68686a4e516b702b504555504b5251655862756747337a5147365a6b396750326d666633662b7862344c6933514b77467252777a71675a734858756c786c5852416f795750782f5869396c3232684b527434624f4b6a6141536d614371385a4a78383659716c684f6d3246694d346b724577614c6151704a4e4e6f5533523842496a48756d675570414c4278445155452b4972454d52474e5277514d6a6a536f33754535537a4f30627437656e5a4145775a2b3438464261586f4b7876502b526b52466e7030393938433379664c64444c414f7537663158745330454747786b56395933735a5356744234324e44527a37476c6b3245474762764377544b6338726335556436506845536d665a6d4c5a6b33465737464d48397045376b566f6d6c6e756e76564c35436636656c5a6d5a6d4a694c524b4d6654534e4f4c2b68457558626f4d52555646347665784b4d76582b4a747667652b7a42587a41327356764c7930437851584e537a63315957506a5a71517347526c4f456766744e594a463746544868473236656c6375335947384c476f365163306e6948314f42635a4d79374a4d426968576169425a47716f394a4155497730513854704a35496d42504778647475394c4f6b5567454f526e5a374e6d46773045716766513333774c6661777634674c574c5831383759446c4178655a61664c326c445a5a714955655673642f674d72653343774757364b784461304b4f5a6c47416e7539467145556f4c444644533076714f64685a6a746d676d426a334a7851337a38653679305150754279545044415a6d716f69456f35414466727277563338717633542f516373344150576638446f3339556c5065424c4c3639684b5a51304f5a66763674722b6558304c3741344c2b49433147367963766b7a384c69394858745a586c525559554e495047645348505932642f313165317a2b33623448645a51456673486158705866446454684c36556f6b2b417641335742772f784b373351492b594f31326b2f7358394333675732426e4c654144317335617a6a2f4f743442766764317541522b776472764a2f51763646764174734c4d57384146725a79336e482b6462774c664162726541443169373365542b4258304c2b42625957517634674c577a6c764f50387933675732433357384148724e317563762b4376675638432b797342587a41326c6e4c2b63663546764174734e737434415057626a6535663048664172344664745943506d4474724f58383433774c2b42625937526277415775336d39792f6f4738423377493761774566734862576376357876675638432b7832432f69417464744e376c2f5174344276675a3231674139594f3273352f7a6a664172344664727346664d4461375362334c2b6862774c66417a6c724142367964745a782f6e47384233774b3733514c66433844364e684b2f327a7657367a797a323633755839433367472b426e624c41667a31676557327a71466466694c6f5964374d524b4b56534b5735783566554e704f4e61576c7034627a71575773696e677866314561534e397463306261654d35782f6b57384333774f363177483831594248414a42494a454c685163314c717235652b5564737241694d43484f725235774751423149654b4246345a57526b64414973722b30386e5a64362b766d646a58667677504f76356c74675a797a775877315939454464745a5833504b58362b6e706b5a5757316731573641636a6a3874724930372f4859724774757363304e5458783864396d79626b7a52766550385333675732446e4c50426644316a6265367a75774f7962396b39764e62397a4a764f5038693367572b412f5a5948764e574474714e4638543270484c65627637317667763873432f772f4d582b54772f543153684141414141424a52553545726b4a6767673d3d, '2021-02-08 07:56:14');
-- --------------------------------------------------------
--
-- Table structure for table `li_normal_posts`
--
CREATE TABLE `li_normal_posts` (
`np_id` int(11) NOT NULL,
`class_id` int(11) DEFAULT NULL COMMENT 'reference from class table, null if posted from homepage',
`p_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'post content .. Atachments and such' CHECK (json_valid(`p_content`))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_posts`
--
CREATE TABLE `li_posts` (
`p_id` int(11) NOT NULL COMMENT 'Primary key',
`user_id` int(11) NOT NULL COMMENT 'Foreign key from users table',
`post_info_ref_id` int(11) NOT NULL COMMENT 'Reference from either normal_post table or tasks table',
`post_ref_type` tinyint(4) NOT NULL COMMENT '0 = normal post, 1 = tasks',
`spa_id` int(11) NOT NULL COMMENT 'FK from settings_post_availability',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_posts`
--
INSERT INTO `li_posts` (`p_id`, `user_id`, `post_info_ref_id`, `post_ref_type`, `spa_id`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(229, 109, 107, 1, 0, '2021-02-07 21:22:28', '2021-02-07 21:22:28'),
(230, 109, 108, 1, 0, '2021-02-07 23:37:55', '2021-02-07 23:37:55'),
(231, 109, 109, 1, 0, '2021-02-07 23:40:51', '2021-02-07 23:40:51'),
(232, 109, 110, 1, 0, '2021-02-08 01:51:53', '2021-02-08 01:51:53'),
(233, 109, 111, 1, 0, '2021-02-08 02:42:53', '2021-02-08 02:42:53'),
(234, 109, 112, 1, 0, '2021-02-08 02:48:28', '2021-02-08 02:48:28'),
(235, 169, 113, 1, 0, '2021-02-08 07:38:52', '2021-02-08 07:38:52'),
(236, 169, 114, 1, 0, '2021-02-08 07:46:40', '2021-02-08 07:46:40'),
(237, 174, 115, 1, 0, '2021-02-08 09:06:01', '2021-02-08 09:06:01'),
(238, 174, 116, 1, 0, '2021-02-08 09:06:22', '2021-02-08 09:06:22'),
(239, 175, 117, 1, 0, '2021-02-08 09:07:54', '2021-02-08 09:07:54'),
(240, 175, 118, 1, 0, '2021-02-08 09:09:24', '2021-02-08 09:09:24'),
(241, 175, 119, 1, 0, '2021-02-08 09:10:52', '2021-02-08 09:10:52'),
(242, 174, 120, 1, 0, '2021-02-08 09:12:49', '2021-02-08 09:12:49'),
(243, 174, 121, 1, 0, '2021-02-08 09:14:30', '2021-02-08 09:14:30');
--
-- Triggers `li_posts`
--
DELIMITER $$
CREATE TRIGGER `Delete normalpost and tasks` AFTER DELETE ON `li_posts` FOR EACH ROW BEGIN
DELETE from li_normal_posts where li_normal_posts.np_id = old.post_info_ref_id AND old.post_ref_type = 0;
DELETE from li_tasks where li_tasks.tsk_id = old.post_info_ref_id AND old.post_ref_type = 1;
END
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `li_post_comments`
--
CREATE TABLE `li_post_comments` (
`c_id` int(11) NOT NULL,
`p_id` int(11) NOT NULL COMMENT 'foreign key from Post ID',
`c_parent_comment` int(11) NOT NULL DEFAULT 0,
`commentor_id` int(11) NOT NULL COMMENT 'Foreign key from user_id.',
`c_content` varchar(200) NOT NULL,
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_post_likes`
--
CREATE TABLE `li_post_likes` (
`post_id` int(11) NOT NULL COMMENT 'Foreign key from post tabls',
`user_id` int(11) NOT NULL COMMENT 'Foreign key from user table',
`reaction_type` int(11) NOT NULL COMMENT 'Reaction Types\r\n1 = Like\r\n2 = heart\r\n3 = Laugh\r\n4 = Happy\r\n5 = Wow\r\n6 = Sad\r\n7 = Angry'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_quizzes`
--
CREATE TABLE `li_quizzes` (
`quiz_id` int(11) NOT NULL,
`task_id` int(11) NOT NULL COMMENT 'FK from Tasks table',
`quiz_questions` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'The quiz questions in JSON format' CHECK (json_valid(`quiz_questions`)),
`quiz_count` int(11) NOT NULL COMMENT 'Question count',
`total_points` int(11) NOT NULL,
`quiz_duration` int(11) NOT NULL COMMENT 'Contains time duration, in minutes format'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_quizzes`
--
INSERT INTO `li_quizzes` (`quiz_id`, `task_id`, `quiz_questions`, `quiz_count`, `total_points`, `quiz_duration`) VALUES
(45, 112, '[{\"type\":\"0\",\"Question\":\"adadadad\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"true\",\"points\":1,\"total_points\":1},{\"type\":\"0\",\"Question\":\"adasdasdas\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"false\",\"points\":1,\"total_points\":1},{\"type\":\"0\",\"Question\":\"111\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"true\",\"points\":1,\"total_points\":1},{\"type\":\"0\",\"Question\":\"sdadadas\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"false\",\"points\":1,\"total_points\":1}]', 4, 4, 60),
(46, 114, '[{\"type\":\"0\",\"Question\":\"true\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"true\",\"points\":1,\"total_points\":1},{\"type\":\"1\",\"Question\":\"abcd\",\"attachments\":[],\"questionPoints\":1,\"responses\":[{\"text\":\"abcd\",\"ischecked\":true},{\"text\":\"bdcs\",\"ischecked\":false},{\"text\":\"juoh\",\"ischecked\":false}],\"points\":1,\"total_points\":1},{\"type\":\"2\",\"Question\":\"answer answer answer\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"\",\"points\":1,\"total_points\":1},{\"type\":\"3\",\"Question\":\"Learnit _learnit\",\"attachments\":[],\"questionPoints\":1,\"responses\":[\"learnit\"],\"points\":1,\"total_points\":1}]', 4, 4, 60),
(47, 115, '[{\"type\":\"0\",\"Question\":\"true\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"true\",\"points\":1,\"total_points\":1},{\"type\":\"1\",\"Question\":\"ass\",\"attachments\":[],\"questionPoints\":1,\"responses\":[{\"text\":\"bgj\",\"ischecked\":false},{\"text\":\"oop\",\"ischecked\":false},{\"text\":\"ass\",\"ischecked\":true}],\"points\":1,\"total_points\":1},{\"type\":\"2\",\"Question\":\"kjsdkjkd\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"\",\"points\":1,\"total_points\":1}]', 3, 3, 60),
(48, 118, '[{\"type\":\"0\",\"Question\":\"false\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"false\",\"points\":1,\"total_points\":1},{\"type\":\"1\",\"Question\":\"luh\",\"attachments\":[],\"questionPoints\":1,\"responses\":[{\"text\":\"duh\",\"ischecked\":false},{\"text\":\"tsk\",\"ischecked\":false},{\"text\":\"luh\",\"ischecked\":true}],\"points\":1,\"total_points\":1},{\"type\":\"2\",\"Question\":\"aksjdkasjdakji\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"\",\"points\":1,\"total_points\":1}]', 3, 3, 60),
(49, 121, '[{\"type\":\"0\",\"Question\":\"true\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"true\",\"points\":1,\"total_points\":1},{\"type\":\"1\",\"Question\":\"poldo\",\"attachments\":[],\"questionPoints\":1,\"responses\":[{\"text\":\"poldo\",\"ischecked\":true},{\"text\":\"sj\",\"ischecked\":false},{\"text\":\"asdj\",\"ischecked\":false}],\"points\":1,\"total_points\":1},{\"type\":\"2\",\"Question\":\"answer the following\",\"attachments\":[],\"questionPoints\":1,\"responses\":\"\",\"points\":1,\"total_points\":1}]', 3, 3, 60);
-- --------------------------------------------------------
--
-- Table structure for table `li_settings_colors`
--
CREATE TABLE `li_settings_colors` (
`sc_id` int(11) NOT NULL,
`sc_name` varchar(50) NOT NULL,
`sc_color` varchar(25) NOT NULL,
`sc_text_color` varchar(25) NOT NULL,
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_settings_colors`
--
INSERT INTO `li_settings_colors` (`sc_id`, `sc_name`, `sc_color`, `sc_text_color`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(1, 'Black', '#000000', '#ffffff', '2020-05-14 11:09:13', '2020-06-07 21:25:47'),
(2, 'White', '#ffffff', '#000000', '2020-05-14 14:30:50', '2020-06-07 21:20:37'),
(3, 'Purple', '#e60005', '#ffffff', '2020-05-14 14:34:43', '2020-06-07 21:23:24'),
(4, 'Orange', '#e66838', '#ffffff', '2020-05-19 18:53:35', '2020-06-07 21:23:39'),
(5, 'Blue', '#3583e5', '#ffffff', '2020-05-19 18:54:02', '2020-06-07 21:23:51'),
(6, 'Blue Green', '#28a992', '#ffffff', '2020-05-19 18:54:38', '2020-06-07 21:25:03'),
(7, 'Pink', '#e5368c', '#000000', '2020-05-19 18:55:11', '2020-06-07 21:21:04'),
(8, 'Sky Blue', '#39c9e6', '#000000', '2020-05-19 18:56:22', '2020-06-07 21:21:06'),
(9, 'Purple', '#7f42c9', '#ffffff', '2020-05-19 18:57:04', '2020-06-07 21:24:51'),
(10, 'Yellow Green', '#4cb855', '#000000', '2020-05-19 18:57:50', '2020-06-07 21:21:12'),
(11, 'Grey', '#717991', '#ffffff', '2020-05-19 18:58:19', '2020-06-07 21:25:14'),
(12, 'Yellow', '#fecb00', '#000000', '2020-05-19 18:58:54', '2020-06-07 21:21:17'),
(13, 'testcolor', '#ffc7d5', '#000000', '2020-06-07 21:22:47', '2020-06-07 21:22:47');
-- --------------------------------------------------------
--
-- Table structure for table `li_settings_post_availability`
--
CREATE TABLE `li_settings_post_availability` (
`spa_id` int(11) NOT NULL,
`spa_name` varchar(100) NOT NULL,
`spa_roles` varchar(100) NOT NULL,
`spa_desc` varchar(300) DEFAULT NULL,
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_settings_subjects`
--
CREATE TABLE `li_settings_subjects` (
`s_id` int(11) NOT NULL,
`s_parent_sub` int(11) DEFAULT NULL,
`s_name` varchar(50) NOT NULL COMMENT 'Subject name',
`s_abbre` varchar(20) DEFAULT NULL COMMENT 'Subject abbreviation (optional)',
`s_desc` varchar(200) DEFAULT NULL COMMENT 'Subject description',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_settings_subjects`
--
INSERT INTO `li_settings_subjects` (`s_id`, `s_parent_sub`, `s_name`, `s_abbre`, `s_desc`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(13, 0, 'Computer Technology', '', '', '2020-05-19 19:06:20', '2020-05-19 19:06:20'),
(14, 0, 'Creative Arts', '', '', '2020-05-19 19:07:04', '2020-05-19 19:07:04'),
(15, 14, 'Art', '', '', '2020-05-19 19:07:42', '2020-05-19 19:07:42'),
(16, 14, 'Music', '', '', '2020-05-19 19:08:16', '2020-05-19 19:08:16'),
(17, 14, 'Dance', '', '', '2020-05-19 19:09:08', '2020-05-19 19:09:08'),
(18, 14, 'Drama', '', '', '2020-05-19 19:09:34', '2020-05-19 19:09:34'),
(19, 0, 'Heath & PE', '', '', '2020-05-19 19:09:55', '2020-05-19 19:09:55'),
(20, 19, 'Health Education', '', '', '2020-05-19 19:11:02', '2020-05-19 19:11:02'),
(21, 19, 'Physical Education', '', '', '2020-05-19 19:11:26', '2020-05-19 19:11:26'),
(22, 19, 'Driver\'s Education', '', '', '2020-05-19 19:11:44', '2020-05-19 19:11:44'),
(23, 0, 'Language Arts', '', '', '2020-05-19 19:12:04', '2020-05-19 19:12:04'),
(24, 23, 'English', '', '', '2020-05-19 19:12:30', '2020-05-19 19:12:30'),
(25, 23, 'Filipino', '', '', '2020-05-19 19:12:44', '2020-05-19 19:12:44'),
(26, 23, 'Reading', '', '', '2020-05-19 19:13:11', '2020-05-19 19:13:11'),
(27, 23, 'English as a Second Language', 'ESL', '', '2020-05-19 19:14:15', '2020-05-19 19:14:15'),
(28, 23, 'Journalism', '', '', '2020-05-19 19:14:44', '2020-05-19 19:14:44'),
(29, 23, 'Speech', '', '', '2020-05-19 19:14:53', '2020-05-19 19:14:53'),
(30, 0, 'Mathematics', '', '', '2020-05-19 19:15:09', '2020-05-19 19:15:09'),
(31, 30, 'Basic Math', '', '', '2020-05-19 19:15:24', '2020-05-19 19:15:24'),
(32, 30, 'Algebra', '', '', '2020-05-19 19:15:58', '2020-05-19 19:15:58'),
(33, 30, 'Geometry', '', '', '2020-05-19 19:16:12', '2020-05-19 19:16:12'),
(34, 30, 'Trigonometry', '', '', '2020-05-19 19:16:33', '2020-05-19 19:16:33'),
(35, 30, 'Calculus', '', '', '2020-05-19 19:16:51', '2020-05-19 19:16:51'),
(36, 30, 'Statistics', '', '', '2020-05-19 19:17:13', '2020-05-19 19:17:13'),
(37, 30, 'Computer Science', '', '', '2020-05-19 19:18:04', '2020-05-19 19:18:04'),
(38, 0, 'Science', '', '', '2020-05-19 19:18:26', '2020-05-19 19:18:26'),
(39, 38, 'Basic Science', '', '', '2020-05-19 19:18:46', '2020-05-19 19:18:46'),
(40, 38, 'Biology', '', '', '2020-05-19 19:19:08', '2020-05-19 19:19:08'),
(41, 38, 'Chemistry', '', '', '2020-05-19 19:19:23', '2020-05-19 19:19:23'),
(42, 38, 'Physics', '', '', '2020-05-19 19:19:34', '2020-05-19 19:19:34'),
(43, 38, 'Psychology', '', '', '2020-05-19 19:19:58', '2020-05-19 19:19:58'),
(44, 38, 'Environmental Science', '', '', '2020-05-19 19:20:18', '2020-05-19 19:20:18'),
(45, 0, 'Social Studies', '', '', '2020-05-19 19:20:41', '2020-05-19 19:20:41'),
(46, 45, 'History', '', '', '2020-05-19 19:20:55', '2020-05-19 19:20:55'),
(47, 45, 'World History', '', '', '2020-05-19 19:21:19', '2020-05-19 19:21:19'),
(48, 45, 'Government', '', '', '2020-05-19 19:21:37', '2020-05-19 19:21:37'),
(49, 45, 'Economics', '', '', '2020-05-19 19:21:49', '2020-05-19 19:21:49'),
(50, 45, 'Geography', '', '', '2020-05-19 19:22:36', '2020-05-19 19:22:36'),
(51, 0, 'Vocational Studies', '', '', '2020-05-19 19:23:26', '2020-05-19 19:23:26'),
(52, 0, 'World Languages', '', '', '2020-05-19 19:24:54', '2020-05-19 19:24:54'),
(53, 52, 'English', '', '', '2020-05-19 19:25:12', '2020-05-19 19:25:12'),
(54, 52, 'Spanish', '', '', '2020-05-19 19:25:38', '2020-05-19 19:25:38'),
(55, 52, 'French', '', '', '2020-05-19 19:25:55', '2020-05-19 19:25:55'),
(56, 52, 'Latin', '', '', '2020-05-19 19:26:12', '2020-05-19 19:26:12'),
(57, 52, 'Japanese', '', '', '2020-05-19 19:26:49', '2020-05-19 19:26:49'),
(58, 52, 'Mandarin', '', '', '2020-05-19 19:26:59', '2020-05-19 19:26:59'),
(59, 52, 'Korean', '', '', '2020-05-19 19:27:39', '2020-05-19 19:27:39'),
(60, 52, 'Italian', '', '', '2020-05-19 19:27:51', '2020-05-19 19:27:51');
-- --------------------------------------------------------
--
-- Table structure for table `li_settings_yr_lvl`
--
CREATE TABLE `li_settings_yr_lvl` (
`g_id` int(11) NOT NULL,
`g_name` varchar(100) NOT NULL,
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_settings_yr_lvl`
--
INSERT INTO `li_settings_yr_lvl` (`g_id`, `g_name`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(22, 'Grade 12', '2020-05-19 19:00:30', '2020-07-05 07:53:17'),
(28, 'Grade 10', '2020-05-19 19:01:46', '2020-07-05 07:53:38');
-- --------------------------------------------------------
--
-- Table structure for table `li_tasks`
--
CREATE TABLE `li_tasks` (
`tsk_id` int(11) NOT NULL,
`tsk_type` tinyint(4) NOT NULL COMMENT '0 = quiz, 1 = ass',
`tsk_title` varchar(200) NOT NULL COMMENT 'Task Title',
`tsk_instruction` text NOT NULL COMMENT 'Task Desccription',
`tsk_duedate` datetime NOT NULL COMMENT 'Contains the due date of the task',
`tsk_status` int(11) NOT NULL DEFAULT 1 COMMENT ' Task status 1 = Open 0 = Closed ',
`tsk_lock_on_due` tinyint(4) NOT NULL COMMENT '1 = true, 0 = false',
`tsk_options` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Hold other task options in JSON format',
`is_reviewed` int(1) DEFAULT 0,
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'Created/Assigned date'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_tasks`
--
INSERT INTO `li_tasks` (`tsk_id`, `tsk_type`, `tsk_title`, `tsk_instruction`, `tsk_duedate`, `tsk_status`, `tsk_lock_on_due`, `tsk_options`, `is_reviewed`, `timestamp_created`) VALUES
(107, 1, 'Assignment1', 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit,\nsed do eiusmod tempor incididunt', '2021-02-12 23:59:00', 1, 1, '{\"isaddtogradebook\":true}', 0, '2021-02-07 21:22:28'),
(112, 0, 'Test Quiz 1', 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit,\nsed do eiusmod tempor incididunt\nut labore et dolore magna aliqua.\nUt enim ad minim veniam, \nquis nostrud exercitation ullamco\nlaboris nisi ut aliquip ex ea \nommodo consequat. Duis aute irure\ndolor in reprehenderit in voluptate\nvelit esse cillum dolore eu fugiat nulla pariatur.\nExcepteur sint occaecat cupidatat ', '2021-02-13 23:59:00', 1, 1, '{\"isaddtogradebook\":true,\"ishowresult\":false}', 0, '2021-02-08 02:48:28'),
(113, 1, 'Class 2 Assignment', 'answer the following:', '2021-02-10 23:59:00', 1, 1, '{\"isaddtogradebook\":false}', 0, '2021-02-08 07:38:52'),
(114, 0, 'Quiz 1', 'Answer the following', '2021-02-10 23:59:00', 1, 1, '{\"isaddtogradebook\":false,\"ishowresult\":false}', 0, '2021-02-08 07:46:40'),
(115, 0, 'kasjdk', 'ksdjkasd', '2021-02-12 23:59:00', 1, 1, '{\"isaddtogradebook\":false,\"ishowresult\":false}', 0, '2021-02-08 09:06:01'),
(116, 1, 'ass 3 ', 'asdasd', '2021-02-12 23:59:00', 1, 1, '{\"isaddtogradebook\":false}', 0, '2021-02-08 09:06:22'),
(117, 1, 'ass 4', 'kjdka', '2021-02-13 23:59:00', 1, 1, '{\"isaddtogradebook\":false}', 0, '2021-02-08 09:07:54'),
(118, 0, 'quiz 4', 'jasadjas', '2021-02-13 23:59:00', 1, 1, '{\"isaddtogradebook\":false,\"ishowresult\":false}', 0, '2021-02-08 09:09:24'),
(119, 1, 'ass 4\'1', 'aksdja', '2021-02-12 23:59:00', 1, 1, '{\"isaddtogradebook\":false}', 0, '2021-02-08 09:10:52'),
(120, 1, 'ass 3\'1', 'ajshdjas', '2021-02-13 23:59:00', 1, 1, '{\"isaddtogradebook\":false}', 0, '2021-02-08 09:12:49'),
(121, 0, 'quiz 3\'1', 'jasjdha', '2021-02-13 23:59:00', 1, 1, '{\"isaddtogradebook\":false,\"ishowresult\":false}', 0, '2021-02-08 09:14:30');
-- --------------------------------------------------------
--
-- Table structure for table `li_task_attachments`
--
CREATE TABLE `li_task_attachments` (
`attach_id` int(11) NOT NULL,
`task_id` int(11) NOT NULL,
`attach_type` tinyint(1) NOT NULL COMMENT 'Type of attachment::\r\n0 = filepath\r\n1 = Link',
`attach_text` varchar(300) NOT NULL COMMENT 'Contains attachment text.\r\n\r\nFile path of link'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_task_class_assignees`
--
CREATE TABLE `li_task_class_assignees` (
`ta_id` int(11) NOT NULL,
`task_id` int(11) NOT NULL COMMENT 'Foreign Key from tasks talbe',
`class_id` int(11) NOT NULL COMMENT 'FK from classes table'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_task_class_assignees`
--
INSERT INTO `li_task_class_assignees` (`ta_id`, `task_id`, `class_id`) VALUES
(128, 107, 40),
(133, 112, 40),
(134, 113, 42),
(135, 114, 42),
(136, 115, 43),
(137, 116, 43),
(138, 117, 44),
(139, 118, 44),
(140, 119, 45),
(141, 120, 46),
(142, 121, 46);
-- --------------------------------------------------------
--
-- Table structure for table `li_task_submissions`
--
CREATE TABLE `li_task_submissions` (
`ts_id` int(11) NOT NULL,
`task_id` int(11) NOT NULL COMMENT 'Foreign Key from task table',
`student_id` int(11) NOT NULL COMMENT 'Fk from users table as student',
`status` int(11) NOT NULL DEFAULT 0 COMMENT 'Contains the status of the submission.\r\n\r\n0 = For review/checking\r\n1 = reviewed/checked',
`teacher_remarks` varchar(500) NOT NULL,
`datetime_submitted` timestamp NOT NULL DEFAULT current_timestamp() COMMENT 'Contains the time the task is submitted'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_task_submissions`
--
INSERT INTO `li_task_submissions` (`ts_id`, `task_id`, `student_id`, `status`, `teacher_remarks`, `datetime_submitted`) VALUES
(196, 107, 146, 0, '', '2021-02-08 02:35:18'),
(201, 112, 146, 0, '', '2021-02-08 03:09:16'),
(202, 114, 171, 0, '', '2021-02-08 09:19:31'),
(203, 113, 171, 0, '', '2021-02-08 09:22:42'),
(204, 115, 171, 0, '', '2021-02-08 09:24:20'),
(205, 116, 171, 0, '', '2021-02-08 09:25:03'),
(206, 120, 176, 0, '', '2021-02-08 09:27:58'),
(207, 121, 176, 0, '', '2021-02-08 09:28:33'),
(208, 117, 176, 0, '', '2021-02-08 09:34:05'),
(209, 118, 176, 0, '', '2021-02-08 09:34:35'),
(210, 119, 177, 0, '', '2021-02-08 09:37:57'),
(211, 113, 177, 0, '', '2021-02-08 09:39:30');
-- --------------------------------------------------------
--
-- Table structure for table `li_task_submission_ass`
--
CREATE TABLE `li_task_submission_ass` (
`tsa_id` int(11) NOT NULL,
`ts_id` int(11) NOT NULL COMMENT 'Foreign key from task_submissions table',
`submission_content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Contains the attachments/texts in the submission.\r\n\r\nIn JSON format' CHECK (json_valid(`submission_content`)),
`tsa_status` int(11) NOT NULL DEFAULT 1 COMMENT 'Contains the status for the assignment.\r\n\r\n1 = Turned In\r\n2 = Not Turned In\r\n3 = Graded\r\n4 = Not graded\r\n5 = for revision',
`ass_grade` int(11) NOT NULL DEFAULT 0 COMMENT 'Contains the grade of the assignment',
`ass_over` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_task_submission_ass`
--
INSERT INTO `li_task_submission_ass` (`tsa_id`, `ts_id`, `submission_content`, `tsa_status`, `ass_grade`, `ass_over`) VALUES
(29, 196, '{\"text\":\"Testing\",\"attchments\":\"[{\\\"type\\\":\\\"docx\\\",\\\"path\\\":\\\"2021\\\\\\\\02\\\\\\\\0_LearnIT_2021-01-30_Example test doc (4).docx\\\",\\\"name\\\":\\\"LearnIT_2021-01-30_Example test doc (4).docx\\\",\\\"size\\\":11358},{\\\"type\\\":\\\"docx\\\",\\\"path\\\":\\\"2021\\\\\\\\02\\\\\\\\0_LearnIT_2021-01-30_Example test doc (3).docx\\\",\\\"name\\\":\\\"LearnIT_2021-01-30_Example test doc (3).docx\\\",\\\"size\\\":11358},{\\\"type\\\":\\\"pdf\\\",\\\"path\\\":\\\"2021\\\\\\\\02\\\\\\\\0_LearnIT_2021-01-30_Arana_Certificate_Independent_Contractor (4).pdf\\\",\\\"name\\\":\\\"LearnIT_2021-01-30_Arana_Certificate_Independent_Contractor (4).pdf\\\",\\\"size\\\":303192},{\\\"type\\\":\\\"jpg\\\",\\\"path\\\":\\\"2021\\\\\\\\02\\\\\\\\0_126293642_178294397259031_3759268838569577738_n.jpg\\\",\\\"name\\\":\\\"126293642_178294397259031_3759268838569577738_n.jpg\\\",\\\"size\\\":138356}]\"}', 1, 8, 10),
(30, 203, '{\"text\":\"andjanjwjas\",\"attchments\":\"[]\"}', 1, 0, 0),
(31, 205, '{\"text\":\"nayad\",\"attchments\":\"[]\"}', 1, 0, 0),
(32, 206, '{\"text\":\"ass 3\'1\",\"attchments\":\"[]\"}', 1, 0, 0),
(33, 208, '{\"text\":\"jshdjhsshd\",\"attchments\":\"[]\"}', 1, 0, 0),
(34, 210, '{\"text\":\"thahsdjhdj\",\"attchments\":\"[]\"}', 1, 0, 0),
(35, 211, '{\"text\":\" Add Text kjskdjak\",\"attchments\":\"[]\"}', 1, 0, 0);
-- --------------------------------------------------------
--
-- Table structure for table `li_task_submission_ass_remarks`
--
CREATE TABLE `li_task_submission_ass_remarks` (
`tsar_id` int(11) NOT NULL,
`tsa_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`comment` varchar(500) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_task_submission_quiz`
--
CREATE TABLE `li_task_submission_quiz` (
`tsq_id` int(11) NOT NULL,
`ts_id` int(11) NOT NULL COMMENT 'FK from task_submission table',
`quiz_answers` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL COMMENT 'Contains the answers to the quiz' CHECK (json_valid(`quiz_answers`)),
`duration_consumed` varchar(11) NOT NULL COMMENT 'Consumed time in minutes',
`quiz_score` int(11) NOT NULL COMMENT 'Contains the score of the quiz'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_task_submission_quiz`
--
INSERT INTO `li_task_submission_quiz` (`tsq_id`, `ts_id`, `quiz_answers`, `duration_consumed`, `quiz_score`) VALUES
(151, 201, '\"[[\\\"true\\\"],[\\\"true\\\"],[\\\"false\\\"],[\\\"true\\\"]]\"', '09:9', 1),
(152, 202, '\"[[\\\"true\\\"],[\\\"0\\\"],[\\\"jskadjkawisdaj\\\"],[\\\"\\\"]]\"', '00:15', 2),
(153, 204, '\"[[\\\"true\\\"],[\\\"2\\\"],[\\\"kjsdkjkd\\\"]]\"', '00:18', 2),
(154, 207, '\"[[\\\"true\\\"],[\\\"0\\\"],[\\\"ksjdksjdisjds\\\"]]\"', '00:14', 2),
(155, 209, '\"[[\\\"false\\\"],[\\\"2\\\"],[\\\"mkmkmkmkmk\\\"]]\"', '00:10', 2);
-- --------------------------------------------------------
--
-- Table structure for table `li_userinfo`
--
CREATE TABLE `li_userinfo` (
`ui_id` int(11) NOT NULL,
`cred_id` int(11) NOT NULL COMMENT 'Foreignkey from users table',
`ui_firstname` varchar(50) NOT NULL DEFAULT ' ' COMMENT 'User firstname',
`ui_midname` varchar(50) NOT NULL DEFAULT ' ',
`ui_lastname` varchar(50) NOT NULL DEFAULT ' ' COMMENT 'User lastname',
`ui_email` varchar(50) DEFAULT NULL COMMENT 'User Email',
`ui_guardian_phone` varchar(15) NOT NULL,
`ui_profile_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT '{}' COMMENT 'All data on user profile ( JSON Format)\r\n\r\n\r\nUser image path\r\nPhonenumber\r\nGuardianPhonenumber\r\nPersonal Info, \r\nAcademic Info.\r\netc.',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_userinfo`
--
INSERT INTO `li_userinfo` (`ui_id`, `cred_id`, `ui_firstname`, `ui_midname`, `ui_lastname`, `ui_email`, `ui_guardian_phone`, `ui_profile_data`, `timestamp_created`, `timestamp_lastupdate`) VALUES
(79, 109, 'joemarie', ' ', 'Arana', '<EMAIL>', '09464023418', '{}', '2020-10-19 22:14:35', '2021-02-04 08:17:27'),
(116, 146, 'Aphrodite', ' ', 'Gajo', '<EMAIL>', '09464023418', '{\"ui_guardian_phone\":\"09464023418\",\"ui_guardian_name\":\"Joemarie\"}', '2020-12-04 02:58:23', '2021-02-04 08:17:25'),
(120, 150, 'Joemarie', ' ', 'Waaka', '<EMAIL>', '09464023418', '{}', '2021-02-04 03:08:24', '2021-02-04 08:17:23'),
(127, 167, 'testing', ' ', 'testing1', '<EMAIL>', '09464023418', '{\"ui_guardian_name\":\"<NAME>\"}', '2021-02-04 04:22:32', '2021-02-04 04:22:32'),
(129, 169, '1', ' ', 'teacher', '<EMAIL>', '', '{}', '2021-02-08 07:14:58', '2021-02-08 07:14:58'),
(131, 171, 'student', ' ', 'malacao', '', '09075974193', '{\"ui_guardian_name\":\"apiio\"}', '2021-02-08 08:18:12', '2021-02-08 08:18:12'),
(134, 174, '3', ' ', 'teacher', '<EMAIL>', '', '{}', '2021-02-08 08:50:02', '2021-02-08 08:50:02'),
(135, 175, '4', ' ', 'teacher', '<EMAIL>', '', '{}', '2021-02-08 08:55:21', '2021-02-08 08:55:21'),
(136, 176, '1', ' ', 'student', '', '09075974193', '{\"ui_guardian_name\":\"apiioo\"}', '2021-02-08 08:58:37', '2021-02-08 08:58:37'),
(137, 177, '2', ' ', 'student', '', '09075974193', '{\"ui_guardian_name\":\"apiio\"}', '2021-02-08 09:00:13', '2021-02-08 09:00:13');
-- --------------------------------------------------------
--
-- Table structure for table `li_users`
--
CREATE TABLE `li_users` (
`user_id` int(11) NOT NULL,
`uname` varchar(50) NOT NULL COMMENT 'contains username',
`pass` varchar(400) NOT NULL COMMENT 'Contains password',
`role` enum('student','teacher','admin') NOT NULL COMMENT 'Contains the role of the user',
`online_status` int(1) NOT NULL DEFAULT 0 COMMENT '0 for offline, 1 for online',
`user_status` int(11) NOT NULL DEFAULT 1 COMMENT '1 = active\r\n0 = inactive',
`application_status` int(11) NOT NULL DEFAULT 1 COMMENT '1 = pending\r\n2 = approved',
`timestamp_created` timestamp NOT NULL DEFAULT current_timestamp(),
`datetime_inactive` datetime NOT NULL,
`timestamp_lastupdate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_users`
--
INSERT INTO `li_users` (`user_id`, `uname`, `pass`, `role`, `online_status`, `user_status`, `application_status`, `timestamp_created`, `datetime_inactive`, `timestamp_lastupdate`) VALUES
(85, 'admin', 'YWRtaW4=', 'admin', 0, 1, 2, '2020-07-08 23:13:23', '0000-00-00 00:00:00', '2021-02-04 08:14:47'),
(109, '<EMAIL>', 'dGVzdGluZzEyMzQ=', 'teacher', 0, 1, 2, '2020-10-19 22:14:35', '0000-00-00 00:00:00', '2021-02-04 08:09:31'),
(146, 'aphro', '<PASSWORD>luZzEyMzQ=', 'student', 0, 1, 2, '2020-12-04 02:58:23', '2021-02-08 15:33:27', '2021-02-08 07:33:27'),
(150, '<EMAIL>', 'Sm9lbWFyaWVtbzI2MDQ=', 'teacher', 0, 0, 2, '2021-02-04 03:08:24', '2021-02-04 21:42:22', '2021-02-04 13:42:22'),
(167, 'joem1', 'dGVzdGluZzEyMzQ=', 'student', 0, 1, 2, '2021-02-04 04:22:32', '0000-00-00 00:00:00', '2021-02-04 08:09:36'),
(169, '<EMAIL>', 'dGVzdGluZzEyMzQ=', 'teacher', 0, 1, 2, '2021-02-08 07:14:58', '0000-00-00 00:00:00', '2021-02-08 07:15:39'),
(171, 'Student', 'dGVzdGluZzEyMzQ=', 'student', 0, 1, 2, '2021-02-08 08:18:11', '0000-00-00 00:00:00', '2021-02-08 08:18:40'),
(174, '<EMAIL>', 'dGVzdGluZzEyMzQ=', 'teacher', 0, 1, 2, '2021-02-08 08:50:02', '0000-00-00 00:00:00', '2021-02-08 08:52:17'),
(175, '<EMAIL>', 'dGVzdGluZzEyMzQ=', 'teacher', 0, 1, 2, '2021-02-08 08:55:20', '0000-00-00 00:00:00', '2021-02-08 08:56:50'),
(176, '1student', 'dGVzdGluZzEyMzQ=', 'student', 0, 1, 2, '2021-02-08 08:58:37', '0000-00-00 00:00:00', '2021-02-08 08:59:08'),
(177, '2student', 'dGVzdGluZzEyMzQ=', 'student', 0, 1, 2, '2021-02-08 09:00:13', '0000-00-00 00:00:00', '2021-02-08 09:00:44');
-- --------------------------------------------------------
--
-- Table structure for table `li_user_utility_hidden_posts_log`
--
CREATE TABLE `li_user_utility_hidden_posts_log` (
`user_id` int(11) NOT NULL,
`post_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_user_utility_notification_logs`
--
CREATE TABLE `li_user_utility_notification_logs` (
`log_id` int(11) NOT NULL,
`user_id` int(11) NOT NULL,
`notification_msg` varchar(500) NOT NULL,
`log_type` varchar(50) NOT NULL,
`log_timestamp` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `li_user_utility_notification_logs`
--
INSERT INTO `li_user_utility_notification_logs` (`log_id`, `user_id`, `notification_msg`, `log_type`, `log_timestamp`) VALUES
(4, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 2', '', '2021-02-08 01:47:30'),
(5, 146, 'A new Quiz has been assigned on IT Fundamentals', 'new-task', '2021-02-08 01:51:54'),
(6, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 01:53:10'),
(7, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 01:58:54'),
(8, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:00:12'),
(9, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:03:03'),
(10, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:04:35'),
(11, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:06:28'),
(12, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:13:26'),
(13, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:19:50'),
(14, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:22:40'),
(15, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:23:22'),
(16, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:25:12'),
(17, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:27:16'),
(18, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:28:32'),
(19, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:30:02'),
(20, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:31:12'),
(21, 109, 'Student \'<NAME>\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:32:53'),
(22, 109, 'Student \'<NAME>\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:33:45'),
(23, 109, 'Student \'<NAME>\' had submitted an answer for assignment : Assignment1', '', '2021-02-08 02:35:18'),
(24, 146, 'A new Quiz has been assigned on IT Fundamentals', 'new-task', '2021-02-08 02:42:53'),
(25, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:43:35'),
(26, 146, 'A new Quiz has been assigned on IT Fundamentals', 'new-task', '2021-02-08 02:48:28'),
(27, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:49:02'),
(28, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 02:51:22'),
(29, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 03:08:11'),
(30, 109, 'Student \'Aphrodite Gajo\' had taken th quiz : Test Quiz 1', '', '2021-02-08 03:09:16'),
(31, 169, 'A new student had joined your class \'Class 2\'', '', '2021-02-08 08:30:18'),
(32, 169, 'A Student had withdrawn from class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:01'),
(33, 169, 'A Student had withdrawn from class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:08'),
(34, 169, 'A Student had withdrawn from class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:13'),
(35, 169, 'A Student had withdrawn from class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:17'),
(36, 169, 'A Student had withdrawn from class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:22'),
(37, 169, 'Student \'student malacao\' had rejoined your class \'Class 2\'', 'my-student-log', '2021-02-08 09:18:59'),
(38, 169, 'Student \'student malacao\' had taken th quiz : Quiz 1', '', '2021-02-08 09:19:31'),
(39, 169, 'Student \'student malacao\' had submitted an answer for assignment : Class 2 Assignment', '', '2021-02-08 09:22:42'),
(40, 174, 'A new student had joined your class \'class 3\'', '', '2021-02-08 09:23:12'),
(41, 174, 'Student \'student malacao\' had taken th quiz : kasjdk', '', '2021-02-08 09:24:21'),
(42, 174, 'Student \'student malacao\' had submitted an answer for assignment : ass 3 ', '', '2021-02-08 09:25:03'),
(43, 174, 'A new student had joined your class \'class 3\'1\'', '', '2021-02-08 09:27:15'),
(44, 174, 'Student \'1 student\' had submitted an answer for assignment : ass 3\'1', '', '2021-02-08 09:27:58'),
(45, 174, 'Student \'1 student\' had taken th quiz : quiz 3\'1', '', '2021-02-08 09:28:33'),
(46, 175, 'A new student had joined your class \'class 4\'', '', '2021-02-08 09:29:12'),
(47, 175, 'Student \'1 student\' had submitted an answer for assignment : ass 4', '', '2021-02-08 09:34:06'),
(48, 175, 'Student \'1 student\' had taken th quiz : quiz 4', '', '2021-02-08 09:34:35'),
(49, 175, 'A new student had joined your class \'class 4\'1\'', '', '2021-02-08 09:35:57'),
(50, 175, 'Student \'2 student\' had submitted an answer for assignment : ass 4\'1', '', '2021-02-08 09:37:58'),
(51, 169, 'A new student had joined your class \'Class 2\'', '', '2021-02-08 09:38:40'),
(52, 169, 'Student \'2 student\' had submitted an answer for assignment : Class 2 Assignment', '', '2021-02-08 09:39:30');
-- --------------------------------------------------------
--
-- Table structure for table `li_user_utility_post_notification`
--
CREATE TABLE `li_user_utility_post_notification` (
`postid` int(11) NOT NULL,
`userid` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--
-- Table structure for table `li_verification_codes`
--
CREATE TABLE `li_verification_codes` (
`vc_code` varchar(50) NOT NULL,
`user_id` int(11) NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `li_assignments`
--
ALTER TABLE `li_assignments`
ADD PRIMARY KEY (`ass_id`),
ADD KEY `li_assignment_fk_task_id` (`task_id`);
--
-- Indexes for table `li_chat_group`
--
ALTER TABLE `li_chat_group`
ADD PRIMARY KEY (`cg_id`);
--
-- Indexes for table `li_chat_messages`
--
ALTER TABLE `li_chat_messages`
ADD PRIMARY KEY (`m_id`),
ADD KEY `cg_id` (`cg_id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `li_classes`
--
ALTER TABLE `li_classes`
ADD PRIMARY KEY (`class_id`),
ADD KEY `teacher_id` (`teacher_id`),
ADD KEY `grade_id` (`grade_id`),
ADD KEY `subject_id` (`subject_id`),
ADD KEY `color_id` (`color_id`);
--
-- Indexes for table `li_class_grading_periods`
--
ALTER TABLE `li_class_grading_periods`
ADD PRIMARY KEY (`cgp_id`),
ADD KEY `class_id` (`class_id`);
--
-- Indexes for table `li_class_grading_period_columns`
--
ALTER TABLE `li_class_grading_period_columns`
ADD PRIMARY KEY (`cgpc_id`),
ADD KEY `cgp_id` (`cgp_id`);
--
-- Indexes for table `li_class_grading_period_tasks`
--
ALTER TABLE `li_class_grading_period_tasks`
ADD PRIMARY KEY (`cgpt_id`),
ADD KEY `cgp_id` (`cgp_id`),
ADD KEY `task_id` (`task_id`);
--
-- Indexes for table `li_class_grading_student_grades`
--
ALTER TABLE `li_class_grading_student_grades`
ADD PRIMARY KEY (`cgsg_id`),
ADD KEY `cgpc_id` (`cgpc_id`);
--
-- Indexes for table `li_class_students`
--
ALTER TABLE `li_class_students`
ADD PRIMARY KEY (`cs_id`),
ADD KEY `student_id` (`student_id`),
ADD KEY `class_id` (`class_id`);
--
-- Indexes for table `li_class_teacher_transition_log`
--
ALTER TABLE `li_class_teacher_transition_log`
ADD PRIMARY KEY (`cttl_id`);
--
-- Indexes for table `li_multimedia`
--
ALTER TABLE `li_multimedia`
ADD PRIMARY KEY (`m_id`);
--
-- Indexes for table `li_normal_posts`
--
ALTER TABLE `li_normal_posts`
ADD PRIMARY KEY (`np_id`);
--
-- Indexes for table `li_posts`
--
ALTER TABLE `li_posts`
ADD PRIMARY KEY (`p_id`),
ADD KEY `user_id` (`user_id`),
ADD KEY `spa_id` (`spa_id`);
--
-- Indexes for table `li_post_comments`
--
ALTER TABLE `li_post_comments`
ADD PRIMARY KEY (`c_id`),
ADD KEY `p_id` (`p_id`);
--
-- Indexes for table `li_post_likes`
--
ALTER TABLE `li_post_likes`
ADD KEY `post_id` (`post_id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `li_quizzes`
--
ALTER TABLE `li_quizzes`
ADD PRIMARY KEY (`quiz_id`),
ADD KEY `task_id` (`task_id`);
--
-- Indexes for table `li_settings_colors`
--
ALTER TABLE `li_settings_colors`
ADD PRIMARY KEY (`sc_id`);
--
-- Indexes for table `li_settings_post_availability`
--
ALTER TABLE `li_settings_post_availability`
ADD PRIMARY KEY (`spa_id`);
--
-- Indexes for table `li_settings_subjects`
--
ALTER TABLE `li_settings_subjects`
ADD PRIMARY KEY (`s_id`);
--
-- Indexes for table `li_settings_yr_lvl`
--
ALTER TABLE `li_settings_yr_lvl`
ADD PRIMARY KEY (`g_id`);
--
-- Indexes for table `li_tasks`
--
ALTER TABLE `li_tasks`
ADD PRIMARY KEY (`tsk_id`);
--
-- Indexes for table `li_task_attachments`
--
ALTER TABLE `li_task_attachments`
ADD KEY `task_id` (`task_id`);
--
-- Indexes for table `li_task_class_assignees`
--
ALTER TABLE `li_task_class_assignees`
ADD PRIMARY KEY (`ta_id`),
ADD KEY `task_id` (`task_id`),
ADD KEY `class_id` (`class_id`);
--
-- Indexes for table `li_task_submissions`
--
ALTER TABLE `li_task_submissions`
ADD PRIMARY KEY (`ts_id`),
ADD KEY `task_id` (`task_id`),
ADD KEY `student_id` (`student_id`);
--
-- Indexes for table `li_task_submission_ass`
--
ALTER TABLE `li_task_submission_ass`
ADD PRIMARY KEY (`tsa_id`),
ADD KEY `ts_id` (`ts_id`);
--
-- Indexes for table `li_task_submission_ass_remarks`
--
ALTER TABLE `li_task_submission_ass_remarks`
ADD PRIMARY KEY (`tsar_id`);
--
-- Indexes for table `li_task_submission_quiz`
--
ALTER TABLE `li_task_submission_quiz`
ADD PRIMARY KEY (`tsq_id`),
ADD KEY `ts_id` (`ts_id`);
--
-- Indexes for table `li_userinfo`
--
ALTER TABLE `li_userinfo`
ADD PRIMARY KEY (`ui_id`),
ADD KEY `cred_id` (`cred_id`);
--
-- Indexes for table `li_users`
--
ALTER TABLE `li_users`
ADD PRIMARY KEY (`user_id`);
--
-- Indexes for table `li_user_utility_hidden_posts_log`
--
ALTER TABLE `li_user_utility_hidden_posts_log`
ADD KEY `post_id` (`post_id`),
ADD KEY `user_id` (`user_id`);
--
-- Indexes for table `li_user_utility_notification_logs`
--
ALTER TABLE `li_user_utility_notification_logs`
ADD PRIMARY KEY (`log_id`);
--
-- Indexes for table `li_user_utility_post_notification`
--
ALTER TABLE `li_user_utility_post_notification`
ADD KEY `userid` (`userid`),
ADD KEY `postid` (`postid`);
--
-- Indexes for table `li_verification_codes`
--
ALTER TABLE `li_verification_codes`
ADD PRIMARY KEY (`vc_code`),
ADD KEY `user_id` (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `li_assignments`
--
ALTER TABLE `li_assignments`
MODIFY `ass_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51;
--
-- AUTO_INCREMENT for table `li_chat_group`
--
ALTER TABLE `li_chat_group`
MODIFY `cg_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `li_chat_messages`
--
ALTER TABLE `li_chat_messages`
MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `li_classes`
--
ALTER TABLE `li_classes`
MODIFY `class_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
--
-- AUTO_INCREMENT for table `li_class_grading_periods`
--
ALTER TABLE `li_class_grading_periods`
MODIFY `cgp_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `li_class_grading_period_columns`
--
ALTER TABLE `li_class_grading_period_columns`
MODIFY `cgpc_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `li_class_grading_period_tasks`
--
ALTER TABLE `li_class_grading_period_tasks`
MODIFY `cgpt_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `li_class_grading_student_grades`
--
ALTER TABLE `li_class_grading_student_grades`
MODIFY `cgsg_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `li_class_students`
--
ALTER TABLE `li_class_students`
MODIFY `cs_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `li_class_teacher_transition_log`
--
ALTER TABLE `li_class_teacher_transition_log`
MODIFY `cttl_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `li_multimedia`
--
ALTER TABLE `li_multimedia`
MODIFY `m_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=142;
--
-- AUTO_INCREMENT for table `li_normal_posts`
--
ALTER TABLE `li_normal_posts`
MODIFY `np_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=98;
--
-- AUTO_INCREMENT for table `li_posts`
--
ALTER TABLE `li_posts`
MODIFY `p_id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary key', AUTO_INCREMENT=244;
--
-- AUTO_INCREMENT for table `li_post_comments`
--
ALTER TABLE `li_post_comments`
MODIFY `c_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=38;
--
-- AUTO_INCREMENT for table `li_quizzes`
--
ALTER TABLE `li_quizzes`
MODIFY `quiz_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `li_settings_colors`
--
ALTER TABLE `li_settings_colors`
MODIFY `sc_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14;
--
-- AUTO_INCREMENT for table `li_settings_post_availability`
--
ALTER TABLE `li_settings_post_availability`
MODIFY `spa_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `li_settings_subjects`
--
ALTER TABLE `li_settings_subjects`
MODIFY `s_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=62;
--
-- AUTO_INCREMENT for table `li_settings_yr_lvl`
--
ALTER TABLE `li_settings_yr_lvl`
MODIFY `g_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=33;
--
-- AUTO_INCREMENT for table `li_tasks`
--
ALTER TABLE `li_tasks`
MODIFY `tsk_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=122;
--
-- AUTO_INCREMENT for table `li_task_class_assignees`
--
ALTER TABLE `li_task_class_assignees`
MODIFY `ta_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=143;
--
-- AUTO_INCREMENT for table `li_task_submissions`
--
ALTER TABLE `li_task_submissions`
MODIFY `ts_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=212;
--
-- AUTO_INCREMENT for table `li_task_submission_ass`
--
ALTER TABLE `li_task_submission_ass`
MODIFY `tsa_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36;
--
-- AUTO_INCREMENT for table `li_task_submission_ass_remarks`
--
ALTER TABLE `li_task_submission_ass_remarks`
MODIFY `tsar_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `li_task_submission_quiz`
--
ALTER TABLE `li_task_submission_quiz`
MODIFY `tsq_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=156;
--
-- AUTO_INCREMENT for table `li_userinfo`
--
ALTER TABLE `li_userinfo`
MODIFY `ui_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=138;
--
-- AUTO_INCREMENT for table `li_users`
--
ALTER TABLE `li_users`
MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=178;
--
-- AUTO_INCREMENT for table `li_user_utility_notification_logs`
--
ALTER TABLE `li_user_utility_notification_logs`
MODIFY `log_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `li_assignments`
--
ALTER TABLE `li_assignments`
ADD CONSTRAINT `li_assignment_fk_task_id` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_chat_messages`
--
ALTER TABLE `li_chat_messages`
ADD CONSTRAINT `li_chat_messages_ibfk_1` FOREIGN KEY (`cg_id`) REFERENCES `li_chat_group` (`cg_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_chat_messages_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_classes`
--
ALTER TABLE `li_classes`
ADD CONSTRAINT `li_classes_ibfk_1` FOREIGN KEY (`teacher_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_classes_ibfk_2` FOREIGN KEY (`grade_id`) REFERENCES `li_settings_yr_lvl` (`g_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_classes_ibfk_3` FOREIGN KEY (`subject_id`) REFERENCES `li_settings_subjects` (`s_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_classes_ibfk_4` FOREIGN KEY (`color_id`) REFERENCES `li_settings_colors` (`sc_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_class_grading_periods`
--
ALTER TABLE `li_class_grading_periods`
ADD CONSTRAINT `li_class_grading_periods_ibfk_1` FOREIGN KEY (`class_id`) REFERENCES `li_classes` (`class_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_class_grading_period_columns`
--
ALTER TABLE `li_class_grading_period_columns`
ADD CONSTRAINT `li_class_grading_period_columns_ibfk_1` FOREIGN KEY (`cgp_id`) REFERENCES `li_class_grading_periods` (`cgp_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_class_grading_period_tasks`
--
ALTER TABLE `li_class_grading_period_tasks`
ADD CONSTRAINT `li_class_grading_period_tasks_ibfk_1` FOREIGN KEY (`cgp_id`) REFERENCES `li_class_grading_periods` (`cgp_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_class_grading_period_tasks_ibfk_2` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_class_grading_student_grades`
--
ALTER TABLE `li_class_grading_student_grades`
ADD CONSTRAINT `li_class_grading_student_grades_ibfk_1` FOREIGN KEY (`cgpc_id`) REFERENCES `li_class_grading_period_columns` (`cgpc_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_class_students`
--
ALTER TABLE `li_class_students`
ADD CONSTRAINT `li_class_students_ibfk_1` FOREIGN KEY (`student_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_class_students_ibfk_2` FOREIGN KEY (`class_id`) REFERENCES `li_classes` (`class_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_posts`
--
ALTER TABLE `li_posts`
ADD CONSTRAINT `li_posts_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_post_comments`
--
ALTER TABLE `li_post_comments`
ADD CONSTRAINT `li_post_comments_ibfk_1` FOREIGN KEY (`p_id`) REFERENCES `li_posts` (`p_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_post_likes`
--
ALTER TABLE `li_post_likes`
ADD CONSTRAINT `li_post_likes_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `li_posts` (`p_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_post_likes_ibfk_3` FOREIGN KEY (`user_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_quizzes`
--
ALTER TABLE `li_quizzes`
ADD CONSTRAINT `li_quizzes_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_task_attachments`
--
ALTER TABLE `li_task_attachments`
ADD CONSTRAINT `li_task_attachments_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_task_class_assignees`
--
ALTER TABLE `li_task_class_assignees`
ADD CONSTRAINT `li_task_class_assignees_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_task_class_assignees_ibfk_2` FOREIGN KEY (`class_id`) REFERENCES `li_classes` (`class_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_task_submissions`
--
ALTER TABLE `li_task_submissions`
ADD CONSTRAINT `li_task_submissions_ibfk_1` FOREIGN KEY (`task_id`) REFERENCES `li_tasks` (`tsk_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_task_submissions_ibfk_2` FOREIGN KEY (`student_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_task_submission_ass`
--
ALTER TABLE `li_task_submission_ass`
ADD CONSTRAINT `li_task_submission_ass_ibfk_1` FOREIGN KEY (`ts_id`) REFERENCES `li_task_submissions` (`ts_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_task_submission_quiz`
--
ALTER TABLE `li_task_submission_quiz`
ADD CONSTRAINT `li_task_submission_quiz_ibfk_1` FOREIGN KEY (`ts_id`) REFERENCES `li_task_submissions` (`ts_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_userinfo`
--
ALTER TABLE `li_userinfo`
ADD CONSTRAINT `li_userinfo_ibfk_1` FOREIGN KEY (`cred_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_user_utility_hidden_posts_log`
--
ALTER TABLE `li_user_utility_hidden_posts_log`
ADD CONSTRAINT `li_user_utility_hidden_posts_log_ibfk_1` FOREIGN KEY (`post_id`) REFERENCES `li_posts` (`p_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_user_utility_hidden_posts_log_ibfk_2` FOREIGN KEY (`user_id`) REFERENCES `li_userinfo` (`cred_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_user_utility_post_notification`
--
ALTER TABLE `li_user_utility_post_notification`
ADD CONSTRAINT `li_user_utility_post_notification_ibfk_1` FOREIGN KEY (`userid`) REFERENCES `li_userinfo` (`cred_id`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `li_user_utility_post_notification_ibfk_2` FOREIGN KEY (`postid`) REFERENCES `li_posts` (`p_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
--
-- Constraints for table `li_verification_codes`
--
ALTER TABLE `li_verification_codes`
ADD CONSTRAINT `li_verification_codes_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `li_users` (`user_id`) ON DELETE CASCADE ON UPDATE NO ACTION;
DELIMITER $$
--
-- Events
--
CREATE DEFINER=`root`@`localhost` EVENT `delete_user_pending_daily` ON SCHEDULE EVERY 1 DAY STARTS '2020-06-08 01:00:00' ON COMPLETION NOT PRESERVE ENABLE COMMENT 'delete user registration if still pending after 1 day.' DO delete from li_users where application_status = 1 and datediff(now(), timestamp_created) >= 1$$
CREATE DEFINER=`root`@`localhost` EVENT `Auto close tasks on due date` ON SCHEDULE EVERY 1 MINUTE STARTS '2021-01-24 20:46:26' ON COMPLETION NOT PRESERVE ENABLE DO UPDATE li_tasks as t SET tsk_status = 0 where tsk_lock_on_due = 1 and now() > `tsk_duedate`$$
DELIMITER ;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
DROP TABLE DOCPRESCRIBES;
DROP TABLE PDHISTORY;
DROP TABLE PDAPPOINT;
DROP TABLE PATIENTBED;
DROP TABLE PATIENT;
DROP TABLE BED;
DROP TABLE DOCSCHEDULE;
DROP TABLE NURSESCHEDULE;
DROP TABLE WARD;
DROP TABLE DOCTOR;
DROP TABLE PRES;
DROP TABLE MEDICINE;
DROP TABLE NURSE;
DROP TABLE EMPSCHEDULE;
DROP TABLE EMP;
DROP TABLE WORKPLACE;
DROP TABLE BLOCK;
DROP TABLE LOGIN;
CREATE TABLE PATIENT
(
PID CHAR(4) CONSTRAINT PK_PATIENT PRIMARY KEY,
NAME VARCHAR2(20),
ADDRESS VARCHAR2(50),
AGE NUMBER(3),
PHONE VARCHAR2(15),
BLOOD_GROUP CHAR(5),
STATUS CHAR(10),
EMAIL VARCHAR2(30),
PTYPE CHAR(10)
);
CREATE TABLE DOCTOR
(
DID CHAR(4) CONSTRAINT PK_DOCTOR PRIMARY KEY,
NAME VARCHAR2(20),
ADDRESS VARCHAR2(50),
PHONE VARCHAR2(15),
AGE NUMBER(3),
STATUS CHAR(10),
EMAIL VARCHAR2(30),
QUALIFICATION VARCHAR2(50),
SPECIALIZATION VARCHAR2(50),
SALARY NUMBER(8, 2)
);
CREATE TABLE PDHISTORY
(
PID CHAR(4),
DID CHAR(4),
STARTDATE DATE,
ENDDATE DATE,
SUMMARY VARCHAR2(200)
);
ALTER TABLE PDHISTORY ADD CONSTRAINT FK1_PDHISTORY FOREIGN KEY(PID) REFERENCES PATIENT(PID) ON DELETE SET NULL;
ALTER TABLE PDHISTORY ADD CONSTRAINT FK2_PDHISTORY FOREIGN KEY(DID) REFERENCES DOCTOR(DID) ON DELETE SET NULL;
ALTER TABLE PDHISTORY ADD CONSTRAINT PK_PDHISTORY PRIMARY KEY(PID, DID, STARTDATE);
CREATE TABLE PDAPPOINT
(
PID CHAR(4),
DID CHAR(4),
APPOINTDATE DATE
);
ALTER TABLE PDAPPOINT ADD CONSTRAINT FK1_PDAPPOINT FOREIGN KEY(PID) REFERENCES PATIENT(PID) ON DELETE SET NULL;
ALTER TABLE PDAPPOINT ADD CONSTRAINT FK2_PDAPPOINT FOREIGN KEY(DID) REFERENCES DOCTOR(DID) ON DELETE SET NULL;
ALTER TABLE PDAPPOINT ADD CONSTRAINT PK_PDAPPOINT PRIMARY KEY(PID, DID, APPOINTDATE);
CREATE TABLE MEDICINE
(
MEDID CHAR(6) CONSTRAINT PK_MEDICINE PRIMARY KEY,
NAME VARCHAR2(20),
PHARMACEUTICALNAME VARCHAR2(20),
AMOUNT CHAR(10),
MANUFACTURER CHAR(20),
SUMMARY VARCHAR2(200)
);
CREATE TABLE PRES
(
PRESID CHAR(7) CONSTRAINT PK_PRES PRIMARY KEY,
MEDID CHAR(6),
BEGINDATE DATE,
NUMBERTAKEN CHAR(10),
CMNT VARCHAR2(100),
DURATION NUMBER,
ENDDATE DATE
);
ALTER TABLE PRES ADD CONSTRAINT FK_PRES FOREIGN KEY(MEDID) REFERENCES MEDICINE(MEDID);
CREATE TABLE DOCPRESCRIBES
(
PID CHAR(4),
DID CHAR(4),
PRESID CHAR(7)
);
ALTER TABLE DOCPRESCRIBES ADD CONSTRAINT FK1_DOCPRESCRIBES FOREIGN KEY(PID) REFERENCES PATIENT(PID) ON DELETE SET NULL;
ALTER TABLE DOCPRESCRIBES ADD CONSTRAINT FK2_DOCPRESCRIBES FOREIGN KEY(DID) REFERENCES DOCTOR(DID) ON DELETE SET NULL;
ALTER TABLE DOCPRESCRIBES ADD CONSTRAINT FK3_DOCPRESCRIBES FOREIGN KEY(PRESID) REFERENCES PRES(PRESID) ON DELETE SET NULL;
ALTER TABLE DOCPRESCRIBES ADD CONSTRAINT PK_DOCPRESCRIBES PRIMARY KEY (PID,DID,PRESID);
CREATE TABLE NURSE
(
NID CHAR(4) CONSTRAINT PK_NURSE PRIMARY KEY,
NAME VARCHAR2(20),
ADDRESS VARCHAR2(50),
AGE NUMBER(3),
PHONE VARCHAR2(15),
STATUS CHAR(10),
EMAIL VARCHAR2(30),
QUALIFICATION VARCHAR2(50),
SALARY NUMBER(8, 2)
);
CREATE TABLE BLOCK
(
BLOCKID CHAR(8) CONSTRAINT PK_BLOCK PRIMARY KEY,
BLOCKTYPE VARCHAR2(10),
NAME VARCHAR2(20),
NUMBEROFWARDS NUMBER(2)
);
CREATE TABLE WARD
(
WARDID CHAR(4) CONSTRAINT PK_WARD PRIMARY KEY,
BLOCKID CHAR(8),
WARDTYPE VARCHAR2(10),
NAME VARCHAR2(20),
NUMBEROFBEDS NUMBER(2)
);
ALTER TABLE WARD ADD CONSTRAINT FK_WARD FOREIGN KEY(BLOCKID) REFERENCES BLOCK(BLOCKID) ON DELETE SET NULL;
CREATE TABLE BED
(
BEDID CHAR(6) CONSTRAINT PK_BEDID PRIMARY KEY,
WARDID CHAR(4),
RENT NUMBER(6, 2),
BEDTYPE VARCHAR2(15)
);
ALTER TABLE BED ADD CONSTRAINT FK_BED FOREIGN KEY(WARDID) REFERENCES WARD(WARDID);
CREATE TABLE PATIENTBED
(
PID CHAR(4),
BEDID CHAR(6),
STARTDATE DATE,
ENDDATE DATE
);
ALTER TABLE PATIENTBED ADD CONSTRAINT PK_PATIENTBED PRIMARY KEY(PID, BEDID, STARTDATE);
ALTER TABLE PATIENTBED ADD CONSTRAINT FK1_PATIENTBED FOREIGN KEY(PID) REFERENCES PATIENT(PID) ON DELETE SET NULL;
ALTER TABLE PATIENTBED ADD CONSTRAINT FK2_PATIENTBED FOREIGN KEY(BEDID) REFERENCES BED(BEDID) ON DELETE SET NULL;
CREATE TABLE NURSESCHEDULE
(
WARDID CHAR(4),
NID CHAR(4),
STARTDATE DATE,
ENDDATE DATE
);
ALTER TABLE NURSESCHEDULE ADD CONSTRAINT FK1_NURSESCHEDULE FOREIGN KEY(WARDID) REFERENCES WARD(WARDID) ON DELETE SET NULL;
ALTER TABLE NURSESCHEDULE ADD CONSTRAINT FK2_NURSESCHEDULE FOREIGN KEY(NID) REFERENCES NURSE(NID) ON DELETE SET NULL;
ALTER TABLE NURSESCHEDULE ADD CONSTRAINT PK_NURSESCHEDULE PRIMARY KEY(WARDID, NID, STARTDATE);
CREATE TABLE DOCSCHEDULE
(
WARDID CHAR(4),
DID CHAR(4),
STARTDATE DATE,
ENDDATE DATE
);
ALTER TABLE DOCSCHEDULE ADD CONSTRAINT FK1_DOCSCHEDULE FOREIGN KEY(WARDID) REFERENCES WARD(WARDID) ON DELETE SET NULL;
ALTER TABLE DOCSCHEDULE ADD CONSTRAINT FK2_DOCSCHEDULE FOREIGN KEY(DID) REFERENCES DOCTOR(DID) ON DELETE SET NULL;
ALTER TABLE DOCSCHEDULE ADD CONSTRAINT PK_DOCSCHEDULE PRIMARY KEY(WARDID, DID, STARTDATE);
CREATE TABLE EMP
(
EID CHAR(4) CONSTRAINT PK_EMP PRIMARY KEY,
NAME VARCHAR2(20),
ADDRESS VARCHAR2(50),
PHONE VARCHAR2(15),
AGE NUMBER(3),
STATUS CHAR(10),
EMAIL VARCHAR2(30),
QUALIFICATION VARCHAR2(50),
TYPE VARCHAR2(20),
SALARY NUMBER(8, 2)
);
CREATE TABLE WORKPLACE
(
PLACEID CHAR(8) CONSTRAINT PK_WORKPLACE PRIMARY KEY,
PFLOOR NUMBER(2),
NAME VARCHAR2(20),
BLOCKID CHAR(10),
ROOMNUMBER NUMBER(3)
);
CREATE TABLE EMPSCHEDULE
(
PLACEID CHAR(8),
EID CHAR(4),
STARTDATE DATE,
ENDDATE DATE
);
ALTER TABLE EMPSCHEDULE ADD CONSTRAINT FK1_EMPSCHEDULE FOREIGN KEY(PLACEID) REFERENCES WORKPLACE(PLACEID) ON DELETE SET NULL;
ALTER TABLE EMPSCHEDULE ADD CONSTRAINT FK2_EMPSCHEDULE FOREIGN KEY(EID) REFERENCES EMP(EID) ON DELETE SET NULL;
ALTER TABLE EMPSCHEDULE ADD CONSTRAINT PK_EMPSCHEDULE PRIMARY KEY(PLACEID, EID, STARTDATE);
CREATE TABLE LOGIN(
USERNAME VARCHAR2(10) CONSTRAINT PK_PERSON PRIMARY KEY,
PASSWORD <PASSWORD>(12),
TYPE VARCHAR2(10)
); |
<reponame>netology-group/dispatcher
UPDATE class SET kind = 'p2p' WHERE kind = 'classroom';
ALTER TYPE class_type RENAME TO class_type_old;
CREATE TYPE class_type AS ENUM('webinar', 'p2p', 'minigroup');
ALTER TABLE class DROP CONSTRAINT minigroup_host_present;
ALTER TABLE class ALTER COLUMN kind TYPE class_type USING kind::text::class_type;
DROP TYPE class_type_old;
ALTER TABLE class
ADD CONSTRAINT minigroup_host_present
CHECK (
CASE kind
WHEN 'minigroup' THEN host IS NOT NULL
ELSE true
END
);
|
<reponame>novariadi/Book-base-php
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 26, 2020 at 11:09 AM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `bukudb`
--
-- --------------------------------------------------------
--
-- Table structure for table `buku`
--
CREATE TABLE `buku` (
`id` int(10) NOT NULL,
`judul` tinytext COLLATE utf8_unicode_ci DEFAULT NULL,
`pengarang` tinytext COLLATE utf8_unicode_ci DEFAULT NULL,
`penerbit` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`tahun` int(4) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `buku`
--
INSERT INTO `buku` (`id`, `judul`, `pengarang`, `penerbit`, `tahun`) VALUES
(8, '<NAME>', 'raditya', 'Tidak tau', 2008),
(10, 'Ayat-ayat cinta', 'Habiburrahman', 'Republika', 2005);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `buku`
--
ALTER TABLE `buku`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `buku`
--
ALTER TABLE `buku`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
CREATE PROCEDURE SP_CursosEnMatricula_Eliminar
@CodigoMatricula INT,
@CodigoCurso INT,
@ModificadoPor VARCHAR(60),
@ExisteError BIT OUTPUT,
@DetalleError VARCHAR (60) OUTPUT
AS
BEGIN TRY
BEGIN TRANSACTION
DECLARE @ExisteAula BIT
SET @ExisteAula = dbo.FN_CursosEnMatricula_VerificaExistenciaPorId(@CodigoMatricula,@CodigoCurso)
IF(@ExisteAula = 1)
BEGIN
DELETE FROM CursosEnMatricula WHERE CodigoMatricula=@CodigoMatricula AND CodigoCurso = @CodigoCurso
DECLARE @SumaPreciosDeCursos DECIMAL(18,3)
SET @SumaPreciosDeCursos = (SELECT SUM(MontoDeCurso) FROM CursosEnMatricula WHERE Activo=1 AND CodigoMatricula = @CodigoMatricula)
UPDATE Matriculas SET MontoDeCurso = @SumaPreciosDeCursos WHERE CodigoMatricula = @CodigoMatricula
SET @ExisteError = 0
END
ELSE
BEGIN
SET @ExisteError = 1
SET @DetalleError = 'Curso en Matricula: '+ @CodigoMatricula + ' , '+ @CodigoCurso +'. No Existe'
END
COMMIT TRANSACTION
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION
DECLARE @NumeroDeError INT
EXEC @NumeroDeError = SP_ErroresBD_Insertar @ModificadoPor
SET @ExisteError = 1
SET @DetalleError = 'Error al eliminar Curso en Matricula: '+ @CodigoMatricula + ' , ' + @CodigoCurso + '. Número de Error: ' + @NumeroDeError
END CATCH |
<filename>sql/target.sql<gh_stars>0
INSERT INTO `target` (`id`, `description`) VALUES
(20000, 'CD20 is a glycoprotein that is present on the surface of mature B lymphocytes.'),
(20001, 'Tyrosine kinase is an enzyme that can transfer a phosphate group from ATP to a tyrosine rest on proteins in a cell. Many cell surface receptors are so-called tyrosine kinase receptors.'),
(20002, 'CD 52 is a glycoprotein that is present on the surface of mature lymphocytes.'),
(20003, 'CD19 is a glycoprotein that is expressed on the surface of follicular dendritic cells and B cells. It is present on B lymphocytes from earliest recognizable B-lineage cells during development but is lost on maturation to plasma cells.'),
(20004, 'The IL-1 receptor is a cytokine receptor which binds IL-1 which is a cytokine protein that is produced by tissue macrophages, monocytes, fibroblasts, dendritic cells, B lymphocytes, NK cells and epithelial cells that plays a central role in the regulation of immune and inflammatory responses to infections. '),
(20005, 'TNFα is a proimflammatoric cytokine that stimulate the acute phase reaction and has an important role in the regulation of immune cells. It is produced mainly by activated macrophages (M1) but also by CD4-T-cells, NK cells, and other cell types.'),
(20006, 'IL-6 receptor is the receptor of the cytokine IL-6 which is secreted by T cells, macrophages, smooth muscle cells and other cell types to stimulate immune response. IL-6 is an important mediator of fever and of the acute phase response. '),
(20007, 'The proteasome is a intracellular protein complex whose main function is to degrade unneeded or damaged proteins by proteolysis. Inhibiting the function of the proteasome leads to cell death.'),
(20008, 'C5 (Complement component 5) is a protein and a component of the complement system which plays an important role in inflammatory and cell killing processes. It is cleaved into C5a and C5b which possesses potent chemotactic activity and forms part of the membrane attack complex respectively.'),
(20009, 'CD25 is the alpha chain of the IL-2 receptor. It is a transmembrane protein present on activated T cells, activated B cells and other cell types.'),
(20010, 'RANKL (Receptor activator of nuclear factor kappa-B ligand) is a cell surface-bound protein found on osteoblasts. By binding osteoclasts' surface-bound receptor activator of nuclear factor kappa-B (RANK) it triggers activation of these cells. '),
(20011, 'HER2 is a member of the epidermal growth factor receptor (EGFR) family. Overexpression of this receptor has important role in the development and progression of certain aggressive types of breast cancer.'),
(20012, 'The estrogen receptor (ER) is a member of the nuclear hormone family of intracellular receptors that is activated by the hormone estrogen (17β-estradiol). Once activated it is able to translocate into the nucleus and bind to DNA to regulate the activity of different genes. ER is widely expressed in many different tissue types.'),
(20013, 'The progesterone receptor (PR) is a member of the nuclear hormone family of intracellular receptors that is activated by the hormone progesterone. Once activated it is able to translocate into the nucleus and bind to DNA to regulate the activity of different genes.'),
(20014, 'VEGF is a signal protein produced by cells that stimulates vasculogenesis and angiogenesis.'),
(20015, 'α4 integrin is an important adhesion molecule that mediates binding of lymphocytes, monocytes, and eosinophils to multiple cellular and extracellular ligands.'),
(20016, 'EGFR is a cell-surface receptor and a member of the ErbB family of receptors, a subfamily of closely related receptor tyrosine kinases. It is activated by binding of its specific ligands (including EGF and TGFα) and then forms homodimer initiating the transduction of the signal and activating intracellular pathways that affect for example cell migration, adhesion and proliferation.'),
(20017, 'Dihydropyridine receptors are long-lasting (referring to the length of activation) voltage-dependent calcium channels responsible for excitation-contraction coupling of skeletal, smooth, and cardiac muscle. L-type calcium channel is a synonym.'),
(20018, 'The β3 receptor, also β3 adrenergic receptor, is a G-protein coupled receptor that are found mainly in the gallbladder, urinary bladder and in brwon adipose tissue. Upon activation by binding of epinephrine/adrenaline, norepinephrine/noradrenaline or an agonist agent it leads to enhancement of lipolysis in adipose tissue and to thermogenesis.'),
(20019, 'The β2 receptor, also β2 adrenergic receptor, is a G-protein coupled receptor found in smooth muscles in the GI tract, the uterus, the seminal tract and most importantly in the bronchi. Upon activation by epinephrine/adrenaline, norepinephrine/noradrenaline or an agonist agent it leads to relaxation of smooth muscles (in the bronchi) fascilitating respiration. β2 receptor are also expressed in other tissues but without importance in pharmacology.'),
(20020, 'Dopamine is a catecholamine and acts as neurotransmitter in the brain. It plays an important role in motor control, motivation, arousal, cognition, and reward, as well as a number of basic lower-level functions including lactation, sexual gratification, and nausea by binding to its G-protein receptors D1-D5. The effect of dopamine outside the brain is less well understood.'),
(20021, 'Noradrenaline/Norepinephrine is a catecholamine with multiple roles including as a hormone and as a neurotransmitter.'),
(20022, 'Serotonin is a monoamine derived from tryptophan mainly found in in the gastrointestinal (GI) tract, platelets and in the central nervous system (CNS).'),
(20023, 'Acetylcholine is a neurotransmitter that acts on both the peripheral nervous system (PNS) and central nervous system (CNS) and is the only neurotransmitter used in the motor division of the somatic nervous system. It is also the principal neurotransmitter in autonomic ganglia.'),
(20024, 'Monoamine oxidase A, also known as MAO-A, is an enzyme that preferentially deaminates norepinephrine (noradrenaline), epinephrine (adrenaline) and serotonin but also dopamine which leads to their inactivation. '),
(20025, 'Catechol-O-methyltransferase (COMT) is an enzyme that degrade catecholamines such as dopamine, epinephrine, and norepinephrine by introducing a methyl group to the catecholamine, which is donated by S-adenosyl methionine (SAM).'),
(20026, 'Monoamine oxidase B, also known as MAO-B, is an enzyme that mainly deaminates dopamine (DA) and thus leads to its inactivation.'),
(20027, 'Thrombin, also called factor IIa, is a serine protease that converts soluble fibrinogen into insoluble strands of fibrin, as well as catalyzing many other coagulation-related reactions (thrombin acts to convert factor XI to XIa, VIII to VIIIa, V to Va, and XIII to XIIIa). It also promotes platelet activation. It can be inhibited by AT III.'),
(20028, 'Prothrombin (factor II) is a protein of the coagulation cascade and is proteolytically cleaved by factor Xa to form thrombin.'),
(20029, 'Factor IX is the inactive precursor of the active factor IXa that acts as a serine protease in the coagulation system once it is proteolytically cleaved by a complex of factor VIIIa, calcium and membran phospholipids. Deficiency of factor IX causes hemophilia B.'),
(20030, 'Factor X is an enzyme of the coagulation cascade, acts as serine endopeptidase and is synthesized in the liver where it requires vitamin K for its synthesis. It is activated into factor Xa by both factor IX (with its cofactor factor VIII) and factor VII (with its cofactor tissue factor ) and cuts prothrombin to active thrombin.'),
(20031, 'Factor VII is the inactive precursor of the active serine protease factor VIIa. Factor VIIa forms a conjunction with tissue factor (TF, factor III) to initiate the process of coagulation in blood vessels. The most important substrate of factor VIIa/TF is factor X which is cleaved to factor Xa.'),
(20032, 'Factor VIII is bound to vWF in the inactive state. Once it is activated by thrombin (factor IIa) to factor VIIIa it separates from vWF and forms a complex with other proteins of the coagulation cascade to further activate factor X to factor Xa. Deficiency of factor VIII causes hemophilia A.'),
(20033, 'COX-1 (cyclooxygenase 1) is one of three known COX isoenzymes. COX-1 is considered a constitutive enzyme found in almost all tissues especially in the gastric mucosa and the kidneys. It converts arachidonic acid (AA) to prostaglandin H2 which is a precursor of other active molecules such as for example PGF2, PGE2, PGD2, prostacyclin and thromboxane.'),
(20034, 'P2Y12 receptor is an adenosine diphosphate (ADP) chemoreceptor found mainly but not exclusively on the surface of blood platelets and acts therefore as an important regulator in blood clotting.'),
(20035, 'COX-2 (cyclooxygenase 2) is one of three known COX isoenzymes. COX-2 is unexpressed under normal conditions in most cells, but upregulated during inflammation in cells immune cells, endothelias cells, fibroblasts and other cell types. It converts arachidonic acid (AA) to prostaglandin H2 which is a precursor of other active molecules such as for example PGF2, PGE2, PGD2, prostacyclin and thromboxane.'),
(20036, 'GP IIb/IIIa is an integrin complex found on platelets, acts as receptor for fibrinogen and thus leads to further platelet activation when bound by fibrinogen.'),
(20037, 'GPIb-V-IX is a protein complex on platelets that binds von Willebrand factor, allowing platelet adhesion and platelet plug formation at sites of vascular injury.'),
(20038, 'COX (cyclooxygenase) is a group of three known isoenzyms COX-1, COX-2 and COX-3 that are expressed in different tissues and cell types. It converts arachidonic acid (AA) to prostaglandin H2 which is a precursor of other active molecules such as for example PGF2, PGE2, PGD2, prostacyclin and thromboxane.'),
(20039, 'AT-III (antithrombin III) is a serine protease inhibitor (serpine) that targets and thus inhibits the function of the following factors of the coagulation pathway: F Xa, F IXa, F XIa, F XIIa and most importantly F IIa (thrombin). Its effect is enhanced strongly by heparin.'),
(20040, 'Factor XIII is a transglutaminase that is activated by thrombin to factor XIIIa. Upon activation it catalyzes formation of covalent cross-links between fibrin molecules which leads to an insoluble clot.'),
(20041, 'Vitamin A is a group of fat-soluble nutritional organic compounds, including retinol, retinal, retinoic acid, and several carotenoids, among which beta-carotene is the most important. It has multiple functions as it is among others important for growth and development, for the maintenance of the immune system and good vision.'),
(20042, 'Vitamin B12, also called cobalamine, is a water-soluble compound that plays among others an important role in the normal functioning of the brain and nervous system, and for the formation of blood. Intrinsic factor (IF) from the parietal cells in the stomach is needed for vitamin B12 uptake. Deficiency of IF due to autoimmune response against parietal cells leads to pernicious anemia.'),
(20043, 'Vitamin D3, also called cholecalciferol, belongs to the fat-soluble vitamins and is among others important for calcium and phosphate homeostasis. It can also be synthesized by the body starting from cholesterol and with steps in the skin (sun exposure needed), liver and kidney.'),
(20044, 'Vitamin K s a group of structurally similar, fat-soluble vitamins that the body requires for blood coagulation, and in metabolic pathways in bone and other tissue. It plays among others an crucial role as a cofactor in the liver for the synthesis of factor II, factor VII, factor IX, factor X and proteins C and S of the coagulation system.'),
(20045, 'Vitamin C, also known as ascobic acid, is a water-soluble organic compound that acts as cofactor in different enzymatic reaction, including collagen synthesis, and is considered to act as an antioxidant against oxidative stress. Deficiency leads to scurvy disease.'),
(20046, 'The Na-K-Cl cotransporter (NKCC) is a cell membrane protein that aids in the active transport of sodium, potassium, and chloride into and out of cells. NKCC2 is found specifically in the thick ascending limb of the loop of Henle in nephrons in the kidney where it reabsorbs sodium, potassium and chloride from the urine into the blood.'),
(20047, 'ROMK (renal outer medullary potassium channel) is an ATP-dependent potassium channel that transports potassium out of cells and plays an important role in potassium recycling in the thick ascending limb and potassium secretion in the cortical collecting duct of the nephron. '),
(20048, 'CFTR (cystic fibrosis transmembran conductance regulator) is a chloride ion channel in epithelial cell membranes in the lung, liver, pancreas, GI, reproductive tract, skin and other tissues. Mutations of CFTR leads to cystic fibrosis.'),
(20049, 'Nicotinic ACh receptor is a ligand-gated non-selective cation channel found on the presynaptic and postsynaptic sides of certain neurons in the CNS and in the neuromuscular junction. Upon ACh binding the channel opens which leads to depolarization of the membrane and thus to an EPSP in the neuron. It also activates other voltage-gated ion channels. '),
(20050, 'Na/K-ATPase (also known as the sodium-potassium pump) is an ATP-dependent antiporter in the cell membrane of all animal cells that pumps sodium out and potassium into cells. As such it maintains the resting potential, regulates cellular volume and forms concentration gradients that may be used in other transport mechanisms. It may use up to 65% of the cell's energy expenditure.'),
(20051, 'ENaC (epithelial sodium channel) is a membrane-bound ion-channel mainly found in apical membrane of polarized epithelial cells in the collecting tubules in the kidney. It is involved in the transepithelial sodium ion transport, which it accomplishes together with the Na+/K+-ATPase. ENaCis also found in other tissues like the the lung, the colon and others.'),
(20052, 'AT1 receptor or angiotensin II receptor type 1 is a G-coupled protein receptor in the membrane of vascular smooth muscle cells that upon binding of angiotensin II leads to vasoconstriction. It is also expressed on other tissues (kidney, brain, heart) where it mediates aldosterone synthesis and secretion, increased vasopressin secretion, cardiac hypertrophy, augmentation of peripheral noradrenergic activity, vascular smooth muscle cells proliferation, decreased renal blood flow, renal renin inhibition, renal tubular sodium reuptake, modulation of central sympathetic nervous system activity, cardiac contractility, central osmocontrol and extracellular matrix formation.'),
(20053, 'AT2 receptor or angiotensin II receptor type 2 is less well studied than the AT1 and plays no important role in pharmacology. It is thought to mediate effects in cell growth, fetal tissue development, apoptosis, and cellular differentiation.'),
(20054, 'Angiotensin-converting enzyme (ACE) is an enzyme produced in the lungs, the kidneys and by endothelias cells. It converts angiotensin I to angiotensin II, which acts as a strong vasoconstrictor. ACE also degrades bradykinin.'),
(20055, 'Renin is an enzyme that is secreted from cells of the juxtaglomerular apparatus in the kidney. It then activates the renin-angiotensin system by cleaving angiotensinogen, which is produced in the liver, to yiel angiotensie I.'),
(20056, 'The β1 receptor, also β1 adrenergic receptor, is a G-protein coupled receptor predominantly expressed on cell membranes in cardiac tissue. Upon activation by epinephrine/adrenaline, norepinephrine/noradrenaline or an agonist agent it has a positive inotropic, chronotropic, dromotropic and bathmotropic effect on the heart action.'),
(20057, 'The α2 receptor, also α2 adrenergic receptor, is a G-protein coupled receptor mainly expressed in the PNS and the CNS where it is located on presynaptic and postsynaptic sides. Upon activation by epinephrine/adrenaline, norepinephrine/noradrenaline or an agonist agent it among other effects leads to negative feedback of norepinephrine release in the CNS and thus to reduced sympathic activity. The effects mediated by α2 receptor are various though.'),
(20058, 'Bradykinin is an active peptide of the kinin group of protein produced from HMWK by proteolytic cleavage catalyzed by kallikrein during inflammation reaction and in case of tissue damage. It leads to endothelium-dependent vasodilatation, bronchi constraction and is involved in mechanism of pain.'),
(20059, 'Histamine is an organic nitrogen compound derived from the amino acid histidine. It is involved in local immunre responses as well as regulating functions in the GI and as a neurotransmitter in the brain. As part of immune response histamine is produced by basophils and mast cells and among other effects increases the permeability of the capillaries.'),
(20060, 'Substance P is a neuropeptide that acts as a neurtransmitter and as a neuromodulator. It is found in the brain and spinal cord and in the terminals of specific sensory nerves where it is associated with inflammatory processes and pain.'),
(20061, 'Ryanodine receptor (RyR) is an intracellular calcium channel in excitable cells like muscle and neurons. The RyR1 is primarly expressend in skeletal muscle, RyR2 in myocard cells, RyR3 mainly in the brain. They all mediate the release of calcium from the sacroplasmic reticulum (SR). Their activation is either by physically-coupled dihydropyridine receptors (skeletal muscle) or by calcium concentration (myocardium). '),
(20062, 'L-type calcium channels are long-lasting (referring to the length of activation) voltage-dependent calcium channels responsible for excitation-contraction coupling of skeletal, smooth, and cardiac muscle. Dihydropyridine receptor is a synonym.'),
(20063, 'Potassium channels are found in most cell types widely distributed in all tissues. In excitable cells such as neurons they shape action potentials and set the resting membrane potential. They contribute to the regulation of action potential duration in cardiac muscle cells. ATP-sensitive potassium channels in pancreatic beta cells regulate insuline release. There exist many different types of potassium channels.'),
(20064, 'Sodium channels are integral membrane proteins in excitable cells such as neurons, myocytes, certain types of glia and other cell types, and that upon activation are responsible for the rising phase of action potentials. There exist many different types of sodium channels.'),
(20065, 'The α1 receptor, also α1 adrenergic receptor, is a G-protein coupled receptor predominantly expressed in smooth muscle cells of small blood vessels (skin, sphincters in GI, kidney, etc.) and in the PNS and CNS. Upon activation by epinephrine/adrenaline, norepinephrine/noradrenaline or an agonist agent one of its principal effects is vasoconstriction. The effects mediated by α1 receptor are various though.'),
(20066, 'Guanylate cyclase (GC) in a lyase enzyme that synthesizes cGMP from GTP upon stimulation by high intracellular calcium levels.'),
(20067, 'Muscarinic ACh repectors are G protein-receptor complexes in the cell membranes that are activated upon binding of ACh. They are found extensively in the brain and in autonomic nerval system, but also in many other tissues. M1 to M5 muscarinic receptor exist; they have different secondary messengers and thus different effects but overall mediate effects of the parasympathetic nervous system.'),
(20068, 'Adenylate cyclase (AC) in a lyase enzyme with key regulatory roles in nearly all cells with many different effects where it synthesizes cAMP from ATP. It is mostly activated when transducing extracellular signals into intracellular responses.'),
(20069, 'HMG-CoA reductase is the rate-controlling enzyme of the metabolic pathway that produces cholesterol. '),
(20070, '5α-reductase it an enzyme that plays a role in bile acid biosynthesis, androgen metabolism and estrogen metabolism. There are three isoenzymes of 5-alpha reductase, which vary in different tissues with age. Pharmacologically interesting is especially the catalytic convertion of testosterone to the more potent dihydrotestosterone (DHT) which can be inhibited in various diseases.'),
(20071, 'Adenosine receptor is a G protein-coupled receptor found ubiquitous throughout the entire body. There exist four different subtypes A1, A2a, A2b and A3. The A1 and A2a play a role in regulating myocardial oxygen consumption and coronary blood flow. A2a receptor also has broader anti-inflammatory effects. A2b and A3 are involved in immune response in the periphery.'),
(20072, 'Immunoglobulin E (IgE) is a class of antibody found only in mammals where its main function is immunity to parasites. IgE receptors are found on mast cells and it thus plays an essential role in type I hypersensitivity. mIgE is membrane-bound IgE.'),
(20073, 'The leukotriene receptor is a G protein-coupled receptor and upon binding and thus activation by the leukotrienes LTD4, LTC4 and LTE4 it leads to contraction and proliferation of smooth muscle, edema, easinophil migration and damage in the mucus layer in the lung. Blocking it reduces bronchoconstriction and inflammation.'),
(20074, 'PDE (phosphodiesterase) is a group of enzymes that degrades the phosphodiester bond in the second messenger molecules cAMP and cGMP leading to decrease of their concentration and thus to a weaker effect. There exist different subtypes of PDE.'),
(20075, 'The glucocorticoid receptor (GR) is a cytosolic receptor expressed in almost every cell in the body that upon binding and activation by glucocorticoids regulates genes controlling the development, metabolism and immune response. It has pleiotropic effects throughout the body. Some important effects used in pharmacology: inhibition of COX-2 synthesis, cytokines, cell adhesion molecules.'),
(20076, '30S bacterial ribosome subunit is the smaller subunit of the 70S bacterial ribosome that performs the mRNA translation in bacteria.'),
(20077, 'Bacterial DNA-dependent RNA polymerase is the enzyme that performs the transcription process in bacteria.'),
(20078, 'DNA gyrase is a procaryotic type II topoisomerase and as such an enzyme that relieves strain while double-stranded DNA is being unwound by helicase during DNA replication process in bacteria.'),
(20079, '50S bacterial ribosome subunit is the larger subunit of the 70S bacterial ribosome that performs the mRNA translation in bacteria.'),
(20080, 'PDE-5 highly expressed in the corpus cavernosum and in the retina. It cleaves a covalent bond in cGMP and leads to its degradation. PDE-5 inhibitors thus lead to high cGMP levels which then results in vasodilatation.'),
(20081, 'Dopamine receptor is a G protein-coupled receptor expressed various tissues such as the CNS, intestines and other tissues. Upon activation by binding of dopamine it has pleiotropic effects in neurological processes including motivation, pleasure, cognition, memory, learning, and motor control, as well as modulation of neuroendocrine signaling. The different receptors expressed in different tissues and with different effect are named D1, D2, D3, D4 and D5.'),
(20082, 'H2 receptor is a histamine receptor of the G-protein type and is expressed on cell membranes in gastric parietal cells, smooth muscles, on vascular endothelial cells, in the heart, in the central nervous system, uterus and in other tissues. Its activation leads to stimulation of gastric acid secretion, smooth muscle relaxation, vasodilatation, and other effects.'),
(20083, 'H1 receptor is a histamine receptor of the G-protein type and is expressed on cell membranes in smooth muscles, on vascular endothelial cells, in the heart, in the central nervous system and in other tissues. Its activation leads to ileum contraction, itching, systemic vasodilatation, brochconstriction and other effects.'),
(20084, 'NMDA receptor is a ionotropic glutamate receptor that plays a crucial role in synaptic plasticity in the CNS.'),
(20085, 'GABAa receptor is an ionotropic receptor and ligand-gated ion channel on cell membranes of neurons in the CNS that upon binding of GABA leads to opening of chloride channels and thus results in hyperpolarization of the neuron.'),
(20086, 'Acetylcholinesterase, also known as AChE, is a serine protease that hydrolyzes the neurotransmitter acetylcholine. It is found at neuromuscular junctions and cholinergic brain synapses, where its activity serves decrease ACh concentration and thus to terminate synaptic transmission.'),
(20087, '5-HT3 receptor is a ligand-gated cation channel in the CNS and PNS that is activated upon binding of serotonin. Activation in the CNS (brain stem) leads among others to nausea and vomiting and anxiety; activation in the PNS leads among others to neuronal excitation and to emesis.'),
(20088, 'Dopamine D2 receptor is a G protein-coupled receptor in the brain and other tissues that upon activation leads to decrease of intracellular cAMP levels by inhibition of AC. It has many different effects, one of which is the triggering of nausea and vomiting in the chemoreceptor trigger area in the CNS.'),
(20089, 'Neuraminidase is an enzyme that cleave the glycosidic linkages of neuraminic acids. It is present in many organisms among them on the surface of influenca virus where it is a drug target.'),
(20090, 'Fungal cell wall mostly consists of chitin, other polysaccharides and glycoproteins.'),
(20091, 'Fungal cell membrane is similar to animal cell membrans but among other differences uses ergosterol instead of cholesterol to maintain plasma membrane structure and function.'),
(20092, 'The μ-opioid receptor (MOR) is a G protein-coupled receptor with high affinity for enkephalin and β-endorphin but low affinity for dynorphin. It is found in the periaqueductal gray (PAG) region, in the superficial dorsal horn of the spinal cord, in the GI tract and in others tissue regions. Activation causes effects such as analgesia, sedation, itching, nausea, euphoria, decreased respiration and decreased bowel motility.'),
(20093, 'Calcineurin (CN) is a protein phosphatase that activates the transcription factor NFAT (nuclear factor of activated T cell) in T cells that leads to transcpition of IL-2 genes.'),
(20094, 'mTOR (mammalian target of rapamycin) is a serine/threonine protein kinase that plays an important role in regulation of cell growth, cell proliferation, cell motility, cell survival, protein synthesis and transcription.'),
(20095, 'Aromatase is an enzyme of the cytochrome P450 superfamily localized in the endoplasmic reticulum where it is regulated by tissue-specific promoters that are controlled by hormones and cytokines. It is responsible for the conversion of androgenes to estrogens such as testosterone to estradiol.'),
(20096, '17α-hydroxylase is an enzyme of the cytochrome P450 superfamily localized in the endoplasmic reticulum and converts pregnenolone and progesterone to their 17-hydroxy forms.'),
(20097, 'The androgen receptor (AR) is a nuclear receptor present in many different tissues. It is activated upon binding of testosterone or dihydrotestosterone and acts as transcription factor that regulates the transcription of genes for the development and maintenance of the male sexual phenotype.'),
(20098, 'GnRH receptor (Gonadotropin-releasing hormone receptor) is a G-protein coupled receptor expressed on the surface of pituitary gonadotrope cells as well as lymphocytes, breast, ovary and prostate. Upon activation by binding of GnRH produced in the hypothalamus it causes release of FSH (follicle stimulating hormone) and LH (luteinizing hormone).'),
(20099, 'Imidazol 1 (I1) receptor mediates the sympatho-inhibitory actions of imidazolines to lower blood pressure. This receptor subtype is found in both the rostral ventro-lateral pressor and ventromedial depressor areas of the medulla oblongata. I2 and I3 receptors do also exist.'),
(20100, 'Microtubules are a polymer component of the cytoskeleton made by the protein monomer tubulin and found throughout the cytoplasm of most cells. '),
(20101, 'PPAR-γ is a nuclear receptor (PPAR-γ1 found in nearly all tissues except muscle; PPAR-γ2 mostly found in adipose tissue and the intestine) that plays an important role in the regulation of fatty acid storage and glucose metabolism. It stimulates lipid and glucose uptake and adipogenesis by fat cells.'),
(20102, 'B-cell activating factor (BAFF), also known as B lyompocyte stimulator (BLyS) is a cytokine expressed in some immune cells and that is involved in the positive regulation of B cell development.'),
(20103, 'B-Raf is a serine/threonine-protein kinase and forms part of severel intracellular transduction pathways such as MAP kinase / ERKs signaling pathway which affect cell division, differentiation and secretion.'),
(20104, 'The mineralocorticoid receptor (MR), also known as the aldosterone receptor, belongs to the cytosolic receptor family and is expressed in many tissues, such as the kidney, colon, heart, central nervous system and others. In epithelial tissues, its activation leads to the expression of proteins regulating ionic and water transports.'),
(20105, 'Voltage-dependent calcium channels (VDCC) are channels with a permeability to the calcium ion Ca2+. Thay are found in the membrane of excitable cells (e.g., muscle, glial cells, neurons, etc.). L-type calcium channels are a subtype of VDCCs found mainly on smooth muscle cells and in the heart; other subtypes are found in the CNS and in other tissues.'),
(20106, 'Vasopressin (ADH) receptor 2, also arginine-vasopressin receptor 2 (AVPR2), is a G-protein-coupled receptor mainly found in the cells of the collecting duct system in the kidney. Its activation by binding of vasporessin (ADH) leads to increased synthesis and transportation of aquaporine proteins into the cell membrane which are responsible for reabsorption of water from urine into the blood.'),
(20107, 'The sodium-chloride symporter (Na+-Cl− cotransporter, NCC) is a cotransporter in the kidney which has the function of reabsorbing sodium and chloride ions from the tubular fluid into the cells of the distal convoluted tubule of the nephron.'),
(20108, 'Carbonic anhydrase (CA) is an enzyme that catalyzes the rapid interconversion of carbon dioxide and water to bicarbonate and protons (or vice versa).'),
(20109, 'Deoxyribonucleic acid (DNA) is a molecule that encodes the genetic instructions used in the development and functioning of all known living organisms and many viruses. Drugs that target DNA such as anti-cancer drugs and anti-autoimmune drugs have different mechanisms of actions: they alkylate DNA leading to degradation, they target the DNA replication process and other mechanisms.'),
(20110, 'Thymidylate synthetase is an enzyme that is required for the synthesis of thymidinde monophosphate (dTMP) and subsequently dTTP. The step it catalyzes is a reductive methylation.'),
(20111, 'Dihydrofolate reductase (DHFR, human) is an enzyme that reduces dihydrofolic acid to tetrahydrofolic (THF) acid with NADPH as co-factor. THF is needed for the de novo synthesis of purines, thymidylic acid, and certain amino acids. '),
(20112, 'Type II topoisomerase cuts both strands of DNA helix in order to manage DNA supercoils during transcription and DNA replication. It needs ATP as energy source.'),
(20113, 'Type I topoisomerase cuts both strands of DNA helix in order to manage DNA supercoils during transcription and DNA replication. It is an ATP-independent enzyme.'),
(20114, 'Retinoid X receptor (RXR) is a nuclear receptor that mediates the biological effects of retinoids by acting as transcprition factor for genes controlling cell differentiation and cell proliferation.'),
(20115, 'Plasminogen is a protein formed in the liver that can be proteolytically cleaved to form the serine protease plasmin that acts to dissolve fibrin blood clots. '),
(20116, 'PPAR-α is a nuclear receptor that is involved in metabolism of carbohydrates and fats, as well as adipose tissue differentiation. This increases the synthesis of lipoprotein lipase thus decreases blood level of triglycerides.'),
(20117, 'H+/K+ ATPase is an enzyme cell membrane of parietal cells of the gastric mucosa that pumps protons into the stomach lumen and potassium into the cell. It is thus referred to as the "proton pump" or "acid pump". '),
(20118, 'Xanthine oxidase (XO) is an enzyme that plays an important role in the metabolism of purine bases by catalyzing the oxidation of xanthine to uric acid. '),
(20119, 'β-lactamase is an enzyme produced by some bacteria that provides resistance to β-lactam antibiotics such as penicillins, cephalosporins and carbapenems by breaking the β-lactam ring of the antibiotics' structure.'),
(20120, 'Bacterial dihydrofolate reductase is an enzyme that catalyzes the reaction of DHF to THF (tetrahydrofolic acid), which is an essential precursor in the thymidine synthesis pathway.'),
(20121, 'CCR5 receptor is a protein expressed on the surface of T cells (and other leukocytes) and acts as a chemokine receptor. It has become a drug target structure since CCR5 is one of the ways that HIV uses to enter and infect host cells. '),
(20122, 'Integrase is a viral enzyme that integrates retroviral DNA into the host cell genome. It is one of the necessary steps for HIV to reproduce.'),
(20123, 'Protease is a type of enzymes that cleaves protein peptide bonds by hydrolysis. Some proteases that are interesting for pharmaceutical purposes are the HIV-1 protease and hepatitis C virus protease, that can both be inhibited by specific PIs (protease inhibitors). '),
(20124, 'Reverse transcriptase is an enzyme which generates complementary DNA (cDNA) from an RNA template. It is needed for the replication of retroviruses (e.g. HIV).'),
(20125, 'Thyroperoxidase (TPO) is an enzyme that oxidizes anion iodide (I-) to iodine (I0) which is an essential step in the synthesis of thyroid hormone precursor thyroglobulin. It thus leads to reduced production of T3 and T4 in the thyroid gland. '),
(20126, 'GABAb receptors are metabotropic G-protein receptors that are linked to K+ channels. Upon activation they stimulate the opening of potassium channels which leads to hyperpolarisation. GABAb receptors are thus considered inhibitory receptors.'),
(20127, 'Endothelin receptors (ET) are a family of G protein-coupled receptors whose activation by endothelin leads to elevation of intracellular calcium. ETa is found on smooth muscles of blood vessels and leads to vasoconstriction. Endothelin is one of the strongest vasoconstrictors.'),
(20128, 'PDE-3 (phosphodiesterase 3) is highly expressed in the heart and the rest of the cardiovascular system. It cleaves a covalent bond in cAMP and leads to its degradation. PDE-3 inhibitors thus lead to high cAMP levels which then results in increased PKA activity.');
|
<gh_stars>100-1000
-- io.test
--
-- execsql {
-- BEGIN;
-- INSERT INTO abc VALUES(11, 12);
-- }
BEGIN;
INSERT INTO abc VALUES(11, 12); |
<gh_stars>10-100
insert into cell_info values
(2, 4, 4, 'B', false, false),
(2, 4, 5, 'C', false, false),
(2, 4, 14, 'O', false, false),
(2, 4, 15, 'P', false, false),
(3, 2, 7, 'G', false, false),
(3, 3, 4, 'H', false, false),
(3, 3, 6, 'F', false, false),
(3, 3, 9, 'K', false, false),
(3, 3, 10, 'J', false, false),
(3, 3, 11, 'G', false, true),
(3, 3, 12, 'I', false, false),
(3, 3, 13, 'G', false, true),
(3, 4, 1, 'A', true, false),
(3, 4, 3, 'K', true, false),
(3, 4, 5, 'F', false, false),
(3, 4, 7, 'G', false, false),
(3, 4, 8, 'M', false, false),
(3, 4, 10, 'H', false, false),
(3, 4, 13, 'I', false, false),
(3, 4, 17, 'L', false, false),
(3, 4, 18, 'H', false, false),
(4, 3, 5, 'K', false, false),
(4, 3, 8, 'G', false, false),
(4, 3, 9, 'H', false, false),
(4, 3, 13, 'I', false, true),
(4, 3, 19, 'G', false, false),
(4, 3, 20, 'G', false, false),
(4, 3, 21, 'L', false, false),
(5, 1, 1, 'B', true, false),
(5, 1, 2, 'A', true, false),
(5, 1, 3, 'D', false, false),
(5, 1, 4, 'C', false, false),
(5, 1, 5, 'F', false, false),
(5, 1, 6, 'E', false, false),
(5, 1, 7, 'H', false, false),
(5, 1, 8, 'G', false, false),
(5, 1, 9, 'I', false, true),
(5, 1, 10, 'F', false, false),
(5, 1, 11, 'E', false, false),
(5, 1, 12, 'H', false, false),
(5, 2, 1, 'A', true, false),
(5, 2, 2, 'B', false, false),
(5, 2, 3, 'F', false, false),
(5, 2, 4, 'G', false, false),
(5, 2, 5, 'E', false, false),
(5, 2, 6, 'C', false, false),
(5, 2, 7, 'I', false, false),
(5, 2, 8, 'H', false, false),
(5, 2, 9, 'J', false, false),
(5, 2, 10, 'D', false, true),
(5, 2, 11, 'G', false, false),
(5, 2, 12, 'H', false, false),
(5, 2, 13, 'J', false, false),
(5, 2, 14, 'D', false, true),
(5, 3, 2, 'B', false, false),
(5, 3, 4, 'D', false, false),
(5, 3, 5, 'E', false, false),
(5, 3, 6, 'F', false, false),
(5, 3, 7, 'G', false, false),
(5, 3, 8, 'H', false, false),
(5, 3, 9, 'I', false, false),
(5, 3, 10, 'J', false, false),
(5, 3, 11, 'K', false, true),
(5, 3, 13, 'I', false, false),
(5, 4, 3, 'C', true, false),
(5, 4, 5, 'G', false, false),
(5, 4, 11, 'M', false, false),
(5, 4, 13, 'K', false, false),
(5, 4, 14, 'J', false, false),
(5, 4, 16, 'I', false, false),
(5, 4, 20, 'O', false, true),
(5, 5, 2, 'A', true, false),
(5, 5, 3, 'F', false, false),
(5, 5, 4, 'C', false, false),
(5, 5, 5, 'D', false, false),
(5, 5, 10, 'G', false, false),
(5, 5, 12, 'E', false, false),
(5, 5, 13, 'L', false, false),
(5, 5, 17, 'E', false, false),
(5, 5, 18, 'N', false, true);
|
<filename>mysqlsmo/objects/udf_function/templates/+default/nodes.sql
{#
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#}
SELECT
name as name,
ret as return_type,
dl as soname
FROM mysql.func; |
<gh_stars>1-10
--<snippetsp_StartMergeSnapshot>
-- Start the snapshot agent if not already running.
DECLARE @publication AS sysname;
SET @publication = N'AdvWorksSalesOrdersMerge';
EXEC sp_startpublication_snapshot
@publication = @publication;
GO
--</snippetsp_StartMergeSnapshot> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.