sql
stringlengths
6
1.05M
<filename>api/sql/schema/750$transfer.payee.get.sql CREATE PROCEDURE [transfer].[payee.get] -- gets payee information @payeeId BIGINT, -- payee id in the system @meta core.metaDataTT READONLY -- information for the user that makes the operation AS DECLARE @userId BIGINT = (SELECT [auth.actorId] FROM @meta) DECLARE @languageId BIGINT = (SELECT languageId FROM [core].[language] cl JOIN [user].[session] us ON us.[language] = cl.[iso2Code] WHERE us.[actorId] = @userId) IF @languageId IS NULL SET @languageId = (SELECT [languageId] FROM [core].[language] WHERE [name] = 'English') SELECT p.payeeId, p.payeeName, p.accountTypeId, ISNULL(itt.itemNameTranslation, itn.itemName) AS accountType, p.accountNumber, p.bankName, p.SWIFT FROM [transfer].payee p JOIN core.itemName itn ON itn.itemNameId = p.accountTypeId LEFT JOIN core.itemTranslation itt ON itt.itemNameId = itn.itemNameId AND languageId = @languageId WHERE payeeId = @payeeId
CREATE OR REPLACE VIEW sqm.vw_bug_all_componentes AS( SELECT vw.product, vw.product_version, vw.component, count(1) as Total_Bugs FROM sqm.vw_bugs_selecionados vw group by vw.product, vw.product_version, vw.component ORDER BY vw.product ASC, vw.product_version DESC );
{\rtf1\ansi\ansicpg1252\cocoartf2511 \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;} {\colortbl;\red255\green255\blue255;} {\*\expandedcolortbl;;} \paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 \pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0 \f0\fs24 \cf0 -- phpMyAdmin SQL Dump\ -- version 4.9.0.1\ -- https://www.phpmyadmin.net/\ --\ -- Host: localhost:8889\ -- Generation Time: Jun 20, 2020 at 01:17 PM\ -- Server version: 5.7.26\ -- PHP Version: 7.3.7\ \ SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";\ SET time_zone = "+00:00";\ \ --\ -- Database: `EX2`\ --\ \ -- --------------------------------------------------------\ \ --\ -- Table structure for table `DEPOT`\ --\ \ CREATE TABLE `DEPOT` (\ `N_DEP` int(11) NOT NULL,\ `NOM_DEP` char(50) DEFAULT NULL,\ `ADR` char(50) DEFAULT NULL\ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\ \ --\ -- Dumping data for table `DEPOT`\ --\ \ INSERT INTO `DEPOT` (`N_DEP`, `NOM_DEP`, `ADR`) VALUES\ (310, 'CAFE DE LA GARE', 'BURES'),\ (311, 'CAFE DE PARIS', 'ARCUEIL'),\ (324, 'PRESSE_CITY', 'PARIS'),\ (325, 'CAFE <NAME>', 'ORSAY'),\ (328, '<NAME>', 'PARIS'),\ (345, '<NAME>', 'BURES'),\ (357, 'CAFE DE LA GARE', 'PARIS'),\ (381, 'LAVENTURE', 'BREUILLET');\ \ -- --------------------------------------------------------\ \ --\ -- Table structure for table `JOURNAL`\ --\ \ CREATE TABLE `JOURNAL` (\ `CODE_J` int(11) NOT NULL,\ `TITRE` char(50) DEFAULT NULL,\ `PRIX` char(50) DEFAULT NULL,\ `TYPE` char(20) DEFAULT NULL,\ `PERIODE` char(50) NOT NULL,\ `ADR_J` char(50) DEFAULT NULL\ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\ \ --\ -- Dumping data for table `JOURNAL`\ --\ \ INSERT INTO `JOURNAL` (`CODE_J`, `TITRE`, `PRIX`, `TYPE`, `PERIODE`, `ADR_J`) VALUES\ (110, 'LE MONDE', '4.5', 'INFO', 'QUOTIDIEN', 'PARIS'),\ (115, 'LIBERATION', '4.5', 'INFO', 'QUOTIDIEN', 'PARIS'),\ (120, 'LA RECHERCHE', '32', 'SCIENCE', 'MENSUEL', 'PARIS'),\ (153, '<NAME>', '20', '', 'HEBDO', 'MONTROUGE'),\ (156, 'SCIENCE ET VIE', '20', 'SCIENCE', 'MENSUEL', 'PARIS'),\ (160, 'ELLE', '15', 'FEMININ', 'HEBDO', 'MONTROGE');\ \ -- --------------------------------------------------------\ \ --\ -- Table structure for table `LIVRAISON`\ --\ \ CREATE TABLE `LIVRAISON` (\ `CODE_J` int(11) DEFAULT NULL,\ `N_DEP` int(11) DEFAULT NULL,\ `DATE_L` date DEFAULT NULL,\ `QTE_L` int(11) DEFAULT NULL,\ `QTE_R` int(11) DEFAULT NULL\ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;\ \ --\ -- Dumping data for table `LIVRAISON`\ --\ \ INSERT INTO `LIVRAISON` (`CODE_J`, `N_DEP`, `DATE_L`, `QTE_L`, `QTE_R`) VALUES\ (110, 328, '1992-05-04', 20, 0),\ (115, 328, '1992-05-05', 10, 1),\ (110, 345, '1992-05-04', 48, 1),\ (115, 345, '1992-05-03', 40, 2),\ (110, 381, '1992-01-23', 20, 0),\ (115, 381, '1992-01-24', 20, 0),\ (120, 381, '1992-01-25', 25, 0);\ \ --\ -- Indexes for dumped tables\ --\ \ --\ -- Indexes for table `DEPOT`\ --\ ALTER TABLE `DEPOT`\ ADD PRIMARY KEY (`N_DEP`);\ \ --\ -- Indexes for table `JOURNAL`\ --\ ALTER TABLE `JOURNAL`\ ADD PRIMARY KEY (`CODE_J`);\ }
<filename>phpapm/common/phpapm.sql -- phpMyAdmin SQL Dump -- version 3.4.8 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014 年 08 月 27 日 09:54 -- 服务器版本: 5.1.63 -- PHP 版本: 5.2.17p1 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 */; -- -- 数据库: `dxslaw` -- -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor` ( `ID` int(11) unsigned NOT NULL AUTO_INCREMENT, `V1` varchar(100) CHARACTER SET gb2312 DEFAULT NULL, `V2` varchar(100) CHARACTER SET gb2312 DEFAULT NULL, `V3` varchar(200) CHARACTER SET gb2312 DEFAULT NULL, `V4` text CHARACTER SET gb2312, `V5` varchar(200) CHARACTER SET gb2312 DEFAULT NULL, `FUN_COUNT` int(11) unsigned DEFAULT NULL, `CAL_DATE` datetime DEFAULT NULL, `V6` decimal(12,6) DEFAULT NULL, `MD5` char(32) CHARACTER SET gb2312 DEFAULT NULL COMMENT '唯一标志', `ADD_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `TOTAL_DIFF_TIME` decimal(18,2) DEFAULT NULL COMMENT '花费总耗时', `MEMORY_MAX` decimal(12,6) DEFAULT NULL COMMENT '内存单次最大消耗', `MEMORY_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '内存消耗.总', `CPU_USER_TIME_MAX` decimal(12,6) DEFAULT NULL COMMENT '用户消耗CPU,单次最大', `CPU_USER_TIME_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '用户消耗CPU,总', `CPU_SYS_TIME_MAX` decimal(12,6) DEFAULT NULL COMMENT '系统消耗CPU,单次最大', `CPU_SYS_TIME_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '系统消耗CPU,总', `OCI_UNIQUE` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模拟ocirowcount', PRIMARY KEY (`ID`), UNIQUE KEY `MD5` (`MD5`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='所有监控' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor_config` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor_config` ( `V1` varchar(100) CHARACTER SET gb2312 DEFAULT NULL, `V2` varchar(100) CHARACTER SET gb2312 DEFAULT NULL, `COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '日综合数据的统计方式', `V3_LINK` varchar(200) CHARACTER SET gb2312 DEFAULT NULL COMMENT 'V3的连接方式', `V4_LINK` varchar(200) CHARACTER SET gb2312 DEFAULT NULL COMMENT 'V4的连接方式', `ORDERBY` decimal(4,0) DEFAULT NULL, `PHONE` varchar(100) CHARACTER SET gb2312 DEFAULT NULL COMMENT '手机号码,分号隔开', `PHONE_ORDER` decimal(10,0) DEFAULT NULL COMMENT '手机通知条件大于', `PHONE_ORDER_LESS` decimal(10,0) DEFAULT NULL COMMENT '手机通知条件小于', `ID` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID', `AS_NAME` varchar(100) CHARACTER SET gb2312 DEFAULT NULL COMMENT '页面上面显示的别名', `DAY_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 NOT NULL DEFAULT '0' COMMENT '日数据的统计方式:', `HOUR_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 NOT NULL DEFAULT '0' COMMENT '小时数据的统计方式:', `MIN_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 NOT NULL DEFAULT '0' COMMENT '分钟数据的统计方式:', `PERCENT_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 NOT NULL DEFAULT '0' COMMENT '是否显示百分比', `V2_GROUP` varchar(100) CHARACTER SET gb2312 DEFAULT NULL COMMENT 'v2分组名称', `V2_COMPARE` decimal(4,0) DEFAULT '0' COMMENT '0为不显示,1为显示', `PINFEN_RULE` text CHARACTER SET gb2312 COMMENT '评分规则', `V2_CONFIG_OTHER` varchar(200) CHARACTER SET gb2312 DEFAULT NULL COMMENT '序列化存储V2的其他属性,{NO_COUNT:true/false#标识数据是否需要统计入总数}', `COMPARE_GROUP` varchar(100) CHARACTER SET gb2312 DEFAULT NULL, `VIRTUAL_COLUMNS` decimal(2,0) DEFAULT NULL, `OCI_UNIQUE` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模拟ocirowcount', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置显示方式' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor_date` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor_date` ( `CAL_DATE` date NOT NULL, `V1` varchar(100) CHARACTER SET gb2312 NOT NULL, `V2` varchar(100) CHARACTER SET gb2312 NOT NULL, `FUN_COUNT` decimal(18,2) DEFAULT NULL, `LOOKUP` datetime DEFAULT NULL COMMENT '验收过数据', `OCI_UNIQUE` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模拟ocirowcount', PRIMARY KEY (`CAL_DATE`,`V1`,`V2`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='日统计报表'; -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor_hour` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor_hour` ( `CAL_DATE` datetime DEFAULT NULL, `V1` varchar(100) CHARACTER SET gb2312 NOT NULL, `V2` varchar(100) CHARACTER SET gb2312 NOT NULL, `V3` varchar(200) CHARACTER SET gb2312 DEFAULT NULL, `FUN_COUNT` float(18,2) DEFAULT NULL, `DIFF_TIME` decimal(12,6) DEFAULT NULL, `ADD_TIME` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `TOTAL_DIFF_TIME` decimal(18,2) DEFAULT NULL COMMENT '花费总耗时', `MEMORY_MAX` decimal(12,6) DEFAULT NULL COMMENT '内存单次最大消耗', `MEMORY_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '内存消耗.总', `CPU_USER_TIME_MAX` decimal(12,6) DEFAULT NULL COMMENT '用户消耗CPU,单次最大', `CPU_USER_TIME_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '用户消耗CPU,总', `CPU_SYS_TIME_MAX` decimal(12,6) DEFAULT NULL COMMENT '系统消耗CPU,单次最大', `CPU_SYS_TIME_TOTAL` decimal(12,6) DEFAULT NULL COMMENT '系统消耗CPU,总', `OCI_UNIQUE` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模拟ocirowcount', UNIQUE KEY `V1` (`V1`,`V2`,`V3`,`CAL_DATE`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor_v1` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor_v1` ( `V1` varchar(100) CHARACTER SET gb2312 NOT NULL COMMENT '名称', `AS_NAME` varchar(100) CHARACTER SET gb2312 DEFAULT NULL COMMENT '页面上面显示的别名', `COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '日综合数据的统计方式', `CHAR_TYPE` decimal(10,0) DEFAULT NULL COMMENT '默认显示的图标类型', `GROUP_NAME` varchar(100) CHARACTER SET gb2312 NOT NULL DEFAULT '默认' COMMENT '分组名称', `START_CLOCK` decimal(2,0) NOT NULL DEFAULT '0' COMMENT '日数据默认开始小时时间', `SHOW_TEMPLATE` decimal(2,0) NOT NULL DEFAULT '0' COMMENT '采用的显示模板', `SHOW_ALL` decimal(2,0) NOT NULL DEFAULT '1' COMMENT '显示汇总', `ID` int(11) unsigned NOT NULL AUTO_INCREMENT, `DAY_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '日数据的统计方式:', `HOUR_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '小时数据的统计方式:', `MIN_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '分钟数据的统计方式:', `PERCENT_COUNT_TYPE` varchar(10) CHARACTER SET gb2312 DEFAULT NULL COMMENT '是否显示百分比', `SHOW_AVG` decimal(2,0) NOT NULL DEFAULT '0' COMMENT '显示平均', `GROUP_NAME_2` varchar(100) CHARACTER SET gb2312 NOT NULL DEFAULT '默认', `GROUP_NAME_1` varchar(100) CHARACTER SET gb2312 NOT NULL DEFAULT '业务分析', `DUIBI_NAME` text CHARACTER SET gb2312 COMMENT '对比分组名', `IS_DUTY` decimal(2,0) NOT NULL DEFAULT '0' COMMENT '是否需要验收', `PINFEN_RULE` text CHARACTER SET gb2312 COMMENT '评分规则', `PINFEN_RULE_NAME` varchar(40) CHARACTER SET gb2312 DEFAULT NULL COMMENT '顶部菜单显示的评分标准名称', `OCI_UNIQUE` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '模拟ocirowcount', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='配置V1的各项基本信息' AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- 表的结构 `phpapm_monitor_queue` -- CREATE TABLE IF NOT EXISTS `phpapm_monitor_queue` ( `id` bigint(15) unsigned NOT NULL AUTO_INCREMENT, `queue` text CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>100-1000 CREATE database if NOT EXISTS `iyydb_job` default character set utf8 collate utf8_general_ci; use `iyydb_job`; SET FOREIGN_KEY_CHECKS=0; # # Structure for table "XXL_JOB_QRTZ_CALENDARS" # CREATE TABLE `XXL_JOB_QRTZ_CALENDARS` ( `SCHED_NAME` varchar(120) NOT NULL, `CALENDAR_NAME` varchar(200) NOT NULL, `CALENDAR` blob NOT NULL, PRIMARY KEY (`SCHED_NAME`,`CALENDAR_NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_CALENDARS" # # # Structure for table "XXL_JOB_QRTZ_FIRED_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_FIRED_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `ENTRY_ID` varchar(95) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `INSTANCE_NAME` varchar(200) NOT NULL, `FIRED_TIME` bigint(13) NOT NULL, `SCHED_TIME` bigint(13) NOT NULL, `PRIORITY` int(11) NOT NULL, `STATE` varchar(16) NOT NULL, `JOB_NAME` varchar(200) DEFAULT NULL, `JOB_GROUP` varchar(200) DEFAULT NULL, `IS_NONCONCURRENT` varchar(1) DEFAULT NULL, `REQUESTS_RECOVERY` varchar(1) DEFAULT NULL, PRIMARY KEY (`SCHED_NAME`,`ENTRY_ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_FIRED_TRIGGERS" # INSERT INTO `XXL_JOB_QRTZ_FIRED_TRIGGERS` VALUES ('schedulerFactoryBean','owen15263060811091526306081114','5','1','owen1526306081109',1526306155083,1526306160000,5,'ACQUIRED',NULL,NULL,'0','0'); # # Structure for table "XXL_JOB_QRTZ_JOB_DETAILS" # CREATE TABLE `XXL_JOB_QRTZ_JOB_DETAILS` ( `SCHED_NAME` varchar(120) NOT NULL, `JOB_NAME` varchar(200) NOT NULL, `JOB_GROUP` varchar(200) NOT NULL, `DESCRIPTION` varchar(250) DEFAULT NULL, `JOB_CLASS_NAME` varchar(250) NOT NULL, `IS_DURABLE` varchar(1) NOT NULL, `IS_NONCONCURRENT` varchar(1) NOT NULL, `IS_UPDATE_DATA` varchar(1) NOT NULL, `REQUESTS_RECOVERY` varchar(1) NOT NULL, `JOB_DATA` blob, PRIMARY KEY (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_JOB_DETAILS" # INSERT INTO `XXL_JOB_QRTZ_JOB_DETAILS` VALUES ('quartzScheduler','3','1',NULL,'com.open.capacity.core.jobbean.RemoteHttpJobBean','0','0','0','0',X'ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787000737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F40000000000010770800000010000000007800'),('quartzScheduler','4','1',NULL,'com.open.capacity.core.jobbean.RemoteHttpJobBean','0','0','0','0',X'ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787000737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F40000000000010770800000010000000007800'),('schedulerFactoryBean','5','1',NULL,'com.xxl.job.admin.core.jobbean.RemoteHttpJobBean','0','0','0','0',X'ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787000737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F40000000000010770800000010000000007800'),('schedulerFactoryBean','6','1',NULL,'com.xxl.job.admin.core.jobbean.RemoteHttpJobBean','0','0','0','0',X'ACED0005737200156F72672E71756172747A2E4A6F62446174614D61709FB083E8BFA9B0CB020000787200266F72672E71756172747A2E7574696C732E537472696E674B65794469727479466C61674D61708208E8C3FBC55D280200015A0013616C6C6F77735472616E7369656E74446174617872001D6F72672E71756172747A2E7574696C732E4469727479466C61674D617013E62EAD28760ACE0200025A000564697274794C00036D617074000F4C6A6176612F7574696C2F4D61703B787000737200116A6176612E7574696C2E486173684D61700507DAC1C31660D103000246000A6C6F6164466163746F724900097468726573686F6C6478703F40000000000010770800000010000000007800'); # # Structure for table "XXL_JOB_QRTZ_LOCKS" # CREATE TABLE `XXL_JOB_QRTZ_LOCKS` ( `SCHED_NAME` varchar(120) NOT NULL, `LOCK_NAME` varchar(40) NOT NULL, PRIMARY KEY (`SCHED_NAME`,`LOCK_NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_LOCKS" # INSERT INTO `XXL_JOB_QRTZ_LOCKS` VALUES ('quartzScheduler','STATE_ACCESS'),('quartzScheduler','TRIGGER_ACCESS'),('schedulerFactoryBean','STATE_ACCESS'),('schedulerFactoryBean','TRIGGER_ACCESS'); # # Structure for table "XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS" # CREATE TABLE `XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_PAUSED_TRIGGER_GRPS" # # # Structure for table "XXL_JOB_QRTZ_SCHEDULER_STATE" # CREATE TABLE `XXL_JOB_QRTZ_SCHEDULER_STATE` ( `SCHED_NAME` varchar(120) NOT NULL, `INSTANCE_NAME` varchar(200) NOT NULL, `LAST_CHECKIN_TIME` bigint(13) NOT NULL, `CHECKIN_INTERVAL` bigint(13) NOT NULL, PRIMARY KEY (`SCHED_NAME`,`INSTANCE_NAME`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_SCHEDULER_STATE" # INSERT INTO `XXL_JOB_QRTZ_SCHEDULER_STATE` VALUES ('quartzScheduler','USERCHI-E29PEDA1525876570951',1525876886761,5000),('schedulerFactoryBean','owen1526306081109',1526306155345,5000); # # Structure for table "XXL_JOB_QRTZ_TRIGGER_GROUP" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_GROUP` ( `id` int(11) NOT NULL AUTO_INCREMENT, `app_name` varchar(64) NOT NULL COMMENT '执行器AppName', `title` varchar(12) NOT NULL COMMENT '执行器名称', `order` tinyint(4) NOT NULL DEFAULT '0' COMMENT '排序', `address_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入', `address_list` varchar(512) DEFAULT NULL COMMENT '执行器地址列表,多地址逗号分隔', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGER_GROUP" # INSERT INTO `XXL_JOB_QRTZ_TRIGGER_GROUP` VALUES (1,'open-xxl-job-demo','示例执行器',1,0,NULL); # # Structure for table "XXL_JOB_QRTZ_TRIGGER_INFO" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_INFO` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_group` int(11) NOT NULL COMMENT '执行器主键ID', `job_cron` varchar(128) NOT NULL COMMENT '任务执行CRON', `job_desc` varchar(255) NOT NULL, `add_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, `author` varchar(64) DEFAULT NULL COMMENT '作者', `alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件', `executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略', `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler', `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数', `executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略', `executor_fail_strategy` varchar(50) DEFAULT NULL COMMENT '失败处理策略', `glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型', `glue_source` text COMMENT 'GLUE源代码', `glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注', `glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间', `child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGER_INFO" # INSERT INTO `XXL_JOB_QRTZ_TRIGGER_INFO` VALUES (5,1,'*/5 * * * * ?','有参任务','2018-05-12 06:30:38','2018-05-12 06:30:38','merlin','<EMAIL>','FIRST','demoJobHandler','demoJobHandler','SERIAL_EXECUTION','FAIL_ALARM','BEAN','','GLUE代码初始化','2018-05-12 06:30:38',NULL),(6,1,'*/5 * * * * ?','无参任务','2018-05-12 06:32:16','2018-05-12 06:32:16','merlin','<EMAIL>','FIRST','demoJobHandler','','SERIAL_EXECUTION','FAIL_ALARM','BEAN','','GLUE代码初始化','2018-05-12 06:32:16',NULL); # # Structure for table "XXL_JOB_QRTZ_TRIGGER_LOG" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_LOG` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_group` int(11) NOT NULL COMMENT '执行器主键ID', `job_id` int(11) NOT NULL COMMENT '任务,主键ID', `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型', `executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址', `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler', `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数', `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间', `trigger_code` int(11) NOT NULL COMMENT '调度-结果', `trigger_msg` varchar(2048) DEFAULT NULL COMMENT '调度-日志', `handle_time` datetime DEFAULT NULL COMMENT '执行-时间', `handle_code` int(11) NOT NULL COMMENT '执行-状态', `handle_msg` varchar(2048) DEFAULT NULL COMMENT '执行-日志', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=69 DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGER_LOG" # INSERT INTO `XXL_JOB_QRTZ_TRIGGER_LOG` VALUES (1,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:25',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:51:36',200,''),(2,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:30',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:51:46',200,''),(3,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:35',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:51:56',200,''),(4,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:40',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:06',200,''),(5,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:45',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:16',200,''),(6,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:50',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:26',200,''),(7,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:51:55',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:36',200,''),(8,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:00',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:46',200,''),(9,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:05',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:52:56',200,''),(10,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:10',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:06',200,''),(11,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:15',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:16',200,''),(12,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:20',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:26',200,''),(13,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:25',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:36',200,''),(14,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:30',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:46',200,''),(15,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:35',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:56',200,''),(16,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:40',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [业务运行中,被强制终止]'),(17,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:45',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(18,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:50',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(19,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:52:55',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(20,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:00',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(21,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:01',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:11',200,''),(22,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:05',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(23,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:05',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:21',200,''),(24,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:10',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(25,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:10',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:31',200,''),(26,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:15',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(27,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:15',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:41',200,''),(28,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:20',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(29,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:20',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:53:51',200,''),(30,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:25',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(31,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:25',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:01',200,''),(32,1,5,'BEAN','192.168.45.1:9999','demoJobHandler','demoJobHandler','2018-05-14 21:53:30',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(33,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:30',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [业务运行中,被强制终止]'),(34,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:35',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(35,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:40',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(36,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:45',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(37,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:50',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(38,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:53:55',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(39,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:54:00',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(40,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:54:05',200,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:200<br>msg:null','2018-05-14 21:54:06',500,'Web容器销毁终止 [任务尚未执行,在调度队列中被终止]'),(41,1,6,'BEAN','192.168.45.1:9999','demoJobHandler','','2018-05-14 21:54:10',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:[192.168.45.1:9999]<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br><br><span style=\"color:#00c0ef;\" > >>>>>>>>>>>触发调度<<<<<<<<<<< </span><br>触发调度:<br>address:192.168.45.1:9999<br>code:500<br>msg:java.lang.RuntimeException: Network request error: Connect to 192.168.45.1:9999 [/192.168.45.1] failed: Connection refused: connect',NULL,0,NULL),(42,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(43,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(44,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(45,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(46,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(47,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(48,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:46',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(49,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:50',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(50,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:54:55',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(51,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:00',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(52,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:05',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(53,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:07',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(54,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:10',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(55,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:15',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(56,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:20',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(57,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:25',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(58,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:30',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(59,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:35',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(60,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:35',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(61,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:40',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(62,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:40',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(63,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:45',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(64,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:45',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(65,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:50',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(66,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:50',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(67,1,5,'BEAN',NULL,'demoJobHandler','demoJobHandler','2018-05-14 21:55:55',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL),(68,1,6,'BEAN',NULL,'demoJobHandler','','2018-05-14 21:55:55',500,'调度机器:192.168.45.1<br>执行器-注册方式:自动注册<br>执行器-地址列表:null<br>路由策略:第一个<br>阻塞处理策略:单机串行<br>失败处理策略:失败告警<br>----------------------<br>调度失败:执行器地址为空',NULL,0,NULL); # # Structure for table "XXL_JOB_QRTZ_TRIGGER_LOGGLUE" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_LOGGLUE` ( `id` int(11) NOT NULL AUTO_INCREMENT, `job_id` int(11) NOT NULL COMMENT '任务,主键ID', `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型', `glue_source` text COMMENT 'GLUE源代码', `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注', `add_time` timestamp NULL DEFAULT NULL, `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGER_LOGGLUE" # # # Structure for table "XXL_JOB_QRTZ_TRIGGER_REGISTRY" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGER_REGISTRY` ( `id` int(11) NOT NULL AUTO_INCREMENT, `registry_group` varchar(255) NOT NULL, `registry_key` varchar(255) NOT NULL, `registry_value` varchar(255) NOT NULL, `update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGER_REGISTRY" # INSERT INTO `XXL_JOB_QRTZ_TRIGGER_REGISTRY` VALUES (2,'EXECUTOR','open-xxl-job-demo','192.168.45.1:9999','2018-05-12 06:35:07'); # # Structure for table "XXL_JOB_QRTZ_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `JOB_NAME` varchar(200) NOT NULL, `JOB_GROUP` varchar(200) NOT NULL, `DESCRIPTION` varchar(250) DEFAULT NULL, `NEXT_FIRE_TIME` bigint(13) DEFAULT NULL, `PREV_FIRE_TIME` bigint(13) DEFAULT NULL, `PRIORITY` int(11) DEFAULT NULL, `TRIGGER_STATE` varchar(16) NOT NULL, `TRIGGER_TYPE` varchar(8) NOT NULL, `START_TIME` bigint(13) NOT NULL, `END_TIME` bigint(13) DEFAULT NULL, `CALENDAR_NAME` varchar(200) DEFAULT NULL, `MISFIRE_INSTR` smallint(2) DEFAULT NULL, `JOB_DATA` blob, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`), KEY `SCHED_NAME` (`SCHED_NAME`,`JOB_NAME`,`JOB_GROUP`), CONSTRAINT `XXL_JOB_QRTZ_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) REFERENCES `XXL_JOB_QRTZ_JOB_DETAILS` (`SCHED_NAME`, `JOB_NAME`, `JOB_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_TRIGGERS" # INSERT INTO `XXL_JOB_QRTZ_TRIGGERS` VALUES ('quartzScheduler','3','1','3','1',NULL,1525885261000,-1,5,'PAUSED','CRON',1525876730000,0,NULL,2,X''),('quartzScheduler','4','1','4','1',NULL,1525885261000,-1,5,'PAUSED','CRON',1525876778000,0,NULL,2,X''),('schedulerFactoryBean','5','1','5','1',NULL,1526306160000,1526306155000,5,'ACQUIRED','CRON',1526305882000,0,NULL,2,X''),('schedulerFactoryBean','6','1','6','1',NULL,1526306160000,1526306155000,5,'WAITING','CRON',1526305980000,0,NULL,2,X''); # # Structure for table "XXL_JOB_QRTZ_SIMPROP_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_SIMPROP_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `STR_PROP_1` varchar(512) DEFAULT NULL, `STR_PROP_2` varchar(512) DEFAULT NULL, `STR_PROP_3` varchar(512) DEFAULT NULL, `INT_PROP_1` int(11) DEFAULT NULL, `INT_PROP_2` int(11) DEFAULT NULL, `LONG_PROP_1` bigint(20) DEFAULT NULL, `LONG_PROP_2` bigint(20) DEFAULT NULL, `DEC_PROP_1` decimal(13,4) DEFAULT NULL, `DEC_PROP_2` decimal(13,4) DEFAULT NULL, `BOOL_PROP_1` varchar(1) DEFAULT NULL, `BOOL_PROP_2` varchar(1) DEFAULT NULL, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`), CONSTRAINT `XXL_JOB_QRTZ_SIMPROP_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_SIMPROP_TRIGGERS" # # # Structure for table "XXL_JOB_QRTZ_SIMPLE_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_SIMPLE_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `REPEAT_COUNT` bigint(7) NOT NULL, `REPEAT_INTERVAL` bigint(12) NOT NULL, `TIMES_TRIGGERED` bigint(10) NOT NULL, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`), CONSTRAINT `XXL_JOB_QRTZ_SIMPLE_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_SIMPLE_TRIGGERS" # # # Structure for table "XXL_JOB_QRTZ_CRON_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_CRON_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `CRON_EXPRESSION` varchar(200) NOT NULL, `TIME_ZONE_ID` varchar(80) DEFAULT NULL, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`), CONSTRAINT `XXL_JOB_QRTZ_CRON_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_CRON_TRIGGERS" # INSERT INTO `XXL_JOB_QRTZ_CRON_TRIGGERS` VALUES ('quartzScheduler','3','1','1 1 1 * * ? *','Asia/Shanghai'),('quartzScheduler','4','1','1 1 1 * * ? *','Asia/Shanghai'),('schedulerFactoryBean','5','1','*/5 * * * * ?','GMT+08:00'),('schedulerFactoryBean','6','1','*/5 * * * * ?','GMT+08:00'); # # Structure for table "XXL_JOB_QRTZ_BLOB_TRIGGERS" # CREATE TABLE `XXL_JOB_QRTZ_BLOB_TRIGGERS` ( `SCHED_NAME` varchar(120) NOT NULL, `TRIGGER_NAME` varchar(200) NOT NULL, `TRIGGER_GROUP` varchar(200) NOT NULL, `BLOB_DATA` blob, PRIMARY KEY (`SCHED_NAME`,`TRIGGER_NAME`,`TRIGGER_GROUP`), CONSTRAINT `XXL_JOB_QRTZ_BLOB_TRIGGERS_ibfk_1` FOREIGN KEY (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) REFERENCES `XXL_JOB_QRTZ_TRIGGERS` (`SCHED_NAME`, `TRIGGER_NAME`, `TRIGGER_GROUP`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # # Data for table "XXL_JOB_QRTZ_BLOB_TRIGGERS" #
BEGIN; -- -- Create model mn_alert2action -- CREATE TABLE `portal_mn_alert2action` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `alert_name` varchar(30) NOT NULL, `alert_actions` varchar(300) NOT NULL); -- -- Create model mn_Ansible_action -- CREATE TABLE `portal_mn_ansible_action` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `action_name` varchar(30) NOT NULL, `action_desc` varchar(300) NOT NULL); -- -- Create model mn_Ansible_git_para -- CREATE TABLE `portal_mn_ansible_git_para` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `git_url` varchar(300) NOT NULL, `git_pubkey` varchar(300) NOT NULL, `git_prvkey` varchar(300) NOT NULL); -- -- Create model mn_DeviceType -- CREATE TABLE `portal_mn_devicetype` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `type_name` varchar(30) NOT NULL); -- -- Create model mn_Enterprise_wechat -- CREATE TABLE `portal_mn_enterprise_wechat` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `corp_id` varchar(100) NOT NULL, `app_secret` varchar(100) NOT NULL, `app_id` integer NOT NULL, `user_ids` varchar(300) NOT NULL); -- -- Create model mn_NetDevices -- CREATE TABLE `portal_mn_netdevices` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `device_type` varchar(30) NOT NULL, `device_ip` varchar(30) NOT NULL, `device_mac` varchar(30) NOT NULL); -- -- Create model mn_OSTypes -- CREATE TABLE `portal_mn_ostypes` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `ostype` varchar(30) NOT NULL); -- -- Create model mn_ServerGroup -- CREATE TABLE `portal_mn_servergroup` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `group_name` varchar(30) NOT NULL); -- -- Create model mn_Servers -- CREATE TABLE `portal_mn_servers` (`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, `sip` varchar(30) NOT NULL, `smac` varchar(30) NOT NULL, `sostype` varchar(30) NOT NULL, `smodel` varchar(100) NOT NULL, `sgroup1` varchar(50) NOT NULL, `sgroup2` varchar(50) NOT NULL, `sgroup3` varchar(50) NOT NULL, `sgroup4` varchar(50) NOT NULL, `sadmin` varchar(30) NOT NULL, `spasswd` varchar(30) NOT NULL); COMMIT;
<filename>web/src/main/webapp/WEB-INF/update-sql/8.sql<gh_stars>100-1000 alter table `log` CHANGE COLUMN `search_content` `plain_content` longtext DEFAULT NULL;
<reponame>pdv-ru/ClickHouse select materialize(toLowCardinality('a'));
INSERT INTO AnnotatedStopPointRef (StopPointRef, CommonName, Latitude, Longitude) VALUES ('9300RAY', 'Rothesay Ferry Terminal', 0, 0); INSERT INTO AnnotatedStopPointRef (StopPointRef, CommonName, Latitude, Longitude) VALUES ('9300WMB', 'Wemyss Bay Ferry Terminal', 0, 0); INSERT INTO Route (RouteId, RouteDescription, RouteSectionRef) VALUES ('FSACM03_001', 'Rothesay - Wemyss Bay ', 'FSACM03_001'); INSERT INTO Route (RouteId, RouteDescription, RouteSectionRef) VALUES ('FSACM03_002', 'Wemyss Bay - Rothesay ', 'FSACM03_002'); INSERT INTO RouteSection (RouteSectionId) VALUES ('FSACM03_001'); INSERT INTO RouteLink (RouteLinkId, RouteSectionId, FromStopPointRef, ToStopPointRef, `Order`, RouteDirection) VALUES ('FSACM03_001_258789', 'FSACM03_001', '9300RAY', '9300WMB', 0, 'inbound'); INSERT INTO RouteSection (RouteSectionId) VALUES ('FSACM03_002'); INSERT INTO RouteLink (RouteLinkId, RouteSectionId, FromStopPointRef, ToStopPointRef, `Order`, RouteDirection) VALUES ('FSACM03_002_258791', 'FSACM03_002', '9300WMB', '9300RAY', 0, 'outbound'); INSERT INTO JourneyPatternSection (JourneyPatternSectionId) VALUES ('JPS_FSACM03-3'); INSERT INTO JourneyPatternTimingLink (JourneyPatternTimingLinkId, JourneyPatternSectionId, JourneyPatternFromStopPointRef, JourneyPatternFromTimingStatus, JourneyPatternToStopPointsRef, JourneyPatternToTimingStatus, RouteLinkRef, JourneyDirection, RunTime, WaitTime) VALUES ('JPS_FSACM03-3_258789', 'JPS_FSACM03-3', '9300RAY', 'PTP', '9300WMB', 'PTP', 'FSACM03_001_258789', 'inbound', 'PT2100S', ''); INSERT INTO JourneyPatternSection (JourneyPatternSectionId) VALUES ('JPS_FSACM03-4'); INSERT INTO JourneyPatternTimingLink (JourneyPatternTimingLinkId, JourneyPatternSectionId, JourneyPatternFromStopPointRef, JourneyPatternFromTimingStatus, JourneyPatternToStopPointsRef, JourneyPatternToTimingStatus, RouteLinkRef, JourneyDirection, RunTime, WaitTime) VALUES ('JPS_FSACM03-4_258791', 'JPS_FSACM03-4', '9300WMB', 'PTP', '9300RAY', 'PTP', 'FSACM03_002_258791', 'outbound', 'PT2100S', ''); INSERT INTO Operator (OperatorId, NationalOperatorCode, OperatorCode, OperatorShortName) VALUES ('CAL', 'CALM', 'CAL', '<NAME>'); INSERT INTO Service (ServiceCode, RegisteredOperatorRef, Mode, Description, Origin, Destination, StartDate, EndDate) VALUES ('FSACM03', 'CAL', 'ferry', 'Wemyss Bay - Rothesay', 'Wemyss Bay', 'Rothesay', 1553817600, 2524607999); INSERT INTO Line (LineId, ServiceRef, LineName) VALUES ('0', 'FSACM03', 'CM3'); INSERT INTO JourneyPattern (JourneyPatternId, ServiceRef, JourneyPatternSectionRef, JourneyPatternDirection) VALUES ('JPS_FSACM03-3', 'FSACM03', 'JPS_FSACM03-3', 'inbound'); INSERT INTO JourneyPattern (JourneyPatternId, ServiceRef, JourneyPatternSectionRef, JourneyPatternDirection) VALUES ('JPS_FSACM03-4', 'FSACM03', 'JPS_FSACM03-4', 'outbound'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79524', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 1, 0, 0, 20, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79525', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 6, 25, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79526', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 7, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79527', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 8, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79528', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 9, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79529', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 10, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79530', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 10, 50, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79531', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 11, 50, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79532', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 13, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79533', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 14, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79534', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 14, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79535', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 15, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79536', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 16, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79537', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 17, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79538', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 17, 35, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79539', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 18, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79540', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 1, 1, 1, 1, 1, 0, 0, 19, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79541', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 7, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79542', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 8, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79543', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 9, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79544', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 9, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79545', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 10, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79546', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 11, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79547', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 12, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79548', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 13, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79549', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 14, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79550', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 15, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79551', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 16, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79552', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 17, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79553', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 17, 35, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79554', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 18, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79555', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 19, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79556', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 1, 0, 20, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79557', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 8, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79558', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 9, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79559', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 10, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79560', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 11, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79561', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 12, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79562', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 13, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79563', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 14, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79564', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 15, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79565', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 16, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79566', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 17, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79567', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 18, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79568', 'FSACM03', '0', 'JPS_FSACM03-3', 'CAL', 0, 0, 0, 0, 0, 0, 1, 19, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79569', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 1, 0, 0, 21, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79570', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 7, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79571', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 8, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79572', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 9, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79573', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 10, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79574', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 11, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79575', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 12, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79576', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 13, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79577', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 13, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79578', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 14, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79579', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 15, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79580', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 16, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79581', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 16, 50, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79582', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 17, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79583', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 18, 20, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79584', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 19, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79585', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 1, 1, 1, 1, 1, 0, 0, 20, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79586', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 8, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79587', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 9, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79588', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 10, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79589', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 10, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79590', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 11, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79591', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 12, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79592', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 13, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79593', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 14, 5, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79594', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 15, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79595', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 16, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79596', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 16, 50, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79597', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 17, 45, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79598', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 18, 20, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79599', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 19, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79600', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 20, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79601', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 1, 0, 21, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79602', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 9, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79603', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 10, 30, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79604', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 11, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79605', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 12, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79606', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 13, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79607', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 13, 50, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79608', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 15, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79609', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 16, 15, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79610', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 17, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79611', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 18, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79612', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 19, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER'); INSERT INTO VehicleJourney (VehicleJourneyCode, ServiceRef, LineRef, JourneyPatternRef, OperatorRef, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday, DepatureHour, DepatureMinute, DepatureSecond, Note, NoteCode) VALUES ('79613', 'FSACM03', '0', 'JPS_FSACM03-4', 'CAL', 0, 0, 0, 0, 0, 0, 1, 20, 0, 0, 'Passengers should check-in 10 mins before ferry departure time shown', 'FER');
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 12, 2018 at 05:10 AM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `autowebapp` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_admin` -- CREATE TABLE `tbl_admin` ( `id` int(11) NOT NULL, `company_id` text NOT NULL, `company_name` text NOT NULL, `role` enum('Owner','Client') NOT NULL DEFAULT 'Client', `username` text NOT NULL, `password` text NOT NULL, `firstname` text NOT NULL, `middlename` text NOT NULL, `lastname` text NOT NULL, `status` enum('Active','Inactive') NOT NULL, `dtcreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_admin` -- INSERT INTO `tbl_admin` (`id`, `company_id`, `company_name`, `role`, `username`, `password`, `firstname`, `middlename`, `lastname`, `status`, `dtcreated`) VALUES (1, '', '', 'Owner', 'admin', <PASSWORD>', '', '', '', 'Active', '2018-03-31 14:53:36'), (2, '1', '<NAME>', '', 'client', '$2y$10$ZC2kBJWuGwiXoLSJKcD.meXo/1LRPMrYqwV8qhhcnix.FS4Ev37qy', '', '', '', '', '2018-03-31 20:02:49'), (3, '', 'xx', 'Client', 'asd', '$2y$10$EQincvAz3GJnJFVqT1e6oODCG2/ITYa31efud/uQq.mS4enwyhppS', '', '', '', 'Active', '2018-04-05 12:37:02'), (4, '', 'x', 'Client', '<EMAIL>', '$2y$10$2axE9O3EaAxooSAVcx42sePiBK.gppK3L6mvd55aN.sZp.5OD38lu', '', '', '', 'Active', '2018-04-05 12:37:29'), (5, '', 'x', 'Client', 'asd', '$2y$10$xCzLYHhrzCNKT8mF5f68TeLi5G6pc47y05PzX41LC2wiFpdIIuk8S', '', '', '', 'Active', '2018-04-05 16:36:11'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_booking` -- CREATE TABLE `tbl_booking` ( `id` int(11) NOT NULL, `booking_id` varchar(250) NOT NULL, `tech_id` int(11) NOT NULL, `customer_id` int(11) NOT NULL, `company_name` text NOT NULL, `tech_firstname` text NOT NULL, `tech_lastname` text NOT NULL, `customer_firstname` text NOT NULL, `customer_lastname` text NOT NULL, `customer_contact` text NOT NULL, `customer_email` text NOT NULL, `service_type` text NOT NULL, `attachment` text NOT NULL, `notes` text NOT NULL, `fee` int(11) NOT NULL, `est_time` text NOT NULL, `adr_from` text NOT NULL, `adr_to` text NOT NULL, `status` text NOT NULL, `date` date NOT NULL, `dtcreated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_booking` -- INSERT INTO `tbl_booking` (`id`, `booking_id`, `tech_id`, `customer_id`, `company_name`, `tech_firstname`, `tech_lastname`, `customer_firstname`, `customer_lastname`, `customer_contact`, `customer_email`, `service_type`, `attachment`, `notes`, `fee`, `est_time`, `adr_from`, `adr_to`, `status`, `date`, `dtcreated`) VALUES (1, 'BOOKING-12312313', 1, 1, 'Aviarthard Software Solutions', 'Kio', 'Hoviera', 'Kio', '', '09215388860', '<EMAIL>', 'x', '../../uploads/image003.png', '', 100, '', '', '', 'Declined', '2018-04-07', '2018-04-07 12:56:34'), (8, 'BOOKING-0Chqk7L1xc', 0, 1, 'asd', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'xx', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Canceled', '2018-04-10', '2018-04-09 18:09:15'), (9, 'BOOKING-i1fb30V29K', 0, 1, 'Aviarthard Software Solutions', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'x', '../../uploads/free-php-mysql-tutorials-course-online-tutorial.jpg', 'asd', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-09 18:11:37'), (10, 'BOOKING-mL14kq7V8U', 0, 1, 'asd', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'xx', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-09 18:13:42'), (11, 'BOOKING-zw6IWysGAp', 0, 1, 'Aviarthard Software Solutions', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'asdxxasd', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-09 18:14:40'), (12, 'BOOKING-wIite3n10d', 0, 1, 'Aviarthard Software Solutions', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'asdxxasd', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', 'asd', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-09 18:15:47'), (13, 'BOOKING-AmwlFDrH5u', 0, 1, 'asd', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'xx', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Canceled', '2018-04-10', '2018-04-09 18:18:30'), (14, 'BOOKING-W9X85vsVJg', 0, 1, 'Aviarthard Software Solutions', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'asdxxasd', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Canceled', '2018-04-10', '2018-04-09 18:18:44'), (15, 'BOOKING-YlpvwyHKTg', 0, 1, 'Aviarthard Software Solutions', 'Kio', 'Hoviera', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'asdxxasd', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '19:09', '', '', 'asd', '2018-04-10', '2018-04-09 18:33:23'), (16, 'BOOKING-sAxQCSOIZr', 0, 1, 'asd', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'xx', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-09 18:34:29'), (17, 'BOOKING-sYQcK4Wvhf', 0, 1, 'Aviarthard Software Solutions', 'Kio', 'Hoviera', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'x', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', 'asd', 0, '10:00', '', '', 'asd', '2018-04-10', '2018-04-09 18:58:45'), (18, 'BOOKING-LOMENUaPDR', 0, 1, 'asd', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'xx', '../../uploads/free-php-mysql-tutorials-course-online-tutorial.jpg', '', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-10 03:37:01'), (19, 'BOOKING-CIGMBdmWEk', 0, 1, 'xxx', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'gFDGD', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', 'asd', 0, '', '', '', 'Cancelled', '2018-04-10', '2018-04-10 03:37:20'), (20, 'BOOKING-4CRBHigwo2', 0, 1, 'Aviarthard Software Solutions', '', '', 'Kio', 'Hoviera', '+639215388860', '<EMAIL>', 'asdxxasd', '../../uploads/NodeMCU-V3-ESP8266-ESP-12E-1.jpg', '', 0, '', '', '', 'Pending', '2018-04-10', '2018-04-10 03:37:25'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_category` -- CREATE TABLE `tbl_category` ( `id` int(11) NOT NULL, `company_name` text NOT NULL, `title` text NOT NULL, `description` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_category` -- INSERT INTO `tbl_category` (`id`, `company_name`, `title`, `description`) VALUES (1, 'Aviarthard Software Solution', 'asdxxx', 'asdcxaxas'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_company_info` -- CREATE TABLE `tbl_company_info` ( `id` int(11) NOT NULL, `logo` text NOT NULL, `name` text NOT NULL, `description` text NOT NULL, `address` text NOT NULL, `phone` text NOT NULL, `contact` text NOT NULL, `opening` time NOT NULL, `closing` time NOT NULL, `dtcreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` enum('Active','Inactive') NOT NULL DEFAULT 'Active' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_company_info` -- INSERT INTO `tbl_company_info` (`id`, `logo`, `name`, `description`, `address`, `phone`, `contact`, `opening`, `closing`, `dtcreated`, `status`) VALUES (1, '', 'asd', 'asd', 'asdxxxxx', 'asdxxxxx', 'asd', '00:00:00', '00:00:00', '2018-03-31 22:27:49', 'Active'), (8, '../../uploads', 'xxx', 'x', 'x', 'x', 'x', '00:00:00', '00:00:00', '2018-04-02 09:51:12', 'Active'), (12, '../../uploads/889486.gif', 'Aviarthard Software Solutions', 'Software Solutions Company', 'Sikatuna Village', '9215388860', '+639215388860', '09:00:00', '22:00:00', '2018-04-05 22:57:14', 'Active'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_company_users` -- CREATE TABLE `tbl_company_users` ( `id` int(11) NOT NULL, `company_id` text NOT NULL, `company_name` text NOT NULL, `email` text NOT NULL, `username` text NOT NULL, `password` text NOT NULL, `role` enum('Staff','Tech','Admin') NOT NULL, `profile` text NOT NULL, `firstname` text NOT NULL, `middlename` text NOT NULL, `lastname` text NOT NULL, `birthday` date NOT NULL, `age` int(11) NOT NULL, `contact` text NOT NULL, `gender` enum('Male','Female') NOT NULL, `address` text NOT NULL, `status` enum('Active','Inactive') NOT NULL, `dtcreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `isOnline` enum('Online','Offline','Servicing','') NOT NULL, `service` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_company_users` -- INSERT INTO `tbl_company_users` (`id`, `company_id`, `company_name`, `email`, `username`, `password`, `role`, `profile`, `firstname`, `middlename`, `lastname`, `birthday`, `age`, `contact`, `gender`, `address`, `status`, `dtcreated`, `isOnline`, `service`) VALUES (2, '', '', '<EMAIL>', 'asd', '$2y$10$hLJ/dI/oEYrMpLPFHbuPleydceA1ATW5/1A.Lq0wFFPwmVU5PDvBu', 'Staff', '../../uploads/image003.png', 'asdsaxz', 'asdxxasd', 'asd', '2018-12-31', 0, '+639215388860', 'Male', 'asd', 'Active', '2018-04-02 14:10:41', '', ''), (11, '', 'Aviarthard Software Solutions', '<EMAIL>', 'kio', '$2y$10$RmTSj.LIUVxYdc5LzjGGiOosjC6Mtrg/GEonhFWSGrU2Bztly/QQ.', 'Admin', '', '', '', '', '0000-00-00', 0, '', 'Male', '', 'Active', '2018-04-05 22:58:49', '', ''), (12, '', 'Aviarthard Software Solutions', '', 'asdzzzasdasd', '$2y$10$FpHBEIE97se4pcQt18qJieeAfFzk6jyYvA3m/MwQWaaV3yOMbw.k.', 'Tech', '../../uploads/', 'Kio', 'x', 'Hoviera', '0000-00-00', 0, '+639', '', '', 'Active', '2018-04-07 12:09:29', '', 'asdxxasd'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_customer_concern` -- CREATE TABLE `tbl_customer_concern` ( `id` int(11) NOT NULL, `customer_id` text NOT NULL, `firstname` text NOT NULL, `middlename` text NOT NULL, `lastname` text NOT NULL, `company_name` text NOT NULL, `feedback` text NOT NULL, `suggestions` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_customer_concern` -- INSERT INTO `tbl_customer_concern` (`id`, `customer_id`, `firstname`, `middlename`, `lastname`, `company_name`, `feedback`, `suggestions`) VALUES (1, '1', 'asd', 'xx', 'asd', 'Aviarthard Software Solutions', 'asdasdasdasdasadadaxasaxa\r\nxasd\r\nxasdasd\r\nxasdasd', 'asdax\r\nasdaxax\r\nsxasdasd'), (2, '1', 'Kio', 'X', 'Hoviera', 'Aviarthard Software Solutions', 'asd', 'asd'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_ratings` -- CREATE TABLE `tbl_ratings` ( `id` int(11) NOT NULL, `booking_id` text NOT NULL, `tech_firstname` text NOT NULL, `tech_middlename` text NOT NULL, `tech_lastname` text NOT NULL, `ratings` int(11) NOT NULL, `feedback` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tbl_services` -- CREATE TABLE `tbl_services` ( `id` int(11) NOT NULL, `company_name` text NOT NULL, `title` text NOT NULL, `description` text NOT NULL, `category` text NOT NULL, `fee` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_services` -- INSERT INTO `tbl_services` (`id`, `company_name`, `title`, `description`, `category`, `fee`) VALUES (1, 'Aviarthard Software Solutions', 'asdxxasd', 'asdxxasd', 'asd', 30), (3, 'Aviarthard Software Solutions', 'x', 'xxasd', 'xxx', 20), (4, 'asd', 'xx', 'xx', 'xx', 10), (5, 'xxx', 'gFDGD', 'GFD', '', 100); -- -------------------------------------------------------- -- -- Table structure for table `tbl_users` -- CREATE TABLE `tbl_users` ( `id` int(11) NOT NULL, `profile` text NOT NULL, `username` text NOT NULL, `password` text NOT NULL, `firstname` text NOT NULL, `middlename` text NOT NULL, `lastname` text NOT NULL, `email` text NOT NULL, `contact` text NOT NULL, `gender` text NOT NULL, `address` text NOT NULL, `birthday` date NOT NULL, `status` enum('Pending','Active','Inactive') NOT NULL, `dtcreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_users` -- INSERT INTO `tbl_users` (`id`, `profile`, `username`, `password`, `firstname`, `middlename`, `lastname`, `email`, `contact`, `gender`, `address`, `birthday`, `status`, `dtcreated`) VALUES (1, '', 'kio', '$2y$10$7b3Os9b4cRSHFejJVezvpeZrV6aw3JLOUllAgmXQKBsbHptud6ztS', 'Kio', 'X', 'Hoviera', '<EMAIL>', '+639215388860', '', 'Address', '0000-00-00', 'Active', '2018-04-07 23:30:37'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tbl_admin` -- ALTER TABLE `tbl_admin` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_booking` -- ALTER TABLE `tbl_booking` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_category` -- ALTER TABLE `tbl_category` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_company_info` -- ALTER TABLE `tbl_company_info` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_company_users` -- ALTER TABLE `tbl_company_users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_customer_concern` -- ALTER TABLE `tbl_customer_concern` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_services` -- ALTER TABLE `tbl_services` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_users` -- ALTER TABLE `tbl_users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tbl_admin` -- ALTER TABLE `tbl_admin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tbl_booking` -- ALTER TABLE `tbl_booking` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT for table `tbl_category` -- ALTER TABLE `tbl_category` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tbl_company_info` -- ALTER TABLE `tbl_company_info` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tbl_company_users` -- ALTER TABLE `tbl_company_users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tbl_customer_concern` -- ALTER TABLE `tbl_customer_concern` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_services` -- ALTER TABLE `tbl_services` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tbl_users` -- ALTER TABLE `tbl_users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>pigeon-server/src/sql/dropTables.sql drop table t_listband; drop table t_simpleatom; drop table t_pigeontransaction; drop table t_flexobject; drop table t_ids; drop table t_testwhileidle;
create or replace function feed(_username varchar(64), per_page integer, page_offset integer) returns SETOF feed_events immutable language sql as $$ with following as ( select * from follows as f where f.follower = _username ), new_guides as ( select g.created ::timestamp as timestamp, 'new_guide'::feed_event_type as type, null as ride, g.id as guide, g.owner as "user" from guides as g inner join following as f on f.followed = g.owner ), new_follows as ( select f.timestamp ::timestamp as timestamp, 'new_follows'::feed_event_type as type, null as ride, null as guide, f.follower as "user" from follows as f where f.followed = _username ), self_created as ( select u.created ::timestamp as timestamp, 'self_created'::feed_event_type as type, null as ride, null as guide, u.username as "user" from users as u where u.username = _username ), joined as ( select u.created ::timestamp as timestamp, 'joined'::feed_event_type as type, null as ride, null as guide, u.username as "user" from users as u where u.username = _username ) select * from new_guides union select * from new_follows union select * from self_created order by timestamp desc $$; alter function feed(_username varchar(64), per_page integer, page_offset integer) owner to superuser;
<reponame>ddydeveloper/make-a-meet<filename>_database/MeetingsSchema/Tables/Meetings.sql CREATE TABLE [dbo].[Meetings] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(0,1), [Name] NVARCHAR(100) NOT NULL, [Description] NVARCHAR(500) NULL, [Created] DATETIME NOT NULL DEFAULT (GETDATE()), [CreatedBy] INT NOT NULL, [CompanyId] INT NOT NULL, [StartDate] DATETIME NULL, [StartTimeMinutes] SMALLINT NOT NULL, [DurationMinutes] INT NOT NULL, [Days] NVARCHAR(15) NULL, [Active] BIT NOT NULL DEFAULT(1) )
-- totherescue /********************************************************************** * Purpose: Updates history when a user finishes a minigame. ***********************************************************************/ USE totherescue; DELIMITER $$ CREATE PROCEDURE proc_UpdateProgressHistory(MiniGameID int,ProfileID int) BEGIN INSERT INTO ProfileProgressHistory (MiniGameID, ProfileID) VALUES (MiniGameID, ProfileID); END /********************************************************************** * Purpose: Updates progress when a user finishes a minigame. ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateProgressNode(ProfileID int) BEGIN UPDATE ProfileProgress SET CurrentNode = CurrentNode + 1 WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Updates map when user rescues animal ***********************************************************************/ DELIMITER $$ CREATE PROCEDURE proc_UpdateCurrentMap(ProfileID int) BEGIN UPDATE ProfileProgess SET CurrentMap = CurrentMap + 1 WHERE ProfileID = ProfileID END /********************************************************************** * Purpose: Updates toggle sound. ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateToggleSound(ProfileID int,SoundBit bit) BEGIN UPDATE Profiles SET ToggleSound = SoundBit WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Updates toggle music. ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateToggleMusic(ProfileID int,MusicBit bit) BEGIN UPDATE Profiles SET ToggleMusic = MusicBit WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Updates Difficulty ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateDifficulty(ProfileID int,NewMathDifficulty int, NewReadingDifficulty int) BEGIN UPDATE Profiles SET MathDifficultyLevel = NewMathDifficulty , ReadingDifficultyLevel = NewReadingDifficulty WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Updates Math and Reading Performance Statistics ***********************************************************************/ -- function DELIMITER $$ CREATE PROCEDURE proc_UpdatePerformanceStats(ProfileID int,NewMathStat decimal, NewReadingStat decimal) BEGIN UPDATE Profiles SET MathPerformanceStat = NewMathStat, ReadingPerformanceStat = NewReadingStat WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Update Filter ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateSubjectFilter(ProfileID int,Fil varchar(50)) BEGIN UPDATE Profiles SET SubjectFilter = Fil WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Update Password ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateUserPassword(UserID int,OldPassword nvarchar(50), NewPassword nvarchar(50)) BEGIN UPDATE Users SET UserPassword = NewPassword WHERE UserID = UserID AND UserPassword = OldPassword; END /********************************************************************** * Purpose: Insert a new profile animal ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_InsertProfileAnimal(ProfileID int,AnimalID int) BEGIN INSERT INTO ProfileAnimals(ProfileID, AnimalID) VALUES(ProfileID, AnimalID); END /********************************************************************** * Purpose: Delete an old profile animal ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_DeleteProfileAnimal(ProfileID int,AnimalID int) BEGIN DELETE FROM ProfileAnimals WHERE ProfileID = ProfileID AND AnimalID = AnimalID LIMIT 1; END /********************************************************************** * Purpose: Delete a profile ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_DeleteProfile(ProfileID int) BEGIN DELETE FROM ProfileAnimals WHERE ProfileID = ProfileID; DELETE FROM ProfileProgress WHERE ProfileID = ProfileID; DELETE FROM ProfileProgressHistory WHERE ProfileID = ProfileID; DELETE FROM Profiles WHERE ProfileID = ProfileID; END /********************************************************************** * Purpose: Adds a profile to a user account ***********************************************************************/ DELIMITER $$ CREATE PROCEDURE proc_AddNewProfile(UserID int,AvatarID int, ProfileName varchar(50)) BEGIN INSERT INTO Profiles (UserID, AvatarID, ProfileName, MathPerformanceStat, ReadingPerformanceStat, SubjectFilter) VALUES (UserID, AvatarID, ProfileName, 0, 0,'0'); END /********************************************************************** * Purpose: Updates in total a profile. ***********************************************************************/ -- Function DELIMITER $$ CREATE PROCEDURE proc_UpdateProfile( ProfileID int, ToggleSound bit, ToggleMusic bit, MathPerformanceStat float, ReadingPerformanceStat float, SubjectFilter varchar(50), NewMathDifficulty int, NewReadingDifficulty int) BEGIN UPDATE Profiles SET ToggleSound = ToggleSound, ToggleMusic = ToggleMusic, MathDifficultyLevel = NewMathDifficulty, ReadingDifficultyLevel = NewReadingDifficulty, MathPerformanceStat = MathPerformanceStat, ReadingPerformanceStat = ReadingPerformanceStat, SubjectFilter = SubjectFilter WHERE ProfileID = ProfileID; END DELIMITER $$ CREATE PROCEDURE GetProfileAvatar(profileID3 INT) BEGIN (SELECT Images FROM Images INNER JOIN Profiles ON Images.ImageID = Profiles.AvatarID WHERE Profiles.ProfileID = profileID3); END DELIMITER $$ CREATE PROCEDURE GrabAnimals(profileID int) BEGIN (SELECT Animals.AnimalID, Funfact, Images.ImageID, Sounds.SoundID, Active, Shiny FROM ProfileAnimals JOIN Animals on ProfileAnimals.AnimalID = Animals.AnimalID JOIN Images on Animals.ImageID = Images.ImageID JOIN Sounds on Animals.SoundID = Sounds.SoundID WHERE ProfileAnimals.ProfileID = profileID); END
-- MySql Table Definitions DROP TABLE IF EXISTS Operator; CREATE TABLE Operator ( Id int(10) NOT NULL AUTO_INCREMENT, Username varchar(128) NOT NULL, Password varchar(128) NOT NULL, FirstName varchar(128) DEFAULT NULL, LastName varchar(128) DEFAULT NULL, LastLoginDate datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, LastLoginAttempt datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PasswordChangeDate datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, Disabled int(1) NOT NULL DEFAULT '0', LockedOut int(1) NOT NULL DEFAULT '0', PasswordNeverExpires int(1) NOT NULL DEFAULT '0', PasswordExpired int(1) NOT NULL DEFAULT '0', LoginAttempts int(5) NOT NULL DEFAULT '0', DtCreated datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, DtModified datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, RowVer int(10) NOT NULL DEFAULT '0', PRIMARY KEY (Id) ) ENGINE=InnoDB AUTO_INCREMENT=1000001 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS SessionLog; CREATE TABLE SessionLog ( Id int(10) NOT NULL AUTO_INCREMENT, SessionToken varchar(36) NOT NULL, Operator int(10) NOT NULL, LoggedOn datetime NOT NULL, LoggedOff datetime, LastTransmitted datetime NOT NULL, Status int(3) NOT NULL, DtCreated datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, DtModified datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, RowVer int(10) NOT NULL DEFAULT '0', PRIMARY KEY (Id), KEY Operator (Operator), CONSTRAINT FK_SessionLogOperator FOREIGN KEY (Operator) REFERENCES Operator (Id) ) ENGINE=InnoDB AUTO_INCREMENT=1000001 DEFAULT CHARSET=utf8;
<reponame>jfrank1500/tarefas -- MySQL dump 10.13 Distrib 5.7.26, for Linux (x86_64) -- -- Host: localhost Database: tarefas -- ------------------------------------------------------ -- Server version 5.7.26-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `projeto` -- DROP TABLE IF EXISTS `projeto`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `projeto` ( `id` int(11) NOT NULL, `nome` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `projeto` -- LOCK TABLES `projeto` WRITE; /*!40000 ALTER TABLE `projeto` DISABLE KEYS */; INSERT INTO `projeto` VALUES (1,'Supermercado'),(2,'Escola'),(3,'Trabalho'),(4,'Saúde'); /*!40000 ALTER TABLE `projeto` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `tarefa` -- DROP TABLE IF EXISTS `tarefa`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `tarefa` ( `id` int(11) NOT NULL, `descricao` varchar(255) NOT NULL, `previsao` varchar(255) DEFAULT NULL, `usuario_id` int(11) NOT NULL, `projeto_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `FK_3f7cb73dd1f620c38b7e0402406` (`usuario_id`), KEY `FK_3c71586474c6838dca714de78ab` (`projeto_id`), CONSTRAINT `FK_3c71586474c6838dca714de78ab` FOREIGN KEY (`projeto_id`) REFERENCES `projeto` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `FK_3f7cb73dd1f620c38b7e0402406` FOREIGN KEY (`usuario_id`) REFERENCES `usuario` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `tarefa` -- LOCK TABLES `tarefa` WRITE; /*!40000 ALTER TABLE `tarefa` DISABLE KEYS */; INSERT INTO `tarefa` VALUES (1,'Comprar pizza','2019-05-25',3,1),(2,'Fazer trabalho de história','2019-05-27',4,2),(3,'Fazer trabalho de história','2019-06-20',5,2),(4,'Fazer um checkup','2019-06-28',10,4),(5,'Clarear os dentes','2019-07-10',13,4),(6,'Retirar as manchas da pele','2019-06-27',14,4),(7,'Ver o eclipse solar','2019-07-02',11,2),(8,'Sair de alguma rede social','2019-06-14',4,4),(9,'Brincar com o filho','2019-06-13',4,4),(10,'Tomar um porre','2019-06-17',6,4),(11,'Limpar a área','2019-06-15',10,3),(12,'Levar o filho a escola','2019-06-17',8,2),(13,'Organizar o seu dia','2019-06-19',9,4),(14,'Fazer uma viagem a pé','2019-08-01',3,4),(15,'Saltar de paraquedas','2019-06-14',5,4),(16,'Atualizar seus conhecimentos de ortografia','2019-06-20',7,2),(17,'Começar a estudar um idioma estrangeiro','2019-07-01',9,2),(18,'Poupar um percentual de seus ganhos','2019-06-26',11,3),(19,'Ouvir música','2019-06-28',12,4),(20,'Sair pra dançar','2019-06-30',12,4),(21,'Vender o carro','2019-06-30',13,3),(22,'Escrever um livro','2019-06-27',8,3),(23,'Almoçar com os pais','2019-06-16',12,4); /*!40000 ALTER TABLE `tarefa` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `usuario` -- DROP TABLE IF EXISTS `usuario`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `usuario` ( `id` int(11) NOT NULL, `login` varchar(255) NOT NULL, `nome` varchar(255) NOT NULL, `senha` varchar(255) NOT NULL, `perfil` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `usuario` -- LOCK TABLES `usuario` WRITE; /*!40000 ALTER TABLE `usuario` DISABLE KEYS */; INSERT INTO `usuario` VALUES (1,'admin','Administrador','admin','ADMINISTRADOR'),(3,'alfredo','Alfredo','123','USUARIO'),(4,'barbara','Bárbara','123','USUARIO'),(5,'carlos','Carlos','123','USUARIO'),(6,'davi','Davi','123','USUARIO'),(7,'edna','Edna','123','USUARIO'),(8,'fabiola','Fabíola','123','USUARIO'),(9,'geraldo','Geraldo','123','USUARIO'),(10,'hebert','Hebert','123','USUARIO'),(11,'iara','Iara','123','USUARIO'),(12,'jose','José','123','USUARIO'),(13,'kleber','Kléber','123','USUARIO'),(14,'lucio','Lúcio','123','USUARIO'); /*!40000 ALTER TABLE `usuario` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'tarefas' -- /*!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 */;
INSERT INTO ANIMALS (color, name) VALUES ('black', 'cat');
-- Drops the trAuve if it exists currently -- DROP DATABASE IF EXISTS trauve; -- Creates the "trauve" database -- CREATE DATABASE trauve; USE trauve; CREATE TABLE Product ( id int AUTO_INCREMENT NOT NULL, type varchar(255) NOT NULL, price int NOT NULL, name varchar( 255 ) NOT NULL, description varchar(255) NOT NULL, size varchar( 255 ), quantity int NOT NULL, PRIMARY KEY (id) )
<filename>src/clojure/slackbot/database/sql/stinkypinky.sql<gh_stars>0 -- 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. -- :name add-stinky-pinky-channel :! :n -- :doc Add a channel as a host channel for Stinky Pinky. INSERT INTO stinkypinky (workspace_id, channel_id, host) VALUES (:workspace_id, :channel_id, :host) -- :name- remove-stinky-pinky-channel :! :n -- :doc Remove a channel as a host channel for Stinky Pinky. DELETE FROM stinkypinky WHERE workspace_id = :workspace_id AND channel_id = :channel_id -- :name get-stinky-pinky-details :? :1 -- :doc Get the current Stinky Pinky details. SELECT workspace_id, channel_id, game_id, host, hint, clue, solution FROM stinkypinky WHERE workspace_id = :workspace_id AND channel_id = :channel_id -- :name set-stinky-pinky-details :! :n -- :doc Set the details for this Stinky Pink round. INSERT OR REPLACE INTO stinkypinky (workspace_id, channel_id, game_id, host, hint, clue, solution) VALUES (:workspace_id, :channel_id, :game_id, :host, :hint, :clue, :solution) -- :name get-stinky-pinky-scores :? :n -- :doc Get the Stinky Pinky scores. SELECT COUNT(winner) AS winner_count, winner FROM stinkypinky_winners WHERE workspace_id = :workspace_id AND channel_id = :channel_id GROUP BY winner LIMIT :n -- :name get-stinky-pinky-guesses :? :n -- :doc Get the Stinky Pinky scores. SELECT guesser, guess FROM stinkypinky_guesses WHERE workspace_id = :workspace_id AND channel_id = :channel_id -- :name mark-winner :! :n -- :doc Mark the winner of a Stinky Pinky round. INSERT INTO stinkypinky_winners (workspace_id, channel_id, winner) VALUES (:workspace_id, :channel_id, :winner) -- :name mark-guess :! :n -- :doc Mark the guess of a Stinky Pinky round. INSERT INTO stinkypinky_guesses (workspace_id, channel_id, guesser, guess) VALUES (:workspace_id, :channel_id, :guesser, :guess) -- :name clear-guesses :! :n -- :doc Clear all the guesses recorded for the last Stinky Pinky round. DELETE FROM stinkypinky_guesses WHERE workspace_id = :workspace_id AND channel_id = :channel_id
<reponame>Lucas-Tang/20200116<gh_stars>0 -- 菜單 CREATE TABLE sys_menu ( menu_id NUMBER(20, 0) NOT NULL, parent_id NUMBER(20, 0) NOT NULL, name varchar2(50), url varchar2(200), perms varchar2(500), type NUMBER(2, 0), icon varchar2(50), order_num int, PRIMARY KEY (menu_id) ); -- 部門 CREATE TABLE sys_dept ( dept_id NUMBER(20, 0) NOT NULL, parent_id NUMBER(20, 0) NOT NULL, name varchar2(50), order_num NUMBER(10, 0) NOT NULL, del_flag NUMBER(2, 0) DEFAULT 0 NOT NULL, PRIMARY KEY (dept_id) ); -- 系統用戶 CREATE TABLE sys_user ( user_id NUMBER(20, 0) NOT NULL, username varchar2(50) NOT NULL, password varchar2(100), salt varchar2(20), email varchar2(100), mobile varchar2(100), status NUMBER(2, 0) NOT NULL, dept_id NUMBER(20, 0), create_time timestamp, PRIMARY KEY (user_id) ); CREATE UNIQUE INDEX index_username on sys_user(username); -- 角色 CREATE TABLE sys_role ( role_id NUMBER(20, 0) NOT NULL, role_name varchar2(100), remark varchar2(100), dept_id NUMBER(20, 0) NOT NULL, create_time timestamp, PRIMARY KEY (role_id) ); -- 用戶與角色對應關係 CREATE TABLE sys_user_role ( id NUMBER(20, 0) NOT NULL, user_id NUMBER(20, 0) NOT NULL, role_id NUMBER(20, 0) NOT NULL, PRIMARY KEY (id) ); -- 角色與菜單對應關係 CREATE TABLE sys_role_menu ( id NUMBER(20, 0) NOT NULL, role_id NUMBER(20, 0) NOT NULL, menu_id NUMBER(20, 0) NOT NULL, PRIMARY KEY (id) ); -- 角色與部門對應關係 CREATE TABLE sys_role_dept ( id NUMBER(20, 0) NOT NULL, role_id NUMBER(20, 0) NOT NULL, dept_id NUMBER(20, 0) NOT NULL, PRIMARY KEY (id) ); -- 系統配置信息 CREATE TABLE sys_config ( id NUMBER(20, 0) NOT NULL, param_key varchar2(50), param_value varchar2(4000), status NUMBER(2, 0) DEFAULT 1 NOT NULL, remark varchar2(500), PRIMARY KEY (id) ); CREATE UNIQUE INDEX index_param_key on sys_config(param_key); -- 數據字典 CREATE TABLE sys_dict ( id NUMBER(20, 0) NOT NULL, name varchar2(100) NOT NULL, type varchar2(100) NOT NULL, code varchar2(100) NOT NULL, value varchar2(1000) NOT NULL, order_num NUMBER(10, 0) DEFAULT 0 NOT NULL, remark varchar2(255), del_flag NUMBER(2, 0) DEFAULT 0 NOT NULL, PRIMARY KEY (id) ); CREATE UNIQUE INDEX index_type_code on sys_dict(type, code); -- 系統日誌 CREATE TABLE sys_log ( id NUMBER(20, 0) NOT NULL, username varchar2(50), operation varchar2(50), method varchar2(200), params clob, time NUMBER(20, 0) NOT NULL, ip varchar2(64), create_date timestamp, PRIMARY KEY (id) ); -- 文件上傳 CREATE TABLE sys_oss ( id NUMBER(20, 0) NOT NULL, url varchar2(200), create_date timestamp, PRIMARY KEY (id) ); -- 定時任務 CREATE TABLE schedule_job ( job_id NUMBER(20, 0) NOT NULL, bean_name varchar2(200), params varchar2(2000), cron_expression varchar2(100), status NUMBER(2, 0) NOT NULL, remark varchar2(255), create_time timestamp, PRIMARY KEY (job_id) ); -- 定時任務日誌 CREATE TABLE schedule_job_log ( log_id NUMBER(20, 0) NOT NULL, job_id NUMBER(20, 0) NOT NULL, bean_name varchar2(200), params varchar2(2000), status NUMBER(2, 0) NOT NULL, error varchar2(2000), times NUMBER(10, 0) NOT NULL, create_time timestamp, PRIMARY KEY (log_id) ); CREATE INDEX index_job_id on schedule_job_log(job_id); -- quartz自帶表結構 CREATE TABLE qrtz_job_details ( SCHED_NAME VARCHAR2(120) NOT NULL, JOB_NAME VARCHAR2(200) NOT NULL, JOB_GROUP VARCHAR2(200) NOT NULL, DESCRIPTION VARCHAR2(250) NULL, JOB_CLASS_NAME VARCHAR2(250) NOT NULL, IS_DURABLE VARCHAR2(1) NOT NULL, IS_NONCONCURRENT VARCHAR2(1) NOT NULL, IS_UPDATE_DATA VARCHAR2(1) NOT NULL, REQUESTS_RECOVERY VARCHAR2(1) NOT NULL, JOB_DATA BLOB NULL, CONSTRAINT QRTZ_JOB_DETAILS_PK PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP) ); CREATE TABLE qrtz_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, JOB_NAME VARCHAR2(200) NOT NULL, JOB_GROUP VARCHAR2(200) NOT NULL, DESCRIPTION VARCHAR2(250) NULL, NEXT_FIRE_TIME NUMBER(13) NULL, PREV_FIRE_TIME NUMBER(13) NULL, PRIORITY NUMBER(13) NULL, TRIGGER_STATE VARCHAR2(16) NOT NULL, TRIGGER_TYPE VARCHAR2(8) NOT NULL, START_TIME NUMBER(13) NOT NULL, END_TIME NUMBER(13) NULL, CALENDAR_NAME VARCHAR2(200) NULL, MISFIRE_INSTR NUMBER(2) NULL, JOB_DATA BLOB NULL, CONSTRAINT QRTZ_TRIGGERS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), CONSTRAINT QRTZ_TRIGGER_TO_JOBS_FK FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP) REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP) ); CREATE TABLE qrtz_simple_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, REPEAT_COUNT NUMBER(7) NOT NULL, REPEAT_INTERVAL NUMBER(12) NOT NULL, TIMES_TRIGGERED NUMBER(10) NOT NULL, CONSTRAINT QRTZ_SIMPLE_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), CONSTRAINT QRTZ_SIMPLE_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) ); CREATE TABLE qrtz_cron_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, CRON_EXPRESSION VARCHAR2(120) NOT NULL, TIME_ZONE_ID VARCHAR2(80), CONSTRAINT QRTZ_CRON_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), CONSTRAINT QRTZ_CRON_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) ); CREATE TABLE qrtz_simprop_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, STR_PROP_1 VARCHAR2(512) NULL, STR_PROP_2 VARCHAR2(512) NULL, STR_PROP_3 VARCHAR2(512) NULL, INT_PROP_1 NUMBER(10) NULL, INT_PROP_2 NUMBER(10) NULL, LONG_PROP_1 NUMBER(13) NULL, LONG_PROP_2 NUMBER(13) NULL, DEC_PROP_1 NUMERIC(13,4) NULL, DEC_PROP_2 NUMERIC(13,4) NULL, BOOL_PROP_1 VARCHAR2(1) NULL, BOOL_PROP_2 VARCHAR2(1) NULL, CONSTRAINT QRTZ_SIMPROP_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), CONSTRAINT QRTZ_SIMPROP_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) ); CREATE TABLE qrtz_blob_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, BLOB_DATA BLOB NULL, CONSTRAINT QRTZ_BLOB_TRIG_PK PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP), CONSTRAINT QRTZ_BLOB_TRIG_TO_TRIG_FK FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP) ); CREATE TABLE qrtz_calendars ( SCHED_NAME VARCHAR2(120) NOT NULL, CALENDAR_NAME VARCHAR2(200) NOT NULL, CALENDAR BLOB NOT NULL, CONSTRAINT QRTZ_CALENDARS_PK PRIMARY KEY (SCHED_NAME,CALENDAR_NAME) ); CREATE TABLE qrtz_paused_trigger_grps ( SCHED_NAME VARCHAR2(120) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, CONSTRAINT QRTZ_PAUSED_TRIG_GRPS_PK PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP) ); CREATE TABLE qrtz_fired_triggers ( SCHED_NAME VARCHAR2(120) NOT NULL, ENTRY_ID VARCHAR2(95) NOT NULL, TRIGGER_NAME VARCHAR2(200) NOT NULL, TRIGGER_GROUP VARCHAR2(200) NOT NULL, INSTANCE_NAME VARCHAR2(200) NOT NULL, FIRED_TIME NUMBER(13) NOT NULL, SCHED_TIME NUMBER(13) NOT NULL, PRIORITY NUMBER(13) NOT NULL, STATE VARCHAR2(16) NOT NULL, JOB_NAME VARCHAR2(200) NULL, JOB_GROUP VARCHAR2(200) NULL, IS_NONCONCURRENT VARCHAR2(1) NULL, REQUESTS_RECOVERY VARCHAR2(1) NULL, CONSTRAINT QRTZ_FIRED_TRIGGER_PK PRIMARY KEY (SCHED_NAME,ENTRY_ID) ); CREATE TABLE qrtz_scheduler_state ( SCHED_NAME VARCHAR2(120) NOT NULL, INSTANCE_NAME VARCHAR2(200) NOT NULL, LAST_CHECKIN_TIME NUMBER(13) NOT NULL, CHECKIN_INTERVAL NUMBER(13) NOT NULL, CONSTRAINT QRTZ_SCHEDULER_STATE_PK PRIMARY KEY (SCHED_NAME,INSTANCE_NAME) ); CREATE TABLE qrtz_locks ( SCHED_NAME VARCHAR2(120) NOT NULL, LOCK_NAME VARCHAR2(40) NOT NULL, CONSTRAINT QRTZ_LOCKS_PK PRIMARY KEY (SCHED_NAME,LOCK_NAME) ); create index idx_qrtz_j_req_recovery on qrtz_job_details(SCHED_NAME,REQUESTS_RECOVERY); create index idx_qrtz_j_grp on qrtz_job_details(SCHED_NAME,JOB_GROUP); create index idx_qrtz_t_j on qrtz_triggers(SCHED_NAME,JOB_NAME,JOB_GROUP); create index idx_qrtz_t_jg on qrtz_triggers(SCHED_NAME,JOB_GROUP); create index idx_qrtz_t_c on qrtz_triggers(SCHED_NAME,CALENDAR_NAME); create index idx_qrtz_t_g on qrtz_triggers(SCHED_NAME,TRIGGER_GROUP); create index idx_qrtz_t_state on qrtz_triggers(SCHED_NAME,TRIGGER_STATE); create index idx_qrtz_t_n_state on qrtz_triggers(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP,TRIGGER_STATE); create index idx_qrtz_t_n_g_state on qrtz_triggers(SCHED_NAME,TRIGGER_GROUP,TRIGGER_STATE); create index idx_qrtz_t_next_fire_time on qrtz_triggers(SCHED_NAME,NEXT_FIRE_TIME); create index idx_qrtz_t_nft_st on qrtz_triggers(SCHED_NAME,TRIGGER_STATE,NEXT_FIRE_TIME); create index idx_qrtz_t_nft_misfire on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME); create index idx_qrtz_t_nft_st_misfire on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_STATE); create index idx_qrtz_t_nft_st_misfire_grp on qrtz_triggers(SCHED_NAME,MISFIRE_INSTR,NEXT_FIRE_TIME,TRIGGER_GROUP,TRIGGER_STATE); create index idx_qrtz_ft_trig_inst_name on qrtz_fired_triggers(SCHED_NAME,INSTANCE_NAME); create index idx_qrtz_ft_inst_job_req_rcvry on qrtz_fired_triggers(SCHED_NAME,INSTANCE_NAME,REQUESTS_RECOVERY); create index idx_qrtz_ft_j_g on qrtz_fired_triggers(SCHED_NAME,JOB_NAME,JOB_GROUP); create index idx_qrtz_ft_jg on qrtz_fired_triggers(SCHED_NAME,JOB_GROUP); create index idx_qrtz_ft_t_g on qrtz_fired_triggers(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP); create index idx_qrtz_ft_tg on qrtz_fired_triggers(SCHED_NAME,TRIGGER_GROUP);
USE dashboards; DROP FUNCTION IF EXISTS getTimePeriodDateRange; DELIMITER // CREATE FUNCTION getTimePeriodDateRange( p_includedDateFrom VARCHAR(20), p_includedDateTo VARCHAR(20), p_includedPeriodValue VARCHAR(20), p_includedPeriodType VARCHAR(20), p_includedPeriodOperator VARCHAR(50), p_baselineDate VARCHAR(30) ) RETURNS VARCHAR(255) NOT DETERMINISTIC READS SQL DATA BEGIN DECLARE daterange VARCHAR(255); DECLARE effectiveDate VARCHAR(30); DECLARE signString VARCHAR(3); DECLARE clinicalEffectiveDateString VARCHAR(255); IF p_baselineDate = 'N' THEN -- for query pattern 4 SET effectiveDate = 'o.clinical_effective_date'; SET signString = '-'; SET clinicalEffectiveDateString = 'o2.clinical_effective_date'; IF UPPER(p_includedPeriodOperator) = 'WITHIN' OR UPPER(p_includedPeriodOperator) IS NULL THEN SET p_includedPeriodOperator = '<='; ELSEIF UPPER(p_includedPeriodOperator) = 'BEFORE' THEN SET p_includedPeriodOperator = '>='; END IF; ELSEIF LENGTH(TRIM(p_baselineDate)) = 0 OR p_baselineDate IS NULL THEN -- set current date as the default date if no date specified SET effectiveDate = CURDATE(); SET effectiveDate = QUOTE(effectiveDate); SET signString = ''; SET clinicalEffectiveDateString = 'o2.clinical_effective_date'; IF UPPER(p_includedPeriodOperator) = 'WITHIN' OR UPPER(p_includedPeriodOperator) IS NULL THEN SET p_includedPeriodOperator = '>='; ELSEIF UPPER(p_includedPeriodOperator) = 'BEFORE' THEN SET p_includedPeriodOperator = '<='; END IF; ELSE -- set baseline run date SET effectiveDate = p_baselineDate; SET effectiveDate = QUOTE(effectiveDate); SET signString = ''; SET clinicalEffectiveDateString = 'o2.clinical_effective_date'; IF UPPER(p_includedPeriodOperator) = 'WITHIN' OR UPPER(p_includedPeriodOperator) IS NULL THEN SET p_includedPeriodOperator = '>='; ELSEIF UPPER(p_includedPeriodOperator) = 'BEFORE' THEN SET p_includedPeriodOperator = '<='; END IF; END IF; SET p_includedPeriodType = IF(p_includedPeriodType = 'Days','DAY', IF(p_includedPeriodType = 'Weeks','WEEK',IF(p_includedPeriodType = 'Months','MONTH',NULL))); IF p_includedDateFrom = '1970-01-01' THEN SET p_includedDateFrom = NULL; END IF; IF p_includedDateTo = '1970-01-01' THEN SET p_includedDateTo = NULL; END IF; IF p_includedDateFrom IS NOT NULL AND p_includedDateTo IS NOT NULL AND p_includedPeriodValue IS NOT NULL THEN SET daterange = CONCAT("((", clinicalEffectiveDateString, " ", p_includedPeriodOperator," DATE_SUB( ", effectiveDate," , INTERVAL ", signString," ",p_includedPeriodValue," ", p_includedPeriodType,")) OR (", clinicalEffectiveDateString," BETWEEN ", QUOTE(p_includedDateFrom)," AND ", QUOTE(p_includedDateTo),") )" ); ELSEIF p_includedDateFrom IS NOT NULL AND p_includedDateTo IS NULL AND p_includedPeriodValue IS NOT NULL THEN SET daterange = CONCAT("((", clinicalEffectiveDateString, " ", p_includedPeriodOperator," DATE_SUB( ", effectiveDate," , INTERVAL ", signString," ",p_includedPeriodValue," ", p_includedPeriodType,")) OR (", clinicalEffectiveDateString," >= ", QUOTE(p_includedDateFrom), ") )" ); ELSEIF p_includedDateFrom IS NULL AND p_includedDateTo IS NOT NULL AND p_includedPeriodValue IS NOT NULL THEN SET daterange = CONCAT("((", clinicalEffectiveDateString, " ", p_includedPeriodOperator," DATE_SUB( ", effectiveDate," , INTERVAL ", signString," ",p_includedPeriodValue," ", p_includedPeriodType,")) OR (", clinicalEffectiveDateString," <= ", QUOTE(p_includedDateTo), ") )" ); ELSEIF p_includedDateFrom IS NOT NULL AND p_includedDateTo IS NOT NULL AND p_includedPeriodValue IS NULL THEN SET daterange = CONCAT(clinicalEffectiveDateString," BETWEEN ", QUOTE(p_includedDateFrom) ," AND ", QUOTE(p_includedDateTo)); ELSEIF p_includedDateFrom IS NOT NULL AND p_includedDateTo IS NULL AND p_includedPeriodValue IS NULL THEN SET daterange = CONCAT(clinicalEffectiveDateString, " >= ", QUOTE(p_includedDateFrom) ); ELSEIF p_includedDateFrom IS NULL AND p_includedDateTo IS NOT NULL AND p_includedPeriodValue IS NULL THEN SET daterange = CONCAT(clinicalEffectiveDateString, " <= ", QUOTE(p_includedDateTo) ); ELSEIF p_includedDateFrom IS NULL AND p_includedDateTo IS NULL AND p_includedPeriodValue IS NOT NULL THEN SET daterange = CONCAT(clinicalEffectiveDateString, " ", p_includedPeriodOperator," DATE_SUB( ", effectiveDate," , INTERVAL ", signString," ",p_includedPeriodValue," ", p_includedPeriodType,")"); ELSEIF p_includedDateFrom IS NULL AND p_includedDateTo IS NULL AND p_includedPeriodValue IS NULL THEN SET daterange = '1'; END IF; RETURN daterange; END// DELIMITER ;
<gh_stars>1-10 CREATE SCHEMA [client];
<reponame>WNPRC-EHR-Services/wnprc-modules /* * Copyright (c) 2011-2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0 */ select h.id, h.room, h.cage, h.cond, h.id.numRoommates.numRoommates as numRoommates, CASE WHEN (h.cond = 's' or h.cond = 'pc') AND h.id.numRoommates.numRoommates != 0 THEN 'ERROR' WHEN (h.cond = 'p' or h.cond = 'm' or h.cond = 'f' or h.cond = 'b') AND h.id.numRoommates.numRoommates != 1 THEN 'ERROR' WHEN (h.cond = 'g' or h.cond = 'gam' or h.cond = 'gf' or h.cond = 'gm' or h.cond = 'gmf' ) AND h.id.numRoommates.numRoommates < 2 THEN 'ERROR' ELSE null END as conditionStatus from study.housing h where h.enddate is null
CREATE DATABASE java_a_from_z WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = pg_default LC_COLLATE = 'Russian_Russia.1251' LC_CTYPE = 'Russian_Russia.1251' CONNECTION LIMIT = -1;
<filename>9.3/Sitecore.Commerce.Engine.SDK.5.0.76/src/WebDeployUpdates/CECloud_SCCPL_Solr/CopyToRoot/CreateUser.Shared.sql  IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = 'PlaceholderForSharedDatabaseUserName') BEGIN IF (LEN('PlaceholderForSharedDatabasePassword') = 0) CREATE USER [PlaceholderForSharedDatabaseUserName] FOR LOGIN [PlaceholderForSharedDatabaseUserName] ELSE CREATE USER [PlaceholderForSharedDatabaseUserName] WITH PASSWORD = '<PASSWORD>'; END GO IF (NOT EXISTS (SELECT '*' FROM sys.database_role_members rm JOIN sys.database_principals p ON rm.role_principal_id = p.principal_id JOIN sys.database_principals m ON rm.member_principal_id = m.principal_id WHERE p.name = 'db_datareader' AND m.name = 'PlaceholderForSharedDatabaseUserName')) BEGIN EXEC sp_addrolemember 'db_datareader', [PlaceholderForSharedDatabaseUserName]; END IF (NOT EXISTS (SELECT '*' FROM sys.database_role_members rm JOIN sys.database_principals p ON rm.role_principal_id = p.principal_id JOIN sys.database_principals m ON rm.member_principal_id = m.principal_id WHERE p.name = 'db_datawriter' AND m.name = 'PlaceholderForSharedDatabaseUserName')) BEGIN EXEC sp_addrolemember 'db_datawriter', [PlaceholderForSharedDatabaseUserName]; END GO GRANT EXECUTE TO [PlaceholderForSharedDatabaseUserName]; GO
select db_instance_storage, zone_id from alicloud_rds_instance where akas::text = '["{{ output.resource_aka.value }}"]';
INSERT INTO MAIL_TEMPLATES ( TEMPLATE_ID , TEMPLATE_TITLE , DESCRIPTION , INSERT_USER , INSERT_DATETIME , UPDATE_USER , UPDATE_DATETIME , DELETE_FLAG ) VALUES ( ? , ? , ? , ? , ? , ? , ? , ? );
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com -- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions. -- OERR functionality - list description for and ORA- error code -- The data comes from $ORACLE_HOME/rdbms/mesg/oraus.msb file -- which is a binary compiled version of $ORACLE_HOME/rdbms/mesg/oraus.msg file @@saveset set serverout on size 1000000 feedback off prompt exec dbms_output.put_line(sqlerrm(-&1)) prompt @@loadset
<reponame>WeilerWebServices/PostgreSQL GRANT ALL ON TABLE public."testmview_$%{}[]()&*^!/@`#" TO PUBLIC;
--+ holdcas on; set system parameters 'dont_reuse_heap_file=yes'; create table t1( a char(1200), b varchar(1200), c nchar(1200), d NCHAR VARYING(1200), e BIT(1200), f BIT VARYING(1200), g int primary key, h SMALLINT, i BIGINT, j NUMERIC, k FLOAT, l DOUBLE, m MONETARY, n DATE, o TIME, p TIMESTAMP, q DATETIME); insert into t1 values ( '1234567890', '1234567890', N'abc', N'ABC', B'1111111111', B'1111111111', 10, 255, 9223372036854775807, 0, 0, 0, -100, DATE '2008-10-31', TIME '00:00:00', TIMESTAMP '2010-10-31 01:15:45', DATETIME '2008-10-31 13:15:45'); insert into t1 values (null,null,null,null,null,null,11,null,null,null,null,null,null,null,null,null,null); create index i_t1_a on t1(a) where a is not null; create index i_t1_b on t1(b) where b='1234567890'; create index i_t1_c on t1(c) where c>=N'abc'; create index i_t1_d on t1(d) where d<=N'ABC'; create index i_t1_e on t1(e) where e>B'1111111110'; create index i_t1_f on t1(f) where f<B'1111111111'; create index i_t1_g_h on t1(g,h) where g is not null; create index i_t1_h on t1(h) where h>=255; create index i_t1_i on t1(i) where i=9223372036854775807; create index i_t1_j on t1(j) where j is not null; create index i_t1_k on t1(k) where k=0; create index i_t1_l on t1(l) where l=0; create index i_t1_m on t1(m) where m=-100; create index i_t1_n on t1(n) where n=DATE '2008-10-31'; create index i_t1_o on t1(o) where o=TIME '00:00:00'; create index i_t1_p on t1(p) where p=TIMESTAMP '2010-10-31 01:15:45'; create index i_t1_q on t1(q) where q=DATETIME '2008-10-31 13:15:45'; create table t2 like t1; insert into t2 select * from t1; create trigger tri_update_t2 before update on t1 execute replace t2 values ('update','1234567890',N'abc',N'ABC', B'1111111111', B'1111111111',11,255,9223372036854775806,0,0,0,-200,DATE '2008-10-31',TIME '00:00:00',TIMESTAMP '2010-10-31 01:15:45',DATETIME '2008-10-31 13:15:45'); create trigger tri_insert_t2 before update on t1 execute insert t2 values ('insert','1234567890',N'abc',N'ABC', B'1111111111', B'1111111111',12,255,9223372036854775806,0,0,0,-200,DATE '2008-10-31',TIME '00:00:00',TIMESTAMP '2010-10-31 01:15:45',DATETIME '2008-10-31 13:15:45'); update t1 set a='0' where g=11; --TEST: select /*+ recompile */ * from t2 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ b from t2 where b='1234567890' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ c from t2 where c=N'abc' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ d from t2 where d=N'ABC' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ e from t2 where e=B'1111111111' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ f from t2 where f=B'1111111111' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ recompile */ g,h from t2 where g>0 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ h from t2 where h>=255 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ recompile */ i from t2 where i=9223372036854775807 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ j from t2 where j=0 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ k from t2 where k=0 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ l from t2 where l=0 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ m from t2 where m=-100 using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ n from t2 where n=DATE '2008-10-31' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ o from t2 where o=TIME '00:00:00' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ p from t2 where p=TIMESTAMP '2010-10-31 01:15:45' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; select /*+ RECOMPILE */ q from t2 where q=DATETIME '2008-10-31 13:15:45' using index i_t1_a(+),i_t1_b(+),i_t1_c(+),i_t1_d(+),i_t1_e(+),i_t1_f(+),i_t1_g_h(+),i_t1_h(+),i_t1_i(+),i_t1_j(+),i_t1_k(+),i_t1_l(+),i_t1_m(+),i_t1_n(+),i_t1_o(+),i_t1_p(+),i_t1_q order by 1; drop trigger tri_update_t2; drop trigger tri_insert_t2; drop table t1 ; drop table t2 ; set system parameters 'dont_reuse_heap_file=no'; commit; --+ holdcas off;
/* For the asynchronous mysql code, change session to use a 32 character * string instead of int(11) */ ALTER TABLE `auth` CHANGE `session` `session` CHAR( 32 ) NOT NULL ; ALTER TABLE `input` CHANGE `session` `session` CHAR( 32 ) NOT NULL ; ALTER TABLE `sessions` CHANGE `id` `id` CHAR( 32 ) NOT NULL ; ALTER TABLE `ttylog` CHANGE `session` `session` CHAR( 32 ) NOT NULL ;
<filename>webeve/sql/orgpref-mod.sql<gh_stars>0 ALTER TABLE `chofmann`.`OrgPrefs` MODIFY COLUMN `PrefType` VARCHAR(20) NOT NULL, MODIFY COLUMN `PrefValue` VARCHAR(10000); UPDATE OrgPrefs O SET PrefType = (SELECT TypeName FROM OrgPrefTypes WHERE TypeID = O.PrefType);
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2020 at 08:10 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `akademik_merahputih` -- -- -------------------------------------------------------- -- -- Table structure for table `tbl_agama` -- CREATE TABLE `tbl_agama` ( `kd_agama` varchar(2) NOT NULL, `nama_agama` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_agama` -- INSERT INTO `tbl_agama` (`kd_agama`, `nama_agama`) VALUES ('01', 'Islam'), ('02', '<NAME>'), ('03', 'Katholik'), ('04', 'Hindu'), ('05', 'Budha'), ('06', 'Konghucu'), ('99', 'Lain-lain'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_jurusan` -- CREATE TABLE `tbl_jurusan` ( `kd_jurusan` varchar(4) NOT NULL, `nama_jurusan` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_jurusan` -- INSERT INTO `tbl_jurusan` (`kd_jurusan`, `nama_jurusan`) VALUES ('AP', 'Administrasi Perkantoran'), ('TKJ', 'Teknik Komputer dan Jaringan'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_member` -- CREATE TABLE `tbl_member` ( `id` int(11) NOT NULL, `id_member` varchar(50) NOT NULL, `nisn` int(20) NOT NULL, `nama` varchar(128) NOT NULL, `tempat_lahir` varchar(128) NOT NULL, `tanggal_lahir` date NOT NULL, `jenis_kelamin` enum('L','P') NOT NULL, `kd_agama` varchar(2) NOT NULL, `jurusan` varchar(128) NOT NULL, `warganegara` enum('WNI','WNA') NOT NULL, `statussiswa` enum('Kandung','Yatim','Piatu','Yatim Piatu','Tiri','Angkat') NOT NULL, `anak_ke` int(2) NOT NULL, `dari__bersaudara` int(2) NOT NULL, `jumlah_saudara` int(2) NOT NULL, `alamat` text NOT NULL, `rt` int(3) NOT NULL, `rw` int(3) NOT NULL, `kelurahan` varchar(128) NOT NULL, `kecamatan` varchar(128) NOT NULL, `no_hp` varchar(13) NOT NULL, `tinggalbersama` enum('Orang tua','Saudara','Orang lain','Asrama') NOT NULL, `jarak` int(2) NOT NULL, `transport` enum('Kendaraan Umum','Kendaraan Pribadi','Jalan Kaki') NOT NULL, `asal_sekolah` varchar(128) NOT NULL, `no_sttb` varchar(50) NOT NULL, `pindahan` varchar(128) NOT NULL, `suratpindah` enum('Ada','Tidak') NOT NULL, `alasan` text NOT NULL, `image` varchar(128) NOT NULL, `email` varchar(128) NOT NULL, `password` varchar(256) NOT NULL, `nama_ot` varchar(128) NOT NULL, `alamat_ot` text NOT NULL, `no_hp_ot` varchar(13) NOT NULL, `pendidikan_ot` varchar(128) NOT NULL, `pekerjaan_ot` varchar(128) NOT NULL, `penghasilan_ot` int(50) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(1) NOT NULL, `date_created` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_member` -- INSERT INTO `tbl_member` (`id`, `id_member`, `nisn`, `nama`, `tempat_lahir`, `tanggal_lahir`, `jenis_kelamin`, `kd_agama`, `jurusan`, `warganegara`, `statussiswa`, `anak_ke`, `dari__bersaudara`, `jumlah_saudara`, `alamat`, `rt`, `rw`, `kelurahan`, `kecamatan`, `no_hp`, `tinggalbersama`, `jarak`, `transport`, `asal_sekolah`, `no_sttb`, `pindahan`, `suratpindah`, `alasan`, `image`, `email`, `password`, `nama_ot`, `alamat_ot`, `no_hp_ot`, `pendidikan_ot`, `pekerjaan_ot`, `penghasilan_ot`, `role_id`, `is_active`, `date_created`) VALUES (21, '20-21-PSB-05120003', 1234567811, '<NAME>', 'Cibinong', '2000-12-12', 'P', '01', 'AP', 'WNI', 'Kandung', 1, 2, 2, 'Bojong gede', 5, 5, 'Bojong gede', 'Bojong gede', '081234567891', 'Saudara', 3, 'Kendaraan Pribadi', 'SMPN 1 Cibinong', '2120071134567', '', '', '', 'profile211.png', '<EMAIL>', <PASSWORD>', 'Raswa Ewo', 'Bojong gede', '085723417999', 'S1', 'Guru', 5000000, 2, 0, 1589347959), (22, '20-21-PSB-05130004', 2147483647, '<NAME>', 'Bogor', '2005-12-12', 'L', '01', 'AP', 'WNI', 'Kandung', 1, 0, 0, 'Cibinong', 3, 2, 'Cibinong', 'Cibinong', '085712345798', 'Orang tua', 2, 'Kendaraan Umum', 'SMPN 1 Cibinong', '21342145645', '', '', '', 'default1.jpg', '<EMAIL>', <PASSWORD>', 'Komarudin', 'Cibinong', '081243567847', 'SMA', 'Karyawan Swasta', 3000000, 2, 1, 1589402516), (25, '20-21-PSB-05150006', 1234567890, 'Mugny', 'Kuningan', '2000-11-11', 'L', '01', 'TKJ', 'WNI', 'Kandung', 2, 2, 1, 'Ciwaru', 2, 2, 'Ciwaru', 'Ciwaru', '081234567891', 'Orang tua', 2, 'Kendaraan Umum', 'SMPN 1 Ciwaru', '1231413423424524', '', '', '', 'default.png', '<EMAIL>', '$2y$10$zQTfWJuAmLR/qR0KlefhrepCVBAdT87/OXjx7pM4t4vzXaCx8dKfa', 'Arif', 'Ciwaru', '085723417898', 'SMA', 'Wiraswasta', 500000, 2, 0, 1589507513), (26, '20-21-PSB-06020007', 1424876132, '<NAME>', 'Konohagakure', '2000-10-10', 'L', '01', 'TKJ', 'WNI', 'Yatim Piatu', 1, 0, 0, 'Konohagakure', 3, 1, 'Konohagakure', 'Konohagakure', '085712349798', 'Asrama', 1, 'Jalan Kaki', 'SMPN Konohagakure', '21342145645', '', '', '', 'default.png', '<EMAIL>', '$2y$10$D6a6f.R6iykwbyWuDXABV.py6AjrNq0YrZC/k.Dvn<PASSWORD>', '<NAME>', 'Konohagakure', '081243567147', 'Hokage', 'Hokage', 2147483647, 2, 0, 1591071325); -- -------------------------------------------------------- -- -- Table structure for table `tbl_admin` -- CREATE TABLE `tbl_admin` ( `id_user` int(11) NOT NULL, `nama_lengkap` varchar(50) NOT NULL, `email` varchar(128) NOT NULL, `password` varchar(256) NOT NULL, `role_id` int(11) NOT NULL, `is_active` int(1) NOT NULL, `date_created` int(11) NOT NULL, `foto` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `tbl_admin` -- INSERT INTO `tbl_admin` (`id_user`, `nama_lengkap`, `email`, `password`, `role_id`, `is_active`, `date_created`, `foto`) VALUES (8, 'yusron', '<EMAIL>', <PASSWORD>', 1, 1, 1589403197, 'default.png'), (9, 'naruto', '<EMAIL>', <PASSWORD>', 1, 1, 1589462771, 'default.png'), (10, 'admin', '<EMAIL>', <PASSWORD>TFPFm', 1, 1, 1589771627, 'default.png'); -- -------------------------------------------------------- -- -- Table structure for table `t_user_access_menu` -- CREATE TABLE `t_user_access_menu` ( `id` int(11) NOT NULL, `role_id` int(11) NOT NULL, `menu_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_user_access_menu` -- INSERT INTO `t_user_access_menu` (`id`, `role_id`, `menu_id`) VALUES (1, 1, 1), (2, 2, 2), (4, 1, 2), (8, 1, 3); -- -------------------------------------------------------- -- -- Table structure for table `t_user_menu` -- CREATE TABLE `t_user_menu` ( `id` int(11) NOT NULL, `menu` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_user_menu` -- INSERT INTO `t_user_menu` (`id`, `menu`) VALUES (1, 'Admin'), (2, 'User'), (3, 'Menu'), (5, 'Walikelas'); -- -------------------------------------------------------- -- -- Table structure for table `t_user_role` -- CREATE TABLE `t_user_role` ( `id` int(11) NOT NULL, `role` varchar(128) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_user_role` -- INSERT INTO `t_user_role` (`id`, `role`) VALUES (1, 'Administrator'), (2, 'Member'); -- -------------------------------------------------------- -- -- Table structure for table `t_user_sub_menu` -- CREATE TABLE `t_user_sub_menu` ( `id` int(11) NOT NULL, `menu_id` int(11) NOT NULL, `title` varchar(128) NOT NULL, `url` varchar(128) NOT NULL, `icon` varchar(128) NOT NULL, `is_active` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_user_sub_menu` -- INSERT INTO `t_user_sub_menu` (`id`, `menu_id`, `title`, `url`, `icon`, `is_active`) VALUES (1, 1, 'Dashboard', 'admin', 'fas fa-fw fa-tachometer-alt', 1), (2, 2, 'Home', 'member', 'fas fa-fw fa-home', 1), (3, 2, 'My Profile', 'member/profile', 'fas fa-fw fa-user', 1), (4, 3, 'Menu Management', 'menu', 'fas fa-fw fa-folder', 1), (5, 3, 'Submenu Management', 'menu/submenu', 'fas fa-fw fa-folder-open', 1), (6, 1, 'Role', 'admin/role', 'fas fa-fw fa-pencil-ruler', 1), (10, 2, 'Edit Profile', 'member/editprofile', 'fas fa-fw fa-user-edit', 1), (11, 1, 'Change Password', 'admin/changepassword', 'fas fa-fw fa-key', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `tbl_agama` -- ALTER TABLE `tbl_agama` ADD PRIMARY KEY (`kd_agama`); -- -- Indexes for table `tbl_jurusan` -- ALTER TABLE `tbl_jurusan` ADD PRIMARY KEY (`kd_jurusan`); -- -- Indexes for table `tbl_member` -- ALTER TABLE `tbl_member` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_admin` -- ALTER TABLE `tbl_admin` ADD PRIMARY KEY (`id_user`); -- -- Indexes for table `t_user_access_menu` -- ALTER TABLE `t_user_access_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `t_user_menu` -- ALTER TABLE `t_user_menu` ADD PRIMARY KEY (`id`); -- -- Indexes for table `t_user_role` -- ALTER TABLE `t_user_role` ADD PRIMARY KEY (`id`); -- -- Indexes for table `t_user_sub_menu` -- ALTER TABLE `t_user_sub_menu` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tbl_member` -- ALTER TABLE `tbl_member` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `tbl_admin` -- ALTER TABLE `tbl_admin` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `t_user_access_menu` -- ALTER TABLE `t_user_access_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `t_user_menu` -- ALTER TABLE `t_user_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `t_user_role` -- ALTER TABLE `t_user_role` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `t_user_sub_menu` -- ALTER TABLE `t_user_sub_menu` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>arianvaldivieso/pos -- payment_type_expenses -- ALTER table phppos_expenses ADD COLUMN `expense_payment_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL;
<filename>3-Customization/17-Manager can set daily fee and capacity/backend-sql/migrations/201904111130-add-columns-to-settings.sql ALTER TABLE public.settings ADD COLUMN "dailyFee" numeric(24, 2); ALTER TABLE public.settings ADD COLUMN capacity integer;
INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AMERICAN', 'American Airlines', 4, 227); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ASIANA', 'Asiana Airlines', 2, 118); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ADRIA', 'Adria Airways', 4, 196); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('EUROPA', 'Air Europa', 2, 66); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AEGEAN', 'Aegean Airlines', 8, 87); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AEROFLOT', 'Aeroflot Russian Airlines', 4, 187); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIRFRANS', 'Air France', 4, 73); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR BERLIN', 'Air Berlin', 89, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIRINDIA', 'Air India Limited', 4, 102); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR MALTA', 'Air Malta', 4, 149); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR SICILIA', 'Air Sicilia', 2, 106); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ALL NIPPON', 'All Nippon Airways', 2, 110); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR CANADA', 'Air Canada', 7, 36); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIRBALTIC', 'Air Baltic', 4, 131); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AUSTRIAN', 'Austrian Airlines', 4, 11); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ALITALIA', 'Alitalia', 2, 106); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR CHINA', 'Air China', 6, 46); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('DOLOMOTI', 'Air Dolomiti', 8, 106); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SHAMROCK', 'Aer Lingus', 4, 99); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SPEEDBIRD', 'British Airways', 4, 75); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('BEE-LINE', 'Brussels Airlines', 2, 19); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('CONDOR', 'Condor Flugdienst', 38, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('CROATIA', 'Croatia Airlines', 8, 95); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('CYPRUS', 'Cyprus Airways', 3, 53); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('DELTA', 'Delta Air Lines', 2, 227); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('EGYPTAIR', 'Egyptair', 2, 63); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ELAL', 'El Al Israel Airlines', 3, 100); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('EMIRATES', 'Emirates', 2, 2); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ETHIOPIAN', 'Ethiopian Airlines', 2, 67); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ETIHAD', 'Etihad Airways', 2, 2); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('EASY', 'easyJet', 8, 75); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('FINNAIR', 'Finnair', 4, 68); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('FORMOSA', 'Formosa Airlines', 4, 223); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('GERMANIA', 'Germania', 4, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('GERMAN WINGS', 'Germanwings', 2, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('HAINAN', 'Hainan Airlines', 2, 46); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('YELLOW CAB', 'TUIfly', 29, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('IBERIA', 'Iberia Airlines', 6, 66); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ICEAIR', 'Icelandair', 2, 105); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('INTERSKY', 'Intersky', 2, 11); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('KLM', 'KLM Royal Dutch Airlines', 4, 162); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('POLLOT', 'LOT Polish Airlines', 10, 175); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('LUFTHANSA', 'Lufthansa', 258, 55); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('LUXAIR', 'Luxair', 2, 130); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('MERAIR', 'Meridiana', 10, 106); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('FLYNIKI', 'Niki', 2, 11); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('NOR SHUTTLE', 'Norwegian Air Shuttle', 12, 163); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('NOUVELAIR', 'Nouvel Air Tunisie', 4, 218); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('OMAN AIR', 'Oman Air', 2, 168); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SUNTURK', 'Pegasus Airlines', 2, 220); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('QANTAS', 'Qantas', 2, 12); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('QATARI', 'Qatar Airways', 2, 183); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('ROYALAIR MAROC', 'Royal Air Maroc', 4, 133); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('JORDANIAN', 'Royal Jordanian', 4, 109); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR AZORES', 'SATA International', 2, 180); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SPRINGBOK', 'South African Airways', 4, 242); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SCANDINAVIAN', 'Scandinavian Airlines System', 15, 193); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SIBERIAN AIRLINES', 'S7 Airlines', 4, 187); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SINGAPORE', 'Singapore Airlines', 4, 194); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SWISS', 'Swiss International Air Lines', 6, 41); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SUNEXPRESS', 'SunExpress', 4, 220); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('TAM', 'TAM Brazilian Airlines', 2, 30); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('AIR PORTUGAL', 'TAP Portugal', 4, 180); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('TUNAIR', 'Tunisair', 6, 218); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('THAI', 'Thai Airways International', 2, 214); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('TURKAIR', 'Turkish Airlines', 4, 220); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('TAROM', 'Tarom', 4, 185); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('UNITED', 'United Airlines', 16, 227); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SVERDLOVSK AIR', 'Ural Airlines', 4, 187); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('U S AIR', 'US Airways', 14, 227); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('UKRAINE INTERNATIONAL', 'Ukraine International Airlines', 2, 225); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('VIRGIN', 'Virgin Atlantic Airways', 8, 75); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('VELOCITY', 'Virgin Australia', 0, 12); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('POLET', 'Polet Airlines (Priv)', 2, 187); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('SKYFOX', 'SkyWork Airlines', 2, 41); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('LITUANICA', 'Air Lituanica', 2, 129); INSERT INTO Airline(Callsign, Name, SlotCount, Country) VALUES ('VOLOTEA', 'VOLOTEA Airways', 4, 66);
<filename>barbershop.sql -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 03 Agu 2017 pada 11.21 -- Versi Server: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `barbershop` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `admin` -- CREATE TABLE `admin` ( `id_admin` int(11) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `email` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `admin` -- INSERT INTO `admin` (`id_admin`, `username`, `password`, `email`) VALUES (1, 'admin', 'admin', '<EMAIL>'); -- -------------------------------------------------------- -- -- Struktur dari tabel `antrian` -- CREATE TABLE `antrian` ( `id_antrian` varchar(24) NOT NULL, `tanggal` date NOT NULL, `id_barberman` int(11) NOT NULL, `id_paket` int(11) NOT NULL, `id_rambut` int(11) NOT NULL, `status` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `antrian` -- INSERT INTO `antrian` (`id_antrian`, `tanggal`, `id_barberman`, `id_paket`, `id_rambut`, `status`) VALUES ('170803001', '2017-08-03', 6, 3, 5, 2), ('170803002', '2017-08-03', 7, 6, 3, 2), ('170803003', '2017-08-03', 3, 4, 10, 2), ('170803004', '2017-08-03', 5, 8, 12, 3), ('170803005', '2017-08-03', 5, 3, 4, 2), ('170803006', '2017-08-03', 4, 2, 3, 1), ('170803007', '2017-08-03', 7, 5, 5, 3), ('170803008', '2017-08-03', 6, 6, 6, 2), ('170803009', '2017-08-03', 7, 6, 9, 3); -- -------------------------------------------------------- -- -- Struktur dari tabel `barberman` -- CREATE TABLE `barberman` ( `id_barberman` int(11) NOT NULL, `nama_barber` varchar(50) NOT NULL, `foto_barber` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `barberman` -- INSERT INTO `barberman` (`id_barberman`, `nama_barber`, `foto_barber`) VALUES (3, 'Enceng', 'file_1501665345.jpg'), (4, 'Ujang', 'file_1501665358.jpg'), (5, 'Tatang', 'file_1501665380.jpg'), (6, 'Rohman', 'file_1501665394.jpg'), (7, 'Encus', 'file_1501665406.jpg'); -- -------------------------------------------------------- -- -- Struktur dari tabel `paket` -- CREATE TABLE `paket` ( `id_paket` int(11) NOT NULL, `nama_paket` varchar(50) NOT NULL, `deskripsi_paket` text NOT NULL, `harga_paket` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `paket` -- INSERT INTO `paket` (`id_paket`, `nama_paket`, `deskripsi_paket`, `harga_paket`) VALUES (2, 'Cukur Normal', 'Rambut hanya dicukur sesuai model', 2000), (3, 'Cuci rambut', 'Rambut dicuci setelah dicukur', 10000), (4, 'Hairstyling', 'Rambut diberi pomade setelah dicukur', 10000), (5, 'Pijat kepala', 'Melakukan pijat relaksasi pada kepala', 12000), (6, 'Hairtonic', 'Memberi vitamin pada rambut', 15000), (7, 'Colouring', 'Semir rambut', 10000), (8, 'Hair Tattoo', 'Memberi ukiran pada rambut', 25000); -- -------------------------------------------------------- -- -- Struktur dari tabel `rambut` -- CREATE TABLE `rambut` ( `id_rambut` int(11) NOT NULL, `nama_rambut` varchar(50) NOT NULL, `deskripsi_rambut` text NOT NULL, `harga_rambut` int(11) NOT NULL, `gambar_rambut` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `rambut` -- INSERT INTO `rambut` (`id_rambut`, `nama_rambut`, `deskripsi_rambut`, `harga_rambut`, `gambar_rambut`) VALUES (2, 'Man Bun', 'Gaya rambut Man Bun', 15000, 'file_1501663006.jpg'), (3, 'Mohawk', 'Gaya rambut Mohawk', 15000, 'file_1501663151.jpg'), (4, 'Pompaodu', 'Gaya rambut Pompadou', 15000, 'file_1501663193.jpg'), (5, 'Slicked Back', 'Gaya rambut Slicked Back', 15000, 'file_1501663248.jpg'), (6, 'Fringe', 'Gaya rambut Fringe', 15000, 'file_1501663272.jpg'), (7, 'Under Cut', 'Gaya rambut Under Cut', 15000, 'file_1501663321.png'), (8, 'Top Knot', 'Gaya rambut Top Knot', 15000, 'file_1501663349.jpg'), (9, 'Buzz Cut', 'Gaya rambut Buzz Cut', 15000, 'file_1501663376.jpg'), (10, 'Faux Hawk', 'Gaya rambut Faux hawk', 15000, 'file_1501663411.jpg'), (11, 'Quiff', 'Gaya rambut Quiff', 15000, 'file_1501663449.jpg'), (12, 'Spiky', 'Gaya rambut spiky', 15000, 'file_1501663473.jpg'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id_admin`); -- -- Indexes for table `barberman` -- ALTER TABLE `barberman` ADD PRIMARY KEY (`id_barberman`); -- -- Indexes for table `paket` -- ALTER TABLE `paket` ADD PRIMARY KEY (`id_paket`); -- -- Indexes for table `rambut` -- ALTER TABLE `rambut` ADD PRIMARY KEY (`id_rambut`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `barberman` -- ALTER TABLE `barberman` MODIFY `id_barberman` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `paket` -- ALTER TABLE `paket` MODIFY `id_paket` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `rambut` -- ALTER TABLE `rambut` MODIFY `id_rambut` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>MeesterVers/HU_Richrail CREATE TABLE "TRAINS" ( "ID" NUMBER, "NAME" VARCHAR2(255), CREATE UNIQUE INDEX "TRAINS_PK" ON "TRAINS" ("ID"), ALTER TABLE "TRAINS" ADD CONSTRAINT "TRAINS_PK" PRIMARY KEY ("ID") ENABLE, ALTER TABLE "TRAINS" MODIFY ("ID" NOT NULL ENABLE) ) CREATE TABLE "WAGONS" ( "ID" NUMBER, "NAME" VARCHAR2(255), "SEATS" NUMBER, "TRAIN_ID" NUMBER DEFAULT 0, CREATE UNIQUE INDEX "WAGONS_PK" ON "WAGONS" ("ID"), ALTER TABLE "WAGONS" ADD CONSTRAINT "WAGONS_PK" PRIMARY KEY ("ID") ENABLE, ALTER TABLE "WAGONS" MODIFY ("ID" NOT NULL ENABLE), CONSTRAINT WAGON_FK FOREIGN KEY (TRAIN_ID) REFERENCES TRAINS(ID); )
<gh_stars>1-10 -- Before setting up any privileges, we revoke existing ones to make sure we -- start from a clean slate. -- Note that dropping a non-existing user produces an error that aborts the -- script, so we first grant a harmless privilege to each user to ensure it -- exists. USE mysql; GRANT USAGE ON *.* TO 'policy'@'localhost'; DROP USER 'policy'@'localhost'; GRANT USAGE ON *.* TO 'sa'@'localhost'; DROP USER 'sa'@'localhost'; GRANT USAGE ON *.* TO 'ocsp_resp'@'localhost'; DROP USER 'ocsp_resp'@'localhost'; GRANT USAGE ON *.* TO 'ocsp_update'@'localhost'; DROP USER 'ocsp_update'@'localhost'; GRANT USAGE ON *.* TO 'revoker'@'localhost'; DROP USER 'revoker'@'localhost'; GRANT USAGE ON *.* TO 'importer'@'localhost'; DROP USER 'importer'@'localhost'; GRANT USAGE ON *.* TO 'mailer'@'localhost'; DROP USER 'mailer'@'localhost'; GRANT USAGE ON *.* TO 'cert_checker'@'localhost'; DROP USER 'cert_checker'@'localhost'; GRANT USAGE ON *.* TO 'purger'@'localhost'; DROP USER 'purger'@'localhost'; GRANT USAGE ON *.* TO 'backfiller'@'localhost'; DROP USER 'backfiller'@'localhost'; GRANT USAGE ON *.* TO 'test_setup'@'localhost'; DROP USER 'test_setup'@'localhost';
drop table if exists lados_de_manzana; -- tabla con los ejes unidos, lados duplicado y dirigidos por -- mzad, ladod en sentido y mzai, ladoi en sentido contrario -- para respetar regla hombro derecho -- create schema if not exists carto; grant usage on schema carto to segmentador; drop view if exists carto.arcos; create view carto.arcos as select row_number() over () fid , * from ( select 'e3019.arc' as tabla, mzai, mzad, ladoi, ladod, tipo, codigo20, nombre, wkb_geometry from e3019.arc union select 'e5757.arc' as tabla, mzai, mzad, ladoi, ladod, tipo, codigo20, nombre, wkb_geometry from e5757.arc union select 'e5759.arc' as tabla, mzai, mzad, ladoi, ladod, tipo, codigo20, nombre, wkb_geometry from e5759.arc union select 'e5760.arc' as tabla, mzai, mzad, ladoi, ladod, tipo, codigo20, nombre, wkb_geometry from e5760.arc ) as identificados; grant select on carto.arcos to segmentador; delete from carto.lados_de_manzana where tabla = 'e3019.arc' or tabla = 'e5757.arc' or tabla = 'e5759.arc' or tabla = 'e5760.arc' ; drop table if exists carto.lados_de_manzana cascade; create table carto.lados_de_manzana as -- with pedacitos_de_lado as (-- mza como PPDDDLLLFFRRMMM select mzad as mza, ladod as lado, avg(anchomed) as anchomed, select tabla, mzad as mza, ladod as lado, array_agg(distinct tipo) as tipos, array_agg(distinct codigo20) as codigos, array_agg(distinct nombre) as calles, ST_Union(wkb_geometry) as geom_pedacito -- ST_Union por ser MultiLineString from carto.arcos where mzad is not Null and mzad != '' and ladod != 0 group by tabla, mzad, ladod union -- duplica los pedazos de lados a derecha e izquierda select tabla, mzai as mza, ladoi as lado, array_agg(distinct tipo) as tipos, array_agg(distinct codigo20) as codigos, array_agg(distinct nombre) as calles, ST_Union(ST_Reverse(wkb_geometry)) as geom_pedacito -- invierte los de mzai -- para respetar sentido hombro derecho from carto.arcos where mzai is not Null and mzai != '' and ladoi != 0 group by tabla, mzai, ladoi order by mza, lado ), lados_orientados as ( select tabla, mza as ppdddlllffrrmmm, substr(mza,1,2)::integer as prov, substr(mza,3,3)::integer as depto, substr(mza,6,3)::integer as codloc, substr(mza,9,2)::integer as frac, substr(mza,11,2)::integer as radio, substr(mza,13,3)::integer as mza, lado, tipos, codigos, calles, ST_LineMerge(ST_Union(geom_pedacito)) as wkb_geometry -- une por mza,lado from pedacitos_de_lado group by tabla, mza, lado, tipos, codigos, calles order by tabla, mza, lado ) -- --insert into carto.lados_de_manzana -- select row_number() over() as id, *, ST_StartPoint(wkb_geometry) as nodo_i_geom, ST_EndPoint(wkb_geometry) as nodo_j_geom from lados_orientados order by tabla, prov, depto, codloc, frac, radio, mza, lado ; ---- conteos_por_lado_de_manzana ---------------------------------------------------------------- drop view carto.conteos_por_lado_de_manzana; create view carto.conteos_por_lado_de_manzana as select lados_de_manzana.id as id, tabla, ppdddlllffrrmmm, prov, depto, codloc, frac, radio, mza, lado, wkb_geometry, conteo from segmentacion.conteos join carto.lados_de_manzana using (tabla, prov, depto, codloc, frac, radio, mza, lado) ; ---- doblar ---------------------------------------------------------- drop view if exists carto.doblar; create view carto.doblar as with max_lado as ( select tabla, ppdddlllffrrmmm, max(lado) as max_lado from carto.lados_de_manzana group by tabla, ppdddlllffrrmmm ), doblar as ( select tabla, ppdddlllffrrmmm, lado as de_lado, case when lado < max_lado then lado + 1 else 1 end as lado -- lado el lado que dobla de la misma mza from max_lado join carto.lados_de_manzana l using (tabla, ppdddlllffrrmmm) where lado != 0 ) select tabla, ppdddlllffrrmmm as mza_i, de_lado as lado_i, ppdddlllffrrmmm as mza_j, a.lado as lado_j from doblar d join carto.lados_de_manzana a using(tabla, ppdddlllffrrmmm, lado) order by ppdddlllffrrmmm, lado_i, lado_j, tabla ; -- adyacencias entre manzanas ------------------------------------ -- para calcular los lados de cruzar y volver drop view if exists carto.manzanas_adyacentes cascade; create view carto.manzanas_adyacentes as select tabla, mzad as mza_i, mzai as mza_j from carto.arcos where substr(mzad,1,12) = substr(mzai,1,12) -- mismo PPDDDLLLFFRR and mzad is not Null and mzad != '' and ladod != 0 and mzai is not Null and mzai != '' and ladod != 0 union -- hacer simétrica select tabla, mzai, mzad from carto.arcos where substr(mzad,1,12) = substr(mzai,1,12) -- mismo PPDDDLLLFFRR and mzad is not Null and mzad != '' and ladod != 0 and mzai is not Null and mzai != '' and ladod != 0 ; ---- volver --------------------------------------------------------- ---- fin(lado_i) = inicio(lado_j), ---- mza_i ady mza_j, y ---- la intersección es 1 linea drop view if exists carto.lado_de_enfrente_para_volver; create view carto.lado_de_enfrente_para_volver as select i.tabla, i.ppdddlllffrrmmm as mza_i, i.lado as lado_i, j.ppdddlllffrrmmm as mza_j, j.lado as lado_j from carto.lados_de_manzana i join carto.lados_de_manzana j on i.nodo_j_geom = j.nodo_i_geom -- el lado_i termina donde el lado_j empieza -- los lados van de nodo_i a nodo_j and i.tabla = j.tabla join carto.manzanas_adyacentes a on i.ppdddlllffrrmmm = a.mza_i and j.ppdddlllffrrmmm = a.mza_j -- las manzanas son adyacentes and a.tabla = i.tabla where ST_Dimension(ST_Intersection(i.wkb_geometry,j.wkb_geometry)) = 1 order by mza_i, mza_j, lado_i, lado_j ; ---- cruzar ----------------------------------------------------------- ---- fin(lado_i) = inicio(lado_j), ---- mza_i ady mza_j, y ---- la intersección es 1 punto drop view if exists carto.lado_para_cruzar; create view carto.lado_para_cruzar as select i.tabla, i.ppdddlllffrrmmm as mza_i, i.lado as lado_i, j.ppdddlllffrrmmm as mza_j, j.lado as lado_j from carto.lados_de_manzana i join carto.lados_de_manzana j on i.nodo_j_geom = j.nodo_i_geom -- el lado_i termina donde el lado_j empieza -- los lados van de nodo_i a nodo_j and i.tabla = j.tabla join carto.manzanas_adyacentes a on i.ppdddlllffrrmmm = a.mza_i and j.ppdddlllffrrmmm = a.mza_j -- las manzanas son adyacentes and a.tabla = i.tabla where ST_Dimension(ST_Intersection(i.wkb_geometry,j.wkb_geometry)) = 0 order by mza_i, mza_j, lado_i, lado_j, tabla ; create view carto.lados_adyacentes as select *, 'doblar'::text as accion from carto.doblar union select *, 'volver'::text as accion from carto.lado_de_enfrente_para_volver union select *, 'cruzar'::text as accion from carto.lado_para_cruzar ; ----------------------------------------------------------------------- insert into segmentacion.adyacencias select tabla as shape, substr(mza_i,1,2)::integer as prov, substr(mza_i,3,3)::integer as depto, substr(mza_i,6,3)::integer as codloc, substr(mza_i,9,2)::integer as frac, substr(mza_i,11,2)::integer as radio, substr(mza_i,13,3)::integer as mza, lado_i, substr(mza_j,13,3)::integer as mza_ady, lado_j as lado_ady from carto.lados_adyacentes ;
-- migrate up -- schema CREATE SCHEMA IF NOT EXISTS "dbr-sync-destination"; -- dbr-sync CREATE TABLE "dbr-sync-destination"."example" ( id_example TEXT NOT NULL, "name" TEXT NOT NULL, description TEXT NOT NULL, "active" BOOLEAN DEFAULT TRUE NOT NULL, created_at TIMESTAMP DEFAULT NOW(), updated_at TIMESTAMP DEFAULT NOW() ); -- migrate down -- tables DROP TABLE "dbr-sync-destination"."example"; -- schema DROP SCHEMA "dbr-sync-destination";
<filename>backend/src/test/resources/sql/InsertSingleUserCommand.sql<gh_stars>1-10 insert into user_command (id, user_email, command_name, command_text, created_on, modified_on, operated_on) values(99, '<EMAIL>', 'basename', 'basename -az --suffix=test /abc/xyz', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)
<filename>packages/api/prisma/migrations/20211102090116_/migration.sql -- CreateTable CREATE TABLE "LeoIncident" ( "id" TEXT NOT NULL, "caseNumber" SERIAL NOT NULL, "description" TEXT NOT NULL, "creatorId" TEXT NOT NULL, "firearmsInvolved" BOOLEAN NOT NULL DEFAULT false, "injuriesOrFatalities" BOOLEAN NOT NULL DEFAULT false, "arrestsMade" BOOLEAN NOT NULL DEFAULT false, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT "LeoIncident_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "_involvedOfficers" ( "A" TEXT NOT NULL, "B" TEXT NOT NULL ); -- CreateIndex CREATE UNIQUE INDEX "_involvedOfficers_AB_unique" ON "_involvedOfficers"("A", "B"); -- CreateIndex CREATE INDEX "_involvedOfficers_B_index" ON "_involvedOfficers"("B"); -- AddForeignKey ALTER TABLE "LeoIncident" ADD CONSTRAINT "LeoIncident_creatorId_fkey" FOREIGN KEY ("creatorId") REFERENCES "Officer"("id") ON DELETE RESTRICT ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_involvedOfficers" ADD FOREIGN KEY ("A") REFERENCES "LeoIncident"("id") ON DELETE CASCADE ON UPDATE CASCADE; -- AddForeignKey ALTER TABLE "_involvedOfficers" ADD FOREIGN KEY ("B") REFERENCES "Officer"("id") ON DELETE CASCADE ON UPDATE CASCADE;
<gh_stars>100-1000 update ACT_GE_PROPERTY set VALUE_ = '6.1.0.0' where NAME_ = 'schema.version'; alter table ACT_RU_EXECUTION add START_ACT_ID_ nvarchar(255); create table ACT_RU_HISTORY_JOB ( ID_ nvarchar(64) NOT NULL, REV_ int, LOCK_EXP_TIME_ datetime NULL, LOCK_OWNER_ nvarchar(255), RETRIES_ int, EXCEPTION_STACK_ID_ nvarchar(64), EXCEPTION_MSG_ nvarchar(4000), HANDLER_TYPE_ nvarchar(255), HANDLER_CFG_ nvarchar(4000), ADV_HANDLER_CFG_ID_ nvarchar(64), TENANT_ID_ nvarchar(255) default '', CREATE_TIME_ datetime2 NULL, primary key (ID_) ); UPDATE [ACT_DMN_DATABASECHANGELOGLOCK] SET [LOCKED] = 1, [LOCKEDBY] = '192.168.1.5 (192.168.1.5)', [LOCKGRANTED] = '2019-03-13T21:38:47.795' WHERE [ID] = 1 AND [LOCKED] = 0 UPDATE [ACT_DMN_DATABASECHANGELOGLOCK] SET [LOCKED] = 0, [LOCKEDBY] = NULL, [LOCKGRANTED] = NULL WHERE [ID] = 1 UPDATE [ACT_FO_DATABASECHANGELOGLOCK] SET [LOCKED] = 1, [LOCKEDBY] = '192.168.1.5 (192.168.1.5)', [LOCKGRANTED] = '2019-03-13T21:38:55.046' WHERE [ID] = 1 AND [LOCKED] = 0 UPDATE [ACT_FO_DATABASECHANGELOGLOCK] SET [LOCKED] = 0, [LOCKEDBY] = NULL, [LOCKGRANTED] = NULL WHERE [ID] = 1 UPDATE [ACT_CO_DATABASECHANGELOGLOCK] SET [LOCKED] = 1, [LOCKEDBY] = '192.168.1.5 (192.168.1.5)', [LOCKGRANTED] = '2019-03-13T21:39:01.851' WHERE [ID] = 1 AND [LOCKED] = 0 UPDATE [ACT_CO_DATABASECHANGELOGLOCK] SET [LOCKED] = 0, [LOCKEDBY] = NULL, [LOCKGRANTED] = NULL WHERE [ID] = 1
<filename>db/cookies_vs_session.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 20, 2022 at 09:22 AM -- Server version: 8.0.27 -- 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: `cookies_vs_session` -- -- -------------------------------------------------------- -- -- Table structure for table `todos` -- DROP TABLE IF EXISTS `todos`; CREATE TABLE IF NOT EXISTS `todos` ( `id` int NOT NULL AUTO_INCREMENT, `title` varchar(255) COLLATE utf8_hungarian_ci NOT NULL, `createdAt` date NOT NULL, `createdBy` int DEFAULT NULL, PRIMARY KEY (`id`), KEY `createdBy` (`createdBy`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_hungarian_ci; -- -- Dumping data for table `todos` -- INSERT INTO `todos` (`id`, `title`, `createdAt`, `createdBy`) VALUES (1, 'Write some code', '2022-03-19', 1), (2, 'asd', '2022-03-20', 2); -- -------------------------------------------------------- -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int NOT NULL AUTO_INCREMENT, `userName` varchar(255) COLLATE utf8_hungarian_ci NOT NULL, `passwordHash` varchar(255) COLLATE utf8_hungarian_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `userName` (`userName`) ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb3 COLLATE=utf8_hungarian_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `userName`, `passwordHash`) VALUES (1, 'testUser', '<PASSWORD>'), (2, 'asd', '<PASSWORD>'); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 30, 2018 at 10:24 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `tamu_db1` -- -- -------------------------------------------------------- -- -- Table structure for table `bukutamu` -- CREATE TABLE `bukutamu` ( `no_id` int(8) NOT NULL, `id_tamu` int(8) NOT NULL, `nama_tamu` varchar(255) NOT NULL, `alamat_tamu` text NOT NULL, `kantor_tamu` text NOT NULL, `jabatan_tamu` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `bukutamu` -- INSERT INTO `bukutamu` (`no_id`, `id_tamu`, `nama_tamu`, `alamat_tamu`, `kantor_tamu`, `jabatan_tamu`) VALUES (1, 22, 'syifa shalsabilla', 'subang', 'subang', 'kepala'); -- -- Indexes for dumped tables -- -- -- Indexes for table `bukutamu` -- ALTER TABLE `bukutamu` ADD PRIMARY KEY (`id_tamu`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `bukutamu` -- ALTER TABLE `bukutamu` MODIFY `id_tamu` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; /*!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 webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2020-1-4'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2020-1-3'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2020-1-2'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2020-1-1'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-31'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-30'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-29'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-28'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-27'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-26'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-25'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-24'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-23'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-22'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-21'; insert into webviewdata.web_js_error_local ( app_id , app_version_id , visit_id , action_id , agent_id , os_id , device_id , country_id , region_id , city_id , carrier_id , browser_id , page_url , iframe_status , exception_class , request_uri , message , browser_stack_hash , request_referer , browser_name , timestamp , ch_start_date ) SELECT app_id, app_version_id, visit_id, action_id, agent_id, os_id, device_id, country_id, region_id, city_id, carrier_id, browser_id, page_url, iframe_status, exception_class, request_uri, message, browser_stack_hash, request_referer, browser_name, timestamp, ch_start_date FROM webviewdata.`.inner.web_js_error_local_bak_1108` where ch_start_date='2019-12-20';
select count(*) from j1 where c_float not in ( select c_float from j6) ;
<filename>basededatosmegamercado.sql Create Database MegaMercado go use MegaMercado go CREATE Table login( log_Usuario Varchar(15) NOT NULL, Log_Contrasena Numeric(15,0) NOT NULL, Log_Ingreso Varchar(2) NOT NULL ); Insert Into login Values ('Sonia', '1234', '1'); Insert into login values ('Manuel', '456', '1'); SELECT * FROM login CREATE Table Clientes( Cli_Codigo int identity(1,1) NOT NULL Primary key, Cli_Direccion Varchar(30) NOT NULL, Cli_Nombres Varchar(30) NOT NULL, Cli_Apellidos Varchar(30) NOT NULL, Cli_RNC_Cedula Numeric(11,0) NOT NULL, Cli_Telefono Numeric(10,0) NOT NULL, Cli_Estatus Varchar(1) NOT NULL ); CREATE Table Proveedores( Prov_Codigo int identity(1,1) NOT NULL Primary key, Prov_Direccion varchar(50) NOT NULL, Prov_Nombre Varchar(15) NOT NULL, Prov_Servicios Varchar(40) NOT NULL, Prov_Telefono Numeric(9,0) NOT NULL, Prov_Estatus Varchar(1) NOT NULL ); CREATE Table Productos( Prod_Codigo int identity(1,1) NOT NULL Primary key, Prod_Nombre varchar(50) NOT NULL, Prod_PrecioVenta Numeric(6,2) NOT NULL, Prod_Proveedor varchar(40) NOT NULL, Prod_CostoUnidad Numeric(5,2) NOT NULL, Prod_ITBIS Numeric(5,2) NOT NULL, Prod_Estatus Varchar(1) NOT NULL ); CREATE Table Almacenes( Alm_Producto int NOT NULL References Productos (Prod_Codigo), Alm_ValorInvertario Numeric(6,2), Alm_UnidadesDisponibles Numeric(6,0), Primary Key(Alm_Producto) ); CREATE Table Factura( Fact_NoFactura int identity(1,1) NOT NULL Primary Key, Fact_Fecha date NOT NULL, Fact_Subtotal Numeric(6,2) NOT NULL, Fact_TotalITBIS Numeric(5,2) NOT NULL, Fact_Total Numeric(7,2) NOT NULL, Fact_Cliente int NOT NULL Foreign Key References Clientes(Cli_Codigo) ); CREATE Table DetalleFacturas( Det_NoFactura int NOT NULL Foreign Key References Factura(Fact_NoFactura), Det_Producto int NOT NULL Foreign Key References Productos(Prod_Codigo), Det_Cantidad Numeric(6,0) NOT NULL, Det_NoAlmacen int NOT NULL Foreign Key References Almacenes(Alm_Producto) ); CREATE Table Pedidos( Ped_NoPedido int identity(1,1) NOT NULL Primary Key, Ped_MontoTotal Numeric(8,2) NOT NULL, Ped_Proveedor int NOT NULL Foreign Key References Proveedores(Prov_Codigo) ); CREATE Table DetallePedido( DetP_NoPedido int NOT NULL Foreign Key References Pedidos(Ped_NoPedido), DetP_Cantidad Numeric(6,0) NOT NULL, DetP_Producto int NOT NULL Foreign Key References Productos(Prod_Codigo), DetP_ProDescrp Varchar(50) NOT NULL, Ped_NoAlmacen int NOT NULL Foreign Key References Almacenes(Alm_Producto) );
<filename>account/src/main/resources/org/killbill/billing/account/migration/V20163917173936__parent_account_456.sql alter table accounts add column parent_account_id varchar(36) DEFAULT NULL after billing_cycle_day_local; alter table accounts add column is_payment_delegated_to_parent boolean DEFAULT FALSE after parent_account_id; alter table account_history add column parent_account_id varchar(36) DEFAULT NULL after billing_cycle_day_local; alter table account_history add column is_payment_delegated_to_parent boolean DEFAULT FALSE after parent_account_id;
<filename>server/src/main/resources/db/bootstrap/V37__tag_entity_mapping.sql<gh_stars>100-1000 DROP TABLE IF EXISTS `tag_entity_mapping`; CREATE TABLE `tag_entity_mapping` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `tag_id` BIGINT(20) DEFAULT NULL, `entity_id` BIGINT(20) DEFAULT NULL, `type` VARCHAR(255) DEFAULT NULL, `created_date` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated_date` DATETIME DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `index_tag_entity_mapping_on_tag_id_and_entity_id_and_type` (`tag_id`, `entity_id`, `type`), CONSTRAINT `fk_tag_id_in_tag_entity_mapping_to_tags` FOREIGN KEY (`tag_id`) REFERENCES `tags` (`id`) ON DELETE CASCADE ) ENGINE = InnoDB DEFAULT CHARSET = utf8 COLLATE utf8_unicode_ci;
<gh_stars>10-100 -- -- Test correlated subquery in subplan with motion chooses correct scan type -- -- Given I have two distributed tables create table choose_seqscan_t1(id1 int,id2 int); create table choose_seqscan_t2(id1 int,id2 int); -- and they have some data insert into choose_seqscan_t1 select i+1,i from generate_series(1,50)i; insert into choose_seqscan_t2 select i+1,i from generate_series(1,50)i; -- and one of the tables has an index on a column which is not the distribution column create index bidx2 on choose_seqscan_t2(id2); -- and the statistics reflect the newly inserted data analyze choose_seqscan_t1; analyze choose_seqscan_t2; -- making an indexscan cheaper with this GUC is only necessary with this small dataset -- if you insert more data, you can still ensure an indexscan is considered set random_page_cost=1; -- and I query the table with the index from inside a subquery which will be pulled up inside of a subquery that will stay a subplan select (select id1 from (select * from choose_seqscan_t2) foo where id2=choose_seqscan_t1.id2) from choose_seqscan_t1 order by id1; explain select (select id1 from (select * from choose_seqscan_t2) foo where id2=choose_seqscan_t1.id2) from choose_seqscan_t1; -- then, a sequential scan is chosen because I need a motion to move choose_seqscan_t2 -- start_ignore drop table if exists choose_seqscan_t1; drop table if exists choose_seqscan_t2; -- end_ignore -- Given I have one replicated table create table choose_indexscan_t1(id1 int, id2 int); create table choose_indexscan_t2(id1 int, id2 int) distributed replicated; -- and it has data insert into choose_indexscan_t1 select i+1, i from generate_series(1,20)i; insert into choose_indexscan_t2 select i+1, i from generate_series(1,100)i; -- and the replicated table has an index on a column which is not the distribution key create index choose_indexscan_t2_idx on choose_indexscan_t2(id2); -- and the statistics reflect the newly inserted data analyze choose_indexscan_t1; analyze choose_indexscan_t2; -- making an indexscan cheaper with this GUC is only necessary with this small dataset -- if you insert more data, you can still ensure an indexscan is considered set random_page_cost=1; -- and I query the table with the index from inside a subquery which will be pulled up inside of a subquery that will stay a subplan select (select id1 from (select * from choose_indexscan_t2) foo where id2=choose_indexscan_t1.id2) from choose_indexscan_t1 order by id1; explain select (select id1 from (select * from choose_indexscan_t2) foo where id2=choose_indexscan_t1.id2) from choose_indexscan_t1; -- then an indexscan is chosen because it is correct to do this on a replicated table since no motion is required -- start_ignore drop table if exists choose_indexscan_t1; drop table if exists choose_indexscan_t2; -- end_ignore
<gh_stars>0 SELECT ExternalUpdates.PrcId, ExternalUpdates.BFY, ExternalUpdates.BudgetLevel, ExternalUpdates.AhCode, ExternalUpdates.FundName, ExternalUpdates.FundCode, ExternalUpdates.OrgCode, ExternalUpdates.AccountCode, ExternalUpdates.BocCode, ExternalUpdates.RcCode, ExternalUpdates.BocName, ExternalUpdates.DivisionName, ExternalUpdates.ProgramProjectName, CCur([ExternalUpdates].[Amount]) AS R6, CCur([Allocations].[Amount]) AS BudEx, CCur(0-Round(Nz(ExternalUpdates.Amount, 0) - [Allocations].[Amount], 2)) AS Delta, IIf((([ExternalUpdates].[Amount]-[Allocations].[Amount]>-1) AND ([ExternalUpdates].[Amount]-[Allocations].[Amount]<1)),"ZERO", IIf([ExternalUpdates].[Amount]-[Allocations].[Amount]>1,"DECREASE","INCREASE")) AS NET FROM ExternalUpdates LEFT JOIN Allocations ON (ExternalUpdates.RcCode = Allocations.RcCode) AND (ExternalUpdates.OrgCode = Allocations.OrgCode) AND (ExternalUpdates.FundCode = Allocations.FundCode) AND (ExternalUpdates.AhCode = Allocations.AhCode) AND (ExternalUpdates.BudgetLevel = Allocations.BudgetLevel) AND (ExternalUpdates.BFY = Allocations.BFY) WHERE (((ExternalUpdates.BFY)=[Allocations].[BFY]) AND ((ExternalUpdates.BudgetLevel)=[Allocations].[BudgetLevel]) AND ((ExternalUpdates.AhCode)=[Allocations].[AhCode]) AND ((ExternalUpdates.FundCode)=[Allocations].[FundCode]) AND ((ExternalUpdates.OrgCode)=[Allocations].[OrgCode]) AND ((ExternalUpdates.AccountCode)=[Allocations].[AccountCode]) AND ((ExternalUpdates.BocCode)=[Allocations].[BocCode]) AND ((ExternalUpdates.RcCode)=[Allocations].[RcCode]) AND ((ExternalUpdates.Amount)<>[Allocations].[Amount]));
<filename>database/sql-files/Step04_createViews.sql<gh_stars>0 Use `microtope`; CREATE VIEW microtope.steps_by_user AS SELECT ps.player_id,SUM(steps) AS steps FROM players AS ps JOIN steps AS s ON ps.player_id = s.player_id GROUP BY ps.player_id ORDER BY steps DESC; CREATE VIEW microtope.coins_by_user AS SELECT player_id, sum(value) AS coins FROM coins GROUP BY player_id ORDER BY coins DESC; CREATE VIEW microtope.coins_by_team AS SELECT t.team_id, t.team_name, SUM(value) AS coins FROM teams AS t JOIN players AS ps JOIN coins AS c ON t.team_id = ps.team_id AND ps.player_id = c.player_id GROUP BY t.team_id ORDER BY coins DESC; CREATE VIEW microtope.steps_by_team AS SELECT t.team_id,t.team_name,sum(steps) AS steps FROM teams as t JOIN steps as s JOIN players as ps ON ps.team_id = t.team_id AND s.player_id = ps.player_id GROUP BY t.team_id ORDER BY steps DESC; CREATE VIEW microtope.player_summary AS SELECT ps.player_id, ps.player_name, s.steps, c.coins FROM players as ps, coins_by_user as c, steps_by_user as s WHERE ps.player_id = c.player_id AND ps.player_id=s.player_id; CREATE VIEW microtope.team_summary AS SELECT t.team_id as team_id, t.team_name as team_name, sbt.steps as steps, cbt.coins as coins FROM teams as t JOIN steps_by_team as sbt JOIN coins_by_team as cbt WHERE t.team_id=sbt.team_id AND t.team_id =cbt.team_id
CREATE FUNCTION ufn_CashInUsersGames(@gameName NVARCHAR(MAX)) RETURNS TABLE AS RETURN SELECT SUM(Cash) AS SumCash FROM ( SELECT ug.Cash, ROW_NUMBER() OVER ( ORDER BY ug.Cash DESC ) AS RowNum FROM UsersGames AS ug INNER JOIN Games AS g ON ug.GameId = g.Id WHERE g.Name = @gameName ) AS CashList WHERE RowNum % 2 = 1
CREATE TABLE [dbo].[LogActivityUser] ( [Id] BIGINT IDENTITY (1, 1) NOT NULL, [NamaTable] NVARCHAR (MAX) NULL, [Message] NVARCHAR (MAX) NULL, [IdRow] BIGINT NULL, [Action] NVARCHAR (MAX) NULL, [UserBy] NVARCHAR (MAX) NULL, [Datetime] NVARCHAR (MAX) NULL, CONSTRAINT [PK_LogActivityUser] PRIMARY KEY CLUSTERED ([Id] ASC) );
<gh_stars>1-10 create database residentlog; use residentlog; create table duty ( DutyType int not null primary key, DutyDescription varchar(32) not null ); create table test_result ( TestResultType int not null primary key, TestResultDescription varchar(32) not null ); create table resident ( ResidentID int auto_increment primary key, FirstName varchar(32) not null, LastName varchar(32) not null, PGY varchar(5) not null, PhoneNumber varchar(16) null, SymptomsDate datetime null, SymptomsDescription varchar(256) null, Covid19TestDate datetime null, Covid19TestResult int default 0 null, QuarantinedUntil datetime null, IsQuarantined tinyint default 0 null, constraint resident_test_result_TestResultType_fk foreign key (Covid19TestResult) references test_result (TestResultType) on update cascade on delete cascade ); create table duty_assignment ( ResidentID int not null, DutyType int not null, DateStart datetime not null, DateEnd datetime not null, DateAssigned datetime not null, constraint duty_assignment_duty_DutyType_fk foreign key (DutyType) references duty (DutyType) on update cascade on delete cascade, constraint duty_assignment_resident_ResidentID_fk foreign key (ResidentID) references resident (ResidentID) on update cascade on delete cascade ); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (1, 'ICU Day'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (2, 'ICU Night'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (3, 'COVID Day'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (4, 'COVID Night'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (5, 'Floor'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (6, 'Nephrology'); INSERT INTO residentlog.duty (DutyType, DutyDescription) VALUES (7, 'Cardiology'); INSERT INTO residentlog.test_result (TestResultType, TestResultDescription) VALUES (0, 'Not Tested'); INSERT INTO residentlog.test_result (TestResultType, TestResultDescription) VALUES (1, 'Pending'); INSERT INTO residentlog.test_result (TestResultType, TestResultDescription) VALUES (2, 'Negative'); INSERT INTO residentlog.test_result (TestResultType, TestResultDescription) VALUES (3, 'Positive');
-- FORMS UPDATE `sys_form_inputs` SET `editable`='1' WHERE `object`='bx_albums' AND `name` IN ('allow_view_to', 'location'); -- COMMENTS UPDATE `sys_objects_cmts` SET `Module`='bx_albums' WHERE `Name` IN ('bx_albums', 'bx_albums_media'); -- VOTES UPDATE `sys_objects_vote` SET `TriggerFieldAuthor`='author' WHERE `Name`='bx_albums_media';
ALTER TABLE "public"."user" ADD COLUMN "name" varchar NULL;
DROP INDEX IF EXISTS messages_stream; CREATE UNIQUE INDEX messages_stream ON message_store.messages ( stream_name, position );
ALTER TABLE seq_track ADD COLUMN sample_identifier VARCHAR(255); -- fill sample_identifier UPDATE seq_track st SET sample_identifier = subquery.sample_id FROM (SELECT df.seq_track_id, -- meta_data_entry.value: -- the unfiltered meta_data_entries can hold an ODCF-guide "import identifier" -- import identifiers look like "(project)(individual)(sampleType)(sampleId)" -- or more recently, with [] instead of (). -- For our migration, we are only interested in the SampleID-part, so we extract only that. regexp_replace(regexp_replace(meta_data_entry.value, '\[.+\]\[.+\]\[.+\]\[(.+)\]', '\1'), '\(.+\)\(.+\)\(.+\)\((.+)\)', '\1' ) AS sample_id FROM meta_data_entry JOIN data_file df ON meta_data_entry.data_file_id = df.id JOIN meta_data_key mdk ON meta_data_entry.key_id = mdk.id WHERE (mdk.name = 'SAMPLE_ID' OR mdk.name = 'SAMPLE_NAME') -- mutually exclusive, changed as part of otp-569: 'SAMPLE_NAME alias' ) AS subquery WHERE st.id = subquery.seq_track_id; -- Delete all the sample_identifiers that were migrated. ANY seqtrack with same sample_identifier string will do, -- even if it belongs to another sample (e.g. as happens after sample/lane swaps) DELETE FROM sample_identifier si WHERE exists( SELECT st.id FROM seq_track st WHERE st.sample_identifier = si.name ); -- delete all unused sampleIdentifiers in 'closed' projects, where no new data is expected. DELETE FROM sample_identifier si USING sample s2, individual i2, project p WHERE si.sample_id = s2.id AND s2.individual_id = i2.id AND i2.project_id = p.id AND p.closed = true; -- sample swap survivors -- -- Any sample that has a swap in its history counts as "all bets are off" -- with regards to SampleIdentifier, just throw them away. -- (compare with issue description, which also says all associated -- SampleIdentifier objects should be deleted upon swap) -- There isn't a hard-and-fast rule for swaps, and indeed some aren't documented -- (in the DB) at all, but we can look for some specific text variations on 'moved', -- 'swap' and 'changed' in strings. -- 'ancient' style: swap documented in sample_identifier name DELETE FROM sample_identifier si USING sample s2, individual i2 WHERE si.sample_id = s2.id AND s2.individual_id = i2.id AND ( si.name like '% moved %' OR si.name like '% was changed %' ); -- 'newer' style: swap documented in comments DELETE FROM sample_identifier si USING sample s2, individual i2, comment c WHERE si.sample_id = s2.id AND s2.individual_id = i2.id AND i2.comment_id = c.id AND ( c.comment like '%== Lane swap - %' OR c.comment like '%== Sample swap - %' OR c.comment like '%== Individual swap - %' OR c.comment like '% was changed %' ); -- Delete old leftovers -- If they haven't been used in 3 months, they're probably spurious. DELETE FROM sample_identifier WHERE date_created <= '2020-02-29'; -- Make it an error to create SeqTracks without sampleIdentifiers in the future; ALTER TABLE seq_track ALTER COLUMN sample_identifier SET NOT NULL;
<filename>code/cn.elwy.eplus/cn.elwy.eplus.core/src/main/resources/database/cn.elwy.base.data.sql /* -- -------------------------------------------------------- -- 作者:黄仕强 -- 系统版本:version 2.0 -- 创建日期:2018-02-19 20:30:00 -- 版权所有:2027-02-19 All Right Reserved IN www.elwy.cn -- 文件描述:创建数据库表、视图以及初始化系统数据 -- 表名命名规则: -- 1.前两个字母表示应用名称,用于区分不同的系统 -- 3.第三个字母到"_"前的字符表示对象类型,可以取值: -- F方法、I索引、P分区表、S序列、T表、V视图、PR存储过程、TR触发器、TE临时表、TY类型 -- */ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET FOREIGN_KEY_CHECKS=0; /* -- -------------------------------------------------------- -- 创建数据库: `CN_ELWY_FOSGI` -- */ CREATE DATABASE IF NOT EXISTS `CN_ELWY_FOSGI`; USE `CN_ELWY_FOSGI`; -- ---------------------------- -- 表的结构 `ECT_USER` -- ---------------------------- INSERT INTO `ECT_USER` (`FID`, `FROLE_ID`, `FORG_ID`, `FPOST_ID`, `FCODE`, `FNAME`, `FTYPE`, `FENABLE`, `FPASSWORD`, `FREAL_NAME`, `FGENDER`, `FBIRTHDAY`, `FNICKNAME`, `FJOB`, `FEMAIL`, `FADDRESS`, `FPOSTCODE`, `FTELEPHONE`, `FMOBILE`, `FSAFETY`, `FLOCK_STATE`, `FENABLE_STATE`, `FSTART_DATE`, `FEND_DATE`, `FLOGIN_TIME`, `FLOGIN_COUNT`, `FCLIENT_IP`, `FONLINE`, `FCREATOR_ID`, `FCREATE_TIME`, `FLAST_EDITOR_ID`, `FLAST_EDIT_TIME`, `FCHECK_STATE`, `FCHECKER_ID`, `FCHECK_TIME`, `FDELETE_STATE`, `FDELETOR_ID`, `FDELETE_TIME`, `FREMARK`) VALUES (100001, 1, 1, 1, 'fa', 'E览无余', '1', true, 'fa', '1', '1', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100002, 1, 1, 1, 'fb', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100003, 3, 3, 3, 'fc', '♂男dé糊涂', '3', true, 'fa', '3', '3', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100005, 1, 1, 1, 'ba', 'E览无余', '1', true, 'fa', '1', '1', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100006, 1, 1, 1, 'bb', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100007, 3, 3, 3, 'bc', '♂男dé糊涂', '3', true, 'fa', '3', '3', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100008, 1, 1, 1, 'da', 'E览无余', '1', true, 'fa', '1', '1', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100009, 1, 1, 1, 'db', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100010, 3, 3, 3, 'dc', '♂男dé糊涂', '3', true, 'fa', '3', '3', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100011, 1, 1, 1, 'ea', 'E览无余', '1', true, 'fa', '1', '1', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100012, 1, 1, 1, 'eb', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100013, 3, 3, 3, 'ec', '♂男dé糊涂', '3', true, 'fa', '3', '3', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100015, 1, 1, 1, 'fb', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''), (100016, 1, 1, 1, 'fb', '苝飄', '11', true, 'fa', '11', '11', '2017-2-19 20:30:00', '', '', '', '', '', '', '', '0', true, false, '2017-2-19 20:30:00', '2017-2-19 20:30:00', '2017-2-19 20:30:00', 1, '', 0, 0, '2017-2-19 20:30:00', 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', 0, 1, '2017-2-19 20:30:00', ''); INSERT INTO `ECT_APPL` (`FID`, `FCODE`, `FNAME`, `FTYPE`, `FENABLE`, `FORDER_NO`, `FPARENT_ID`, `FICON`, `FURI`, `FACTION`, `FCREATOR_ID`, `FCREATE_TIME`, `FLAST_EDITOR_ID`, `FLAST_EDIT_TIME`, `FCHECK_STATE`, `FCHECKER_ID`, `FCHECK_TIME`, `FDELETE_STATE`, `FDELETOR_ID`, `FDELETE_TIME`, `FREMARK`) VALUES (10000, 'gkzx', '管控中心', '1', true, 0, 0, NULL, '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10001, 'bbzx', '报表中心', '1', true, 0, 0, NULL, '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10002, 'xxzx', '消息中心', '1', true, 0, 0, NULL, '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); INSERT INTO `ect_function` (`FID`, `FMODULE_ID`, `FCODE`, `FNAME`, `FTYPE`, `FENABLE`, `FORDER_NO`, `FICON`, `FURI`, `FACTION`, `FREMARK`) VALUES (10000, 0, 'sofa-report@const', '常量管理', '', true, 0, NULL, '', '', NULL), (10001, 0, 'sofa-report@datasource', '数据源管理', '', true, 0, NULL, '', '', NULL), (10002, 0, 'sofa-report@template', '模板管理', '', true, 0, NULL, '', '', NULL), (10003, 0, 'sofa-report@stub', '报表存根', '', true, 0, NULL, '', '', NULL), (10004, 0, 'sofa-report@report', '报表管理', '', true, 0, NULL, '', '', NULL), (10005, 0, 'sofa-report@scene', '场景管理', '', true, 0, NULL, '', '', NULL), (10006, 0, 'sofa-log-manage', '日志记录管理', '', true, 0, NULL, '', '', NULL), (10007, 0, 'sofa-log-config', '日志配置管理', '', true, 0, NULL, '', '', NULL), (10008, 0, 'sofa-app-appfunc', '应用功能树管理', '', true, 0, NULL, '', '', NULL), (10009, 0, 'sofa-app-application', '应用信息管理', '', true, 0, NULL, '', '', NULL), (10010, 0, 'deploy_arti_list', '部署列表', '', true, 0, NULL, '/sofa-deploy/artifact', '', NULL), (10011, 0, 'deploy_comp_dep_rel', '组件依赖关系', '', true, 0, NULL, '/sofa-deploy/component', '', NULL), (10012, 0, 'deploy_comp_list', '组件列表', '', true, 0, NULL, '/sofa-deploy/component', '', NULL), (10013, 0, 'sofa-portal@menu_list', '门户菜单管理', '', true, 0, NULL, '/sofa-portal/menu.ctrl', '', NULL), (10014, 0, 'sofa-messageCenter', '消息中心', '', true, 0, NULL, 'messageCenter.ctrl', '', NULL), (10015, 0, 'sofa-foundation-post', '岗位管理', '', true, 0, NULL, '/sofa-basalinfo/positionMgr.ctrl?', '', NULL), (10016, 0, 'sofa-foundation-org', '机构管理', '', true, 0, NULL, '/sofa-basalinfo/orgMgr.ctrl?', '', NULL), (10017, 0, 'sofa-foundation-category', '字典类目管理', '', true, 0, NULL, '/sofa-basalinfo/dictCategoryMgr.ctrl?', '', NULL), (10018, 0, 'sofa-foundation-user', '用户管理', '', true, 0, NULL, '/sofa-basalinfo/userMgr.ctrl?', '', NULL), (10019, 0, 'sofa-foundation-region', '行政区域管理', '', true, 0, NULL, '/sofa-basalinfo/districtMgr.ctrl?', '', NULL), (10020, 0, 'sofa-foundation-dictionary', '数据字典管理', '', true, 0, NULL, '/sofa-basalinfo/dataDictMgr.ctrl?', '', NULL), (10021, 0, 'sofa-foundation-specialcalendar', '特殊日期管理', '', true, 0, NULL, '/sofa-basalinfo/specialDateMgr.ctrl?', '', NULL), (10022, 0, 'sofa-schedule', '任务调度', '', true, 0, NULL, '', '', NULL), (10023, 0, 'sofa-schedule-monitor', '任务监控', '', true, 0, NULL, '', '', NULL), (10024, 0, 'sofa-schedule-task', '任务管理', '', true, 0, NULL, '', '', NULL), (10025, 0, 'sofa-schedule-trigger', '计划管理', '', true, 0, NULL, '', '', NULL), (10026, 0, 'sofa-flowengineCoop-start', '启动流程', '', true, 0, NULL, '', '', NULL), (10027, 0, 'sofa-flowengineMng-catalog', '流程分类管理', '', true, 0, NULL, '', '', NULL), (10028, 0, 'sofa-flowengineCoop-processed', '已办任务', '', true, 0, NULL, '', '', NULL), (10029, 0, 'sofa-flowengineCoop-unprocess', '待办任务', '', true, 0, NULL, '', '', NULL), (10030, 0, 'sofa-flowengineMng-definition', '流程定义管理', '', true, 0, NULL, '', '', NULL), (10031, 0, 'sofa-flowengineMng-instance', '流程实例管理', '', true, 0, NULL, '', '', NULL), (10032, 0, 'sofa-flowengineMng-template', '流程模版管理', '', true, 0, NULL, '', '', NULL), (10033, 0, 'sofa-svcmgr@service_dir_list', '服务目录管理', '', true, 0, NULL, '/sofa-svcmgr/serviceDiretory.ctrl?', '', NULL), (10034, 0, 'sofa-svcmgr@service_reg_list', '服务管理', '', true, 0, NULL, '/sofa-svcmgr/serviceManager.ctrl?', '', NULL), (10035, 0, 'sofa-svcmgr@dest_mgr', '消息内容管理', '', true, 0, NULL, '/sofa-svcmgr/brokerMgrCtrl.ctrl?', '', NULL), (10036, 0, 'sofa-security-sso', '登入登出', '', true, 0, NULL, '', '', NULL), (10037, 0, 'sofa_configcenter_system', '配置资源管理', '', true, 0, NULL, '/sofa-configcenter/pages/index.jsp', '', NULL), (10038, 0, 'sofa-authorization-handover', '权限交接及委托', '', true, 0, NULL, '', '', NULL), (10039, 0, 'sofa-authorization-aclquery', '权限查询', '', true, 0, NULL, '', '', NULL), (10040, 0, 'sofa-authorization-dataacl', '数据权限管理', '', true, 0, NULL, '', '', NULL), (10041, 0, 'sofa-authorization-useracl', '用户授权', '', true, 0, NULL, '', '', NULL), (10042, 0, 'sofa-authorization-roleacl', '角色授权', '', true, 0, NULL, '', '', NULL), (10043, 0, 'sofa-authorization-orgacl', '机构授权', '', true, 0, NULL, '', '', NULL), (10044, 0, 'sofa-cache@statist_list', '缓存统计', '', true, 0, NULL, '/sofa-cache/statistController.ctrl?', '', NULL), (10045, 0, 'sofa-cache@cache_manager', '缓存内容管理', '', true, 0, NULL, '/sofa-cache/cacheContentCtrl.ctrl?', '', NULL), (10046, 0, 'sofa-security-encryptkey', '用户密钥管理', '', true, 0, NULL, '/sofa-security/userEncryptKeyMgr.ctrl?', '', NULL), (10047, 0, 'sofa-security@LoginUserSession', '在线用户列表', '', true, 0, NULL, 'loginUserSession.ctrl', '', NULL), (10048, 0, 'sofa-security@LoginManager', '登录管理设置', '', true, 0, NULL, 'loginManager.ctrl', '', NULL), (10049, 0, 'sofa-security@terminalIdentification', '终端认证管理', '', true, 0, NULL, '/sofa-security/ctrl/terminalIdentification/', '', NULL), (10050, 0, 'sofa_reportcent_reportdeploy_manager', '报表部署管理', '', true, 0, NULL, '/sofa-reportcent/ReportDeployManage.ctrl', '', NULL), (10051, 0, 'sofa_reportcent_sharedParam_manager', '参数共享管理', '', true, 0, NULL, '/sofa-reportcent/ReportSharedParamController.ctrl', '', NULL), (10052, 0, 'sofa_reportcent_reportlist_manager', '报表管理', '', true, 0, NULL, '/sofa-reportcent/ReportManage.ctrl', '', NULL), (10053, 0, 'sofa_reportcent_reportShared_manager', '报表共享管理', '', true, 0, NULL, '/sofa-reportcent/ReportSharedRuleController.ctrl', '', NULL), (10054, 0, 'sofa_reportcent_dataset_manager', '数据源管理', '', true, 0, NULL, '/sofa-reportcent/Datasource.ctrl', '', NULL), (10055, 0, 'sofa_reportcent_system_regiest', '系统注册管理', '', true, 0, NULL, '/sofa-reportcent/BusinessSystem.ctrl', '', NULL), (10056, 0, 'HolidayInfo', '节假日信息', '', true, 0, NULL, '/ReportViewer/HolidayInfo.ctrl?', '', NULL), (10057, 0, '', '', '', true, 0, NULL, '', '', NULL), (10058, 0, 'DictIndex', '数据字典管理', '', true, 0, NULL, '/ReportViewer/DictIndex.ctrl', '', NULL), (10059, 0, 'GsReportConfigMonth', '国寿报表管理-月报', '', true, 0, NULL, '/ReportViewer/GsReportConfigMonth.ctrl', '', NULL), (10060, 0, 'FtpPathManage', 'FTP路径管理', '', true, 0, NULL, '/ReportViewer/FtpPathManage.ctrl', '', NULL), (10061, 0, 'CumulativeRate', '累计净值增长率设置', '', true, 0, NULL, '/ReportViewer/CumulativeRate.ctrl', '', NULL), (10062, 0, 'CircMonthReportConfiger', '保监会报表管理-月报', '', true, 0, NULL, '/ReportViewer/CircMonthReportConfiger.ctrl', '', NULL), (10063, 0, 'OrgInfo', '机构信息管理', '', true, 0, NULL, '/ReportViewer/OrgInfo.ctrl', '', NULL), (10064, 0, 'Invtmanager', '投资经理信息管理', '', true, 0, NULL, '/ReportViewer/Invtmanager.ctrl', '', NULL), (10065, 0, 'ReportExportSetting', '报表导出设置', '', true, 0, NULL, '/ReportViewer/ReportExportSetting.ctrl', '', NULL), (10066, 0, 'RoleUser', '信息披露权限设置', '', true, 0, NULL, '/ReportViewer/roleAuthority.ctrl', '', NULL), (10067, 0, 'DailyReport', '常用报表', '', true, 0, NULL, '/ReportViewer/DailyReport.ctrl', '', NULL), (10068, 0, 'ElementData', '公共元素信息管理', '', true, 0, NULL, '/ReportViewer/ElementData.ctrl', '', NULL), (10069, 0, 'PortCls', '分级基金信息', '', true, 0, NULL, '/ReportViewer/PortClsInfo.ctrl?', '', NULL), (10070, 0, 'Certificate', '证书信息管理', '', true, 0, NULL, '/ReportViewer/certificate.ctrl', '', NULL), (10071, 0, 'GsReportConfig', '国寿报表管理-日报', '', true, 0, NULL, '/ReportViewer/GsReportConfig.ctrl', '', NULL), (10072, 0, 'ExtDataImport', '外部数据导入', '', true, 0, NULL, '/ReportViewer/ExtDataImport.ctrl', '', NULL), (10073, 0, 'ParamSet', '基金基本信息', '', true, 0, NULL, '/ReportViewer/PortBaseInfo.ctrl?', '', NULL), (10074, 0, 'TemplateManager', '模版管理', '', true, 0, NULL, '/ReportViewer/TemplateManager.ctrl', '', NULL), (10075, 0, 'ReportConfig', '信息披露管理', '', true, 0, NULL, '/ReportViewer/ReportConfig.ctrl?', '', NULL), (10076, 0, 'DayReportConfig', '日报披露管理', '', true, 0, NULL, '/ReportViewer/DayReportConfig.ctrl?', '', NULL), (10077, 0, 'loadData_page', '数据抽取', '', true, 0, NULL, '/ams-bbzx/loadDataController.ctrl?', '', NULL), (10078, 0, 'PortWeekEnd_page', '组合样本周信息管理', '', true, 0, NULL, '/ams-bbzx/portWeekEnd.ctrl?', '', NULL), (10079, 0, 'upload_page', '文件上传', '', true, 0, NULL, '/ams-bbzx/upload.ctrl?', '', NULL), (10080, 0, 'ngzqngcw000025_page', '主从基金固定费用报', '', true, 0, NULL, '/ams-bbzx//ngzqngcw000025Controller.ctrl?', '', NULL), (10081, 0, 'exportRegReport_page', '监管报表导出', '', true, 0, NULL, '/ams-bbzx/exportRegReport.ctrl?', '', NULL), (10082, 0, 'DatAssType_page', '资管云费用设置', '', true, 0, NULL, '/ams-bbzx/DatAssType.ctrl?', '', NULL), (10083, 0, 'BiPortParam_page', '日常报表组合参数维护', '', true, 0, NULL, '/ams-bbzx/BiPortParam.ctrl?', '', NULL), (10084, 0, 'bbzx_productinfor', '产品信息维护', '', true, 0, NULL, '/ams-bbzx/productinfor.ctrl?', '', NULL), (10085, 0, 'Jjshfe_page', '日常报表基金到期赎回份额', '', true, 0, NULL, '/ams-bbzx/Jjshfe.ctrl?', '', NULL), (10086, 0, 'ssgsxx', '上市公司信息', '', true, 0, NULL, '/ams-bbzx/ssgsxxController.ctrl?', '', NULL), (10087, 0, 'bbzx_portBaseInfo', '参数配置', '', true, 0, NULL, '/ams-bbzx/portBaseInfo.ctrl?', '', NULL), (10088, 0, 'Gljzzs', '关联基准指数', '', true, 0, NULL, '/ams-bbzx/gljzzsController.ctrl?', '', NULL), (10089, 0, 'bbzx_monthDataMaintain', '资信数据维护', '', true, 0, NULL, '/ams-bbzx/vhCreditInfo.ctrl?', '', NULL), (10090, 0, 'tctaskinfo_page', '任务调度管理', '', true, 0, NULL, '/ams-bbzx/tctaskinfo.ctrl?', '', NULL), (10091, 0, 'BiDictionary_page', '日常报表数据字典维护', '', true, 0, NULL, '/ams-bbzx/BiDictionary.ctrl?', '', NULL), (10092, 0, 'taskCorelation_page', '任务关联设置', '', true, 0, NULL, '/ams-bbzx/taskCorelation.ctrl?', '', NULL), (10093, 0, 'RG_DataMaint', '日常报表认购数据维护', '', true, 0, NULL, '/ams-bbzx/RG_DataMaintController.ctrl?', '', NULL), (10094, 0, 'FengGeInfo_page', '证券风格信息', '', true, 0, NULL, '/ams-bbzx/fengGeInfo.ctrl?', '', NULL), (10095, 0, 'bbzx_vhTaData', 'TA数据维护', '', true, 0, NULL, '/ams-bbzx/vhTaData.ctrl?', '', NULL), (10096, 0, 'Gbbkxx', '股本板块信息', '', true, 0, NULL, '/ams-bbzx/gbbkxxController.ctrl?', '', NULL), (10097, 0, 'logInfo_page', '操作日志查询', '', true, 0, NULL, '/ams-bbzx/logInfo.ctrl?', '', NULL), (10098, 0, 'Jtfl_page', '日常报表计提费率设置', '', true, 0, NULL, '/ams-bbzx/Jtfl.ctrl?', '', NULL), (10099, 0, 'innerDictionary', '数据字典信息维护', '', true, 0, NULL, '/ams-bbzx/innerDictionaryController.ctrl?', '', NULL), (11000, 0, 'Tzbd_page', '日常报表投资标的维护', '', true, 0, NULL, '/ams-bbzx/Tzbd.ctrl?', '', NULL), (11001, 0, 'bbzx_portReferenceInfo', '组合业绩基准信息', '', true, 0, NULL, '/ams-bbzx/portReferenceInfo.ctrl?', '', NULL), (11002, 0, 'bbzx_vhOtherData', '其他数据维护', '', true, 0, NULL, '/ams-bbzx/vhOtherData.ctrl?', '', NULL), (11003, 0, 'groupSortController', '组合分类信息维护', '', true, 0, NULL, '/ams-bbzx/groupSortController.ctrl?', '', NULL), (11004, 0, 'tcportparam_page', '组合参数配置', '', true, 0, NULL, '/ams-bbzx/tcportparam.ctrl?', '', NULL), (11005, 0, 'targetStandard_page', '业绩基准信息维护', '', true, 0, NULL, '/ams-bbzx/targetStandard.ctrl?', '', NULL), (11006, 0, 'reportSet_page', '指标信息查询', '', true, 0, NULL, '/ams-bbzx/reportSet.ctrl?', '', NULL), (11007, 0, 'Zffy_page', '日常报表支付费用维护', '', true, 0, NULL, '/ams-bbzx/Zffy.ctrl?', '', NULL), (11008, 0, 'cfxx', '成份信息', '', true, 0, NULL, '/ams-bbzx/cfxxController.ctrl?', '', NULL), (11009, 0, 'portTreeConf_page', '报表树形控件配置', '', true, 0, NULL, '/ams-bbzx/portTreeConf.ctrl?', '', NULL), (11010, 0, 'portTreeTypeController', '组合树配置', '', true, 0, NULL, '/ams-bbzx/portTreeTypeController.ctrl?', '', NULL), (11011, 0, 'bbzx_Currency', '各种货币对美元折算率', '', true, 0, NULL, '/ams-bbzx/Currency.ctrl?', '', NULL), (11012, 0, 'Xtcssz_page', '日常报表信托参数维护', '', true, 0, NULL, '/ams-bbzx/Xtcssz.ctrl?', '', NULL), (11013, 0, 'iniport_page', '初始化组合信息', '', true, 0, NULL, '/ams-bbzx/iniport.ctrl?', '', NULL), (11014, 0, 'taskinfo_page', '任务信息', '', true, 0, NULL, '/ams-bbzx/taskController.ctrl?', '', NULL), (11015, 0, 'Xtyj_page', '日常报表信托预警设置', '', true, 0, NULL, '/ams-bbzx/Xtyj.ctrl?', '', NULL); INSERT INTO `ect_appl_func` (`FID`, `FAPPL_ID`, `FFUNC_ID`, `FCODE`, `FNAME`, `FTYPE`, `FENABLE`, `FORDER_NO`, `FPARENT_ID`, `FLEFT_ID`, `FRIGHT_ID`, `FLEVEL`, `FSUBNUM`, `FICON`, `FURI`, `FTARGET`, `FACTION`, `FCREATOR_ID`, `FCREATE_TIME`, `FLAST_EDITOR_ID`, `FLAST_EDIT_TIME`, `FCHECK_STATE`, `FCHECKER_ID`, `FCHECK_TIME`, `FDELETE_STATE`, `FDELETOR_ID`, `FDELETE_TIME`, `FREMARK`) VALUES (10000, 10000, 10000, 'gkzx', '管控中心', '', true, 0, 0, 1, 45, 1, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10001, 10000, 10000, '', '系统管理', '', true, 0, 0, 2, 7, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10002, 10000, 10000, '', '论坛交流', '', true, 0, 0, 3, 4, 3, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10003, 10000, 10000, '', '树结构', '', true, 0, 0, 5, 6, 3, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10004, 10000, 10000, '', '主子表', '', true, 0, 0, 8, 13, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10005, 10000, 10000, '', '单表', '', true, 0, 0, 9, 12, 3, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10006, 10000, 10000, '', '组件演示', '', true, 0, 0, 10, 11, 4, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10007, 10000, 10000, '', '修改密码', '', true, 0, 0, 14, 15, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10008, 10000, 10000, '', '个人信息', '', true, 0, 0, 16, 17, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10009, 10000, 10000, '', '用户管理', '', true, 0, 0, 18, 29, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10010, 10000, 10000, '', '角色管理', '', true, 0, 0, 19, 28, 3, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10011, 10000, 10000, '', '机构管理', '', true, 0, 0, 20, 27, 4, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10012, 10000, 10000, '', '菜单管理', '', true, 0, 0, 21, 26, 5, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10013, 10000, 10000, '', '日志查询', '', true, 0, 0, 22, 25, 6, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10014, 10000, 10000, '', '字典管理', '', true, 0, 0, 23, 24, 7, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10016, 10000, 10000, '', '审批测试', '', true, 0, 0, 30, 31, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10017, 10000, 10000, '', '我的通告', '', true, 0, 0, 32, 42, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10018, 10000, 10000, '', '通告管理', '', true, 0, 0, 34, 41, 3, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10019, 10000, 10000, '', '请假办理', '', true, 0, 0, 35, 40, 4, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10020, 10000, 10000, '', '代码模板管理', '', true, 0, 0, 36, 39, 5, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10021, 10000, 10000, '', '业务表配置', '', true, 0, 0, 37, 38, 6, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10022, 10000, 10000, '', '生成方案配置', '', true, 0, 0, 43, 44, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10023, 10000, 10000, '', '信息量统计', '', true, 0, 0, 46, 49, 1, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (10024, 10000, 10000, '', '切换站点', '', true, 0, 0, 47, 48, 2, NULL, NULL, '', '', '', 0, '0000-0-0 00:00:00', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); -- ---------------------------- -- 恢复外键约束检查 -- ---------------------------- SET FOREIGN_KEY_CHECKS=1;
<filename>resources/sql/autopatches/20190116.phortune.01.billing.sql ALTER TABLE {$NAMESPACE}_phortune.phortune_account ADD billingName VARCHAR(255) NOT NULL COLLATE {$COLLATE_TEXT}, ADD billingAddress LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT};
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `kwc_newsletter_queue_log` ( `id` int(11) NOT NULL AUTO_INCREMENT, `newsletter_id` smallint(6) NOT NULL, `recipient_model` varchar(255) NOT NULL, `recipient_id` varchar(255) NOT NULL, `searchtext` varchar(255) NOT NULL, `status` enum('sent','failed','usernotfound') NOT NULL DEFAULT 'sent', `send_date` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
<filename>software/cabio-database/scripts/sql_loader/no_longer_used/indexes/zstg_rna_probesets_tmp.lower.sql /*L Copyright SAIC Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/cabio/LICENSE.txt for details. L*/ create index ZSTG_RNA_TMP_ANNOTATION_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ANNOTATION_DESCRIPTION)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_QTL_lwr on ZSTG_RNA_PROBESETS_TMP(lower(QTL)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_SGD_ACCESS_lwr on ZSTG_RNA_PROBESETS_TMP(lower(SGD_ACCESSION_NUMBER)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_RGD_NAME_lwr on ZSTG_RNA_PROBESETS_TMP(lower(RGD_NAME)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_MGI_NAME_lwr on ZSTG_RNA_PROBESETS_TMP(lower(MGI_NAME)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_WORMBASE_lwr on ZSTG_RNA_PROBESETS_TMP(lower(WORMBASE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_AGI_lwr on ZSTG_RNA_PROBESETS_TMP(lower(AGI)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_FLYBASE_lwr on ZSTG_RNA_PROBESETS_TMP(lower(FLYBASE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_REFSEQ_TRA_lwr on ZSTG_RNA_PROBESETS_TMP(lower(REFSEQ_TRANSCRIPT_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_REFSEQ_PRO_lwr on ZSTG_RNA_PROBESETS_TMP(lower(REFSEQ_PROTEIN_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_OMIM_lwr on ZSTG_RNA_PROBESETS_TMP(lower(OMIM)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_EC_lwr on ZSTG_RNA_PROBESETS_TMP(lower(EC)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_ENTREZ_GEN_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ENTREZ_GENE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_ENSEMBL_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ENSEMBL)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_UNIGENE_CL_lwr on ZSTG_RNA_PROBESETS_TMP(lower(UNIGENE_CLUSTER_TYPE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_CHROMOSOMA_lwr on ZSTG_RNA_PROBESETS_TMP(lower(CHROMOSOMAL_LOCATION)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_GENE_SYMBO_lwr on ZSTG_RNA_PROBESETS_TMP(lower(GENE_SYMBOL)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_ALIGNMENTS_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ALIGNMENTS)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_GENOME_VER_lwr on ZSTG_RNA_PROBESETS_TMP(lower(GENOME_VERSION)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_UNIGENE_ID_lwr on ZSTG_RNA_PROBESETS_TMP(lower(UNIGENE_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_ARCHIVAL_U_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ARCHIVAL_UNIGENE_CLUSTER)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_REPRESENTA_lwr on ZSTG_RNA_PROBESETS_TMP(lower(REPRESENTATIVE_PUBLIC_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_TARGET_DES_lwr on ZSTG_RNA_PROBESETS_TMP(lower(TARGET_DESCRIPTION)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_TRANSCRIPT_lwr on ZSTG_RNA_PROBESETS_TMP(lower(TRANSCRIPT_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_SEQUENCE_S_lwr on ZSTG_RNA_PROBESETS_TMP(lower(SEQUENCE_SOURCE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_SEQUENCE_T_lwr on ZSTG_RNA_PROBESETS_TMP(lower(SEQUENCE_TYPE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_ANNOTATION_lwr on ZSTG_RNA_PROBESETS_TMP(lower(ANNOTATION_DATE)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_SPECIES_SC_lwr on ZSTG_RNA_PROBESETS_TMP(lower(SPECIES_SCIENTIFIC_NAME)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_GENECHIP_A_lwr on ZSTG_RNA_PROBESETS_TMP(lower(GENECHIP_ARRAY)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; create index ZSTG_RNA_TMP_PROBE_SET__lwr on ZSTG_RNA_PROBESETS_TMP(lower(PROBE_SET_ID)) PARALLEL NOLOGGING tablespace CABIO_MAP_FUT; --EXIT;
--TEST: error and special cases create table lead_err( col1 smallint auto_increment primary key, col2 bigint not null, col3 varchar default 'abc', col4 timestamp default CURRENT_TIMESTAMP, col5 bit(20) ); insert into lead_err(col2, col3, col4, col5) values(500, 'cubrid', '1990-10-10 11:12:13', B'0001'); insert into lead_err(col2, col3, col4, col5) values(500, 'cubrid', '1990-11-10 11:12:13', B'0010'); insert into lead_err(col2, col3, col4, col5) values(500, 'mysql', '1990-10-11 11:12:13', B'0100'); insert into lead_err(col2, col3, col4, col5) values(500, 'cubrid', '1990-10-10 11:12:13', B'1000'); insert into lead_err(col2, col3, col4, col5) values(500, 'cubrid', '1991-10-10 11:12:13', B'0011'); insert into lead_err(col2, col3, col4, col5) values(501, 'oracle', '1990-10-10 11:12:13', B'0101'); insert into lead_err(col2, col3, col4, col5) values(501, 'cubrid', '1992-10-10 11:12:13', B'1001'); insert into lead_err(col2, col3, col4, col5) values(501, 'oracle', '1990-11-10 11:12:13', B'0110'); insert into lead_err(col2, col3, col4, col5) values(501, 'mysql', '1990-10-10 11:12:13', B'1010'); insert into lead_err(col2, col3, col4, col5) values(501, 'cubrid', '1990-10-10 11:12:13', B'1100'); insert into lead_err(col2, col3, col4, col5) values(501, 'mysql', '1991-11-10 11:12:13', B'0111'); insert into lead_err(col2, col3, col4, col5) values(502, 'cubrid', '1990-10-10 11:12:13', B'1110'); insert into lead_err(col2, col3, col4, col5) values(502, 'mysql', '1990-10-10 11:12:13', B'1111'); insert into lead_err(col2, col3, col4, col5) values(502, 'mysql', '1992-10-10 11:12:13', B'1010'); insert into lead_err(col2, col3, col4, col5) values(503, 'mysql', '1992-10-10 11:12:13', B'0101'); insert into lead_err(col2, col3, col4, col5) values(503, 'cubrid', '1990-10-10 11:12:13', B'1110'); insert into lead_err(col2, col3, col4, col5) values(503, 'cubrid', '1990-10-10 11:12:13', B'0111'); insert into lead_err(col2, col3, col4, col5) values(503, 'oracle', '1993-11-10 11:12:13', B'1101'); insert into lead_err(col2, col3, col4, col5) values(503, 'oracle', '1993-10-10 11:12:13', B'0011'); insert into lead_err(col2, col3, col4, col5) values(503, 'cubrid', '1993-11-10 11:12:13', B'0001'); insert into lead_err(col2, col3, col4, col5) values(503, 'cubrid', '1992-10-10 11:12:13', B'1100'); insert into lead_err(col2, col3, col4, col5) values(504, 'mysql', '1994-10-10 11:12:13', B'1011'); insert into lead_err(col2, col3, col4, col5) values(504, 'mysql', '1990-10-10 11:12:13', null); insert into lead_err(col2, col3, col4, col5) values(504, 'cubrid', '1995-11-10 11:12:13', B'0110'); insert into lead_err(col2, col3, col4, col5) values(505, 'cubrid', '1991-10-10 11:12:13', ''); insert into lead_err(col2, col3, col4, col5) values(505, 'cubrid', '1996-10-10 11:12:13', B'1111'); insert into lead_err(col2, col3, col4, col5) values(505, 'mysql', '1990-10-10 11:12:13', B'0100'); insert into lead_err(col2, col3, col4, col5) values(505, 'cubrid', '1995-10-10 11:12:13', null); insert into lead_err(col2, col3, col4, col5) values(505, 'cubrid', '1990-10-10 11:12:13', B'1111'); --TEST: pass unmatched data type to 'offset' param select col1, col2, col3, col4, lead(col1, '4') over(order by col1) next_v from lead_err order by 1; select col1, col2, col3, col4, lead(col2, 'aaa') over(order by 1) next_v from lead_err order by 1; select col1, col2, col3, col4, lead(col3, 4.6) over(order by 1) next_v from lead_err order by 1; select col1, col2, col3, col4, lead(col4, '2012-12-12') over(order by 1) next_v from lead_err order by 1; --TEST: pass constant value to the 'expr' select col1, lead(4.4) over(order by col1) next_v from lead_err; select col1, col2, lead('abcd') over(partition by col1 order by col2) next_v from lead_err order by 1, 2; select col3, lead(date'1999-11-11') over(order by col3) next_v from lead_err order by 1, 2; --TEST: pass unmatched type to the 'default' param select col1, lead(col2, 2, '999') over(order by 1) next_v from lead_err order by 1; select col1, lead(col5, 3, 123) over(order by 1) next_v from lead_err order by 1; select col1, lead(col3, 3, 123) over(order by 1) next_v from lead_err order by 1; select col1, lead(col4, 3, 'abc') over(order by 1) next_v from lead_err order by 1; --TEST: large numeric value to expr select col2, lead(col2, 99999999999999999999) over(order by col2) from lead_err order by 1, 2; select col2, lead(col2, 9999999999999999, -111) over(order by col2) from lead_err order by 1, 2; --TEST: marginal numeric values to expr select col1, lead(col3, 32767) over(order by col1) from lead_err order by 1, 2; select col1, lead(col4, 2147483647, '2000-10-10') over(order by col1) from lead_err order by 1, 2; select col1, lead(col2, 9223372036854775807, -1) over(order by col1) from lead_err order by 1, 2; select col1, lead(col5, 1.7976931348623157E+308) over(order by col1) from lead_err order by 1, 2; --TEST: out-of-range value select col1, lead(col1, 1.7976931348623157E+309, 100) over(order by col1) from lead_err order by 1, 2; select col1, lead(col2, 2147483649, 10.5) over(order by col1) from lead_err order by 1, 2; select col1, lead(col3, -1, 'aaa') over(order by col1) from lead_err order by 1, 2; --TEST: null value select col1, lead(null) over(order by col1) from lead_err order by 1, 2; select col1, lead(col2, null) over(order by col1) from lead_err order by 1, 2; select col1, lead(col5, 3, null) over(order by col1) from lead_err order by 1, 2; select col1, lead(null, null, null) over(order by col1) from lead_err order by 1, 2; drop table lead_err;
ALTER TABLE guild_configs ADD COLUMN profile_size INT2; ALTER TABLE guild_configs ADD COLUMN embeds_maximized BOOL; ALTER TABLE guild_configs ADD COLUMN show_retries BOOL;
CREATE PROCEDURE usp_SwitchRoom(@TripId INT, @TargetRoomId INT) AS BEGIN DECLARE @TargetRoomHotel INT = (SELECT HotelId FROM Rooms WHERE Id = @TargetRoomId) DECLARE @TripHotel INT = (SELECT R.HotelId FROM Trips t JOIN Rooms r ON t.RoomId = r.Id WHERE t.Id = @TripId) IF(@TripHotel <> @TargetRoomHotel) THROW 50001, 'Target room is in another hotel!', 1 DECLARE @TargetRoomBeds INT = (SELECT Beds FROM Rooms WHERE Id = @TargetRoomId) DECLARE @NumberOfAccounts INT = (SELECT COUNT(AccountId) FROM AccountsTrips WHERE TripId = @TripId) IF(@NumberOfAccounts > @TargetRoomBeds) THROW 50002, 'Not enough beds in target room!', 1 --DECLARE @TripRoomId INT = (SELECT r.Id FROM Rooms r -- JOIN Trips t ON t.RoomId = r.Id -- WHERE t.Id = @TripId) UPDATE Trips SET RoomId = @TargetRoomId WHERE Id = @TripId END GO EXEC usp_SwitchRoom 10, 8
--------------------------------------------------------------------- -- ALTER --1. ADD new column --2. Modify Data type of an existing column --3. DROP an existing column --------------------------------------------------------------------- USE TSQLV4 GO SELECT * FROM Test.Employees ALTER TABLE Test.Employees ADD Address VARCHAR(50) ALTER TABLE Test.Employees ALTER COLUMN Address VARCHAR(80) ALTER TABLE Test.Employees DROP COLUMN Address
<gh_stars>0 alter table "public"."frontend_store_errors" rename to "frontend_store_error";
INSERT INTO `Prix_lieu_dit`(`code_postal`, `prix_min_m2`) VALUES ('75000',9960), ('13000',2156), ('69000',4567), ('92140',5787), ('94120',3582), ('92190',3392), ('31000',2322), ('49000',2384), ('33000',4029), ('44000',2616), ('57000',1337), ('59000',2950), ('59300',1453), ('66000',923), ('77000',1597), ('75016',8860), ('75019',6357), ('42000',915);
<reponame>thomthom/play-play<gh_stars>0 drop table if exists matches; create table matches ( id INTEGER PRIMARY KEY AUTOINCREMENT, game_title VARCHAR(255) NOT NULL, game_url VARCHAR(255), start_time TIMESTAMP NOT NULL, play_time_min INTEGER NOT NULL, play_time_max INTEGER, players_registered VARCHAR(512) NOT NULL DEFAULT '', players_min INTEGER NOT NULL, players_max INTEGER NOT NULL, winner VARCHAR(64) ); drop table if exists games; create table games ( id INTEGER PRIMARY KEY AUTOINCREMENT, game_title VARCHAR(255) NOT NULL UNIQUE, game_url VARCHAR(255), play_time_min INTEGER NOT NULL, play_time_max INTEGER, players_min INTEGER NOT NULL, players_max INTEGER NOT NULL );
<gh_stars>0 #Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. #Your result cannot contain duplicates. #Input Format #The STATION table is described as follows: #Station (table) #Field Type #ID Number #City VARCHAR2(21) #State VARCHAR2(2) #LAT_N NUMBER #LONG_W NUMBER #where LAT_N is the northern latitude and LONG_W is the western longitude. SELECT DISTINCT(CITY) FROM STATION WHERE REGEXP_LIKE (UPPER(CITY), '^[AEIOU]') AND REGEXP_LIKE (UPPER(CITY), '[AEIOU]$');
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 09, 2019 at 03:15 PM -- Server version: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `onitshamarket` -- -- -------------------------------------------------------- -- -- Table structure for table `sliders` -- CREATE TABLE `sliders` ( `id` int(11) NOT NULL, `image` varchar(255) NOT NULL, `img_link` varchar(255) NOT NULL, `status` varchar(50) NOT NULL DEFAULT 'inactive' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `sliders` -- INSERT INTO `sliders` (`id`, `image`, `img_link`, `status`) VALUES (2, '29d4e20322d28cc7014b7551c95b93a8.png', 'https://www.jumia.com.ng/priddi-international-pack-of-5-round-neck-plain-t-shirts-multicolour-1-unit-per-customer-9515603.html', 'active'), (3, '29d4e20322d28cc7014b7551c95b93a8.png', 'https://www.jumia.com.ng/priddi-international-pack-of-5-round-neck-plain-t-shirts-multicolour-1-unit-per-customer-9515603.html', 'active'); -- -- Indexes for dumped tables -- -- -- Indexes for table `sliders` -- ALTER TABLE `sliders` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `sliders` -- ALTER TABLE `sliders` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/* Formatted on 12-19-2018 4:33:43 PM (QP5 v5.126.903.23003) */ CREATE OR REPLACE FUNCTION RPT.GETRPTLOGMSGID (PROCSID NUMBER, PROCSTYP VARCHAR2) RETURN NUMBER AS L_RESULT NUMBER; BEGIN SELECT MSG_ID INTO L_RESULT FROM RPT.RPT_RUN_MSGS WHERE PROCESS_TYP = PROCSTYP AND PROCESS_ID = PROCSID; RETURN COALESCE (L_RESULT, -1); EXCEPTION WHEN OTHERS THEN RETURN -1; END; /
-- file:limit.sql ln:12 expect:true SELECT ''::text AS two, unique1, unique2, stringu1 FROM onek WHERE unique1 > 60 AND unique1 < 63 ORDER BY unique1 LIMIT 5
<filename>src/test/resources/sql/create_rule/88896ad9.sql -- file:rules.sql ln:1110 expect:true CREATE RULE hat_upsert AS ON INSERT TO hats DO INSTEAD INSERT INTO hat_data VALUES ( NEW.hat_name, NEW.hat_color) ON CONFLICT (hat_name) DO UPDATE SET hat_name = hat_data.hat_name, hat_color = excluded.hat_color WHERE excluded.hat_color <> 'forbidden' AND hat_data.* != excluded.* RETURNING *
CREATE SCHEMA [Purchasing] GO
<filename>fineract-provider/src/main/resources/sql/migrations/core_db/V371__alter-table-m-savings-product.sql -- Author : afad ALTER TABLE `m_savings_product` ADD `is_main_product` BOOLEAN NULL DEFAULT FALSE
<reponame>LifeWatchINBO/open-data-publication<gh_stars>0 /* Tables and fields we want to include: (datecreated, datelastchange and version are not included) allowedusers n calculatedmeasurement y - id n - latitude y - longitude y - km - km2 condition y - id - starttime - endtime - transectwidth - countmethod - speciescounted - visibility - waveheight - windforce - glare - remarks - surveyevent n controlledvocabulary y - id - type n - code - name - esascode - esasdescription controlledvocabulary_warning n databasechangelog n databasechangeloglock n exportdownload n exportposkey n? exportstatus n measurement measurementgeographicalinformation measurementsummary n measurementuploads n measurementvalidationerror n migrationstatus n observation y - id y - wp n - taxon y - age y? - plumage y? - distance - direction - association - remarks - turbineheight - transect - datelastchange y - surveyevent y - starttime y - endtime y - group_field - number - calculatedmeasurement y - behaviour y - flagged ? observation_warning positionalkey surveyevent y - survey - tripid - dateofsurvey y - ship - observer1 y - observer2 y surveyevent_warning taxon y - id n - inbocode n - scientificname y - dutchvernacularname n - englishvernacularname y - esascode - euringcode y - taxonrank y - taxonversionkey - remarks taxon_warning n userconnection n users n */ SELECT -- record obs.id AS occurrenceID, 'Event' AS type, to_char(obs.datelastchange at time zone 'UTC','YYYY-MM-DD"T"HH24:MI:SS"Z"') AS modified, -- TODO: can we assume UTC? 'en' AS language, 'http://creativecommons.org/publicdomain/zero/1.0/' AS license, 'INBO' AS rightsholder, 'http://www.inbo.be/en/norms-for-data-use' AS accessRights, 'DOI to be assigned' AS datasetID, -- TODO: update 'INBO' AS institutionCode, 'SAS - Seabirds at sea monitoring in the Belgian part of the North Sea' AS datasetName, -- TODO: verify 'INBO' AS ownerInstitutionCode, 'HumanObservation' AS basisOfRecord, 'see metadata' AS informationWitheld, -- TODO: verify -- occurrence -- occurrenceRemarks, -- CASE -- WHEN observer2.id IS NOT NULL THEN observer1.name || ', ' || observer2.name -- ELSE observer1.name -- END AS recordedBy, -- TODO: uncomment obs.number AS individualCount, -- organismQuantity, -- organismQuantityType, -- sex, -- lifeStage, -- reproductiveCondition, behaviour.name AS behavior, -- TODO: verify age.name AS age, -- TODO: not DwC plumage.name AS plumage, -- TODO: not DwC -- event -- eventID, -- samplingProtocol, -- sampleSizeValue, -- sampleSizeUnit, -- samplingEffort, /* survey.dateofsurvey, obs.starttime, obs.endtime are all recorded in DB without timezone, but: Times are recorded by users in UTC/GMT and surveys are limited to days. There is no risk of spilling over to next/previous day as max difference is GMT+2 and no surveys are around midnight. We can therefore assume all dates/times to be in UTC/GMT. The app will set obs.endtime = obs.starttime if no obs.endtime is recorded (= for most historical surveyevents) In DarwinCore, we will only use a time range (with /) if obs.endtime is different from obs.startdate */ CASE WHEN obs.endtime != obs.starttime AND obs.endtime IS NOT NULL THEN -- A time range to_char(survey.dateofsurvey at time zone 'UTC', 'YYYY-MM-DD"T"') || to_char(obs.starttime at time zone 'UTC', 'HH24:MI"Z"') || '/' || to_char(survey.dateofsurvey at time zone 'UTC', 'YYYY-MM-DD"T"') || to_char(obs.endtime at time zone 'UTC', 'HH24:MI"Z"') ELSE to_char(survey.dateofsurvey at time zone 'UTC', 'YYYY-MM-DD"T"') || to_char(obs.starttime at time zone 'UTC', 'HH24:MI"Z"') -- Single time END AS eventDate, -- eventRemarks -- location loc.id AS locationID, -- continent, -- waterbody, -- countryCode, -- minimumElevationInMeters -- minimumDistanceAboveSurfaceInMeters, to_char(loc.latitude, '99.99999') AS decimalLatitude, to_char(loc.longitude, '999.99999') AS decimalLongitude, 'WGS84' AS geodeticDatum, -- TODO: verify -- coordinateUncertaintyInMeters -- georeferencedDate, -- georeferenceProtocol, -- georeferenceSources, -- georeferenceVerificationStatus, -- identification -- CASE -- WHEN observer2.id IS NOT NULL THEN observer1.name || ', ' || observer2.name -- ELSE observer1.name -- END AS identifiedBy, -- TODO: Uncomment -- taxon CASE WHEN taxon.euringcode != '' THEN 'euring:' || taxon.euringcode -- Works for '' and NULL. Resulting value is cf. watervogels ELSE '' END AS taxonID, taxon.scientificname AS scientificName, 'Animalia' AS kingdom, 'Chordata' AS phylum, -- SAS contains birds, cetaceans and Basking shark -- scientificNameAuthorship, -- This information is not available in SAS taxon.dutchvernacularname AS vernacularName, -- TODO: decide EN or NL 'ICZN' AS nomenclaturalCode FROM observation AS obs LEFT JOIN taxon ON obs.taxon = taxon.id LEFT JOIN controlledvocabulary AS age ON obs.age = age.id AND age.type = 'age' LEFT JOIN controlledvocabulary AS plumage ON obs.plumage = plumage.id AND plumage.type = 'plumage' LEFT JOIN controlledvocabulary AS behaviour ON obs.behaviour = behaviour.id AND behaviour.type = 'behaviour' LEFT JOIN calculatedmeasurement AS loc ON obs.calculatedmeasurement = loc.id LEFT JOIN surveyevent AS survey ON obs.surveyevent = survey.id -- via surveyevent LEFT JOIN controlledvocabulary AS observer1 ON survey.observer1 = observer1.id AND observer1.type = 'observer' LEFT JOIN controlledvocabulary AS observer2 ON survey.observer2 = observer2.id AND observer2.type = 'observer' LEFT JOIN condition AS condition ON survey.observer2 = observer2.id AND observer2.type = 'observer' WHERE taxon.id != 'f3310e23-e014-4897-80c4-07fd293525db' -- exclude observations without birds (inbocode: 0) AND taxon.id != 'd818f147-2571-4770-aed8-f5338e303fb5' -- exclude boat observations (inbocode: 9999) LIMIT 10
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table area ( id integer auto_increment not null, code integer, name varchar(255), city_code integer, constraint pk_area primary key (id) ); create table city ( id integer auto_increment not null, province_code integer, code integer, name varchar(255), constraint pk_city primary key (id) ); create table client ( id integer auto_increment not null, name varchar(255), mobile varchar(255), type integer, status integer, creator integer, modifier integer, updated_date datetime(6) not null, created_date datetime(6) not null, constraint pk_client primary key (id) ); create table contact ( id integer auto_increment not null, name varchar(50) default '', mobile varchar(50) default '', type int(4) default 1, updated_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, created_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, constraint pk_contact primary key (id) ); create table credential ( id integer auto_increment not null, house_id integer, business_licence int(2) default 0, whole_business int(2) default 0, food_and_beverage_business_license int(2) default 0, fire_safety_permission int(2) default 0, invoice int(2) default 0, updated_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, created_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, constraint pk_credential primary key (id) ); create table district ( id integer auto_increment not null, code integer, name varchar(255), area_code integer, constraint pk_district primary key (id) ); create table facility ( id integer auto_increment not null, house_id integer, shop_sign_size_one bigint, shop_sign_size_two bigint, power integer, capacitance integer, capacity_increase integer, up_pipe integer, down_pipe integer, down_pipe_diameter integer, gas integer, gas_cylinders integer, fire integer, duct integer, duct_rate bigint, blow_off integer, grease_trap integer, oil_fume integer, self_car_port_size integer, around_car_port_size integer, out_ward integer, status integer, updated_date datetime(6) not null, created_date datetime(6) not null, constraint pk_facility primary key (id) ); create table house ( id integer auto_increment not null, code varchar(255), rent_business_type int(4) default 1, rent_status int(4) default 1, province_code int(10) default 110000, city_code int(10) default 110100, area_code int(10) default 110101, district_code int(4) default 0, address varchar(500) default '', longitude varchar(500) default '', latitude varchar(500) default '', map_url varchar(500) default '', map_url_type varchar(500) default '', whole_map_url varchar(500) default '', hot_map_url varchar(500) default '', operate_status int(4) default 0, business_name varchar(500) default '', business_status varchar(500) default '', house_type int(4) default 0, owner_type int(4) default 0, owner varchar(40) default '', property_right_type int(4) default 1, floor varchar(100) default '1', max_floor varchar(255), areas bigint(20) default 0, build_areas bigint(20) default 0, use_areas bigint(20) default 0, effien bigint, show_length varchar(20) default '0', height bigint(20) default 0, rent_type int(4) default 0, shade bigint(20) default 0, decoration int(4) default 0, shop_sign_size_one bigint, shop_sign_size_two bigint, power int(4) default 0, capacitance varchar(20) default '0', capacity_increase int(4) default 0, up_pipe int(4) default 0, down_pipe int(4) default 0, down_pipe_diameter varchar(20) default '0', gas int(4) default 0, gas_cylinders int(4) default 0, fire int(4) default 0, duct int(4) default 0, duct_rate int(4) default 0, blow_off int(4) default 0, grease_trap int(4) default 0, oil_fume int(4) default 0, self_car_port_size int(4) default 0, around_car_port_size int(4) default 0, out_ward int(4) default 0, business varchar(255), chummage_daily bigint(20) default 0, chummage_month bigint(20) default 0, chummage_year bigint(20) default 0, chummage_increase int(4) default 0, chummage_increase_rule varchar(20) default '', transfer_cost bigint(20) default 0, pledge_month varchar(20) default '', pay_month varchar(20) default '', property_fee bigint(20) default 0, water_fee bigint(20) default 0, gas_fee bigint(20) default 0, elas_fee bigint(20) default 0, shop_sign_rate bigint, next_pay_rent_date datetime(6), max_rent_year varchar(50) default '', repetition int(4) default 0, marchat_level int(4) default 10, house_level int(4) default 10, good varchar(255), bad varchar(255), proposed varchar(255), per_person_min bigint(20) default 0, per_person_max bigint(20) default 0, describtion varchar(255), house_source integer, source_name varchar(255), status int(4) default 2, contact_id integer, updated_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, created_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, constraint pk_house primary key (id) ); create table picture ( id integer auto_increment not null, house_id integer, url varchar(255), status integer, name integer, md5 varchar(255), size bigint, meta integer, constraint pk_picture primary key (id) ); create table province ( id integer auto_increment not null, code integer, name varchar(255), constraint pk_province primary key (id) ); create table show_record ( id integer auto_increment not null, staff_id integer, house_id integer, content varchar(500), status integer, show_date datetime(6), client_name varchar(255), date datetime(6), updated_date datetime(6) not null, created_date datetime(6) not null, constraint pk_show_record primary key (id) ); create table signs ( id integer auto_increment not null, house_code integer, sign_code integer, sign_name varchar(255), updated_date datetime(6) not null, created_date datetime(6) not null, constraint pk_signs primary key (id) ); create table staff ( id integer auto_increment not null, username varchar(255), password varchar(255), title int(4) default 1, status integer, updated_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, created_date timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP not null, constraint pk_staff primary key (id) ); # --- !Downs drop table if exists area; drop table if exists city; drop table if exists client; drop table if exists contact; drop table if exists credential; drop table if exists district; drop table if exists facility; drop table if exists house; drop table if exists picture; drop table if exists province; drop table if exists show_record; drop table if exists signs; drop table if exists staff;
<reponame>aroseca15/burger_eatathon CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers( id INT NOT NULL auto_increment, name VARCHAR(75) NOT NULL, eaten BOOLEAN DEFAULT false, PRIMARY KEY (id) );
insert into value_set (id, version) values ('Influenza.Test.OID', '1'); insert into value_set_value (valueSetId, code, system) values ('Influenza.Test.OID', '76077-7', 'http://loinc.org');
-- gsutil -m cat gs://ot-snapshots/etl/outputs/21.03.1/literature/vectors/part\* | clickhouse-client -h localhost --query="insert into ot.ml_w2v_log format JSONEachRow " create database if not exists ot; create table if not exists ot.ml_w2v_log ( category String, word String, norm Float64, vector Array(Float64) ) engine = Log;
ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD secretKey VARCHAR(20) NOT NULL COLLATE utf8_bin; ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD verified TINYINT(1) DEFAULT 0; ALTER TABLE {$NAMESPACE}_legalpad.legalpad_documentsignature ADD KEY `secretKey` (secretKey);
DROP TABLE IF EXISTS south_migrationhistory; -- legacy, replaced by django_migrations table DROP FUNCTION IF EXISTS ft_date_insert() CASCADE; DROP FUNCTION IF EXISTS ft_date_update() CASCADE; DROP FUNCTION IF EXISTS ft_uuid_insert() CASCADE;
-- ---------------------------- -- 添加接口记录操作 -- ---------------------------- DROP TABLE IF EXISTS `api_log`; CREATE TABLE `api_log` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `controller` varchar(20) CHARACTER SET utf8 NOT NULL DEFAULT '', `action` varchar(20) NOT NULL DEFAULT '', `params` varchar(255) NOT NULL DEFAULT '', `result` text, `accesstoken` varchar(32) DEFAULT '', `ip` varchar(12) NOT NULL DEFAULT '', `created_at` int(11) unsigned NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=COMPACT COMMENT='接口记录表';
<filename>hasura/migrations/1619819836722_run_sql_migration/up.sql ALTER TABLE "Role" SET SCHEMA "permissions";
USE mydb; ALTER DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; DROP TABLE IF EXISTS `usuarios`; CREATE TABLE `usuarios` ( `id` int not null primary key auto_increment, `nome` varchar(45) NOT NULL, `login` varchar(45) NOT NULL, `senha` char(32) NOT NULL ); INSERT INTO `usuarios` (`nome`, `login`, `senha`) VALUES ("João", "joao", md5(123456)), ("Mario", "mario", md5(123456)); DROP TABLE IF EXISTS `compromissos`; CREATE TABLE `compromissos` ( `id` int not null primary key auto_increment, `titulo` varchar(45) NOT NULL, `tipo` varchar(45) NOT NULL, `data` datetime NOT NULL, `local` varchar(45) NOT NULL, `duracao` decimal(10,2) NOT NULL, `observacao` varchar(200), `usuario_id` int not null, foreign key (`usuario_id`) references `usuarios`(`id`) ); INSERT INTO `compromissos` (`titulo`, `tipo`, `data`, `local`, `duracao`, `observacao`, `usuario_id`) VALUES ("Meu evento", "Encontro", "2018-05-08 03:15:00", "São Paulo", 10, null, 1), ("Evento Bacana", "Outro", "2018-05-08 03:15:00", "São José", 1, "Tem comida", 2), ("Evento", "Encontro", "2018-06-08 03:15:00", "Longe", 1, null, 1), ("Meu evento", "Encontro", now(), "São Paulo", 10, null, 1), ("Evento Bacana", "Outro", now(), "São José", 1, "Tem comida", 2), ("Evento", "Encontro", "2018-06-08 03:15:00", "Longe", 1, null, 1), ("Meu evento", "Encontro", now(), "São Paulo", 10, null, 1), ("Evento Bacana", "Outro", now(), "São José", 1, "Tem comida", 2), ("Evento", "Encontro", "2018-06-08 03:15:00", "Longe", 1, null, 1);
DROP TABLE Activity CASCADE CONSTRAINTS PURGE; DROP TABLE ActivityMember CASCADE CONSTRAINTS PURGE; DROP TABLE HallRoster CASCADE CONSTRAINTS PURGE; DROP TABLE Grade CASCADE CONSTRAINTS PURGE; DROP TABLE GradeMember CASCADE CONSTRAINTS PURGE; DROP TABLE PoolRoster CASCADE CONSTRAINTS PURGE; DROP TABLE Trainer CASCADE CONSTRAINTS PURGE; DROP TABLE Telephone CASCADE CONSTRAINTS PURGE; DROP TABLE Members CASCADE CONSTRAINTS PURGE; DROP TABLE Equipment CASCADE CONSTRAINTS PURGE; DROP TABLE GymBooking CASCADE CONSTRAINTS PURGE; DROP TABLE PoolBooking CASCADE CONSTRAINTS PURGE; DROP SEQUENCE member_id_seq; DROP SEQUENCE trainer_id_seq; DROP SEQUENCE equipment_id_seq; DROP SEQUENCE prsession_id_seq; DROP SEQUENCE hrsession_id_seq; CREATE TABLE Members ( memberId NUMBER(5) NOT NULL , mName VARCHAR2(60) NOT NULL , mAddress VARCHAR2(100) NOT NULL , mType VARCHAR2(10) NOT NULL , feesPaid NUMBER(8,2) NULL , feesDue NUMBER(8,2) NULL , CONSTRAINT member_type_values CHECK (mType IN ('Full', 'Swimming')), CONSTRAINT member_primary_key PRIMARY KEY (memberId) ); CREATE SEQUENCE member_id_seq START WITH 1; INSERT INTO Members (memberId, mName, mAddress, mType, feesPaid, feesDue) VALUES (member_id_seq.nextval, '<NAME>', 'Ballymun Road', 'Full', 0, 0); INSERT INTO Members (memberId, mName, mAddress, mType, feesPaid, feesDue) VALUES (member_id_seq.nextval, '<NAME>', 'Santry Avenue', 'Swimming', 200,300); INSERT INTO Members (memberId, mName, mAddress, mType, feesPaid, feesDue) VALUES (member_id_seq.nextval, '<NAME> ', 'Temple Bar', 'Swimming', 150, 50); INSERT INTO Members (memberId, mName, mAddress, mType, feesPaid, feesDue) VALUES (member_id_seq.nextval, '<NAME>', 'Waterford Road', 'Full', 0, 0); INSERT INTO Members (memberId, mName, mAddress, mType, feesPaid, feesDue) VALUES (member_id_seq.nextval, '<NAME>', 'Kevin Street', 'Full', 100, 100); CREATE TABLE Telephone ( memberId NUMBER(5) NOT NULL , phoneNumber VARCHAR2(11) NULL , CONSTRAINT telepone_primary_key PRIMARY KEY (memberId), CONSTRAINT fk_mebmer_telephone FOREIGN KEY (memberId) REFERENCES Members (memberId) ); INSERT INTO Telephone VALUES (1, '+0848444484'); INSERT INTO Telephone VALUES (2, '+0879032193'); INSERT INTO Telephone VALUES (3, '+5419283092'); INSERT INTO Telephone VALUES (4, '48572039471'); INSERT INTO Telephone VALUES (5, '93058342350'); CREATE TABLE Trainer ( trainerId NUMBER(5) NOT NULL , trainerName VARCHAR2(60) NOT NULL , trainerDayOff1 NUMBER(1) NULL , trainerDayOff2 NUMBER(1) NULL , CONSTRAINT trainer_primary_key PRIMARY KEY (trainerId) ); CREATE SEQUENCE trainer_id_seq START WITH 1; INSERT INTO Trainer VALUES (trainer_id_seq.nextval, '<NAME>', 3, 7); INSERT INTO Trainer VALUES (trainer_id_seq.nextval, '<NAME>', 4, 5); INSERT INTO Trainer VALUES (trainer_id_seq.nextval, '<NAME>', 6, 7); INSERT INTO Trainer VALUES (trainer_id_seq.nextval, '<NAME>', 1, 3); INSERT INTO Trainer VALUES (trainer_id_seq.nextval, '<NAME>', 2, 3); CREATE TABLE Grade ( gradeNumber NUMBER(1) NOT NULL , gradeDesc VARCHAR(60) NULL, CONSTRAINT gradenumber_values CHECK (gradeNumber IN (1, 2, 3, 4)), CONSTRAINT grade_primary_key PRIMARY KEY (gradeNumber) ); INSERT INTO Grade values (1, ''); INSERT INTO Grade values (2, ''); INSERT INTO Grade values (3, ''); INSERT INTO Grade values (4, ''); CREATE TABLE GradeMember ( gradeNumber NUMBER(1) NOT NULL , memberId NUMBER(5) NULL , gradeStartDate DATE NOT NULL , CONSTRAINT fk_grademember_grade FOREIGN KEY (gradeNumber) REFERENCES Grade (gradeNumber), CONSTRAINT fk_grademember_members FOREIGN KEY (memberId) REFERENCES Members (memberId) ); INSERT INTO GradeMember values (1, 1, '13-OCT-15'); INSERT INTO GradeMember values (1, 2, '27-OCT-15'); INSERT INTO GradeMember values (2, 4, '07-FEB-14'); INSERT INTO GradeMember values (3, 5, '20-OCT-13'); INSERT INTO GradeMember values (3, 3, '27-AUG-15'); CREATE TABLE PoolRoster ( prSessionId NUMBER(5) NOT NULL , gradeNumber NUMBER(1) NULL , prType VARCHAR2(10) NOT NULL , prDate DATE NOT NULL , prStartTime DATE NOT NULL , prEndTime DATE NOT NULL , trainerId NUMBER(5) NULL , CONSTRAINT pr_type_values CHECK (prType IN ('Public', 'Private')), CONSTRAINT poolroster_primary_key PRIMARY KEY (prSessionId), CONSTRAINT fk_poolroster_grade FOREIGN KEY (gradeNumber) REFERENCES Grade (gradeNumber), CONSTRAINT fk_poolroster_trainer FOREIGN KEY (trainerId) REFERENCES Trainer (trainerId) ); CREATE SEQUENCE prsession_id_seq START WITH 1; INSERT INTO PoolRoster (prSessionId, gradeNumber, prType, prDate, prStartTime, prEndTime, trainerId) values (prsession_id_seq.nextval, 1, 'Private', TO_DATE('15-11-15','DD-MM-YY'), TO_DATE('10:00','HH24:MI'), TO_DATE('12:00','HH24:MI'), 1 ); INSERT INTO PoolRoster (prSessionId, prType, prStartTime, prDate, prEndTime) values (prsession_id_seq.nextval, 'Public', TO_DATE('15-11-15','DD-MM-YY'), TO_DATE('13:00','HH24:MI'), TO_DATE('15:00','HH24:MI')); INSERT INTO PoolRoster (prSessionId, gradeNumber, prType, prDate, prStartTime, prEndTime, trainerId) values (prsession_id_seq.nextval, 4, 'Private', TO_DATE('15-11-15','DD-MM-YY'), TO_DATE('15:00','HH24:MI'), TO_DATE('17:00','HH24:MI'), 3 ); INSERT INTO PoolRoster (prSessionId, prType, prStartTime, prDate, prEndTime) values (prsession_id_seq.nextval, 'Public', TO_DATE('16-11-15','DD-MM-YY'), TO_DATE('10:00','HH24:MI'), TO_DATE('12:00','HH24:MI')); INSERT INTO PoolRoster (prSessionId, gradeNumber, prType, prDate, prStartTime, prEndTime, trainerId) values (prsession_id_seq.nextval, 2, 'Private', TO_DATE('16-11-15','DD-MM-YY'), TO_DATE('13:00','HH24:MI'), TO_DATE('15:00','HH24:MI'), 4 ); CREATE TABLE Activity ( activityName VARCHAR2(40) NOT NULL , maxMembers NUMBER(2) NOT NULL, activityDesc VARCHAR2(60) NULL , CONSTRAINT hallroster_activity_values CHECK (activityName IN ('Football', 'Basketball', 'Yoga', 'Taekwondo')), CONSTRAINT activity_primary_key PRIMARY KEY (activityName) ); INSERT INTO Activity VALUES ('Basketball' , 20, ''); INSERT INTO Activity VALUES ('Taekwondo' , 20, ''); INSERT INTO Activity VALUES ('Football' , 20, ''); INSERT INTO Activity VALUES ('Yoga' , 20, ''); CREATE TABLE ActivityMember ( activityName VARCHAR2(40) NOT NULL , memberId NUMBER(5) NULL , CONSTRAINT fk_activitymember_members FOREIGN KEY (memberId) REFERENCES Members (memberId), CONSTRAINT fk_activitymember_activity FOREIGN KEY (activityName) REFERENCES Activity (activityName) ); INSERT INTO ActivityMember VALUES ('Taekwondo' , 1); INSERT INTO ActivityMember VALUES ('Basketball' , 1); INSERT INTO ActivityMember VALUES ('Taekwondo' , 4); INSERT INTO ActivityMember VALUES ('Football' , 5); INSERT INTO ActivityMember VALUES ('Yoga' , 4); CREATE TABLE Equipment ( equipmentId NUMBER(5) NOT NULL , equipmentName VARCHAR2(40) NOT NULL , CONSTRAINT equipment_primary_key PRIMARY KEY (equipmentId) ); CREATE SEQUENCE equipment_id_seq START WITH 1; INSERT INTO Equipment values (equipment_id_seq.nextval, 'Multi Adjustable Bench'); INSERT INTO Equipment values (equipment_id_seq.nextval, 'Stepper'); INSERT INTO Equipment values (equipment_id_seq.nextval, 'Leg Press'); INSERT INTO Equipment values (equipment_id_seq.nextval, 'Triceps Extension'); INSERT INTO Equipment values (equipment_id_seq.nextval, 'Pectoral Fly'); CREATE TABLE HallRoster ( hrSessionId NUMBER(5) NOT NULL, activityName VARCHAR2(40) NOT NULL , hrDate DATE NOT NULL , hrStartTime DATE NOT NULL , hrEndTime DATE NOT NULL , trainerId NUMBER(5) NOT NULL , equipmentId NUMBER(5) NULL , CONSTRAINT hallroster_primary_key PRIMARY KEY (hrSessionId), CONSTRAINT fk_hallroster_equipment FOREIGN KEY (equipmentId) REFERENCES Equipment (equipmentId), CONSTRAINT fk_hallroster_activity FOREIGN KEY (activityName) REFERENCES Activity (activityName), CONSTRAINT fk_hallroster_trainer FOREIGN KEY (trainerId) REFERENCES Trainer (trainerId) ); CREATE SEQUENCE hrsession_id_seq START WITH 1; INSERT INTO HallRoster VALUES (hrsession_id_seq.nextval, 'Taekwondo', TO_DATE('01-11-15', 'DD-MM-YY'), TO_DATE('12:00', 'HH24:MI'), TO_DATE('13:00', 'HH24:MI'), 1, 2); INSERT INTO HallRoster VALUES (hrsession_id_seq.nextval, 'Football', TO_DATE('01-11-15', 'DD-MM-YY'), TO_DATE('13:00', 'HH24:MI'), TO_DATE('15:00', 'HH24:MI'), 3, 3); INSERT INTO HallRoster VALUES (hrsession_id_seq.nextval, 'Yoga', TO_DATE('01-11-15', 'DD-MM-YY'), TO_DATE('16:00', 'HH24:MI'), TO_DATE('18:00', 'HH24:MI'), 5, 1); INSERT INTO HallRoster VALUES (hrsession_id_seq.nextval, 'Basketball', TO_DATE('02-11-15', 'DD-MM-YY'), TO_DATE('10:00', 'HH24:MI'), TO_DATE('11:00', 'HH24:MI'), 4, 2); INSERT INTO HallRoster VALUES (hrsession_id_seq.nextval, 'Football', TO_DATE('02-11-15', 'DD-MM-YY'), TO_DATE('11:00', 'HH24:MI'), TO_DATE('15:00', 'HH24:MI'), 2, 5); CREATE TABLE GymBooking ( memberId NUMBER(5) NOT NULL , equipmentId NUMBER(5) NOT NULL , gbDate DATE NOT NULL , gbStartTime DATE NOT NULL , gbEndTime DATE NOT NULL , CONSTRAINT gymbooking_primary_key PRIMARY KEY (memberId,equipmentId), CONSTRAINT fk_gymbooking_members FOREIGN KEY (memberId) REFERENCES Members (memberId), CONSTRAINT fk_gymbooking_equipment FOREIGN KEY (equipmentId) REFERENCES Equipment (equipmentId) ); INSERT INTO GymBooking VALUES (1, 1, TO_DATE('05-11-15', 'DD-MM-YY'), TO_DATE('09:00', 'HH24:MI'), TO_DATE('09:15', 'HH24:MI')); INSERT INTO GymBooking VALUES (3, 2, TO_DATE('05-11-15', 'DD-MM-YY'), TO_DATE('09:00', 'HH24:MI'), TO_DATE('09:15', 'HH24:MI')); INSERT INTO GymBooking VALUES (4, 5, TO_DATE('06-11-15', 'DD-MM-YY'), TO_DATE('12:00', 'HH24:MI'), TO_DATE('12:15', 'HH24:MI')); INSERT INTO GymBooking VALUES (2, 3, TO_DATE('08-11-15', 'DD-MM-YY'), TO_DATE('12:15', 'HH24:MI'), TO_DATE('12:30', 'HH24:MI')); INSERT INTO GymBooking VALUES (1, 5, TO_DATE('11-11-15', 'DD-MM-YY'), TO_DATE('09:30', 'HH24:MI'), TO_DATE('09:45', 'HH24:MI')); CREATE TABLE PoolBooking ( memberId NUMBER(5) NOT NULL , pbDate DATE NOT NULL , pbStartTime DATE NOT NULL , pbEndTime DATE NOT NULL , trainerId NUMBER(5) NULL , CONSTRAINT poolbooking_primary_key PRIMARY KEY (memberId), CONSTRAINT fk_poolbooking_trainer FOREIGN KEY (trainerId) REFERENCES Trainer (trainerId), CONSTRAINT fk_poolbooking_members FOREIGN KEY (memberId) REFERENCES Members (memberId) ); INSERT INTO PoolBooking values (1, TO_DATE('02-11-15', 'DD-MM-YY'), TO_DATE('10:00', 'HH24:MI'), TO_DATE('12:00', 'HH24:MI'), 1); INSERT INTO PoolBooking values (5, TO_DATE('02-11-15', 'DD-MM-YY'), TO_DATE('11:00', 'HH24:MI'), TO_DATE('13:00', 'HH24:MI'), 5); INSERT INTO PoolBooking values (2, TO_DATE('03-11-15', 'DD-MM-YY'), TO_DATE('10:00', 'HH24:MI'), TO_DATE('12:00', 'HH24:MI'), 4); INSERT INTO PoolBooking values (4, TO_DATE('04-11-15', 'DD-MM-YY'), TO_DATE('10:00', 'HH24:MI'), TO_DATE('12:00', 'HH24:MI'), 4); INSERT INTO PoolBooking VALUES (3, TO_DATE('04-11-15', 'DD-MM-YY'), TO_DATE('13:00', 'HH24:MI'), TO_DATE('15:00', 'HH24:MI'), 2); --Trainer GRANT SELECT ON PoolBooking TO pjusti; GRANT SELECT ON GymBooking TO pjusti; GRANT SELECT, INSERT, DELETE ON PoolRoster TO pjusti; GRANT SELECT, INSERT, DELETE ON HallRoster TO pjusti; GRANT SELECT ON ActivityMember TO pjusti; GRANT SELECT, UPDATE ON GradeMember TO pjusti; GRANT SELECT ON Equipment TO pjusti; GRANT SELECT ON GymBooking TO pjusti; --Member GRANT SELECT ON Member TO pgood; GRANT SELECT, INSERT ON Telephone TO pgood; GRANT UPDATE ON PhoneNumber TO pgood; GRANT SELECT PoolRoster TO pgood; GRANT SELECT HallRoster TO pgood; GRANT SELECT, INSERT GymBooking TO pgood; GRANT SELECT, INSERT PoolBooking TO pgood; GRANT SELECT Activity TO pgood; GRANT SELECT Trainer TO pgood; --Secretary GRANT SELECT, INSERT, DELETE, UPDATE ON Members to alahs; GRANT SELECT ON PoolRoster TO alahs; GRANT SELECT ON HallRoster TO alahs; GRANT SELECT, INSERT, DELETE ON PoolBooking TO alahs; GRANT SELECT, INSERT, DELETE ON GymBooking TO alahs; GRANT SELECT ON Grade TO alahs; GRANT SELECT, INSERT, DELETE ON ActivityMember TO alahs; GRANT SELECT ON GradeMember TO alahs; GRANT SELECT, INSERT ON Activity TO alahs; GRANT SELECT, UPDATE, INSERT, DELETE ON Telephone TO alahs; GRANT SELECT ON Equipment TO alahs; GRANT SELECT, UPDATE, INSERT, DELETE ON Trainer TO alahs;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.4.5 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Mar 02 Juin 2015 à 19:11 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de données : `bdloc` -- -- -------------------------------------------------------- -- -- Structure de la table `adresse` -- CREATE TABLE IF NOT EXISTS `adresse` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `compAdresse` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `cp` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `ville` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `user_id` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `adresse` -- INSERT INTO `adresse` (`id`, `nom`, `compAdresse`, `cp`, `ville`, `user_id`) VALUES (1, 'Jacquemin', '11 allée des Pétunia', '78000', 'Versailles', 10), (2, 'Jacquemin', '12 rue de Viennes', '91000', 'Evry', 10); -- -------------------------------------------------------- -- -- Structure de la table `author` -- CREATE TABLE IF NOT EXISTS `author` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenom` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `birth` datetime DEFAULT NULL, `death` datetime DEFAULT NULL, `pays` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `pseudo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=311 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `author` -- INSERT INTO `author` (`id`, `nom`, `prenom`, `birth`, `death`, `pays`, `pseudo`, `slug`) VALUES (2, 'Jodorowsky', 'Alexandro', '1929-02-07 00:00:00', NULL, 'Chili', NULL, 'jodorowsky-alexandro'), (3, 'Giraud', 'Jean', '1938-05-08 00:00:00', NULL, 'France', 'Moebius', 'moebius-giraud-jean'), (4, 'Beaumenay-Joannet', 'Isabelle', '1957-01-01 00:00:00', NULL, 'France', NULL, 'beaumenay-joannet-isabelle'), (5, 'Janjetov', 'Zoran', NULL, NULL, 'Yougoslavie', NULL, 'janjetov-zoran'), (6, 'Chaland', 'Yves', '1957-04-03 00:00:00', '1990-07-18 00:00:00', 'France', NULL, 'chaland-yves'), (7, 'Studio Beltran', NULL, NULL, NULL, 'France', NULL, 'studio-beltran'), (8, 'Beltran', 'Valérie', NULL, NULL, '', NULL, 'beltran-valerie'), (9, 'Bess', 'Georges', '1947-01-01 00:00:00', NULL, 'France', NULL, 'bess-georges'), (10, 'Bess', 'Guillaume', NULL, NULL, '', NULL, 'bess-guillaume'), (11, 'Nolent', 'Alexis', '1967-01-01 00:00:00', NULL, 'France', 'Matz', 'matz-nolent-alexis'), (12, 'Jacamon', 'Luc', NULL, NULL, '', NULL, 'jacamon-luc'), (13, 'Brunschwig', 'Luc', '1967-09-03 00:00:00', NULL, 'France', NULL, 'brunschwig-luc'), (14, 'Hirn', 'Laurent', '1963-04-05 00:00:00', NULL, 'France', NULL, 'hirn-laurent'), (15, 'Guth', 'Claude', '1962-03-02 00:00:00', NULL, '', NULL, 'guth-claude'), (16, 'Benacquista', 'Tonino', '1961-09-01 00:00:00', NULL, '', NULL, 'benacquista-tonino'), (17, 'Ferrandez', 'Jacques', '1955-12-12 00:00:00', NULL, '', NULL, 'ferrandez-jacques'), (18, 'Paringaux', 'Philippe', NULL, NULL, '', NULL, 'paringaux-philippe'), (19, ' <NAME>', 'Jacques', '1956-04-10 00:00:00', NULL, 'France', 'Loustal', 'loustal-de-loustal-jacques'), (20, '<Collectif>', NULL, NULL, NULL, '', NULL, 'collectif'), (21, 'Kris', NULL, '1972-09-04 00:00:00', NULL, '', NULL, 'kris'), (22, 'Davodeau', 'Etienne', '1965-10-19 00:00:00', NULL, 'France', NULL, 'davodeau-etienne'), (23, 'Manara', 'Maurilio', '1945-09-12 00:00:00', NULL, 'Italie', '<NAME>', 'manara-milo-manara-maurilio'), (24, '<N&B>', NULL, NULL, NULL, '', NULL, 'n-b'), (25, 'Rabaté', 'Pascal', '1961-08-13 00:00:00', NULL, 'France', NULL, 'rabate-pascal'), (26, '<NAME>', 'Juan', '1972-01-01 00:00:00', NULL, 'Espagne', NULL, 'diaz-canales-juan'), (27, 'Guarnido', 'Juanjo', '1967-01-01 00:00:00', NULL, 'Espagne', NULL, 'guarnido-juanjo'), (28, 'Abouet', 'Marguerite', '1971-01-01 00:00:00', NULL, 'Côte d''ivoire', NULL, 'abouet-marguerite'), (29, 'Oubrerie', 'Clément', NULL, NULL, '', NULL, 'oubrerie-clement'), (30, 'Mandryka', 'Nikita', '1940-10-20 00:00:00', NULL, '', NULL, 'mandryka-nikita'), (31, 'Frezzato', 'Massimiliano', '1967-03-12 00:00:00', NULL, 'Italie', NULL, 'frezzato-massimiliano'), (32, 'Gratien', 'Eric', NULL, NULL, '', NULL, 'gratien-eric'), (33, 'David', 'Didier', '1959-09-09 00:00:00', NULL, 'France', 'Cromwell', 'cromwell-david-didier'), (34, 'Abolin', 'Georges', '1969-05-09 00:00:00', NULL, '', NULL, 'abolin-georges'), (35, 'Pont', 'Olivier', '1969-06-01 00:00:00', NULL, 'France', NULL, 'pont-olivier'), (36, 'Chagnaud', 'Jean-Jacques', NULL, NULL, '', NULL, 'chagnaud-jean-jacques'), (37, 'Szalewa', 'Igor', '1966-01-01 00:00:00', NULL, 'France', NULL, 'szalewa-igor'), (38, 'Ryser', 'Nicolas', NULL, NULL, '', NULL, 'ryser-nicolas'), (39, 'Polonsky', 'Stephan', NULL, NULL, '', NULL, 'polonsky-stephan'), (40, ' Phoussera', 'Ing', '1961-06-24 00:00:00', NULL, 'Cambodge', 'Séra', 'sera-phoussera-ing'), (41, 'Siefer', 'Laurent', NULL, NULL, '', NULL, 'siefer-laurent'), (42, 'Pontarolo', 'Frédéric', '1970-02-10 00:00:00', NULL, 'France', NULL, 'pontarolo-frederic'), (43, 'Omond', 'Eric', '1968-05-16 00:00:00', NULL, 'France', NULL, 'omond-eric'), (44, 'Beuzelin', 'Boris', '1971-06-30 00:00:00', NULL, 'France', NULL, 'beuzelin-boris'), (45, 'Gallié', 'Mathieu', NULL, NULL, 'France', NULL, 'gallie-mathieu'), (46, 'Andréae', 'Jean-Baptiste', '1964-01-10 00:00:00', NULL, 'France', NULL, 'andreae-jean-baptiste'), (47, 'Moore', 'Alan', '1953-11-18 00:00:00', NULL, 'Angleterre', NULL, 'moore-alan'), (48, 'Gibbons', 'Dave', '1949-04-14 00:00:00', NULL, 'Angleterre', NULL, 'gibbons-dave'), (49, 'Higgins', 'John', NULL, NULL, '', NULL, 'higgins-john'), (50, 'Burns', 'Charles', '1955-09-27 00:00:00', NULL, 'Usa', NULL, 'burns-charles'), (51, 'Eisner', '<NAME>', '1917-03-06 00:00:00', '2005-01-03 00:00:00', 'Usa', '<NAME>', 'eisner-will-eisner-william-erwin'), (52, 'Miller', 'Frank', NULL, NULL, 'Usa', NULL, 'miller-frank'), (53, 'Mizuki', 'Shigeru', '1922-03-08 00:00:00', NULL, 'Japon', NULL, 'mizuki-shigeru'), (54, 'Kusumi', 'Masayuki', NULL, NULL, 'Japon', NULL, 'kusumi-masayuki'), (55, 'Taniguchi', 'Jirô', '1947-08-12 00:00:00', NULL, 'Japon', NULL, 'taniguchi-jiro'), (56, 'Rabagliati', 'Michel', NULL, NULL, 'Canada', NULL, 'rabagliati-michel'), (57, 'Lapierre', 'François', '1970-03-21 00:00:00', NULL, 'Québec', NULL, 'lapierre-francois'), (58, 'Beaulieu', 'Jimmy', '1974-01-01 00:00:00', NULL, 'Canada', NULL, 'beaulieu-jimmy'), (59, 'Larcenet', 'Manu', '1969-05-06 00:00:00', NULL, 'France', NULL, 'larcenet-manu'), (60, 'Larcenet', 'Patrice', '1971-06-05 00:00:00', NULL, 'France', NULL, 'larcenet-patrice'), (61, 'Chabosy', 'Laurent', '1964-01-01 00:00:00', NULL, 'France', '<NAME>', 'trondheim-lewis-chabosy-laurent'), (62, 'Findakly', 'Brigitte', NULL, NULL, 'France', NULL, 'findakly-brigitte'), (63, 'Ferri', 'Jean-Yves', NULL, NULL, '', NULL, 'ferri-jean-yves'), (64, 'Sfar', 'Joann', '1971-08-28 00:00:00', NULL, 'France', NULL, 'sfar-joann'), (65, 'Guibert', 'Emmanuel', '1964-01-01 00:00:00', NULL, 'France', NULL, 'guibert-emmanuel'), (66, 'Lindingre', 'Yan', NULL, NULL, '', NULL, 'lindingre-yan'), (67, 'Dupuy', 'Philippe', '1960-12-15 00:00:00', NULL, 'France', NULL, 'dupuy-philippe'), (68, 'Legris', 'Claude', NULL, NULL, '', NULL, 'legris-claude'), (69, 'Berberian', 'Charles', '1959-05-28 00:00:00', NULL, 'France', NULL, 'berberian-charles'), (70, 'Sapin', 'Mathieu', NULL, NULL, '', NULL, 'sapin-mathieu'), (71, 'Chedru', 'Delphine', NULL, NULL, '', NULL, 'chedru-delphine'), (72, '<NAME>', 'Frank', '1959-09-23 00:00:00', NULL, 'France', NULL, 'le-gall-frank'), (73, 'Boulard', 'Hubert', '1971-01-01 00:00:00', NULL, '', 'Hubert', 'hubert-boulard-hubert'), (74, ' Kerascoët', NULL, NULL, NULL, 'France', 'Kerascoët', 'kerascoet-kerascoet'), (75, 'Blain', 'Christophe', '1970-08-10 00:00:00', NULL, 'France', NULL, 'blain-christophe'), (76, ' Pezzali', 'Walter', NULL, NULL, '', 'Walter', 'walter-pezzali-walter'), (77, 'Loisel', 'Régis', '1951-12-04 00:00:00', NULL, 'France', NULL, 'loisel-regis'), (78, 'Cosandey', 'Bernard', '1950-06-14 00:00:00', NULL, 'Suisse', 'Cosey', 'cosey-cosandey-bernard'), (79, ' Hislaire', 'Bernard', '1957-01-11 00:00:00', NULL, 'Belgique', 'Yslaire', 'yslaire-hislaire-bernard'), (80, '<NAME>', 'Yann', NULL, NULL, 'France', 'Balac', 'balac-le-pennetier-yann'), (81, 'Bastide', 'Jean', '1982-01-01 00:00:00', NULL, '', NULL, 'bastide-jean'), (82, 'Mezil', 'Vincent', '1983-01-01 00:00:00', NULL, 'France', NULL, 'mezil-vincent'), (83, '<NAME>', 'Serge', '1946-12-01 00:00:00', NULL, 'France', NULL, 'le-tendre-serge'), (84, ' Legeard', 'Dominique', '1960-05-12 00:00:00', NULL, 'France', 'Lidwine', 'lidwine-legeard-dominique'), (85, 'Aouamri', 'Mohamed', '1957-03-24 00:00:00', NULL, 'Algerie', NULL, 'aouamri-mohamed'), (86, 'Lencot', 'Yves', '1959-04-29 00:00:00', NULL, 'France', NULL, 'lencot-yves'), (87, 'Quilici', 'Laurence', NULL, NULL, '', NULL, 'quilici-laurence'), (88, ' Wasem', 'Pierre', '1970-07-16 00:00:00', NULL, 'Suisse', '<NAME>', 'wazem-pierre-wasem-pierre'), (89, 'Peeters', 'Frederik', '1974-08-14 00:00:00', NULL, 'Suisse', NULL, 'peeters-frederik'), (90, 'Ralenti', 'Albertine', NULL, NULL, '', NULL, 'ralenti-albertine'), (91, 'Ayroles', 'Alain', '1968-01-26 00:00:00', NULL, 'France', NULL, 'ayroles-alain'), (92, 'Masbou', 'Jean-Luc', '1963-03-14 00:00:00', NULL, 'France', NULL, 'masbou-jean-luc'), (93, 'Mayer', 'Jean-marc', NULL, NULL, '', NULL, 'mayer-jean-marc'), (94, 'Moynot', 'Emmanuel', '1960-04-15 00:00:00', NULL, 'France', NULL, 'moynot-emmanuel'), (95, 'Bravo', 'Emile', '1964-09-18 00:00:00', NULL, 'France', NULL, 'bravo-emile'), (96, 'Tripp', 'Jean-Louis', '1958-02-04 00:00:00', NULL, 'France', NULL, 'tripp-jean-louis'), (97, ' Girard', 'Philippe', NULL, NULL, 'Québec', 'Phlppgrrd', 'phlppgrrd-girard-philippe'), (98, 'Girard', 'Pascal', NULL, NULL, 'Québec', NULL, 'girard-pascal'), (99, 'Duberger', 'Jean-sébastien', NULL, NULL, '', 'Dub', 'dub-duberger-jean-sebastien'), (100, 'Tan', 'Shaun', NULL, NULL, 'Australie', NULL, 'tan-shaun'), (101, 'Bonifay', 'Philippe', '1959-08-13 00:00:00', NULL, 'France', NULL, 'bonifay-philippe'), (102, 'Pé', 'Frank', '1956-07-15 00:00:00', NULL, 'Belgique', 'Frank(Pé)', 'frank-pe-pe-frank'), (103, 'Lloyd', 'David', NULL, NULL, 'Angleterre', NULL, 'lloyd-david'), (104, 'Roussel', 'Gilles', '1975-02-01 00:00:00', NULL, 'France', 'Boulet', 'boulet-roussel-gilles'), (105, 'Albon', 'Lucie', '1977-01-01 00:00:00', NULL, 'France', NULL, 'albon-lucie'), (106, 'Lefèvre', 'Didier', NULL, '2007-01-29 00:00:00', '', NULL, 'lefevre-didier'), (107, 'Pacinotti', 'Gianni', '1963-01-01 00:00:00', NULL, 'Italie', 'Gipi', 'gipi-pacinotti-gianni'), (108, 'Dragon', 'Pierre', '1965-01-01 00:00:00', NULL, 'France', NULL, 'dragon-pierre'), (109, 'Debeurme', 'Ludovic', NULL, NULL, 'France', NULL, 'debeurme-ludovic'), (110, 'Hincker', 'Christian', '1967-12-27 00:00:00', NULL, 'France', 'Blutch', 'blutch-hincker-christian'), (111, '<NAME>', 'Jean', '1939-01-16 00:00:00', NULL, 'Belgique', NULL, 'van-hamme-jean'), (112, 'Rosinski', 'Grzegorz', '1941-08-03 00:00:00', NULL, 'Pologne', NULL, 'rosinski-grzegorz'), (113, 'Kasprzak', 'Graza', NULL, NULL, '', 'Graza', 'graza-kasprzak-graza'), (114, 'Sente', 'Yves', '1964-01-17 00:00:00', NULL, 'Belgique', NULL, 'sente-yves'), (115, 'Pelinq', 'Christophe', '1963-08-14 00:00:00', NULL, 'France', '<NAME>', 'arleston-scotch-pelinq-christophe'), (116, 'Tarquin', 'Didier', '1967-01-20 00:00:00', NULL, 'France', NULL, 'tarquin-didier'), (117, 'Hislaire', 'Bernard', '1957-01-11 00:00:00', NULL, 'Belgique', NULL, 'hislaire-bernard'), (118, ' Herman', 'Jean', '1933-05-17 00:00:00', NULL, 'France', '<NAME>', 'vautrin-jean-herman-jean'), (119, 'Tardi', 'Jacques', '1946-08-30 00:00:00', NULL, 'France', NULL, 'tardi-jacques'), (120, 'Haldeman', 'Joe', '1943-06-09 00:00:00', NULL, 'Usa', NULL, 'haldeman-joe'), (121, '<NAME>', 'Mark', '1953-04-29 00:00:00', NULL, 'Belgique', 'Marvano', 'marvano-van-oppen-mark'), (122, 'Marchand', 'Bruno', '1963-01-01 00:00:00', NULL, 'France', NULL, 'marchand-bruno'), (123, 'Juillard', 'André', '1948-06-09 00:00:00', NULL, 'France', NULL, 'juillard-andre'), (124, 'Convard', 'Didier', '1950-01-16 00:00:00', NULL, 'France', NULL, 'convard-didier'), (125, '<Quadrichromie>', NULL, NULL, NULL, '', NULL, 'quadrichromie'), (126, 'Gibrat', 'Jean-Pierre', '1954-04-17 00:00:00', NULL, 'France', NULL, 'gibrat-jean-pierre'), (127, 'Kraehn', 'Jean-Charles', '1955-06-27 00:00:00', NULL, 'France', NULL, 'kraehn-jean-charles'), (128, 'Vallée', 'Sylvain', '1972-06-28 00:00:00', NULL, 'France', NULL, 'vallee-sylvain'), (129, 'Jambers', 'Patricia', NULL, NULL, '', NULL, 'jambers-patricia'), (130, 'Lapière', 'Denis', '1958-08-08 00:00:00', NULL, 'Belgique', NULL, 'lapiere-denis'), (131, 'Pellejero', 'Ruben', '1952-12-20 00:00:00', NULL, 'Espagne', NULL, 'pellejero-ruben'), (132, 'Christin', 'Pierre', '1938-07-27 00:00:00', NULL, 'France', NULL, 'christin-pierre'), (133, 'Satrapi', 'Marjane', NULL, NULL, 'Iran', NULL, 'satrapi-marjane'), (134, '<NAME>', 'Nicolas', '1966-09-29 00:00:00', NULL, 'France', NULL, 'de-crecy-nicolas'), (135, 'Tjoyas', 'Alexios', NULL, NULL, '', NULL, 'tjoyas-alexios'), (136, 'Ruby', NULL, NULL, NULL, '', NULL, 'ruby'), (137, 'Chomet', 'Sylvain', '1963-01-01 00:00:00', NULL, 'France', NULL, 'chomet-sylvain'), (138, 'Chevillard', 'Hubert', NULL, NULL, '', NULL, 'chevillard-hubert'), (139, '<NAME>', NULL, NULL, NULL, '', NULL, 'zaza-et-zik'), (140, 'Gale', 'Janet', NULL, NULL, 'Nouvelle-zélande', NULL, 'gale-janet'), (141, 'Langlois', 'Monica', NULL, NULL, '', NULL, 'langlois-monica'), (142, 'Karali', 'Olivier', '1967-12-29 00:00:00', NULL, '', 'Ka, Olivier', 'ka-olivier-karali-olivier'), (143, 'Papagalli', 'Lionel', '1976-05-19 00:00:00', NULL, 'France', 'Alfred', 'alfred-papagalli-lionel'), (144, 'Meunier', 'Henri', '1972-01-01 00:00:00', NULL, 'France', NULL, 'meunier-henri'), (145, 'Chevalier', 'Bruno', NULL, NULL, 'France', NULL, 'chevalier-bruno'), (146, 'Ségur', 'Thierry', '1964-02-11 00:00:00', NULL, 'France', NULL, 'segur-thierry'), (147, '<NAME>', '<NAME>', '1944-01-01 00:00:00', NULL, 'Bresil', 'Léo', 'leo-de-oliveira-luiz-eduardo'), (148, ' Smulkowski', 'Scarlett', NULL, NULL, '', 'Scarlett', 'scarlett-smulkowski-scarlett'), (149, 'Jacquette', '<NAME>', '1948-05-18 00:00:00', NULL, 'France', 'Rodolphe', 'rodolphe-jacquette-rodolphe-daniel'), (150, 'Smulkowski', 'Scarlett', NULL, NULL, '', NULL, 'smulkowski-scarlett'), (151, 'Boudjellal', 'Farid', '1953-03-12 00:00:00', NULL, 'France', NULL, 'boudjellal-farid'), (152, 'Stassen', 'Jean-Philippe', '1966-03-14 00:00:00', NULL, '', NULL, 'stassen-jean-philippe'), (153, 'Herman', 'Dieter', '1942-02-11 00:00:00', NULL, 'Belgique', '<NAME>', 'comes-didier-herman-dieter'), (154, 'Breccia', 'Alberto', '1919-04-15 00:00:00', '1993-11-10 00:00:00', 'Uruguay', NULL, 'breccia-alberto'), (155, 'Oger', 'Tiburce', '1967-01-01 00:00:00', NULL, 'France', NULL, 'oger-tiburce'), (156, 'Prugne', 'Patrick', NULL, NULL, 'France', NULL, 'prugne-patrick'), (157, 'Leroy', 'Emmanuel', NULL, NULL, '', NULL, 'leroy-emmanuel'), (158, 'Bilal', 'Enes', '1951-10-07 00:00:00', NULL, 'Yougoslavie', 'Bilal, Enki', 'bilal-enki-bilal-enes'), (159, 'David', 'Fabrice', NULL, NULL, '', NULL, 'david-fabrice'), (160, 'Bourgier', 'Eric', '1975-01-01 00:00:00', NULL, 'France', NULL, 'bourgier-eric'), (161, 'Nury', 'Fabien', '1976-05-31 00:00:00', NULL, 'France', NULL, 'nury-fabien'), (162, 'Delf', NULL, NULL, NULL, '', NULL, 'delf'), (163, 'Lupano', 'Wilfrid', '1971-09-26 00:00:00', NULL, 'France', NULL, 'lupano-wilfrid'), (164, 'Augustin', 'Virginie', '1973-01-01 00:00:00', NULL, 'France', NULL, 'augustin-virginie'), (165, 'Penloup', 'Geneviève', NULL, NULL, '', NULL, 'penloup-genevieve'), (166, 'Itoïz', 'Mayana', NULL, NULL, '', NULL, 'itoiz-mayana'), (167, 'Prudhomme', 'David', '1969-01-01 00:00:00', NULL, 'France', NULL, 'prudhomme-david'), (168, 'Merlet', 'Isabelle', '1967-10-07 00:00:00', NULL, 'France', NULL, 'merlet-isabelle'), (169, 'Rouger', 'Jean-Jacques', NULL, NULL, 'France', NULL, 'rouger-jean-jacques'), (170, 'Clémence', NULL, NULL, NULL, '', NULL, 'clemence'), (171, 'Ravon', 'Philippe', NULL, NULL, '', NULL, 'ravon-philippe'), (172, 'Chailleux', 'Maximilien', NULL, NULL, '', NULL, 'chailleux-maximilien'), (173, ' Pelinq', 'Christophe', '1963-08-14 00:00:00', NULL, 'France', '<NAME>', 'arleston-scotch-pelinq-christophe'), (174, 'Lamirand', 'Sébastien', NULL, NULL, '', NULL, 'lamirand-sebastien'), (175, 'Mathias', 'Guy', NULL, NULL, '', NULL, 'mathias-guy'), (176, ' <NAME>', '<NAME>', '1944-01-01 00:00:00', NULL, 'Bresil', 'Leo', 'leo-de-oliveira-luiz-eduardo'), (177, ' Pé', 'Frank', '1956-07-15 00:00:00', NULL, 'Belgique', 'Frank (Pé)', 'frank-pe-pe-frank'), (178, ' Giraud', 'Jean', '1938-05-08 00:00:00', NULL, 'France', 'Moebius', 'moebius-giraud-jean'), (179, 'Glogowski', 'Philippe', '1960-06-16 00:00:00', NULL, 'Belgique', NULL, 'glogowski-philippe'), (180, '<NAME>', 'Rose', NULL, NULL, '', NULL, 'le-guirec-rose'), (181, 'Peeters', 'Benoît', '1956-08-28 00:00:00', NULL, 'France', NULL, 'peeters-benoit'), (182, 'Schuiten', 'François', '1956-04-26 00:00:00', NULL, 'Belgique', NULL, 'schuiten-francois'), (183, 'Willingham', 'Bill', NULL, NULL, '', NULL, 'willingham-bill'), (184, 'Medina', 'Lan', NULL, NULL, '', NULL, 'medina-lan'), (185, '<NAME>', 'Sherilyn', NULL, NULL, '', NULL, 'van-valkenburgh-sherilyn'), (186, 'Buckingham', 'Mark', NULL, NULL, '', NULL, 'buckingham-mark'), (187, 'Vozzo', 'Daniel', NULL, NULL, 'Usa', NULL, 'vozzo-daniel'), (188, 'Akins', 'Tony', NULL, NULL, '', NULL, 'akins-tony'), (189, 'Bertho', 'Pascal', '1964-10-07 00:00:00', NULL, 'France', NULL, 'bertho-pascal'), (190, 'Duval', 'Stéphane', '1970-12-25 00:00:00', NULL, 'France', NULL, 'duval-stephane'), (191, 'Cochet', 'Isabelle', NULL, NULL, '', NULL, 'cochet-isabelle'), (192, 'Aifelle', NULL, NULL, NULL, '', NULL, 'aifelle'), (193, 'Bajram', 'Denis', '1970-02-01 00:00:00', NULL, 'France', NULL, 'bajram-denis'), (194, 'Plessix', 'Michel', '1959-11-10 00:00:00', NULL, 'France', NULL, 'plessix-michel'), (195, 'Jouannigot', 'Loïc', NULL, NULL, '', NULL, 'jouannigot-loic'), (196, 'Corbeyran', 'Eric', '1964-12-14 00:00:00', NULL, 'France', NULL, 'corbeyran-eric'), (197, ' Coronas', 'Christophe', '1966-05-18 00:00:00', NULL, 'France', 'Cécil', 'cecil-coronas-christophe'), (198, 'Mallié', 'Vincent', '1973-04-24 00:00:00', NULL, 'France', NULL, 'mallie-vincent'), (199, ' Hislaire', 'Bernard', '1957-01-11 00:00:00', NULL, 'Belgique', 'Yslaire', 'yslaire-hislaire-bernard'), (200, 'Mézil', 'Vincent', '1983-01-01 00:00:00', NULL, 'France', NULL, 'mezil-vincent'), (201, 'Charest', 'Travis', NULL, NULL, '', NULL, 'charest-travis'), (202, 'Mettout', 'Éric', NULL, NULL, '', NULL, 'mettout-eric'), (203, 'Ghielmetti', 'Philippe', NULL, NULL, '', 'Dugenou', 'dugenou-ghielmetti-philippe'), (204, 'Richard', 'Marc', NULL, NULL, 'Québec', NULL, 'richard-marc'), (205, 'Houde', 'Jocelyn', NULL, NULL, 'Québec', NULL, 'houde-jocelyn'), (206, 'Dufaux', 'Jean', '1949-06-07 00:00:00', NULL, 'Belgique', NULL, 'dufaux-jean'), (207, 'Tillier', 'Béatrice', '1972-09-18 00:00:00', NULL, 'France', NULL, 'tillier-beatrice'), (208, 'Montésinos', 'Éric', NULL, NULL, '', NULL, 'montesinos-eric'), (209, 'Davodeau', 'Étienne', '1965-10-19 00:00:00', NULL, 'France', NULL, 'davodeau-etienne'), (210, 'Bravo', 'Émile', '1964-09-18 00:00:00', NULL, 'France', NULL, 'bravo-emile'), (211, 'Kerascoët', NULL, NULL, NULL, 'France', NULL, 'kerascoet'), (212, 'Jacobs', '<NAME>', '2004-03-30 00:00:00', '1987-02-20 00:00:00', 'Belgique', NULL, 'jacobs-edgar-pierre'), (213, 'Marssignac', 'Paul-Serge', '1937-12-24 00:00:00', '2007-02-08 00:00:00', '', NULL, 'marssignac-paul-serge'), (214, 'Corbeyran', 'Éric', '1964-12-14 00:00:00', NULL, 'France', NULL, 'corbeyran-eric'), (215, ' Lucas', 'Erwan', '1977-02-08 00:00:00', NULL, 'France', 'Obion', 'obion-lucas-erwan'), (216, 'Delobel', 'Anne', '1949-01-01 00:00:00', NULL, '', NULL, 'delobel-anne'), (217, 'Pedrosa', 'Cyril', '1972-11-22 00:00:00', NULL, 'France', NULL, 'pedrosa-cyril'), (218, 'Leialoha', 'Steve', '1952-01-27 00:00:00', NULL, 'Usa', NULL, 'leialoha-steve'), (219, 'Klein', 'Todd', NULL, NULL, 'états-unis', NULL, 'klein-todd'), (220, 'Maleev', 'Alex', '1971-01-01 00:00:00', NULL, 'Bulgarie', NULL, 'maleev-alex'), (221, 'Jean', 'James', NULL, NULL, '', NULL, 'jean-james'), (222, 'Hamilton', 'Craig', NULL, NULL, '', NULL, 'hamilton-craig'), (223, 'Wiesenfeld', 'Aron', NULL, NULL, '', NULL, 'wiesenfeld-aron'), (224, 'Talbot', 'Bryan', '1952-02-24 00:00:00', NULL, 'Angleterre', NULL, 'talbot-bryan'), (225, 'Medley', 'Linda', NULL, NULL, '', NULL, 'medley-linda'), (226, 'Russell', '<NAME>', NULL, NULL, 'états-unis', NULL, 'russell-paul-craig'), (227, 'Kindzierski', 'Lovern', NULL, NULL, 'Usa', NULL, 'kindzierski-lovern'), (228, 'Palmiotti', 'James', '1961-08-16 00:00:00', NULL, 'états-unis', 'Palmiotti, Jimmy', 'palmiotti-jimmy-palmiotti-james'), (229, 'Hahn', 'David', NULL, NULL, '', NULL, 'hahn-david'), (230, 'Green', 'Dan', NULL, NULL, '', NULL, 'green-dan'), (231, 'Pepoy', 'Andrew', NULL, NULL, '', NULL, 'pepoy-andrew'), (232, 'Fern', 'Jim', NULL, NULL, '', NULL, 'fern-jim'), (233, 'Loughridge', 'Lee', NULL, NULL, 'Usa', NULL, 'loughridge-lee'), (234, 'McManus', 'Shawn', NULL, NULL, 'états-unis', NULL, 'mcmanus-shawn'), (235, 'Allred', 'Laura', NULL, NULL, '', NULL, 'allred-laura'), (236, '<NAME>', 'Eva', NULL, NULL, '', NULL, 'de-la-cruz-eva'), (237, 'Alexovich', 'Aaron', '1977-01-01 00:00:00', NULL, 'U.s.a.', NULL, 'alexovich-aaron'), (238, 'Mineo', 'Yoneyama', '1951-01-01 00:00:00', NULL, 'Japon', 'Yumemakura, Baku', 'yumemakura-baku-mineo-yoneyama'), (239, 'Niffle', 'Frédéric', NULL, NULL, '', NULL, 'niffle-frederic'), (240, 'Chollet', 'Sylvain', NULL, NULL, '', NULL, 'chollet-sylvain'), (241, ' Cosandey', 'Bernard', '1950-06-14 00:00:00', NULL, 'Suisse', 'Cosey', 'cosey-cosandey-bernard'), (242, 'Denis', 'Jean-Claude', '1951-01-01 00:00:00', NULL, 'France', NULL, 'denis-jean-claude'), (243, 'Sattouf', 'Riad', '1978-05-05 00:00:00', NULL, 'France', NULL, 'sattouf-riad'), (244, ' Vasseur', 'Didier', '1958-09-29 00:00:00', NULL, 'France', 'Tronchet', 'tronchet-vasseur-didier'), (245, 'Giroud', 'Frank', '1956-05-03 00:00:00', NULL, 'France', NULL, 'giroud-frank'), (246, 'Meyer', 'Ralph', '1971-08-11 00:00:00', NULL, 'France', NULL, 'meyer-ralph'), (247, 'Delabie', 'Caroline', NULL, NULL, '', NULL, 'delabie-caroline'), (248, 'Fogolin', 'Dimitri', NULL, NULL, '', NULL, 'fogolin-dimitri'), (249, 'Ferté', 'Ségolène', NULL, NULL, '', NULL, 'ferte-segolene'), (250, 'Ruiz', 'Anne-Marie', NULL, NULL, '', NULL, 'ruiz-anne-marie'), (251, 'Minguez', 'Jean-Marie', '1977-01-01 00:00:00', NULL, 'France', NULL, 'minguez-jean-marie'), (252, 'Cuveele', NULL, NULL, NULL, '', NULL, 'cuveele'), (253, 'Caballero', 'Tatto', NULL, NULL, 'Mexique', NULL, 'caballero-tatto'), (254, 'Turf', NULL, '1966-08-22 00:00:00', NULL, 'France', NULL, 'turf'), (255, 'Gaudin', 'Nadège', NULL, NULL, '', NULL, 'gaudin-nadege'), (256, 'Raule', NULL, '1971-11-10 00:00:00', NULL, '', NULL, 'raule'), (257, '<NAME>', 'Roger', '1977-07-06 00:00:00', NULL, 'Espagne', 'Roger', 'roger-ibanez-ugena-roger'), (258, 'D''Haene', 'Charles', NULL, NULL, '', NULL, 'd-haene-charles'), (259, '<NAME>', 'Étienne', '1966-12-14 00:00:00', NULL, 'Madagascar', NULL, 'le-roux-etienne'), (260, 'Brizard', 'Jérôme', NULL, NULL, '', NULL, 'brizard-jerome'), (261, 'Desberg', 'Stephen', '1954-09-10 00:00:00', NULL, 'Belgique', NULL, 'desberg-stephen'), (262, 'Marini', 'Enrico', '1969-08-13 00:00:00', NULL, 'Suisse', NULL, 'marini-enrico'), (263, 'Felicetti', 'Stella', NULL, NULL, '', NULL, 'felicetti-stella'), (264, 'Bourgeon', 'François', '1945-07-05 00:00:00', NULL, 'France', NULL, 'bourgeon-francois'), (265, 'Vasseur', 'Didier', '1958-09-29 00:00:00', NULL, 'France', 'Tronchet', 'tronchet-vasseur-didier'), (266, '<NAME>', '<NAME>', '1944-12-13 00:00:00', NULL, 'Brésil', 'Leo', 'leo-de-oliveira-luiz-eduardo'), (267, 'Marchal', 'Bertrand', '1974-05-01 00:00:00', NULL, 'Belgique', NULL, 'marchal-bertrand'), (268, 'Bouët', 'Sébastien', NULL, NULL, '', NULL, 'bouet-sebastien'), (269, '<NAME>', 'Juan', '1972-01-01 00:00:00', NULL, 'Espagne', NULL, 'diaz-canales-juan'), (270, 'Munuera', 'José-Luis', '1972-04-21 00:00:00', NULL, 'Espagne', NULL, 'munuera-jose-luis'), (271, 'Sédyas', NULL, NULL, NULL, '', NULL, 'sedyas'), (272, '<NAME>', NULL, NULL, NULL, '', NULL, 'moscow-eye'), (273, 'Gaudin', 'Jean-Charles', '1963-01-01 00:00:00', NULL, 'France', NULL, 'gaudin-jean-charles'), (274, 'Picaud', 'Christophe', '1969-01-01 00:00:00', NULL, 'France', NULL, 'picaud-christophe'), (275, 'Alquier', 'Fabien', NULL, NULL, '', NULL, 'alquier-fabien'), (276, 'Hobb', 'Robin', NULL, NULL, 'Usa', NULL, 'hobb-robin'), (277, 'Sieurac', 'Laurent', '1974-03-06 00:00:00', NULL, 'France', NULL, 'sieurac-laurent'), (278, 'Graffet', 'Didier', '1970-01-01 00:00:00', NULL, 'France', NULL, 'graffet-didier'), (279, 'Herik', 'Hanna', NULL, NULL, '', NULL, 'herik-hanna'), (280, 'Hairsine', 'Trevor', NULL, NULL, '', NULL, 'hairsine-trevor'), (281, 'Blengino', 'Luca', '1978-01-01 00:00:00', NULL, 'Italie', NULL, 'blengino-luca'), (282, 'Sarchione', 'Antonio', '1969-06-01 00:00:00', NULL, 'Italie', NULL, 'sarchione-antonio'), (283, 'Pieri', 'Lorenzo', NULL, NULL, '', NULL, 'pieri-lorenzo'), (284, 'Sibran', 'Anne', '1963-02-03 00:00:00', NULL, 'France', NULL, 'sibran-anne'), (285, ' Petiqueux', 'Jérémy', '1984-10-26 00:00:00', NULL, 'Belgique', 'Jérémy', 'jeremy-petiqueux-jeremy'), (286, 'Fructus', 'Nicolas', '1970-06-24 00:00:00', NULL, 'France', NULL, 'fructus-nicolas'), (287, 'Lemire', 'Jeff', '1976-01-01 00:00:00', NULL, '', NULL, 'lemire-jeff'), (288, 'Blanchet', 'Pascal', '1980-01-01 00:00:00', NULL, 'Québec', NULL, 'blanchet-pascal'), (289, '<Bichromie>', NULL, NULL, NULL, '', NULL, 'bichromie'), (290, 'Shaw', 'Dash', '1983-04-06 00:00:00', NULL, 'états-unis', NULL, 'shaw-dash'), (291, 'Vidberg', 'Martin', '1980-03-20 00:00:00', NULL, 'France', NULL, 'vidberg-martin'), (292, 'Wild', 'Nicolas', '1977-01-01 00:00:00', NULL, 'France', NULL, 'wild-nicolas'), (293, 'Delisle', 'Guy', '1966-01-19 00:00:00', NULL, 'Québec', NULL, 'delisle-guy'), (294, 'Doxiadis', 'Apostolos', NULL, NULL, 'Grèce', NULL, 'doxiadis-apostolos'), (295, 'Papadatos', 'Alecos', NULL, NULL, 'Grèce', NULL, 'papadatos-alecos'), (296, '<NAME>', 'Annie', NULL, NULL, 'France', NULL, 'di-donna-annie'), (297, 'Papadimitriou', 'Christos', NULL, NULL, 'Grèce', NULL, 'papadimitriou-christos'), (298, 'Dauzat', 'Pierre-Emmanuel', NULL, NULL, '', NULL, 'dauzat-pierre-emmanuel'), (299, 'Doxat', 'Eric', NULL, NULL, '', NULL, 'doxat-eric'), (300, ' Ladrönn', '<NAME>', '1967-01-01 00:00:00', NULL, 'Mexique', 'Ladrönn, José', 'ladroenn-jose-ladroenn-jose-omar'), (301, 'Costa', 'Marianne', NULL, NULL, 'France', NULL, 'costa-marianne'), (302, 'Facio', 'Sebastian', NULL, NULL, '', NULL, 'facio-sebastian'), (303, 'Bourgier', 'Éric', '1975-12-11 00:00:00', NULL, 'France', NULL, 'bourgier-eric'), (304, ' Mitildjian', 'Jean-Blaise', '1953-01-01 00:00:00', NULL, 'France', 'Djian', 'djian-mitildjian-jean-blaise'), (305, 'Nouhaud', 'David', '1976-01-22 00:00:00', NULL, 'France', NULL, 'nouhaud-david'), (306, 'Salomone', 'Paul', '1981-01-01 00:00:00', NULL, 'France', NULL, 'salomone-paul'), (307, 'Lanzac', 'Abel', NULL, NULL, 'France', NULL, 'lanzac-abel'), (308, 'Sapin', 'Clémence', NULL, NULL, '', NULL, 'sapin-clemence'), (309, 'Ricci', 'Roberto', '1976-09-21 00:00:00', NULL, 'Italie', NULL, 'ricci-roberto'), (310, 'Gonord', 'Didier', NULL, NULL, '', NULL, 'gonord-didier'); -- -------------------------------------------------------- -- -- Structure de la table `book` -- CREATE TABLE IF NOT EXISTS `book` ( `id` int(11) NOT NULL, `numVolume` int(11) DEFAULT NULL, `titre` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `editeur` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `reference` varchar(45) COLLATE utf8_unicode_ci DEFAULT NULL, `couverture` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `nbPage` int(11) DEFAULT NULL, `stock` int(11) DEFAULT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `serie_id` int(11) DEFAULT NULL, `author_id` int(11) DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=563 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `book` -- INSERT INTO `book` (`id`, `numVolume`, `titre`, `editeur`, `reference`, `couverture`, `nbPage`, `stock`, `slug`, `serie_id`, `author_id`) VALUES (2, 3, 'Ce qui est en bas', 'Les Humanoïdes Associés', '2-7316-0241-4', 'johndifoolt3cequiestenbas1983.jpg', 60, 3, 'ce-qui-est-en-bas', 1, 3), (3, 5, '5ème essence : galaxie qui songe', 'Les Humanoïdes Associés', '2-7316-0531-6', 'johndifoolt5la5essence1galaxiequisonge1988.jpg', 45, 3, '5eme-essence-galaxie-qui-songe', 1, 3), (4, 6, '5ème essence : La planète Difool', 'Les Humanoïdes Associés', '2-7316-0532-4', 'johndifoolt6la5essence2laplanetedifool1988.jpg', 46, 7, '5eme-essence-la-planete-difool', 1, 3), (5, 1, 'L''<NAME>', 'Les Humanoïdes Associés', '2-7316-0084-5', 'johndifoolt1lincalnoir1981.jpg', 50, 5, 'l-incal-noir', 1, 3), (6, 2, 'L''<NAME>', 'Les Humanoïdes Associés', '2-7316-0135-3', 'johndifoolt2lincallumiere1982.jpg', 52, 4, 'l-incal-lumiere', 1, 3), (7, 4, 'Ce qui est en haut', 'Les Humanoïdes Associés', '2-7316-0361-5', 'johndifoolt4cequiestenhaut1985.jpg', 57, 2, 'ce-qui-est-en-haut', 1, 3), (8, 1, '<NAME>', 'Les Humanoïdes Associés', '2-73161-197-9', 'incalavant1.jpg', 47, 5, 'adieu-le-pere', 2, 5), (9, 2, 'Détective privé de classe ''R''', 'Les Humanoïdes Associés', '2-7316-1198-7', 'Avantlincal02_01062002.jpg', 48, 1, 'detective-prive-de-classe-r', 2, 5), (10, 3, 'Croot', 'Les Humanoïdes Associés', '2-7316-1438-2', 'Avantlincal03_27062002.jpg', 50, 1, 'croot', 2, 5), (11, 4, 'Anarcopsychotiques', 'Les Humanoïdes Associés', '2-73161-439-0', 'incalavant4.jpg', 46, 4, 'anarcopsychotiques', 2, 5), (12, 5, 'Ouisky, SPV & homéoputes', 'Les Humanoïdes Associés', '2-7316-1440-4', 'incalavant5.jpg', 48, 2, 'ouisky-spv-homeoputes', 2, 5), (13, 6, 'Suicide allée', 'Les Humanoïdes Associés', '2-7316-1441-2', 'incalavantcouv06a.jpg', 46, 3, 'suicide-allee', 2, 5), (14, 1, 'Fils de Flingue', 'Les Humanoïdes Associés', '2-73161-083-2', 'JuanSolo01.jpg', 58, 4, 'fils-de-flingue', 3, 9), (15, 2, 'Les Chiens du pouvoir', 'Les Humanoïdes Associés', '2-73161-134-0', 'JuanSolo02.jpg', 52, 6, 'les-chiens-du-pouvoir', 3, 9), (16, 3, 'La Chair et la gale', 'Les Humanoïdes Associés', '2-7316-1253-3', 'JuanSolo03.jpg', 52, 7, 'la-chair-et-la-gale', 3, 9), (18, 4, 'Saint Salaud', 'Les Humanoïdes Associés', '2-7316-1390-4', 'JuanSolo04.jpg', 52, 8, 'saint-salaud', 3, 9), (19, 1, '<NAME>', 'Casterman', '2-203-38916-8', 'tueur01aS040104_04012004.jpg', 62, 3, 'long-feu', 4, 12), (20, 2, 'L''engrenage', 'Casterman', '2-203-38941-9', 'TueurLe02.jpg', 62, 1, 'l-engrenage', 4, 12), (21, 3, 'La dette', 'Casterman', '2-203-38966-4', 'tueur03.jpg', 54, 2, 'la-dette', 4, 12), (22, 4, 'Les liens du sang', 'Casterman', '2-203-389982', 'tueur04.jpg', 54, 4, 'les-liens-du-sang', 4, 12), (23, 5, 'La mort dans l''âme', 'Casterman', '2-203-38600-2', 'tueur05couv.jpg', 54, 5, 'la-mort-dans-l-ame', 4, 12), (24, 6, '<NAME>', 'Casterman', '978-2-203-00181-7', 'tueur06.jpg', 54, 2, 'modus-vivendi', 4, 12), (25, 1, 'Joshua', 'Delcourt', '2-906187-87-9', 'pouvoirinnocents01acouv.jpg', 64, 2, 'joshua', 5, 14), (26, 3, 'Providence', 'Delcourt', '2-84055-077-6', 'pouvoirdesinnocents03couv.jpg', 56, 3, 'providence', 5, 14), (27, 4, 'Jessica', 'Delcourt', '2-84055-183-7', 'pouvoirinnocents04couv.jpg', 56, 2, 'jessica', 5, 14), (28, NULL, 'L''outremangeur', 'Casterman', '2-203-38913-3', 'outremangeur.jpg', 56, 3, 'l-outremangeur', 6, 17), (29, NULL, 'Sang des voyous (Le)', 'Casterman', '2-203-36606-0', 'SangDesVoyousLe_08092006.jpg', 64, 4, 'sang-des-voyous-le', 7, 19), (30, NULL, 'Lettres et Carnets du front 1914-1918', 'Soleil Productions / France Inter', '2-84946-597-6', 'parolesdepoilus.jpg', 79, 5, 'lettres-et-carnets-du-front-1914-1918', 8, 20), (31, NULL, 'Un homme est mort', 'Futuropolis', '2-75480-010-7', 'unhommeestmort01.jpg', 62, 6, 'un-homme-est-mort', 9, 22), (32, 2, '<NAME>', 'Casterman', '2-203-33415-0', 'giuseppebergman02.jpg', 166, 7, 'jour-de-colere', 10, 23), (33, NULL, 'L''intégrale', 'Vents d''Ouest', '2-7493-0181-5', 'ibicusint.jpg', 530, 2, 'l-integrale', 11, 25), (34, 1, 'Quelque part entre les ombres', 'Dargaud', '2-205-04965-8', 'Blacksad_01_15161.jpg', 46, 4, 'quelque-part-entre-les-ombres', 12, 27), (35, 2, 'Arctic-Nation', 'Dargaud', '2-205-05199-7', 'Blacksad_02_24600.jpg', 54, 5, 'arctic-nation', 12, 27), (36, 3, '<NAME>', 'Dargaud', '2-205-05564-X', 'blacksadtome03.jpg', 54, 6, 'ame-rouge', 12, 27), (37, 1, 'Volume 1', 'Gallimard', '2-07-057311-7', 'aya1couvrc9_51991.jpg', 96, 2, 'volume-1', 13, 29), (39, 1, 'Aussi loin que je me rappelle...', 'Casterman', '2-203-36501-3', 'anitabombacou01.JPG', 44, 4, 'aussi-loin-que-je-me-rappelle', 15, 33), (40, 2, 'C''est pas parceque je suis pauvre...', 'Casterman', '2-203-36502-1', 'anitabombacou02.JPG', 44, 3, 'c-est-pas-parceque-je-suis-pauvre', 15, 33), (41, 3, 'Un jour, j''ai arrêté de bosser...', 'Casterman', '2-203-36503-X', 'anitabombacouv03.jpg', 44, 2, 'un-jour-j-ai-arrete-de-bosser', 15, 33), (42, 4, 'La vie est trop courte ...', 'Casterman', '2-203-36504-8', 'anitabombacouv04.jpg', 44, 2, 'la-vie-est-trop-courte', 15, 33), (43, 1, '<NAME>', 'Vents d''Ouest', '2-86967-751-0', 'kucek01a.jpg', 46, 5, 'princesse-salma', 16, 35), (44, 2, '<NAME>', 'Vents d''Ouest', '2-86967-752-9', 'kucek02a.jpg', 46, 6, 'kanchack-le-fourbe', 16, 35), (45, 3, 'L''élu', 'Vents d''Ouest', '2-86967-753-7', 'kucek03a.jpg', 46, 7, 'l-elu', 16, 35), (46, 1, 'Où le regard ne porte pas...', 'Dargaud', '2-205-05092-3', 'ouleregardneportepascouv01.jpg', 94, 1, 'ou-le-regard-ne-porte-pas', 17, 35), (47, 2, 'Où le regard ne porte pas...', 'Dargaud', '2-205-05098-2', 'OuLeRegardNePortePas02.jpg', 96, 2, 'ou-le-regard-ne-porte-pas', 17, 35), (48, 1, 'Un ventre aride', 'Glénat', '2-7234-3256-4', 'hariticouv01.jpg', 46, 3, 'un-ventre-aride', 18, 38), (49, 2, 'Le fruit de nos entrailles', 'Glénat', '2-7234-3538-5', 'hariticouv02.JPG', 46, 2, 'le-fruit-de-nos-entrailles', 18, 38), (50, 3, 'Toutes les sèves de l''aurore', 'Glénat', '2-7234-4327-2', 'hariti03_39329.jpg', 46, 1, 'toutes-les-seves-de-l-aurore', 18, 38), (51, NULL, 'Secteur 7', 'Glénat', '2-7234-4863-0', 'Secteur7_09122005.jpg', 56, 5, 'secteur-7', 19, 40), (52, NULL, 'Mystère Ovale', 'Glénat', '2-7234-3963-1', 'MystereOvale_09042004.jpg', 54, 3, 'mystere-ovale', 20, 41), (53, 1, 'Rien ou presque', 'Glénat', '2-7234-3672-1', 'akarus01.jpg', 52, 4, 'rien-ou-presque', 21, 42), (54, 2, 'Dors, Petite Sœur', 'Glénat', '2-7234-4087-7', 'akarus02_30102003.jpg', 54, 5, 'dors-petite-soeur', 21, 42), (55, 1, 'L''épouvantail pointeur', 'Glénat', '2-7234-3740-X', 'epouvpoint.jpg', 54, 6, 'l-epouvantail-pointeur', 22, 44), (56, 1, 'La chrysalide diaprée', 'Vents d''Ouest', '2-86967-551-8', 'mangecoeur01a.JPG', 48, 7, 'la-chrysalide-diapree', 23, 46), (57, 2, 'Dans le jeu des miroirs', 'Vents d''Ouest', '2-86967-552-6', 'mangecoeur02a.JPG', 48, 4, 'dans-le-jeu-des-miroirs', 23, 46), (58, 3, 'Le Rêve d''Argemme', 'Vents d''Ouest', '2-86967-532-1', 'mangecoeur03a.JPG', 48, 3, 'le-reve-d-argemme', 23, 46), (60, NULL, 'Black Hole', 'Delcourt', '2-7560-0379-4', 'BlackHolein_11112006.jpg', 361, 7, 'black-hole', 26, 50), (61, 5, 'Spirit', 'Les Humanoïdes Associés', '2-7316-0045-4', 'spiritle05.jpg', 60, 5, 'spirit', 27, 51), (62, 1, 'The hard goodbye', 'Dark horse books', '1-593-07293-7', 'SinCity1_16032008_163359.jpg', 200, 4, 'the-hard-goodbye', 28, 52), (63, 4, 'That yellow bastard', 'Dark horse books', '1-593-07296-1', 'SinCity4_16032008_163353.jpg', 223, 2, 'that-yellow-bastard', 28, 52), (64, 5, 'Family values', 'Dark horse books', '1-593-07297-X', 'SinCity5_16032008_163347.jpg', 126, 5, 'family-values', 28, 52), (65, 2, 'A dame to kill for', 'Dark horse books', '1-593-07293-7', 'SinCity1_16032008_163359.jpg', 200, 1, 'a-dame-to-kill-for', 28, 52), (66, 3, 'The big fat kill', 'Dark horse books', '1-593-07293-7', 'SinCity1_16032008_163359.jpg', 200, 1, 'the-big-fat-kill', 28, 52), (67, 6, 'Booze, broads and bullets', 'Dark horse books', NULL, 'SinCity1_16032008_163359.jpg', 200, 4, 'booze-broads-and-bullets', 28, 52), (68, 7, 'Hell and back', 'Dark horse books', NULL, 'SinCity1_16032008_163359.jpg', 200, 2, 'hell-and-back', 28, 52), (69, NULL, 'NonNonBâ', 'Cornélius', '2-915492-25-5', 'Nonnonba_09102006.jpg', 420, 3, 'nonnonba', 29, 53), (70, NULL, 'Le Gourmet Solitaire', 'Casterman', '2-203-37334-2', 'GourmetSolitaireLe.jpg', 198, 4, 'le-gourmet-solitaire', 30, 55), (71, 2, 'Paul a un travail d''été', 'Les éditions de la Pastèque', '2-922585-08-5', 'paul02.jpg', 152, 6, 'paul-a-un-travail-d-ete', 31, 56), (72, 3, 'Paul en appartement', 'Les éditions de la Pastèque', '2-922585-22-0', 'Paul3_23062004.jpg', 104, 7, 'paul-en-appartement', 31, 56), (73, 4, 'Paul dans le métro', 'Les éditions de la Pastèque', '2-922585-27-1', 'Paul4_24042005_46320.jpg', 91, 8, 'paul-dans-le-metro', 31, 56), (74, 1, 'Paul à la campagne', 'Les éditions de la pastèque', '978-2-922585-01-8', 'Paul1a_24022008_153143.jpg', 48, 3, 'paul-a-la-campagne', 31, 56), (75, 1, 'Celui qui parle aux fantômes', 'Soleil Productions', '2-84565-412-X', 'SagahNah01_17122002.jpg', 44, 1, 'celui-qui-parle-aux-fantomes', 32, 57), (76, 2, 'La confrérie des Tueurs de Monstres', 'Soleil Productions', '2-84565-783-8', 'sagahnah02couv.jpg', 46, 2, 'la-confrerie-des-tueurs-de-monstres', 32, 57), (77, NULL, 'Le moral des troupes', '<NAME>', '2-922827-14-3', 'MoralDesTroupesLe_24042005.jpg', 158, 4, 'le-moral-des-troupes', 33, 58), (78, NULL, 'Réédition très très augmentée', 'Les 400 Coups', '2-922827-27-5', 'QuelquesPeluresb_24122006.jpg', 126, 5, 'reedition-tres-tres-augmentee', 34, 58), (79, NULL, 'Résine de synthèse', '<NAME>', '2-922827-03-8', 'ResineDeSynthese_24042005.jpg', 90, 2, 'resine-de-synthese', 35, 58), (81, NULL, 'Guide de la survie en Entreprise', 'Audie', '2-85815-434-1', 'GuideDeLaSurvieEnEntreprise_13052005.jpg', 45, 2, 'guide-de-la-survie-en-entreprise', 36, 59), (82, 1, '<NAME> - Le temps de chien', 'Dargaud', '2-205-05291-8', 'UneAventureRocambolesqueDe01.jpg', 46, 3, 'sigmund-freud-le-temps-de-chien', 37, 59), (83, 1, 'Les cosmonautes du futur', 'Dargaud', '2-205-04913-5', 'cosmonautesdufutur1.jpg', 46, 2, 'les-cosmonautes-du-futur', 38, 59), (84, 2, 'Le retour', 'Dargaud', '2-205-05078-8', 'cosmonautesdufutur2.jpg', 46, 3, 'le-retour', 38, 59), (85, 3, 'Résurrection', 'Dargaud', '2-205-05293-4', 'cosmonautesdufutur03_08012004.jpg', 46, 4, 'resurrection', 38, 59), (88, 1, 'Total souk pour <NAME>', 'Dargaud', '2-205-05686-7', 'nicoumouk01_45629.jpg', 46, 5, 'total-souk-pour-nic-oumouk', 39, 59), (89, 1, 'La vraie vie', 'Dargaud', '2-205-05819-3', 'RetourALaTerreLe1b_13082005.jpg', 46, 6, 'la-vraie-vie', 40, 59), (90, 4, 'Le déluge', 'Dargaud', '2-205-05814-2', 'RetourALaTerreLe4_31082006.jpg', 46, 7, 'le-deluge', 40, 59), (91, 1, 'Le combat ordinaire', 'Dargaud', '2-205-05425-2', 'combatordinaire01.jpg', 50, 2, 'le-combat-ordinaire', 41, 59), (92, 2, 'Les quantités négligeables', 'Dargaud', '2-205-05589-5', 'combatordinaire02.jpg', 60, 4, 'les-quantites-negligeables', 41, 59), (93, 3, 'Ce qui est précieux', 'Dargaud', '2-205-05791-X', 'CombatOrdinaireLe03.jpg', 60, 5, 'ce-qui-est-precieux', 41, 59), (94, 4, 'Planter des clous', 'Dargaud', '978-2-205-06140-6', 'combatordinaire04_72375.jpg', 60, 6, 'planter-des-clous', 41, 59), (95, 7, 'La java bleue', 'L''Association', '2-84414-180-3', 'Pascinhs_29112005.jpg', 74, 2, 'la-java-bleue', 42, 64), (96, NULL, 'La fille du professeur', 'Dupuis', '2-8001-3454-2', 'filleduprofesseura_15102003.jpg', 60, 4, 'la-fille-du-professeur', 43, 65), (97, 1, '<NAME>', 'Dargaud', '2-205-05820-7', 'chatdurabin01libe.jpg', 46, 3, 'la-bar-mitsva', 44, 64), (98, 2, 'Le Malka des Lions', 'Dargaud', '2-205-05369-8', 'chatdurabin02_07112002.jpg', 46, 2, 'le-malka-des-lions', 44, 64), (99, 3, 'L''exode', 'Dargaud', '2-205-05497-X', 'chatdurabbin03.JPG', 46, 2, 'l-exode', 44, 64), (100, 4, '<NAME>', 'Dargaud', '2-205-05725-1', 'chatdurabbin04couv.JPG', 48, 5, 'le-paradis-terrestre', 44, 64), (101, 5, '<NAME>', 'Dargaud', '2-205-05868-1', 'ChatDuRabbinLe05.jpg', 80, 6, 'jerusalem-d-afrique', 44, 64), (102, 1, '<NAME>', 'Audie', '2-85815-497-X', 'chezfrancisque01_58611.jpg', 48, 7, 'chez-francisque', 45, 59), (103, 2, 'Les nuits les plus blanches', 'Les Humanoïdes Associés', '2-7316-0986-9', 'monsieurjean02.jpg', 45, 1, 'les-nuits-les-plus-blanches', 46, 69), (104, 3, 'La fuite des cerveaux', 'Dargaud', '2-205-05867-3', 'Supermurgeman3_07102006.jpg', 48, 2, 'la-fuite-des-cerveaux', 47, 70), (105, 12, 'La vie comme elle vient', 'Dargaud', '2-205-05385-X', 'FormidablesAventuresDeLapinotLes8_03072004.jpg', 44, 3, 'la-vie-comme-elle-vient', 48, 61), (106, 9, 'Vacances de printemps', 'Dargaud', '2-205-04669-1', 'lapinot05.jpg', 46, 2, 'vacances-de-printemps', 48, 61), (107, 5, 'Pichenettes', 'Dargaud', '978-2-205-06000-3', 'LapinotLesFormidablesAventuresDe2a_22012007.jpg', 46, 1, 'pichenettes', 48, 61), (108, 1, 'La Vierge du bordel', 'Dargaud', '2-205-05811-8', 'misspastouche01couv.JPG', 46, 5, 'la-vierge-du-bordel', 49, 74), (109, 2, 'Du sang sur les mains', 'Dargaud', '978-2205-05902-1', 'misspastouche02.JPG', 46, 3, 'du-sang-sur-les-mains', 49, 74), (110, 1, 'Nathalie', 'Dargaud', '978-2-205-05798-0', 'Gus01_60211.jpg', 78, 4, 'nathalie', 50, 75), (111, 1, 'Londres', 'Vents d''Ouest', '2-86967-115-5', 'PeterPan01.jpg', 48, 5, 'londres', 51, 77), (112, 2, 'Opikanoba', 'Vents d''Ouest', '2-86967-191-1', 'PeterPan02.jpg', 58, 6, 'opikanoba', 51, 77), (113, 4, 'Mains rouges', 'Vents d''Ouest', '2-86967-520-8', 'PeterPan04.jpg', 56, 7, 'mains-rouges', 51, 77), (114, 5, 'Crochet', 'Vents d''Ouest', '2-86967-849-5', 'PeterPan05.jpg', 50, 4, 'crochet', 51, 77), (115, 6, 'Destins', 'Vents d''Ouest', '2-7493-0127-0', 'PeterPan06.jpg', 46, 3, 'destins', 51, 77), (116, 3, 'Tempête', 'Vents d''Ouest', '2-86967-292-6', 'PeterPan03.jpg', 57, 7, 'tempete', 51, 77), (117, 1, 'A la recherche de peter pan', 'Le lombard', '2-8036-590-8', 'ALaRechercheDePeterPan1c_11022008_172842.jpg', 52, 5, 'a-la-recherche-de-peter-pan', 52, 78), (118, 2, 'A la recherche de peter pan', 'Le Lombard', '2-8036-591-9', 'ALaRechercheDePeterPan2c_11022008_172617.jpg', 67, 4, 'a-la-recherche-de-peter-pan', 52, 78), (119, 3, 'Révolution, révolution...', 'Glénat', '2-7234-1516-3', 'sambrecouv03.JPG', 50, 2, 'revolution-revolution', 53, 79), (120, 5, 'Maudit soit le fruit de ses entrailles...', 'Glénat', '2-7234-3548-2', 'sambre05.jpg', 44, 5, 'maudit-soit-le-fruit-de-ses-entrailles', 53, 79), (121, 1, 'Plus ne m''est rien...', 'Glénat', '2-7234-0641-5', 'sambrecouv01.JPG', 47, 1, 'plus-ne-m-est-rien', 53, 79), (122, 2, 'Je sais que tu viendras...', 'Glénat', '2-7234-1139-7', 'sambrecouv02.JPG', 46, 1, 'je-sais-que-tu-viendras', 53, 79), (123, 4, 'Faut-il que nous mourions ensemble...', 'Glénat', '2-7234-2000-0', 'sambrecouv04.JPG', 53, 4, 'faut-il-que-nous-mourions-ensemble', 53, 79), (124, 1, '<NAME>, Chapitre 1 - Printemps 1830', 'Futuropolis', '978-2-7548-0057-0', 'guerredessambre01.jpg', 54, 2, 'hugo-iris-chapitre-1-printemps-1830', 54, 81), (125, 4, 'L''oeuf des ténébres', 'Dargaud', '2-205-03460-X', 'QuetedelOiseauduTempsLa04.jpg', 62, 3, 'l-oeuf-des-tenebres', 55, 77), (126, 5, '<NAME>', 'Dargaud', '2-205-04394-3', 'QuetedelOiseauduTempsLa05.jpg', 62, 4, 'l-ami-javin', 55, 84), (127, 6, 'Le grimoire des dieux', 'Dargaud', '978-2-205-05633-4', 'quetedeloiseaudutemps06.jpg', 64, 6, 'le-grimoire-des-dieux', 55, 85), (129, 1, 'La conque de Ramor', 'Dargaud', '2-205-02406-X', 'QuetedelOiseauduTempsLa01.jpg', 46, 7, 'la-conque-de-ramor', 55, 77), (130, 2, 'Le temple de l''oubli', 'Dargaud', '2-205-02576-7', 'QuetedelOiseauduTempsLa02.jpg', 47, 8, 'le-temple-de-l-oubli', 55, 77), (131, 3, 'Le Rige', 'Dargaud', '2-205-02952-5', 'QuetedelOiseauduTempsLa03.jpg', 58, 3, 'le-rige', 55, 77), (132, 2, 'Le grand trou', 'Les Humanoïdes Associés', '2-7316-6340-5', 'koma02.jpg', 46, 1, 'le-grand-trou', 56, 89), (133, 3, 'Comme dans les westerns', 'Les Humanoïdes Associés', '2-7316-1648-2', 'Koma3_08032005.jpg', 46, 2, 'comme-dans-les-westerns', 56, 89), (134, 1, 'La voix des cheminées', 'Les Humanoïdes Associés', '2-7316-6318-9', 'koma01_07102003.jpg', 46, 4, 'la-voix-des-cheminees', 56, 89), (135, 4, 'L''Hôtel', 'Les Humanoïdes Associés', '2-7316-1792-6', 'Koma4_23052006.jpg', 46, 5, 'l-hotel', 56, 89), (136, 5, 'Le duel', 'Les Humanoïdes Associés', '978-2-7316-1944-7', 'koma05.jpg', 46, 2, 'le-duel', 56, 89), (137, 1, 'Volume 1', 'Atrabile', '2-940329-03-6', 'Lupuscouv01.jpg', 92, 2, 'volume-1', 57, 89), (138, 2, 'Volume 2', 'Atrabile', '2-940329-10-9', 'lupus02_21012004.jpg', 92, 3, 'volume-2', 57, 89), (139, 3, 'Volume 3', 'Atrabile', '2-940329-18-4', 'lupus03couv.jpg', 92, 2, 'volume-3', 57, 89), (140, 4, 'Volume 4', 'Atrabile', '2-940329-23-0', 'lupus04.jpg', 108, 3, 'volume-4', 57, 89), (144, 4, 'Le mystère de l''île étrange', 'Delcourt', '2-84055-335-X', 'DeCapeEtDeCrocs4a_13032006.jpg', 46, 4, 'le-mystere-de-l-ile-etrange', 58, 92), (145, 5, '<NAME>', 'Delcourt', '2-84055-578-6', 'DeCapeEtDeCrocs5a_13032006.jpg', 46, 5, 'jean-sans-lune', 58, 92), (148, 8, 'Le maître d''armes', 'Delcourt', '978-2-7560-0318-4', 'decapeetdecrocs08_68195.jpg', 46, 6, 'le-maitre-d-armes', 58, 92), (151, NULL, 'Les petits ruisseaux', 'Futuropolis', '2-7548-0016-6', 'PetitsRuisseauxLes_06052006.jpg', 92, 7, 'les-petits-ruisseaux', 61, 25), (155, NULL, 'Intégrale', 'Delcourt', '2-84055-263-9', 'VPourVendettacintegrale.jpg', 272, 2, 'integrale', 63, 103), (160, 2, '<NAME>', 'Dupuis', '2-8001-3540-9', 'photographele02_38982.jpg', 76, 4, 'tome-2', 65, 65), (161, 3, '<NAME>', 'Dupuis', '2-8001-3544-1', 'photographele03_53163.jpg', 96, 5, 'tome-3', 65, 65), (162, NULL, 'Notes pour une histoire de guerre', 'Actes Sud', '2-7427-5352-4', 'notespourunehistoiredeguerre.JPG', 96, 6, 'notes-pour-une-histoire-de-guerre', 66, 107), (163, 1, 'Riyad-sur-Seine', 'Gallimard', '978-2-07-057907-5', 'RG01.jpg', 104, 2, 'riyad-sur-seine', 67, 89), (164, 2, 'Bangkok-Belleville', 'Gallimard', '978-2-07-061527-8', 'Rg2_18032008_201939.jpg', 104, 4, 'bangkok-belleville', 67, 89), (165, NULL, 'Lucille', 'Futuropolis', '2-7548-0051-4', 'Lucille_31012006.jpg', 544, 3, 'lucille', 68, 109), (166, NULL, 'Le réducteur de vitesse', 'Dupuis', '2-8001-2801-1', 'ReducteurDeVitesseLeb_14082007_174306.jpg', 76, 2, 'le-reducteur-de-vitesse', 69, 75), (167, 1, 'Le roi de Paris', 'Audie', '2-85815-263-2', 'blotch01.jpg', 45, 2, 'le-roi-de-paris', 70, 110), (168, 2, 'Face à son destin', 'Audie', '2-85815-286-1', 'blotch02couv.jpg', 51, 5, 'face-a-son-destin', 70, 110), (169, NULL, 'Péplum', 'Cornélius', '2-909990-33-8', 'Pepluma_13062004.jpg', 112, 6, 'peplum', 71, 110), (170, 26, 'Le Royaume sous le Sable', 'Le Lombard', '2-8036-1665-3', 'thorgal26.jpg', 46, 7, 'le-royaume-sous-le-sable', 72, 112), (171, 27, 'Le barbare', 'Le Lombard', '2-80361-775-7', 'thorgal27.jpg', 46, 1, 'le-barbare', 72, 112), (172, 28, '<NAME>', 'Le Lombard', '2-80362-003-0', 'thorgal28.jpg', 46, 2, 'kriss-de-valnor', 72, 112), (173, 29, 'Le sacrifice', 'Le Lombard', '2803621983', 'Thorgal29_24112006.jpg', 46, 3, 'le-sacrifice', 72, 112), (174, 30, '<NAME>', 'Le Lombard', '978-2-80362-265-8', 'thorgal30.jpg', 46, 2, 'moi-jolan', 72, 112), (175, 1, 'La magicienne trahie', 'Lombard', '2-8036-0358-6', 'thorgal01a.jpg', 46, 1, 'la-magicienne-trahie', 72, 112), (176, 2, 'L''île des mers gelées', 'Lombard', '2-8036-0359-4', 'Thorgal2b_30012005.jpg', 46, 5, 'l-ile-des-mers-gelees', 72, 112), (177, 3, 'Les trois vieillards du pays d''Aran', 'Le Lombard', '2-8036-0001-3', 'Thorgal3a_10022005.jpg', 46, 3, 'les-trois-vieillards-du-pays-d-aran', 72, 112), (178, 4, 'La galère noire', 'Le Lombard', '2-8036-0026-9', 'Thorgal4b_24082005.jpg', 46, 4, 'la-galere-noire', 72, 112), (179, 5, 'Au-delà des ombres', 'Le Lombard', '2-8036-0407-8', 'Thorgal5a_12062004.jpg', 46, 5, 'au-dela-des-ombres', 72, 112), (180, 6, 'La chute de <NAME>', 'Le Lombard', '2-8036-0451-5', 'Thorgal06a.jpg', 46, 6, 'la-chute-de-brek-zarith', 72, 112), (181, 7, 'L''enfant des étoiles', 'Le Lombard', '2-8036-0460-4', 'Thorgal07a.jpg', 46, 7, 'l-enfant-des-etoiles', 72, 112), (182, 8, 'Alinoë', 'Le Lombard', '2-8036-0482-5', 'Thorgal8b_24082005.jpg', 46, 4, 'alinoe', 72, 112), (183, 9, 'Les archers', 'Le Lombard', '2-80361-423-5', 'Thorgal09a.jpg', 46, 3, 'les-archers', 72, 112), (184, 10, 'Le pays Qâ', 'Le Lombard', '2-8036-0549-X', 'Thorgal10a_10022005.jpg', 46, 7, 'le-pays-qa', 72, 112), (185, 11, 'Les yeux de tanatloc', 'Le Lombard', '2-8036-0576-7', 'Thorgal11a_23022008_094737.jpg', 46, 5, 'les-yeux-de-tanatloc', 72, 112), (186, 12, 'La cité du dieu perdu', 'Lombard', '2-8036-0639-9', 'Thorgal12a.jpg', 46, 4, 'la-cite-du-dieu-perdu', 72, 112), (188, 14, 'Aaricia', 'Le Lombard', '2-8036-0745-X', 'Thorgal14a_10022005.jpg', 46, 2, 'aaricia', 72, 112), (189, 15, 'Le maître des montagnes', 'Le Lombard', '2-8036-0754-9', 'Thorgal15a_10022005.jpg', 46, 5, 'le-maitre-des-montagnes', 72, 112), (190, 16, 'Louve', 'Le Lombard', '2-8036-0845-6', 'Thorgal16a_10022005.jpg', 46, 1, 'louve', 72, 112), (191, 17, 'La gardienne des clés', 'Le Lombard', '2-8036-0932-0', 'Thorgal17a_10022005.jpg', 46, 1, 'la-gardienne-des-cles', 72, 112), (192, 18, 'L''épée-Soleil', 'Le Lombard', '2-8036-0988-6', 'Thorgal18a_10022005.jpg', 46, 4, 'l-epee-soleil', 72, 112), (193, 19, 'La forteresse invisible', 'Le Lombard', '2-8036-1052-3', 'Thorgal19a_23022008_103421.jpg', 46, 2, 'la-forteresse-invisible', 72, 112), (194, 21, 'La couronne d''ogotaï', 'Le Lombard', '2-8036-1161-9', 'Thorgal21a_23022008_104414.jpg', 46, 3, 'la-couronne-d-ogotai', 72, 112), (195, 22, 'Géants', 'Le Lombard', '2-8036-1220-8', 'Thorgal22a_23022008_104922.jpg', 46, 4, 'geants', 72, 112), (196, 23, 'La cage', 'Le Lombard', '2-8036-1275-5', 'thorgal23.jpg', 46, 6, 'la-cage', 72, 112), (197, 24, 'Arachnéa', 'Le Lombard', '2-8036-1362-X', 'thorgal24.jpg', 46, 7, 'arachnea', 72, 112), (198, 25, 'Le Mal bleu', 'Le Lombard', '2-8036-1414-6', 'thorgal25.jpg', 46, 8, 'le-mal-bleu', 72, 112), (199, 13, 'Entre terre et lumière', 'Le Lombard', '2-8036-0713-1', 'Thorgal13a_10022005.jpg', 46, 3, 'entre-terre-et-lumiere', 72, 112), (200, 1, 'L''<NAME>', 'Soleil Productions', '2-87764-257-7', 'lanfeustdetroy01fc_35653.jpg', 44, 1, 'l-ivoire-du-magohamoth', 73, 116), (201, 2, '<NAME>', 'Soleil Productions', '2-87764-306-9', 'lanfeustdetroy02ac_29435.jpg', 46, 2, 'thanos-l-incongru', 73, 116), (202, 3, '<NAME>', 'Soleil Productions', '2-87764-394-8', 'lanfeustdetroy03ac_29436.jpg', 52, 4, 'castel-or-azur', 73, 116), (203, 4, 'Le paladin d''Eckmül', 'Soleil Productions', '2-87764-566-5', 'lanfeustdetroy04ac_29437.jpg', 45, 5, 'le-paladin-d-eckmuel', 73, 116), (204, 5, 'Le frisson de l''haruspice', 'Soleil Productions', '2-87764-646-7', 'lanfeustdetroy05cof.jpg', 52, 2, 'le-frisson-de-l-haruspice', 73, 116), (205, 6, 'Cixi impératrice', 'Soleil Productions', '2-87764-795-1', 'lanfeustdetroy06cof.jpg', 46, 2, 'cixi-imperatrice', 73, 116), (206, 7, 'Les pétaures se cachent pour mourir', 'Soleil Productions', '2-87764-923-7', 'lanfeustdetroy07cof.jpg', 52, 3, 'les-petaures-se-cachent-pour-mourir', 73, 116), (207, 8, 'La bête fabuleuse', 'Soleil Productions', '2-84565-110-4', 'lanfeustdetroy08cof.jpg', 58, 2, 'la-bete-fabuleuse', 73, 116), (208, 1, 'Un, deux... Troy', 'Soleil Productions', '2-84946-125-3', 'LanfeustDesEtoiles01solo.jpg', 46, 3, 'un-deux-troy', 74, 116), (209, 2, 'Les tours de Meirrion', 'Soleil Productions', '2-84565-405-7', 'LanfeustDesEtoiles02.jpg', 46, 4, 'les-tours-de-meirrion', 74, 116), (210, 3, 'Les sables d''Abraxar', 'Soleil Productions', '2-84565-683-1', 'lanfeustdesetoilescouv03.jpg', 47, 5, 'les-sables-d-abraxar', 74, 116), (211, 4, 'Les buveurs de mondes', 'Soleil Productions', '2-84565-900-8', 'lanfeustdestoilesco04.jpg', 46, 6, 'les-buveurs-de-mondes', 74, 116), (212, 5, 'La chevauchée des bactéries', 'Soleil Productions', '2-84946-318-3', 'lanfeustdesetoiles05.jpg', 48, 7, 'la-chevauchee-des-bacteries', 74, 116), (213, 6, 'Le râle du flibustier', 'Soleil Productions', '2-84946-641-7', 'LanfeustDesEtoiles06.jpg', 51, 2, 'le-rale-du-flibustier', 74, 116), (214, 7, 'Le secret des Dolphantes', 'Soleil Productions', '978-2-302-00031-5', 'lanfeustdesetoiles07.jpg', 47, 4, 'le-secret-des-dolphantes', 74, 116), (215, 2, 'Les projets', 'Dargaud', '2-205-05732-4', 'RetourALaTerreLe2a_21012005.jpg', 45, 5, 'les-projets', 40, 59), (216, 3, 'Le vaste monde', 'Dargaud', '2-205-05625-5', 'RetourALaTerreLe3_11012005.jpg', 46, 6, 'le-vaste-monde', 40, 59), (217, 1, 'Les premiers mots', 'Dupuis', '2-8001-0781-2', 'bidouilleetviolette01.jpg', 41, 2, 'les-premiers-mots', 75, 117), (218, 2, 'Les jours sombres', 'Dupuis', '2-8001-0879-7', 'bidouilletviolette02.jpg', 47, 4, 'les-jours-sombres', 75, 117), (219, 3, 'La Reine des glaces', 'Dupuis', '2-8001-1011-2', 'bidouilleetviolette03.jpg', 48, 3, 'la-reine-des-glaces', 75, 117), (220, 4, 'La ville de tous les jours', 'Dupuis', '2-8001-1247-6', 'bidouille04.jpg', 44, 2, 'la-ville-de-tous-les-jours', 75, 117), (221, 1, 'Les Canons du 18 mars', 'Casterman', '2-203-39927-9', 'cridupeuplecouv01_6697.jpg', 76, 2, 'les-canons-du-18-mars', 76, 119), (222, 3, 'Les heures sanglantes', 'Casterman', '2-203-39930-9', 'cridupeuplecouv03_28933.jpg', 74, 5, 'les-heures-sanglantes', 76, 119), (223, 2, 'L''espoir assassiné', 'Casterman', '2-203-39929-5', 'cridupeuplecouv02_22778.jpg', 84, 6, 'l-espoir-assassine', 76, 119), (224, 4, 'Le testament des ruines', 'Casterman', '2-203-39931-7', 'cridupeuplecouv04_39428.jpg', 74, 7, 'le-testament-des-ruines', 76, 119), (225, NULL, '<NAME>', 'Dupuis', '2-8001-2640-X', 'guerreeternelle_int.jpg', 165, 1, 'guerre-eternelle', 77, 121), (226, 14, 'La <NAME>', '<NAME>', '2-87097-052-8', 'blakeetmortimereditionbmcouv14.JPG', 62, 2, 'la-machination-voronov', 78, 123), (227, NULL, 'Le voyage en Italie', 'Dupuis', '2-8001-3166-7', 'voyageenitalieint.jpg', 96, 3, 'le-voyage-en-italie', 79, 78), (228, NULL, '<NAME>', 'Le Lombard', '978-2-8036-2400-3', 'ZelieNordSuda_03062008_200452.jpg', 44, 2, 'zelie-nord-sud', 80, 78), (229, 1, '<NAME>', 'Dupuis', '2-8001-2870-4', 'sursiscouv01b_30562.jpg', 52, 1, 'tome-1', 81, 126), (230, 2, '<NAME>', 'Dupuis', '2-8001-2598-5', 'sursiscouv02a_30561.jpg', 54, 5, 'tome-2', 81, 126), (231, NULL, 'Intégrale', 'Glénat', '2-7234-4042-7', 'gilsaintandreint_bel.jpg', 135, 3, 'integrale', 82, 128), (232, NULL, 'Le cahier bleu', 'Casterman', '2-203-39103-0', 'cahierbleu01a.jpg', 68, 4, 'le-cahier-bleu', 83, 123), (233, NULL, 'Un peu de fumée bleue', 'Dupuis', '2-8001-2973-5', 'unpeudefumeebleucouv.jpg', 76, 5, 'un-peu-de-fumee-bleue', 84, 131), (234, NULL, 'Le long voyage de Léna', 'Dargaud', '2-205-05743-X', 'LongVoyageDeLenaLe_04092006.jpg', 54, 6, 'le-long-voyage-de-lena', 85, 123), (235, NULL, 'Après la pluie', 'Casterman', '2-203-38906-0', 'apreslapluie.jpg', 52, 7, 'apres-la-pluie', 86, 123), (236, 1, 'Le vol du corbeau - 1', 'Dupuis', '2-8001-3141-1', 'volducorbeau01.JPG', 54, 4, 'le-vol-du-corbeau-1', 87, 126), (237, 2, 'Le vol du corbeau - 2', 'Dupuis', '2-8001-3376-7', 'VolDuCorbeauLe02.jpg', 54, 3, 'le-vol-du-corbeau-2', 87, 126), (238, NULL, '<NAME>', 'Atrabile', '2-9700165-6-7', 'pilulesbleuesco.jpg', 190, 7, 'pilules-bleues', 88, 89), (239, 1, '<NAME>', 'L''Association', '2-84414-058-0', 'persepolis01.jpg', 69, 5, 'persepolis-1', 89, 133), (240, 2, '<NAME>', 'L''Association', '2-84414-079-3', 'persepolis02.jpg', 100, 4, 'persepolis-2', 89, 133), (241, 3, '<NAME>', 'L''Association', '2-84414-104-8', 'Persepolis03_08092002.jpg', 92, 2, 'persepolis-3', 89, 133), (242, 4, '<NAME>', 'L''Association', '2-84414-137-4', 'persepolis04_19092003.jpg', 100, 5, 'persepolis-4', 89, 133), (243, NULL, 'Poulet aux prunes', 'L''Association', '2-84414-159-5', 'PouletAuxPrunes_13102004.jpg', NULL, 1, 'poulet-aux-prunes', 90, 133), (244, 1, 'Premier Tome', 'Les Humanoïdes Associés', '2-7316-1312-2', 'bibendumceleste01a.jpg', 60, 1, 'premier-tome', 91, 134), (245, 2, 'Deuxième tome', 'Les Humanoïdes Associés', '2-7316-1367-X', 'BibendumCelesteLe02EO.jpg', 60, 4, 'deuxieme-tome', 91, 134), (246, 3, 'Troisième tome', 'Les Humanoïdes Associés', '2-7316-1451-X', 'BibendumCelesteLe03EO.jpg', 67, 2, 'troisieme-tome', 91, 134), (247, NULL, 'Foligatto', 'Les Humanoïdes Associés', '2-7316-1334-3', 'Foligatto1998.jpg', 60, 3, 'foligatto', 92, 134), (248, 1, 'Transports amoureux', 'Dupuis', '2-8001-3625-1', 'Salvatore01.jpg', 46, 4, 'transports-amoureux', 93, 134), (249, 2, 'Le grand départ', 'Dupuis', '2-8001-3834-3', 'salvatore02.jpg', 52, 6, 'le-grand-depart', 93, 134), (250, 1, '<NAME>', 'Casterman', '2-203-33609-9', 'Leonlacame01a_06112003.jpg', 120, 7, 'leon-la-came', 94, 134), (251, 2, 'Laid pauvre et malade', 'Casterman', '2-203-35914-5', 'leonlacame02.jpg', 115, 8, 'laid-pauvre-et-malade', 94, 134), (252, 3, 'Priez pour nous', 'Casterman', '2-203-35916-1', 'leonlacame03.jpg', 72, 3, 'priez-pour-nous', 94, 134), (253, 1, 'L''Anguille', 'Glénat', '2-7234-1392-6', 'pontdanslavase01.jpg', 46, 1, 'l-anguille', 95, 138), (254, 2, 'Orlandus', 'Glénat', '2-7234-1732-8', 'pontdanslavase02.jpg', 46, 2, 'orlandus', 95, 138), (255, 3, 'Malocchio', 'Glénat', '2-7234-2326-3', 'pontdanslavase03.jpg', 46, 4, 'malocchio', 95, 138), (256, 4, 'Barthelemy', 'Glénat', '2-7234-3174-6', 'pontdanslavase04.jpg', 46, 5, 'barthelemy', 95, 138), (257, NULL, 'Pourquoi j''ai tué Pierre', 'Delcourt', '2-7560-0380-8', 'PourquoiJaiTuePierre_14092006.jpg', 112, 2, 'pourquoi-j-ai-tue-pierre', 96, 143), (258, NULL, 'Intégrale', 'Delcourt', '2-84055-044-X', 'legendescontreesoublieesint.jpg', NULL, 2, 'integrale', 97, 146), (259, 1, 'La planète', 'Dargaud', '2-205-04902-X', 'betelgeuse01.jpg', 46, 3, 'la-planete', 98, 147), (261, 3, 'L''expédition', 'Dargaud', '2-205-05231-4', 'betelgeuse03.jpg', 46, 2, 'l-expedition', 98, 147), (262, 4, 'Les cavernes', 'Dargaud', '2-205-05475-9', 'betelgeusecou04.jpg', 46, 3, 'les-cavernes', 98, 147), (263, 5, 'L''autre', 'Dargaud', '2-205-05636-0', 'betelgeuse05.jpg', 46, 4, 'l-autre', 98, 147), (264, 1, 'Episode 1', 'Dargaud', '978-2205-05889-5', 'Antares01.jpg', 55, 5, 'episode-1', 99, 147), (265, 1, 'Apparitions', 'Dargaud', '2-205-05197-0', 'kenya01.jpg', 46, 6, 'apparitions', 100, 147), (266, 2, 'Rencontres', 'Dargaud', '2-205-05335-3', 'kenyaco02.jpg', 46, 12, 'rencontres', 100, 147), (267, 3, 'Aberrations', 'Dargaud', '2-205-05499-6', 'kenya03.jpg', 46, 2, 'aberrations', 100, 147), (268, 4, 'Interventions', 'Dargaud', '2-205-05712-X', 'Kenya04.jpg', 46, 4, 'interventions', 100, 147), (269, 5, 'Illusions', 'Dargaud', '978-2-205-06054-6', 'kenya05_74803.jpg', 46, 5, 'illusions', 100, 147), (271, 1, 'tome 1', 'Soleil Productions', '2-87764-764-1', 'petitpolio1_26112002.JPG', 50, 6, 'tome-1', 102, 151), (272, 2, 'tome 2', 'Soleil Productions', '2-87764-916-4', 'petitpolio2_26112002.JPG', 52, 2, 'tome-2', 102, 151), (273, 3, '<NAME>', 'Soleil Productions', '2-84565-204-6', 'petitpolio3_19122002.JPG', 49, 4, 'meme-d-armenie', 102, 151), (274, 4, 'Les années ventoline', 'Futuropolis', '978-2-7548-0026-6', 'PetitPolio3_11112007_125910.jpg', 59, 3, 'les-annees-ventoline', 102, 151), (275, 1, 'Le bar du vieux français 1', 'Dupuis', '2-8001-1910-1', 'barduvieuxfrancaiscouv01.jpg', 54, 2, 'le-bar-du-vieux-francais-1', 103, 152), (277, NULL, 'La belette', 'Casterman', '2-203-33417-7', 'Comes_Belette_01.jpg', 140, 2, 'la-belette', 104, 153), (278, NULL, 'L''arbre-coeur', 'Casterman', '2-203-33442-8', 'arbrecoeur_19012003.jpg', 84, 5, 'l-arbre-coeur', 105, 153), (279, 2, 'Le Maître des Ténèbres', 'Casterman', '2-203-33502-5', 'ergunlerrant02a.jpg', 44, 6, 'le-maitre-des-tenebres', 106, 153), (280, NULL, '<NAME>?, bah...', 'Les Humanoïdes Associés', '2-73161-105-7', 'dracula_30082002.jpg', 80, 4, 'dracula-dracul-vlad-bah', 107, 154), (281, NULL, 'L''arrière boutique du magasin général II', 'Casterman', '2-203-34809-7', 'MagasinGeneral2hs_04112006.jpg', 151, 3, 'l-arriere-boutique-du-magasin-general-ii', 108, 96), (282, 1, 'Marie', 'Casterman', '2-203-37011-4', 'magasingeneral01.jpg', 76, 7, 'marie', 108, 96), (283, 2, 'Serge', 'Casterman', '2-203-37013-0', 'magasingeneral02couv.jpg', 68, 5, 'serge', 108, 96), (284, 3, 'Les hommes', 'Casterman', '978-2-203-34810-3', 'magasingeneral03.jpg', 76, 4, 'les-hommes', 108, 96), (285, 1, 'http://www.xxeciel.com/mémoires98', 'Les Humanoïdes Associés', '2-7316-1406-4', 'xxcielcouv01a.jpg', 59, 2, 'http-www-xxeciel-com-memoires98', 109, 79), (286, 2, 'http://www.xxeciel.com/mémoires99', 'Les Humanoïdes Associés', '2-7316-1416-1', 'xxcielcouv02.JPG', 62, 5, 'http-www-xxeciel-com-memoires99', 109, 79), (287, 3, 'http://www.xxeciel.com/mémoires<19>00', 'Les Humanoïdes Associés', '2-7316-1554-0', 'xxemeciel031900.jpg', 72, 1, 'http-www-xxeciel-com-memoires-19-00', 109, 79), (288, 1, '[avant]...', 'Futuropolis', '2-7548-0005-0', 'cielaudessusdebruxelles01.jpg', 68, 1, 'avant', 110, 79), (289, 2, '...[après]', 'Futuropolis', '978-2-75480-084-6', 'cielaudessusdebruxelles02.jpg', 94, 4, 'apres', 110, 79), (290, 1, 'Le secret du Janissaire', 'Delcourt', '2-84055-059-8', 'DeCapeEtDeCrocs1a_13032006.jpg', 46, 2, 'le-secret-du-janissaire', 58, 92), (291, 2, '<NAME> !', 'Delcourt', '2-84055-143-8', 'DeCapeEtDeCrocs2a_13032006.jpg', 46, 3, 'pavillon-noir', 58, 92), (292, 3, 'L''archipel du danger', 'Delcourt', '2-84055-236-1', 'DeCapeEtDeCrocs3a_13032006.jpg', 47, 4, 'l-archipel-du-danger', 58, 92), (293, 6, 'Luna Incognita', 'Delcourt', '2-84789-112-9', 'DeCapeEtDeCrocs5a_13032006.jpg', 46, 6, 'luna-incognita', 58, 92), (294, 7, '<NAME>', 'Delcourt', '2-84789-925-1', 'decapeetdecrocs_07.jpg', 49, 7, 'chasseurs-de-chimeres', 58, 92), (303, 1, 'Le secret des eaux', 'Delcourt', '2-84789-103-X', 'AlimleTanneur01.jpg', 46, 8, 'le-secret-des-eaux', 115, 164), (304, 2, 'Le vent de l''exil', 'Delcourt', '2-84789-946-4', 'alimletanneur_02.jpg', 46, 3, 'le-vent-de-l-exil', 115, 164), (305, 3, 'La terre du prophète pâle', 'Delcourt', '978-2-7560-0369-6', 'AlimLeTanneur3_27112007_232724.jpg', 54, 1, 'la-terre-du-prophete-pale', 115, 164), (314, NULL, '<NAME>', '<NAME>', '978-2-356-74009-0', 'CanoeBay_21032009_074933.jpg', 76, 2, 'canoe-bay', 111, 156), (316, 5, 'Les révolutions', 'Dargaud', '978-2-205-06235-9', 'RetourALaTerreLe5_29112008_200007.jpg', 45, 4, 'les-revolutions', 40, 59), (317, 1, '<NAME> : Le <NAME>''Anoroer', 'Soleil Productions', '2-84946-422-8', 'Servitude1.jpg', 52, 5, 'livre-i-le-chant-d-anoroer', 113, 160), (318, 2, '<NAME> : Drekkars', 'Soleil Productions', '978-2-302-00214-2', 'Servitude2_18122008_214301.jpg', 46, 2, 'livre-ii-drekkars', 113, 160), (319, 5, '<NAME>', '<NAME>', '2-226-17542-3', 'AnitaBomba5_21112006.jpg', 48, 2, 'poussiere-d-ange', 15, 33), (320, 2, '<NAME>', 'Dargaud', '978-2205-05953-3', 'Gus02_71318.jpg', 84, 3, 'beau-bandit', 50, 75), (321, 3, 'Ernest', 'Dargaud', '978-2-205-06086-7', 'Gus3_01122008_184848.jpg', 88, 2, 'ernest', 50, 75), (322, 6, 'Au commencement', 'Les Humanoïdes Associés', '978-2-7316-2188-4', 'koma06_79842.jpg', 46, 3, 'au-commencement', 56, 89), (323, 8, 'Le sang des comètes', 'Soleil Productions', '978-2-30200-382-8', 'lanfeustdesetoiles08_80608.jpg', 54, 4, 'le-sang-des-cometes', 117, 116), (324, 2, 'Episode 2', 'Dargaud', '978-2-205-06185-7', 'Antares_02_84321.jpg', 46, 5, 'episode-2', 99, 176), (328, 2, '<NAME>, Chapitre 2 - Automne 1830', 'Futuropolis/Glénat', '978-2-7548-0108-9', 'sambrelaguerredessambre02_78011.jpg', 46, 6, 'hugo-iris-chapitre-2-automne-1830', 54, 81), (329, 31, 'Le bouclier de Thor', 'Le Lombard', '978-2-8036-2486-7', 'thorgal31couv_80551.jpg', 46, 7, 'le-bouclier-de-thor', 72, 112), (330, 2, '<NAME> - La ligne de front', 'Dargaud', '2-205-05466-X', 'UneAventureRocambolesqueDe02_34422.jpg', 46, 2, 'vincent-van-gogh-la-ligne-de-front', 37, 59), (334, 1, 'Zoo 1', 'Dupuis', '2-8001-2132-7', 'Zoo01.jpg', 70, 4, 'zoo-1', 62, 177), (335, 2, 'Zoo 2', 'Dupuis', '2-8001-2324-9', 'Zoo02.jpg', 62, 5, 'zoo-2', 62, 177), (336, 3, 'Zoo 3', 'Dupuis', '978-2-8001-4004-9', 'zoo03.jpg', 72, 6, 'zoo-3', 62, 177), (337, 1, 'Le nouveau rêve', 'Les Humanoïdes Associés', '2-7316-1425-0', 'apreslincalcouv01.jpg', 56, 2, 'le-nouveau-reve', 118, 178), (338, 1, 'Monsieur Fruit - T1', 'Seuil', '2-0202-3701-6', 'monsieurfruit01couv.jpg', 153, 4, 'monsieur-fruit-t1', 119, 134), (341, 2, 'Monsieur Fruit - T2', 'Seuil', '2-02-029670-5', 'MonsieurFruit02a.jpg', 149, 3, 'monsieur-fruit-t2', 119, 134), (342, 4, 'Confessions', 'Casterman', '978-2-203-01691-0', 'magasingeneral04_79885.jpg', 66, 11, 'confessions', 108, 96), (343, 3, 'Le prince charmant', 'Dargaud', '978-2205-06083-6', 'misspastouche03_77426.jpg', 46, 2, 'le-prince-charmant', 49, 74), (344, 2, 'Les survivants', 'Dargaud', '2-205-04987-9', 'betelgeuse02.jpg', 46, 5, 'les-survivants', 98, 176), (345, 1, 'La catastrophe', 'Dargaud', '2-205-04186-X', 'aldebaran01a.jpg', 48, 6, 'la-catastrophe', 120, 176), (346, 2, 'La blonde', 'Dargaud', '2-205-04968-2', 'aldebaran02a.jpg', 46, 7, 'la-blonde', 120, 176), (347, 3, 'La photo', 'Dargaud', '2-205-04969-0', 'MondesDaldebaranLes3b_07102007_170606.jpg', 46, 1, 'la-photo', 120, 176), (348, 4, 'Le groupe', 'Dargaud', '2-205-04970-4', 'aldebaran04a.jpg', 46, 2, 'le-groupe', 120, 176), (349, 5, 'La créature', 'Dargaud', '2-205-04968-2', 'MondesDaldebaranLes5c_20022008_101535.jpg', 46, 3, 'la-creature', 120, 176), (350, 2, 'Amy', 'Delcourt', '2-84055-035-0', 'pouvoirinnocents02couv.jpg', 64, 2, 'amy', 5, 14), (351, 5, '<NAME>', 'Delcourt', '2-84055-440-2', 'pouvoirdesinnocents05couv.jpg', 62, 1, 'sergent-logan', 5, 14), (352, 1, 'Pourquoi cette nuit est-elle différente des autres nuits ?', 'Dupuis', '2-8001-3149-7', 'olivesnoires01.jpg', 48, 5, 'pourquoi-cette-nuit-est-elle-differente-des-autres-nuits', 121, 65), (353, 2, '<NAME>', 'Dupuis', '2-8001-3220-5', 'olivesnoires02.jpg', 48, 3, 'adam-harishon', 121, 65), (354, 3, 'Tu ne mangeras pas le chevreau dans le lait de sa mère', 'Dupuis', '2-8001-3378-3', 'olivesnoires03.jpg', 48, 4, 'tu-ne-mangeras-pas-le-chevreau-dans-le-lait-de-sa-mere', 121, 65), (355, 1, 'Première époque (1914-1915)', 'Futuropolis', '978-2-7548-0113-3', 'matteo01_78761.jpg', 62, 5, 'premiere-epoque-1914-1915', 122, 126), (356, NULL, 'Troubles fêtes', 'Les Humanoïdes Associés', '2-7316-0652-5', 'loiseltroublesreed.jpg', 70, 6, 'troubles-fetes', 123, 77), (358, NULL, 'Les portes du possible', 'Casterman', '2-203-34322-2', 'portesdupossible.jpg', 46, 7, 'les-portes-du-possible', 124, 182), (367, 1, 'La chanson', 'Delcourt', '2-84055-686-3', 'ChevalierMalheur01couv_20081023_8860.jpg', 48, 4, 'la-chanson', 126, 190), (368, 2, 'Citadelle', 'Delcourt', '2-84055-903-X', 'ChevalierMalheur02couv_20081023_23695.jpg', 48, 3, 'citadelle', 126, 190), (369, 3, 'Tel père tel fils', 'Delcourt', '2-84789-405-5', 'ChevalierMalheur03couv_20081023_42412.jpg', 46, 7, 'tel-pere-tel-fils', 126, 190), (373, 4, 'Le déluge', 'Soleil Productions', '2-84565-234-8', 'universalwarone4.jpg', 48, 5, 'le-deluge', 127, 193), (374, 5, 'Babel', 'Soleil Productions', '2-84565-406-5', 'universalwar05.jpg', 46, 4, 'babel', 127, 193), (375, 6, 'Le patriarche', 'Soleil Productions', '2-84946-095-8', 'UniversalWarOne6_21062006.jpg', 46, 2, 'le-patriarche', 127, 193), (376, 1, 'Le bois sauvage', 'Delcourt', '2-84055-107-1', 'VentDanslesSaulesLe01.JPG', 31, 5, 'le-bois-sauvage', 128, 194), (377, 2, 'Auto, crapaud, blaireau', 'Delcourt', '2-84055-168-3', 'ventdanslessaulescouv02.JPG', 32, 1, 'auto-crapaud-blaireau', 128, 194), (378, 3, 'L''échappée belle', 'Delcourt', '2-84055-252-3', 'VentDanslesSaulesLe03.JPG', 32, 1, 'l-echappee-belle', 128, 194), (379, 4, 'Foutoir au manoir', 'Delcourt', '2-84055-580-8', 'VentDanslesSaulesLe04.JPG', 31, 4, 'foutoir-au-manoir', 128, 194), (381, NULL, 'Animal''z', 'Casterman', '978-2-203-01966-9', 'Animalz_10032009_223059.jpg', 96, 2, 'animal-z', 112, 158), (382, 1, 'L''empire de <NAME>', 'Glénat', '978-2-7234-5580-8', 'IlEtaitUneFoisEnFrance1_04102007_192650.jpg', 54, 3, 'l-empire-de-monsieur-joseph', 114, 128), (383, 2, 'Le vol noir des corbeaux', 'Glénat', '978-2-7234-6183-2', 'IlEtaitUneFoisEnFrance2_02102008_110958.jpg', 56, 4, 'le-vol-noir-des-corbeaux', 114, 128), (384, 1, 'Papillons de nuit', 'Les Humanoïdes Associés', '2-7316-1294-0', 'reseaubombyce01.jpg', 46, 6, 'papillons-de-nuit', 129, 197), (385, 2, '<NAME>', 'Les Humanoïdes Associés', '2-7316-1460-9', 'reseaubombyce02.jpg', 46, 7, 'monsieur-lune', 129, 197), (386, 1, 'L''invitation au voyage', 'Delcourt', '2-84789-674-0', 'ventdanssables01_44911.jpg', 32, 8, 'l-invitation-au-voyage', 130, 194), (387, 2, 'Etranges étrangers', 'Delcourt', '978-2-7560-0564-5', 'VentDansLesSablesLe2_17042007.jpg', 32, 3, 'etranges-etrangers', 130, 194), (388, 3, 'La Tentation du Désert', 'Delcourt', '978-2-7560-1269-8', 'ventdanslessables03_84663.jpg', 32, 1, 'la-tentation-du-desert', 130, 194), (389, 9, 'Revers de fortune', 'Delcourt', '978-2-7560-0835-6', 'Couv_96637.jpg', 47, 2, 'revers-de-fortune', 58, 92), (390, 5, 'Montréal', 'Casterman', '978-2-203-02463-2', 'Couv_97432.jpg', 70, 4, 'montreal', 108, 96), (391, 3, 'Episode 3', 'Dargaud', '978-2-205-06371-4', 'antaresmondesaldebaran03_103248.jpg', 46, 5, 'episode-3', 99, 176), (392, 7, 'La voie du Rige', 'Dargaud', '978-2-205-06009-6', 'Couv_105589.jpg', 66, 2, 'la-voie-du-rige', 55, 198), (393, 3, 'Hugo & Iris, Chapitre 3 - Hiver 1831', 'Futuropolis/Glénat', '978-2-7548-0109-6', 'Couv_98900.jpg', 56, 2, 'hugo-iris-chapitre-3-hiver-1831', 54, 81), (394, 7, 'Le commun des mortels', 'Casterman', '978-2-203-01438-1', 'tueur07_91979.jpg', 54, 3, 'le-commun-des-mortels', 4, 12), (395, 8, 'L''ordre naturel des choses', 'Casterman', '978-2-203-03167-8', 'Tueur8-couv_110520.jpg', 54, 2, 'l-ordre-naturel-des-choses', 4, 12), (396, NULL, 'Les armes du Meta-Baron', 'Les humanoïdes associés', '978-2-7316-1447-3', 'ArmesDuMetabaronLes1_21092008_182642.jpg', 56, 3, 'les-armes-du-meta-baron', 131, 5), (397, NULL, 'Les derniers corsaires', 'Les éditions de la Pastèque', '2-922585-37-9', 'DerniersCorsairesLes_04082006.jpg', 62, 4, 'les-derniers-corsaires', 132, 205), (398, 1, 'Tome 1', '<NAME>', '978-2-221-10727-0', 'BoisDesViergesLe1_12022008_230258.jpg', 54, 5, 'tome-1', 133, 207), (399, 1, 'La Genèse', 'Soleil Productions', '2-87764-807-9', 'UniversalWarOneQuadrantSolaire.jpg', 46, 6, 'la-genese', 127, 193), (400, NULL, 'Québec. un détroit dans le fleuve', 'Casterman', '978-2-203-01448-0', 'Quebec_19032008_144825.jpg', 64, 7, 'quebec-un-detroit-dans-le-fleuve', 59, 20), (401, NULL, 'Le petit Prince', 'Gallimard', '978-2-07-060339-8', 'petitprincesfar_78379.jpg', 110, 2, 'le-petit-prince', 134, 64), (402, 1, '<NAME>', 'Dargaud', '978-2-205-06397-4', 'Couv_97655.jpg', 200, 4, 'grasse-carcasse', 135, 59), (404, NULL, 'Pachyderme', 'Gallimard', '978-2-07-062704-2', 'pachyderme_93213.jpg', 80, 5, 'pachyderme', 136, 89), (405, 4, 'Jusqu''à ce que la mort nous sépare', 'Dargaud', '978-2-205-06292-2', 'misspastouche04_91861.jpg', 46, 6, 'jusqu-a-ce-que-la-mort-nous-separe', 49, 211), (406, 9, 'Le piège diabolique', 'Blake et Mortimer', '2-87097-020-X', 'BlakeEtMortimerEditionsBlakeEtMortimer9a_08072007_211054.jpg', 62, 2, 'le-piege-diabolique', 137, 212), (408, 2, 'Second livre', 'Futuropolis', '978-2-7548-0103-4', 'Couv_106299.jpg', 76, 4, 'second-livre', 138, 209), (409, 1, 'Le roi n''embrasse pas', 'Gallimard', '978-2-07-061819-4', 'Couv_99015.jpg', 138, 3, 'le-roi-n-embrasse-pas', 139, 64), (414, 106, 'Révolutions', 'Delcourt', '978-2-7560-0608-6', 'donjoncrepuscule106_88442.jpg', 48, 2, 'revolutions', 140, 215), (415, 1, 'Cœur de canard', 'Delcourt', '2-84055-197-7', 'DonjonZenith1.jpg', 46, 2, 'coeur-de-canard', 64, 61), (416, 2, 'Le roi de la bagarre', 'Delcourt', '2-84055-249-3', 'donjonzenith02_8935.jpg', 46, 5, 'le-roi-de-la-bagarre', 64, 61), (417, 1, '<NAME> la bête', 'Casterman', '2-203-30501-0', 'AdeleBlancsec1e_12022008_153356.jpg', 46, 6, 'adele-et-la-bete', 141, 119), (418, 2, 'Le démon de la tour eiffel', 'Casterman', '2-203-30502-9', 'AdeleBlancsec2c_12022008_153133.jpg', 46, 7, 'le-demon-de-la-tour-eiffel', 141, 119), (419, 6, 'Le noyé à deux têtes', 'Casterman', '2-203-30507-X', 'Adele_BlancSec_06.jpg', 46, 1, 'le-noye-a-deux-tetes', 141, 119), (420, 1, 'Trois ombres', 'Delcourt', '978-2-7560-0470-9', 'TroisOmbres_14092007_204959.jpg', 268, 2, 'trois-ombres', 142, 217), (424, 4, 'March of the wooden soldiers', 'DC Comics', '1-401-20222-5', 'Fables4_07092007_214716.jpg', 223, 3, 'march-of-the-wooden-soldiers', 143, 186), (425, 5, 'The mean seasons', 'DC Comics', '1-401-20486-4', 'Fables5_07092007_214710.jpg', 159, 2, 'the-mean-seasons', 143, 186), (426, 6, 'Homelands', 'DC Comics', '1-401-20500-3', 'Fables6_07092007_214704.jpg', 184, 1, 'homelands', 143, 186), (427, 7, 'Arabian nights (and days)', 'DC Comics', '1-401-21000-7', 'Fables7_07092007_214658.jpg', 137, 5, 'arabian-nights-and-days', 143, 186), (428, 8, 'Wolves', 'DC Comics', '1-401-21001-5', 'Fables8_07092007_214652.jpg', 117, 3, 'wolves', 143, 186), (429, 9, 'Sons of empire', 'DC Comics', '978-1-401-21316-9', 'Fables9_07092007_214647.jpg', 193, 4, 'sons-of-empire', 143, 20), (430, 10, 'The good prince', 'DC Comics', '978-1-401-21686-3', 'FablesV010_26062008_200217.jpg', 220, 5, 'the-good-prince', 143, 186), (431, 11, 'War and pieces', 'DC Comics', '978-1-401-21913-0', 'Couv_100441.jpg', 192, 6, 'war-and-pieces', 143, 186), (432, 1, 'Volume 1', 'Kana', '2-87129-578-6', 'Lesommetdesdieux_07032004.jpg', 318, 7, 'volume-1', 144, 55), (433, 2, 'Volume 2', 'Kana', '2-87129-579-4', 'sommetdesdieux02couv.jpg', 333, 4, 'volume-2', 144, 55), (434, 3, 'Volume 3', 'Kana', '2-87129-580-8', 'SommetDesDieuxLe3_15102004.jpg', 333, 3, 'volume-3', 144, 55), (435, 4, 'Volume 4', 'Kana', '2-87129-721-5', 'sommetdesdieux04.jpg', 306, 7, 'volume-4', 144, 55), (436, 5, 'Volume 5', 'Kana', '2-87129-780-0', 'SommetDesDieuxLe5_17052005.jpg', 300, 5, 'volume-5', 144, 55), (438, 2, 'Le bar du vieux français 2', 'Dupuis', '2-8001-1996-9', 'barduvieuxfrancaiscouv02.jpg', 54, 4, 'le-bar-du-vieux-francais-2', 103, 152), (439, 1, 'Première partie', 'Futuropolis', '2-7548-0033-6', 'marieenplastique01.jpg', 54, 2, 'premiere-partie', 116, 167), (440, 2, 'Seconde partie', 'Futuropolis', '978-2-7548-0060-0', 'MarieEnPlastiqueLa2_02062007.jpg', 62, 5, 'seconde-partie', 116, 167), (443, 1, 'Tome 1', 'Dupuis', '2-8001-3724-X', 'BouddhaDazurLe1_04102005.jpg', 59, 1, 'tome-1', 145, 241), (444, 2, 'Tome 2', 'Dupuis', '2-8001-3839-4', 'bouddhadazurle_02.JPG', 75, 1, 'tome-2', 145, 241), (446, NULL, 'Un peu avant la fortune', 'Dupuis', '978-2-8001-3854-1', 'UnPeuAvantLaFortune_27012008_111203.jpg', 78, 4, 'un-peu-avant-la-fortune', 146, 67), (447, NULL, 'Retour au collège', 'Hachette', '2-01-235861-6', 'retouraucollegecouv.jpg', 90, 2, 'retour-au-college', 147, 243), (448, 1, '(Livre premier)', 'Futuropolis', '978-2-7548-0239-0', 'Canarrive-couv_109573.jpg', 60, 3, 'livre-premier', 148, 244), (449, NULL, 'Page Noire', 'Futuropolis', '978-2-7548-0147-8', 'Couv_113972.jpg', 98, 4, 'page-noire', 149, 246), (450, 4, 'Là où brûlent les regards', 'Delcourt', '978-2-7560-1264-3', 'Alim4-couv_98261.jpg', 64, 6, 'la-ou-brulent-les-regards', 115, 164), (451, 4, 'L''Enfer, le silence', 'Dargaud', '978-2-205-06313-4', 'Couv_113281.jpg', 54, 7, 'l-enfer-le-silence', 12, 27), (452, 2, 'Loup', 'Delcourt', '978-2-7560-1903-1', 'Couv_115974.jpg', 54, 8, 'loup', 133, 207), (453, 6, '<NAME>', 'Casterman', '978-2-203-02616-2', 'Couv_117401.jpg', 68, 3, 'ernest-latulippe', 108, 96), (454, 3, 'Stigmates', 'Les Humanoïdes Associés', '978-2-7316-1723-8', 'Couv_116124.jpg', 46, 1, 'stigmates', 129, 197), (455, 1, 'Eauxfolles', 'Delcourt', '2-84055-005-9', 'nefdesfous01_589.jpg', 46, 2, 'eauxfolles', 150, 254), (456, 2, 'Pluvior 627', 'Delcourt', '2-84055-025-3', 'nefdesfous02_590.jpg', 46, 4, 'pluvior-627', 150, 254), (457, 3, 'Turbulences', 'Delcourt', '2-84055-129-2', 'nefdesfous03_950.jpg', 54, 5, 'turbulences', 150, 254), (458, 4, 'Au turf', 'Delcourt', '2-84055-456-9', 'nefdesfous04.jpg', 46, 2, 'au-turf', 150, 254), (459, 5, 'Puzzle', 'Delcourt', '2-84055-838-6', 'NefDesFousLa05.jpg', 46, 2, 'puzzle', 150, 254), (460, 6, 'Les Chemins énigmatiques', 'Delcourt', '978-2-7560-0187-6', 'nefdesfous06.jpg', 46, 3, 'les-chemins-enigmatiques', 150, 254), (461, 7, 'Terminus', 'Delcourt', '978-2-7560-1069-4', 'nefdesfous07_82677.jpg', 46, 2, 'terminus', 150, 254), (464, 3, 'Honneur et Police', 'Glénat', '978-2-7234-6873-2', 'Couv_94966.jpg', 54, 3, 'honneur-et-police', 114, 128), (465, 4, 'Aux armes, citoyens !', 'Glénat', '978-2-7234-7716-1', 'Couv_115654.jpg', 62, 4, 'aux-armes-citoyens', 114, 128), (466, 1, 'Home Sweet Home', 'Dargaud', '978-2-87129-959-2', 'jazzmaynard01.jpg', 46, 5, 'home-sweet-home', 151, 257), (467, 2, '<NAME>', 'Dargaud', '978-2-505-00347-2', 'JazzMaynard2_18042008_174047.jpg', 46, 6, 'melodie-d-el-raval', 151, 257), (468, 3, 'Envers et contre tout', 'Dargaud', '978-2-505-00509-4', 'JazzMaynard3_10012009_155254.jpg', 46, 7, 'envers-et-contre-tout', 151, 257), (469, 4, 'Sans espoir', 'Dargaud', '978-2-505-00805-7', 'Couv_106462.jpg', 46, 2, 'sans-espoir', 151, 257), (470, 1, 'Première partie', 'Futuropolis', '2-7548-0003-4', 'MemoireDansLesPochesLa1_07062006.jpg', 86, 4, 'premiere-partie', 152, 259), (471, 2, 'Deuxième partie', 'Futuropolis', '978-2-7548-0099-0', 'memoireanslespoches02_87937.jpg', 69, 5, 'deuxieme-partie', 152, 259), (472, 1, 'La Géométrie du hasard', 'Quadrants', '978-2-302-00093-3', 'QuelquesPasVersLaLumiere01_71184.jpg', 46, 6, 'la-geometrie-du-hasard', 153, 122), (473, 2, 'Le Voyage improbable', 'Quadrants', '978-2-30200-543-3', 'quelquecouv_87030.jpg', 46, 2, 'le-voyage-improbable', 153, 122), (474, 3, 'Les Voyageurs de l''autre monde', 'Quadrants', '978-2-302-01242-4', 'Couv_114228.jpg', 46, 4, 'les-voyageurs-de-l-autre-monde', 153, 122), (475, 1, 'La marque du diable', 'Dargaud', '2-87129-301-5', 'scorpion01.jpg', 46, 3, 'la-marque-du-diable', 154, 262), (476, 2, 'Le secret du Pape', 'Dargaud', '2-87129-352-X', 'scorpion02.jpg', 46, 2, 'le-secret-du-pape', 154, 262), (477, 3, 'La croix de Pierre', 'Dargaud', '2-87129-463-1', 'scorpion03couv.JPG', 46, 2, 'la-croix-de-pierre', 154, 262); INSERT INTO `book` (`id`, `numVolume`, `titre`, `editeur`, `reference`, `couverture`, `nbPage`, `stock`, `slug`, `serie_id`, `author_id`) VALUES (478, 4, 'Le Démon au Vatican', 'Dargaud', '2-87129-570-0', 'scorpion04.JPG', 46, 5, 'le-demon-au-vatican', 154, 262), (479, 5, 'La vallée sacrée', 'Dargaud', '2-87129-677-4', 'scorpion05.JPG', 46, 6, 'la-vallee-sacree', 154, 262), (480, 6, 'Le trésor du Temple', 'Dargaud', '2-87129-760-6', 'scorpion06.JPG', 46, 7, 'le-tresor-du-temple', 154, 262), (481, 7, 'Au Nom du Père', 'Dargaud', '2-505-00018-2', 'scorpion07.jpg', 46, 1, 'au-nom-du-pere', 154, 262), (482, 8, 'L''ombre de l''Ange', 'Dargaud', '978-2-505-00474-5', 'scorpion08_79729.jpg', 46, 2, 'l-ombre-de-l-ange', 154, 262), (483, 9, '<NAME>', 'Dargaud', '978-2-505-00914-6', 'Couv_113222.jpg', 46, 3, 'masque-de-la-verite', 154, 262), (484, 1, 'La fille sous la dunette', 'Glénat', '2-7234-0132-4', 'passagersduvent01_302.jpg', 46, 2, 'la-fille-sous-la-dunette', 155, 264), (485, 2, 'Le ponton', 'Glénat', '2-7234-0164-2', 'passagerduventcouv02eo.jpg', 46, 1, 'le-ponton', 155, 264), (486, 3, 'Le comptoir de Juda', 'Glénat', '2-7234-0215-0', 'passagerduventcouv03eo.jpg', 46, 5, 'le-comptoir-de-juda', 155, 264), (487, 4, 'L''heure du serpent', 'Glénat', '2-7234-0290-8', 'passagersduvent04.jpg', 46, 3, 'l-heure-du-serpent', 155, 264), (488, 5, 'Le bois d''ébène', 'Glénat', '2-7234-0440-4', 'passagersduvent05_306.jpg', 46, 4, 'le-bois-d-ebene', 155, 264), (489, 6, '<NAME> - Livre 1', '12bis', '978-2-356-48066-8', 'PassagersDuVent_06_93413.jpg', 78, 5, 'la-petite-fille-bois-caiman-livre-1', 155, 264), (490, 7, '<NAME>-Caïman - Livre 2', '12bis', '978-2-356-48112-2', 'Couv_99109.jpg', 64, 6, 'la-petite-fille-bois-caiman-livre-2', 155, 264), (491, 2, 'Volume 2', 'Gallimard', '2-07-057588-8', 'AyaDeYopougon2_29092006.jpg', 106, 7, 'volume-2', 13, 29), (492, 3, 'Volume 3', 'Gallimard', '978-2-07-061543-8', 'AyaDeYopougon3_09102007_180143.jpg', 126, 4, 'volume-3', 13, 29), (493, 4, 'Volume 4', 'Gallimard', '978-2-07-061995-5', 'AyaDeYopougon_04_80396.jpg', 106, 3, 'volume-4', 13, 29), (494, 5, 'Volume 5', 'Gallimard', '978-2-07-062803-2', 'Couv_98840.jpg', 107, 7, 'volume-5', 13, 29), (495, 6, 'Volume 6', 'Gallimard', '978-2-07-069512-6', 'Couv_118426.jpg', 104, 5, 'volume-6', 13, 29), (496, 2, 'L''apocalypse selon Saint Jacky', 'Dargaud', '978-2-205-06759-0', 'Couv_123954.jpg', 208, 4, 'l-apocalypse-selon-saint-jacky', 135, 59), (497, 2, '(<NAME>)', 'Futuropolis', '978-2-7548-0393-9', 'Couv_116325.jpg', 60, 2, 'livre-second', 148, 265), (498, 7, 'Charleston', 'Casterman', '978-2-203-03219-4', 'Couv_138758.jpg', 78, 5, 'charleston', 108, 96), (499, 2, 'Deuxième époque (1917-1918)', 'Futuropolis', '978-2-7548-0114-0', 'Matteo2-couv_115131.jpg', 71, 1, 'deuxieme-epoque-1917-1918', 122, 126), (500, 5, '<NAME>', 'Les éditions de la Pastèque', '2-922585-39-5', 'paul5_59923.jpg', 200, 1, 'paul-a-la-peche', 31, 56), (501, 6, '<NAME>', 'Les éditions de la Pastèque', '978-2-922585-70-4', 'Couv_87049.jpg', 188, 4, 'paul-a-quebec', 31, 56), (502, 7, '<NAME>', 'Les éditions de la Pastèque', '978-2-923841-05-2', 'Couv_145258.jpg', 144, 2, 'paul-au-parc', 31, 56), (503, 3, 'Une traversée mouvementée', 'Dupuis', '978-2-8001-4085-8', 'Salvatore3_03102009_170132.jpg', 52, 3, 'une-traversee-mouvementee', 93, 134), (504, 4, 'Retour à Brest', 'Dupuis', '978-2-8001-4849-6', 'Couv_115181.jpg', 54, 4, 'retour-a-brest', 93, 134), (505, 6, 'La mer vue du Purgatoire...', 'Glénat', '978-2-7234-4429-3', 'Couv_126674.jpg', 64, 6, 'la-mer-vue-du-purgatoire', 53, 199), (506, 2, 'Animal farm', 'DC Comics', '978-1-401-20077-0', 'Couv_99737.jpg', 115, 7, 'animal-farm', 143, 186), (507, 3, 'Storybook love', 'DC Comics', '978-1-401-20256-9', 'Couv_99738.jpg', 184, 8, 'storybook-love', 143, 186), (508, 1, 'Legends in exile', 'DC Comics', '978-1-563-89942-3', 'FablesV01_18102009_101424.jpg', 112, 3, 'legends-in-exile', 143, 184), (512, 4, 'Épisode 4', 'Dargaud', '978-2-205-06765-1', 'Couv_138040.jpg', 46, 1, 'episode-4', 156, 266), (513, 1, 'Anomalies quantiques - Épisode 1', 'Dargaud', '978-2-205-06524-4', 'Couv_120743.jpg', 48, 2, 'anomalies-quantiques-episode-1', 157, 266), (514, 1, 'Episode 1', 'Dargaud', '978-2-205-06085-0', 'Couv_105592.jpg', 46, 4, 'episode-1', 158, 267), (515, 2, 'Épisode 2', 'Dargaud', '978-2-205-06529-9', 'Couv_117129.jpg', 46, 5, 'episode-2', 158, 267), (516, 1, 'Livre 1/2', 'Dargaud', '978-2-205-06740-8', 'Couv_126734.jpg', 54, 2, 'livre-1-2', 159, 270), (518, 2, 'Livre 2/2', 'Dargaud', '978-2-205-06764-4', 'Couv_138242.jpg', 54, 2, 'livre-2-2', 159, 270), (520, NULL, 'Là où vont nos pères', 'Dargaud', '978-2-205-05970-0', 'Couv_143518.jpg', 116, 3, 'la-ou-vont-nos-peres', 60, 100), (521, 3, 'Kettricken', 'Soleil Productions', '978-2-302-00888-5', 'Couv_100036.jpg', 46, 2, 'kettricken', 160, 274), (522, 4, 'Molly', 'Soleil Productions', '978-2-302-01235-6', 'Couv_115483.jpg', 47, 3, 'molly', 160, 274), (523, 1, '<NAME>', '<NAME>', '978-2-298-03773-9', 'Couv_134606.jpg', 46, 4, 'le-batard', 160, 277), (524, 2, 'L''art', '<NAME>', '978-2-298-04403-4', 'Couv_134608.jpg', 46, 5, 'l-art', 160, 277), (525, 6, 'L''Héritage du Kaiser - Château de Stolditz, Allemagne. 1936...', 'Delcourt', '978-2-7560-1739-6', '118033_c.jpg', 54, 6, 'l-heritage-du-kaiser-chateau-de-stolditz-allemagne-1936', 161, 280), (526, 5, 'Gold Rush - Yukon, 1899...', 'Delcourt', '978-2-7560-1738-9', '115618_c.jpg', 62, 7, 'gold-rush-yukon-1899', 161, 282), (527, 1, 'Premier livre', 'Futuropolis', '978-2-7548-0102-7', 'LuluFemmeNue1_28102008_232856.jpg', 76, 2, 'premier-livre', 138, 209), (529, NULL, 'Là-bas', 'Dupuis', '2-8001-3457-7', 'Labas_05092003.jpg', 64, 4, 'la-bas', 162, 265), (530, 2, 'Le fruit de la connaissance', 'Soleil Productions', '2-87764-937-7', 'Couv_136848.jpg', 46, 5, 'le-fruit-de-la-connaissance', 127, 193), (532, 3, '<NAME>', 'Soleil Productions', '2-84565-037-X', 'Couv_136847.jpg', 48, 6, 'cain-et-abel', 127, 193), (533, 1, 'Esclaves', 'Dargaud', '978-2-505-00971-9', 'Couv_115029.jpg', 52, 2, 'esclaves', 163, 285), (534, 1, 'Un héros sans cœur', 'Delcourt', '978-2-7560-1942-0', '115972_c.jpg', 46, 4, 'un-heros-sans-coeur', 164, 286), (535, 1, 'Le discours', 'Futuropolis', '978-2-7548-0353-3', 'Couv_125488.jpg', 34, 3, 'le-discours', 165, 14), (536, NULL, '<NAME>', 'Casterman', '978-2-203-03308-5', 'Couv_125622.jpg', 84, 2, 'julia-roem', 166, 158), (537, NULL, 'Essex County', 'Futuropolis', '978-2-7548-0235-2', 'Couv_108626.jpg', 496, 2, 'essex-county', 167, 287), (538, NULL, 'La Fugue', 'Éditions de la Pastèque', '2-922585-30-1', 'FugueLaBlanchet_05082006.jpg', 136, 5, 'la-fugue', 168, 288), (539, NULL, 'Body World', 'Dargaud', '978-2-205-06316-5', 'Couv_118236.jpg', 384, 6, 'body-world', 169, 290), (540, NULL, 'Le journal d''un remplaçant', 'Delcourt', '978-2-7560-0641-3', 'JournalDunRemplacantLe_30122006.jpg', 124, 7, 'le-journal-d-un-remplacant', 170, 291), (541, NULL, 'Broderies', 'L''Association', '2-84414-095-5', 'Broderies_09022003.jpg', 130, 1, 'broderies', 171, 133), (542, 1, 'Comment je ne me suis pas fait kidnapper en Afghanistan', 'La boîte à bulles', '978-2-84953-053-5', 'kaboul_1_67647.jpg', 145, 2, 'comment-je-ne-me-suis-pas-fait-kidnapper-en-afghanistan', 172, 292), (543, NULL, 'Shenzhen', 'L''Association', '2-84414-035-1', 'shenzen01_11278.jpg', 150, 3, 'shenzhen', 173, 293), (544, NULL, 'Logicomix', 'Vuibert', '978-2-7117-4351-3', 'Couv_112031.jpg', 304, 2, 'logicomix', 174, 295), (545, NULL, 'Watchmen', 'DC Comics', '0-930289-23-4', 'Watchmenint2_12072009_001753.jpg', 416, 1, 'watchmen', 25, 48), (546, 2, 'Final incal', 'Les Humanoïdes Associés', '978-2-7316-1444-2', 'Couv_133712.jpg', 62, 5, 'final-incal', 118, 300), (547, 2, 'Renée', 'Futuropolis', '2-7548-0085-9', 'Couv_120701.jpg', 464, 3, 'renee', 68, 109), (548, 3, 'Livre III - L''Adieu aux Rois', 'Soleil Productions', '978-2-302-01893-8', 'Couv_142820.jpg', 51, 4, 'livre-iii-l-adieu-aux-rois', 113, 303), (549, 32, 'La Bataille d''Asgard ', 'Le Lombard', '978-2-8036-2754-7', 'Couv_117408.jpg', 46, 5, 'la-bataille-d-asgard', 72, 112), (550, 33, 'Le Bateau-Sabre', 'Le Lombard', '978-2-8036-2995-4', 'Couv_140423.jpg', 46, 6, 'le-bateau-sabre', 72, 112), (551, 9, 'Concurrence déloyale', 'Casterman', '978-2-203-03178-4', 'Couv_126818.jpg', 54, 7, 'concurrence-deloyale', 4, 12), (552, 4, 'Le Chant des dunes', 'Delcourt', '978-2-7560-1989-5', 'Couv_118876.jpg', 32, 4, 'le-chant-des-dunes', 130, 194), (553, 1, 'Larmes d''abeille', 'Vents d''Ouest', '978-2-7493-0268-3', 'GrandMortLe1_14112007_210502.jpg', 56, 3, 'larmes-d-abeille', 175, 198), (554, 2, 'Pauline...', 'Vents d''Ouest', '978-2-7493-0394-9', 'GrandMort_02_79711.jpg', 58, 7, 'pauline', 175, 198), (555, 3, 'Blanche', 'Vents d''Ouest', '978-2-7493-0595-0', 'Couv_135013.jpg', 54, 5, 'blanche', 175, 198), (556, 1, '508 statues souriantes', 'Futuropolis', '978-2-7548-0356-4', 'Couv_134093.jpg', 48, 4, '508-statues-souriantes', 176, 305), (557, 1, 'Chili con Carnage', 'Delcourt', '978-2-7560-1807-2', 'Couv_124457.jpg', 46, 2, 'chili-con-carnage', 177, 306), (558, 1, 'Chroniques diplomatiques', 'Dargaud', '978-2-205-06132-1', 'Couv_108242.jpg', 94, 5, 'chroniques-diplomatiques', 178, 75), (559, 2, 'Chroniques diplomatiques', 'Dargaud', '978-2-205-06679-1', 'Couv_141851.jpg', 96, 1, 'chroniques-diplomatiques', 178, 75), (560, NULL, 'Frenchman', '<NAME>', '978-2-356-74023-6', 'Couv_136258.jpg', 74, 1, 'frenchman', 179, 156), (561, 1, 'Les règles du jeu', 'Futuropolis', '978-2-7548-0318-2', 'Couv_135303.jpg', 48, 4, 'les-regles-du-jeu', 180, 309), (562, 1, 'Quinquennat nerveux', 'Delcourt', '978-2-7560-2824-8', '141736_c.jpg', NULL, 2, 'quinquennat-nerveux', 181, 291); -- -------------------------------------------------------- -- -- Structure de la table `categorie` -- CREATE TABLE IF NOT EXISTS `categorie` ( `id` int(11) NOT NULL, `nomCat` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `categorie` -- INSERT INTO `categorie` (`id`, `nomCat`, `slug`) VALUES (1, 'Science-fiction', 'science-fiction'), (2, 'Divers', 'divers'), (3, 'Polar/Thriller', 'polar-thriller'), (4, 'Historique', 'historique'), (5, 'Biographie', 'biographie'), (6, 'Aventure', 'aventure'), (7, 'Jeunesse', 'jeunesse'), (8, 'Comics', 'comics'), (9, 'Humour', 'humour'), (10, 'Manga', 'manga'), (11, 'Indépendant', 'independant'), (12, 'Érotique', 'erotique'); -- -------------------------------------------------------- -- -- Structure de la table `categorie_book` -- CREATE TABLE IF NOT EXISTS `categorie_book` ( `categorie_id` int(11) NOT NULL, `book_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `commande` -- CREATE TABLE IF NOT EXISTS `commande` ( `id` int(11) NOT NULL, `dateCommande` datetime DEFAULT NULL, `user_id` int(11) DEFAULT NULL, `pickUpSpot_id` int(11) DEFAULT NULL, `statut` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `commande` -- INSERT INTO `commande` (`id`, `dateCommande`, `user_id`, `pickUpSpot_id`, `statut`) VALUES (1, NULL, NULL, NULL, 'en_cours'), (2, '2015-05-23 12:19:08', 10, 1, 'Validée'); -- -------------------------------------------------------- -- -- Structure de la table `commande_book` -- CREATE TABLE IF NOT EXISTS `commande_book` ( `commande_id` int(11) NOT NULL, `book_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `commande_book` -- INSERT INTO `commande_book` (`commande_id`, `book_id`) VALUES (2, 2); -- -------------------------------------------------------- -- -- Structure de la table `fine` -- CREATE TABLE IF NOT EXISTS `fine` ( `id` int(11) NOT NULL, `montant` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `comment` longtext COLLATE utf8_unicode_ci NOT NULL, `user_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `pickupspot` -- CREATE TABLE IF NOT EXISTS `pickupspot` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `adresse` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `cp` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `ville` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `pickupspot` -- INSERT INTO `pickupspot` (`id`, `nom`, `adresse`, `cp`, `ville`) VALUES (1, 'Libria', '82 Passage Choiseul', '75002', 'Paris'), (2, 'Telecom Star', '15 Bd de Bonne Nouvelle', '75002', 'Paris'), (3, 'Hypso Reprographie', '53 rue de Montmorency', '75003', 'Paris'), (4, 'BM Pressing', '4 Bis Bd Morland', '75004', 'Paris'), (5, 'Game Cash / CG Paris 5', '21 rue Monge', '75005', 'Paris'), (6, '<NAME>', '11 rue Dauphine', '75006', 'Paris'), (7, 'Aux Fleurs du Bac', '69 rue du Bac', '75007', 'Paris'), (8, '<NAME>', '165 rue de Grenelle', '75007', 'Paris'), (9, 'Clean Pressing', '15 rue Manuel', '75009', 'Paris'), (10, 'Luffy', '35 rue de Clichy', '75009', 'Paris'), (11, 'Les Coteaux de Saumur', '10 rue Bichat', '75010', 'Paris'), (12, 'Magenta Art Deco', '34 Ter rue du Dunkerque', '75010', 'Paris'), (13, 'Baticlean 75', '191 rue de Charonne', '75011', 'Paris'), (14, '<NAME>', '133 rue de Montreuil', '75011', 'Paris'), (15, '<NAME>', '171 Bis Bd Voltaire', '75011', 'Paris'), (16, 'Pressing Boulle', '13 rue Boulle', '75011', 'Paris'), (17, 'B.C.B.G / SARL Fleuve Bleu', '18 rue <NAME>', '75011', 'Paris'), (18, '<NAME>', '13 Bis Avenue <NAME>', '75011', 'Paris'), (19, '<NAME>', '44 Bd Diderot', '75012', 'Paris'), (20, '<NAME>', '116 Av Général <NAME>', '75012', 'Paris'), (21, 'Alanpark', '105 rue de Charenton', '75013', 'Paris'), (22, 'Okbi Presse', '91 rue de Barrault', '75013', 'Paris'), (23, 'Encherexpert', '51 rue de Clisson', '75013', 'Paris'), (24, 'Maison de la Presse', '137 Bd Auguste Blanqui', '75013', 'Paris'), (25, 'Ideal Optic', '101 Av de France', '75013', 'Paris'), (26, 'Chryzalys', '206 Bd Raspail', '75014', 'Paris'), (27, '<NAME>', '133 Av du Maine', '75014', 'Paris'), (28, '<NAME>', '40 Bd Brune', '75014', 'Paris'), (29, '<NAME>', '22 rue des Volontaires', '75015', 'Paris'), (30, 'Moveux', '14 rue Dupleix', '75015', 'Paris'), (31, 'Saveurs du Sud', '14 Av <NAME>', '75015', 'Paris'), (32, 'Anwa', '105 Bis rue des Entrepreneurs', '75015', 'Paris'), (33, '<NAME>', '15 rue Daumier', '75016', 'Paris'), (34, 'Vu du XII', '96 Av de Mozart', '75016', 'Paris'), (35, 'Centre Literie', '2 Bd Bessières', '75017', 'Paris'), (36, '<NAME>', '45 rue Brochant', '75017', 'Paris'), (37, '<NAME>', '117 rue Legendre', '75017', 'Paris'), (38, 'Encherexpert', '61 rue Guy Moquet', '75017', 'Paris'), (39, '<NAME>', '12 rue Lamarck', '75018', 'Paris'), (40, 'Consoplus Informatique', '8 Bd Ney', '75018', 'Paris'), (41, '<NAME>', '17 rue Simart', '75018', 'Paris'), (42, '<NAME>', '15 rue Lagouat', '75018', 'Paris'), (43, 'Labelencre', '10 Av de La porte Brunet', '75019', 'Paris'), (44, 'Prim Plus', '9 rue du Cher', '75020', 'Paris'), (45, '<NAME>', '27 rue Saint Fargeau', '75020', 'Paris'), (46, 'Optic 62', '62 rue de Belleville', '75020', 'Paris'), (47, 'Pressing 113', '113 Bd Davout', '75020', 'Paris'), (48, 'Copy Conforme', '25 rue Gatinée', '75020', 'Paris'); -- -------------------------------------------------------- -- -- Structure de la table `serie` -- CREATE TABLE IF NOT EXISTS `serie` ( `id` int(11) NOT NULL, `titre` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=182 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `serie` -- INSERT INTO `serie` (`id`, `titre`) VALUES (1, 'Incal (L'')'), (2, 'Incal (Avant l'')'), (3, '<NAME>'), (4, 'Tueur (Le)'), (5, 'Pouvoir des innocents (Le)'), (6, 'Outremangeur (L'')'), (7, 'Sang des voyous (Le)'), (8, 'Paroles de Poilus'), (9, 'Un homme est mort'), (10, '<NAME>'), (11, 'Ibicus'), (12, 'Blacksad'), (13, '<NAME>'), (14, '<NAME> (Les)'), (15, '<NAME>'), (16, 'Kucek'), (17, 'Où le regard ne porte pas...'), (18, 'Hariti'), (19, 'Secteur 7'), (20, 'Mystère ovale'), (21, 'Akarus'), (22, 'Epouvantail pointeur (L'')'), (23, 'Mangecoeur'), (24, 'Gardiens (Les) (Watchmen)'), (25, 'Watchmen'), (26, 'Black hole'), (27, 'Spirit (Le)'), (28, 'Sin City'), (29, 'NonNonBâ'), (30, 'Gourmet solitaire (Le)'), (31, 'Paul'), (32, 'Sagah-Nah'), (33, 'Moral des troupes (Le)'), (34, 'Quelques pelures'), (35, 'Résine de synthèse'), (36, 'Guide de la survie en entreprise'), (37, 'Une aventure rocambolesque de ...'), (38, 'Cosmonautes du futur (Les)'), (39, '<NAME>'), (40, 'Retour à la terre (Le)'), (41, 'Combat ordinaire (Le)'), (42, 'Pascin'), (43, 'Fille du professeur (La)'), (44, '<NAME> (Le)'), (45, '<NAME>'), (46, '<NAME>'), (47, 'Supermurgeman'), (48, 'Lapinot (Les formidables aventures de)'), (49, 'Miss pas touche'), (50, 'Gus'), (51, '<NAME>'), (52, 'A la recherche de <NAME>'), (53, 'Sambre'), (54, 'Sambre - La guerre des Sambre'), (55, 'Quête de l''oiseau du temps (La)'), (56, 'Koma'), (57, 'Lupus'), (58, 'De cape et de crocs'), (59, 'Québec'), (60, 'Là où vont nos pères'), (61, 'Petits ruisseaux (Les)'), (62, 'Zoo'), (63, 'V pour Vendetta'), (64, '<NAME>'), (65, 'Photographe (Le)'), (66, 'Notes pour une histoire de guerre'), (67, 'RG'), (68, 'Lucille'), (69, 'Réducteur de vitesse (Le)'), (70, 'Blotch'), (71, 'Péplum'), (72, 'Thorgal'), (73, '<NAME>'), (74, 'Lanfeust des Etoiles'), (75, '<NAME>'), (76, 'Cri du peuple (Le)'), (77, '<NAME> (La)'), (78, '<NAME> (Editions Blake et Mortimer)'), (79, 'Voyage en Italie (Le)'), (80, '<NAME>'), (81, 'Sursis (Le)'), (82, '<NAME>'), (83, '<NAME> (Le)'), (84, 'Un peu de fumée bleue'), (85, 'Long voyage de Léna (Le)'), (86, 'Après la pluie'), (87, 'Vol du corbeau (Le)'), (88, '<NAME>'), (89, 'Persepolis'), (90, 'Poulet aux prunes'), (91, 'Bibendum céleste (Le)'), (92, 'Foligatto'), (93, 'Salvatore'), (94, '<NAME>'), (95, 'Pont dans la vase (Le)'), (96, 'Pourquoi j''ai tué Pierre'), (97, 'Légendes des contrées oubliées'), (98, '<NAME>''Aldébaran (Les) - Bételgeuse'), (99, '<NAME>''Aldébaran (Les) - Antarès'), (100, 'Kenya'), (101, '<NAME>''Orient'), (102, '<NAME>'), (103, 'Bar du vieux Français (Le)'), (104, 'Belette (La)'), (105, 'Arbre-coeur (L'')'), (106, '<NAME>''errant'), (107, 'Dracula, dracul, vlad?, bah...'), (108, 'Magasin général'), (109, 'XXe ciel.com'), (110, 'Ciel au-dessus de Bruxelles (Le)'), (111, '<NAME>'), (112, 'Animal''z'), (113, 'Servitude'), (114, 'Il était une fois en France'), (115, 'Alim le tanneur'), (116, 'Marie en plastique (La)'), (117, 'Lanfeust des Étoiles'), (118, 'Incal (Après l'')'), (119, '<NAME>'), (120, '<NAME>''Aldébaran (Les)'), (121, 'Olives noires (Les)'), (122, 'Mattéo'), (123, 'Troubles fêtes'), (124, 'Portes du possible (Les)'), (125, 'Fables'), (126, '<NAME>'), (127, 'Universal War One'), (128, 'Vent dans les saules (Le)'), (129, 'Réseau Bombyce (Le)'), (130, 'Vent dans les sables (Le)'), (131, 'Armes du Meta-Baron (Les)'), (132, 'Derniers corsaires (Les)'), (133, 'Bois des vierges (Le)'), (134, 'Petit Prince (Le)'), (135, 'Blast'), (136, 'Pachyderme'), (137, '<NAME> (Éditions Blake et Mortimer)'), (138, '<NAME>'), (139, 'Ancien temps (L'')'), (140, '<NAME>'), (141, '<NAME>'), (142, 'Trois ombres'), (143, 'Fables (VO - TPB)'), (144, 'Sommet des dieux (Le)'), (145, 'Bouddha d''Azur (Le)'), (146, 'Un peu avant la fortune'), (147, 'Retour au collège'), (148, 'Ça n''arrive qu''à moi !'), (149, 'Page Noire'), (150, 'Nef des fous (La)'), (151, '<NAME>'), (152, 'Mémoire dans les poches (La)'), (153, 'Quelques pas vers la lumière'), (154, 'Scorpion (Le)'), (155, 'Passagers du vent (Les)'), (156, 'Antarès'), (157, 'Survivants'), (158, 'Namibia (Kenya - Saison 2)'), (159, 'Fraternity'), (160, 'Assassin royal (L'')'), (161, 'Casse (Le)'), (162, 'Là-bas'), (163, 'Barracuda (Jérémy)'), (164, '<NAME>'), (165, 'Enfants de Jessica (Les)'), (166, '<NAME>'), (167, 'Essex County'), (168, 'Fugue (La) (Blanchet)'), (169, 'Body World'), (170, 'Journal d''un remplaçant (Le)'), (171, 'Broderies'), (172, 'Kaboul Disco'), (173, 'Shenzhen'), (174, 'Logicomix'), (175, 'Grand Mort (Le)'), (176, 'Car l''enfer est ici'), (177, 'Homme qui n''aimait pas les armes à feu (L'')'), (178, '<NAME>''Orsay'), (179, 'Frenchman'), (180, 'Urban'), (181, 'Actu en patates (L'')'); -- -------------------------------------------------------- -- -- Structure de la table `serie_categorie` -- CREATE TABLE IF NOT EXISTS `serie_categorie` ( `serie_id` int(11) NOT NULL, `categorie_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `serie_categorie` -- INSERT INTO `serie_categorie` (`serie_id`, `categorie_id`) VALUES (1, 1), (2, 1), (3, 2), (4, 3), (5, 3), (6, 2), (7, 3), (8, 4), (9, 5), (10, 6), (11, 2), (12, 3), (13, 7), (14, 1), (15, 1), (16, 6), (17, 5), (18, 6), (19, 2), (20, 2), (21, 6), (22, 1), (23, 1), (24, 8), (25, 8), (26, 1), (27, 9), (28, 3), (29, 2), (30, 10), (31, 5), (32, 9), (33, 2), (34, 2), (35, 2), (36, 9), (37, 9), (38, 9), (39, 9), (40, 9), (41, 5), (42, 5), (43, 2), (44, 6), (45, 9), (46, 5), (47, 9), (48, 9), (49, 3), (50, 9), (51, 6), (52, 2), (53, 4), (54, 4), (55, 1), (56, 1), (57, 1), (58, 9), (59, 4), (60, 2), (61, 2), (62, 2), (63, 1), (64, 9), (65, 5), (66, 2), (67, 3), (68, 5), (69, 2), (70, 9), (71, 2), (72, 6), (73, 1), (74, 1), (75, 2), (76, 4), (77, 1), (78, 6), (79, 2), (80, 2), (81, 2), (82, 3), (83, 2), (84, 2), (85, 2), (86, 2), (87, 2), (88, 5), (89, 5), (90, 5), (91, 2), (92, 2), (93, 2), (94, 9), (95, 9), (96, 5), (97, 1), (98, 1), (99, 1), (100, 6), (101, 4), (102, 2), (103, 2), (104, 2), (105, 2), (106, 1), (107, 2), (108, 5), (109, 2), (110, 2), (111, 4), (112, 1), (113, 1), (114, 4), (115, 6), (116, 2), (117, 1), (118, 1), (119, 11), (120, 1), (121, 4), (122, 2), (123, 12), (124, 1), (125, 8), (126, 1), (127, 1), (128, 7), (129, 1), (130, 2), (131, 1), (132, 2), (133, 2), (134, 2), (135, 6), (136, 2), (137, 6), (138, 2), (139, 1), (140, 9), (141, 1), (142, 2), (143, 8), (144, 10), (145, 6), (146, 2), (147, 9), (148, 2), (149, 3), (150, 9), (151, 2), (152, 2), (153, 2), (154, 6), (155, 4), (156, 1), (157, 1), (158, 2), (159, 2), (160, 2), (161, 3), (162, 2), (163, 6), (164, 1), (165, 3), (166, 1), (167, 2), (168, 2), (169, 1), (170, 5), (171, 2), (172, 5), (173, 5), (174, 2), (175, 1), (176, 3), (177, 9), (178, 3), (179, 4), (180, 1), (181, 9); -- -------------------------------------------------------- -- -- Structure de la table `transaction` -- CREATE TABLE IF NOT EXISTS `transaction` ( `id` int(11) NOT NULL, `transactioncol` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `_user` -- CREATE TABLE IF NOT EXISTS `_user` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `telephone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `salt` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateInscription` datetime NOT NULL, `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)' ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `_user` -- INSERT INTO `_user` (`id`, `nom`, `prenom`, `email`, `password`, `telephone`, `salt`, `token`, `dateInscription`, `roles`) VALUES (10, 'Jacquemin', 'Arthur', '<EMAIL>', 'WiE2jGfve7D9BaGpP8AyE8XXgrWhqw6rTAxlzLQ9QE4vnpe2KsEDUsJU7cuFMughFDLnNBY95NDvSB1BSZwh9w==', '01.20.30.40.07', 'cd2eefb48b522e60d3ace858dcc672f671433141828b679a86c9dd20fc09', '767e319eace5a728db1d17072928c3d1d19023f3eab8a671556f621b43cf', '2015-05-20 12:20:38', 'a:1:{i:0;s:9:"ROLE_USER";}'), (11, 'Marthe', 'Yacin', '<EMAIL>', 'btdAiVjiMgtgR8vSfiMossTFt3666ejramnZ4LK+I+Pio6Cehv0eIsFAMPYLQ/OfCP4lWX4tGysBLBxIwVJ1+g==', '04-07-05-05-06', '97a9c2dca4043cdd173b37ad9f29ee8c90d3b92c4e0618b7e4ac920d43bf', '2ebf332f419780f04cd18aea01ec3730a0d4a937b2cd60f51f6259c8f963', '2015-05-22 09:46:59', 'a:1:{i:0;s:9:"ROLE_USER";}'), (12, 'jfezfmlje', 'lkfejofekkg', '<EMAIL>', 'mW8s8QOvrZJEWsPh9SJYfFnkRkxjW5Ib0zNfsQYm9w7K8KLkyHP/2p7Om2q/gkpVXvd/zl1+KqEfD8nl5Y+tuQ==', '02 26 65 65 55', 'b86af1d8326c74ff4473dd03ece085cc410e221575da0b29ed05bde6a2b7', 'e66a5801a1c7dadf3f175c5fc3e95ff56010f551e06a07380d255fb5d8ac', '2015-05-22 10:20:33', 'a:1:{i:0;s:9:"ROLE_USER";}'), (13, 'Arthur', 'Martin', '<EMAIL>', '+NAT1mVLIBLvJs8sXvVfIg4EneoujuOrO52BrO8CO0RIOYoiqlmaA1FL0Dufh2Y2fqCK0agdMNr9lP0rUK2nRw==', '05-05-06-06-07', '08368687382ff595e6442ff6c6b7d5320b5cdbe4e2a0b0b8d8ac49bf0f70', 'b443ee11c2ce81a00c99a9fd5fb297e247a2bb33a472ca10858e8bf4d3e1', '2015-05-22 10:26:57', 'a:1:{i:0;s:9:"ROLE_USER";}'), (14, 'Arthur', 'Yacin', '<EMAIL>', 'Sirepd9oIZsFrdRqcN+5sXlgmj9ktmMZdYoZFL4eYSePjHtmuSzfbKo5IxpgtqZYb9kdVnyEsBJFBoSyaT5OCQ==', '05-06-05-07-05', 'a5885c97e41862822911f3a031937580de0cee82b44753af98f6889292c1', 'a07b56ec53a901ee2b38816754eb5f6c7bedfabf1ada05f8e488d4273c91', '2015-05-22 10:27:48', 'a:1:{i:0;s:9:"ROLE_USER";}'); -- -- Index pour les tables exportées -- -- -- Index pour la table `adresse` -- ALTER TABLE `adresse` ADD PRIMARY KEY (`id`), ADD KEY `IDX_CE2318AA76ED395` (`user_id`); -- -- Index pour la table `author` -- ALTER TABLE `author` ADD PRIMARY KEY (`id`); -- -- Index pour la table `book` -- ALTER TABLE `book` ADD PRIMARY KEY (`id`), ADD KEY `IDX_6BD70C0FD94388BD` (`serie_id`), ADD KEY `IDX_6BD70C0FF675F31B` (`author_id`); -- -- Index pour la table `categorie` -- ALTER TABLE `categorie` ADD PRIMARY KEY (`id`); -- -- Index pour la table `categorie_book` -- ALTER TABLE `categorie_book` ADD PRIMARY KEY (`categorie_id`,`book_id`), ADD KEY `IDX_BCCC2466BCF5E72D` (`categorie_id`), ADD KEY `IDX_BCCC246616A2B381` (`book_id`); -- -- Index pour la table `commande` -- ALTER TABLE `commande` ADD PRIMARY KEY (`id`), ADD KEY `IDX_979CC42BA76ED395` (`user_id`), ADD KEY `IDX_979CC42BBFFC316` (`pickUpSpot_id`); -- -- Index pour la table `commande_book` -- ALTER TABLE `commande_book` ADD PRIMARY KEY (`commande_id`,`book_id`), ADD KEY `IDX_A089A2D282EA2E54` (`commande_id`), ADD KEY `IDX_A089A2D216A2B381` (`book_id`); -- -- Index pour la table `fine` -- ALTER TABLE `fine` ADD PRIMARY KEY (`id`), ADD KEY `IDX_1E9BFBACA76ED395` (`user_id`); -- -- Index pour la table `pickupspot` -- ALTER TABLE `pickupspot` ADD PRIMARY KEY (`id`); -- -- Index pour la table `serie` -- ALTER TABLE `serie` ADD PRIMARY KEY (`id`); -- -- Index pour la table `serie_categorie` -- ALTER TABLE `serie_categorie` ADD PRIMARY KEY (`serie_id`,`categorie_id`), ADD KEY `IDX_6137E805D94388BD` (`serie_id`), ADD KEY `IDX_6137E805BCF5E72D` (`categorie_id`); -- -- Index pour la table `transaction` -- ALTER TABLE `transaction` ADD PRIMARY KEY (`id`); -- -- Index pour la table `_user` -- ALTER TABLE `_user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `adresse` -- ALTER TABLE `adresse` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT pour la table `author` -- ALTER TABLE `author` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=311; -- -- AUTO_INCREMENT pour la table `book` -- ALTER TABLE `book` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=563; -- -- AUTO_INCREMENT pour la table `categorie` -- ALTER TABLE `categorie` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13; -- -- AUTO_INCREMENT pour la table `commande` -- ALTER TABLE `commande` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT pour la table `fine` -- ALTER TABLE `fine` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `pickupspot` -- ALTER TABLE `pickupspot` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=49; -- -- AUTO_INCREMENT pour la table `serie` -- ALTER TABLE `serie` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=182; -- -- AUTO_INCREMENT pour la table `transaction` -- ALTER TABLE `transaction` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `_user` -- ALTER TABLE `_user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=15; -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `adresse` -- ALTER TABLE `adresse` ADD CONSTRAINT `FK_CE2318AA76ED395` FOREIGN KEY (`user_id`) REFERENCES `_user` (`id`); -- -- Contraintes pour la table `book` -- ALTER TABLE `book` ADD CONSTRAINT `FK_6BD70C0FD94388BD` FOREIGN KEY (`serie_id`) REFERENCES `serie` (`id`), ADD CONSTRAINT `FK_6BD70C0FF675F31B` FOREIGN KEY (`author_id`) REFERENCES `author` (`id`); -- -- Contraintes pour la table `categorie_book` -- ALTER TABLE `categorie_book` ADD CONSTRAINT `FK_BCCC246616A2B381` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_BCCC2466BCF5E72D` FOREIGN KEY (`categorie_id`) REFERENCES `categorie` (`id`) ON DELETE CASCADE; -- -- Contraintes pour la table `commande` -- ALTER TABLE `commande` ADD CONSTRAINT `FK_979CC42BA76ED395` FOREIGN KEY (`user_id`) REFERENCES `_user` (`id`), ADD CONSTRAINT `FK_979CC42BBFFC316` FOREIGN KEY (`pickUpSpot_id`) REFERENCES `pickupspot` (`id`); -- -- Contraintes pour la table `commande_book` -- ALTER TABLE `commande_book` ADD CONSTRAINT `FK_A089A2D216A2B381` FOREIGN KEY (`book_id`) REFERENCES `book` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_A089A2D282EA2E54` FOREIGN KEY (`commande_id`) REFERENCES `commande` (`id`) ON DELETE CASCADE; -- -- Contraintes pour la table `fine` -- ALTER TABLE `fine` ADD CONSTRAINT `FK_1E9BFBACA76ED395` FOREIGN KEY (`user_id`) REFERENCES `_user` (`id`); -- -- Contraintes pour la table `serie_categorie` -- ALTER TABLE `serie_categorie` ADD CONSTRAINT `FK_6137E805BCF5E72D` FOREIGN KEY (`categorie_id`) REFERENCES `categorie` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `FK_6137E805D94388BD` FOREIGN KEY (`serie_id`) REFERENCES `serie` (`id`) ON DELETE 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 */;
<reponame>JoaoGuedes01/BracelHertz -- -- Server version 8.0.17 -- /*!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 */; /*!50503 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 `alert_log` -- DROP TABLE IF EXISTS `alert_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `alert_log` ( `alert_log_id` bigint(20) NOT NULL AUTO_INCREMENT, `created_timestamp` datetime DEFAULT CURRENT_TIMESTAMP, `prisoner_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`alert_log_id`), KEY `FK96g0xchhbwjwo4bq1p09lrnsf` (`prisoner_id`), CONSTRAINT `FK96g0xchhbwjwo4bq1p09lrnsf` FOREIGN KEY (`prisoner_id`) REFERENCES `prisoner` (`prisoner_id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `alert_log` -- LOCK TABLES `alert_log` WRITE; /*!40000 ALTER TABLE `alert_log` DISABLE KEYS */; /*!40000 ALTER TABLE `alert_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `annotation` -- DROP TABLE IF EXISTS `annotation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `annotation` ( `annotation_id` bigint(20) NOT NULL AUTO_INCREMENT, `created_timestamp` datetime DEFAULT CURRENT_TIMESTAMP, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `last_updated_timestamp` datetime(6) DEFAULT NULL, `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `annotation_dest_id` bigint(20) DEFAULT NULL, `created_by` bigint(20) NOT NULL, `prison_dest_id` bigint(20) DEFAULT NULL, `prisoner_dest_id` bigint(20) DEFAULT NULL, `user_dest_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`annotation_id`), KEY `FK5nl6kotk0i47cvovfrurghfoo` (`user_dest_id`), KEY `FKi6co4hgy8462mtr1syt5ac863` (`prison_dest_id`), KEY `FKn3h6xmlu5u55p4u7em9p1fi7t` (`annotation_dest_id`), KEY `FKphs49kcylp7rru7nemr4c4rss` (`prisoner_dest_id`), KEY `FKrkjh4n3cqld60jrvfioevt3j6` (`created_by`), CONSTRAINT `FK5nl6kotk0i47cvovfrurghfoo` FOREIGN KEY (`user_dest_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FKi6co4hgy8462mtr1syt5ac863` FOREIGN KEY (`prison_dest_id`) REFERENCES `prison` (`prison_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FKn3h6xmlu5u55p4u7em9p1fi7t` FOREIGN KEY (`annotation_dest_id`) REFERENCES `annotation` (`annotation_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FKphs49kcylp7rru7nemr4c4rss` FOREIGN KEY (`prisoner_dest_id`) REFERENCES `prisoner` (`prisoner_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FKrkjh4n3cqld60jrvfioevt3j6` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=262 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `annotation` -- LOCK TABLES `annotation` WRITE; /*!40000 ALTER TABLE `annotation` DISABLE KEYS */; /*!40000 ALTER TABLE `annotation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `criminal_record` -- DROP TABLE IF EXISTS `criminal_record`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `criminal_record` ( `criminal_record_id` bigint(20) NOT NULL AUTO_INCREMENT, `created_timestamp` datetime(6) DEFAULT NULL, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `emission_date` date NOT NULL, `last_updated_timestamp` datetime(6) DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `prisoner_id` bigint(20) NOT NULL, PRIMARY KEY (`criminal_record_id`), KEY `FKh4dx6ab1vflps2erbej4t3r9k` (`prisoner_id`), CONSTRAINT `FKh4dx6ab1vflps2erbej4t3r9k` FOREIGN KEY (`prisoner_id`) REFERENCES `prisoner` (`prisoner_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=36 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `criminal_record` -- LOCK TABLES `criminal_record` WRITE; /*!40000 ALTER TABLE `criminal_record` DISABLE KEYS */; /*!40000 ALTER TABLE `criminal_record` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `facial_recognition` -- DROP TABLE IF EXISTS `facial_recognition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `facial_recognition` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `secret` varchar(255) DEFAULT NULL, `pic_byte` longblob, `type` varchar(255) DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `fr_user_id_idx` (`user_id`), CONSTRAINT `fr_user_id` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `facial_recognition` -- LOCK TABLES `facial_recognition` WRITE; /*!40000 ALTER TABLE `facial_recognition` DISABLE KEYS */; /*!40000 ALTER TABLE `facial_recognition` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `image_table` -- DROP TABLE IF EXISTS `image_table`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `image_table` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `pic_byte` longblob, `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=195 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `image_table` -- LOCK TABLES `image_table` WRITE; /*!40000 ALTER TABLE `image_table` DISABLE KEYS */; /*!40000 ALTER TABLE `image_table` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `medical_prescription` -- DROP TABLE IF EXISTS `medical_prescription`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `medical_prescription` ( `prescription_id` bigint(20) NOT NULL AUTO_INCREMENT, `created_timestamp` datetime(6) DEFAULT NULL, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `last_updated_timestamp` datetime(6) DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `prisoner_id` bigint(20) NOT NULL, PRIMARY KEY (`prescription_id`), KEY `FKs8xwpni6gkvmc8fk0bemndaxi` (`prisoner_id`), CONSTRAINT `FKs8xwpni6gkvmc8fk0bemndaxi` FOREIGN KEY (`prisoner_id`) REFERENCES `prisoner` (`prisoner_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `medical_prescription` -- LOCK TABLES `medical_prescription` WRITE; /*!40000 ALTER TABLE `medical_prescription` DISABLE KEYS */; /*!40000 ALTER TABLE `medical_prescription` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `prison` -- DROP TABLE IF EXISTS `prison`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `prison` ( `prison_id` bigint(20) NOT NULL AUTO_INCREMENT, `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `contact` varchar(9) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `photo_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`prison_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `prison` -- LOCK TABLES `prison` WRITE; /*!40000 ALTER TABLE `prison` DISABLE KEYS */; /*!40000 ALTER TABLE `prison` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `prisoner` -- DROP TABLE IF EXISTS `prisoner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `prisoner` ( `prisoner_id` bigint(20) NOT NULL AUTO_INCREMENT, `alert_off` tinyint(1) DEFAULT '0', `alternative_contact` varchar(9) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `birth_date` date NOT NULL, `bracelet_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `cell` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `contact` varchar(9) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `created_timestamp` datetime(6) DEFAULT NULL, `identifier_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `maxhb` int(11) NOT NULL DEFAULT '120', `minhb` int(11) NOT NULL DEFAULT '30', `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `nationality` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `photo_id` bigint(20) DEFAULT NULL, `threat_level` int(11) NOT NULL, `created_by` bigint(20) DEFAULT NULL, `prison_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`prisoner_id`), UNIQUE KEY `bracelet_id_UNIQUE` (`bracelet_id`), UNIQUE KEY `identifier_id_UNIQUE` (`identifier_id`), KEY `FKce0j0rbo93xg4nm9ejk8u053d` (`prison_id`), KEY `FKokmde1lsxyc3lrsoowi5sovow` (`created_by`), CONSTRAINT `FKce0j0rbo93xg4nm9ejk8u053d` FOREIGN KEY (`prison_id`) REFERENCES `prison` (`prison_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `FKokmde1lsxyc3lrsoowi5sovow` FOREIGN KEY (`created_by`) REFERENCES `user` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `prisoner` -- LOCK TABLES `prisoner` WRITE; /*!40000 ALTER TABLE `prisoner` DISABLE KEYS */; /*!40000 ALTER TABLE `prisoner` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `prisoner_log` -- DROP TABLE IF EXISTS `prisoner_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `prisoner_log` ( `prisoner_log_id` bigint(20) NOT NULL AUTO_INCREMENT, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `log_timestamp` datetime(6) DEFAULT NULL, `by_user` bigint(20) DEFAULT NULL, `prisoner_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`prisoner_log_id`), KEY `FK13sfgtxufu7rgnfvwk2txiuj` (`prisoner_id`), KEY `<KEY>` (`by_user`), CONSTRAINT `FK13sfgtxufu7rgnfvwk2txiuj` FOREIGN KEY (`prisoner_id`) REFERENCES `prisoner` (`prisoner_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `FKi12mskgj1mk2q4wsqbhft8yuc` FOREIGN KEY (`by_user`) REFERENCES `user` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=408 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `prisoner_log` -- LOCK TABLES `prisoner_log` WRITE; /*!40000 ALTER TABLE `prisoner_log` DISABLE KEYS */; /*!40000 ALTER TABLE `prisoner_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `roles` -- DROP TABLE IF EXISTS `roles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `roles` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_nb4h0p6txrmfc0xbrd1kglp9t` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `roles` -- LOCK TABLES `roles` WRITE; /*!40000 ALTER TABLE `roles` DISABLE KEYS */; INSERT INTO `roles` VALUES (0,'ROLE_GUARD'),(1,'ROLE_MANAGER'),(2,'ROLE_NETWORKMAN'); /*!40000 ALTER TABLE `roles` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `schedule` -- DROP TABLE IF EXISTS `schedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `schedule` ( `schedule_id` bigint(20) NOT NULL AUTO_INCREMENT, `date` date NOT NULL, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`schedule_id`), KEY `FKa50n59y1j4a6qwa42p8jiguds` (`user_id`), CONSTRAINT `FKa50n59y1j4a6qwa42p8jiguds` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `schedule` -- LOCK TABLES `schedule` WRITE; /*!40000 ALTER TABLE `schedule` DISABLE KEYS */; /*!40000 ALTER TABLE `schedule` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user` ( `user_id` bigint(20) NOT NULL AUTO_INCREMENT, `address` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `birth_date` date NOT NULL, `contact` varchar(9) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `created_timestamp` datetime(6) DEFAULT NULL, `email` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `last_login` datetime(6) DEFAULT NULL, `location` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `nationality` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `password_token` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `photo_id` bigint(20) DEFAULT NULL, `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `prison_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`user_id`), UNIQUE KEY `UK_sb8bbouer5wak8vyiiy4pf2bx` (`username`), KEY `FK7nr6nqh84tsorn8iogwfobc73` (`prison_id`), CONSTRAINT `FK7nr6nqh84tsorn8iogwfobc73` FOREIGN KEY (`prison_id`) REFERENCES `prison` (`prison_id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_log` -- DROP TABLE IF EXISTS `user_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_log` ( `user_log_id` bigint(20) NOT NULL AUTO_INCREMENT, `description` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, `log_timestamp` datetime(6) DEFAULT NULL, `by_user` bigint(20) DEFAULT NULL, `user_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`user_log_id`), KEY `FKmd6gmr2tvduf9qvif1nchhqfm` (`user_id`), KEY `FKpl92sgaciyd14tajut3owys36` (`by_user`), CONSTRAINT `FKmd6gmr2tvduf9qvif1nchhqfm` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE, CONSTRAINT `FKpl92sgaciyd14tajut3owys36` FOREIGN KEY (`by_user`) REFERENCES `user` (`user_id`) ON DELETE SET NULL ON UPDATE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=111 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_log` -- LOCK TABLES `user_log` WRITE; /*!40000 ALTER TABLE `user_log` DISABLE KEYS */; /*!40000 ALTER TABLE `user_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_role` -- DROP TABLE IF EXISTS `user_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_role` ( `user_id` bigint(20) NOT NULL, `role_id` bigint(20) NOT NULL, PRIMARY KEY (`user_id`,`role_id`), KEY `FKt7e7djp752sqn6w22i6ocqy6q` (`role_id`), CONSTRAINT `FK859n2jvi8ivhui0rl0esws6o` FOREIGN KEY (`user_id`) REFERENCES `user` (`user_id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FKt7e7djp752sqn6w22i6ocqy6q` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_role` -- LOCK TABLES `user_role` WRITE; /*!40000 ALTER TABLE `user_role` DISABLE KEYS */; /*!40000 ALTER TABLE `user_role` 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 */; --
<gh_stars>0 BEGIN TRANSACTION; CREATE TABLE favfoods ( id SERIAL PRIMARY KEY, name VARCHAR(255), lastname VARCHAR(255), favorite_food VARCHAR(255) ); INSERT INTO favfoods (name, lastname, favorite_food) VALUES ('Chip', 'Crawford', 'Hamburgers'), ('Julia', 'Kyung', 'Pasta'), ('Tam', 'Nguyen', 'Peperonni Pizza'), ('Garret', 'Chun', '<NAME>'), ('Jeff', 'Bentley', 'Roast'), ('Polly', 'Stucliff', 'Sushi'), ('Halee', 'From Cali', 'Salad'), ('Roger', 'Vancouver', 'Spaghetti'), ('Shuntaro', 'Maekawa', 'Sashimi'), ('Kohki', 'Shiga', 'Natto'), ('Yuta', 'The man', 'Cheese burrito'), ('Yasuhiko', 'Nara', 'Kimchi'), ('Yurika', 'Namba', 'Ravioli'), ('Aizhan', 'Imankulova', 'Pork chops'), ('Riku', 'Kawano', 'Fish Tacos'), ('Mako', 'Kusuda', 'Okonomiyaki'), ('Zowie', 'Amazing', 'Teppanyaki'), ('Yuya', 'Harada', 'Tacos'), ('Carlos', 'Salazar', 'Tacos'); COMMIT;
create table if not exists cursos ( nome varchar(30) not null unique, descricao text, carga int unsigned, totaulas int unsigned, ano year default '2016' ) default charset = utf8; describe cursos; alter table cursos add column idcursos int first; alter table cursos add primary key (idcursos); create table if not exists teste( id int, nome varchar(10), idade int ); insert into teste value ('1', 'Mario', '22'), ('2', 'Luana', '12'), ('3', 'Bruno', '80'); select * from teste; drop table if exists teste;
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 06, 2017 at 01:53 AM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `db_poliklinik` -- -- -------------------------------------------------------- -- -- Stand-in structure for view `cpem` -- CREATE TABLE IF NOT EXISTS `cpem` ( `nopendaftaran` int(15) ,`nopasien` char(10) ,`namapass` varchar(50) ); -- -------------------------------------------------------- -- -- Stand-in structure for view `datpeg` -- CREATE TABLE IF NOT EXISTS `datpeg` ( `username` varchar(15) ,`password` varchar(15) ,`typeuser` varchar(5) ,`nip` char(10) ,`namapeg` varchar(50) ,`almpeg` varchar(50) ,`telppeg` varchar(20) ,`tgllhrpeg` date ,`jnlkelpeg` varchar(1) ); -- -------------------------------------------------------- -- -- Table structure for table `detailbiaya` -- CREATE TABLE IF NOT EXISTS `detailbiaya` ( `iddetailbiaya` char(5) NOT NULL DEFAULT '', `idjenisbiaya` char(5) DEFAULT NULL, `nopendaftaran` int(15) DEFAULT NULL, `tarif` double DEFAULT NULL, PRIMARY KEY (`iddetailbiaya`), KEY `idjenisbiaya` (`idjenisbiaya`), KEY `nopendaftaran` (`nopendaftaran`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `detailbiaya` -- INSERT INTO `detailbiaya` (`iddetailbiaya`, `idjenisbiaya`, `nopendaftaran`, `tarif`) VALUES ('DB001', 'B0003', 1701310001, 20000), ('DB002', 'B0005', 1701310001, 1000); -- -------------------------------------------------------- -- -- Table structure for table `detailresep` -- CREATE TABLE IF NOT EXISTS `detailresep` ( `iddetailresep` char(18) NOT NULL DEFAULT '', `noresep` char(15) DEFAULT NULL, `kodeobat` char(10) DEFAULT NULL, `jumlah` int(11) DEFAULT NULL, `dosis` text NOT NULL, `hargajual` double NOT NULL, PRIMARY KEY (`iddetailresep`), KEY `noresep` (`noresep`), KEY `kodeobat` (`kodeobat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `detailresep` -- INSERT INTO `detailresep` (`iddetailresep`, `noresep`, `kodeobat`, `jumlah`, `dosis`, `hargajual`) VALUES ('RES17020400000101', 'RES170204000001', 'OB.000.007', 2, '2', 139), ('RES17020400000102', 'RES170204000001', 'OB.000.004', 2, '2', 100), ('RES17020400000103', 'RES170204000001', 'OB.000.008', 2, '2', 175), ('RES17020400000201', 'RES170204000002', 'OB.000.006', 1, '1', 138), ('RES17020400000202', 'RES170204000002', 'OB.000.005', 1, '1', 132), ('RES17020400000203', 'RES170204000002', 'OB.000.009', 1, '1', 180); -- -------------------------------------------------------- -- -- Stand-in structure for view `detresobat` -- CREATE TABLE IF NOT EXISTS `detresobat` ( `kodeobat` char(10) ,`namaobat` varchar(50) ,`merk` varchar(50) ,`satuan` varchar(20) ,`hargajual` double ,`iddetailresep` char(18) ,`noresep` char(15) ,`jumlah` int(11) ,`dosis` text ); -- -------------------------------------------------------- -- -- Table structure for table `dokter` -- CREATE TABLE IF NOT EXISTS `dokter` ( `kodedokter` char(5) NOT NULL, `kodepoli` char(5) NOT NULL, `namadokter` varchar(50) DEFAULT NULL, `almdokter` varchar(50) DEFAULT NULL, `telpdokter` varchar(20) DEFAULT NULL, PRIMARY KEY (`kodedokter`), KEY `kodepoli` (`kodepoli`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `dokter` -- INSERT INTO `dokter` (`kodedokter`, `kodepoli`, `namadokter`, `almdokter`, `telpdokter`) VALUES ('3', '12345', '<NAME> S.M.Aaa', 'kp. air bambu', '00000012222'), ('4', '12345', 'siapa aja lah', 'di mana aja', '049359873479899'), ('Dr003', '12345', '<NAME>', 'Kp. ama aja', '037473837384'), ('Dr004', 'P0001', ' <NAME>', 'Jl. Siliwangi Gg.Guntur I No.43', '082315279544'), ('Dr005', 'P0002', ' <NAME>', 'Jl. Mangunsarkoro No.6', '08157281500'), ('Dr006', 'P0003', '<NAME>', 'BTN Binong <NAME>dah', '081563036743'), ('Dr007', 'P0004', '<NAME>', 'Jl. Wuluku No.1 Babakan Sari Rt.07/10', '081321233024'), ('Dr008', 'P0005', '<NAME>', 'Jl. Dipawangi II No.14', '085751992576'), ('Dr009', 'P0001', '<NAME>', 'Gg. Rinjani II Rt/Rw. 02/014', '087820337135'), ('Dr010', 'P0002', '<NAME>', 'Jl. Perwira No.4B', '085720602999'), ('Dr011', 'P0003', '<NAME>', 'Jl. Santosa Asih III No. 37', '08121478006'), ('Dr012', 'P0004', '<NAME>', 'KP KARANG TENGAH', '081912054227'), ('Dr013', 'P0005', '<NAME>', 'Jl.Pr.Hidayatullah No.31', '081809819403'); -- -------------------------------------------------------- -- -- Stand-in structure for view `jaddok` -- CREATE TABLE IF NOT EXISTS `jaddok` ( `kodedokter` char(5) ,`kodepoli` char(5) ,`namadokter` varchar(50) ,`almdokter` varchar(50) ,`telpdokter` varchar(20) ,`kodejadwal` char(5) ,`hari` varchar(15) ,`jammulai` time ,`jamselesai` time ); -- -------------------------------------------------------- -- -- Stand-in structure for view `jadper` -- CREATE TABLE IF NOT EXISTS `jadper` ( `namadokter` varchar(50) ,`namapoli` varchar(50) ,`hari` varchar(15) ,`jammulai` time ,`jamselesai` time ); -- -------------------------------------------------------- -- -- Table structure for table `jadwalpraktek` -- CREATE TABLE IF NOT EXISTS `jadwalpraktek` ( `kodejadwal` char(5) NOT NULL, `kodedokter` char(5) NOT NULL, `hari` varchar(15) DEFAULT NULL, `jammulai` time DEFAULT NULL, `jamselesai` time DEFAULT NULL, PRIMARY KEY (`kodejadwal`), KEY `kodedokter` (`kodedokter`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `jadwalpraktek` -- INSERT INTO `jadwalpraktek` (`kodejadwal`, `kodedokter`, `hari`, `jammulai`, `jamselesai`) VALUES ('12345', '3', 'Senin', '00:00:08', '00:00:08'), ('J0002', 'Dr003', 'Senin', '11:11:00', '11:11:00'), ('J0003', '4', 'Senin', '14:22:00', '14:22:00'), ('J0004', '3', 'Rabu', '11:11:00', '11:11:00'), ('J0005', 'Dr003', 'Rabu', '00:00:11', '00:00:11'), ('J0006', 'Dr004', 'Kamis', '00:00:11', '00:00:11'), ('J0007', 'Dr005', 'Jumat', '00:00:11', '00:00:11'), ('J0008', 'Dr006', 'Sabtu', '00:00:11', '00:00:11'), ('J0009', 'Dr007', 'Minggu', '00:00:11', '00:00:11'), ('J0010', 'Dr008', 'Senin', '00:00:11', '00:00:11'), ('J0011', 'Dr009', 'Selasa', '00:00:11', '00:00:11'), ('J0012', 'Dr010', 'Rabu', '00:00:11', '00:00:11'), ('J0013', 'Dr011', 'Kamis', '00:00:11', '00:00:11'), ('J0014', 'Dr012', 'Jumat', '00:00:11', '00:00:11'), ('J0015', 'Dr013', 'Sabtu', '00:00:11', '00:00:11'); -- -------------------------------------------------------- -- -- Table structure for table `jenisbiaya` -- CREATE TABLE IF NOT EXISTS `jenisbiaya` ( `idjenisbiaya` char(5) NOT NULL, `namabiaya` varchar(50) DEFAULT NULL, `tarif` double DEFAULT NULL, PRIMARY KEY (`idjenisbiaya`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `jenisbiaya` -- INSERT INTO `jenisbiaya` (`idjenisbiaya`, `namabiaya`, `tarif`) VALUES ('12345', 'biaya pemeriksaan', 100000), ('B0001', 'Pemeriksaan Kesehatan', 10000), ('B0002', 'Cek Tekanan Darah', 5000), ('B0003', 'Cek Golongan Darang', 20000), ('B0004', 'Cek Kadar Gula Darah', 20000), ('B0005', 'Cek Lingkar Perut', 1000), ('B0006', 'Cek Kolestrol Total', 30000), ('B0007', 'Cek Diabetes', 20000), ('B0008', 'Cek Osteoporosis', 30000), ('B0009', 'Cek Kangker Usus', 50000), ('B0010', 'Cek Kangker Kulit', 40000), ('B0011', 'Tes Urin', 200000), ('B0012', 'Tes Paru Paru', 200000), ('B0013', 'Tes Pendengaran', 1000), ('B0014', 'Tes Penglihatan', 1000), ('B0015', 'Tes Buta Warna', 1000); -- -------------------------------------------------------- -- -- Table structure for table `login` -- CREATE TABLE IF NOT EXISTS `login` ( `username` varchar(15) NOT NULL, `nip` char(10) NOT NULL, `password` varchar(15) DEFAULT NULL, `typeuser` varchar(5) DEFAULT NULL, PRIMARY KEY (`username`), KEY `nip` (`nip`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `login` -- INSERT INTO `login` (`username`, `nip`, `password`, `typeuser`) VALUES ('deko', '141510088', 'deko', '<PASSWORD>'), ('denis', '1234567890', 'denis', 'Admin'), ('siapa', '141510077', 'siapa', 'Pemer'); -- -------------------------------------------------------- -- -- Table structure for table `obat` -- CREATE TABLE IF NOT EXISTS `obat` ( `kodeobat` char(10) NOT NULL, `namaobat` varchar(50) DEFAULT NULL, `merk` varchar(50) DEFAULT NULL, `satuan` varchar(20) DEFAULT NULL, `stok` int(11) NOT NULL, `hargajual` double DEFAULT NULL, PRIMARY KEY (`kodeobat`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `obat` -- INSERT INTO `obat` (`kodeobat`, `namaobat`, `merk`, `satuan`, `stok`, `hargajual`) VALUES ('OB.000.001', 'ibuprofen', 'Phap', 'Mg', 1000, 100), ('OB.000.002', 'Ibuprofen', 'Phap', 'Mg', 1000, 92), ('OB.000.003', 'Ibuprofen', 'Yari', 'Mg', 1000, 95), ('OB.000.004', 'Ibuprofen', 'Infa', 'Mg', 1000, 100), ('OB.000.005', 'Ibuprofen', 'Phyt', 'Mg', 1000, 132), ('OB.000.006', 'Ibuprofen', 'Rama', 'Mg', 1000, 138), ('OB.000.007', 'Ibuprofen', 'Prom', 'Mg', 1000, 139), ('OB.000.008', 'Ibuprofen', 'Phap', 'Mg', 1000, 175), ('OB.000.009', 'Ibuprofen', 'Infa', 'Mg', 1000, 180), ('OB.000.010', 'Metampiron', 'Infa', 'Mg', 1000, 120), ('OB.000.011', 'Metampiron', 'fhyt', 'Mg', 1000, 120), ('OB.000.012', 'Metampiron', 'Bern', 'Mg', 1000, 120), ('OB.000.013', 'Metampiron', 'Infa', 'Mg', 1000, 120); -- -------------------------------------------------------- -- -- Table structure for table `pasien` -- CREATE TABLE IF NOT EXISTS `pasien` ( `nopasien` char(10) NOT NULL, `namapass` varchar(50) DEFAULT NULL, `almpass` varchar(50) DEFAULT NULL, `telppas` varchar(20) DEFAULT NULL, `tgllahirpass` date DEFAULT NULL, `jeniskelpas` varchar(1) DEFAULT NULL, `tglregistrasi` date DEFAULT NULL, PRIMARY KEY (`nopasien`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pasien` -- INSERT INTO `pasien` (`nopasien`, `namapass`, `almpass`, `telppas`, `tgllahirpass`, `jeniskelpas`, `tglregistrasi`) VALUES ('1701150001', '<NAME>', 'Perum. Kota baru blok 5 no.24', '85863201500', '1998-07-13', 'L', '2017-02-02'), ('1701150002', '<NAME>', 'Kp kopo kulon Rt 02/Rw 05 Jl. Baros desa.sukataris', '85863201501', '1998-07-14', 'L', '2017-02-03'), ('1701150003', '<NAME>', 'Kp. Sukataris Ds.Sukataris RT.02 RW.01 Kec. Karang', '85863201502', '1998-07-15', 'L', '2017-02-04'), ('1701150004', '<NAME>', 'Kp. Selakawung RT. 04/02 kec. Cilaku kab. Cianjur', '85863201503', '1998-07-16', 'L', '2017-02-05'), ('1701150005', '<NAME>', 'BTN.Griya Binong Indah, Cilaku, Cianjur', '85863201504', '1998-07-17', 'L', '2017-02-06'), ('1701150006', '<NAME>', 'Btn Bumi Asri Sukamaju Blok B25 ', '85863201505', '1998-07-18', 'L', '2017-02-07'), ('1701150007', 'DEDE KOMARUDIN', 'Kp. baru Rt 01/04 Cipanas', '85863201506', '1998-07-19', 'L', '2017-02-08'), ('1701150008', '<NAME>', 'kp giriharja RT 01 RW 01 Desa Cibulakan ', '85863201507', '1998-07-20', 'L', '2017-02-09'), ('1701150009', '<NAME>', 'Pesona Cianjur Indah Blok L2 No 15 RT05 / RW15', '85863201508', '1998-07-21', 'L', '2017-02-10'), ('1701150010', '<NAME>', 'Jl.Kh.Saleh RT 06 / RW 01 KP.Pandan Jaya', '85863201509', '1998-07-22', 'L', '2017-02-11'), ('1701150011', '<NAME>', 'Jl.Didi prawira kusumah Ga.Al-istiqomah ', '85863201510', '1998-07-23', 'L', '2017-02-12'), ('1701150012', '<NAME>', 'JL.Prof.Moch.Yamin No.118 RT.02 RW.08 Cianjur', '85863201511', '1998-07-24', 'P', '2017-02-13'), ('1701150013', '<NAME>', 'Kp. Tegal Batu RT02/RW02 Kec.Cilaku Kab.cianjur', '85863201512', '1998-07-25', 'P', '2017-02-14'), ('1701150014', '<NAME>', 'Jl.Aria Cikondang Gg harapan 2', '85863201513', '1998-07-26', 'P', '2017-02-15'), ('1701150015', '<NAME>', 'Kp Lampegan, Rt 04,Rw 12', '85863201514', '1998-07-27', 'P', '2017-02-16'), ('1701150016', '<NAME>', 'Gadung Permai Jl. Flamboyan No. A23 RT. 01 / 16 Ci', '85863201515', '1998-07-28', 'P', '2017-02-17'), ('1701150017', '<NAME>', 'Kp. Pateken Ds.Sukataris RT.02 RW.03 Kec.Karangten', '85863201516', '1998-07-29', 'L', '2017-02-18'), ('1701160001', 'rifa', 'Alamatnya dimana', '04995848958', '2015-10-29', 'P', '2017-12-31'), ('1701160002', '<NAME>', 'Jl.Perintis Kemerdekaan No.107 A Kp.Margaluyu', '85863201518', '1998-07-31', 'P', '2017-02-20'), ('1701160003', '<NAME>', 'Kp. Rawa bango RT02/RW03 Kec.Ciranjang Kab.cianjur', '85863201519', '1998-08-01', 'L', '2017-02-21'), ('1701160004', '<NAME>', 'Kp.Kopem RT 01 RW 10 kelurahan sawah gede', '85863201520', '1998-08-02', 'L', '2017-02-22'), ('1701160005', '<NAME>', 'Kp. <NAME> RT. 01/01 kec. Cianjur kab. ', '85863201521', '1998-08-03', 'P', '2017-02-23'), ('1701160006', '<NAME>', 'Komplek Coolibah Utama No. 87', '85863201522', '1998-08-04', 'P', '2017-02-24'), ('1701160007', '<NAME>', 'Jl.Aria Cikondang Gg.Harapan 2', '85863201523', '1998-08-05', 'P', '2017-02-25'), ('1701160008', '<NAME>', 'Kp. Pasarean. kec. Cianjur kab. Cianjur', '85863201524', '1998-08-06', 'P', '2017-02-26'), ('1701160009', '<NAME>', 'Jl.raya bandung,kp ciburial,desa bojong ,Rt 03,Rw ', '85863201525', '1998-08-07', 'P', '2017-02-27'), ('1701160010', '<NAME>', 'kp. Legok,Sukamanah,Cugenang RT 01/ RW 09', '85863201526', '1998-08-08', 'P', '2017-02-28'), ('1701160011', '<NAME>', 'Jl.HOS.cokroaminoto,Gg.Dukuh No 1', '85863201527', '1998-08-09', 'P', '2017-03-01'), ('1701160012', '<NAME>', 'Pesona Cianjur Indah b4 no.4', '85863201528', '1998-08-10', 'P', '2017-03-02'), ('1701160013', '<NAME>', 'Gg.Harapan 2', '85863201529', '1998-08-11', 'P', '2017-03-03'), ('1701160014', '<NAME>', 'BTN Limbangansari Indah No.27 RT.01 RW.12', '85863201530', '1998-08-12', 'P', '2017-03-04'), ('1701160015', '<NAME>', 'Jl. <NAME> RT.02 RW.18', '85863201531', '1998-08-13', 'P', '2017-03-05'), ('1701160016', '<NAME>', 'Kp. Cibako RT/RW 02/03, Cianjur', '85863201532', '1998-08-14', 'P', '2017-03-06'), ('1701160017', '<NAME>', 'Perum. Kota baru blok 5 no.24', '85863201533', '1998-08-15', 'P', '2017-03-07'), ('1701160018', '<NAME>YARISTIA', 'Kp kopo kulon Rt 02/Rw 05 Jl. Baros desa.sukataris', '85863201534', '1998-08-16', 'P', '2017-03-08'), ('1701160019', '<NAME>', 'Kp. Sukataris Ds.Sukataris RT.02 RW.01 Kec. Karang', '85863201535', '1998-08-17', 'P', '2017-03-09'), ('1701160020', '<NAME>', 'Kp. Selakawung RT. 04/02 kec. Cilaku kab. Cianjur', '85863201536', '1998-08-18', 'P', '2017-03-10'), ('1701170001', '<NAME>', 'BTN.Griya Binong Indah, Cilaku, Cianjur', '85863201537', '1998-08-19', 'P', '2017-03-11'), ('1701170002', '<NAME>', 'Btn Bumi Asri Sukamaju Blok B25 ', '85863201538', '1998-08-20', 'P', '2017-03-12'), ('1701170003', '<NAME>', 'Kp. baru Rt 01/04 Cipanas', '85863201539', '1998-08-21', 'P', '2017-03-13'), ('1701170004', 'MOCHAMAD ELANG FARHAN', 'kp giriharja RT 01 RW 01 Desa Cibulakan ', '85863201540', '1998-08-22', 'L', '2017-03-14'), ('1701170005', '<NAME>', 'Pesona Cianjur Indah Blok L2 No 15 RT05 / RW15', '85863201541', '1998-08-23', 'L', '2017-03-15'), ('1701170006', '<NAME>', 'Jl.Kh.Saleh RT 06 / RW 01 KP.Pandan Jaya', '85863201542', '1998-08-24', 'L', '2017-03-16'), ('1701170007', '<NAME>', 'Jl.Didi prawira kusumah Ga.Al-istiqomah ', '85863201543', '1998-08-25', 'L', '2017-03-17'), ('1701170008', '<NAME>', 'JL.Prof.Moch.Yamin No.118 RT.02 RW.08 Cianjur', '85863201544', '1998-08-26', 'P', '2017-03-18'), ('1701170009', '<NAME>', 'Kp. Tegal Batu RT02/RW02 Kec.Cilaku Kab.cianjur', '85863201545', '1998-08-27', 'L', '2017-03-19'), ('1701170010', '<NAME>', 'Jl.Aria Cikondang Gg harapan 2', '85863201546', '1998-08-28', 'P', '2017-03-20'), ('1701170011', '<NAME>', 'Kp Lampegan, Rt 04,Rw 12', '85863201547', '1998-08-29', 'L', '2017-03-21'), ('1701170012', '<NAME>', 'Gadung Permai Jl. Flamboyan No. A23 RT. 01 / 16 Ci', '85863201548', '1998-08-30', 'P', '2017-03-22'), ('1701170013', '<NAME>', 'Kp. Pateken Ds.Sukataris RT.02 RW.03 Kec.Karangten', '85863201549', '1998-08-31', 'L', '2017-03-23'), ('1701170014', '<NAME>', 'kp. Sadewata Kaler RT/RW 04/01', '85863201550', '1998-09-01', 'P', '2017-03-24'), ('1701170015', '<NAME>', 'Jl.Perintis Kemerdekaan No.107 A Kp.Margaluyu', '85863201551', '1998-09-02', 'L', '2017-03-25'), ('1701170016', '<NAME>', 'Kp. Rawa bango RT02/RW03 Kec.Ciranjang Kab.cianjur', '85863201552', '1998-09-03', 'P', '2017-03-26'), ('1701170017', '<NAME>', 'Kp.Kopem RT 01 RW 10 kelurahan sawah gede', '85863201553', '1998-09-04', 'L', '2017-03-27'), ('1701170018', '<NAME>', 'Kp. Panembong Wetan RT. 01/01 kec. Cianjur kab. ', '85863201554', '1998-09-05', 'P', '2017-03-28'), ('1701170019', '<NAME>', 'Komplek Coolibah Utama No. 87', '85863201555', '1998-09-06', 'L', '2017-03-29'), ('1701170020', '<NAME>', 'Jl.Aria Cikondang Gg.Harapan 2', '85863201556', '1998-09-07', 'P', '2017-03-30'), ('1701170021', '<NAME>', 'Kp. Pasarean. kec. Cianjur kab. Cianjur', '85863201557', '1998-09-08', 'L', '2017-03-31'), ('1701170022', 'WORO AGUNG', 'Jl.raya bandung,kp ciburial,desa bojong ,Rt 03,Rw ', '85863201558', '1998-09-09', 'P', '2017-04-01'), ('1701200001', 'denis', 'kp. dimana', '003948483944', '2017-01-20', 'L', '2017-01-20'), ('1702020001', 'Woro agung', 'kp.woro agung', '1111111111111111', '2017-02-02', 'P', '2017-02-01'), ('1702050001', '<NAME>', 'cipadang kalapa', '00493849384', '1998-06-01', 'L', '2017-02-05'), ('1702050002', '<NAME>', 'perum bumi mas', '09494384938', '2016-07-13', 'L', '2017-02-05'), ('nopasien', 'nopasien', 'nopasien', 'nopasien', '0000-00-00', 'j', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `pegawai` -- CREATE TABLE IF NOT EXISTS `pegawai` ( `nip` char(10) NOT NULL, `namapeg` varchar(50) DEFAULT NULL, `almpeg` varchar(50) DEFAULT NULL, `telppeg` varchar(20) DEFAULT NULL, `tgllhrpeg` date DEFAULT NULL, `jnlkelpeg` varchar(1) DEFAULT NULL, PRIMARY KEY (`nip`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pegawai` -- INSERT INTO `pegawai` (`nip`, `namapeg`, `almpeg`, `telppeg`, `tgllhrpeg`, `jnlkelpeg`) VALUES ('1234567890', '<NAME>', 'kp. selakawung bayubud', '085863201500', '1998-07-13', 'L'), ('141510077', 'siapa', 'siapa', '01111111122222222222', '2017-02-03', 'P'), ('141510088', '<NAME>', 'kp. kupukiland', '0356346348', '2017-02-01', 'L'), ('141510099', 'nama', 'alamat', '3434343434', '2017-12-31', 'P'), ('Dr001', 'P0001', ' <NAME>', 'Jl. Siliwangi Gg.Gun', '0000-00-00', NULL), ('Dr002', 'P0002', ' <NAME>', 'Jl. Mangunsarkoro No', '0000-00-00', NULL), ('Dr004', 'P0004', '<NAME>', 'Jl. Wuluku No.1 Baba', '0000-00-00', NULL), ('Dr005', 'P0005', '<NAME>', 'Jl. Dipawangi II No.', '0000-00-00', NULL), ('Dr006', 'P0001', '<NAME>', 'Gg. Rinjani II Rt/Rw', '0000-00-00', NULL), ('Dr007', 'P0002', '<NAME>', 'Jl. Perwira No.4B', '0000-00-00', NULL), ('Dr008', 'P0003', '<NAME>', 'Jl. Santosa Asih III', '0000-00-00', NULL), ('Dr009', 'P0004', '<NAME>', 'KP KARANG TENGAH', '0000-00-00', NULL), ('Dr010', 'P0005', '<NAME>', 'Jl.Pr.Hidayatullah N', '0000-00-00', NULL); -- -------------------------------------------------------- -- -- Stand-in structure for view `peglog` -- CREATE TABLE IF NOT EXISTS `peglog` ( `nip` char(10) ,`namapeg` varchar(50) ,`almpeg` varchar(50) ,`telppeg` varchar(20) ,`tgllhrpeg` date ,`jnlkelpeg` varchar(1) ,`username` varchar(15) ,`password` varchar(15) ,`typeuser` varchar(5) ); -- -------------------------------------------------------- -- -- Table structure for table `pemeriksaan` -- CREATE TABLE IF NOT EXISTS `pemeriksaan` ( `nopemeriksaan` int(15) NOT NULL, `nopendaftaran` int(15) NOT NULL, `keluhan` text, `diagnosa` text, `perawatan` text, `tindakan` text, `beratbadan` int(11) DEFAULT NULL, `tensidiastolik` int(11) DEFAULT NULL, `tensisistolik` int(11) DEFAULT NULL, PRIMARY KEY (`nopemeriksaan`), KEY `nopendaftaran` (`nopendaftaran`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pemeriksaan` -- INSERT INTO `pemeriksaan` (`nopemeriksaan`, `nopendaftaran`, `keluhan`, `diagnosa`, `perawatan`, `tindakan`, `beratbadan`, `tensidiastolik`, `tensisistolik`) VALUES (1702010001, 1701310006, 'keluhan', 'diagnosa', 'perawatan', 'tindakan', 123, 123, 123), (1702010002, 1701310003, 'keluhan', 'diagnosa', 'perawatan', 'tindakan', 123, 123, 1223), (1702020001, 1701310001, 'keluhan', 'doagnosa', 'perawatan', 'tindakan', 222, 222, 222), (1702030001, 1702030001, 'Sakit Gigi', 'Gigi Berlubang', 'Gigi diberi obat', 'Gigi di tambah', 55, 120, 80), (1702030002, 1702030002, 'Pusing', '<NAME>', 'Diberi obat', 'Di beri obat', 60, 64, 80), (1702050001, 1702050001, 'sakit gigi', 'gigi berlubang', 'gigi di bersihkan', 'gigi di tambal', 55, 89, 76); -- -------------------------------------------------------- -- -- Table structure for table `pendaftaran` -- CREATE TABLE IF NOT EXISTS `pendaftaran` ( `nopendaftaran` int(15) NOT NULL, `kodejadwal` char(5) NOT NULL, `nip` char(10) NOT NULL, `nopasien` char(10) NOT NULL, `tglpendaftaran` date DEFAULT NULL, `nourut` int(11) DEFAULT NULL, PRIMARY KEY (`nopendaftaran`), KEY `nip` (`nip`), KEY `nopasien` (`nopasien`), KEY `kodejadwal` (`kodejadwal`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pendaftaran` -- INSERT INTO `pendaftaran` (`nopendaftaran`, `kodejadwal`, `nip`, `nopasien`, `tglpendaftaran`, `nourut`) VALUES (1701310001, '12345', '1234567890', '1701160001', '2017-01-31', 1), (1701310002, '12345', '1234567890', '1701200001', '2017-01-31', 2), (1701310003, '12345', '1234567890', '1701160001', '2017-01-31', 3), (1701310004, '12345', '1234567890', '1701200001', '2017-01-31', 4), (1701310005, '12345', '1234567890', '1701200001', '2017-01-31', 5), (1701310006, '12345', '1234567890', '1701200001', '2017-01-31', 6), (1702020001, 'J0004', '1234567890', '1702020001', '2017-02-02', 1), (1702020002, '12345', '1234567890', '1701200001', '2017-02-02', 2), (1702030001, 'J0002', '1234567890', '1701170010', '2017-02-03', 1), (1702030002, 'J0004', '1234567890', '1701170017', '2017-02-03', 2), (1702050001, 'J0003', '1234567890', '1702050001', '2017-02-05', 1), (1702050002, 'J0009', '1234567890', '1702050002', '2017-02-05', 2); -- -------------------------------------------------------- -- -- Stand-in structure for view `pendapatanhari` -- CREATE TABLE IF NOT EXISTS `pendapatanhari` ( `noresep` char(15) ,`hargakotor` double ); -- -------------------------------------------------------- -- -- Table structure for table `poliklinik` -- CREATE TABLE IF NOT EXISTS `poliklinik` ( `kodepoli` char(5) NOT NULL, `namapoli` varchar(50) DEFAULT NULL, PRIMARY KEY (`kodepoli`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `poliklinik` -- INSERT INTO `poliklinik` (`kodepoli`, `namapoli`) VALUES ('12345', 'Poliklinik Cianjur Sehat'), ('P0001', 'Poli Gigi'), ('P0002', 'Poli kulit'), ('P0003', 'Poli jantung'), ('P0004', 'Poli mata'), ('P0005', 'Poli Umum'); -- -------------------------------------------------------- -- -- Table structure for table `resep` -- CREATE TABLE IF NOT EXISTS `resep` ( `noresep` char(15) NOT NULL, `nopemeriksaan` int(15) NOT NULL, `tanggal` date NOT NULL, PRIMARY KEY (`noresep`), KEY `nopemeriksaan` (`nopemeriksaan`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `resep` -- INSERT INTO `resep` (`noresep`, `nopemeriksaan`, `tanggal`) VALUES ('RES170204000001', 1702030002, '2017-02-04'), ('RES170204000002', 1702010002, '2017-02-04'); -- -------------------------------------------------------- -- -- Stand-in structure for view `riwayatpass` -- CREATE TABLE IF NOT EXISTS `riwayatpass` ( `nopasien` char(10) ,`namapass` varchar(50) ,`almpass` varchar(50) ,`telppas` varchar(20) ,`tgllahirpass` date ,`jeniskelpas` varchar(1) ,`tglregistrasi` date ,`keluhan` text ,`diagnosa` text ,`perawatan` text ,`tindakan` text ,`beratbadan` int(11) ,`tensidiastolik` int(11) ,`tensisistolik` int(11) ); -- -------------------------------------------------------- -- -- Structure for view `cpem` -- DROP TABLE IF EXISTS `cpem`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `cpem` AS select `pendaftaran`.`nopendaftaran` AS `nopendaftaran`,`pasien`.`nopasien` AS `nopasien`,`pasien`.`namapass` AS `namapass` from (`pendaftaran` join `pasien`) where (`pasien`.`nopasien` = `pendaftaran`.`nopasien`); -- -------------------------------------------------------- -- -- Structure for view `datpeg` -- DROP TABLE IF EXISTS `datpeg`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `datpeg` AS select `login`.`username` AS `username`,`login`.`password` AS `password`,`login`.`typeuser` AS `typeuser`,`pegawai`.`nip` AS `nip`,`pegawai`.`namapeg` AS `namapeg`,`pegawai`.`almpeg` AS `almpeg`,`pegawai`.`telppeg` AS `telppeg`,`pegawai`.`tgllhrpeg` AS `tgllhrpeg`,`pegawai`.`jnlkelpeg` AS `jnlkelpeg` from (`login` join `pegawai`) where (`login`.`nip` = `pegawai`.`nip`); -- -------------------------------------------------------- -- -- Structure for view `detresobat` -- DROP TABLE IF EXISTS `detresobat`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `detresobat` AS select `obat`.`kodeobat` AS `kodeobat`,`obat`.`namaobat` AS `namaobat`,`obat`.`merk` AS `merk`,`obat`.`satuan` AS `satuan`,`obat`.`hargajual` AS `hargajual`,`detailresep`.`iddetailresep` AS `iddetailresep`,`detailresep`.`noresep` AS `noresep`,`detailresep`.`jumlah` AS `jumlah`,`detailresep`.`dosis` AS `dosis` from (`obat` join `detailresep`) where (`obat`.`kodeobat` = `detailresep`.`kodeobat`); -- -------------------------------------------------------- -- -- Structure for view `jaddok` -- DROP TABLE IF EXISTS `jaddok`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `jaddok` AS select `dokter`.`kodedokter` AS `kodedokter`,`dokter`.`kodepoli` AS `kodepoli`,`dokter`.`namadokter` AS `namadokter`,`dokter`.`almdokter` AS `almdokter`,`dokter`.`telpdokter` AS `telpdokter`,`jadwalpraktek`.`kodejadwal` AS `kodejadwal`,`jadwalpraktek`.`hari` AS `hari`,`jadwalpraktek`.`jammulai` AS `jammulai`,`jadwalpraktek`.`jamselesai` AS `jamselesai` from (`dokter` join `jadwalpraktek`) where (`dokter`.`kodedokter` = `jadwalpraktek`.`kodejadwal`); -- -------------------------------------------------------- -- -- Structure for view `jadper` -- DROP TABLE IF EXISTS `jadper`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `jadper` AS select `dokter`.`namadokter` AS `namadokter`,`poliklinik`.`namapoli` AS `namapoli`,`jadwalpraktek`.`hari` AS `hari`,`jadwalpraktek`.`jammulai` AS `jammulai`,`jadwalpraktek`.`jamselesai` AS `jamselesai` from ((`dokter` join `poliklinik`) join `jadwalpraktek`) where ((`dokter`.`kodepoli` = `poliklinik`.`kodepoli`) and (`jadwalpraktek`.`kodedokter` = `dokter`.`kodedokter`)); -- -------------------------------------------------------- -- -- Structure for view `peglog` -- DROP TABLE IF EXISTS `peglog`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `peglog` AS select `pegawai`.`nip` AS `nip`,`pegawai`.`namapeg` AS `namapeg`,`pegawai`.`almpeg` AS `almpeg`,`pegawai`.`telppeg` AS `telppeg`,`pegawai`.`tgllhrpeg` AS `tgllhrpeg`,`pegawai`.`jnlkelpeg` AS `jnlkelpeg`,`login`.`username` AS `username`,`login`.`password` AS `password`,`login`.`typeuser` AS `typeuser` from (`pegawai` join `login`) where (`pegawai`.`nip` = `login`.`nip`); -- -------------------------------------------------------- -- -- Structure for view `pendapatanhari` -- DROP TABLE IF EXISTS `pendapatanhari`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `pendapatanhari` AS select `detailresep`.`noresep` AS `noresep`,sum(`detailresep`.`hargajual`) AS `hargakotor` from (`detailresep` join `resep`) where ((`resep`.`noresep` = `detailresep`.`noresep`) and (`resep`.`tanggal` = '2017-02-04')) group by `detailresep`.`noresep`; -- -------------------------------------------------------- -- -- Structure for view `riwayatpass` -- DROP TABLE IF EXISTS `riwayatpass`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `riwayatpass` AS select `pasien`.`nopasien` AS `nopasien`,`pasien`.`namapass` AS `namapass`,`pasien`.`almpass` AS `almpass`,`pasien`.`telppas` AS `telppas`,`pasien`.`tgllahirpass` AS `tgllahirpass`,`pasien`.`jeniskelpas` AS `jeniskelpas`,`pasien`.`tglregistrasi` AS `tglregistrasi`,`pemeriksaan`.`keluhan` AS `keluhan`,`pemeriksaan`.`diagnosa` AS `diagnosa`,`pemeriksaan`.`perawatan` AS `perawatan`,`pemeriksaan`.`tindakan` AS `tindakan`,`pemeriksaan`.`beratbadan` AS `beratbadan`,`pemeriksaan`.`tensidiastolik` AS `tensidiastolik`,`pemeriksaan`.`tensisistolik` AS `tensisistolik` from ((`pasien` join `pendaftaran`) join `pemeriksaan`) where ((`pasien`.`nopasien` = `pendaftaran`.`nopasien`) and (`pendaftaran`.`nopendaftaran` = `pemeriksaan`.`nopendaftaran`)); -- -- Constraints for dumped tables -- -- -- Constraints for table `detailbiaya` -- ALTER TABLE `detailbiaya` ADD CONSTRAINT `jenisbiaya` FOREIGN KEY (`idjenisbiaya`) REFERENCES `jenisbiaya` (`idjenisbiaya`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `pendaftaran` FOREIGN KEY (`nopendaftaran`) REFERENCES `pendaftaran` (`nopendaftaran`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `detailresep` -- ALTER TABLE `detailresep` ADD CONSTRAINT `kodeobat` FOREIGN KEY (`kodeobat`) REFERENCES `obat` (`kodeobat`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `noresep` FOREIGN KEY (`noresep`) REFERENCES `resep` (`noresep`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `dokter` -- ALTER TABLE `dokter` ADD CONSTRAINT `kodepoli` FOREIGN KEY (`kodepoli`) REFERENCES `poliklinik` (`kodepoli`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `jadwalpraktek` -- ALTER TABLE `jadwalpraktek` ADD CONSTRAINT `kodedokter` FOREIGN KEY (`kodedokter`) REFERENCES `dokter` (`kodedokter`); -- -- Constraints for table `login` -- ALTER TABLE `login` ADD CONSTRAINT `nip` FOREIGN KEY (`nip`) REFERENCES `pegawai` (`nip`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `pemeriksaan` -- ALTER TABLE `pemeriksaan` ADD CONSTRAINT `nopendaftaran` FOREIGN KEY (`nopendaftaran`) REFERENCES `pendaftaran` (`nopendaftaran`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `pendaftaran` -- ALTER TABLE `pendaftaran` ADD CONSTRAINT `kodejadwal` FOREIGN KEY (`kodejadwal`) REFERENCES `jadwalpraktek` (`kodejadwal`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `nippen` FOREIGN KEY (`nip`) REFERENCES `pegawai` (`nip`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `nopasien` FOREIGN KEY (`nopasien`) REFERENCES `pasien` (`nopasien`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- -- Constraints for table `resep` -- ALTER TABLE `resep` ADD CONSTRAINT `nopemeriksaan` FOREIGN KEY (`nopemeriksaan`) REFERENCES `pemeriksaan` (`nopemeriksaan`) 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 */;
USE SoftUni GO CREATE PROC usp_GetEmployeesSalaryAboveNumber(@number money) AS SELECT FirstName,LastName FROM Employees WHERE Salary >= @number GO
/* Write a query that will create the “gamebar” database. */ CREATE DATABASE gamebar; USE gamebar; /* Create Tables */ CREATE TABLE employees( id INT(11) PRIMARY KEY AUTO_INCREMENT, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL ); CREATE TABLE categories( id INT(11) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL ); CREATE TABLE products( id INT(11) PRIMARY KEY AUTO_INCREMENT, name VARCHAR(50) NOT NULL, category_id INT(11) NOT NULL ); /* Insert Data in Tables */ INSERT INTO employees (first_name, last_name) VALUES ('Pesho', 'Peshev'); INSERT INTO employees (first_name, last_name) VALUES ('Gosho', 'Goshev'); INSERT INTO employees (first_name, last_name) VALUES ('Martin', 'Martinev'); /* Alter Tables */ ALTER TABLE employees ADD COLUMN middle_name VARCHAR(50) NOT NULL AFTER last_name; /* Adding Constraints Create the connection via foreign key between the “products” and “categories” tables that you’ve created earlier. Make “category_id” foreign key linked to “id” in the “categories” table. */ ALTER TABLE products ADD CONSTRAINT my_fk FOREIGN KEY (category_id) REFERENCES categories (id) ON DELETE NO ACTION ON UPDATE NO ACTION; /* Modifying Columns Change the property “VARCHAR(50)” to “VARCHAR(100)” to the “middle_name” column in “employees” table. */ ALTER TABLE employees CHANGE COLUMN middle_name middle_name VARCHAR(100) NOT NULL ; /* Drop the “gamebar” database. */ DROP DATABASE gamebar;
CREATE PROCEDURE [employer_account].[GetAccounts_ByUserRef] @userRef UNIQUEIDENTIFIER AS SELECT a.Id, a.Name, m.[Role], a.HashedId, a.PublicHashedId FROM [employer_account].[User] u INNER JOIN [employer_account].[Membership] m ON m.UserId = u.Id INNER JOIN [employer_account].[Account] a ON m.AccountId = a.Id WHERE u.UserRef = @userRef
<reponame>navikt/familie-ba-sak ALTER TABLE vedtaksbegrunnelse DROP CONSTRAINT vedtaksbegrunnelse_fk_vedtaksperiode_id_fkey, ADD CONSTRAINT vedtaksbegrunnelse_fk_vedtaksperiode_id_fkey FOREIGN KEY (fk_vedtaksperiode_id) REFERENCES vedtaksperiode (id) ON DELETE CASCADE; ALTER TABLE andel_tilkjent_ytelse DROP CONSTRAINT andel_tilkjent_ytelse_tilkjent_ytelse_id_fkey, ADD CONSTRAINT andel_tilkjent_ytelse_tilkjent_ytelse_id_fkey FOREIGN KEY (tilkjent_ytelse_id) REFERENCES tilkjent_ytelse (id) ON DELETE CASCADE; ALTER TABLE okonomi_simulering_postering DROP CONSTRAINT vedtak_simulering_postering_fk_vedtak_simulering_mottaker__fkey, -- Er to understreker i fk-navn hentet fra database ADD CONSTRAINT vedtak_simulering_postering_fk_vedtak_simulering_mottaker__fkey FOREIGN KEY (fk_okonomi_simulering_mottaker_id) REFERENCES okonomi_simulering_mottaker (id) ON DELETE CASCADE;
-- Faça uma consulta que retorne três colunas, respectivamente, com os nomes 'A', 'Trybe' e 'de', e com valores referentes a soma de '5 + 6', a string 'de', a soma de '2 + 8'", SELECT (5 + 6) as 'A', 'de' as 'Trybe', (2 + 8) as 'eh';